/* Shared LostLink theme, page layout and accessible interactions. */
:root {
  --ll-page-bg: #f6f8fb;
  --ll-surface: #ffffff;
  --ll-ink: #18263b;
  --ll-muted: #66758a;
  --ll-line: #e1e7ef;
  --ll-blue: #246cdb;
  --ll-blue-strong: #1956b7;
  --ll-blue-soft: #eaf3ff;
  --ll-shadow: 0 18px 55px rgba(27, 53, 85, .08);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #121d2e;
  --ink: #edf4ff;
  --muted: #a2b1c7;
  --line: #26364b;
  --green: #70baff;
  --green-dark: #4899f1;
  --green-soft: #172c45;
  --lime: #19344b;
  --orange: #ffbd8a;
  --orange-soft: #39291f;
  --blue: #7cc3ff;
  --blue-soft: #172d45;
  --ll-page-bg: #0b1220;
  --ll-surface: #121d2e;
  --ll-ink: #edf4ff;
  --ll-muted: #a2b1c7;
  --ll-line: #26364b;
  --ll-blue: #72baff;
  --ll-blue-strong: #90cbff;
  --ll-blue-soft: #172d45;
  --ll-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}
.theme-toggle {
  width: 40px; height: 40px; flex: 0 0 40px; display: inline-grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line, #dce4ed); color: var(--ink, #18263b);
  background: var(--surface, #fff); transition: transform .16s, background .16s, border-color .16s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: #8bbced; }
.theme-toggle svg { width: 18px; height: 18px; }
.brand-mark { background: transparent !important; box-shadow: none !important; overflow: visible; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-nav-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 650; padding: 9px 8px; border-radius: 9px; white-space: nowrap; }
.site-nav-link:hover { color: var(--ink); background: var(--green-soft); }
.footer-links { flex-wrap: wrap; }
.footer-links a { white-space: nowrap; }
/* Dark theme: main application surfaces */
html[data-theme="dark"] body,
html[data-theme="dark"] .app { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(13, 22, 37, .92); border-color: var(--line); }
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .feed-title,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .empty h2,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .detail-title,
html[data-theme="dark"] .auth-heading,
html[data-theme="dark"] .auth-brand-copy strong,
html[data-theme="dark"] .admin-empty strong { color: var(--ink) !important; }
html[data-theme="dark"] .nav button:hover,
html[data-theme="dark"] .btn-quiet:hover { background: #1a2a40; color: var(--ink); }
html[data-theme="dark"] .nav button.active,
html[data-theme="dark"] .tab.active { background: var(--green-soft); color: var(--green); }
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .search,
html[data-theme="dark"] .select,
html[data-theme="dark"] .sort-label select,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .prototype-label { background: #111e30; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .hero { background: linear-gradient(112deg, #121e30 0%, #122239 62%, #122c40 100%); border-color: #263e59; box-shadow: var(--ll-shadow); }
html[data-theme="dark"] .hero h1 em { color: #74bdff; }
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .feed-subtitle,
html[data-theme="dark"] .card-description,
html[data-theme="dark"] .details-row,
html[data-theme="dark"] .empty p,
html[data-theme="dark"] .detail-desc,
html[data-theme="dark"] .fact,
html[data-theme="dark"] .response-card p { color: #a5b5ca; }
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .admin-empty,
html[data-theme="dark"] .admin-request,
html[data-theme="dark"] .response-card { background: #121e30; border-color: var(--line); }
html[data-theme="dark"] .card-image,
html[data-theme="dark"] .detail-image,
html[data-theme="dark"] .upload-area { background: #18273b; }
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .filter-row,
html[data-theme="dark"] .modal-header { border-color: var(--line); }
html[data-theme="dark"] .card-action { background: #193653; color: #9fd4ff; }
html[data-theme="dark"] .card-action.neutral { background: #202c3e; color: #c0cede; }
html[data-theme="dark"] .modal,
html[data-theme="dark"] .auth-card { background: #111d2e; color: var(--ink); border-color: #26384f; }
html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .auth-note,
html[data-theme="dark"] .admin-security { background: #172b42; color: #b9cce1; border-color: #294361; }
html[data-theme="dark"] .type-option { background: #111d2e; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .type-option.active,
html[data-theme="dark"] .auth-role.active,
html[data-theme="dark"] .auth-mode.active { background: #1a3552; border-color: #4389cb; color: #a8d8ff; }
html[data-theme="dark"] .footer { background: #0c1524; border-color: var(--line); color: #90a1b8; }
html[data-theme="dark"] .footer strong,
html[data-theme="dark"] .footer-links a { color: #bbcae0; }
html[data-theme="dark"] .auth-brand-copy strong span { color: #72baff !important; }
html[data-theme="dark"] .toast { background: #1e4c7c; }
html[data-theme="dark"] ::placeholder { color: #73849c !important; }
/* Informational pages */
.site-page { min-height: 100vh; background: var(--ll-page-bg); color: var(--ll-ink); display: flex; flex-direction: column; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.7; }
.site-top { border-bottom: 1px solid var(--ll-line) !important; background: var(--ll-surface) !important; }
.site-top-inner { max-width: 1120px !important; margin: 0 auto; padding: 0 24px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ll-ink); font-weight: 800; letter-spacing: -.6px; }
.site-brand img { width: 36px; height: 36px; }
.site-brand span span { color: var(--ll-blue); }
.site-top-actions { display: flex; align-items: center; gap: 10px; }
.site-top nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-top nav a { padding: 8px 7px; border-radius: 8px; }
.site-top nav a:hover { background: var(--ll-blue-soft); }
.site-content { width: min(100% - 40px, 1000px); margin: 0 auto; padding: 44px 0 72px; flex: 1; }
.site-content.narrow { max-width: 820px; }
.showcase-logo { display: block; width: min(100%, 280px); height: auto; margin-bottom: 22px; }
.site-hero { border: 1px solid var(--ll-line); background: linear-gradient(120deg, var(--ll-surface), var(--ll-blue-soft)); border-radius: 23px; padding: clamp(25px, 5vw, 46px); box-shadow: var(--ll-shadow); margin-bottom: 28px; }
.site-eyebrow { color: var(--ll-blue); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 11px; }
.site-content h1 { color: var(--ll-ink); font-size: clamp(31px, 5vw, 46px); letter-spacing: -1.5px; line-height: 1.1; margin: 0 0 13px; }
.site-content h2 { color: var(--ll-ink); font-size: 20px; letter-spacing: -.45px; margin: 27px 0 8px; }
.site-content h3 { color: var(--ll-ink); }
.site-content p, .site-content li { color: var(--ll-muted); line-height: 1.75; }
.site-lead { max-width: 700px; font-size: 16px; line-height: 1.8 !important; }
.site-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.site-card { background: var(--ll-surface); border: 1px solid var(--ll-line); border-radius: 16px; padding: 22px; box-shadow: 0 3px 12px rgba(25, 55, 90, .035); }
.site-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--ll-blue); background: var(--ll-blue-soft); margin-bottom: 14px; }
.site-card svg { width: 21px; height: 21px; }
.site-card h2, .site-card h3 { margin: 0 0 8px; font-size: 17px; }
.site-card p { margin: 0; font-size: 13px; }
.site-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--ll-blue); border-radius: 10px; color: #fff; background: var(--ll-blue); font-weight: 700; text-decoration: none; font-size: 13px; cursor: pointer; }
.site-button:hover { background: var(--ll-blue-strong); }
.site-button.secondary { color: var(--ll-ink); background: var(--ll-surface); border-color: var(--ll-line); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.82fr); gap: 16px; align-items: start; }
.site-form { background: var(--ll-surface); border: 1px solid var(--ll-line); border-radius: 18px; padding: clamp(20px, 4vw, 30px); box-shadow: var(--ll-shadow); }
.site-form label { display: block; color: var(--ll-ink); font-weight: 650; font-size: 13px; margin-bottom: 7px; }
.site-form input, .site-form select, .site-form textarea, .faq-search { width: 100%; border: 1px solid var(--ll-line); border-radius: 10px; background: var(--ll-page-bg); color: var(--ll-ink); padding: 12px 13px; outline: none; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus, .faq-search:focus { border-color: var(--ll-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ll-blue) 16%, transparent); }
.site-form textarea { resize: vertical; min-height: 135px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-field.full { grid-column: 1 / -1; }
.site-form .form-note { color: var(--ll-muted); font-size: 12px; margin: 9px 0 16px; }
.site-note { border: 1px solid var(--ll-line); background: var(--ll-blue-soft); padding: 14px 16px; border-radius: 13px; margin: 20px 0; color: var(--ll-muted); font-size: 13px; }
.site-note strong { color: var(--ll-ink); }
.site-contact-link { color: var(--ll-blue); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.site-contact-link:hover { text-decoration: underline; }
.faq-list { margin-top: 20px; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--ll-line); background: var(--ll-surface); border-radius: 13px; padding: 0 16px; }
.faq-list summary { color: var(--ll-ink); cursor: pointer; list-style: none; font-weight: 700; padding: 16px 24px 16px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 22px; font-weight: 400; color: var(--ll-blue); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 17px; margin: 0; font-size: 13px; }
.faq-empty { display: none; padding: 18px; color: var(--ll-muted); }
.site-footer { border-top: 1px solid var(--ll-line); background: var(--ll-surface); color: var(--ll-muted); padding: 22px 20px; font-size: 12px; }
.site-footer-inner { max-width: 1120px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--ll-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ll-blue); }
html[data-theme="dark"] .site-page { background: var(--ll-page-bg); color: var(--ll-ink); }
html[data-theme="dark"] .site-hero { background: linear-gradient(120deg, #121d2e, #142840); border-color: var(--ll-line); }
html[data-theme="dark"] .site-card, html[data-theme="dark"] .site-form, html[data-theme="dark"] .faq-list details { background: #121d2e; border-color: var(--ll-line); }
html[data-theme="dark"] .site-form input, html[data-theme="dark"] .site-form select, html[data-theme="dark"] .site-form textarea, html[data-theme="dark"] .faq-search { background: #0d1727; border-color: var(--ll-line); color: var(--ll-ink); }
html[data-theme="dark"] .site-note { background: #172d45; border-color: #29415c; }
html[data-theme="dark"] .site-footer { background: #0c1524; border-color: var(--ll-line); }
html[data-theme="dark"] .site-page .meta { color: #91a4bc; }
html[data-theme="dark"] .site-page .notice { border-color: #29415c; background: #172d45; }
html[data-theme="dark"] .site-page p, html[data-theme="dark"] .site-page li { color: var(--ll-muted); }
@media(max-width: 900px) { .site-nav-link { display: none; } }
@media(max-width: 700px) { .site-cards { grid-template-columns: 1fr; } .contact-layout { grid-template-columns: 1fr; } .site-content { width: min(100% - 30px, 1000px); padding-top: 28px; } .site-top-inner { height: auto !important; min-height: 66px; padding-top: 10px !important; padding-bottom: 10px !important; flex-wrap: wrap; gap: 8px 12px; } .site-top nav { order: 3; flex: 1 0 100%; gap: 3px; } .site-top-actions { margin-left: auto; } .site-top nav a { font-size: 12px; } .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: auto; } .site-footer-inner { align-items: flex-start; flex-direction: column; } }
@media(max-width: 440px) { .site-top nav a:nth-child(n+4) { display: none; } .theme-toggle { width: 36px; height: 36px; flex-basis: 36px; } }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* LostLink visual refresh: unified palette, softer surfaces, and intentional motion. */
:root {
  color-scheme: light;
  --bg: #f7f7ff;
  --surface: #ffffff;
  --ink: #1b1b36;
  --muted: #6b6d88;
  --line: #e7e6f3;
  --green: #6558f5;
  --green-dark: #5144dc;
  --green-soft: #f0eeff;
  --lime: #dbfbf4;
  --orange: #b45309;
  --orange-soft: #fff2e7;
  --blue: #3478e5;
  --blue-soft: #edf3ff;
  --shadow: 0 24px 70px rgba(45, 39, 112, .10);
  --radius: 18px;
  --ll-page-bg: #f7f7ff;
  --ll-surface: #ffffff;
  --ll-ink: #1b1b36;
  --ll-muted: #6b6d88;
  --ll-line: #e7e6f3;
  --ll-blue: #6558f5;
  --ll-blue-strong: #5144dc;
  --ll-blue-soft: #f0eeff;
  --ll-shadow: 0 24px 70px rgba(45, 39, 112, .10);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1020;
  --surface: #151a2c;
  --ink: #f4f3ff;
  --muted: #a3a7c2;
  --line: #292d47;
  --green: #a49aff;
  --green-dark: #b7b0ff;
  --green-soft: #24213f;
  --lime: #143b3d;
  --orange: #ffbd86;
  --orange-soft: #3b2a25;
  --blue: #8ab6ff;
  --blue-soft: #1b2c49;
  --shadow: 0 26px 74px rgba(0, 0, 0, .30);
  --ll-page-bg: #0d1020;
  --ll-surface: #151a2c;
  --ll-ink: #f4f3ff;
  --ll-muted: #a3a7c2;
  --ll-line: #292d47;
  --ll-blue: #a49aff;
  --ll-blue-strong: #b7b0ff;
  --ll-blue-soft: #24213f;
  --ll-shadow: 0 26px 74px rgba(0, 0, 0, .30);
}
html { scroll-behavior: smooth; }
body, .app, .site-page, .topbar, .footer, .site-top, .site-footer,
.post-card, .modal, .auth-card, .site-card, .site-form, .faq-list details,
.search, .select, .field input, .field textarea, .field select,
.auth-field input, .site-form input, .site-form select, .site-form textarea {
  transition: background-color .24s ease, color .24s ease, border-color .24s ease;
}
body { background: var(--bg); color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent);
  outline-offset: 3px;
}
/* Header: translucent, crisp, and easy to scan. */
.topbar {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.brand-mark, .auth-brand-mark { background: linear-gradient(135deg, var(--green), #8c7dff); }
.brand-name span, .auth-brand-copy strong span { color: var(--green) !important; }
.nav button { transition: color .22s ease, background-color .22s ease, transform .22s ease; }
.nav button:hover { background: var(--green-soft); color: var(--ink); transform: translateY(-1px); }
.nav button.active { background: var(--green-soft); color: var(--green); }
.prototype-label { background: var(--surface); border-color: var(--line); }
.prototype-label i { background: #18b6a0; box-shadow: 0 0 0 3px color-mix(in srgb, #18b6a0 13%, transparent); }
.btn {
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), #8174ff);
  box-shadow: 0 7px 17px color-mix(in srgb, var(--green) 22%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-dark), #7163f4);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--green) 30%, transparent);
}
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--green-soft); }
.btn-quiet:hover { background: var(--green-soft); color: var(--ink); }
/* Hero and listing controls. */
.main { max-width: 1240px; }
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid color-mix(in srgb, var(--green) 15%, var(--line));
  border-radius: 26px;
  background: linear-gradient(118deg, var(--surface) 0%, color-mix(in srgb, var(--green-soft) 73%, var(--surface)) 75%, color-mix(in srgb, #b8e8ff 24%, var(--surface)) 100%);
  box-shadow: 0 14px 42px color-mix(in srgb, var(--green) 7%, transparent);
  overflow: hidden;
  animation: llFadeUp .48s cubic-bezier(.2,.8,.2,1) both;
}
.hero::after {
  width: 390px; height: 390px; right: -125px; bottom: -265px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 20%, transparent) 0%, color-mix(in srgb, #58d6d0 9%, transparent) 43%, transparent 72%);
}
.eyebrow { color: var(--green); letter-spacing: 1.6px; }
.eyebrow:before { background: linear-gradient(90deg, var(--green), #38c4ba); }
.hero h1 em { color: var(--green); }
.hero p { color: var(--muted); }
.feed-head { margin-top: 4px; }
.feed-title { color: var(--ink); }
.feed-subtitle, .sort-label { color: var(--muted); }
.search, .select, .sort-label select { background-color: var(--surface); color: var(--ink); border-color: var(--line); }
.search:focus, .field input:focus, .field textarea:focus, .field select:focus, .auth-field input:focus {
  border-color: color-mix(in srgb, var(--green) 60%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent);
}
.filter-row { border-color: var(--line); }
.tab { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.tab:hover { background: var(--green-soft); color: var(--ink); }
.tab.active { background: var(--green-soft); color: var(--green); }
.grid { gap: 18px; }
.post-card {
  border-color: var(--line);
  border-radius: 19px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--ink) 3%, transparent);
  animation: llFadeUp .42s cubic-bezier(.2,.8,.2,1) both;
}
.post-card:nth-child(2) { animation-delay: .045s; }
.post-card:nth-child(3) { animation-delay: .09s; }
.post-card:nth-child(4) { animation-delay: .135s; }
.post-card:nth-child(5) { animation-delay: .18s; }
.post-card:nth-child(6) { animation-delay: .225s; }
.post-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--green) 12%, transparent);
}
.card-image { background: color-mix(in srgb, var(--green-soft) 54%, var(--bg)); }
.type-pill.lost, .tag.lost { background: #fff0df; color: #a54b08; }
.type-pill.found, .tag.found { background: #dff8f0; color: #087e6b; }
.card-footer { border-top-color: var(--line); }
.card-action { background: var(--green-soft); color: var(--green); transition: background .2s ease, transform .2s ease; }
.card-action:hover { background: color-mix(in srgb, var(--green) 17%, var(--green-soft)); transform: translateY(-1px); }
.card-action.neutral { background: color-mix(in srgb, var(--muted) 9%, var(--surface)); color: var(--muted); }
.empty, .admin-empty { background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: var(--line); }
.empty-icon { color: var(--green); background: var(--green-soft); }
/* Dialogs and authentication receive matching, smooth motion. */
.modal-backdrop, .auth-backdrop { background: color-mix(in srgb, #0a0c1c 55%, transparent); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.modal { border: 1px solid color-mix(in srgb, var(--surface) 70%, var(--line)); border-radius: 22px; box-shadow: 0 30px 90px rgba(9, 10, 35, .25); animation: llModalIn .28s cubic-bezier(.2,.8,.2,1) both; }
.modal-header { border-bottom-color: var(--line); }
.modal-title, .auth-heading { color: var(--ink); }
.modal-subtitle { color: var(--muted); }
.icon-btn { color: var(--muted); background: var(--surface); border-color: var(--line); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.icon-btn:hover { transform: rotate(3deg); }
.auth-backdrop { animation: llBackdropIn .22s ease both; }
.auth-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--green) 12%, var(--line));
  border-radius: 26px;
  box-shadow: 0 32px 100px rgba(9, 10, 35, .30);
  padding: clamp(22px, 4vw, 32px);
  animation: llModalIn .36s cubic-bezier(.2,.8,.2,1) both;
}
.auth-heading { font-size: clamp(24px, 3vw, 28px); letter-spacing: -1px; }
.auth-lead { color: var(--muted); }
.auth-role-switch { background: color-mix(in srgb, var(--bg) 75%, var(--surface)); border-color: var(--line); }
.auth-role { color: var(--muted); border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.auth-role:hover { color: var(--ink); transform: translateY(-1px); }
.auth-role.active { background: var(--surface); color: var(--green); border-color: color-mix(in srgb, var(--green) 22%, var(--line)); box-shadow: 0 4px 12px color-mix(in srgb, var(--green) 9%, transparent); }
.auth-mode { transition: color .2s ease, border-color .2s ease; }
.auth-mode.active { color: var(--green); border-bottom-color: var(--green); }
.auth-field label { color: var(--ink); }
.auth-field input { color: var(--ink); background: var(--surface); border-color: var(--line); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-google {
  height: 48px;
  color: #30313a;
  background: #fff;
  border-color: #dadce0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(20, 20, 40, .04);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.auth-google:hover { background: #fff; border-color: #b8bdc5; box-shadow: 0 5px 15px rgba(25, 28, 40, .09); transform: translateY(-1px); }
.auth-google:active { transform: translateY(0) scale(.99); }
.auth-google .google-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; }
.auth-divider { color: var(--muted); }
.auth-note, .privacy-callout { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 12%, var(--line)); color: var(--muted); }
.auth-note svg, .privacy-callout svg { color: var(--green); }
.auth-small { color: var(--muted); }
.auth-close { transition: transform .2s ease, background .2s ease; }
.auth-close:hover { transform: rotate(90deg); }
.footer { background: var(--surface); border-top-color: var(--line); color: var(--muted); }
.footer strong, .footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--green); }
/* Content pages share the same design language. */
.site-page { background: var(--ll-page-bg); color: var(--ll-ink); }
.site-top { background: color-mix(in srgb, var(--ll-surface) 88%, transparent) !important; backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); }
.site-brand span span { color: var(--ll-blue); }
.site-top nav a { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.site-top nav a:hover { background: var(--ll-blue-soft); transform: translateY(-1px); }
.site-hero { border-radius: 26px; animation: llFadeUp .42s cubic-bezier(.2,.8,.2,1) both; }
.site-card { border-radius: 19px; transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease, background-color .24s ease; }
.site-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ll-blue) 28%, var(--ll-line)); box-shadow: 0 15px 36px color-mix(in srgb, var(--ll-blue) 10%, transparent); }
.site-button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.site-button:hover { transform: translateY(-2px); box-shadow: 0 7px 16px color-mix(in srgb, var(--ll-blue) 18%, transparent); }
.site-form, .faq-list details { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--ll-blue) 34%, var(--ll-line)); box-shadow: 0 6px 20px color-mix(in srgb, var(--ll-blue) 7%, transparent); }
.faq-list summary::after { transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(180deg); }
@keyframes llFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes llBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes llModalIn { from { opacity: 0; transform: translateY(13px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Dark mode uses the same hierarchy and accent—not the previous blue override. */
html[data-theme="dark"] body,
html[data-theme="dark"] .app { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: var(--line); }
html[data-theme="dark"] .brand-name span, html[data-theme="dark"] .auth-brand-copy strong span { color: #a49aff !important; }
html[data-theme="dark"] .hero { background: linear-gradient(118deg, #151a2c 0%, #211e3c 74%, #192b3b 100%); border-color: #333052; box-shadow: 0 16px 44px rgba(0,0,0,.20); }
html[data-theme="dark"] .hero::after { background: radial-gradient(circle, rgba(132, 115, 255, .20) 0%, rgba(55, 205, 193, .08) 43%, transparent 72%); }
html[data-theme="dark"] .hero h1 em { color: #a49aff; }
html[data-theme="dark"] .search, html[data-theme="dark"] .select,
html[data-theme="dark"] .sort-label select, html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select,
html[data-theme="dark"] .auth-field input, html[data-theme="dark"] .prototype-label { background: #111629; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .post-card, html[data-theme="dark"] .empty,
html[data-theme="dark"] .admin-empty, html[data-theme="dark"] .admin-request,
html[data-theme="dark"] .response-card { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .card-image, html[data-theme="dark"] .detail-image,
html[data-theme="dark"] .upload-area { background: #20253b; }
html[data-theme="dark"] .card-footer, html[data-theme="dark"] .filter-row,
html[data-theme="dark"] .modal-header { border-color: var(--line); }
html[data-theme="dark"] .card-action { background: #292546; color: #c2bbff; }
html[data-theme="dark"] .card-action.neutral { background: #24283b; color: #c0c3d7; }
html[data-theme="dark"] .modal, html[data-theme="dark"] .auth-card { background: #151a2c; color: var(--ink); border-color: #333052; }
html[data-theme="dark"] .auth-role-switch { background: #111629; border-color: var(--line); }
html[data-theme="dark"] .auth-role.active { background: #24213f; border-color: #5449a3; color: #c2bbff; }
html[data-theme="dark"] .auth-mode.active { color: #b7b0ff; border-bottom-color: #a49aff; }
html[data-theme="dark"] .auth-note, html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .admin-security { background: #22213b; color: #bbb8d6; border-color: #383454; }
html[data-theme="dark"] .type-option { background: #151a2c; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .type-option.active { background: #24213f; border-color: #6558f5; color: #c2bbff; }
html[data-theme="dark"] .footer { background: #0b0e1b; border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .footer strong, html[data-theme="dark"] .footer-links a { color: #b4b7cf; }
html[data-theme="dark"] .site-hero { background: linear-gradient(120deg, #151a2c, #211e3c); border-color: var(--line); }
html[data-theme="dark"] .site-card, html[data-theme="dark"] .site-form,
html[data-theme="dark"] .faq-list details { background: #151a2c; border-color: var(--line); }
html[data-theme="dark"] .site-form input, html[data-theme="dark"] .site-form select,
html[data-theme="dark"] .site-form textarea, html[data-theme="dark"] .faq-search { background: #111629; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .site-note { background: #22213b; border-color: #383454; }
html[data-theme="dark"] .site-footer { background: #0b0e1b; border-color: var(--line); }
html[data-theme="dark"] .site-top { border-color: var(--line) !important; }
html[data-theme="dark"] .auth-google { background: #fff; color: #30313a; border-color: #dadce0; }
html[data-theme="dark"] .auth-google:hover { background: #fff; border-color: #b8bdc5; }
@media (max-width: 620px) {
  .hero { border-radius: 21px; padding: 24px 20px; }
  .post-card:hover, .site-card:hover { transform: translateY(-2px); }
  .auth-card { border-radius: 24px 24px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========================================================================
   LOSTLINK RELEASE DESIGN SYSTEM — graphite, soft lime, glass surfaces
   This final layer intentionally unifies the app and all content pages.
   ======================================================================== */
:root {
  --bg: #070809;
  --surface: #111315;
  --ink: #f2f4ed;
  --muted: #a0a49b;
  --line: #2a2d29;
  --green: #c8f36b;
  --green-dark: #b2df53;
  --green-soft: #20251a;
  --lime: #e3ffa0;
  --orange: #ffc18f;
  --orange-soft: #39271b;
  --blue: #aaa0ff;
  --blue-soft: #242139;
  --ll-page-bg: #08090a;
  --ll-surface: #111315;
  --ll-ink: #f2f4ed;
  --ll-muted: #a0a49b;
  --ll-line: #2a2d29;
  --ll-blue: #c8f36b;
  --ll-blue-strong: #b2df53;
  --ll-blue-soft: #20251a;
  --ll-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --brand-text: #c8f36b;
  --focus-ring: rgba(200, 243, 107, .55);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070809;
  --surface: #111315;
  --ink: #f2f4ed;
  --muted: #a0a49b;
  --line: #2a2d29;
  --green: #c8f36b;
  --green-dark: #b2df53;
  --green-soft: #20251a;
  --lime: #e3ffa0;
  --orange: #ffc18f;
  --orange-soft: #39271b;
  --blue: #aaa0ff;
  --blue-soft: #242139;
  --ll-page-bg: #08090a;
  --ll-surface: #111315;
  --ll-ink: #f2f4ed;
  --ll-muted: #a0a49b;
  --ll-line: #2a2d29;
  --ll-blue: #c8f36b;
  --ll-blue-strong: #b2df53;
  --ll-blue-soft: #20251a;
  --ll-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --brand-text: #c8f36b;
  --focus-ring: rgba(200, 243, 107, .55);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4ef;
  --surface: #fff;
  --ink: #1a1d17;
  --muted: #62685f;
  --line: #dfe3d8;
  --green: #506d20;
  --green-dark: #3d5715;
  --green-soft: #edf4df;
  --lime: #c8f36b;
  --orange: #96501f;
  --orange-soft: #fff0e2;
  --blue: #6454b6;
  --blue-soft: #f0edff;
  --ll-page-bg: #f3f4ef;
  --ll-surface: #fff;
  --ll-ink: #1a1d17;
  --ll-muted: #62685f;
  --ll-line: #dfe3d8;
  --ll-blue: #506d20;
  --ll-blue-strong: #3d5715;
  --ll-blue-soft: #edf4df;
  --ll-shadow: 0 24px 70px rgba(29, 38, 18, .09);
  --brand-text: #506d20;
  --focus-ring: rgba(80, 109, 32, .35);
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body, .site-page, .app { background: var(--bg); color: var(--ink); }
body { transition: background-color .22s ease, color .22s ease; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
::selection { color: #15190d; background: var(--green); }

/* Home app shell + glass sticky navigation */
.topbar {
  height: auto; min-height: 78px; position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
html[data-theme="light"] .topbar { background: rgba(250, 251, 247, .82); box-shadow: 0 8px 30px rgba(30, 40, 20, .04); }
.topbar-inner { min-height: 78px; max-width: 1320px; padding: 10px clamp(15px, 3vw, 36px); gap: clamp(12px, 2vw, 26px); }
.brand { min-width: 155px; gap: 11px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; flex: 0 0 42px; background: transparent !important; box-shadow: none !important; }
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { color: var(--ink); font-size: 21px; font-weight: 820; letter-spacing: -1px; }
.brand-name span { color: var(--brand-text) !important; }
.nav { gap: 3px; min-width: 0; }
.nav button, .site-nav-link {
  border-radius: 10px; padding: 10px 11px; font-size: 12px; font-weight: 690;
  color: var(--muted); transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav button:hover, .nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 74%, var(--green-soft)); transform: translateY(-1px); }
.nav button.active { background: var(--green-soft); color: var(--brand-text); }
.top-actions { gap: 8px; }
.theme-toggle, .site-menu-toggle {
  width: 42px; height: 42px; flex: 0 0 42px; display: inline-grid; place-items: center;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); border-radius: 13px; cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover, .site-menu-toggle:hover { transform: translateY(-2px); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 42%, var(--line)); box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.theme-toggle:active, .site-menu-toggle:active { transform: scale(.96); }
.theme-toggle svg, .site-menu-toggle svg { width: 19px; height: 19px; }
.site-menu-toggle, #mobileMenuToggle { display: none; }
.prototype-label { color: var(--muted); background: var(--surface); border-color: var(--line); }
.prototype-label i { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.btn { border-radius: 12px; min-height: 42px; padding: 10px 15px; font-size: 12px; font-weight: 740; letter-spacing: -.05px; }
.btn-primary { color: #171b10 !important; background: var(--green); border-color: var(--green); box-shadow: 0 5px 17px color-mix(in srgb, var(--green) 15%, transparent); }
.btn-primary:hover { color: #13170b !important; background: var(--lime); border-color: var(--lime); box-shadow: 0 8px 24px color-mix(in srgb, var(--green) 22%, transparent); transform: translateY(-2px); }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-secondary:hover { background: color-mix(in srgb, var(--surface) 78%, var(--green-soft)); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); transform: translateY(-1px); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover { background: var(--green-soft); color: var(--ink); }

/* Homepage hierarchy */
.main { width: min(100%, 1320px); max-width: 1320px; padding: clamp(22px, 4vw, 48px) clamp(15px, 3vw, 36px) 76px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; align-items: center; gap: 28px;
  padding: clamp(28px, 4.5vw, 54px); margin-bottom: clamp(27px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--green) 19%, var(--line)); border-radius: 30px;
  background: radial-gradient(ellipse at 89% 6%, color-mix(in srgb, var(--green) 10%, transparent), transparent 37%),
              linear-gradient(132deg, color-mix(in srgb, var(--surface) 93%, var(--green-soft)), var(--surface) 55%, color-mix(in srgb, var(--surface) 86%, var(--blue-soft)));
  box-shadow: var(--ll-shadow); animation: llFadeUp .55s cubic-bezier(.2,.8,.2,1) both;
}
.hero::after { width: 420px; height: 420px; right: -160px; bottom: -290px; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--green) 18%, transparent), transparent 68%); }
.eyebrow { color: var(--brand-text); font-size: 11px; letter-spacing: 1.8px; font-weight: 850; }
.eyebrow:before { background: var(--green); width: 25px; height: 2px; }
.hero h1 { max-width: 780px; font-size: clamp(36px, 5.6vw, 62px); letter-spacing: -2.8px; line-height: 1.04; font-weight: 800; }
.hero h1 em { color: var(--brand-text); }
.hero p { max-width: 600px; color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.8; }
.hero-actions { gap: 10px; padding-bottom: 0; }
.section-line { background: var(--line); margin-bottom: 26px; }
.feed-head { margin-bottom: 17px; gap: 20px; }
.feed-title { color: var(--ink); font-size: 21px; letter-spacing: -.65px; }
.feed-subtitle { color: var(--muted); font-size: 13px; line-height: 1.7; }
.feed-controls { gap: 12px; margin-bottom: 20px; }
.search-wrap { max-width: 560px; }
.search, .select, .sort-label select {
  background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 13px;
  min-height: 46px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search:focus, .select:focus, .sort-label select:focus, .field input:focus, .field textarea:focus, .field select:focus, .auth-field input:focus {
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); outline: 0;
}
.filter-row { border-bottom-color: var(--line); }
.tabs { gap: 6px; }
.tab { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: 12px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.tab:hover { background: var(--green-soft); color: var(--ink); transform: translateY(-1px); }
.tab.active { background: var(--green-soft); color: var(--brand-text); }
.grid { gap: 18px; }
.post-card {
  overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 5px 22px rgba(0,0,0,.055); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--green) 42%, var(--line)); box-shadow: 0 19px 42px rgba(0,0,0,.16), 0 0 0 1px color-mix(in srgb, var(--green) 5%, transparent); }
.card-title { color: var(--ink); letter-spacing: -.35px; }
.card-description, .details-row, .detail-desc, .fact { color: var(--muted); }
.card-image, .detail-image, .upload-area { background: color-mix(in srgb, var(--surface) 78%, var(--green-soft)); }
.card-footer, .filter-row, .modal-header { border-color: var(--line); }
.card-action { background: var(--green-soft); color: var(--brand-text); border-radius: 10px; transition: transform .2s ease, background .2s ease; }
.card-action:hover { background: color-mix(in srgb, var(--green) 20%, var(--green-soft)); transform: translateY(-1px); }
.card-action.neutral { background: color-mix(in srgb, var(--muted) 10%, var(--surface)); color: var(--muted); }
.type-pill.lost, .tag.lost { color: #ffd0a5; background: #3a281d; }
.type-pill.found, .tag.found { color: #b8edcf; background: #193429; }
html[data-theme="light"] .type-pill.lost, html[data-theme="light"] .tag.lost { color: #8d440e; background: #fff0df; }
html[data-theme="light"] .type-pill.found, html[data-theme="light"] .tag.found { color: #08765f; background: #e0f6ea; }
.empty, .admin-empty, .admin-request, .response-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
.empty-icon { color: var(--brand-text); background: var(--green-soft); }
.empty h2, .admin-empty strong, .modal-title, .detail-title, .auth-heading { color: var(--ink); }
.empty p, .admin-empty, .response-card p { color: var(--muted); }
.modal-backdrop, .auth-backdrop { background: rgba(3,4,3,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal, .auth-card {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 32px 100px rgba(0,0,0,.38); animation: llModalIn .28s cubic-bezier(.2,.8,.2,1) both;
}
.modal-subtitle, .auth-lead, .auth-divider, .auth-small { color: var(--muted); }
.icon-btn { color: var(--muted); background: var(--surface); border-color: var(--line); border-radius: 11px; }
.icon-btn:hover { color: var(--ink); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.auth-brand-mark { color: var(--green); }
.auth-brand-copy strong { color: var(--ink); letter-spacing: -.6px; }
.auth-brand-copy strong span { color: var(--brand-text) !important; }
.auth-role-switch { background: color-mix(in srgb, var(--bg) 72%, var(--surface)); border-color: var(--line); }
.auth-role, .auth-mode { color: var(--muted); }
.auth-role.active { background: var(--surface); color: var(--brand-text); border-color: color-mix(in srgb, var(--green) 34%, var(--line)); box-shadow: 0 4px 15px color-mix(in srgb, var(--green) 8%, transparent); }
.auth-mode.active { color: var(--brand-text); border-bottom-color: var(--green); }
.auth-field label { color: var(--ink); }
.auth-field input, .field input, .field textarea, .field select { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 11px; }
.auth-google { background: #fff !important; color: #242424 !important; border: 1px solid #dadce0 !important; border-radius: 12px; font-weight: 680; min-height: 48px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.auth-google:hover { background: #fff !important; border-color: #b5bac1 !important; box-shadow: 0 8px 19px rgba(0,0,0,.16); transform: translateY(-1px); }
.auth-google .google-icon { width: 20px; height: 20px; }
.auth-note, .privacy-callout, .admin-security { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 14%, var(--line)); color: var(--muted); }
.auth-note svg, .privacy-callout svg { color: var(--brand-text); }
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.footer strong, .footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand-text); }
#storageNote { color: var(--muted); font-size: 12px; }
.toast { background: #20251a; border: 1px solid #3c4a2a; color: #e3ffa0; box-shadow: 0 12px 32px rgba(0,0,0,.24); }
html[data-theme="light"] .toast { background: #1d2812; color: #e5ffc1; }
::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent) !important; opacity: 1; }

/* Reusable informational pages */
.site-page { min-height: 100vh; background: var(--ll-page-bg); color: var(--ll-ink); font-size: 15px; line-height: 1.75; }
.site-top {
  position: sticky; top: 0; z-index: 70; width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--ll-line) 83%, transparent) !important;
  background: color-mix(in srgb, var(--ll-page-bg) 80%, transparent) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0,0,0,.055);
}
.site-top-inner { min-height: 78px !important; height: auto !important; max-width: 1320px !important; padding: 10px clamp(15px, 3vw, 36px) !important; gap: 18px; }
.site-brand { color: var(--ll-ink); gap: 10px; min-width: max-content; font-size: 21px; letter-spacing: -1px; }
.site-brand img { width: 42px; height: 42px; }
.site-brand span span { color: var(--brand-text) !important; }
.site-top nav { flex: 1; justify-content: center; gap: 4px; }
.site-top nav a { color: var(--ll-muted); padding: 9px 12px; border-radius: 10px; font-weight: 680; font-size: 12px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.site-top nav a:hover { color: var(--ll-ink); background: var(--ll-blue-soft); transform: translateY(-1px); }
.site-top nav a[aria-current="page"] { color: var(--brand-text); background: var(--green-soft); }
.site-top-actions { gap: 8px; }
.site-top .site-menu-toggle { display: none; }
.site-button { min-height: 42px; border-radius: 12px; padding: 10px 15px; background: var(--ll-blue); color: #171b10; border-color: var(--ll-blue); font-size: 12px; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.site-button:hover { background: var(--ll-blue-strong); transform: translateY(-2px); box-shadow: 0 8px 23px color-mix(in srgb, var(--ll-blue) 17%, transparent); }
.site-button.secondary { background: var(--ll-surface); color: var(--ll-ink); border-color: var(--ll-line); }
.site-button.secondary:hover { background: var(--ll-blue-soft); border-color: color-mix(in srgb, var(--ll-blue) 30%, var(--ll-line)); }
.site-content { width: min(100% - 48px, 1040px); padding: clamp(32px, 5vw, 58px) 0 84px; }
.site-content.narrow { max-width: 850px; }
.site-hero { position: relative; overflow: hidden; border-radius: 28px; border-color: var(--ll-line); background: radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--ll-blue) 11%, transparent), transparent 38%), linear-gradient(135deg, var(--ll-surface), color-mix(in srgb, var(--ll-surface) 90%, var(--ll-blue-soft))); padding: clamp(27px, 5vw, 52px); box-shadow: var(--ll-shadow); }
.site-eyebrow { color: var(--brand-text); font-size: 11px; font-weight: 850; letter-spacing: 1.8px; }
.site-content h1 { color: var(--ll-ink); font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -2px; font-weight: 810; }
.site-content h2 { color: var(--ll-ink); font-size: clamp(19px, 2vw, 23px); letter-spacing: -.6px; margin-top: 34px; }
.site-content h3 { color: var(--ll-ink); }
.site-content p, .site-content li { color: var(--ll-muted); line-height: 1.8; }
.site-lead { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.8 !important; }
.showcase-logo { width: min(100%, 300px); max-height: 80px; object-fit: contain; object-position: left center; margin-bottom: 25px; }
.site-cards { gap: 17px; margin: 25px 0 30px; }
.site-card { border-color: var(--ll-line); background: var(--ll-surface); border-radius: 20px; padding: clamp(20px, 2.5vw, 27px); box-shadow: 0 5px 24px rgba(0,0,0,.045); }
.site-card .icon { width: 45px; height: 45px; border-radius: 14px; color: var(--brand-text); background: var(--green-soft); }
.site-card h2, .site-card h3 { color: var(--ll-ink); font-size: 17px; letter-spacing: -.4px; }
.site-card p { font-size: 13px; }
.site-note, .notice { background: var(--ll-blue-soft); color: var(--ll-muted); border: 1px solid color-mix(in srgb, var(--ll-blue) 17%, var(--ll-line)); border-radius: 15px; padding: 16px 18px; }
.site-note strong, .notice strong { color: var(--ll-ink); }
.site-form { border-color: var(--ll-line); background: var(--ll-surface); border-radius: 22px; box-shadow: var(--ll-shadow); }
.site-form input, .site-form select, .site-form textarea, .faq-search { background: color-mix(in srgb, var(--ll-page-bg) 76%, var(--ll-surface)); color: var(--ll-ink); border-color: var(--ll-line); border-radius: 12px; min-height: 46px; }
.site-form input:focus, .site-form select:focus, .site-form textarea:focus, .faq-search:focus { border-color: var(--ll-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ll-blue) 13%, transparent); }
.site-form textarea { min-height: 145px; }
.site-contact-link { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-contact-link:hover { color: var(--ll-ink); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--ll-surface); border: 1px solid var(--ll-line); border-radius: 15px; padding: 0 18px; }
.faq-list summary { color: var(--ll-ink); font-weight: 720; padding: 17px 30px 17px 0; cursor: pointer; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 13px; color: var(--brand-text); font-size: 23px; font-weight: 500; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0; }
.site-footer { background: var(--ll-surface); border-top: 1px solid var(--ll-line); padding: 27px clamp(16px, 3vw, 36px); color: var(--ll-muted); }
.site-footer-inner { max-width: 1320px; }
.site-footer strong { color: var(--ll-ink); }
.site-footer-links { gap: 9px 17px; }
.site-footer a { color: var(--ll-muted); text-underline-offset: 3px; transition: color .18s ease; }
.site-footer a:hover { color: var(--brand-text); }
.meta { color: var(--ll-muted) !important; font-size: 12px; }
html[data-theme="light"] .site-top { background: rgba(248,249,244,.82) !important; }
html[data-theme="light"] .site-hero { background: radial-gradient(ellipse at 95% 0%, rgba(200,243,107,.18), transparent 38%), linear-gradient(135deg,#fff,#f5f7ee); }
html[data-theme="light"] .site-note, html[data-theme="light"] .notice { background: #f0f5e5; }
html[data-theme="light"] .auth-google { background: #fff !important; color: #242424 !important; }

/* Motion is calm, intentional, and disabled when requested by the OS. */
@keyframes llFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes llModalIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes llShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.site-card, .faq-list details { transition: transform .23s cubic-bezier(.2,.8,.2,1), box-shadow .23s ease, border-color .23s ease, background-color .23s ease; }
.site-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ll-blue) 36%, var(--ll-line)); box-shadow: 0 17px 36px rgba(0,0,0,.1); }
.faq-list details[open] { border-color: color-mix(in srgb, var(--ll-blue) 40%, var(--ll-line)); box-shadow: 0 8px 25px rgba(0,0,0,.06); }

@media (max-width: 1180px) {
  .topbar-inner { gap: 10px; }
  .brand { min-width: 138px; }
  .nav { gap: 0; }
  .nav button { padding: 9px 8px; }
  .site-nav-link { padding: 8px 7px; }
  .site-nav-link:nth-of-type(n+4) { display: none; }
  .top-actions { gap: 6px; }
}
@media (max-width: 980px) {
  .topbar-inner { padding-inline: 18px; }
  .nav .site-nav-link:nth-of-type(n+3) { display: none; }
  .prototype-label { display: none; }
  .site-top-inner { padding-inline: 18px !important; }
  .site-top nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .topbar { min-height: 70px; }
  .topbar-inner { min-height: 70px; height: auto; padding: 10px 15px; flex-wrap: wrap; gap: 8px; }
  .brand { flex: 1; min-width: 128px; }
  .brand-mark, .brand-mark img { width: 38px; height: 38px; }
  .brand-mark { flex-basis: 38px; }
  .brand-name { font-size: 19px; }
  #mobileMenuToggle, .site-menu-toggle { display: inline-grid; }
  .nav { display: none; order: 5; flex: 1 0 100%; align-items: stretch; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 14px 35px rgba(0,0,0,.13); }
  .nav.is-open { display: flex; animation: llFadeUp .18s ease both; }
  .nav button, .nav .site-nav-link, .nav .site-nav-link:nth-of-type(n) { display: flex; width: 100%; text-align: left; align-items: center; padding: 12px 13px; font-size: 13px; }
  .nav button { min-height: 42px; }
  .nav .site-nav-link { color: var(--muted); }
  .top-actions { margin-left: auto; gap: 6px; }
  .top-actions .btn { min-height: 40px; padding: 9px 11px; }
  .main { padding: 24px 15px 55px; }
  .hero { display: flex; align-items: flex-start; flex-direction: column; padding: 26px 22px; border-radius: 23px; gap: 20px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); letter-spacing: -1.9px; }
  .hero-actions { flex-wrap: wrap; }
  .feed-head { align-items: flex-start; flex-direction: column; }
  .feed-controls { align-items: stretch; flex-direction: column; }
  .search-wrap { max-width: none; }
  .select { width: 100%; max-width: none; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .sort-label { width: 100%; justify-content: space-between; }
  .sort-label select { max-width: 65%; }
  .footer-inner { display: grid; grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 24px 18px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
  .site-top-inner { position: relative; min-height: 70px !important; flex-wrap: wrap; gap: 9px; padding: 10px 15px !important; }
  .site-brand { flex: 1; }
  .site-brand img { width: 38px; height: 38px; }
  .site-top-actions { margin-left: auto; gap: 6px; }
  .site-top-actions .site-open-app { display: none; }
  .site-top nav { display: none; order: 5; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 3px; margin: 0; padding: 8px; border: 1px solid var(--ll-line); border-radius: 15px; background: var(--ll-surface); box-shadow: 0 14px 35px rgba(0,0,0,.13); }
  .site-top nav.is-open { display: flex; animation: llFadeUp .18s ease both; }
  .site-top nav a, .site-top nav a:nth-child(n) { display: flex; padding: 12px 13px; width: 100%; }
  .site-content { width: min(100% - 30px, 1040px); padding-top: 28px; }
  .site-content h1 { letter-spacing: -1.4px; }
  .site-hero { border-radius: 22px; padding: 27px 22px; }
  .site-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .top-actions #topSignIn, .top-actions #topSignUp { display: none; }
  .top-actions #topCreate { min-width: 42px; width: 42px; padding: 9px; }
  .top-actions #topCreate span { display: none; }
  .theme-toggle, .site-menu-toggle { width: 39px; height: 39px; flex-basis: 39px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .site-button { padding: 10px 12px; }
  .showcase-logo { width: min(100%, 245px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .post-card:hover, .site-card:hover, .site-button:hover { transform: none; }
}

/* Progressive scroll reveal is opt-in from site.js; content stays visible without JS. */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity .48s cubic-bezier(.2,.8,.2,1), transform .48s cubic-bezier(.2,.8,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal-on-scroll { opacity: 1 !important; transform: none !important; } }
/* Home footer becomes a compact multi-column product footer. */
.footer { padding: 0 clamp(15px, 3vw, 36px); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 34px 0 29px; display: grid; grid-template-columns: minmax(240px, 1.35fr) minmax(150px, .75fr) minmax(190px, 1fr); align-items: start; gap: 28px; }
.footer-brand-block { max-width: 355px; }
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 820; letter-spacing: -.8px; }
.footer-brand-lockup img { width: 38px; height: 38px; }
.footer-brand-lockup span span { color: var(--brand-text); }
.footer-brand-block p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 13px 0; }
.footer-brand-block small { color: var(--muted); font-size: 11px; }
.footer-column { display: flex; flex-direction: column; gap: 13px; }
.footer-column > strong { color: var(--ink); font-size: 12px; letter-spacing: .2px; }
.footer-column .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-column .footer-links a { font-size: 12px; line-height: 1.5; }
.footer-service { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.footer-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); }
@media(max-width:760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 25px 18px; padding: 28px 0 24px; } .footer-brand-block { grid-column: 1 / -1; } .footer-service { grid-column: 1 / -1; } }
@media(max-width:440px) { .footer-inner { grid-template-columns: 1fr; } .footer-brand-block, .footer-service { grid-column: auto; } }
/* Match the higher-specificity legacy dark-mode selectors from the first stylesheet layer. */
html[data-theme="dark"] .site-page .site-top { background: rgba(9, 10, 10, .82) !important; border-color: var(--ll-line) !important; }
html[data-theme="dark"] .site-page .site-hero { background: radial-gradient(ellipse at 95% 0%, rgba(200,243,107,.09), transparent 38%), linear-gradient(135deg, #111315, #0e100e 80%); border-color: var(--ll-line) !important; }
html[data-theme="dark"] .site-page .site-card,
html[data-theme="dark"] .site-page .site-form,
html[data-theme="dark"] .site-page .faq-list details { background: var(--ll-surface) !important; border-color: var(--ll-line) !important; }
html[data-theme="dark"] .site-page .site-form input,
html[data-theme="dark"] .site-page .site-form select,
html[data-theme="dark"] .site-page .site-form textarea,
html[data-theme="dark"] .site-page .faq-search { background: #0a0c0a !important; border-color: var(--ll-line) !important; color: var(--ll-ink) !important; }
html[data-theme="dark"] .site-page .site-note,
html[data-theme="dark"] .site-page .notice { background: #1b2115 !important; border-color: #354326 !important; color: var(--ll-muted) !important; }
html[data-theme="dark"] .site-page .site-footer { background: #0b0c0b !important; border-color: var(--ll-line) !important; }
html[data-theme="dark"] .site-page .site-page-nav a[aria-current="page"] { color: var(--brand-text); }
@media (max-width: 760px) { html[data-theme] .site-top .site-menu-toggle { display: inline-grid; } }

.mobile-auth-shortcut { display: none; }
@media (max-width:760px) { .nav .mobile-auth-shortcut { display: flex; } }
/* Explicitly replace hard-coded violet/blue values in the earlier dark-only layer. */
html[data-theme="dark"] .brand-name span,
html[data-theme="dark"] .auth-brand-copy strong span { color: #c8f36b !important; }
html[data-theme="dark"] .hero { background: radial-gradient(ellipse at 89% 6%, rgba(200,243,107,.09), transparent 37%), linear-gradient(132deg, #111315, #0d0f0d 70%, #12120f) !important; border-color: #30372a !important; box-shadow: 0 24px 70px rgba(0,0,0,.34) !important; }
html[data-theme="dark"] .hero::after { background: radial-gradient(circle, rgba(200,243,107,.13), transparent 68%) !important; }
html[data-theme="dark"] .hero h1 em { color: #c8f36b !important; }
html[data-theme="dark"] .search, html[data-theme="dark"] .select,
html[data-theme="dark"] .sort-label select, html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select,
html[data-theme="dark"] .auth-field input, html[data-theme="dark"] .prototype-label { background: #111315 !important; color: #f2f4ed !important; border-color: #2a2d29 !important; }
html[data-theme="dark"] .card-image, html[data-theme="dark"] .detail-image,
html[data-theme="dark"] .upload-area { background: #151815 !important; }
html[data-theme="dark"] .card-action { background: #20251a !important; color: #c8f36b !important; }
html[data-theme="dark"] .card-action.neutral { background: #1c1f1c !important; color: #a0a49b !important; }
html[data-theme="dark"] .modal, html[data-theme="dark"] .auth-card { background: #111315 !important; color: #f2f4ed !important; border-color: #2a2d29 !important; }
html[data-theme="dark"] .auth-role-switch { background: #0e100e !important; border-color: #2a2d29 !important; }
html[data-theme="dark"] .auth-role.active { background: #20251a !important; border-color: #4c6032 !important; color: #c8f36b !important; }
html[data-theme="dark"] .auth-mode.active { color: #c8f36b !important; border-bottom-color: #c8f36b !important; }
html[data-theme="dark"] .auth-note, html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .admin-security { background: #1b2115 !important; color: #b8bdaf !important; border-color: #354326 !important; }
html[data-theme="dark"] .type-option { background: #111315 !important; border-color: #2a2d29 !important; color: #f2f4ed !important; }
html[data-theme="dark"] .type-option.active { background: #20251a !important; border-color: #607d30 !important; color: #c8f36b !important; }
html[data-theme="dark"] .footer { background: #0b0c0b !important; border-color: #2a2d29 !important; color: #a0a49b !important; }
html[data-theme="dark"] .footer strong { color: #f2f4ed !important; }
html[data-theme="dark"] .footer-links a { color: #a0a49b !important; }
html[data-theme="dark"] .footer-links a:hover { color: #c8f36b !important; }
html[data-theme="dark"] .toast { background: #20251a !important; color: #e3ffa0 !important; border-color: #3c4a2a !important; }
html[data-theme="dark"] ::placeholder { color: #858c7f !important; }
html[data-theme="dark"] .site-page .meta { color: var(--ll-muted) !important; }


/* LostLink v11 visual consistency and modal layout fixes */
:root {
  --bg: #f5f6f2; --surface: #ffffff; --ink: #161914; --muted: #61685c;
  --line: #dfe3d9; --green: #5d7e20; --green-dark: #466318;
  --green-soft: #eef4e3; --lime: #f2f6e7; --orange: #9f5627;
  --orange-soft: #fbefe5; --blue: #315d78; --blue-soft: #eaf1f5;
  --shadow: 0 24px 70px rgba(0,0,0,.16); --radius: 18px;
  --ll-page-bg: #f5f6f2; --ll-surface: #ffffff; --ll-ink: #161914;
  --ll-muted: #61685c; --ll-line: #dfe3d9; --ll-blue: #5d7e20;
  --ll-blue-strong: #466318; --ll-blue-soft: #eef4e3;
  --ll-shadow: 0 24px 65px rgba(0,0,0,.10); --brand-text: #9ac83b;
  --focus-ring: rgba(200,243,107,.42);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050605; --surface: #101210; --ink: #f5f7f0; --muted: #a7ad9f;
  --line: #292e26; --green: #c8f36b; --green-dark: #b4df58;
  --green-soft: #20251a; --lime: #111310; --orange: #ffc18e;
  --orange-soft: #30251b; --blue: #c8f36b; --blue-soft: #1a2014;
  --shadow: 0 28px 85px rgba(0,0,0,.58); --ll-page-bg: #050605;
  --ll-surface: #101210; --ll-ink: #f5f7f0; --ll-muted: #a7ad9f;
  --ll-line: #292e26; --ll-blue: #c8f36b; --ll-blue-strong: #d9ff8b;
  --ll-blue-soft: #1a2014; --ll-shadow: 0 28px 85px rgba(0,0,0,.42);
  --brand-text: #c8f36b; --focus-ring: rgba(200,243,107,.42);
}
html[data-theme="light"] { color-scheme: light; }
html, body { background: var(--bg) !important; color: var(--ink); }
body, .app, .site-page { background: var(--bg) !important; color: var(--ink) !important; }

/* One glass-header recipe for the home app and every informational page. */
.topbar, .site-top {
  position: sticky !important; top: 0 !important; z-index: 100 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
  background: color-mix(in srgb, var(--bg) 78%, transparent) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow: 0 9px 34px rgba(0,0,0,.10) !important;
}
.topbar-inner { max-width: 1380px !important; }
.site-top-inner { max-width: 1380px !important; }
.brand, .site-brand, .footer-brand-lockup { transition: opacity .2s ease, transform .22s ease; }
.brand:hover, .site-brand:hover, .footer-brand-lockup:hover { opacity: .94; }
.brand-mark, .auth-brand-mark { background: transparent !important; box-shadow: none !important; }
.brand-mark img, .site-brand img, .footer-brand-lockup img { transition: transform .32s cubic-bezier(.2,.8,.2,1), filter .32s ease; transform-origin: center; }
.brand:hover .brand-mark img, .site-brand:hover img, .footer-brand-lockup:hover img { transform: rotate(-5deg) scale(1.075); filter: drop-shadow(0 0 10px rgba(200,243,107,.16)); }
.brand-name, .site-brand, .footer-brand-lockup { color: var(--ink) !important; }
.brand-name span, .site-brand span span, .footer-brand-lockup span span { color: var(--brand-text) !important; }
.nav button, .site-top nav a, .site-nav-link { color: var(--muted); transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease; }
.nav button:hover, .site-top nav a:hover, .site-nav-link:hover { color: var(--ink) !important; background: var(--green-soft) !important; transform: translateY(-1px); }
.nav button.active, .site-top nav a[aria-current="page"] { color: var(--brand-text) !important; background: var(--green-soft) !important; }
.theme-toggle, .site-menu-toggle { color: var(--ink) !important; background: color-mix(in srgb, var(--surface) 82%, transparent) !important; border: 1px solid var(--line) !important; border-radius: 13px !important; }
.theme-toggle svg { animation: llIconEnter .22s ease both; }
@keyframes llIconEnter { from { opacity: 0; transform: rotate(-35deg) scale(.7); } to { opacity: 1; transform: rotate(0) scale(1); } }
.site-button { background: var(--green) !important; color: #11150b !important; border-color: var(--green) !important; }
.site-button:hover { background: var(--green-dark) !important; }
.site-button.secondary, .btn-secondary { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.btn-primary { background: var(--green) !important; color: #11150b !important; border-color: transparent !important; box-shadow: 0 7px 22px color-mix(in srgb, var(--green) 17%, transparent) !important; }
.btn-primary:hover { background: var(--green-dark) !important; box-shadow: 0 10px 26px color-mix(in srgb, var(--green) 23%, transparent) !important; }

/* Black-and-white dark mode for every page, not just the homepage. */
html[data-theme="dark"] .site-page .site-hero,
html[data-theme="dark"] .site-page .site-card,
html[data-theme="dark"] .site-page .site-form,
html[data-theme="dark"] .site-page .faq-list details,
html[data-theme="dark"] .site-page .site-note,
html[data-theme="dark"] .site-page .notice,
html[data-theme="dark"] .site-page .site-top nav,
html[data-theme="dark"] .site-page .site-footer,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .admin-empty,
html[data-theme="dark"] .admin-request,
html[data-theme="dark"] .response-card { background-color: var(--surface) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .site-page .site-hero { background: radial-gradient(ellipse at 94% 0%, rgba(200,243,107,.065), transparent 38%), #101210 !important; }
html[data-theme="dark"] .hero { background: radial-gradient(ellipse at 92% 5%, rgba(200,243,107,.06), transparent 38%), #101210 !important; border-color: var(--line) !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] .site-content h1, html[data-theme="dark"] .site-content h2,
html[data-theme="dark"] .site-content h3, html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .card-title, html[data-theme="dark"] .feed-title,
html[data-theme="dark"] .empty h2, html[data-theme="dark"] .admin-empty strong,
html[data-theme="dark"] .auth-heading, html[data-theme="dark"] .modal-title { color: var(--ink) !important; }
html[data-theme="dark"] .hero p, html[data-theme="dark"] .site-content p,
html[data-theme="dark"] .site-content li, html[data-theme="dark"] .site-lead,
html[data-theme="dark"] .card-description, html[data-theme="dark"] .details-row,
html[data-theme="dark"] .feed-subtitle, html[data-theme="dark"] .meta,
html[data-theme="dark"] .site-page .meta { color: var(--muted) !important; }
html[data-theme="dark"] .search, html[data-theme="dark"] .select,
html[data-theme="dark"] .sort-label select, html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select,
html[data-theme="dark"] .site-form input, html[data-theme="dark"] .site-form select,
html[data-theme="dark"] .site-form textarea, html[data-theme="dark"] .faq-search,
html[data-theme="dark"] .auth-field input { background: #090b09 !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .site-page .site-note, html[data-theme="dark"] .site-page .notice,
html[data-theme="dark"] .auth-note, html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .admin-security { background: #171c12 !important; color: #b9c0ae !important; border-color: #303a24 !important; }
html[data-theme="dark"] .auth-note strong { color: var(--ink) !important; }
html[data-theme="dark"] .footer, html[data-theme="dark"] .site-footer { background: #070807 !important; color: var(--muted) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .footer strong, html[data-theme="dark"] .site-footer strong { color: var(--ink) !important; }
html[data-theme="dark"] .footer-links a, html[data-theme="dark"] .site-footer a { color: var(--muted) !important; }
html[data-theme="dark"] .footer-links a:hover, html[data-theme="dark"] .site-footer a:hover { color: var(--green) !important; }
html[data-theme="light"] .site-page .site-hero { background: radial-gradient(ellipse at 95% 0%, rgba(200,243,107,.15), transparent 38%), #fff !important; }
html[data-theme="light"] .topbar, html[data-theme="light"] .site-top { background: rgba(250,251,247,.84) !important; }

/* Authentication dialog: fix stacked wordmark, cramped content, and ugly scrollbar. */
.auth-backdrop {
  position: fixed !important; inset: 0 !important; z-index: 120 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 16px !important; overflow-y: auto !important;
  background: rgba(0,0,0,.76) !important; backdrop-filter: blur(13px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.1) !important;
}
.auth-card {
  width: min(100%, 460px) !important; max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important; height: auto !important;
  overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain;
  scrollbar-width: thin !important; scrollbar-color: #444b3b transparent !important;
  background: #101210 !important; color: #f5f7f0 !important;
  border: 1px solid #30362a !important; border-radius: 23px !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.68) !important;
  padding: 21px 24px 20px !important; animation: llModalIn .24s cubic-bezier(.2,.8,.2,1) both !important;
}
.auth-card::-webkit-scrollbar { width: 5px; }
.auth-card::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.auth-card::-webkit-scrollbar-thumb { background: #414737; border-radius: 99px; }
.auth-top { align-items: center !important; margin-bottom: 15px !important; gap: 14px !important; }
.auth-brand { min-width: 0; gap: 11px !important; }
.auth-brand-mark { width: 42px !important; height: 42px !important; min-width: 42px; border-radius: 13px !important; overflow: hidden; }
.auth-brand-mark svg { display: block; width: 42px !important; height: 42px !important; }
.auth-brand-copy { min-width: 0; }
.auth-brand-copy > strong { display: block; color: var(--ink) !important; font-size: 19px !important; font-weight: 820 !important; letter-spacing: -.55px !important; line-height: 1.15 !important; white-space: nowrap !important; }
.auth-brand-copy > strong span { display: inline !important; color: var(--green) !important; font: inherit !important; margin: 0 !important; line-height: inherit !important; }
.auth-brand-copy > span { display: block !important; color: var(--muted) !important; font-size: 11px !important; line-height: 1.35 !important; margin-top: 3px !important; }
.auth-close { width: 35px !important; height: 35px !important; flex: 0 0 35px; display: grid; place-items: center; border: 1px solid var(--line) !important; border-radius: 11px !important; background: #191c17 !important; color: var(--ink) !important; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.auth-close:hover { transform: rotate(90deg); border-color: #586542 !important; background: #20251a !important; }
.auth-heading { font-size: clamp(24px, 3vw, 28px) !important; line-height: 1.13 !important; letter-spacing: -1.1px !important; color: var(--ink) !important; margin: 0 !important; }
.auth-lead { font-size: 12px !important; line-height: 1.6 !important; color: var(--muted) !important; margin: 8px 0 15px !important; max-width: 390px; }
.auth-role-switch { padding: 4px !important; gap: 5px !important; margin-bottom: 10px !important; background: #090b09 !important; border: 1px solid var(--line) !important; border-radius: 13px !important; }
.auth-role { min-height: 40px; padding: 8px 9px !important; color: var(--muted) !important; border: 1px solid transparent !important; border-radius: 9px !important; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease !important; }
.auth-role:hover { transform: translateY(-1px); background: #181c14 !important; color: var(--ink) !important; }
.auth-role.active { background: #20251a !important; color: var(--green) !important; border-color: #53683a !important; box-shadow: 0 4px 12px rgba(0,0,0,.16) !important; }
.auth-mode-switch { margin-bottom: 13px !important; border: 1px solid var(--line) !important; background: #090b09 !important; padding: 0 !important; border-radius: 10px !important; overflow: hidden; }
.auth-mode { min-height: 36px; color: var(--muted) !important; border-bottom: 2px solid transparent !important; padding: 8px !important; }
.auth-mode.active { color: var(--green) !important; background: #20251a !important; border-bottom-color: var(--green) !important; }
.auth-field { margin: 0 0 10px !important; }
.auth-field label { color: var(--ink) !important; font-size: 11px !important; margin-bottom: 5px !important; }
.auth-password-row { gap: 12px; }
.auth-forgot { color: var(--green) !important; }
.auth-field input { height: 43px !important; padding: 0 12px !important; border-radius: 11px !important; background: #090b09 !important; border: 1px solid #30362a !important; color: #f5f7f0 !important; }
.auth-field input:focus { border-color: #92b84f !important; box-shadow: 0 0 0 3px rgba(200,243,107,.12) !important; }
.auth-submit { min-height: 45px; margin-top: 1px !important; border-radius: 12px !important; }
.auth-divider { color: #92998a !important; margin: 13px 0 !important; gap: 10px !important; }
.auth-divider:before, .auth-divider:after { background: #30362a !important; }
.auth-google { width: 100% !important; min-height: 45px !important; height: auto !important; border: 1px solid #dadce0 !important; border-radius: 12px !important; background: #fff !important; color: #202124 !important; font-size: 13px !important; font-weight: 680 !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important; }
.auth-google:hover { background: #f8f9fa !important; box-shadow: 0 7px 20px rgba(0,0,0,.18) !important; transform: translateY(-1px); }
.auth-google:active { transform: scale(.99); }
.auth-google .google-icon { display: block; width: 19px !important; height: 19px !important; flex: 0 0 19px; }
.auth-note { display: flex; gap: 8px; padding: 9px 11px !important; margin-top: 12px !important; border: 1px solid #303a24 !important; border-radius: 11px !important; background: #171c12 !important; color: #b9c0ae !important; font-size: 10px !important; line-height: 1.55 !important; }
.auth-note svg { flex: 0 0 15px; color: var(--green) !important; }
.auth-alert.info { background: #171c12 !important; color: #d5dfc2 !important; border: 1px solid #333e27 !important; }
.auth-alert.error { background: #271613 !important; color: #ffb5a5 !important; border-color: #5a3026 !important; }
.auth-alert.success { background: #172015 !important; color: #d2f5a0 !important; border-color: #364a27 !important; }
.auth-small { color: #92998a !important; line-height: 1.5 !important; margin-top: 10px !important; }
.auth-small a, .auth-existing-request { color: var(--green) !important; }
html[data-theme="light"] .auth-card { background: #fff !important; color: #161914 !important; border-color: #dfe3d9 !important; }
html[data-theme="light"] .auth-brand-copy > strong, html[data-theme="light"] .auth-heading, html[data-theme="light"] .auth-field label { color: #161914 !important; }
html[data-theme="light"] .auth-brand-copy > span { color: #61685c !important; }
html[data-theme="light"] .auth-close { background: #f4f6ef !important; color: #161914 !important; }
html[data-theme="light"] .auth-role-switch, html[data-theme="light"] .auth-mode-switch { background: #f4f6ef !important; }
html[data-theme="light"] .auth-role.active, html[data-theme="light"] .auth-mode.active { background: #eef4e3 !important; color: #4e6e1a !important; border-color: #d8e4c7 !important; }
html[data-theme="light"] .auth-field input { background: #fff !important; color: #161914 !important; border-color: #dfe3d9 !important; }
html[data-theme="light"] .auth-note { background: #f2f6e9 !important; color: #61685c !important; border-color: #e0e8d2 !important; }
html[data-theme="light"] .auth-alert.info { background: #f2f6e9 !important; color: #53623d !important; border-color: #e0e8d2 !important; }

/* Standardized focus, card feedback, and motion without harming reduced-motion users. */
.post-card, .site-card, .faq-list details, .site-button, .btn, .theme-toggle, .site-menu-toggle { -webkit-tap-highlight-color: transparent; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.site-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.site-content a { text-underline-offset: 3px; }
@media (max-width: 720px) {
 .auth-backdrop { padding: 10px !important; }
 .auth-card { width: min(100%, 460px) !important; max-height: calc(100vh - 20px) !important; max-height: calc(100dvh - 20px) !important; padding: 19px 18px 17px !important; border-radius: 21px !important; }
 .auth-top { margin-bottom: 13px !important; }
 .auth-lead { margin-bottom: 12px !important; }
 .auth-heading { font-size: 24px !important; }
 .site-top-inner { gap: 10px !important; }
}
@media (max-width: 440px) {
 .site-content { width: min(100% - 28px, 1040px) !important; }
 .site-top nav a:nth-child(n+4) { display: flex !important; }
 .site-top nav.is-open { gap: 2px !important; }
 .auth-role { font-size: 11px !important; }
 .auth-card { padding-inline: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
 .auth-card, .brand-mark img, .site-brand img, .footer-brand-lockup img, .theme-toggle svg { animation: none !important; transition: none !important; }
}

/* v12: desktop informational-page nav should be floating, not a solid rectangle. */
@media (min-width: 761px) {
  html[data-theme="dark"] .site-page .site-top nav,
  html[data-theme="light"] .site-page .site-top nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .site-top nav a,
  .site-top nav a:visited {
    text-decoration: none !important;
    border: 1px solid transparent;
    background: transparent !important;
  }
  .site-top nav a:hover {
    text-decoration: none !important;
    background: color-mix(in srgb, var(--green-soft) 76%, transparent) !important;
    border-color: color-mix(in srgb, var(--green) 18%, transparent);
  }
  .site-top nav a[aria-current="page"] {
    color: var(--brand-text) !important;
    text-decoration: none !important;
    background: color-mix(in srgb, var(--green-soft) 62%, transparent) !important;
    border-color: color-mix(in srgb, var(--green) 24%, transparent);
    box-shadow: inset 0 -2px 0 var(--green);
  }
}
/* Keep the mobile navigation as a deliberate, touch-friendly popover. */
@media (max-width: 760px) {
  .site-top nav a,
  .site-top nav a:visited { text-decoration: none !important; }
  .site-top nav a[aria-current="page"] {
    color: var(--brand-text) !important;
    background: var(--green-soft) !important;
  }
}


/* =======================================================================
   v14 — True monochrome design system, Manrope typography, and body motion
   Palette is strictly grayscale in both themes; Google branding stays native.
   ======================================================================= */
:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #626262;
  --line: #dedede;
  --green: #111111;
  --green-dark: #000000;
  --green-soft: #eeeeee;
  --lime: #f2f2f2;
  --orange: #333333;
  --orange-soft: #ededed;
  --blue: #111111;
  --blue-soft: #eeeeee;
  --shadow: 0 22px 65px rgba(0,0,0,.08);
  --ll-page-bg: #f7f7f7;
  --ll-surface: #ffffff;
  --ll-ink: #111111;
  --ll-muted: #626262;
  --ll-line: #dedede;
  --ll-blue: #111111;
  --ll-blue-strong: #000000;
  --ll-blue-soft: #eeeeee;
  --ll-shadow: 0 22px 65px rgba(0,0,0,.08);
  --brand-text: #111111;
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 520ms;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --surface: #101010;
  --ink: #f6f6f6;
  --muted: #b2b2b2;
  --line: #2a2a2a;
  --green: #f4f4f4;
  --green-dark: #ffffff;
  --green-soft: #202020;
  --lime: #242424;
  --orange: #f0f0f0;
  --orange-soft: #242424;
  --blue: #f3f3f3;
  --blue-soft: #202020;
  --shadow: 0 26px 80px rgba(0,0,0,.42);
  --ll-page-bg: #050505;
  --ll-surface: #101010;
  --ll-ink: #f6f6f6;
  --ll-muted: #b2b2b2;
  --ll-line: #2a2a2a;
  --ll-blue: #f3f3f3;
  --ll-blue-strong: #ffffff;
  --ll-blue-soft: #202020;
  --ll-shadow: 0 26px 80px rgba(0,0,0,.42);
  --brand-text: #f6f6f6;
}
html[data-theme="light"] { color-scheme: light; }
html { scroll-behavior: smooth; }
body, body button, body input, body textarea, body select,
.site-page, .site-page button, .site-page input, .site-page textarea, .site-page select {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-feature-settings: "ss01" on, "cv11" on;
}
body { background: var(--bg) !important; color: var(--ink) !important; }
h1, h2, h3, h4, .brand-name, .site-brand, .feed-title, .card-title,
.auth-heading, .modal-title, .site-content h1, .site-content h2, .site-content h3 {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif !important;
  text-wrap: pretty;
}
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 3px !important;
}
/* Global monochrome chrome and brand treatments. */
.topbar, html[data-theme="dark"] .topbar, html[data-theme="light"] .topbar {
  background: color-mix(in srgb, var(--bg) 82%, transparent) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(127,127,127,.05) !important;
  backdrop-filter: blur(22px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.1) !important;
}
.site-top, html[data-theme="dark"] .site-top, html[data-theme="light"] .site-top {
  background: color-mix(in srgb, var(--ll-page-bg) 84%, transparent) !important;
  color: var(--ll-ink) !important;
  border-bottom: 1px solid var(--ll-line) !important;
  backdrop-filter: blur(22px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.1) !important;
}
.brand-mark, .auth-brand-mark {
  background: #080808 !important;
  border: 1px solid #343434 !important;
  box-shadow: none !important;
}
.brand-name, .brand-name span, .auth-brand-copy strong, .auth-brand-copy strong span,
.site-brand, .site-brand span, .site-brand span span,
.site-page .site-brand span span { color: var(--ink) !important; }
.site-brand img { filter: none !important; }
.site-nav-link, .site-top nav a { color: var(--muted) !important; }
.nav button, .site-nav-link, .site-top nav a, .footer-links a, .site-footer a {
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease,
              border-color var(--motion-fast) ease, transform var(--motion-fast) ease !important;
}
.nav button:hover, .nav button.active, .site-nav-link:hover,
.site-top nav a:hover, .site-top nav a[aria-current="page"] {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--line) !important;
}
.site-top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink) !important; }
/* Buttons: inverted monochrome CTAs; ghost controls retain clear boundaries. */
.btn-primary, .site-button:not(.secondary) {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-color: var(--ink) !important;
  box-shadow: 0 8px 22px rgba(127,127,127,.12) !important;
}
.btn-primary:hover, .site-button:not(.secondary):hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--muted)) !important;
  color: var(--bg) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 27px rgba(127,127,127,.17) !important;
}
.btn-secondary, .btn-quiet, .site-button.secondary, .theme-toggle, .site-menu-toggle, .icon-btn {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.btn-secondary:hover, .btn-quiet:hover, .site-button.secondary:hover, .theme-toggle:hover,
.site-menu-toggle:hover, .icon-btn:hover { background: var(--green-soft) !important; color: var(--ink) !important; border-color: var(--muted) !important; }
.theme-toggle { transition: background var(--motion-fast) ease, transform var(--motion-fast) ease, border-color var(--motion-fast) ease !important; }
.theme-toggle:hover { transform: translateY(-2px) rotate(-4deg); }
.theme-toggle:active { transform: scale(.94); }
/* Home hero and feed use a high-contrast, subtle monochrome surface. */
.hero, html[data-theme="dark"] .hero, html[data-theme="light"] .hero {
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 90%, var(--ink)) 100%) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
}
.hero::after { background: radial-gradient(circle, color-mix(in srgb, var(--ink) 8%, transparent), transparent 72%) !important; }
.eyebrow, .eyebrow:before, .hero h1 em, .site-eyebrow { color: var(--ink) !important; }
.eyebrow:before { background: var(--ink) !important; }
.hero p, .feed-subtitle, .card-description, .details-row, .response-info,
.site-content p, .site-content li, .site-lead { color: var(--muted) !important; }
.search, .select, .sort-label select, .field input, .field textarea, .field select,
.auth-field input, .site-form input, .site-form select, .site-form textarea, .faq-search {
  background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.search:focus, .field input:focus, .field textarea:focus, .field select:focus, .auth-field input:focus,
.site-form input:focus, .site-form select:focus, .site-form textarea:focus, .faq-search:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent) !important;
}
.tab, .sort-label, .tab-count { color: var(--muted) !important; }
.tab:hover, .tab.active { background: var(--green-soft) !important; color: var(--ink) !important; }
.post-card, .empty, .admin-empty, .admin-request, .response-card,
.site-card, .site-form, .faq-list details {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  box-shadow: 0 4px 22px rgba(127,127,127,.045) !important;
}
.post-card:hover, .site-card:hover, .faq-list details[open] {
  border-color: var(--muted) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.13) !important;
}
.card-image, .detail-image, .upload-area, .image-placeholder, .empty-icon, .site-card .icon {
  background: var(--green-soft) !important;
  color: var(--ink) !important;
}
.card-image img { transition: transform 550ms cubic-bezier(.2,.8,.2,1), filter 350ms ease !important; }
.post-card:hover .card-image img { transform: scale(1.035); }
.type-pill.lost, .tag.lost, .type-pill.found, .tag.found,
.card-action, .card-action.neutral {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border: 1px solid var(--line) !important;
}
.card-action:hover { background: color-mix(in srgb, var(--green-soft) 70%, var(--ink)) !important; }
.card-footer, .filter-row, .modal-header { border-color: var(--line) !important; }
/* Modal and auth forms: no colored role selection or messages. */
.modal, .auth-card, html[data-theme="dark"] .modal, html[data-theme="dark"] .auth-card,
html[data-theme="light"] .modal, html[data-theme="light"] .auth-card {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.32) !important;
}
.modal-title, .modal-subtitle, .auth-heading, .auth-lead, .auth-field label,
.auth-small, .auth-divider, .auth-brand-copy > span { color: var(--ink) !important; }
.auth-lead, .auth-small, .modal-subtitle, .auth-divider { color: var(--muted) !important; }
.auth-role-switch, .auth-mode-switch {
  background: color-mix(in srgb, var(--surface) 88%, var(--ink)) !important;
  border-color: var(--line) !important;
}
.auth-role, .auth-mode { color: var(--muted) !important; }
.auth-role:hover, .auth-mode:hover { color: var(--ink) !important; background: var(--green-soft) !important; }
.auth-role.active, .auth-mode.active, html[data-theme="light"] .auth-role.active,
html[data-theme="light"] .auth-mode.active {
  background: var(--green-soft) !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent) !important;
}
.auth-field input { border-radius: 11px !important; }
.auth-forgot, .auth-small a, .auth-existing-request { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.auth-note, .privacy-callout, .admin-security, .auth-alert.info,
html[data-theme="light"] .auth-note, html[data-theme="light"] .auth-alert.info,
html[data-theme="dark"] .auth-note, html[data-theme="dark"] .auth-alert.info {
  background: var(--green-soft) !important; color: var(--muted) !important; border-color: var(--line) !important;
}
.auth-alert.error, .auth-alert.success {
  background: var(--green-soft) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.auth-note svg, .privacy-callout svg, .admin-security svg { color: var(--ink) !important; }
.auth-google, .auth-google:hover {
  background: #ffffff !important; color: #202124 !important; border-color: #dadce0 !important;
}
/* Informational pages: same grayscale language as the community app. */
.site-page, html[data-theme="dark"] .site-page, html[data-theme="light"] .site-page {
  background: var(--ll-page-bg) !important; color: var(--ll-ink) !important;
}
.site-hero, html[data-theme="dark"] .site-hero, html[data-theme="light"] .site-hero {
  background: linear-gradient(135deg, var(--ll-surface), color-mix(in srgb, var(--ll-surface) 90%, var(--ll-ink))) !important;
  border-color: var(--ll-line) !important;
  box-shadow: var(--ll-shadow) !important;
}
.site-content h1, .site-content h2, .site-content h3, .site-content h4,
.site-content strong, .site-note strong { color: var(--ll-ink) !important; }
.site-eyebrow, .site-card .icon, .site-contact-link, .faq-list summary::after { color: var(--ll-ink) !important; }
.site-card, html[data-theme="dark"] .site-card, html[data-theme="light"] .site-card,
.site-form, .faq-list details, .site-note,
html[data-theme="dark"] .site-note, html[data-theme="light"] .site-note,
html[data-theme="dark"] .site-footer, html[data-theme="light"] .site-footer {
  background: var(--ll-surface) !important; border-color: var(--ll-line) !important; color: var(--ll-ink) !important;
}
.site-note { background: var(--ll-blue-soft) !important; color: var(--ll-muted) !important; }
.site-footer { background: var(--ll-page-bg) !important; border-color: var(--ll-line) !important; color: var(--ll-muted) !important; }
.site-footer strong, .site-footer a, .site-footer-links a, .footer, .footer strong, .footer-links a {
  color: var(--ll-muted, var(--muted)) !important;
}
.site-footer a:hover, .footer-links a:hover { color: var(--ink) !important; }
.site-button.secondary { background: var(--surface) !important; color: var(--ink) !important; }
.site-page .notice, .site-page .meta { background: var(--green-soft) !important; color: var(--muted) !important; border-color: var(--line) !important; }
/* Toasts remain highly legible without introducing colored states. */
.toast, html[data-theme="dark"] .toast, html[data-theme="light"] .toast {
  background: var(--ink) !important; color: var(--bg) !important; border: 1px solid var(--line) !important;
}
.prototype-label { background: var(--surface) !important; color: var(--muted) !important; border-color: var(--line) !important; }
.prototype-label i { background: var(--ink) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent) !important; }
/* Intentional micro-interactions across body content. */
.post-card, .site-card, .faq-list details, .empty, .site-form, .site-note {
  transition: transform var(--motion-base) cubic-bezier(.2,.8,.2,1),
              box-shadow var(--motion-base) ease, border-color var(--motion-base) ease,
              background-color var(--motion-base) ease, color var(--motion-base) ease !important;
}
.post-card:active, .site-card:active { transform: translateY(-1px) scale(.995); }
.site-card .icon { transition: transform var(--motion-base) cubic-bezier(.2,.8,.2,1), background var(--motion-base) ease; }
.site-card:hover .icon { transform: translateY(-2px) rotate(-3deg); }
.site-button, .btn, .card-action { transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease, border-color var(--motion-fast) ease !important; }
.site-button:active, .btn:active, .card-action:active { transform: scale(.975) !important; }
.site-top nav a, .nav button { position: relative; }
.site-top nav a:focus-visible, .nav button:focus-visible { z-index: 1; }
.reveal-on-scroll { opacity: 0; transform: translateY(15px); transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.8,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .post-card:hover, .site-card:hover { transform: none; }
  .site-card:hover .icon { transform: none; }
}
@media (max-width: 760px) {
  .site-top nav.is-open { background: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; }
  .site-top nav a[aria-current="page"] { background: var(--green-soft) !important; color: var(--ink) !important; }
  .topbar-inner { gap: 14px !important; }
  .hero { padding: clamp(22px, 6vw, 34px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* v14 finishing pass: neutralize legacy high-specificity color overrides. */
::selection { background: var(--ink) !important; color: var(--bg) !important; }
html[data-theme="dark"] .brand-name span,
html[data-theme="dark"] .auth-brand-copy strong span,
html[data-theme="light"] .brand-name span,
html[data-theme="light"] .auth-brand-copy strong span { color: var(--ink) !important; }
html[data-theme="dark"] .hero h1 em,
html[data-theme="light"] .hero h1 em { color: var(--ink) !important; }
html[data-theme="dark"] .card-action,
html[data-theme="dark"] .card-action.neutral,
html[data-theme="light"] .card-action,
html[data-theme="light"] .card-action.neutral {
  background: var(--green-soft) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
html[data-theme="dark"] .auth-role.active,
html[data-theme="dark"] .auth-mode.active,
html[data-theme="light"] .auth-role.active,
html[data-theme="light"] .auth-mode.active {
  background: var(--green-soft) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
html[data-theme="dark"] .site-page .site-note,
html[data-theme="dark"] .site-page .notice,
html[data-theme="light"] .site-page .site-note,
html[data-theme="light"] .site-page .notice {
  background: var(--green-soft) !important; color: var(--muted) !important; border-color: var(--line) !important;
}
html[data-theme="dark"] .site-page .meta,
html[data-theme="light"] .site-page .meta,
html[data-theme="dark"] .admin-request .request-email,
html[data-theme="light"] .admin-request .request-email { color: var(--muted) !important; }
html[data-theme="dark"] .type-pill.lost, html[data-theme="dark"] .tag.lost,
html[data-theme="dark"] .type-pill.found, html[data-theme="dark"] .tag.found,
html[data-theme="light"] .type-pill.lost, html[data-theme="light"] .tag.lost,
html[data-theme="light"] .type-pill.found, html[data-theme="light"] .tag.found {
  background: var(--green-soft) !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
}
html[data-theme="dark"] .auth-note, html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .admin-security, html[data-theme="dark"] .auth-alert.info,
html[data-theme="dark"] .auth-alert.error, html[data-theme="dark"] .auth-alert.success,
html[data-theme="light"] .auth-note, html[data-theme="light"] .privacy-callout,
html[data-theme="light"] .admin-security, html[data-theme="light"] .auth-alert.info,
html[data-theme="light"] .auth-alert.error, html[data-theme="light"] .auth-alert.success {
  background: var(--green-soft) !important; color: var(--muted) !important; border-color: var(--line) !important;
}


/* =======================================================================
   v15 — Consistent, accessible interaction system for every button.
   All application controls use the monochrome tokens; Google is the sole
   intentional exception and retains its official white button treatment.
   ======================================================================= */
button, input, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:not(:disabled):not([aria-disabled="true"]) { cursor: pointer; }
button:disabled, button[aria-disabled="true"], .btn:disabled, .site-button:disabled {
  cursor: not-allowed !important;
  opacity: .54 !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.btn, .site-button, .theme-toggle, .site-menu-toggle, .icon-btn, .auth-close,
.auth-role, .auth-mode, .auth-google, .auth-forgot, .auth-existing-request,
.card-action, .tab, .nav button, .mobile-auth-shortcut {
  font-family: inherit !important;
  font-weight: 720;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--motion-fast, 160ms) ease,
              background-color var(--motion-fast, 160ms) ease,
              border-color var(--motion-fast, 160ms) ease,
              box-shadow var(--motion-fast, 160ms) ease,
              transform var(--motion-fast, 160ms) ease !important;
}
.btn, .site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  letter-spacing: -.1px;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
.btn-primary, .site-button:not(.secondary) {
  color: var(--bg) !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--ink) 12%, transparent) !important;
}
.btn-primary:hover:not(:disabled), .site-button:not(.secondary):hover:not(:disabled) {
  color: var(--bg) !important;
  background: color-mix(in srgb, var(--ink) 86%, var(--muted)) !important;
  border-color: var(--ink) !important;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--ink) 18%, transparent) !important;
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled), .site-button:not(.secondary):active:not(:disabled) {
  transform: translateY(0) scale(.985) !important;
}
.btn-secondary, .site-button.secondary, .icon-btn, .theme-toggle, .site-menu-toggle {
  color: var(--ink) !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.btn-secondary:hover:not(:disabled), .site-button.secondary:hover:not(:disabled),
.icon-btn:hover:not(:disabled), .theme-toggle:hover:not(:disabled), .site-menu-toggle:hover:not(:disabled) {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--muted) !important;
  transform: translateY(-1px);
}
.btn-secondary:active:not(:disabled), .site-button.secondary:active:not(:disabled),
.icon-btn:active:not(:disabled), .theme-toggle:active:not(:disabled), .site-menu-toggle:active:not(:disabled) {
  transform: scale(.97) !important;
}
.btn-quiet { color: var(--muted) !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.btn-quiet:hover:not(:disabled) { background: var(--green-soft) !important; color: var(--ink) !important; transform: translateY(-1px); }
.theme-toggle, .site-menu-toggle { width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 0 !important; display: inline-grid !important; place-items: center !important; border-radius: 12px !important; }
.theme-toggle svg, .site-menu-toggle svg { width: 18px !important; height: 18px !important; }
.icon-btn, .auth-close { width: 38px !important; min-width: 38px !important; height: 38px !important; min-height: 38px !important; padding: 0 !important; display: inline-grid !important; place-items: center !important; border-radius: 11px !important; }
.nav button { min-height: 40px; border: 1px solid transparent !important; border-radius: 10px !important; padding: 9px 13px !important; color: var(--muted) !important; background: transparent !important; font-size: 12px !important; }
.nav button:hover:not(:disabled), .nav button.active { color: var(--ink) !important; background: var(--green-soft) !important; border-color: var(--line) !important; }
.tab {
  min-height: 36px;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 8px 13px !important;
  color: var(--muted) !important;
  background: transparent !important;
  font-size: 12px !important;
}
.tab:hover:not(:disabled), .tab.active, .tab[aria-selected="true"] {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--line) !important;
}
.card-action {
  min-height: 34px;
  padding: 8px 11px !important;
  border-radius: 9px !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  font-size: 11px !important;
  font-weight: 760 !important;
}
.card-action:hover:not(:disabled) { color: var(--ink) !important; background: color-mix(in srgb, var(--green-soft) 72%, var(--ink)) !important; transform: translateY(-1px); }
.auth-role-switch, .auth-mode-switch {
  display: flex !important;
  align-items: stretch;
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid var(--line) !important;
  border-radius: 13px !important;
  background: var(--surface) !important;
}
.auth-role, .auth-mode {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px !important;
  padding: 9px 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  white-space: normal;
}
.auth-role svg { width: 16px; height: 16px; flex: 0 0 16px; }
.auth-role:hover:not(:disabled), .auth-mode:hover:not(:disabled) { color: var(--ink) !important; background: var(--green-soft) !important; }
.auth-role.active, .auth-role[aria-selected="true"], .auth-mode.active, .auth-mode[aria-selected="true"] {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent) !important;
}
.auth-submit { width: 100% !important; min-height: 46px !important; margin-top: 2px !important; }
.auth-forgot, .auth-small a, .auth-existing-request {
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
  text-underline-offset: 3px;
}
.auth-forgot {
  min-height: 28px;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  font-size: 11px !important;
}
.auth-forgot:hover:not(:disabled), .auth-existing-request:hover:not(:disabled) { text-decoration-color: var(--ink); opacity: .78; }
.auth-existing-request {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px !important;
  margin-top: 10px;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
/* Google button intentionally uses Google's official white presentation. */
.auth-google {
  width: 100% !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #202124 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.auth-google:hover:not(:disabled) { background: #f8f9fa !important; color: #202124 !important; border-color: #b8bdc5 !important; box-shadow: 0 5px 15px rgba(0,0,0,.12) !important; transform: translateY(-1px); }
.auth-google:active:not(:disabled) { transform: scale(.99) !important; }
.auth-google .google-icon { width: 19px !important; height: 19px !important; flex: 0 0 19px; }
.mobile-auth-shortcut { min-height: 40px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 12px; }
.mobile-auth-shortcut:hover:not(:disabled) { background: var(--green-soft); border-color: var(--muted); }
/* Visible loading affordance for existing async handlers that disable buttons. */
button[disabled], button[aria-busy="true"] { pointer-events: none; }
button[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ll-button-spin .65s linear infinite; }
@keyframes ll-button-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .btn, .site-button { min-height: 42px; padding-inline: 12px; }
  .auth-role, .auth-mode { padding-inline: 7px !important; font-size: 11px !important; }
  .auth-google { min-height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  button, .btn, .site-button, .tab, .card-action, .auth-role, .auth-mode, .auth-google { transition: none !important; }
  button[aria-busy="true"]::after { animation: none !important; }
}

/* ======================================================================
   LostLink v16 — unified sticky header + polished non-button hover states.
   Monochrome tokens intentionally apply to both light and dark modes.
   ====================================================================== */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #626262;
  --line: #dedede;
  --green: #171717;
  --green-dark: #333333;
  --green-soft: #f1f1f1;
  --lime: #eaeaea;
  --orange: #555555;
  --orange-soft: #f0f0f0;
  --blue: #252525;
  --blue-soft: #f2f2f2;
  --shadow: 0 24px 65px rgba(0,0,0,.08);
  --ll-page-bg: #ffffff;
  --ll-surface: #ffffff;
  --ll-ink: #111111;
  --ll-muted: #626262;
  --ll-line: #dedede;
  --ll-blue: #171717;
  --ll-blue-strong: #333333;
  --ll-blue-soft: #f1f1f1;
  --ll-shadow: 0 24px 65px rgba(0,0,0,.08);
  --brand-text: #111111;
  --focus-ring: rgba(0,0,0,.35);
  --motion-fast: 160ms;
  --motion-base: 240ms;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --surface: #101010;
  --ink: #f6f6f6;
  --muted: #a8a8a8;
  --line: #2b2b2b;
  --green: #f1f1f1;
  --green-dark: #d7d7d7;
  --green-soft: #202020;
  --lime: #242424;
  --orange: #dadada;
  --orange-soft: #242424;
  --blue: #dddddd;
  --blue-soft: #1c1c1c;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --ll-page-bg: #050505;
  --ll-surface: #101010;
  --ll-ink: #f6f6f6;
  --ll-muted: #a8a8a8;
  --ll-line: #2b2b2b;
  --ll-blue: #f1f1f1;
  --ll-blue-strong: #d7d7d7;
  --ll-blue-soft: #202020;
  --ll-shadow: 0 24px 70px rgba(0,0,0,.35);
  --brand-text: #f6f6f6;
  --focus-ring: rgba(255,255,255,.45);
}

/* Homepage and informational pages share a single sticky glass-header rhythm. */
.topbar,
.site-top {
  position: sticky !important;
  inset-block-start: 0 !important;
  z-index: 100 !important;
  width: 100%;
  min-height: 78px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent) !important;
  background: color-mix(in srgb, var(--bg) 80%, transparent) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.35) !important;
  backdrop-filter: blur(24px) saturate(1.35) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.075) !important;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .site-top {
  background: rgba(255,255,255,.84) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.045) !important;
}
.topbar-inner,
.site-top-inner {
  width: 100%;
  max-width: 1380px !important;
  min-height: 78px !important;
  height: auto !important;
  margin-inline: auto !important;
  padding: 10px clamp(15px, 3vw, 36px) !important;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px) !important;
}
.brand,
.site-brand {
  min-width: 155px !important;
  flex: 0 0 155px;
  display: inline-flex;
  align-items: center;
  gap: 11px !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity .2s ease, transform .22s ease;
}
.brand-mark,
.site-brand > img {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 13px;
  background: transparent !important;
  box-shadow: none !important;
}
.brand-name,
.site-brand > span {
  display: inline-block;
  color: var(--ink) !important;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 21px !important;
  font-weight: 820 !important;
  letter-spacing: -1px !important;
  line-height: 1.1;
  transition: transform .22s ease, text-shadow .22s ease, letter-spacing .22s ease;
}
.brand-name span,
.site-brand > span > span,
.auth-brand-copy strong span,
.footer-brand-lockup span span { color: var(--ink) !important; }
.brand-mark img,
.site-brand img,
.footer-brand-lockup img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), filter .32s ease;
}
.nav {
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
}
.site-top nav {
  min-width: 0;
  flex: 1 1 auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: nowrap;
  gap: 3px !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.nav button,
.site-top nav a,
.site-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.nav button:hover,
.site-top nav a:hover,
.site-nav-link:hover {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--line) !important;
  transform: translateY(-1px);
}
.nav button.active,
.site-top nav a[aria-current="page"] {
  color: var(--ink) !important;
  background: var(--green-soft) !important;
  border-color: var(--line) !important;
  box-shadow: inset 0 -2px 0 var(--ink) !important;
}
.top-actions,
.site-top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin-left: auto;
}
.topbar .site-menu-toggle,
.site-top .site-menu-toggle,
#mobileMenuToggle { display: none !important; }

/* Brand mark, wordmark and non-button icons react to hover/focus. */
.brand:hover,
.site-brand:hover,
.footer-brand-lockup:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.brand:hover .brand-mark img,
.site-brand:hover > img,
.footer-brand-lockup:hover img {
  transform: rotate(-5deg) scale(1.075);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--ink) 18%, transparent));
}
.brand:hover .brand-name,
.site-brand:hover > span,
.footer-brand-lockup:hover > span {
  transform: translateY(-1px);
  text-shadow: 0 0 18px color-mix(in srgb, var(--ink) 14%, transparent);
}
.site-content svg,
.site-content img,
.hero svg,
.post-card .card-image,
.empty-icon,
.feed-note svg,
.footer svg {
  transition: transform .24s cubic-bezier(.2,.8,.2,1), filter .24s ease;
  transform-origin: center;
}
.site-content svg:hover,
.site-content img:hover,
.feed-note svg:hover,
.footer svg:hover { transform: scale(1.055); }
.site-card:hover .icon { transform: translateY(-2px) rotate(-3deg); }
.site-card:hover .icon svg,
.site-note:hover > svg,
.site-form:hover > .icon svg,
.site-hero:hover .showcase-logo { transform: scale(1.045); }

/* Responsive non-button surfaces: subtle lift, a neutral border and soft shadow. */
.site-hero,
.site-card,
.site-note,
.site-form,
.faq-list details,
.post-card,
.response-card,
.admin-request,
.empty,
.admin-empty,
.auth-note,
.privacy-callout,
.admin-security,
.upload-area {
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease, background-color .24s ease !important;
}
.site-hero,
.site-card,
.site-note,
.site-form,
.faq-list details,
.post-card,
.response-card,
.admin-request,
.empty,
.admin-empty,
.auth-note,
.privacy-callout,
.admin-security,
.upload-area { border-color: var(--line); }
.site-hero:hover,
.site-card:hover,
.site-note:hover,
.site-form:hover,
.post-card:hover,
.response-card:hover,
.admin-request:hover,
.empty:hover,
.admin-empty:hover,
.auth-note:hover,
.privacy-callout:hover,
.admin-security:hover,
.upload-area:hover,
.faq-list details:hover {
  border-color: color-mix(in srgb, var(--ink) 36%, var(--line)) !important;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 9%, transparent) !important;
}
.site-hero:hover,
.site-card:hover,
.site-note:hover,
.site-form:hover,
.post-card:hover,
.response-card:hover,
.admin-request:hover,
.empty:hover,
.admin-empty:hover,
.auth-note:hover,
.privacy-callout:hover,
.admin-security:hover,
.upload-area:hover,
.faq-list details:hover { transform: translateY(-2px); }
.site-card:hover { transform: translateY(-4px); }

/* Keep the logo and page header identical across content pages at desktop widths. */
@media (min-width: 1021px) {
  .topbar-inner,
  .site-top-inner { flex-wrap: nowrap !important; }
  .site-top .site-menu-toggle,
  #mobileMenuToggle { display: none !important; }
  .site-top nav { display: flex !important; flex-direction: row !important; }
  .site-top nav a,
  .site-top nav a:nth-child(n) { display: inline-flex !important; }
}
@media (max-width: 1020px) {
  .site-top-inner,
  .topbar-inner {
    min-height: 70px !important;
    height: auto !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }
  .topbar #mobileMenuToggle { display: inline-grid !important; flex: 0 0 42px; }
  .topbar .nav {
    display: none !important;
    order: 5;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 14px 35px rgba(0,0,0,.13);
  }
  .topbar .nav.is-open { display: flex !important; }
  .topbar .nav button,
  .topbar .nav a { width: 100%; display: flex; justify-content: flex-start; }
  .site-brand,
  .brand { flex: 1 1 auto; min-width: 130px !important; }
  .site-top .site-menu-toggle {
    display: inline-grid !important;
    flex: 0 0 42px;
  }
  .site-top nav {
    display: none !important;
    order: 5;
    flex: 1 0 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,.13) !important;
  }
  .site-top nav.is-open { display: flex !important; }
  .site-top nav a,
  .site-top nav a:nth-child(n) { display: flex !important; justify-content: flex-start !important; width: 100%; }
  .site-top-actions { margin-left: auto !important; }
}
@media (max-width: 760px) {
  .topbar #mobileMenuToggle { display: inline-grid !important; }
}
@media (max-width: 620px) {
  .topbar-inner,
  .site-top-inner { padding-inline: 14px !important; gap: 7px 9px !important; }
  .brand,
  .site-brand { min-width: 112px !important; gap: 8px !important; }
  .brand-mark,
  .site-brand > img { width: 36px !important; height: 36px !important; flex-basis: 36px; }
  .brand-name,
  .site-brand > span { font-size: 19px !important; }
  .site-top-actions,
  .top-actions { gap: 5px !important; }
  .site-open-app { min-height: 38px !important; padding: 8px 10px !important; font-size: 11px !important; }
}
@media (hover: none) {
  .site-hero:hover,
  .site-card:hover,
  .site-note:hover,
  .site-form:hover,
  .post-card:hover,
  .response-card:hover,
  .admin-request:hover,
  .empty:hover,
  .admin-empty:hover,
  .auth-note:hover,
  .privacy-callout:hover,
  .admin-security:hover,
  .upload-area:hover,
  .faq-list details:hover { transform: none !important; }
  .site-content svg:hover,
  .site-content img:hover,
  .feed-note svg:hover,
  .footer svg:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand, .site-brand, .footer-brand-lockup,
  .brand-mark img, .site-brand img, .footer-brand-lockup img,
  .brand-name, .site-brand > span,
  .site-hero, .site-card, .site-note, .site-form,
  .faq-list details, .post-card, .response-card, .admin-request,
  .empty, .admin-empty, .auth-note, .privacy-callout, .admin-security, .upload-area,
  .site-content svg, .site-content img, .feed-note svg, .footer svg {
    transition: none !important;
  }
  .brand:hover, .site-brand:hover, .footer-brand-lockup:hover,
  .site-hero:hover, .site-card:hover, .site-note:hover, .site-form:hover,
  .faq-list details:hover, .post-card:hover, .response-card:hover, .admin-request:hover,
  .empty:hover, .admin-empty:hover, .auth-note:hover, .privacy-callout:hover,
  .admin-security:hover, .upload-area:hover { transform: none !important; }
}
/* Temporary source for the LostLink v16 shared-header and hover-interaction pass. */

/* Final specificity guard: neutralize legacy lime accents on all page types. */
html[data-theme="dark"] .brand-name span,
html[data-theme="dark"] .auth-brand-copy strong span,
html[data-theme="dark"] .hero h1 em,
html[data-theme="dark"] .site-brand > span > span,
html[data-theme="dark"] .site-eyebrow,
html[data-theme="light"] .brand-name span,
html[data-theme="light"] .auth-brand-copy strong span,
html[data-theme="light"] .hero h1 em,
html[data-theme="light"] .site-brand > span > span,
html[data-theme="light"] .site-eyebrow {
  color: var(--ink) !important;
}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .site-page .site-hero {
  background: radial-gradient(ellipse at 92% 5%, rgba(255,255,255,.045), transparent 38%), #101010 !important;
  border-color: var(--line) !important;
}
html[data-theme="light"] .hero,
html[data-theme="light"] .site-page .site-hero {
  background: radial-gradient(ellipse at 92% 5%, rgba(0,0,0,.025), transparent 38%), #ffffff !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .site-page .site-note,
html[data-theme="dark"] .site-page .notice,
html[data-theme="dark"] .site-page .auth-note,
html[data-theme="dark"] .site-page .privacy-callout,
html[data-theme="dark"] .site-page .admin-security,
html[data-theme="dark"] .auth-note,
html[data-theme="dark"] .privacy-callout,
html[data-theme="dark"] .admin-security {
  background: #1b1b1b !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
html[data-theme="light"] .site-page .site-note,
html[data-theme="light"] .site-page .notice,
html[data-theme="light"] .site-page .auth-note,
html[data-theme="light"] .site-page .privacy-callout,
html[data-theme="light"] .site-page .admin-security,
html[data-theme="light"] .auth-note,
html[data-theme="light"] .privacy-callout,
html[data-theme="light"] .admin-security {
  background: #f3f3f3 !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
html[data-theme="dark"] .card-action,
html[data-theme="dark"] .card-action.neutral,
html[data-theme="light"] .card-action,
html[data-theme="light"] .card-action.neutral {
  background: var(--green-soft) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .site-footer a:hover,
html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .site-footer a:hover { color: var(--ink) !important; }

/* Public-page reset so its glass header occupies the exact same viewport width/height as Home. */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; }
.site-page { margin: 0 !important; }
.site-top-inner { box-sizing: border-box !important; }

/* Additional monochrome safeguards for legacy selected, status and feedback states. */
html[data-theme="dark"] .auth-role.active,
html[data-theme="dark"] .auth-mode.active,
html[data-theme="dark"] .type-option.active,
html[data-theme="dark"] .nav button.active,
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .tab[aria-selected="true"] {
  background: #242424 !important;
  color: #f6f6f6 !important;
  border-color: #555555 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035) !important;
}
html[data-theme="light"] .auth-role.active,
html[data-theme="light"] .auth-mode.active,
html[data-theme="light"] .type-option.active,
html[data-theme="light"] .nav button.active,
html[data-theme="light"] .tab.active,
html[data-theme="light"] .tab[aria-selected="true"] {
  background: #f0f0f0 !important;
  color: #111111 !important;
  border-color: #c9c9c9 !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.025) !important;
}
html[data-theme="dark"] .auth-mode.active { border-bottom-color: #f6f6f6 !important; }
html[data-theme="light"] .auth-mode.active { border-bottom-color: #111111 !important; }
html[data-theme="dark"] .toast,
html[data-theme="dark"] .auth-alert.info,
html[data-theme="dark"] .auth-alert.error,
html[data-theme="dark"] .auth-alert.success,
html[data-theme="dark"] .request-status,
html[data-theme="dark"] .request-status.approved,
html[data-theme="dark"] .request-status.rejected {
  background: #202020 !important;
  color: #f1f1f1 !important;
  border-color: #3a3a3a !important;
}
html[data-theme="light"] .toast,
html[data-theme="light"] .auth-alert.info,
html[data-theme="light"] .auth-alert.error,
html[data-theme="light"] .auth-alert.success,
html[data-theme="light"] .request-status,
html[data-theme="light"] .request-status.approved,
html[data-theme="light"] .request-status.rejected {
  background: #f1f1f1 !important;
  color: #171717 !important;
  border-color: #d9d9d9 !important;
}
.prototype-label i,
.footer-status-dot { background: var(--ink) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent) !important; }


/* v17 Contact page layout repair: robust grid sizing, field spacing, and responsive balance. */
.contact-page .site-content {
  width: min(calc(100% - 48px), 1120px) !important;
  min-width: 0;
  padding-top: clamp(34px, 4.2vw, 52px) !important;
  padding-bottom: clamp(54px, 7vw, 88px) !important;
}
.contact-page .site-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 18px !important;
  margin: 24px 0 30px !important;
}
.contact-page .site-cards > .site-card {
  min-width: 0;
  min-height: 174px;
  overflow-wrap: anywhere;
}
.contact-page .site-contact-link { overflow-wrap: anywhere; word-break: normal; }
.contact-page .contact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr) !important;
  gap: 20px !important;
  align-items: start;
  min-width: 0;
  scroll-margin-top: 100px;
}
.contact-page .site-form,
.contact-page .contact-layout > aside,
.contact-page .contact-layout > aside > * { min-width: 0; }
.contact-page .site-form { padding: clamp(22px, 3vw, 32px) !important; }
.contact-page .site-form h2 { margin-top: 6px !important; margin-bottom: 18px !important; }
.contact-page .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 18px !important;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.contact-page .form-field {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}
.contact-page .form-field.full { grid-column: 1 / -1 !important; }
.contact-page .form-field label { margin: 0 !important; line-height: 1.35; }
.contact-page .site-form input,
.contact-page .site-form select,
.contact-page .site-form textarea {
  display: block;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 13px !important;
  border-radius: 12px !important;
}
.contact-page .site-form input,
.contact-page .site-form select { min-height: 48px !important; }
.contact-page .site-form textarea {
  min-height: 132px !important;
  height: 132px;
  resize: vertical;
}
.contact-page .site-form textarea:focus { height: 132px; }
.contact-page .site-form .form-note { margin: 12px 0 16px !important; font-size: 12px; line-height: 1.65; }
.contact-page .site-form [data-contact-status] { min-height: 0; margin: 8px 0 0; font-size: 13px; }
.contact-page .site-form button[type="submit"] { min-width: 160px; }
.contact-page .contact-layout > aside { display: grid; gap: 17px; align-content: start; }
.contact-page .contact-layout > aside > .site-card { padding: clamp(21px, 2.5vw, 28px); }
.contact-page .contact-layout > aside > .site-card h3 { margin: 0 0 12px; }
.contact-page .contact-layout > aside > .site-card p { margin: 0; }
.contact-page .contact-layout > aside > .site-card p + p { margin-top: 9px; }
.contact-page .contact-layout > aside > .site-note { margin: 0; line-height: 1.7; }
.contact-page .contact-layout > aside > p { margin: 0; display: flex; flex-wrap: wrap; gap: 5px 8px; line-height: 1.7; }
.contact-page .site-top { scroll-margin-top: 0; }

/* Keep the public-page header aligned with Home and avoid an unnecessary desktop hamburger. */
@media (min-width: 1101px) {
  .contact-page .site-top .site-menu-toggle { display: none !important; }
  .contact-page .site-top nav { display: flex !important; visibility: visible !important; }
  .contact-page .site-top nav a,
  .contact-page .site-top nav a:nth-child(n) { display: inline-flex !important; }
}
@media (max-width: 1100px) {
  .contact-page .site-top .site-menu-toggle { display: inline-grid !important; }
  .contact-page .site-top nav { display: none !important; }
  .contact-page .site-top nav.is-open { display: flex !important; }
}
@media (max-width: 900px) {
  .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .88fr) !important; gap: 16px !important; }
  .contact-page .site-cards { gap: 13px !important; }
  .contact-page .site-cards > .site-card { padding: 20px !important; }
}
@media (max-width: 760px) {
  .contact-page .site-content { width: min(calc(100% - 30px), 680px) !important; padding-top: 28px !important; }
  .contact-page .site-cards { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; margin: 20px 0 22px !important; }
  .contact-page .site-cards > .site-card { min-height: 0; }
  .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .contact-page .form-grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 16px !important; }
  .contact-page .form-field.full { grid-column: 1 / -1 !important; }
  .contact-page .site-form { padding: 22px !important; }
  .contact-page .site-form textarea { min-height: 145px !important; height: 145px; }
}
@media (max-width: 420px) {
  .contact-page .site-content { width: calc(100% - 24px) !important; }
  .contact-page .site-form { padding: 18px !important; }
  .contact-page .site-form button[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page .site-card,
  .contact-page .site-form,
  .contact-page .site-form input,
  .contact-page .site-form select,
  .contact-page .site-form textarea { transition: none !important; }
}


/* v18 hotfix: keep the home footer brand lockup compact and aligned. */
.footer-brand-block {
  min-width: 0 !important;
  width: 100%;
  max-width: 355px !important;
}
.footer-brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  vertical-align: middle;
}
.footer-brand-lockup > img {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}
.footer-brand-lockup > span {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.footer-brand-lockup > span > span { color: var(--ink) !important; }
.footer-inner {
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, .75fr) minmax(190px, 1fr) !important;
  align-items: start !important;
}
/* Auth actions belong in the dedicated actions group, never after Contact in nav. */
.mobile-auth-shortcut { display: none !important; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .footer-brand-block { grid-column: 1 / -1 !important; }
  .footer-brand-lockup > img { width: 42px !important; height: 42px !important; }
}
@media (max-width: 440px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) !important; }
  .footer-brand-block { grid-column: auto !important; }
}
