/* Home Contents Vault: shared styles for the website and the app */
:root {
  --page: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --ink: #0f1a24;
  --ink-2: #44515c;
  --muted: #5a6670;
  --line: #e1e6eb;
  --line-2: #cfd7de;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-text: #0b5f58;
  --brand-soft: #e7f4f2;
  --accent: #b45309;
  --accent-soft: #fdf3e6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #047857;
  --focus: #2563eb;
  --hero-1: #0a2a2c;
  --hero-2: #0f3d3b;
  --shadow-sm: 0 1px 2px rgba(15, 26, 36, .06);
  --shadow: 0 1px 2px rgba(15, 26, 36, .05), 0 8px 24px rgba(15, 26, 36, .07);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a1114;
    --surface: #111b1f;
    --surface-2: #16232a;
    --ink: #e6edf0;
    --ink-2: #a9b6bc;
    --muted: #8d9aa1;
    --line: #213139;
    --line-2: #2c3f48;
    --brand: #0f766e;
    --brand-text: #5eead4;
    --brand-soft: #10302e;
    --accent: #f5b264;
    --accent-soft: #33240f;
    --danger: #f19a91;
    --danger-soft: #3a1714;
    --ok: #4fd1a5;
    --focus: #7aa7ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Skip link: first thing a keyboard user reaches; hidden until focused */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* Respect "reduce motion" in the operating system */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 750; font-size: 17px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  transition: background-color .12s, border-color .12s, transform .12s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: #0c625b; border-color: #0c625b; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: #0a2a2c; border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field small, .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 24px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag-warn { background: var(--accent-soft); color: var(--accent); }
.tag-ok { background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Website ---------- */
.site-top { position: sticky; top: 0; z-index: 10; background: rgba(10, 42, 44, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.site-top .logo { color: #fff; }
.site-top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-top nav a.link { color: #d5e4e3; text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.site-top nav a.link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hero { color: #fff; background: radial-gradient(900px 480px at 85% -10%, rgba(45, 212, 191, .22), transparent 60%), linear-gradient(180deg, var(--hero-1), var(--hero-2)); padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: #5eead4; }
.hero p.lead { font-size: 19px; color: #cfe1df; margin: 0 0 28px; max-width: 560px; }
.hero .fine { color: #a9c7c4; font-size: 14px; margin-top: 14px; }
.mock { background: #f5f7f9; color: #0f1a24; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); padding: 16px; transform: rotate(1.5deg); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 12px; }
.mock-head b { font-size: 15px; }
.mock-head span { font-size: 13px; color: #44515c; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mock-stats div { background: #fff; border: 1px solid #e1e6eb; border-radius: 10px; padding: 10px; }
.mock-stats small { display: block; color: #5a6670; font-size: 11px; }
.mock-stats strong { font-size: 17px; }
.mock-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mock-room { background: #fff; border: 1px solid #e1e6eb; border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.mock-room i { width: 34px; height: 34px; border-radius: 8px; background: #e7f4f2; display: grid; place-items: center; color: #0f766e; flex: none; }
.mock-room i svg { width: 18px; height: 18px; }
.mock-room b { display: block; font-size: 13px; }
.mock-room small { color: #5a6670; font-size: 12px; }
.section { padding: 80px 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brand-text); margin: 0 0 10px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -.02em; }
.section .sub { color: var(--ink-2); font-size: 18px; max-width: 680px; margin: 0 0 32px; }
.problem { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.problem .card { padding: 24px; }
.problem h3 { margin: 0 0 6px; font-size: 18px; }
.problem p { margin: 0; color: var(--ink-2); }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps .card { padding: 24px; position: relative; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 750; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; }
span.btn[aria-disabled="true"] { cursor: default; border-style: dashed; }
.pricing.three { max-width: 1080px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { padding: 28px; }
.plan.best { border: 2px solid var(--brand); }
.plan h3 { margin: 0 0 4px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.partners { padding: 32px; display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr; align-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.partners h2 { margin: 0 0 8px; font-size: 26px; }
.partners p { margin: 0; color: var(--ink-2); }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.cta-band { margin-top: 80px; background: linear-gradient(180deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 34px); }
.cta-band p { margin: 0 auto 24px; color: #cfe1df; max-width: 560px; }
.site-foot { padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .partners { grid-template-columns: 1fr; }
  .site-top nav a.link.hide-sm { display: none; }
}

.prose { max-width: 760px; padding-top: 40px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 6px; }
.prose .updated { color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

/* ---------- Guides (articles + printable checklist) ---------- */
.prose .crumbs { margin-bottom: 14px; }
.prose .lede { font-size: 19px; color: var(--ink-2); margin: 0 0 24px; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose ol li, .prose ul li { padding-left: 2px; }
.callout { background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.callout p { margin: 0; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.callout.warn { background: var(--accent-soft); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 28px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 2px 0; }
.app-cta { margin: 36px 0 8px; padding: 24px; display: grid; gap: 14px; grid-template-columns: 1fr auto; align-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.app-cta h2 { margin: 0 0 4px; font-size: 20px; }
.app-cta p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .app-cta { grid-template-columns: 1fr; } }
.guide-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 0; padding: 0; list-style: none; }
.guide-list a { display: block; padding: 20px; height: 100%; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.guide-list a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.guide-list b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.guide-list span { color: var(--ink-2); font-size: 15px; }
.prose table.simple { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.prose table.simple th, .prose table.simple td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose table.simple th { color: var(--ink); font-weight: 650; }
.check-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.checklist { break-inside: avoid; margin: 0 0 22px; }
.checklist h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checklist h2 small { font-size: 14px; font-weight: 500; color: var(--muted); }
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; color: var(--ink-2); }
.checklist input[type="checkbox"] { margin-top: 3px; flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.print-only { display: none; }
@media print {
  .site-top, .site-foot, .no-print, .app-cta, .toc { display: none !important; }
  .print-only { display: block; }
  .prose { max-width: none; padding: 0; }
  .prose h1 { font-size: 22px; }
  .checklist { margin-bottom: 12px; }
  .checklist h2 { font-size: 15px; margin: 10px 0 4px; border-bottom: 1px solid #999; padding-bottom: 2px; }
  .checklist ul { grid-template-columns: repeat(3, 1fr); }
  .checklist label { padding: 1px 0; font-size: 11px; color: #000; }
  .checklist input[type="checkbox"] { width: 11px; height: 11px; margin-top: 2px; }
  .checklist input:checked + span { text-decoration: none; color: #000; }
}

/* ---------- App ---------- */
.app-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
.app-top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.app-top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 9px; display: inline-flex; gap: 6px; align-items: center; }
.app-top nav a svg { width: 18px; height: 18px; }
.app-top nav a:hover, .app-top nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
main.app { padding: 24px 0 64px; }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 13px; }
.meter { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.over i { background: var(--accent); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 20px; }
.rooms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.room-card { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.room-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.room-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; overflow: hidden; }
.room-card .ic svg { width: 22px; height: 22px; }
.room-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.room-card b { display: block; }
.room-card small { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; min-height: 38px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand-text); border-style: solid; }
.chip[aria-pressed="true"] { background: var(--brand-soft); border: 1px solid var(--brand); color: var(--brand-text); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.items { display: grid; gap: 10px; }
.item-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; text-decoration: none; color: inherit; }
.item-row:hover { border-color: var(--brand); }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.thumb svg { width: 24px; height: 24px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .meta { color: var(--muted); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.item-row .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-row .amt small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.empty { text-align: center; padding: 40px 20px; }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ic svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; }
.empty p { margin: 0 auto 18px; color: var(--ink-2); max-width: 440px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.gallery .shot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery .shot img, .gallery .shot video { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .shot .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(15, 26, 36, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gallery .shot .x svg { width: 16px; height: 16px; }
.gallery .shot .pdf { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.gallery .add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line-2); background: transparent; color: var(--ink-2); display: grid; place-content: center; justify-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.gallery .add:hover { border-color: var(--brand); color: var(--brand-text); }
.gallery .add svg { width: 26px; height: 26px; }
.gallery .pending { opacity: .7; }
.gallery .pending::after { content: "New"; position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.form-card { padding: 24px; }
.form-card h2 { margin: 0 0 4px; font-size: 18px; }
.form-card > p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.form-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--page) 94%, transparent); backdrop-filter: blur(8px); padding: 12px 0; margin-top: 8px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
.auth { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 32px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 28px; }
.auth h1 { margin: 0 0 6px; font-size: 26px; }
.auth p.sub { margin: 0 0 20px; color: var(--ink-2); }
.auth .alt { text-align: center; margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-size: 15px; }
.notice.warn { background: var(--accent-soft); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.share-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-links li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
#link-url { width: 100%; font-size: 14px; }
.search { position: relative; max-width: 320px; flex: 1; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { padding-left: 38px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.toast-host { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--page); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: 15px; }
.toast.err { background: var(--danger); color: #fff; }
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(5, 10, 12, .92); display: grid; place-items: center; padding: 20px; }
.viewer-stage { display: grid; place-items: center; width: 100%; height: 100%; }
.viewer img, .viewer video { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.viewer .viewer-close { position: absolute; top: 14px; right: 14px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-nav:hover { background: rgba(255, 255, 255, .28); }
.viewer-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.viewer-nav svg { width: 28px; height: 28px; }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }
.viewer-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 15px; background: rgba(0, 0, 0, .55); padding: 4px 12px; border-radius: 999px; }
.rep-thumb-btn { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.rep-thumb-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rep-more { position: absolute; right: 3px; bottom: 3px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 650; line-height: 1; padding: 3px 5px; border-radius: 5px; }
.planbar { background: var(--brand-soft); color: var(--ink); font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.planbar.warn { background: var(--accent-soft); }
.planbar a { font-weight: 650; }
.readonly .needs-plan, .readonly .gallery .x { display: none !important; }

/* AI photo help */
.btn svg { flex: none; }
.ai-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ai-bar small { font-size: 14px; }
.ai-note { margin-top: 12px; }
.ai-note svg, .ai-box h2 svg, .ai-box p svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--brand-text); }
.ai-filled { border-color: var(--brand) !important; background: var(--brand-soft) !important; }
.ai-box { margin-bottom: 14px; border: 2px solid var(--brand); }
.ai-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ai-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ai-row small { display: block; color: var(--muted); font-size: 13px; }
.ai-row .amt { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.plan-use { margin: 0 0 12px; padding-left: 20px; }
.plan-use li { margin: 2px 0; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .app-top nav a span { display: none; }
  .item-row { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .thumb { width: 56px; height: 56px; }
  .card-pad, .form-card { padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 21px; }
}

/* ---------- Report (screen + print) ---------- */
.report { background: var(--surface); color: var(--ink); overflow-x: auto; }
@media (max-width: 640px) { .report { padding: 16px !important; } .report table { min-width: 640px; } }
.report h1 { margin: 0 0 4px; font-size: 26px; }
.report .rep-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.report dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font-size: 14px; }
.report dt { color: var(--muted); }
.report dd { margin: 0; font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report th, .report td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.report td.num, .report th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report .rep-room { margin-top: 26px; break-inside: auto; }
.report .rep-room h2 { font-size: 18px; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 10px; }
.report .rep-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.report .total-row td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.report .rep-foot { margin-top: 28px; color: var(--muted); font-size: 12px; }
@media print {
  @page { margin: 14mm; }
  :root { --page: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc; color-scheme: light; }
  body { background: #fff; font-size: 12px; }
  .app-top, .no-print, .toast-host { display: none !important; }
  main.app { padding: 0; }
  .card { border: 0; box-shadow: none; }
  .report { padding: 0 !important; }
  .report tr { break-inside: avoid; }
}
