@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, figure { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  img, svg { display: block; max-width: 100%; }
  button svg, a svg, span svg { flex: 0 0 auto; }
  img { height: auto; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    color-scheme: light;
    --paper: #f8f8f0;
    --paper-deep: #eeefe3;
    --surface: #fffef9;
    --ink: #2f4032;
    --ink-soft: #5d695c;
    --muted: #788075;
    --line: #dde0d1;
    --olive: #354d36;
    --olive-hover: #253c28;
    --olive-light: #e7edda;
    --citrus: #e2edb9;
    --terracotta: #b86b52;
    --terracotta-light: #f3e5da;
    --error: #a23737;
    --radius: 17px;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  body.modal-open { overflow: hidden; }
  ::selection { color: var(--ink); background: var(--citrus); }
  :focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
  button:disabled { opacity: .55; cursor: wait; }
  input:disabled, select:disabled, textarea:disabled { opacity: .65; }
  h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
  h1, h2 { font-family: var(--serif); }
  h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
  h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
  h3 { font-size: 1.25rem; }
  p + p { margin-top: 1em; }
  small { font-size: .8rem; }
  input, select, textarea {
    display: block; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 9px;
    color: var(--ink); background: var(--surface); padding: 11px 13px; transition: border-color .18s, box-shadow .18s;
  }
  input::placeholder, textarea::placeholder { color: #959b8e; opacity: 1; }
  input:hover, select:hover, textarea:hover { border-color: #afb9a4; }
  input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px #354d3612; }
  input[type='checkbox'], input[type='radio'] { display: inline-block; width: 17px; height: 17px; min-height: 17px; padding: 0; flex: 0 0 auto; accent-color: var(--olive); }
  input[type='file'] { padding: 9px; font-size: .85rem; }
  input[type='file']::file-selector-button { border: 0; border-radius: 5px; margin-right: 12px; color: var(--ink); background: var(--olive-light); padding: 5px 10px; font: inherit; }
  textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
  select { padding-right: 35px; }
  hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
  ul, ol { padding-left: 22px; }
  th, td { text-align: left; }
}

@layer components {
  .app-shell { min-height: 100svh; display: flex; flex-direction: column; }
  main { flex: 1; }
  .wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
  .site-header { height: 84px; border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
  .site-header > .wrap { display: flex; align-items: center; gap: 44px; height: 100%; }
  .brand { display: inline-flex; gap: 9px; align-items: center; color: var(--olive); font-weight: 750; font-size: 29px; letter-spacing: -1.6px; flex: 0 0 auto; }
  .brand > small, .brand .domain { font-size: 16px; font-weight: 400; letter-spacing: -.6px; }
  .brand-mark { width: 31px; height: 35px; color: var(--olive); }
  .nav { display: flex; align-items: center; gap: 27px; margin-left: auto; }
  .nav-link { position: relative; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-soft); padding: 28px 0; transition: color .18s; }
  .nav-link:hover, .nav-link.active { color: var(--ink); }
  .nav-link.active::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta); left: calc(50% - 2px); bottom: 17px; }
  .header-actions { display: flex; gap: 14px; align-items: center; flex: 0 0 auto; }
  .header-actions > a:not(.button), .header-actions > button:not(.button):not(.icon-button) { font-size: 13px; }
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; min-height: 47px; padding: 12px 22px; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.4; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
  .button:active { transform: translateY(1px); }
  .button svg { width: 18px; height: 18px; }
  .button.primary { background: var(--olive); color: #fffef4; }
  .button.primary:hover { background: var(--olive-hover); }
  .button.secondary { background: var(--citrus); color: var(--ink); }
  .button.secondary:hover { background: #d7e5a5; }
  .button.outline { background: transparent; border-color: #bdc7b1; }
  .button.outline:hover { background: var(--olive-light); border-color: #9aab8b; }
  .button.soft { background: var(--olive-light); color: var(--olive); }
  .button.soft:hover { background: #dce6cd; }
  .button.small { min-height: 35px; padding: 8px 13px; font-size: 12px; border-radius: 7px; }
  .button.danger { background: #f6e5e0; color: #963d32; border-color: #eac4bc; }
  .button.danger:hover { background: #f1d2ca; }
  .button.full-width { width: 100%; }
  .icon-button, .heart-button, .close-modal { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 50%; transition: background .18s, color .18s; }
  .icon-button svg, .heart-button svg, .close-modal svg { width: 20px; height: 20px; }
  .icon-button:hover, .close-modal:hover { background: var(--olive-light); color: var(--olive); }
  .heart-button:hover, .heart-button.active { color: var(--terracotta); background: var(--terracotta-light); }
  .heart-button.active svg { fill: currentColor; }
  .muted { color: var(--muted); }
  .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: 1.7px; text-transform: uppercase; }
  .eyebrow::before { content: ''; width: 5px; height: 5px; background: var(--terracotta); border-radius: 50%; }
  .badge, .pill, .category { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; width: fit-content; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .1px; padding: 5px 10px; color: var(--ink-soft); background: var(--olive-light); }
  .badge svg, .pill svg, .category svg { width: 12px; height: 12px; }
  .badge.warm, .category.lost { color: #996448; background: #f3e7d7; }
  .badge.success, .category.found { color: #477047; background: #e2edd9; }
  .badge.neutral, .category.again { color: #6c6686; background: #eeebf3; }
  .badge.danger { color: #983e37; background: #f5e0dc; }
  .hero { position: relative; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 28px; padding-top: 58px; padding-bottom: 52px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy .eyebrow { margin-bottom: 24px; }
  .hero-title { font-family: var(--serif); font-size: clamp(2.8rem, 5.05vw, 4.4rem); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; max-width: 650px; }
  .hero-title em { color: var(--terracotta); font-weight: 400; }
  .hero-subtitle { color: var(--ink-soft); font-size: 14px; line-height: 1.85; max-width: 420px; margin-top: 22px; }
  .hero-actions { display: flex; align-items: center; gap: 11px; margin-top: 28px; }
  .hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 27px; font-size: 11px; color: var(--ink-soft); }
  .hero-proof strong { font-weight: 600; color: var(--ink); }
  .hero-art { position: relative; min-width: 0; margin: -10px -16px -6px 0; }
  .hero-art > svg { width: 100%; height: auto; overflow: visible; }
  .avatar-stack { display: flex; align-items: center; padding-left: 0; }
  .avatar-stack > * { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; font-size: 10px; color: var(--ink); background: #d7dfc3; }
  .avatar-stack > :first-child { margin-left: 0; background: #e4d1bd; }
  .avatar-stack > :nth-child(2) { background: #e5ddba; }
  .avatar-stack > :nth-child(3) { background: #c5d1bb; }
  .hero-note, .floating-note { position: absolute; border: 1px solid #e2dfce; background: #fffdf1; box-shadow: 0 6px 20px #384a3120; padding: 14px 17px; border-radius: 10px; font-size: 11px; max-width: 190px; transform: rotate(-5deg); }
  .hero-note { bottom: 8%; left: 3%; }
  .floating-note { right: 2%; top: 13%; transform: rotate(7deg); }
  .hero-note strong, .floating-note strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; margin-bottom: 4px; }
  .doodle-star { position: absolute; color: var(--terracotta); width: 33px; height: 33px; }
  .search-panel { position: relative; z-index: 3; border: 1px solid var(--line); background: var(--surface); padding: 23px 27px 25px; border-radius: 14px; box-shadow: 0 8px 25px #2f403206; }
  .search-panel > h2, .search-panel > h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.6px; margin-bottom: 16px; }
  .search-panel > .eyebrow { margin-bottom: 16px; }
  .search-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr auto; gap: 13px; align-items: end; }
  .search-grid input, .search-grid select { background: var(--paper); min-height: 46px; }
  .search-grid .button { min-height: 46px; }
  .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
  .field > label, .field-label { color: var(--ink-soft); font-size: 11px; font-weight: 550; }
  .field > small, .field > .muted { font-size: 11px; line-height: 1.5; }
  .search-icon { position: relative; }
  .search-icon > svg { position: absolute; top: 14px; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
  .search-icon input { padding-left: 39px; }
  .section { padding-top: 64px; padding-bottom: 4px; }
  .section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 27px; }
  .section-top .eyebrow { margin-bottom: 10px; }
  .section-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.18; letter-spacing: -.9px; }
  .section-subtitle { color: var(--muted); font-size: 12px; max-width: 580px; margin-top: 10px; }
  .section-top > a:not(.button) { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--olive); font-size: 12px; font-weight: 550; }
  .section-top > a > svg { width: 16px; height: 16px; }
  .grid { display: grid; gap: 19px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-card { position: relative; padding: 25px 25px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #f1f3e7; overflow: hidden; display: block; transition: border-color .18s, background .18s; }
  .feature-card:nth-child(2) { background: #f2ede4; }
  .feature-card:nth-child(3) { background: #edefe8; }
  .feature-card:hover { border-color: #aebda0; background: #ebf0df; }
  .feature-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.8px; margin-bottom: 10px; }
  .feature-card p { max-width: 270px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
  .feature-card .button { margin-top: 20px; padding-left: 0; border-radius: 0; min-height: 20px; padding-block: 0; font-size: 11px; }
  .feature-card > svg, .feature-card .feature-icon { margin-bottom: 25px; color: var(--olive); }
  .feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #cbd4bc; border-radius: 50%; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card:nth-child(2) .feature-icon { border-color: #d6c6b5; color: #9b654e; }
  .feature-card:nth-child(3) .feature-icon { border-color: #c7d0bf; }
  .encounter-card { display: flex; flex-direction: column; padding: 22px 22px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; min-width: 0; transition: border-color .18s, transform .18s; }
  .encounter-card:hover { border-color: #aebda0; transform: translateY(-2px); }
  .card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -3px 0 18px; }
  .card-top .heart-button { width: 28px; height: 28px; }
  .card-top .heart-button svg { width: 17px; height: 17px; }
  .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
  .card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
  .card-meta svg { width: 12px; height: 12px; }
  .card-title { margin-bottom: 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
  .card-title a:hover { color: var(--terracotta); }
  .card-description { color: var(--ink-soft); font-size: 12px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
  .card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e8e9df; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 10px; }
  .card-bottom a, .card-bottom button { color: var(--olive); font-size: 11px; font-weight: 550; display: inline-flex; align-items: center; gap: 5px; }
  .card-bottom svg { width: 14px; height: 14px; }
  .location { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
  .location svg { width: 13px; height: 13px; }
  .tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 11px; color: var(--muted); }
  .tab.active { color: var(--olive); background: var(--olive-light); border-color: #d6dec8; }
  .tab:hover { background: var(--olive-light); color: var(--olive); }
  .city-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .city-card { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; background: var(--surface); transition: border-color .18s; }
  .city-card svg { width: 18px; height: 18px; color: var(--terracotta); }
  .city-card:hover { border-color: var(--olive); }
  .city-card small { color: var(--muted); font-size: 10px; }
  .how-section { padding-top: 60px; padding-bottom: 55px; text-align: center; }
  .how-section .eyebrow { justify-content: center; }
  .how-section .section-title { margin-top: 12px; }
  .how-section .section-subtitle { margin-inline: auto; }
  .how-section .grid { margin-top: 34px; gap: 50px; }
  .step-card { position: relative; text-align: left; padding: 0 12px; }
  .step-number { font-family: var(--serif); color: #a3ad92; font-size: 34px; line-height: 1; margin-bottom: 20px; font-style: italic; }
  .step-card h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 12px; }
  .step-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
  .trust-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-top: 56px; padding: 38px 42px; background: var(--olive); color: #fbf9ec; border-radius: 16px; }
  .trust-panel h2 { font-size: 31px; font-weight: 400; max-width: 380px; line-height: 1.2; }
  .trust-panel p { color: #d5dec9; font-size: 12px; line-height: 1.85; margin-top: 14px; max-width: 385px; }
  .trust-panel .eyebrow { color: #cbd7b9; margin-bottom: 12px; }
  .trust-panel .eyebrow::before { background: var(--citrus); }
  .trust-panel .button { margin-top: 20px; }
  .trust-item { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ffffff1f; padding: 13px 0; color: #eef1e3; font-size: 12px; }
  .trust-item:last-child { border-bottom: 0; }
  .trust-item > svg { width: 19px; height: 19px; color: var(--citrus); }
  .profile-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; min-width: 0; }
  .profile-avatar { position: relative; display: flex; align-items: center; justify-content: center; height: 215px; background: #e6e9d9; color: #859974; font-family: var(--serif); font-size: 85px; overflow: hidden; }
  .profile-card:nth-child(3n+2) .profile-avatar { background: #ece0d3; color: #b28b72; }
  .profile-card:nth-child(3n+3) .profile-avatar { background: #e5e4d4; color: #a6a071; }
  .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-avatar .badge { position: absolute; top: 14px; left: 14px; background: #fffef4e6; backdrop-filter: blur(5px); font-family: var(--sans); }
  .profile-avatar .heart-button { position: absolute; bottom: 13px; right: 13px; width: 36px; height: 36px; background: var(--surface); }
  .profile-body { padding: 20px; }
  .profile-body h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 7px; }
  .profile-body > p { color: var(--ink-soft); font-size: 12px; margin-top: 12px; line-height: 1.8; }
  .profile-body .button { width: 100%; margin-top: 17px; }
  .interest-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .interest-chip { display: inline-flex; align-items: center; border-radius: 5px; background: var(--paper-deep); padding: 4px 8px; font-size: 10px; color: var(--ink-soft); }
  .compatibility { color: var(--olive); background: var(--citrus); padding: 5px 9px; border-radius: 6px; font-size: 10px; font-weight: 550; }
  .page-head { padding-top: 45px; padding-bottom: 30px; }
  .page-head .eyebrow { margin-bottom: 13px; }
  .page-head h1 { font-family: var(--serif); font-size: 45px; line-height: 1.1; }
  .page-head p { max-width: 620px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; margin-top: 14px; }
  .page-head .button { margin-top: 17px; }
  .filters { display: flex; gap: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 25px; background: var(--surface); align-items: end; flex-wrap: wrap; }
  .filters .field { flex: 1 1 150px; }
  .filters .field input, .filters .field select { font-size: 12px; min-height: 43px; }
  .filters .button { min-height: 43px; }
  .empty-state { padding: 55px 25px; text-align: center; border: 1px dashed #cdd5bd; border-radius: 13px; background: #f4f5eb; color: var(--muted); }
  .empty-state > svg { margin: 0 auto 18px; width: 36px; height: 36px; color: #8a9b78; }
  .empty-state h2, .empty-state h3 { font-family: var(--serif); color: var(--ink); font-size: 26px; margin-bottom: 12px; }
  .empty-state p { max-width: 420px; margin-inline: auto; font-size: 12px; }
  .empty-state .button { margin-top: 20px; }
  .alert, .notice { display: flex; align-items: start; gap: 10px; padding: 14px 16px; border: 1px solid #d8dfcb; border-radius: 9px; color: #556446; background: #edf1e4; font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
  .alert > svg, .notice > svg { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
  .alert-info { color: #53634e; background: #edf1e4; border-color: #d8dfcb; }
  .alert-warning { color: #89603d; background: #faf1db; border-color: #ebdbad; }
  .alert-success { color: #436341; background: #e9f1e4; border-color: #ccdcbc; }
  .error, .alert.error { color: var(--error); background: #f8eae4; border-color: #e8c5bc; }
  .field .error { background: none; font-size: 11px; }
  .form-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 30px; max-width: 800px; margin-inline: auto; }
  .form-card h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 22px; }
  .form-card h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 17px; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .form-grid > .full-width { grid-column: 1 / -1; }
  .checkbox-row { display: flex; gap: 10px; align-items: start; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
  .checkbox-row input { margin-top: 3px; }
  .checkbox-row a { text-decoration: underline; text-underline-offset: 3px; }
  .checkbox-row + .checkbox-row { margin-top: 12px; }
  .radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
  .radio-group label { display: flex; gap: 7px; align-items: center; color: var(--ink-soft); font-size: 12px; }
  .form-card > .button { margin-top: 24px; }
  .detail-card { border: 1px solid var(--line); background: var(--surface); padding: 36px; border-radius: 15px; max-width: 850px; margin-inline: auto; }
  .detail-card h1 { font-family: var(--serif); font-size: 42px; line-height: 1.2; margin-top: 20px; margin-bottom: 20px; overflow-wrap: anywhere; }
  .detail-card > .card-meta { margin-bottom: 24px; font-size: 12px; gap: 18px; }
  .detail-card .card-meta svg { width: 15px; height: 15px; }
  .prose { color: var(--ink-soft); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
  .prose h2 { color: var(--ink); font-size: 27px; margin: 33px 0 16px; }
  .prose h3 { color: var(--ink); font-family: var(--serif); font-size: 23px; margin: 27px 0 12px; }
  .prose a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
  .prose ul, .prose ol { margin-block: 15px; }
  .prose li + li { margin-top: 9px; }
  .back-link, .breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
  .back-link svg, .breadcrumbs svg { width: 16px; height: 16px; }
  .back-link:hover { color: var(--olive); }
  .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
  .author-row { display: flex; gap: 11px; align-items: center; margin-top: 30px; color: var(--ink-soft); font-size: 12px; }
  .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--olive-light); color: var(--olive); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; font-family: var(--serif); font-size: 19px; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; background: #1a2a23a3; padding: 28px 18px; overflow-y: auto; backdrop-filter: blur(3px); }
  .modal { position: relative; width: 100%; max-width: 470px; max-height: calc(100svh - 56px); overflow: auto; border: 1px solid #e1e3d5; background: var(--surface); border-radius: 17px; box-shadow: 0 24px 90px #12211740; }
  .modal.wide { max-width: 700px; }
  .modal-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 27px 27px 18px; }
  .modal-head h2 { font-family: var(--serif); font-size: 30px; padding-top: 2px; }
  .modal-head .close-modal { margin: -7px -7px 0 0; }
  .modal-head p { color: var(--muted); font-size: 12px; margin-top: 9px; }
  .modal-body { padding: 0 27px 27px; }
  .modal-body .field + .field { margin-top: 15px; }
  .modal-body .checkbox-row { margin-top: 18px; }
  .modal-body .button.full-width { margin-top: 21px; }
  .modal-body > .muted { margin-top: 17px; font-size: 11px; text-align: center; }
  .modal-foot { border-top: 1px solid var(--line); padding: 17px 27px; color: var(--muted); font-size: 11px; text-align: center; background: var(--paper); }
  .modal-foot a, .modal-foot button { color: var(--olive); }
  .auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .auth-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 10px; background: transparent; color: var(--muted); font-size: 12px; }
  .auth-tabs button.active { color: var(--olive); border-bottom-color: var(--olive); }
  .recovery-panel { border: 1px solid #d6dfc4; border-radius: 11px; padding: 22px; background: #f0f3e5; }
  .recovery-panel h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
  .recovery-panel p { color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
  .recovery-panel .button { margin-top: 18px; }
  .recovery-code, .code-block { display: block; padding: 13px; border-radius: 7px; background: #fffef8; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; margin-top: 12px; }
  .recovery-code { font-size: 24px; letter-spacing: 3px; text-align: center; font-weight: 550; }
  .toast-stack { position: fixed; z-index: 150; bottom: 25px; right: 25px; display: flex; flex-direction: column; gap: 10px; max-width: min(390px, calc(100vw - 40px)); }
  .toast { display: flex; align-items: start; gap: 10px; padding: 14px 18px; background: var(--olive); color: #fffef5; border: 1px solid #6c805d; border-radius: 10px; box-shadow: 0 8px 30px #29352730; font-size: 12px; line-height: 1.7; animation: toast-in .2s ease-out; }
  .toast.error { background: #8b4438; color: #fff7f2; border-color: #a55e52; }
  .toast > svg { width: 18px; height: 18px; margin-top: 1px; }
  .skeleton { border-radius: 10px; background: linear-gradient(90deg, #e9ecdf 20%, #f3f4ec 45%, #e9ecdf 70%); background-size: 300% 100%; animation: skeleton 1.6s linear infinite; min-height: 22px; }
  .loading { padding: 55px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; gap: 10px; }
  .spinner { width: 17px; height: 17px; border: 2px solid #ced6c3; border-top-color: var(--olive); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
  .mobile-menu { display: none; }
  .site-footer { margin-top: 70px; padding: 38px 0 0; border-top: 1px solid var(--line); }
  .footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 35px; }
  .footer-grid .brand { font-size: 26px; }
  .footer-grid .brand-mark { width: 27px; height: 31px; }
  .footer-grid > div > p { color: var(--muted); font-size: 11px; max-width: 250px; line-height: 1.9; margin-top: 14px; }
  .footer-links { display: flex; flex-direction: column; align-items: start; gap: 10px; font-size: 11px; color: var(--ink-soft); }
  .footer-links h4 { color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0; margin: 4px 0 5px; }
  .footer-links a:hover { color: var(--terracotta); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-block: 19px; color: var(--muted); font-size: 10px; }
  .footer-bottom > span:last-child { display: flex; align-items: center; gap: 6px; }
  .footer-bottom svg { width: 12px; height: 12px; }
  .inbox-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 580px; max-height: 750px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
  .conversation-list { border-right: 1px solid var(--line); overflow-y: auto; background: #f5f5ec; }
  .conversation-list > h2, .conversation-list > h3 { font-family: var(--serif); font-size: 24px; padding: 20px; border-bottom: 1px solid var(--line); }
  .conversation-item { display: flex; width: 100%; gap: 12px; padding: 17px; border: 0; border-bottom: 1px solid #e4e7da; background: transparent; text-align: left; color: var(--ink); }
  .conversation-item:hover, .conversation-item.active { background: #e8edda; }
  .conversation-item > div:not(.avatar) { min-width: 0; flex: 1; }
  .conversation-item strong { display: block; font-size: 12px; font-weight: 550; }
  .conversation-item small { color: var(--muted); font-size: 10px; }
  .conversation-item .badge { margin-top: 5px; font-size: 9px; padding: 2px 6px; }
  .unread { position: relative; }
  .unread::after { content: ''; position: absolute; right: 13px; top: 23px; width: 7px; height: 7px; background: var(--terracotta); border-radius: 50%; }
  .conversation-preview { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; margin-top: 4px; }
  .chat-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 22px; }
  .chat-head > div { display: flex; flex-direction: column; gap: 2px; }
  .chat-head h2, .chat-head h3 { font-family: var(--serif); font-size: 23px; }
  .chat-head p, .chat-head small { color: var(--muted); font-size: 10px; }
  .chat-head .inline-actions { flex-direction: row; }
  .messages { display: flex; flex-direction: column; align-items: start; gap: 14px; flex: 1; overflow-y: auto; padding: 24px; min-height: 280px; background: #fffef9; }
  .message { max-width: 82%; border-radius: 12px 12px 12px 3px; padding: 11px 14px; background: #eff1e7; font-size: 12px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
  .message.own { align-self: end; background: var(--olive); color: #f9f9ed; border-radius: 12px 12px 3px 12px; }
  .message-meta { display: flex; gap: 6px; align-items: center; justify-content: end; margin-top: 6px; color: #859079; font-size: 9px; white-space: normal; }
  .message.own .message-meta { color: #cbd6be; }
  .composer { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--paper); align-items: end; }
  .composer textarea { min-height: 44px; max-height: 130px; padding: 11px 12px; font-size: 12px; resize: vertical; }
  .composer .button { min-height: 44px; padding: 12px 16px; }
  .chat-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 20px; background: #f1f4e8; border-bottom: 1px solid var(--line); }
  .chat-actions .button { font-size: 10px; min-height: 30px; padding: 6px 10px; }
  .chat-panel > .alert { margin: 15px 20px 0; }
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 24px; }
  .admin-tabs .tab { font-size: 12px; }
  .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
  .stat-value { font-family: var(--serif); font-size: 36px; line-height: 1.2; color: var(--olive); }
  .stat-label { color: var(--muted); font-size: 11px; margin-top: 7px; }
  .stat-card > svg { color: var(--terracotta); width: 19px; height: 19px; margin-bottom: 18px; }
  .table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .table-wrap th { color: var(--muted); background: #f0f2e7; font-weight: 550; font-size: 10px; padding: 13px 16px; white-space: nowrap; }
  .table-wrap td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); max-width: 330px; overflow-wrap: anywhere; }
  .table-wrap td strong { color: var(--ink); font-weight: 550; }
  .table-wrap td .button { font-size: 10px; }
  .table-wrap td .badge { white-space: nowrap; }
  .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .admin-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px; }
  .admin-card h2, .admin-card h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 20px; }
  .admin-card p { color: var(--muted); font-size: 12px; }
  .admin-card .field + .field { margin-top: 15px; }
  .admin-card > .button { margin-top: 20px; }
  .admin-row { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .admin-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .admin-row:first-child { padding-top: 0; }
  .admin-row h3, .admin-row h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 550; margin-bottom: 6px; }
  .admin-row p { font-size: 11px; color: var(--muted); }
  .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #769b5c; margin-right: 5px; }
  .status-dot.busy { background: var(--terracotta); }
  .status-dot.invisible { background: #a3a999; }
  .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
  .pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 11px; }
  .pagination .button { min-height: 36px; padding: 8px 13px; font-size: 11px; }
  .section > .pagination { margin-bottom: 20px; }
  .demo-banner { text-align: center; padding: 7px 20px; color: #776044; background: #f2ead7; border-bottom: 1px solid #e8ddc5; font-size: 10px; line-height: 1.5; }
  .demo-banner strong { font-weight: 550; }
  .visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: -70px; left: 15px; z-index: 200; padding: 10px 16px; color: white; background: var(--olive); border-radius: 7px; }
  .skip-link:focus { top: 10px; }
  #app { min-height: 100svh; display: flex; flex-direction: column; }
  #app > main { flex: 1; }
  .icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex: 0 0 auto; }
  .brand-mark { display: inline-flex; align-items: center; justify-content: center; }
  .brand-mark .icon { width: 29px; height: 29px; stroke-width: 2; }
  .brand-dot { margin-left: -7px; font-size: 17px; letter-spacing: -.6px; font-weight: 400; color: var(--ink-soft); }
  .mobile-toggle { display: none; }
  .text-button { display: inline-flex; align-items: center; justify-content: start; gap: 6px; color: var(--ink-soft); padding: 0; border: 0; background: transparent; font-size: 12px; line-height: 1.6; text-align: left; }
  .text-button:hover { color: var(--terracotta); }
  .text-button .icon { width: 15px; height: 15px; }
  .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--olive); font-size: 12px; font-weight: 550; line-height: 1.6; }
  .text-link:hover { color: var(--terracotta); }
  .text-link .icon { width: 15px; height: 15px; }
  .input-icon { position: relative; }
  .input-icon > .icon { position: absolute; left: 12px; top: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
  .input-icon > input { padding-left: 38px; }
  .search-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
  .search-panel-heading h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; }
  .search-panel-heading p { color: var(--muted); font-size: 11px; }
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow .status-dot { margin: 0 3px 0 0; background: var(--terracotta); }
  .hero-proof > .icon { width: 15px; height: 15px; color: #81916e; }
  .floating-note.note-top { display: flex; align-items: center; gap: 7px; top: 15%; right: -1%; max-width: 205px; font-size: 10px; transform: rotate(7deg); padding: 12px 14px; }
  .floating-note.note-top .icon { width: 14px; height: 14px; color: var(--terracotta); }
  .floating-note.note-bottom { display: flex; align-items: center; gap: 10px; left: -3%; bottom: 9%; right: auto; top: auto; transform: rotate(-7deg); font-size: 10px; padding: 14px 17px; }
  .floating-note.note-bottom strong { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin-bottom: 0; }
  .note-heart { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 50%; background: #eee4d8; color: var(--terracotta); }
  .note-heart .icon { width: 18px; height: 18px; }
  .small-star { display: inline-block; margin-left: 10px; color: var(--terracotta); font-family: var(--sans); font-size: 25px; vertical-align: top; transform: rotate(16deg); }
  .pathways { margin-top: 44px; }
  .pathways .feature-card { display: flex; align-items: start; gap: 21px; padding: 29px; }
  .pathways .feature-card .feature-icon { flex: 0 0 auto; margin: 0; }
  .pathways .feature-card > div { min-width: 0; }
  .pathways .eyebrow { font-size: 8px; letter-spacing: 1.1px; margin-bottom: 12px; }
  .pathways .eyebrow::before { display: none; }
  .pathways .feature-card h3 { font-size: 28px; }
  .pathways .feature-card p { max-width: 100%; }
  .pathways .text-link { margin-top: 20px; font-size: 11px; }
  .pathways .feature-card.warm { background: #f2ede4; }
  .pathways .feature-card.warm .feature-icon { color: #9b654e; border-color: #d6c6b5; }
  .city-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .city-card { display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 4px; padding: 18px 10px 14px; min-width: 0; background: #f2f3e8; }
  .city-card > .city-art { width: 128px; height: 62px; color: #6c7f59; margin-bottom: 9px; }
  .city-card:nth-child(2n) { background: #f3eee3; }
  .city-card:nth-child(2n) > .city-art { color: #aa8964; }
  .city-card > strong { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: -.3px; }
  .city-card > span { display: flex; align-items: center; gap: 4px; font-size: 8px; margin-top: 4px; color: var(--muted); }
  .city-card > span .icon { width: 11px; height: 11px; color: inherit; }
  .section-top.centered { justify-content: center; text-align: center; }
  .page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
  .page-head > .button { flex: 0 0 auto; margin-top: 0; }
  .page-head.centered { display: block; text-align: center; max-width: 760px; margin-inline: auto; padding-bottom: 34px; }
  .page-head.centered p { margin-inline: auto; }
  .page-head.centered .eyebrow { justify-content: center; }
  .centered { text-align: center; }
  .centered > .eyebrow { justify-content: center; }
  .compact { margin-top: 19px; margin-bottom: 27px; padding: 20px; }
  .filter-bottom { display: flex; align-items: center; gap: 12px; margin-top: 15px; border-top: 1px solid #e8eadd; padding-top: 14px; }
  .filter-bottom > label { color: var(--muted); font-size: 10px; }
  .filter-bottom > select { width: 180px; min-height: 33px; padding: 6px 11px; font-size: 11px; background: transparent; }
  .filter-bottom > .muted { margin-left: auto; font-size: 10px; }
  .grid > .empty-state, .grid > .loading, .grid > .alert { grid-column: 1 / -1; }
  #recent > .skeleton { min-height: 255px; }
  .encounter-card > .card-meta { margin-bottom: 11px; }
  .found-badge { margin-top: 14px; align-self: start; color: #477047; background: #e2edd9; }
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 25px; }
  .detail-layout > .form-card, .detail-layout > .detail-card { min-width: 0; width: 100%; max-width: none; margin-inline: 0; }
  .detail-layout > aside { min-width: 0; }
  .detail-layout > aside .notice { display: block; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #eef1e3; color: var(--ink); font-size: 12px; }
  .detail-layout > aside .notice .feature-icon { width: 38px; height: 38px; margin-bottom: 18px; }
  .detail-layout > aside .notice h3 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 24px; margin-bottom: 13px; letter-spacing: -.6px; }
  .detail-layout > aside .notice h3 .icon { width: 18px; height: 18px; }
  .detail-layout > aside .notice p { color: var(--ink-soft); font-size: 11px; line-height: 1.9; }
  .detail-layout > aside .notice.minimal { background: transparent; }
  .detail-layout > aside .notice .text-link { margin-top: 16px; font-size: 11px; }
  .example-note { font-family: var(--serif); font-size: 18px; line-height: 1.6; font-style: italic; color: #7b825d; padding-top: 17px; margin-top: 18px; border-top: 1px solid #d8dfc9; }
  .detail-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
  .author-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
  .author-row > span:nth-child(2) small { font-size: 10px; }
  .author-row > .pill { margin-left: auto; font-size: 9px; }
  .small-avatar { width: 35px; height: 35px; font-size: 17px; }
  .detail-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 23px; }
  .detail-foot .text-button { font-size: 10px; color: var(--muted); }
  .detail-foot .text-button:hover { color: var(--terracotta); }
  .challenge-answer { display: flex; gap: 12px; align-items: center; }
  .challenge-answer > input { max-width: 175px; }
  .challenge-answer > .text-button { font-size: 10px; white-space: nowrap; }
  .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; border-top: 1px solid var(--line); margin-top: 3px; padding-top: 23px; }
  .form-actions > .muted { font-size: 10px; max-width: 230px; }
  .trust-item > span { display: flex; flex-direction: column; gap: 3px; }
  .trust-item strong { font-weight: 550; font-size: 12px; }
  .trust-item small { color: #cbd7bd; font-size: 10px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-links > strong { color: var(--ink); font-size: 11px; font-weight: 550; margin: 4px 0 5px; }
  .footer-links > .text-button { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes skeleton { to { background-position: -300% 0; } }
  @keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
}

@layer responsive {
  @media (min-width: 1440px) {
    .hero { padding-block: 70px 60px; }
  }
  @media (max-width: 1080px) {
    .site-header > .wrap { gap: 24px; }
    .nav { gap: 19px; }
    .nav-link { font-size: 12px; }
    .header-actions { gap: 9px; }
    .header-actions .button { padding-inline: 14px; font-size: 12px; }
    .hero-title { font-size: clamp(2.7rem, 5.2vw, 3.9rem); }
    .hero { gap: 12px; }
    .search-grid { grid-template-columns: 1fr 1fr 1.1fr auto; gap: 9px; }
    .search-grid .button { padding-inline: 15px; font-size: 12px; }
    .encounter-card { padding: 20px 18px 16px; }
    .card-title { font-size: 21px; }
    .feature-card { padding: 23px 21px; }
    .feature-card h3 { font-size: 23px; }
    .trust-panel { gap: 30px; padding: 35px; }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 20px; }
    .detail-layout > aside .notice { padding: 22px; }
    .pathways .feature-card { padding: 25px 22px; gap: 16px; }
    .pathways .feature-card h3 { font-size: 26px; }
    .pathways .eyebrow { letter-spacing: .8px; }
    .city-card > .city-art { width: 110px; height: 55px; }
    .city-card > strong { font-size: 17px; }
  }
  @media (max-width: 900px) {
    .wrap { width: min(1160px, calc(100% - 42px)); }
    .site-header { height: 74px; }
    .site-header > .wrap { gap: 18px; }
    .brand { font-size: 27px; }
    .brand-mark { width: 28px; height: 31px; }
    .nav { gap: 16px; }
    .nav-link { font-size: 11px; }
    .nav-link.active::after { bottom: 15px; }
    .header-actions { gap: 7px; }
    .header-actions .button { font-size: 11px; min-height: 38px; padding: 9px 11px; }
    .header-actions > a:not(.button), .header-actions > button:not(.button):not(.icon-button) { font-size: 11px; }
    .hero { padding-top: 46px; padding-bottom: 40px; grid-template-columns: 1.13fr .87fr; gap: 4px; }
    .hero-title { font-size: 46px; }
    .hero-copy .eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 20px; }
    .hero-subtitle { font-size: 12px; margin-top: 19px; }
    .hero-actions .button { font-size: 11px; padding-inline: 15px; min-height: 44px; }
    .hero-actions { gap: 8px; margin-top: 22px; }
    .hero-proof { font-size: 10px; margin-top: 23px; gap: 8px; }
    .hero-note, .floating-note { padding: 10px 12px; font-size: 9px; max-width: 150px; }
    .hero-note strong, .floating-note strong { font-size: 14px; }
    .search-panel { padding: 20px; }
    .search-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .search-grid .button { width: 100%; }
    .section { padding-top: 48px; }
    .section-title { font-size: 30px; }
    .section-top { gap: 15px; margin-bottom: 23px; }
    .grid { gap: 14px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .feature-card h3 { font-size: 22px; }
    .feature-card p { font-size: 11px; }
    .feature-card { padding: 20px 18px; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 20px; }
    .feature-card .button { font-size: 10px; }
    .encounter-card { padding: 18px 15px 15px; }
    .card-title { font-size: 21px; }
    .card-description { font-size: 11px; }
    .card-bottom { font-size: 9px; }
    .card-bottom a, .card-bottom button { font-size: 10px; }
    .card-meta { font-size: 9px; gap: 6px; }
    .trust-panel { gap: 25px; padding: 30px; }
    .trust-panel h2 { font-size: 27px; }
    .trust-panel p, .trust-item { font-size: 11px; }
    .how-section .grid { gap: 20px; }
    .step-card { padding-inline: 5px; }
    .step-card h3 { font-size: 22px; }
    .footer-grid { gap: 25px; grid-template-columns: 1.6fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 2 / 4; display: flex; flex-direction: row; align-items: center; gap: 16px; }
    .footer-grid > :last-child h4 { margin: 0; }
    .inbox-layout { grid-template-columns: 245px minmax(0,1fr); }
    .conversation-item { padding: 15px 12px; gap: 9px; }
    .conversation-item .avatar { width: 33px; height: 33px; }
    .conversation-preview { max-width: 165px; }
    .settings-grid { gap: 17px; }
    .admin-card { padding: 20px; }
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .detail-layout > aside .notice { margin: 0; }
    .pathways .feature-card { padding: 23px 20px; gap: 14px; }
    .pathways .feature-card h3 { font-size: 24px; }
    .pathways .eyebrow { font-size: 7px; }
    .city-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .city-card > .city-art { width: 140px; height: 65px; }
    .city-card > strong { font-size: 20px; }
    .city-card > span { font-size: 9px; }
    .footer-grid > :last-child { grid-column: auto; display: flex; flex-direction: column; align-items: start; gap: 10px; }
  }
  @media (max-width: 720px) {
    .wrap { width: calc(100% - 36px); }
    .site-header { height: 69px; }
    .site-header > .wrap { justify-content: space-between; }
    .brand { font-size: 27px; }
    .brand-mark { width: 28px; height: 31px; }
    .nav { display: none; position: absolute; top: 68px; left: 0; width: 100%; background: var(--paper); padding: 12px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 14px #2635220d; }
    .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { padding: 11px 9px; font-size: 13px; }
    .nav-link.active { background: var(--olive-light); border-radius: 7px; }
    .nav-link.active::after { display: none; }
    .header-actions { margin-left: auto; gap: 10px; }
    .header-actions .button { min-height: 35px; padding: 8px 12px; font-size: 11px; }
    .header-actions .icon-button { width: 31px; height: 31px; }
    .mobile-menu { display: flex; }
    .hero { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 20px; gap: 0; }
    .hero-copy { max-width: 560px; }
    .hero-copy .eyebrow { margin-bottom: 20px; }
    .hero-title { font-size: clamp(42px, 8.5vw, 62px); max-width: 600px; line-height: 1.09; }
    .hero-subtitle { max-width: 410px; font-size: 13px; margin-top: 21px; }
    .hero-actions { margin-top: 23px; }
    .hero-actions .button { min-height: 45px; padding-inline: 19px; font-size: 12px; }
    .hero-proof { margin-top: 22px; font-size: 10px; }
    .hero-art { margin: 5px auto -8px; width: min(410px, 92%); }
    .hero-note { bottom: 12%; left: -3%; }
    .floating-note { right: -1%; top: 14%; }
    .hero-note, .floating-note { max-width: 156px; font-size: 9px; }
    .hero-note strong, .floating-note strong { font-size: 15px; }
    .search-panel { padding: 20px; border-radius: 12px; }
    .search-panel > h2, .search-panel > h3 { font-size: 22px; }
    .search-grid { gap: 12px; }
    .search-grid .field-label, .search-grid .field > label { font-size: 10px; }
    .search-grid .field:nth-child(3) { grid-column: 1 / -1; }
    .search-grid .button { grid-column: 1 / -1; }
    .section { padding-top: 42px; }
    .section-top { align-items: start; gap: 16px; flex-wrap: wrap; margin-bottom: 21px; }
    .section-title { font-size: 29px; }
    .section-subtitle { font-size: 12px; line-height: 1.8; }
    .section-top > a:not(.button) { font-size: 11px; margin-top: 4px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { gap: 12px; }
    .feature-card { padding: 23px; display: grid; grid-template-columns: 42px 1fr; column-gap: 18px; }
    .feature-card .feature-icon { grid-row: 1 / 4; margin: 0; width: 42px; height: 42px; }
    .feature-card h3 { font-size: 25px; margin-bottom: 9px; }
    .feature-card p { max-width: 100%; font-size: 12px; }
    .feature-card .button { justify-content: start; grid-column: 2; margin-top: 15px; font-size: 11px; }
    .feature-card > svg { grid-row: 1 / 4; width: 30px; }
    .encounter-card { padding: 22px; }
    .card-title { font-size: 25px; margin-bottom: 12px; }
    .card-description { font-size: 12px; -webkit-line-clamp: 3; }
    .card-meta { font-size: 10px; gap: 10px; }
    .card-bottom { font-size: 10px; padding-top: 14px; }
    .card-bottom a, .card-bottom button { font-size: 11px; }
    .card-top { margin-bottom: 17px; }
    .city-strip { gap: 8px; }
    .city-card { padding: 10px 13px; font-size: 11px; gap: 7px; }
    .city-card svg { width: 16px; height: 16px; }
    .how-section { padding-top: 45px; padding-bottom: 35px; }
    .how-section .grid { gap: 26px; margin-top: 28px; }
    .step-card { position: relative; text-align: left; padding-left: 57px; }
    .step-number { position: absolute; left: 0; top: 0; font-size: 32px; }
    .step-card h3 { font-size: 24px; margin-bottom: 9px; }
    .step-card p { font-size: 12px; }
    .trust-panel { grid-template-columns: 1fr; gap: 22px; padding: 29px 25px; margin-top: 36px; }
    .trust-panel h2 { font-size: 30px; max-width: 100%; }
    .trust-panel p { font-size: 12px; max-width: 100%; }
    .trust-item { font-size: 12px; padding-block: 12px; }
    .trust-panel .button { margin-top: 18px; }
    .profile-card { display: grid; grid-template-columns: 135px 1fr; }
    .profile-avatar { height: 100%; min-height: 225px; font-size: 65px; }
    .profile-body { padding: 20px 17px; }
    .profile-body h3 { font-size: 24px; }
    .profile-body p { font-size: 11px; margin-top: 11px; }
    .profile-body .button { font-size: 10px; margin-top: 14px; min-height: 34px; padding: 8px 10px; }
    .profile-avatar .badge { top: 10px; left: 9px; font-size: 8px; padding: 4px 7px; }
    .profile-avatar .heart-button { width: 31px; height: 31px; bottom: 10px; right: 9px; }
    .interest-list { gap: 5px; margin-top: 10px; }
    .interest-chip { font-size: 9px; padding: 3px 6px; }
    .page-head { padding-top: 34px; padding-bottom: 25px; }
    .page-head h1 { font-size: 36px; }
    .page-head p { font-size: 12px; line-height: 1.8; margin-top: 13px; }
    .page-head .eyebrow { font-size: 9px; margin-bottom: 11px; }
    .filters { padding: 16px; gap: 12px; }
    .filters .field { flex-basis: calc(50% - 6px); }
    .filters .button { width: 100%; }
    .filters .field input, .filters .field select { font-size: 11px; }
    .form-card { padding: 23px 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 18px; }
    .form-card h2 { font-size: 27px; }
    .field > label, .field-label { font-size: 11px; }
    input, select, textarea { font-size: 16px; }
    .field > small, .field > .muted { font-size: 10px; }
    .checkbox-row { font-size: 11px; }
    .detail-card { padding: 25px 21px; }
    .detail-card h1 { font-size: 32px; margin-top: 18px; }
    .detail-card > .card-meta { font-size: 10px; gap: 11px; margin-bottom: 22px; }
    .detail-card .prose { font-size: 13px; }
    .detail-actions { margin-top: 25px; padding-top: 20px; gap: 8px; }
    .detail-actions .button { font-size: 11px; padding: 11px 15px; }
    .detail-actions .button.primary { width: 100%; }
    .back-link, .breadcrumbs { font-size: 11px; margin-bottom: 20px; }
    .prose { font-size: 13px; }
    .prose h2 { font-size: 26px; }
    .empty-state { padding: 35px 20px; }
    .modal-backdrop { padding: 18px 13px; }
    .modal { border-radius: 13px; max-height: calc(100svh - 36px); }
    .modal-head { padding: 23px 22px 17px; }
    .modal-head h2 { font-size: 28px; }
    .modal-body { padding: 0 22px 23px; }
    .modal-foot { padding: 16px 22px; }
    .modal-body .field input, .modal-body .field select, .modal-body .field textarea { font-size: 16px; }
    .modal-body .field > label { font-size: 11px; }
    .recovery-panel { padding: 19px 17px; }
    .recovery-panel h3 { font-size: 23px; }
    .recovery-code { font-size: 21px; letter-spacing: 2px; }
    .site-footer { margin-top: 50px; padding-top: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 25px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 14px; }
    .footer-grid > div > p { max-width: 330px; }
    .footer-links { font-size: 11px; gap: 10px; }
    .footer-bottom { align-items: start; gap: 12px; font-size: 9px; }
    .footer-bottom > span:last-child { text-align: right; }
    .inbox-layout { grid-template-columns: 1fr; max-height: none; min-height: 0; }
    .conversation-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
    .conversation-list > h2, .conversation-list > h3 { padding: 16px 18px; font-size: 22px; }
    .conversation-item { padding: 13px 15px; }
    .conversation-preview { max-width: 260px; }
    .chat-panel { min-height: 450px; max-height: 650px; }
    .chat-head { padding: 15px 17px; }
    .chat-head h2, .chat-head h3 { font-size: 22px; }
    .messages { padding: 20px 17px; min-height: 270px; gap: 13px; }
    .message { max-width: 88%; font-size: 12px; padding: 10px 12px; }
    .composer { padding: 13px; gap: 8px; }
    .composer textarea { font-size: 16px; }
    .composer .button { padding-inline: 13px; }
    .composer .button span { display: none; }
    .chat-actions { padding: 11px 15px; gap: 6px; }
    .chat-actions .button { font-size: 9px; padding: 6px 8px; }
    .settings-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 18px; }
    .stat-value { font-size: 30px; }
    .stat-label { font-size: 10px; }
    .stat-card > svg { width: 17px; height: 17px; margin-bottom: 14px; }
    .admin-tabs { gap: 4px; }
    .admin-tabs .tab { font-size: 10px; padding: 8px 10px; }
    .admin-card { padding: 21px 18px; }
    .admin-card h2, .admin-card h3 { font-size: 24px; }
    .admin-row { flex-wrap: wrap; }
    .table-wrap th, .table-wrap td { padding: 11px 12px; }
    .toast-stack { bottom: 17px; right: 17px; max-width: calc(100vw - 34px); }
    .toast { font-size: 11px; padding: 12px 15px; }
    .demo-banner { padding: 7px 15px; font-size: 9px; }
    .mobile-toggle { display: inline-flex; }
    .brand-dot { font-size: 15px; margin-left: -7px; }
    .header-actions .text-button { font-size: 11px; }
    .header-actions .desktop-label { display: none; }
    .header-actions .button > .icon { width: 15px; height: 15px; }
    .floating-note.note-top { top: 16%; right: -2%; font-size: 9px; max-width: 185px; padding: 10px 12px; }
    .floating-note.note-bottom { top: auto; right: auto; bottom: 11%; left: -1%; width: max-content; padding: 11px 14px; }
    .floating-note.note-bottom strong { font-size: 16px; }
    .hero .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
    .hero-proof { font-size: 9px; gap: 7px; }
    .hero-proof > .icon { width: 14px; height: 14px; }
    .search-panel-heading { display: block; margin-bottom: 18px; }
    .search-panel-heading h2 { font-size: 25px; }
    .search-panel-heading p { margin-top: 6px; font-size: 10px; }
    .search-grid .field input, .search-grid .field select { font-size: 16px; }
    .input-icon > .icon { top: 14px; }
    .pathways { gap: 13px; margin-top: 30px; }
    .pathways .feature-card { gap: 17px; padding: 24px 21px; }
    .pathways .feature-card > .feature-icon { width: 37px; height: 37px; }
    .pathways .eyebrow { font-size: 7px; letter-spacing: 1px; margin-bottom: 10px; }
    .pathways .feature-card h3 { font-size: 26px; }
    .pathways .feature-card p { font-size: 11px; }
    .pathways .text-link { margin-top: 16px; font-size: 10px; }
    .city-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .city-card { padding: 13px 6px; }
    .city-card > .city-art { width: 100px; height: 48px; margin-bottom: 6px; }
    .city-card > strong { font-size: 18px; }
    .city-card > span { font-size: 7px; gap: 2px; }
    .city-card > span .icon { width: 9px; height: 9px; }
    .page-head { align-items: start; flex-wrap: wrap; gap: 19px; }
    .page-head > .button { min-height: 39px; padding: 10px 14px; font-size: 11px; }
    .page-head.centered { padding-bottom: 25px; }
    .filter-bottom { gap: 9px; flex-wrap: wrap; }
    .filter-bottom > label { font-size: 9px; }
    .filter-bottom > select { width: 160px; font-size: 11px; }
    .filter-bottom > .muted { width: 100%; margin: 3px 0 0; font-size: 9px; }
    .compact { margin-top: 16px; margin-bottom: 21px; padding: 17px; }
    .detail-layout { gap: 20px; }
    .detail-layout > aside { grid-template-columns: 1fr; gap: 15px; }
    .detail-layout > aside .notice { padding: 23px; }
    .detail-layout > aside .notice h3 { font-size: 25px; }
    .detail-layout > aside .notice p { font-size: 12px; }
    .detail-body { font-size: 13px; }
    .detail-foot { gap: 17px; margin-top: 20px; }
    .detail-foot .text-button { font-size: 10px; }
    .author-row { gap: 9px; flex-wrap: wrap; }
    .author-row > .pill { font-size: 8px; padding: 4px 7px; }
    .author-row > span:nth-child(2) small { font-size: 9px; }
    .challenge-answer { gap: 11px; }
    .challenge-answer > input { max-width: 170px; }
    .challenge-answer > .text-button { font-size: 9px; }
    .form-actions { display: block; padding-top: 20px; }
    .form-actions > .button { width: 100%; }
    .form-actions > .muted { text-align: center; max-width: none; margin-top: 13px; font-size: 9px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :last-child { grid-column: auto; flex-direction: column; gap: 10px; }
    .footer-links > strong { font-size: 10px; line-height: 1.7; }
    .footer-links > .text-button { font-size: 10px; }
    .footer-links { font-size: 10px; }
  }
  @media (max-width: 380px) {
    .wrap { width: calc(100% - 28px); }
    .header-actions > .button.primary > .icon { display: none; }
    .header-actions { gap: 6px; }
    .header-actions .button { padding-inline: 9px; font-size: 10px; }
    .brand { font-size: 24px; gap: 6px; }
    .brand-mark { width: 25px; height: 28px; }
    .hero-title { font-size: 39px; }
    .hero-subtitle { font-size: 12px; }
    .hero-actions { gap: 7px; }
    .hero-actions .button { font-size: 11px; padding-inline: 14px; }
    .feature-card { padding: 21px 18px; grid-template-columns: 35px 1fr; gap: 14px; }
    .feature-card .feature-icon { width: 35px; height: 35px; }
    .feature-card h3 { font-size: 23px; }
    .search-panel { padding: 17px; }
    .profile-card { grid-template-columns: 110px 1fr; }
    .profile-body { padding: 17px 14px; }
    .profile-body h3 { font-size: 23px; }
    .brand-dot { font-size: 14px; margin-left: -6px; }
    .header-actions .desktop-label { display: none; }
    .header-actions .button { min-width: 31px; padding: 7px; }
    .pathways .feature-card { gap: 14px; padding: 22px 18px; }
    .pathways .feature-card h3 { font-size: 24px; }
    .city-card > strong { font-size: 16px; }
    .city-card > span { font-size: 6.5px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
  @media print {
    .site-header, .site-footer, .hero-art, .modal-backdrop, .toast-stack, .header-actions, .button, .filters { display: none !important; }
    body { background: white; color: black; font-size: 11pt; }
    .wrap { width: 100%; }
    .detail-card, .form-card { border: 0; padding: 0; }
    .page-head { padding-top: 0; }
  }
}
