/* app.css — Shree Shyam Living customer app (loads after style.css and overrides its tokens) */

/* ============ Theme tokens (green, from the logo) ============ */
:root {
  --color-bg: #FBF8F3;
  --color-surface: #FFFFFF;
  --color-ink: #241F1C;
  --color-ink-muted: #756E66;
  --color-primary: #0F3446;
  --color-primary-dark: #0A2532;
  --color-accent: #C9973D;
  --color-accent-soft: #F3E4C4;
  --color-success: #2E7D4F;
  --color-success-bg: #E7F3EC;
  --color-danger: #B0413E;
  --color-danger-bg: #FBEAE9;
  --color-border: #E7E1D8;
  --shadow: 0 1px 2px rgba(10, 37, 50, .07), 0 8px 24px rgba(10, 37, 50, .07);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0A1519;
  --color-surface: #12212A;
  --color-ink: #E8EEF1;
  --color-ink-muted: #93A5AF;
  --color-primary: #2C6484;
  --color-primary-dark: #E3ECF1;
  --color-accent: #D9A94F;
  --color-accent-soft: #2E2716;
  --color-success: #5FCB86;
  --color-success-bg: #143221;
  --color-danger: #F08A86;
  --color-danger-bg: #3A1E1D;
  --color-border: #23343E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .25);
}

html { -webkit-text-size-adjust: 100%; }
body {
  padding-bottom: calc(84px + var(--safe-bottom));
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease;
}
body.sheet-open { overflow: hidden; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:root[data-theme="dark"] .field input[type="text"],
:root[data-theme="dark"] .field input[type="tel"],
:root[data-theme="dark"] .field input[type="number"] { background: #0B171D; color: var(--color-ink); }
:root[data-theme="dark"] .field input:disabled { background: #0E1B22; }
:root[data-theme="dark"] .btn-google { background: var(--color-surface); color: var(--color-ink); }
:root[data-theme="dark"] .btn-google:hover { background: #1A2C36; }
:root[data-theme="dark"] .btn-primary:hover { background: #367A9E; }
:root[data-theme="dark"] .upload-box { background: #0B171D; }
:root[data-theme="dark"] .toast { background: #213540; }

/* ============ Layout ============ */
.page-shell { padding-top: max(14px, var(--safe-top)); }
.top-row.app-header { margin-bottom: 4px; }
.app-header .brand { justify-content: flex-start; margin: 0; gap: 10px; }
.app-header .brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; }
.app-header .brand-name { font-size: 18px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-ink-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:active { transform: scale(.95); }

.greet { font-family: var(--font-display); font-size: 24px; margin: 16px 0 4px; }
.sub { color: var(--color-ink-muted); font-size: 14px; margin: 0 0 16px; }
.section-title { font-size: 15px; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--color-ink-muted); }
.card.plain { max-width: none; padding: 6px 18px; }
.empty { text-align: center; color: var(--color-ink-muted); padding: 40px 12px; }
.empty .ic { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }
.fade-in { animation: fadeUp .2s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton {
  border-radius: var(--radius-lg); margin-bottom: 12px;
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-surface) 50%, var(--color-border) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Bottom navigation ============ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border); padding-bottom: var(--safe-bottom);
  box-shadow: 0 -6px 20px rgba(10, 37, 50, .06);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 0 8px; font-size: 11px; font-weight: 500; color: var(--color-ink-muted); text-decoration: none; position: relative;
}
.bottom-nav a.active { color: var(--color-primary); }
:root[data-theme="dark"] .bottom-nav a.active { color: #E0B865; }
.bottom-nav a.active .ic { stroke: var(--color-accent); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--color-accent); }

/* ============ Install banner (top of page) ============ */
.install-banner {
  position: relative; z-index: 70; display: flex; align-items: center; gap: 12px;
  padding: max(10px, var(--safe-top)) 12px 10px 14px;
  background: linear-gradient(135deg, #0F3446, #0A2532); color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  margin-top: -80px; opacity: 0; transition: margin-top .35s ease, opacity .35s ease;
}
.install-banner.show { margin-top: 0; opacity: 1; }
.install-banner img { width: 42px; height: 42px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ib-text strong { font-size: 14.5px; font-weight: 600; }
.ib-text span { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-btn { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer; background: #fff; color: #0A2532; flex: none; }
.ib-btn:active { transform: scale(.96); }
.ib-close { background: none; border: 0; color: #fff; opacity: .8; padding: 6px; cursor: pointer; display: inline-flex; flex: none; }

.install-sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 30px; }
.install-sheet-head img { width: 56px; height: 56px; border-radius: 50%; }
.how-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; }
.how-steps .n { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--color-accent-soft); color: var(--color-ink); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.how-steps b { display: block; font-size: 14.5px; }
.how-steps small { color: var(--color-ink-muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 2px; }

.offline-strip {
  position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-bottom)); z-index: 60;
  background: #213540; color: #fff; font-size: 13px; text-align: center; padding: 9px 12px; border-radius: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease;
}
.offline-strip.show { transform: none; opacity: 1; }

/* ============ Home ============ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0A2532 100%); color: #fff;
  border-radius: 20px; padding: 20px; margin: 6px 0 4px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.hero-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hero-title { font-family: var(--font-display); font-size: 22px; margin-top: 2px; }
.hero-chip { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hero-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.hero-row span { display: block; font-size: 11.5px; opacity: .72; margin-bottom: 2px; }
.hero-row b { font-size: 15px; font-weight: 600; }

.bill-grid { margin-top: 0; }
.bill-card.total { background: linear-gradient(135deg, var(--color-primary), #0A2532); border: 0; }
.bill-note { text-align: center; font-size: 13px; color: var(--color-ink-muted); margin-top: 8px; }
.center { text-align: center; }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-lg); padding: 14px 16px; margin-top: 14px; background: var(--color-danger-bg); color: var(--color-danger); text-decoration: none; font-size: 14px; line-height: 1.4; }
.alert b { display: block; font-size: 14.5px; }
.alert.warn { background: var(--color-accent-soft); color: var(--color-ink); }
.alert.ok { background: var(--color-success-bg); color: var(--color-success); }
.alert .chev { margin-left: auto; align-self: center; opacity: .6; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-progress { grid-column: span 2; }
.progress { height: 8px; border-radius: 99px; background: var(--color-border); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); border-radius: 99px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 6px 4px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; min-height: 6px; background: var(--color-primary); }
.chart .bar.due { background: repeating-linear-gradient(45deg, var(--color-danger), var(--color-danger) 4px, transparent 4px, transparent 6px); border: 1px solid var(--color-danger); }
.chart .lbl { font-size: 11px; color: var(--color-ink-muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--color-ink-muted); margin-top: 10px; justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); text-decoration: none; color: var(--color-ink); font-size: 13px; font-weight: 500; }
.action:active { transform: scale(.97); }
.action .ic-wrap { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-soft); color: var(--color-primary); }
:root[data-theme="dark"] .action .ic-wrap { color: #E0B865; }

.steps { list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--color-border); }
.steps li.done:not(:last-child)::before { background: var(--color-primary); }
.steps .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-surface); display: flex; align-items: center; justify-content: center; color: #fff; }
.steps li.done .dot { background: var(--color-primary); border-color: var(--color-primary); }
.steps li.now .dot { border-color: var(--color-accent); box-shadow: 0 0 0 5px var(--color-accent-soft); }
.steps li.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.steps b { display: block; font-size: 14.5px; }
.steps small { color: var(--color-ink-muted); font-size: 13px; }
.steps li:not(.done):not(.now) b { color: var(--color-ink-muted); font-weight: 500; }

/* ============ Lists ============ */
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 10px; }
.list-row:active { transform: scale(.985); }
.list-row .t { font-weight: 600; }
.list-row .s { font-size: 13px; color: var(--color-ink-muted); margin-top: 2px; }
.list-row .status-badge { margin-top: 4px; padding: 4px 10px; font-size: 12px; gap: 6px; }
.list-row .status-dot { width: 6px; height: 6px; }
.list-row .right { text-align: right; flex: none; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--color-ink-muted); flex: none; }
.kv span:last-child { text-align: right; font-weight: 500; word-break: break-word; }

.chips { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-ink-muted); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chips button.on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ============ Room ============ */
.room-hero { text-align: center; padding: 26px 20px; }
.room-hero .no { font-family: var(--font-display); font-size: 46px; line-height: 1; margin: 6px 0 4px; position: relative; z-index: 1; }
.room-hero .pg { font-size: 15px; opacity: .9; position: relative; z-index: 1; }
.room-hero .hero-chip { display: inline-block; margin-top: 14px; position: relative; z-index: 1; }

.help-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; }
.help-card h3 { font-size: 16px; margin-bottom: 4px; }
.help-card p { font-size: 13.5px; color: var(--color-ink-muted); margin-bottom: 14px; line-height: 1.45; }
.help-card .row { display: grid; gap: 10px; }
.help-card p:last-child { margin-bottom: 0; }

.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #189646; }
.btn-danger { background: var(--color-danger); color: #fff; }
a.btn { text-decoration: none; }
.btn:active { transform: scale(.98); }

/* ============ Profile ============ */
.profile-header { margin: 18px 0; padding: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.profile-header img { width: 60px; height: 60px; background: var(--color-border); }
.profile-header .name { font-size: 19px; }
.status-pill { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.pill-active { background: var(--color-success-bg); color: var(--color-success); }
.pill-pending { background: var(--color-accent-soft); color: var(--color-ink); }
.pill-vacated { background: var(--color-border); color: var(--color-ink-muted); }

.setting { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.setting:last-child { border-bottom: 0; }
.setting .ic { color: var(--color-ink-muted); }
.setting .grow { flex: 1; }
.setting small { display: block; color: var(--color-ink-muted); font-size: 12.5px; margin-top: 1px; }
a.setting { color: inherit; text-decoration: none; }
.seg { display: inline-flex; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--color-ink-muted); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--color-primary); color: #fff; }
.mini-btn { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--color-primary); color: #fff; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.installed { color: var(--color-success); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.app-foot { text-align: center; font-size: 12px; color: var(--color-ink-muted); margin-top: 22px; }

/* ============ Login ============ */
.login-logo { width: 170px; max-width: 60%; height: auto; margin: 0 auto 10px; display: block; border-radius: 50%; box-shadow: var(--shadow); }
.login-title { font-family: var(--font-display); font-size: 22px; margin-top: 6px; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; gap: 12px; text-align: left; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--color-ink-muted); }
.feature-list .ic-wrap { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--color-accent-soft); color: var(--color-primary); }
:root[data-theme="dark"] .feature-list .ic-wrap { color: #E0B865; }
.auth-shell .card { max-width: 420px; }

/* ============ Bottom sheet + receipt ============ */
#sheet-root { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--color-surface); color: var(--color-ink); border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + var(--safe-bottom)); transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
#sheet-root.open .sheet-backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--color-border); margin: 0 auto 12px; }
.sheet-close { position: absolute; right: 14px; top: 14px; background: var(--color-bg); border: 0; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--color-ink-muted); cursor: pointer; }
.sheet-title { font-size: 19px; margin-bottom: 6px; }
.sheet-text { color: var(--color-ink-muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }

.receipt { border: 1px dashed var(--color-border); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; margin-top: 8px; background: var(--color-surface); }
.receipt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.receipt-head img { width: 42px; height: 42px; border-radius: 50%; }
.receipt-head b { font-family: var(--font-display); font-size: 17px; display: block; color: var(--color-primary-dark); }
.receipt-head small { color: var(--color-ink-muted); font-size: 12px; }
.receipt-title { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 4px; font-weight: 600; }
.receipt-title small { font-weight: 400; color: var(--color-ink-muted); font-size: 12px; }
.receipt .total-row { border-top: 2px solid var(--color-border); margin-top: 6px; font-weight: 600; }
.receipt .total-row span:last-child { font-family: var(--font-display); font-size: 20px; color: var(--color-primary-dark); }
.stamp { position: absolute; right: 14px; top: 16px; transform: rotate(-10deg); border: 2.5px solid var(--color-success); color: var(--color-success); border-radius: 8px; padding: 1px 10px; font-weight: 700; letter-spacing: .12em; font-size: 15px; opacity: .85; }
.stamp.due { border-color: var(--color-danger); color: var(--color-danger); }
.receipt-foot { text-align: center; font-size: 11.5px; color: var(--color-ink-muted); margin-top: 12px; }

@media print {
  body > *:not(#sheet-root) { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  #sheet-root { position: static; }
  #sheet-root .sheet-backdrop, .sheet-handle, .sheet-close, .sheet-actions { display: none !important; }
  #sheet-root .sheet { position: static; transform: none; max-height: none; box-shadow: none; padding: 0; max-width: 420px; }
  :root[data-theme="dark"] { --color-surface: #fff; --color-ink: #111; --color-ink-muted: #555; --color-border: #ddd; --color-primary-dark: #0A2532; --color-success: #1F7A43; --color-danger: #B0413E; }
  .receipt { border: 1px solid #ccc; }
}
@media (max-width: 360px) { .hero-row b { font-size: 13.5px; } .actions { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============ Premium header (all customer pages) ============ */
.top-row.app-header {
  position: sticky; top: max(14px, var(--safe-top)); z-index: 40; overflow: hidden; isolation: isolate; height: var(--hdr-h); box-sizing: border-box;
  margin: 0 0 16px; padding: 11px 12px 11px 12px; border-radius: 22px;
  background: linear-gradient(135deg, #1B4A63 0%, #0F3446 48%, #0A2532 100%);
  border: 1px solid rgba(233, 194, 110, .38);
  box-shadow: 0 14px 30px rgba(10, 37, 50, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
  animation: hdrIn .55s cubic-bezier(.2, .8, .2, 1) both;
}
/* soft gold glow in the corner */
.top-row.app-header::before {
  content: ""; position: absolute; z-index: -1; right: -34px; top: -58px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 194, 110, .16), rgba(233, 194, 110, 0) 66%);
}
/* gold light sweep, plays once */
.top-row.app-header::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .22), transparent);
  transform: skewX(-18deg); animation: hdrShine 1.5s .5s ease-out 1 both;
}
.app-header .brand { gap: 12px; min-width: 0; }
.app-header .brand img {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: #0A2532;
  box-shadow: 0 0 0 2px #E9C26E, 0 0 0 5px rgba(233, 194, 110, .22), 0 6px 14px rgba(0, 0, 0, .35);
}
.app-header .brand-name {
  display: block; min-width: 0; white-space: nowrap; font-size: 18.5px; line-height: 1.15; letter-spacing: .15px;
  color: #F6E7C3;
  background: linear-gradient(180deg, #FFF3D2 0%, #E9C26E 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-header .brand-name::after {
  content: "Your PG, your home"; display: block; margin-top: 4px;
  font-family: var(--font-body); font-size: 9.5px; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase;
  -webkit-text-fill-color: rgba(246, 231, 195, .62); color: rgba(246, 231, 195, .62);
}
.app-header .icon-btn {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 194, 110, .45); color: #E9C26E;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .15s, background .2s;
}
.app-header .icon-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .16); }
.app-header .icon-btn .ic { stroke: #E9C26E; }
:root[data-theme="dark"] .top-row.app-header {
  background: linear-gradient(135deg, #1A3A4C 0%, #10242E 52%, #0B171D 100%);
  border-color: rgba(217, 169, 79, .32); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@keyframes hdrIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes hdrShine { from { left: -60%; } to { left: 130%; } }
@media (max-width: 340px) { .app-header .brand-name { font-size: 16px; } .app-header .brand img { width: 40px; height: 40px; } }
/* header stays pinned; a solid page-colour band sits behind it so nothing shows through around it while scrolling */
:root { --hdr-h: 68px; --hdr-top: max(14px, var(--safe-top)); }
.page-shell::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 39; pointer-events: none;
  height: calc(var(--hdr-top) + var(--hdr-h) + 12px); background: var(--color-bg);
  box-shadow: 0 8px 14px -10px rgba(10, 37, 50, .22);
}
:root[data-theme="dark"] .page-shell::before { box-shadow: 0 8px 14px -10px rgba(0, 0, 0, .6); }