/* Faith Baptist church app — shell styles.
   Night shell / paper page: the chrome is charcoal with a deep-blue cast; anything you READ sits on a bone
   "paper" surface. Brand: royal blue #2b5399, deep blue #1f3f7a, grey #9c9d9f, bone #f1eee8, charcoal #17181a.
   Surface tokens (--surface/--ink/--line/--accent) are redefined by .paper so components adapt without overrides. */
:root {
  --blue: #2b5399; --deep: #1f3f7a; --grey: #9c9d9f; --bone: #f1eee8; --charcoal: #17181a;
  --blue-lit: #8fb0ea; --blue-soft: #3a66b4;
  --shell: var(--charcoal); --shell-2: #1f2228; --shell-3: #262a33;
  --surface: var(--shell-2); --surface-2: var(--shell-3);
  --ink: #f2f1ee; --ink-dim: #c9cbd0; --ink-faint: #9c9d9f;
  --line: rgba(255,255,255,.10); --hairline: rgba(255,255,255,.07);
  --accent: var(--blue); --accent-ink: #fff; --focus: var(--blue-lit);
  --danger: #b23b3b; --ok: #2e7d4f; --warn: #b7791f;
  --elev-1: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.6);
  --elev-2: 0 2px 6px rgba(0,0,0,.3), 0 18px 36px -18px rgba(0,0,0,.7);
  --radius: 16px; --radius-sm: 11px; --radius-xs: 8px; --tap: 44px;
  --pad: clamp(14px, 4vw, 22px); --maxw: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2,.8,.3,1);
  color-scheme: dark;
}
.paper {
  --surface: var(--bone); --surface-2: #ffffff; --ink: #17181a; --ink-dim: #454a53; --ink-faint: #6b7078;
  --line: rgba(23,24,26,.13); --hairline: rgba(255,255,255,.9); --accent: var(--blue); --accent-ink: #fff; --focus: var(--deep);
  --elev-1: 0 1px 2px rgba(23,24,26,.08), 0 6px 14px -8px rgba(23,24,26,.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--shell) radial-gradient(120% 60% at 50% -10%, rgba(31,63,122,.55), rgba(31,63,122,0) 70%) no-repeat;
  color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.18; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(1.45rem, 1.2rem + 1.4vw, 1.85rem); } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; } a { color: var(--blue-lit); } .paper a { color: var(--blue); }
small, .small { font-size: .86rem; } .faint { color: var(--ink-faint); } .dim { color: var(--ink-dim); }
.mono { font-family: var(--mono); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .25rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* splash */
.splash { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: var(--shell) radial-gradient(120% 60% at 50% -10%, rgba(31,63,122,.6), rgba(31,63,122,0) 70%) no-repeat; color: var(--ink-dim);
  transition: opacity 360ms var(--ease); }
.splash.done { opacity: 0; pointer-events: none; }
.splash-plate { background: #fff; border-radius: 26px; padding: 10px; box-shadow: var(--elev-2); animation: splash-in 700ms var(--ease) both; }
.splash-plate img { display: block; width: 96px; height: 96px; }
.splash p { font-weight: 600; letter-spacing: .02em; }
@keyframes splash-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* shell chrome */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem;
  padding: calc(8px + var(--safe-top)) var(--pad) 8px; min-height: calc(56px + var(--safe-top));
  background: linear-gradient(180deg, rgba(23,24,26,.97), rgba(23,24,26,.86)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; flex: 1; min-width: 0; letter-spacing: -.01em; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; flex: none; }
.topbar .brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.topbar-actions { display: flex; gap: .4rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: var(--tap); min-height: 40px; padding: 0 .75rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--shell-3); color: var(--ink); font: 600 .86rem var(--font); text-decoration: none; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.hub { background: var(--blue); border-color: var(--blue); }
.view { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: var(--pad) var(--pad) calc(84px + var(--safe-bottom)); }
.view:focus { outline: none; }
.status { max-width: var(--maxw); margin: 0 auto; padding: .5rem var(--pad); color: var(--warn); font-weight: 600; }
.noscript { padding: 2rem; text-align: center; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 2px;
  padding: 6px 6px calc(6px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(31,34,40,.9), rgba(23,24,26,.98));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(0,0,0,.9); }
.tab { position: relative; flex: 1 1 0; max-width: 128px; min-height: var(--tap); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 2px; color: var(--ink-faint); background: transparent; border: 0; border-radius: var(--radius-sm); font: 600 .72rem/1.1 var(--font); text-decoration: none; cursor: pointer; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--blue-lit); background: linear-gradient(180deg, rgba(43,83,153,.35), rgba(43,83,153,.08)); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.tab .badge { position: absolute; top: 4px; right: calc(50% - 22px); }

/* surfaces */
.card { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); margin: 0 0 .9rem; box-shadow: var(--elev-1); }
.card.paper { background: var(--bone); }
.card.tight { padding: .85rem var(--pad); }
.card > :last-child { margin-bottom: 0; }
.card.is-link { display: block; text-decoration: none; cursor: pointer; }
.card.is-link:active { transform: scale(.995); }
.card h2 { margin-bottom: .5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.hero-card { background: linear-gradient(160deg, var(--deep), var(--blue) 70%, #3a66b4); color: #fff; border: 0; overflow: hidden; }
.hero-card .eyebrow { color: rgba(255,255,255,.75); }
.hero-card .big { font-size: clamp(1.6rem, 1.2rem + 2.6vw, 2.3rem); font-weight: 800; line-height: 1.1; margin: 0 0 .25rem; letter-spacing: -.02em; }
.hero-card .countdown { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; opacity: .95; }
.hero-card .sched { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .25rem; font-size: .9rem; }
.hero-card .sched li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: .3rem; }
.hero-card .sched b { font-weight: 600; }
.hero-card .sched span { opacity: .9; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: rgba(43,83,153,.18); color: var(--blue-lit); }
.paper .pill { background: rgba(43,83,153,.12); color: var(--deep); }
.pill.warn { background: rgba(183,121,31,.18); color: #d9a441; } .paper .pill.warn { color: #8a5a10; }
.pill.ok { background: rgba(46,125,79,.18); color: #7fd19d; } .paper .pill.ok { color: #2e7d4f; }
.pill.danger { background: rgba(178,59,59,.18); color: #f0a0a0; } .paper .pill.danger { color: var(--danger); }
.rule { border: 0; border-top: 1px solid var(--line); margin: .9rem 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 380px) { .grid3 { grid-template-columns: 1fr 1fr; } }

/* tiles + quick actions */
.tile { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 84px; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--elev-1); }
.tile b { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tile span { font-size: .82rem; color: var(--ink-faint); }
.tile.warn { border-color: rgba(183,121,31,.6); } .tile.warn b { color: #d9a441; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.quick a, .quick button { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font: 600 .9rem var(--font); text-decoration: none; text-align: left; cursor: pointer; box-shadow: var(--elev-1); }
.quick svg { width: 20px; height: 20px; flex: none; color: var(--blue-lit); stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.paper .quick svg { color: var(--blue); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.row { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .6rem 0; color: inherit; text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; font-weight: 650; }
.row small { display: block; color: var(--ink-faint); overflow-wrap: anywhere; }
.row .chev { color: var(--ink-faint); flex: none; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; overflow: hidden; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar.dep { background: var(--grey); }
.menu-list .row { min-height: 54px; }
.menu-list svg { width: 22px; height: 22px; flex: none; color: var(--blue-lit); stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 650 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: transparent; border-color: var(--danger); color: #f0a0a0; } .paper .btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .86rem; }
.btn.wide { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; cursor: wait; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.btn-row .btn { flex: 1 1 auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-lit); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.paper .link-btn { color: var(--blue); }

/* forms */
.field { display: block; margin: 0 0 .85rem; }
.field > span, .field > label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .3rem; }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: .82rem; margin: .25rem 0 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=date], input[type=number], input[type=url], select, textarea {
  display: block; width: 100%; min-height: var(--tap); font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); }
.paper input, .paper select, .paper textarea { background: #fff; border-color: rgba(23,24,26,.22); }
textarea { min-height: 6em; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
.check { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.switch-list { list-style: none; margin: 0; padding: 0; } .switch-list li { border-top: 1px solid var(--line); } .switch-list li:first-child { border-top: 0; }
.form-error { color: #f0a0a0; font-weight: 600; margin: .4rem 0; } .paper .form-error { color: var(--danger); }
.form-ok { color: #7fd19d; font-weight: 600; } .paper .form-ok { color: var(--ok); }
.secret-box { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #fff; color: var(--charcoal); border: 2px dashed var(--blue); border-radius: var(--radius-sm); padding: .8rem 1rem; font: 800 1.4rem var(--mono); letter-spacing: .12em; margin: .6rem 0; }
.secret-box small { font: 600 .8rem var(--font); letter-spacing: 0; color: var(--ink-faint); }
.search { position: relative; margin: 0 0 .8rem; }
.search input { padding-left: 2.4rem; }
.search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); stroke: currentColor; fill: none; stroke-width: 2; }

/* auth screens */
.auth { max-width: 420px; margin: 1.5rem auto 0; }
.auth .mark { text-align: center; margin-bottom: 1rem; }
.auth .mark img { width: 84px; height: 84px; border-radius: 22px; background: #fff; box-shadow: var(--elev-2); }
.auth h1 { text-align: center; margin-bottom: .2rem; }
.auth .lede { text-align: center; color: var(--ink-dim); margin-bottom: 1.2rem; }
.switcher { display: flex; background: var(--shell-3); border-radius: 999px; padding: 4px; margin: 0 0 1rem; }
.switcher button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-dim); font: 650 .92rem var(--font); cursor: pointer; }
.switcher button[aria-selected="true"] { background: var(--blue); color: #fff; }

/* posts */
.compose { margin-bottom: 1rem; }
.compose textarea { min-height: 4.5em; }
.compose .btn-row { margin-top: .5rem; }
.post { margin-bottom: .8rem; }
.post.pinned { border-color: rgba(43,83,153,.55); }
.post-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.post-head .avatar { width: 36px; height: 36px; font-size: .8rem; }
.post-head b { display: block; font-size: .95rem; line-height: 1.2; }
.post-head small { color: var(--ink-faint); }
.post-head .grow { flex: 1; min-width: 0; }
.post-title { font-size: 1.1rem; font-weight: 750; margin: 0 0 .3rem; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 .6rem; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.post-foot .spacer { flex: 1; }
.pray { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 650 .86rem var(--font); cursor: pointer; }
.pray[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pray svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pray[aria-pressed="true"] svg { fill: currentColor; }
.post.answered { border-color: rgba(46,125,79,.5); }
.post.hidden-post, .post.deleted-post { opacity: .6; }
.replies { margin-top: .6rem; padding-left: .8rem; border-left: 3px solid var(--line); }
.reply { padding: .5rem 0; border-top: 1px solid var(--line); }
.reply:first-child { border-top: 0; }
.reply .who { font-weight: 650; font-size: .9rem; } .reply .when { color: var(--ink-faint); font-size: .8rem; margin-left: .4rem; }
.reply .post-body { margin: .15rem 0 0; }
.kebab { min-width: 36px; min-height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-faint); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.actions-sheet { display: grid; gap: .4rem; }
.actions-sheet .btn { justify-content: flex-start; }

/* events / sermons */
.event { display: flex; gap: .8rem; align-items: flex-start; }
.date-chip { flex: none; width: 54px; border-radius: var(--radius-xs); background: var(--blue); color: #fff; text-align: center; padding: .3rem 0; line-height: 1.05; }
.date-chip b { display: block; font-size: 1.35rem; } .date-chip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.event .grow { flex: 1; min-width: 0; }
.event-img { width: 100%; border-radius: var(--radius-xs); margin-top: .5rem; display: block; }
.sermons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 440px) { .sermons { grid-template-columns: 1fr; } }
.sermon { position: relative; display: block; border-radius: var(--radius-xs); overflow: hidden; background: #000; color: #fff; text-decoration: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; width: 100%; }
.sermon img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .85; }
.sermon .play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(43,83,153,.92); display: flex; align-items: center; justify-content: center; }
.sermon .play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.sermon .cap { padding: .45rem .6rem; font-size: .82rem; line-height: 1.25; background: var(--shell-3); }
.sermon .cap b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sermon iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: #f0a0a0; } .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e53935; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* directory detail */
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.profile-head h1 { margin: 0; font-size: 1.4rem; }
.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.dl dt { color: var(--ink-faint); font-size: .86rem; padding-top: .1rem; } .dl dd { margin: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .25rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font: 600 .86rem var(--font); text-decoration: none; }
.photo-edit { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (min-width: 620px) { .modal-back { align-items: center; } }
.modal { width: 100%; max-width: 30rem; max-height: 88dvh; overflow-y: auto; padding: 1.2rem; padding-bottom: calc(1.2rem + var(--safe-bottom)); border-radius: 20px; background: var(--shell-2); border: 1px solid var(--line); box-shadow: var(--elev-2); }
.modal.paper { background: var(--bone); }
.modal h2 { margin-bottom: .5rem; }
body.has-modal { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-bottom)); transform: translateX(-50%); z-index: 300; max-width: min(92vw, 30rem); background: #fff; color: var(--charcoal); padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--elev-2); font-weight: 600; text-align: center; }
.toast.err { background: var(--danger); color: #fff; }
.steps { margin: .4rem 0 0; padding-left: 1.2rem; } .steps li { margin: .3rem 0; }
.install-mark { text-align: center; margin-bottom: .5rem; } .install-mark img { width: 72px; height: 72px; border-radius: 18px; background: #fff; }

/* hub */
.hub-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.hub-nav a { display: flex; align-items: center; gap: .5rem; min-height: 56px; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; box-shadow: var(--elev-1); }
.hub-nav a svg { width: 20px; height: 20px; flex: none; color: var(--blue-lit); stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hub-nav .badge { margin-left: auto; }
.backlink { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-faint); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.backlink svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
table.cred { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.cred th, table.cred td { text-align: left; padding: .5rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
table.cred th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); border-top: 0; }
table.cred code { font: 700 .95rem var(--mono); background: rgba(23,24,26,.06); padding: .1rem .35rem; border-radius: 4px; }
.warn-box { border: 1px solid rgba(183,121,31,.6); background: rgba(183,121,31,.12); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: 0 0 .9rem; font-size: .92rem; }
.qr { display: block; width: 200px; height: 200px; margin: .5rem auto; border-radius: 10px; background: #fff; padding: 6px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.audit li { font-size: .84rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.audit li:first-child { border-top: 0; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue-lit); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { text-align: center; padding: 2rem; color: var(--ink-faint); }
.empty { text-align: center; color: var(--ink-faint); padding: 1.2rem .5rem; }

@media (min-width: 760px) {
  .tabbar { position: sticky; top: calc(56px + var(--safe-top)); bottom: auto; max-width: var(--maxw); margin: 0 auto; border-radius: 0 0 var(--radius) var(--radius); border: 1px solid var(--line); border-top: 0; }
  .shell { display: block; }
  .view { padding-bottom: 2rem; }
  .toast { bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
