:root {
  color-scheme: light;
  --ink: #22242a;
  --muted: #667085;
  --line: #d7dce2;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f1f5f4;
  --vermillion: #bf3f35;
  --indigo: #263f73;
  --moss: #4f7358;
  --gold: #c3983f;
  --shadow: 0 18px 50px rgba(31, 35, 45, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 247, 0.95)),
    var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Noto Sans JP",
    "Yu Gothic",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 220, 226, 0.82);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.section-heading,
.planner-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--vermillion) 0 42%, transparent 43%),
    linear-gradient(135deg, var(--surface), #e8eee8);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.72);
}

.brand h1,
.section-heading h2,
.hero-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.eyebrow,
.metric-label {
  margin: 0 0 4px;
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.segmented-button,
.ghost-link,
.icon-text-button,
.card-button,
.map-link,
.small-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.segmented-button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented-button.is-active {
  background: var(--ink);
  color: white;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
  align-items: end;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px) clamp(28px, 5vw, 52px);
  background:
    linear-gradient(120deg, rgba(191, 63, 53, 0.12), transparent 34%),
    linear-gradient(300deg, rgba(38, 63, 115, 0.16), transparent 42%),
    var(--surface-2);
}

.hero-copy {
  max-width: 860px;
}

.hero-copy h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5.2vw, 4.7rem);
  line-height: 1.04;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-panel {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  color: var(--vermillion);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
}

.hero-panel span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.workbench {
  display: grid;
  grid-template-columns: 240px minmax(300px, 1fr) minmax(320px, 0.86fr);
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
}

.filters-panel,
.results-panel,
.map-panel,
.news-band,
.planner-band {
  min-width: 0;
}

.filters-panel {
  position: sticky;
  top: 89px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(195, 152, 63, 0.34);
  outline-offset: 2px;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.counter {
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3ee;
  color: var(--moss);
  font-weight: 900;
  text-align: center;
}

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

.news-band {
  padding: 28px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(79, 115, 88, 0.08), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.news-heading {
  margin-bottom: 14px;
}

.news-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.news-meta-line {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.news-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.news-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.news-category span {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #edf3ee;
  color: var(--moss);
  font-size: 0.76rem;
  text-align: center;
}

.news-category.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.news-category.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

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

.news-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfcfd;
  box-shadow: 0 10px 28px rgba(31, 35, 45, 0.06);
  overflow: hidden;
}

.news-image {
  width: calc(100% + 32px);
  height: 132px;
  margin: -16px -16px 2px;
  object-fit: cover;
  background: #edf1f3;
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.36;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-card .map-link {
  width: fit-content;
  margin-top: auto;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 900;
}

.news-source-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(191, 63, 53, 0.1);
  color: var(--vermillion);
}

.news-status {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(195, 152, 63, 0.22);
  border-radius: var(--radius);
  background: rgba(195, 152, 63, 0.1);
  color: #805e17;
  font-weight: 800;
}

.news-status[hidden] {
  display: none;
}

.news-card.is-loading {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent),
    linear-gradient(#edf1f3 0 0) 16px 18px / 46% 14px no-repeat,
    linear-gradient(#edf1f3 0 0) 16px 54px / 82% 18px no-repeat,
    linear-gradient(#edf1f3 0 0) 16px 86px / 68% 12px no-repeat,
    #fcfcfd;
  background-size:
    180px 100%,
    46% 14px,
    82% 18px,
    68% 12px,
    auto;
  animation: loadingSweep 1.4s linear infinite;
}

.news-more-button {
  display: flex;
  width: fit-content;
  margin: 16px auto 0;
}

@keyframes loadingSweep {
  from {
    background-position:
      -180px 0,
      16px 18px,
      16px 54px,
      16px 86px,
      0 0;
  }

  to {
    background-position:
      calc(100% + 180px) 0,
      16px 18px,
      16px 54px,
      16px 86px,
      0 0;
  }
}

.place-card {
  display: grid;
  gap: 12px;
  min-height: 238px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 35, 45, 0.06);
}

.place-card.is-selected {
  border-color: rgba(191, 63, 53, 0.6);
  box-shadow: 0 12px 30px rgba(191, 63, 53, 0.12);
}

.card-topline,
.detail-meta,
.tag-row,
.planner-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.region-pill,
.tag,
.stay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.region-pill {
  background: rgba(38, 63, 115, 0.1);
  color: var(--indigo);
}

.tag {
  background: rgba(79, 115, 88, 0.12);
  color: var(--moss);
}

.stay-pill {
  background: rgba(195, 152, 63, 0.14);
  color: #805e17;
}

.place-card h3,
.detail-panel h3,
.planner-day h3 {
  margin: 0;
}

.place-card h3 {
  font-size: 1.08rem;
}

.place-card p,
.detail-panel p,
.planner-empty,
.site-footer {
  color: var(--muted);
}

.place-card p {
  margin: 0;
}

.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card-day-select {
  display: grid;
  flex: 1 1 130px;
  min-width: 124px;
  gap: 5px;
}

.card-day-select select {
  min-height: 38px;
  padding: 7px 9px;
}

.card-button,
.map-link,
.icon-text-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  font-weight: 900;
}

.card-button {
  background: var(--vermillion);
  color: white;
}

.map-link {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.icon-text-button {
  border: 1px solid var(--line);
  background: var(--ink);
  color: white;
  white-space: nowrap;
}

.small-button {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.card-button:hover,
.icon-text-button:hover {
  transform: translateY(-1px);
}

.map-panel {
  position: sticky;
  top: 89px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.map-shell {
  overflow: hidden;
  height: min(44vh, 390px);
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e7ecef;
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-panel h3 {
  font-size: 1.36rem;
}

.detail-panel p {
  margin: 0;
}

.source-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.source-list a {
  color: var(--indigo);
  font-weight: 800;
}

.places-data {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(38, 63, 115, 0.14);
  border-radius: 6px;
  background: #f8fafb;
}

.places-data-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(38, 63, 115, 0.08);
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hours-details {
  color: var(--muted);
}

.hours-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.hours-details ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.photo-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.photo-meta strong {
  color: var(--ink);
}

.planner-band {
  padding: 30px clamp(18px, 4vw, 56px) 46px;
  border-top: 1px solid var(--line);
  background: #f7f9fa;
}

.status-shell {
  display: grid;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
}

.status-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(191, 63, 53, 0.1), transparent 42%),
    var(--surface);
}

.status-hero h2,
.status-hero p {
  margin: 0;
}

.status-hero h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.status-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
}

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

.status-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 35, 45, 0.06);
}

.status-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-card strong {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.status-wide {
  min-width: 0;
}

.status-raw {
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: #15171d;
  color: #eef2f5;
  font-size: 0.86rem;
}

.planner-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.itinerary-export {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.itinerary-export[hidden] {
  display: none;
}

.itinerary-export h3 {
  margin: 0;
  font-size: 1.12rem;
}

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

.planner-day {
  min-width: 0;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.planner-day-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.planner-day-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.planner-day small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.planner-day-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 0.8fr);
  gap: 10px;
  margin-bottom: 14px;
}

.planner-day-controls label {
  display: grid;
  gap: 5px;
}

.planner-day-controls input {
  min-height: 36px;
  padding: 6px 8px;
  min-width: 0;
}

.planner-list {
  display: grid;
  gap: 10px;
  min-height: 142px;
  border-radius: 6px;
}

.planner-list.is-drop-target {
  outline: 2px dashed rgba(38, 63, 115, 0.35);
  outline-offset: 4px;
}

.planner-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfcfd;
}

.planner-item[draggable="true"] {
  cursor: grab;
}

.planner-item.is-dragging {
  opacity: 0.46;
}

.planner-item strong {
  font-size: 0.96rem;
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--indigo);
  font-size: 0.84rem;
  font-weight: 900;
}

.timeline-row small {
  margin: 0;
  color: var(--muted);
}

.move-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(195, 152, 63, 0.13);
  color: #805e17;
  font-size: 0.78rem;
  font-weight: 900;
}

.planner-empty {
  display: grid;
  place-items: center;
  min-height: 142px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--indigo);
  font-weight: 900;
}

.admin-hero {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px) clamp(22px, 4vw, 36px);
  background:
    linear-gradient(120deg, rgba(79, 115, 88, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(195, 152, 63, 0.18), transparent 48%),
    var(--surface-2);
}

.admin-hero div {
  max-width: 860px;
}

.admin-hero h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.06;
}

.admin-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px) 46px;
}

.admin-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-panel > .section-heading:first-child {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.auth-panel {
  margin: 24px clamp(18px, 4vw, 56px) 0;
}

.auth-panel[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.auth-form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fcfcfd;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.checkbox-pill input {
  width: 16px;
  min-height: 16px;
}

.source-inputs {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr);
  gap: 10px;
}

.places-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(38, 63, 115, 0.18);
  border-radius: var(--radius);
  background: rgba(241, 245, 244, 0.72);
}

.places-fields h3 {
  margin: 0;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message[data-type="success"] {
  color: var(--moss);
}

.form-message[data-type="error"] {
  color: var(--vermillion);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfcfd;
}

.review-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.review-card h3 {
  margin: 0;
}

.review-card p {
  margin: 0;
  color: var(--muted);
}

.intake-meta {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-left: 3px solid rgba(38, 63, 115, 0.22);
  background: rgba(38, 63, 115, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pending {
  background: rgba(195, 152, 63, 0.16);
  color: #805e17;
}

.status-approved {
  background: rgba(79, 115, 88, 0.14);
  color: var(--moss);
}

.status-rejected {
  background: rgba(191, 63, 53, 0.12);
  color: var(--vermillion);
}

.export-panel,
.import-panel {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.import-panel {
  padding-top: 0;
  border-top: 0;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.helper-text code {
  color: var(--indigo);
  font-weight: 800;
}

.export-box {
  min-height: 220px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

@media (max-width: 1180px) {
  .workbench {
    grid-template-columns: 220px minmax(320px, 1fr);
  }

  .map-panel {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: minmax(300px, 0.85fr) minmax(320px, 1fr);
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .app-header,
  .hero-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header,
  .site-footer {
    display: flex;
  }

  .hero-band,
  .workbench,
  .map-panel,
  .news-grid,
  .status-grid,
  .planner-days,
  .admin-layout,
  .auth-form,
  .two-columns,
  .source-inputs {
    grid-template-columns: 1fr;
  }

  .hero-band {
    gap: 18px;
  }

  .status-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    max-width: 360px;
  }

  .filters-panel {
    position: static;
  }

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

  .header-actions,
  .news-actions,
  .section-heading {
    align-items: stretch;
  }

  .section-heading {
    flex-direction: column;
  }

  .planner-heading {
    align-items: stretch;
  }

  .planner-toolbar {
    justify-content: stretch;
  }

  .planner-toolbar > * {
    flex: 1 1 160px;
  }

  .news-actions > * {
    flex: 1 1 140px;
  }
}

@media (max-width: 560px) {
  .app-header,
  .hero-band,
  .workbench,
  .auth-panel,
  .news-band,
  .status-shell,
  .planner-band,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-header {
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: flex;
    justify-content: stretch;
    gap: 8px;
  }

  .segmented {
    flex: 1 1 100%;
  }

  .ghost-link {
    flex: 1 1 calc(50% - 4px);
  }

  .hero-copy h2 {
    font-size: 1.95rem;
    line-height: 1.12;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .auth-panel {
    margin-left: 14px;
    margin-right: 14px;
  }

  .hero-panel,
  .filters-panel,
  .place-card,
  .detail-panel,
  .planner-day {
    padding: 14px;
  }

  .map-shell {
    min-height: 230px;
    height: 260px;
  }

  .planner-day-controls {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .detail-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-day-select {
    grid-column: 1 / -1;
  }

  .planner-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-actions > *,
  .detail-actions > *,
  .planner-card-actions > *,
  .admin-actions > * {
    min-width: 0;
  }

  .source-list,
  .photo-meta,
  .intake-meta,
  .export-box {
    overflow-wrap: anywhere;
  }
}
