:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --panel: #ffffff;
  --ink: #1d2a24;
  --muted: #68746d;
  --line: #dbe2db;
  --accent: #1f7a68;
  --accent-dark: #155647;
  --warm: #d78c35;
  --sky: #9fc7d6;
  --leaf: #d9e6c7;
  --shadow: 0 16px 45px rgba(36, 48, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
select,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(245, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 26px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.header-actions a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.header-actions a:not(.primary-button) {
  padding: 10px 6px;
}

.header-actions a:not(.primary-button):hover {
  color: var(--accent-dark);
}

.primary-button,
.search-panel button,
.map-toolbar button,
.quick-tags button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.secondary-button.full {
  width: 100%;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  padding: clamp(28px, 5vw, 60px) clamp(18px, 4vw, 48px) 28px;
}

.search-copy {
  max-width: 640px;
}

.search-copy p:last-child,
.publish-section > div:first-child p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.search-panel button {
  align-self: end;
  min-height: 44px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
}

.discovery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 48px) 18px;
}

.discovery-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.discovery-card span {
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 900;
}

.discovery-card strong {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.discovery-card:hover,
.listing-card:hover,
.source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 104, 0.42);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 clamp(18px, 4vw, 48px) 26px;
}

.trust-strip div {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.trust-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 18px;
  min-height: 720px;
  padding: 0 clamp(18px, 4vw, 48px) 48px;
}

.results-panel,
.map-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.results-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.results-heading,
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.results-heading h2,
.map-toolbar h2 {
  margin-bottom: 0;
  font-size: 22px;
}

#result-count {
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef4ef;
  color: var(--accent-dark);
  font-weight: 800;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.quick-tags button {
  padding: 8px 11px;
  background: #eef4ef;
  color: var(--accent-dark);
}

.listing-list {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.listing-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-card:focus-visible,
.discovery-card:focus-visible,
.card-cta:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(31, 122, 104, 0.28);
  outline-offset: 3px;
}

.listing-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 104, 0.12);
}

.listing-image {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.listing-image span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(29, 42, 36, 0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.image-sea {
  background-image: linear-gradient(140deg, rgba(38, 103, 126, 0.35), rgba(255, 255, 255, 0.08)), url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=500&q=80");
}

.image-river {
  background-image: linear-gradient(140deg, rgba(42, 105, 80, 0.35), rgba(255, 255, 255, 0.08)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=500&q=80");
}

.image-mountain {
  background-image: linear-gradient(140deg, rgba(78, 84, 55, 0.35), rgba(255, 255, 255, 0.08)), url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=500&q=80");
}

.image-town {
  background-image: linear-gradient(140deg, rgba(92, 75, 53, 0.35), rgba(255, 255, 255, 0.08)), url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=500&q=80");
}

.listing-body {
  min-width: 0;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f2f5f1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge.bid {
  background: #fff2df;
  color: #a45c14;
}

.listing-card h3 {
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.listing-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.price {
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.address {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.curation-note {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.tag-row span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf6f8;
  color: #376878;
  font-size: 12px;
  font-weight: 700;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf0ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.source-row a {
  margin-left: auto;
  color: var(--accent-dark);
  text-decoration: none;
}

.source-row .card-cta {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.map-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-control-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-toolbar button {
  min-width: 42px;
  padding: 10px 13px;
  background: #eef4ef;
  color: var(--accent-dark);
}

.map-canvas {
  position: relative;
  flex: 1;
  min-height: 620px;
  overflow: hidden;
  background: #dfe9df;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

.map-world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
  background:
    radial-gradient(circle at 16% 80%, rgba(115, 168, 194, 0.62), transparent 28%),
    radial-gradient(circle at 74% 22%, rgba(139, 159, 105, 0.56), transparent 30%),
    linear-gradient(116deg, #c9e3e8 0 30%, #e7efdf 30% 58%, #f4ecd7 58% 100%);
}

.map-world::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.42));
}

.map-world::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 18%;
  bottom: 21%;
  height: 54px;
  border-radius: 50%;
  border-top: 12px solid rgba(76, 139, 153, 0.42);
  transform: rotate(-8deg);
}

.map-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.map-label {
  position: absolute;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(29, 42, 36, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.label-sea {
  left: 8%;
  bottom: 12%;
}

.label-ridge {
  right: 13%;
  top: 18%;
}

.label-town {
  left: 45%;
  top: 46%;
}

.pin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(21, 86, 71, 0.25);
  transform: translate(-50%, -50%) rotate(-45deg);
  cursor: pointer;
}

.pin span {
  transform: rotate(45deg);
  font-size: 13px;
  font-weight: 900;
}

.pin.is-active {
  background: var(--warm);
  transform: translate(-50%, -50%) rotate(-45deg) scale(1.12);
}

.publish-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 54px);
  padding: 0 clamp(18px, 4vw, 48px) 60px;
}

.curation-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(22px, 4vw, 54px);
  padding: 0 clamp(18px, 4vw, 48px) 54px;
}

.policy-copy p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.policy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.policy-steps article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-steps span {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--accent);
  font-weight: 900;
}

.policy-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.publish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.publish-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.publish-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--warm);
  font-weight: 900;
}

.publish-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-main {
  padding: clamp(24px, 4vw, 48px);
}

.page-hero {
  max-width: 880px;
  margin-bottom: 28px;
}

.page-hero p:last-child,
.detail-hero p,
.owner-box p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
}

.summary-card,
.detail-block,
.detail-gallery,
.detail-side > section,
.request-form,
.guide-panel,
.policy-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 20px;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.affiliate-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.detail-gallery {
  overflow: hidden;
}

.detail-gallery .tag-row {
  padding: 16px;
}

.detail-photo {
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

.detail-content {
  display: grid;
  gap: 14px;
}

.detail-block {
  padding: 20px;
}

.detail-block h3,
.guide-panel h3,
.owner-box h3,
.mini-map h3 {
  margin-bottom: 14px;
}

.info-table {
  display: grid;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0ed;
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-table dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.check-list,
.number-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.caution-block {
  border-color: #f2d2a6;
  background: #fffaf1;
}

.small-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-side {
  display: grid;
  gap: 14px;
}

.mini-map,
.owner-box {
  padding: 18px;
}

.mini-map-canvas {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 80%, rgba(115, 168, 194, 0.58), transparent 31%),
    radial-gradient(circle at 76% 20%, rgba(139, 159, 105, 0.52), transparent 30%),
    linear-gradient(116deg, #c9e3e8 0 30%, #e7efdf 30% 58%, #f4ecd7 58% 100%);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.request-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.request-form fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.request-form fieldset:last-of-type {
  border-bottom: 0;
}

.request-form legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.request-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.request-form textarea {
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--ink);
}

.checkbox-grid input {
  width: auto;
  min-height: auto;
}

.form-submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.guide-panel {
  padding: 22px;
}

.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.contact-choice-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-choice-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.contact-choice-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-choice-grid .primary-button,
.contact-choice-grid .secondary-button {
  justify-self: start;
  margin-top: 6px;
}

.affiliate-box p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-detail-grid article {
  padding: 22px;
}

.policy-detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-page {
  max-width: 1180px;
  margin: 0 auto;
}

.legal-layout,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-layout .detail-block,
.faq-list .detail-block {
  box-shadow: var(--shadow);
}

.legal-layout .detail-block p,
.faq-list .detail-block p {
  color: var(--muted);
  line-height: 1.8;
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.approval-board,
.mail-preview,
.permission-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.board-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.board-heading h3 {
  margin-bottom: 0;
}

.approval-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.approval-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.approval-item h3 {
  margin: 10px 0 7px;
}

.approval-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.pending {
  background: #f2f5f1;
  color: var(--muted);
}

.status-pill.sent {
  background: #edf6f8;
  color: #376878;
}

.status-pill.approved {
  background: #e9f6ed;
  color: var(--accent-dark);
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.approval-actions .primary-button,
.approval-actions .secondary-button {
  min-height: 40px;
  border: 0;
  cursor: pointer;
}

.mail-preview {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.mail-box {
  min-height: 420px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.mail-box pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}

.automation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-flow article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.automation-flow span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--warm);
  font-weight: 900;
}

.automation-flow p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.permission-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.permission-summary {
  overflow: hidden;
}

.permission-copy {
  padding: 18px;
}

.permission-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.radio-stack {
  display: grid;
  gap: 10px;
}

.radio-stack label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--ink);
}

.radio-stack input {
  width: auto;
  min-height: auto;
}

.source-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.source-dashboard article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.source-dashboard span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 900;
}

.source-dashboard p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.source-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-controls select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.source-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.source-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.source-card h3 {
  margin: 10px 0 0;
}

.source-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.priority-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fff2df;
  color: #a45c14;
  font-size: 12px;
  font-weight: 900;
}

.source-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.source-meta div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

.source-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.source-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.secondary-button.disabled {
  color: var(--muted);
  pointer-events: none;
}

.source-roadmap p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 48px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.simulator-section {
  margin-top: 22px;
}

.simulator-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.simulator-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.verdict-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4ef;
}

.verdict-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.verdict-card strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1.25;
}

.verdict-card.good {
  background: #e9f6ed;
}

.verdict-card.neutral {
  background: #edf6f8;
}

.verdict-card.caution {
  background: #fff8e8;
}

.verdict-card.danger {
  background: #fff1ee;
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.simulator-form {
  display: grid;
  gap: 18px;
}

.simulator-form fieldset {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.simulator-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.sim-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sim-input-grid label,
.risk-grid label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sim-input-grid label {
  display: grid;
  gap: 7px;
}

.sim-input-grid input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.risk-grid input {
  width: auto;
  min-height: auto;
}

.simulator-results {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 94px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-grid article {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-grid article.highlight {
  border-color: rgba(31, 122, 104, 0.38);
  background: #f2f8f3;
}

.result-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.result-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.sim-notes {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #f2d2a6;
  border-radius: 8px;
  background: #fffaf1;
}

.sim-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .search-band,
  .discovery-strip,
  .trust-strip,
  .workspace,
  .curation-section,
  .publish-section,
  .detail-hero,
  .detail-layout,
  .simulator-head,
  .simulator-layout,
  .form-layout,
  .approval-layout,
  .permission-layout {
    grid-template-columns: 1fr;
  }

  .mail-preview {
    position: static;
  }

  .workspace {
    min-height: auto;
  }

  .results-panel {
    max-height: none;
  }

  .map-canvas {
    min-height: 520px;
  }

  .simulator-results {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-actions a {
    font-size: 13px;
  }

  .primary-button {
    padding-inline: 12px;
  }

  .search-panel,
  .discovery-strip,
  .trust-strip,
  .policy-steps,
  .publish-grid,
  .field-grid,
  .checkbox-grid,
  .sim-input-grid,
  .risk-grid,
  .policy-detail-grid,
  .legal-layout,
  .faq-list,
  .automation-flow,
  .source-dashboard,
  .source-list,
  .source-controls,
  .contact-choice-grid {
    grid-template-columns: 1fr;
  }

  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-image {
    min-height: 170px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
