﻿:root {
  --navy: #0a1d36;
  --navy-2: #12335a;
  --blue: #1f5f9e;
  --blue-soft: #eaf2fb;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #162033;
  --muted: #738096;
  --line: #e7ebf1;
  --green: #1d8a62;
  --green-soft: #e8f6ef;
  --red: #c44545;
  --red-soft: #fdeeee;
  --amber: #a56c16;
  --amber-soft: #fbf2df;
  --gold: #d9b46a;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(10, 29, 54, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "PingFang SC", "PingFang TC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; background: var(--navy); color: #fff; }
.boot-logo { width: 88px; height: 88px; border-radius: 50%; }
.boot-name { font-weight: 700; letter-spacing: .08em; }
.boot-dots { display: flex; gap: 5px; }
.boot-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); animation: pulse 1s infinite alternate; }
.boot-dots i:nth-child(2) { animation-delay: .2s; }
.boot-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .18; transform: translateY(-3px); } }

.app-shell { min-height: 100vh; padding-bottom: calc(84px + var(--safe-bottom)); }
.app-width { width: min(100%, 820px); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(244, 246, 249, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 235, 241, .8);
}
.topbar-row { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); }
.brand-copy { min-width: 0; }
.brand-name { font-weight: 750; font-size: 16px; color: var(--navy); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-weight: 750; font-size: 13px; border: 1px solid #d9e7f5; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(10,29,54,.06); }
.icon-btn svg { width: 18px; height: 18px; }

.page { padding: 14px 16px 24px; }
.page-title { font-size: 22px; font-weight: 780; color: var(--navy); margin: 2px 0 4px; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 9px; }
.section-title h2 { margin: 0; font-size: 14px; color: var(--navy); letter-spacing: .01em; }
.section-title .link-btn { border: 0; background: transparent; color: var(--blue); padding: 2px 0; font-size: 12px; }

.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 18px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(217,180,106,.26), transparent 46%),
    linear-gradient(135deg, #0a1d36, #12335a 62%, #1b497b);
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; right: -8px; bottom: -18px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hero-title { font-size: 24px; font-weight: 780; line-height: 1.2; margin-top: 6px; }
.hero-sub { color: rgba(255,255,255,.68); font-size: 12px; margin-top: 6px; }
.hero-logo { width: 56px; height: 56px; border-radius: 50%; opacity: .95; }
.hero-actions { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

.link-btn { border: 0; background: transparent; color: var(--blue); padding: 5px 2px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.link-btn svg { width: 14px; height: 14px; }

.btn {
  border: 0; border-radius: 13px; min-height: 42px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 680; font-size: 14px; color: var(--navy); background: #eef2f7;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), filter .12s ease;
}
.btn:active { transform: scale(.94); }
.icon-btn, .chip, .nav-item, .choice-card, .request-card, .avatar, .sheet-close, .line-remove, .pin-eye {
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background-color .12s ease, opacity .12s ease;
}
.icon-btn:active, .chip:active, .nav-item:active, .choice-card:active, .avatar:active, .sheet-close:active, .line-remove:active, .pin-eye:active { transform: scale(.92); }
.request-card:active { transform: scale(.985); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; box-shadow: 0 4px 16px rgba(10,29,54,.03); }
.stat-label { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.stat-value { font-size: 22px; font-weight: 780; color: var(--navy); margin-top: 4px; line-height: 1.1; letter-spacing: -.02em; }
.stat-value small { font-size: 11px; font-weight: 600; color: var(--muted); }
.stat.red .stat-value { color: var(--red); }
.stat.amber .stat-value { color: var(--amber); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 4px 16px rgba(10,29,54,.03); }
.card + .card { margin-top: 10px; }
.card-title { font-weight: 740; color: var(--navy); font-size: 14px; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.received { background: var(--green-soft); color: var(--green); }
.badge.paid { background: #e8f2ff; color: #1e5fa6; }
.badge.mismatch { background: var(--red-soft); color: var(--red); }
.badge.muted { background: #f0f2f6; color: #6c7789; }
.badge.offline { background: #eef2f7; color: #4d5d72; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: #526078; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.request-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; box-shadow: 0 3px 14px rgba(10,29,54,.03); }
.request-card + .request-card { margin-top: 9px; }
.request-select-wrap { position: relative; margin-top: 9px; }
.request-check { display: flex; align-items: center; gap: 5px; width: fit-content; margin: 0 0 5px 2px; color: #65738a; font-size: 10.5px; user-select: none; }
.request-check input { width: 16px; height: 16px; accent-color: var(--navy); }
.request-select-wrap.selected .request-card { border-color: #9dc0e3; background: #f8fbff; box-shadow: 0 0 0 2px rgba(31,95,158,.08); }
.request-card { -webkit-touch-callout: none; user-select: none; }
.reimburse-item { margin-top: 9px; }
.select-row { display: flex; align-items: center; gap: 6px; color: #526078; font-size: 11px; padding: 2px 2px 5px; }
.select-row input { width: 16px; height: 16px; accent-color: var(--navy); }
.expense-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; }
.batch-bar { margin-top: 10px; border-color: #d8e5f3; background: #f8fbff; }
.summary-card { margin-bottom: 12px; }
.summary-card .form-row { gap: 8px; }
.summary-card .field { margin-bottom: 0; }
.summary-card .field input[type="date"] { font-size: 13px; }
.summary-group { margin-top: 13px; }
.summary-heading { font-size: 14px; font-weight: 780; color: var(--navy); margin-bottom: 5px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0 3px 14px; color: #526078; font-size: 12.5px; }
.summary-row strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.summary-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; color: var(--navy); font-size: 16px; font-weight: 780; }
.summary-total strong { font-size: 20px; }
.batch-receive-list { display: grid; gap: 9px; }
.batch-receive-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px; }
.batch-receive-item .form-row { margin-top: 8px; }
.perm-grid { display: grid; gap: 7px; }
.perm-row { display: flex; align-items: center; gap: 7px; color: #526078; font-size: 12px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.perm-row input { width: 17px; height: 17px; accent-color: var(--navy); }
.activity-feed { display: grid; gap: 0; }
.activity-log-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.activity-log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-log-row:first-child { padding-top: 0; }
.activity-log-time { width: 42px; flex: 0 0 auto; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.activity-log-main { min-width: 0; flex: 1; font-size: 12px; }
.activity-log-detail { color: #526078; margin-top: 3px; line-height: 1.45; }
.activity-log-meta { color: var(--muted); font-size: 10px; margin-top: 3px; }
.request-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.request-store { font-size: 11px; color: var(--blue); font-weight: 700; }
.request-no { font-size: 10.5px; color: #9aa5b5; margin-top: 2px; }
.request-main { min-width: 0; }
.request-items { color: #526078; font-size: 12px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.request-total { font-weight: 780; color: var(--navy); font-size: 15px; }
.request-meta { color: var(--muted); font-size: 10.5px; }
.tag-line { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); font-size: 13px; }
.empty svg { width: 34px; height: 34px; color: #b8c3d2; margin-bottom: 7px; }

.fab { position: fixed; right: 18px; bottom: calc(84px + var(--safe-bottom)); z-index: 30; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(10,29,54,.32); }
.fab svg { width: 24px; height: 24px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(231,235,241,.9);
  padding: 7px 8px calc(7px + var(--safe-bottom));
}
.bottom-nav-inner { width: min(100%, 680px); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav-item { border: 0; background: transparent; color: #8b95a5; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; font-size: 10px; font-weight: 650; }
.nav-item svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--navy); }
.nav-item.active svg { stroke-width: 2.2; }

.list { display: grid; gap: 0; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f7; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.list-icon svg { width: 18px; height: 18px; }
.list-main { min-width: 0; flex: 1; }
.list-title { font-weight: 680; color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { color: var(--muted); font-size: 11.5px; margin-top: 1px; }

.install-banner { display: flex; gap: 10px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 13px; margin-top: 12px; }
.install-banner .card-title, .install-banner .card-sub, .install-banner .muted { color: #fff; }
.install-banner .card-sub { color: rgba(255, 255, 255, .7); }
.install-banner .list-icon { background: rgba(255,255,255,.12); color: #fff; }
.install-banner .list-sub { color: rgba(255,255,255,.64); }
.install-banner .btn { background: #fff; color: var(--navy); min-height: 34px; padding: 0 11px; font-size: 12px; }

.auth-screen { min-height: 100vh; background: radial-gradient(90% 60% at 90% 0%, #1b497b 0%, transparent 55%), linear-gradient(160deg, #07172b, #0a1d36 55%, #12335a); color: #fff; display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); }
.auth-wrap { width: min(100%, 420px); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.auth-brand img { width: 48px; height: 48px; border-radius: 50%; }
.auth-brand-name { font-weight: 780; letter-spacing: .06em; font-size: 18px; }
.auth-brand-sub { color: rgba(255,255,255,.58); font-size: 11px; margin-top: 2px; }
.auth-title { font-size: 27px; line-height: 1.24; font-weight: 780; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-title em { font-style: normal; color: var(--gold); }
.auth-desc { color: rgba(255,255,255,.6); font-size: 12.5px; margin-bottom: 18px; }
.auth-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.auth-card .card-title { font-size: 16px; }
.auth-card .card-sub { margin-bottom: 14px; }
.auth-foot { text-align: center; color: rgba(255,255,255,.45); font-size: 10.5px; margin-top: 16px; }
.user-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 14px; }
.user-pick button { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 10px; display: flex; align-items: center; gap: 8px; text-align: left; }
.user-pick button.active { border-color: var(--navy); background: #f4f8fd; }
.user-pick .avatar { width: 30px; height: 30px; font-size: 12px; }
.user-pick-name { font-weight: 700; font-size: 12.5px; }
.user-pick-role { font-size: 10px; color: var(--muted); }

.field { display: grid; gap: 5px; margin-bottom: 11px; }
.field label { font-size: 11.5px; color: #5f6b7d; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  border: 1px solid #dfe5ee; background: #fbfcfe; color: var(--ink);
  border-radius: 12px; padding: 10px 11px; outline: none; font-size: 16px;
}
.field input[type="date"] {
  font-size: 14px; padding: 9px 8px; min-width: 0; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-row, .form-row-3 { min-width: 0; }
.form-row .field, .form-row-3 .field { min-width: 0; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31,95,158,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.sheet-note { color: var(--muted); font-size: 11.5px; line-height: 1.7; text-align: center; text-indent: 2em; margin: 16px 0 2px; }
.sheet-note strong { color: #526078; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 8px 10px; font-size: 12px; margin-top: 8px; }
.pin-wrap { position: relative; }
.pin-wrap input { letter-spacing: .35em; padding-right: 42px; }
.pin-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; }
.pin-eye svg { width: 17px; height: 17px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(7,23,43,.54); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fadein .16s ease; }
.sheet { width: min(100%, 620px); max-height: 92vh; background: var(--bg); border-radius: 22px 22px 0 0; overflow: hidden; display: flex; flex-direction: column; animation: slideup .22s ease; padding-bottom: var(--safe-bottom); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 16px; color: var(--navy); flex: 1; }
.sheet-close { border: 0; background: #eef2f7; color: #536176; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.sheet-body { padding: 14px 16px 22px; overflow-y: auto; }
.sheet-foot { display: flex; gap: 8px; padding: 10px 16px calc(12px + var(--safe-bottom)); background: #fff; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
@keyframes slideup { from { transform: translateY(20px); opacity: .7; } }
@keyframes fadein { from { opacity: 0; } }

.detail-hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 15px; }
.detail-hero .request-store { color: var(--gold); }
.detail-hero .request-no { color: rgba(255,255,255,.55); }
.detail-hero .request-total { color: #fff; font-size: 26px; }
.detail-hero .muted { color: rgba(255,255,255,.6); }
.detail-rows { display: grid; gap: 0; margin-top: 10px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f3f7; font-size: 12.5px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span:first-child { color: var(--muted); }
.detail-row span:last-child { text-align: right; font-weight: 650; }

.field-error { color: var(--red); font-size: 10.5px; line-height: 1.35; margin-top: 3px; min-height: 0; }
.field-error:empty { display: none; }
.input-invalid { border-color: var(--red) !important; background: #fff8f8 !important; }
.order-lines { display: grid; gap: 10px; }
.order-line { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px; }
.order-line-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-line-title { font-size: 12px; font-weight: 720; color: var(--navy); }
.order-line .field { margin-bottom: 8px; }
.order-line .field:last-child { margin-bottom: 0; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-items: start; }
.form-row-3 .field { min-width: 0; }
.form-row-3 .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-row-3 .field input { width: 100%; min-width: 0; }
.order-line input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.order-line input[type="number"]::-webkit-outer-spin-button,
.order-line input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.choice-grid { display: grid; gap: 10px; }
.choice-card { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 12px; }
.choice-card:active { background: #f6f9fd; }
.choice-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.choice-icon svg { width: 21px; height: 21px; }
.choice-title { font-weight: 750; color: var(--navy); font-size: 15px; }
.choice-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.4; }
.chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 82px 1fr 48px; align-items: center; gap: 7px; font-size: 11px; }
.bar-label { color: #526078; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1f5f9e, #6fa5d2); }
.bar-value { text-align: right; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 10px; }
.donut-layout { display: grid; grid-template-columns: 142px 1fr; gap: 12px; align-items: center; margin-top: 8px; }
.donut { position: relative; width: 142px; height: 142px; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-total { font-size: 18px; font-weight: 780; color: var(--navy); line-height: 1.1; }
.donut-caption { font-size: 10px; color: var(--muted); margin-top: 3px; }
.legend { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; padding-right: 2px; }
.legend-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) 38px; align-items: center; gap: 5px; font-size: 10.5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-name { color: #526078; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-pct { color: var(--navy); font-weight: 720; text-align: right; font-variant-numeric: tabular-nums; }
.legend-value { grid-column: 2 / 4; color: var(--muted); font-size: 9.5px; margin-top: -3px; }
.metric-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #f4f7fb; }
.metric-toggle button { border: 0; background: transparent; color: #66748a; font-size: 10.5px; font-weight: 650; padding: 5px 9px; border-radius: 999px; }
.metric-toggle button.active { background: var(--navy); color: #fff; }
@media (max-width: 380px) {
  .donut-layout { grid-template-columns: 118px 1fr; }
  .donut { width: 118px; height: 118px; }
}
.insight-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.insight-label { color: var(--muted); font-size: 11px; }
.insight-value { color: var(--navy); font-weight: 780; font-size: 19px; margin-top: 3px; }

.line-table { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; }
.line-head, .line-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 6px; align-items: center; padding: 8px 9px; font-size: 11px; }
.line-head { background: #f5f7fa; color: var(--muted); font-weight: 650; }
.line-row { border-top: 1px solid #f0f3f7; }
.line-row .field { margin: 0; min-width: 0; }
.line-row input { width: 100%; border: 1px solid #e1e7f0; border-radius: 8px; padding: 7px 6px; font-size: 14px; background: #fbfcfe; }
.line-row .field-error { font-size: 9.5px; margin-top: 2px; }
.line-edit { display: grid; grid-template-columns: 1.4fr .7fr .7fr 28px; gap: 6px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0f3f7; }
.line-edit:last-child { border-bottom: 0; }
.line-edit input { min-width: 0; border: 1px solid #e1e7f0; border-radius: 9px; padding: 8px 7px; font-size: 16px; background: #fbfcfe; }
.line-remove { border: 0; background: var(--red-soft); color: var(--red); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.line-remove svg { width: 14px; height: 14px; }
.add-line { border: 1px dashed #c9d6e5; background: #f8fbff; color: var(--blue); border-radius: 10px; padding: 8px; width: 100%; font-size: 12px; font-weight: 650; margin-top: 7px; }

.sig-wrap { background: #fff; border: 1px dashed #c9d6e5; border-radius: 12px; overflow: hidden; position: relative; }
.sig-canvas { display: block; width: 100%; height: 150px; touch-action: none; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #b2bdcb; font-size: 12px; pointer-events: none; }
.sig-actions { display: flex; justify-content: flex-end; margin-top: 5px; }
.photo-preview { display: block; margin-top: 7px; max-height: 180px; border-radius: 10px; object-fit: cover; }

.conflict-box { background: var(--amber-soft); border: 1px solid #f0dfb9; color: #76531a; border-radius: 12px; padding: 10px; font-size: 12px; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(94px + var(--safe-bottom)); transform: translate(-50%, 14px); z-index: 200; background: #10233e; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .2s ease; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f3030; }

/* Netlify injects a fixed 197x64 badge iframe at the bottom-right.
   When it is present, lift fixed controls above it. */
html.netlify-badge-space .app-shell { padding-bottom: calc(148px + var(--safe-bottom)); }
html.netlify-badge-space .bottom-nav { bottom: 64px; }
html.netlify-badge-space .fab { bottom: calc(148px + var(--safe-bottom)); }
html.netlify-badge-space .toast { bottom: calc(158px + var(--safe-bottom)); }
html.netlify-badge-space .sheet-foot { padding-bottom: calc(76px + var(--safe-bottom)); }
html.netlify-badge-space .auth-screen { padding-bottom: calc(88px + var(--safe-bottom)); }

@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .page { padding: 18px 22px 30px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .fab { right: calc(50% - 390px); }
  .auth-screen { padding-top: 36px; }
}

/* -------------------------------------------------------------------------- */
/* iOS liquid glass                                                            */
/* -------------------------------------------------------------------------- */

:root {
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .82);
  --glass-shadow: 0 10px 32px rgba(18, 44, 75, .10), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .28);
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(88, 158, 242, .30), transparent 34%),
    radial-gradient(circle at 94% 2%, rgba(182, 132, 255, .24), transparent 32%),
    radial-gradient(circle at 52% 104%, rgba(34, 196, 160, .22), transparent 38%),
    radial-gradient(ellipse 80% 58% at 12% -8%, rgba(190, 218, 255, .92), transparent 62%),
    linear-gradient(180deg, #f5f8fd 0%, #eaf1f8 100%);
  background-attachment: fixed;
}

.topbar {
  background: rgba(248, 251, 255, .60);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .62), 0 8px 30px rgba(18, 44, 75, .05);
}

.bottom-nav {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border-top: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 -8px 28px rgba(18, 44, 75, .06), inset 0 1px 0 rgba(255, 255, 255, .75);
}
.nav-item { border-radius: 14px; }
.nav-item.active {
  background: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(222, 236, 250, .48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 14px rgba(31, 95, 158, .10);
}

.card, .stat, .request-card, .expense-card, .batch-receive-item, .choice-card,
.insight-box, .user-pick button, .perm-row, .line-table, .summary-card, .batch-bar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .64) 0%, rgba(255, 255, 255, .30) 46%, rgba(255, 255, 255, .50) 100%),
    var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: var(--glass-shadow);
}
.request-card, .choice-card, .user-pick button { color: var(--ink); }
.request-select-wrap.selected .request-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(219, 237, 255, .66)),
    rgba(219, 237, 255, .55);
  border-color: rgba(120, 178, 235, .72);
  box-shadow: 0 0 0 2px rgba(31, 95, 158, .10), var(--glass-shadow);
}
.batch-bar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(226, 241, 255, .6)),
    rgba(226, 241, 255, .55);
  border-color: rgba(162, 202, 240, .66);
}
.card-title, .stat-value, .page-title, .summary-total, .summary-row strong { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }

.btn {
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 3px 10px rgba(18, 44, 75, .06);
}
.btn-primary, .btn-blue {
  border-color: rgba(255, 255, 255, .20);
  background: linear-gradient(145deg, #173e69, #0a1d36 62%, #12335a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(10, 29, 54, .22);
}
.btn-ghost {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--glass-border);
}
.icon-btn, .avatar {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(18, 44, 75, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.chip {
  background: rgba(255, 255, 255, .54);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .82);
}
.chip.active {
  background: linear-gradient(145deg, #183f6b, #0a1d36);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 12px rgba(10, 29, 54, .16);
}
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, .54);
  border-color: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 2px rgba(18, 44, 75, .04), 0 1px 0 rgba(255, 255, 255, .8);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(54, 124, 191, .72);
  box-shadow: 0 0 0 3px rgba(31, 95, 158, .10), inset 0 1px 2px rgba(18, 44, 75, .04);
}
.field input[type="date"] { color: var(--navy); font-weight: 600; }

.sheet {
  background:
    linear-gradient(160deg, rgba(250, 253, 255, .92), rgba(235, 243, 252, .84) 58%, rgba(248, 252, 255, .88));
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  backdrop-filter: blur(34px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .92);
  border-bottom: 0;
  box-shadow: 0 -18px 60px rgba(8, 28, 52, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.sheet-head {
  background: rgba(255, 255, 255, .48);
  border-bottom-color: rgba(255, 255, 255, .72);
}
.sheet-foot {
  background: rgba(255, 255, 255, .45);
  border-top-color: rgba(255, 255, 255, .78);
}
.modal-backdrop {
  background: rgba(8, 23, 42, .42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.sheet-close {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
}
.line-table { overflow: hidden; }
.line-head { background: rgba(244, 248, 253, .7); }
.line-row { border-top-color: rgba(255, 255, 255, .7); }
.line-row input, .line-edit input {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(255, 255, 255, .86);
}
.bar-track { background: rgba(216, 228, 240, .58); box-shadow: inset 0 1px 2px rgba(31, 95, 158, .06); }
.bar-fill { background: linear-gradient(90deg, #1b568f, #71b7f0 55%, #a8dcff); box-shadow: 0 0 10px rgba(80, 165, 235, .35); }
.user-pick button.active { border-color: rgba(31, 95, 158, .62); background: rgba(226, 240, 255, .72); }
.metric-toggle { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .8); }
.user-pick button, .metric-toggle button { -webkit-tap-highlight-color: transparent; }

.auth-card {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .94), rgba(240, 247, 255, .78)),
    rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hero {
  box-shadow: 0 14px 38px rgba(8, 28, 52, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.fab {
  background: linear-gradient(145deg, #1b4675, #0a1d36 70%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 26px rgba(10, 29, 54, .28), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.toast {
  background: rgba(12, 31, 56, .82);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .stat, .request-card, .expense-card, .batch-receive-item, .choice-card,
  .insight-box, .user-pick button, .perm-row, .line-table, .summary-card, .batch-bar,
  .sheet, .topbar, .bottom-nav, .auth-card, .field input, .field select, .field textarea {
    background-color: rgba(255, 255, 255, .93);
  }
}

/* Tap ripple */
.tap-ripple {
  position: fixed;
  z-index: 9999;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .48);
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 0%, rgba(156, 205, 248, .48) 36%, rgba(55, 126, 195, .26) 58%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .42), 0 0 26px rgba(90, 168, 235, .4);
  animation: jhg-ripple .68s cubic-bezier(.2, .7, .3, 1) forwards;
  will-change: transform, opacity;
}
@keyframes jhg-ripple {
  0% { transform: scale(.18); opacity: .72; }
  65% { opacity: .28; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tap-ripple { display: none; }
  .btn, .icon-btn, .chip, .nav-item, .choice-card, .request-card { transition: none; }
}

/* Workbench: attendance, shifts, schedule, stats */
.work-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.work-tabs::-webkit-scrollbar { display: none; }
.attendance-hero { margin-bottom: 12px; }
.attendance-clock { font-size: 27px; font-weight: 780; color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.attendance-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.attendance-times > div { background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7); border-radius: 12px; padding: 9px; min-width: 0; }
.attendance-times span { display: block; color: var(--muted); font-size: 10.5px; }
.attendance-times strong { display: block; color: var(--navy); font-size: 16px; margin-top: 2px; }
.attendance-times small { display: block; color: #7a8799; font-size: 9px; line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; }
.schedule-card { padding: 5px 8px; }
.schedule-item { display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid rgba(231,235,241,.7); background: transparent; padding: 11px 4px; color: var(--ink); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-box { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid #b8c8da; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.5); }
.schedule-box svg { width: 13px; height: 13px; }
.schedule-text { flex: 1; font-size: 12.5px; line-height: 1.5; }
.schedule-by { flex: 0 0 auto; color: var(--green); font-size: 9.5px; background: var(--green-soft); border-radius: 999px; padding: 2px 6px; }
.schedule-item.done .schedule-text { text-decoration: line-through; color: #8d99a9; }
.schedule-item.done .schedule-box { background: var(--green); border-color: var(--green); }
.work-stats-list { display: grid; gap: 11px; }
.work-stat-row { display: grid; gap: 5px; }
.work-stat-row .bar-track { height: 10px; }
.work-stat-shifts { color: var(--muted); font-size: 10px; }
.work-stat-row > .between span { color: var(--navy); font-size: 11px; font-weight: 650; }
.attendance-rule-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 2px 0 12px; }
.attendance-rule-row > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; border-radius: 11px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.68); color: var(--muted); font-size: 10.5px; }
.attendance-rule-row strong { color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.work-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.work-summary-grid > div { min-width: 0; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.68); }
.work-summary-grid span { display: block; color: var(--muted); font-size: 10px; }
.work-summary-grid strong { display: block; color: var(--navy); font-size: 14px; margin-top: 2px; }
.work-summary-grid small { display: block; color: #7a8799; font-size: 8.5px; line-height: 1.35; margin-top: 3px; }
.leave-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.leave-card { padding: 12px; border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.36)); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); }
.leave-card span { display: block; color: var(--muted); font-size: 10.5px; }
.leave-card strong { display: block; color: var(--navy); font-size: 25px; line-height: 1.15; margin-top: 3px; font-variant-numeric: tabular-nums; }
.leave-card strong small { font-size: 11px; font-weight: 600; }
.leave-card em { display: block; color: #7a8799; font-size: 9.5px; font-style: normal; margin-top: 4px; }
.collective-people { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.collective-people > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; background: rgba(23,48,79,.055); color: var(--navy); font-size: 10px; }
.collective-people > span.me { background: var(--blue-soft); color: var(--blue); }
.collective-people small { color: var(--muted); font-size: 9px; }
.task-rate-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.65); color: var(--muted); font-size: 11px; }
.task-rate-line strong { color: var(--navy); font-size: 15px; }
.task-meta { display: block; color: #8692a3; font-size: 9.5px; margin-top: 3px; font-weight: 500; }
.task-progress { flex: 0 0 auto; max-width: 88px; color: var(--muted); font-size: 9.5px; text-align: right; line-height: 1.45; }
.task-progress em { display: block; color: var(--green); font-style: normal; }
.schedule-item.disabled { opacity: .56; }
.task-edit-row { display: grid; gap: 7px; padding: 10px; margin-bottom: 8px; border-radius: 13px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.72); }
.task-edit-main input { width: 100%; height: 38px; border: 1px solid rgba(23,48,79,.1); border-radius: 9px; background: rgba(255,255,255,.72); padding: 0 10px; font-size: 12.5px; color: var(--navy); }
.task-edit-meta { display: grid; grid-template-columns: 1.15fr .95fr .8fr .65fr 30px; gap: 5px; align-items: center; }
.task-edit-meta input[type="date"] { min-width: 0; height: 32px; border: 1px solid rgba(23,48,79,.1); border-radius: 8px; background: rgba(255,255,255,.72); padding: 0 4px; font-size: 10px; color: var(--navy); }
.task-edit-meta select { min-width: 0; height: 32px; border: 1px solid rgba(23,48,79,.1); border-radius: 8px; background: rgba(255,255,255,.72); padding: 0 5px; font-size: 10.5px; color: var(--navy); }
.task-edit-meta .icon-btn { width: 30px; height: 30px; background: rgba(255,255,255,.55); }
.work-stat-metrics { display: flex; flex-wrap: wrap; gap: 5px; }
.work-stat-metrics span { padding: 3px 7px; border-radius: 999px; background: rgba(23,48,79,.055); color: var(--navy); font-size: 9.5px; }
.work-admin-links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.work-admin-links .link-btn { white-space: nowrap; padding: 5px 8px; border-radius: 8px; background: rgba(23,48,79,.05); }
.shift-form-row { grid-template-columns: 1.18fr 1fr 1fr !important; }
.shift-form-row #shift-date { font-size: 12px; padding-left: 8px; padding-right: 4px; }
.shift-form-row select { font-size: 11px; padding-left: 6px; padding-right: 2px; }
@media (max-width: 380px) {
  .attendance-times { grid-template-columns: repeat(2, 1fr); }
  .attendance-times > div:last-child { grid-column: 1 / -1; }
  .work-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .task-edit-meta { grid-template-columns: 1fr 1fr 30px; }
  .task-edit-meta input[type="date"] { grid-column: 1 / 3; }
  .task-edit-meta select[data-task-grade] { grid-column: 1 / 3; }
}

/* 1114 additions */
.auth-fields { display: grid; gap: 10px; margin-top: 12px; }
.auth-selected { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); }
.auth-selected .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 15px; }
.auth-selected strong { display: block; color: var(--navy); font-size: 14px; }
.auth-selected span { color: var(--muted); font-size: 11px; }
.personal-card { padding: 13px 14px; }
.personal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.personal-item { min-width: 0; padding: 9px 7px; border-radius: 12px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.7); text-align: center; }
.personal-item span { display: block; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.personal-item strong { display: block; margin-top: 4px; color: var(--navy); font-size: 17px; line-height: 1.1; }
.personal-item strong small { font-size: 9px; font-weight: 600; color: var(--muted); }
.summary-note { margin-top: 10px !important; line-height: 1.6; }
.receipt-thumb { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 11px; margin-top: 9px; border: 1px solid rgba(23,48,79,.08); }
.perm-row { min-width: 0; }
.perm-row span { flex: 1; min-width: 0; line-height: 1.35; white-space: normal; }
.account-select-bar { padding: 11px 12px; margin-bottom: 8px; }
.account-select-bar .card-title { font-size: 13px; }
.account-select-bar .card-sub { font-size: 10px; margin-top: 2px; }
.account-select-bar input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy); }
@media (max-width: 380px) {
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
}


/* -------------------------------------------------------------------------- */
/* Lavender glass refresh (reference-inspired, functionality unchanged)        */
/* -------------------------------------------------------------------------- */
:root {
  --navy: #261c52;
  --navy-2: #3c2f79;
  --blue: #6f5cf1;
  --blue-soft: #efecff;
  --bg: #f4f1fb;
  --card: rgba(255, 255, 255, .72);
  --ink: #211a3f;
  --muted: #817a9e;
  --line: rgba(86, 70, 150, .10);
  --green: #1f9d7a;
  --green-soft: #e6f8f1;
  --red: #cf5568;
  --red-soft: #fdecef;
  --amber: #b87522;
  --amber-soft: #fff1dc;
  --gold: #ffb27a;
  --radius: 26px;
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .84);
  --glass-shadow: 0 18px 40px rgba(60, 40, 120, .10), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(255, 255, 255, .24);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 190, 160, .34), transparent 28%),
    radial-gradient(circle at 94% 12%, rgba(136, 120, 255, .32), transparent 32%),
    radial-gradient(circle at 50% 106%, rgba(166, 142, 255, .30), transparent 40%),
    linear-gradient(180deg, #fbf8ff 0%, #f1edfb 55%, #eae6f8 100%);
  background-attachment: fixed;
  color: var(--ink);
}

.topbar {
  padding: calc(12px + var(--safe-top)) 18px 10px;
  background: rgba(250, 247, 255, .64);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .58);
}
.brand { gap: 11px; }
.brand img {
  width: 42px; height: 42px; border-radius: 15px; padding: 4px;
  background: linear-gradient(145deg, #7a67ff, #a18cff);
  box-shadow: 0 6px 16px rgba(91, 72, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.brand-name { font-size: 17px; font-weight: 850; letter-spacing: -.02em; color: #2c205c; }
.brand-sub { font-size: 10.5px; color: #8b83a8; }
.avatar {
  width: 38px; height: 38px; border: 2px solid rgba(255, 255, 255, .9);
  background: linear-gradient(145deg, #7a67ff, #b09dff); color: #fff;
  box-shadow: 0 6px 14px rgba(91, 72, 200, .22);
}
.icon-btn {
  width: 38px; height: 38px; color: #5b4bc4;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 5px 14px rgba(74, 53, 150, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.page { padding: 12px 18px 30px; }
.page-title { font-size: 29px; font-weight: 850; letter-spacing: -.045em; color: #2b1f59; }
.page-sub { color: #8a82a6; font-size: 12.5px; margin-bottom: 16px; }
.section-title { margin: 21px 0 10px; }
.section-title h2 { font-size: 16px; font-weight: 850; letter-spacing: -.02em; color: #33266b; }
.section-title .link-btn { color: #6f5cf1; font-weight: 750; }

.hero {
  border-radius: 32px;
  padding: 21px 20px 20px;
  min-height: 212px;
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(255, 205, 170, .34), transparent 44%),
    radial-gradient(80% 80% at 0% 100%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(145deg, #9a86ff 0%, #7762f2 48%, #5b45d6 100%);
  box-shadow: 0 24px 48px rgba(91, 69, 200, .30), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.hero::before {
  content: ""; position: absolute; right: -54px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .48), rgba(255, 255, 255, .04) 62%);
}
.hero::after {
  right: -86px; bottom: -150px; width: 250px; height: 250px;
  border: 1px solid rgba(255, 255, 255, .17);
}
.hero-eyebrow { color: rgba(255, 255, 255, .72); font-size: 10.5px; letter-spacing: .18em; }
.hero-title { font-size: 30px; font-weight: 850; line-height: 1.12; letter-spacing: -.045em; max-width: 280px; margin-top: 8px; }
.hero-sub { color: rgba(255, 255, 255, .80); font-size: 12.5px; margin-top: 8px; line-height: 1.55; }
.hero-logo {
  width: 58px; height: 58px; border-radius: 20px; padding: 5px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .36);
  box-shadow: 0 8px 18px rgba(48, 28, 130, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
  opacity: 1;
}
.hero-actions { margin-top: 18px; gap: 8px; }
.hero .btn { min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 13px; }
.hero .btn-primary {
  background: rgba(255, 255, 255, .94); color: #4b38b8; border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 18px rgba(53, 32, 130, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.stat-grid { gap: 12px; margin-top: 14px; }
.stat {
  border-radius: 24px; padding: 15px 15px 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(248, 245, 255, .58));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 12px 26px rgba(67, 45, 140, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.stat-label { color: #8a81a6; font-size: 11.5px; font-weight: 650; }
.stat-value { color: #2a1f58; font-size: 25px; font-weight: 850; letter-spacing: -.04em; margin-top: 5px; }
.stat-value small { color: #8a81a6; font-size: 10.5px; }
.stat.red .stat-value { color: #cf5568; }
.stat.amber .stat-value { color: #b87522; }

.card, .request-card, .expense-card, .batch-receive-item, .choice-card,
.insight-box, .user-pick button, .perm-row, .line-table, .summary-card, .batch-bar {
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(250, 247, 255, .48));
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 14px 30px rgba(67, 45, 140, .08), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.card { padding: 16px; }
.card-title { color: #2b205a; font-weight: 850; font-size: 15px; letter-spacing: -.015em; }
.card-sub { color: #8b83a6; font-size: 12px; }

.personal-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(239, 234, 255, .72));
  border-radius: 28px;
}
.personal-grid { gap: 9px; margin-top: 12px; }
.personal-item {
  padding: 12px 6px; border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px rgba(80, 56, 160, .05);
}
.personal-item span { color: #8a81a6; font-size: 9.5px; }
.personal-item strong { color: #5b46d2; font-size: 19px; font-weight: 850; margin-top: 4px; }

.btn {
  min-height: 44px; border-radius: 999px; padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .68); color: #5b49c9;
  box-shadow: 0 5px 14px rgba(74, 53, 150, .07), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.btn-primary, .btn-blue {
  background: linear-gradient(145deg, #7e6aff, #5f4ad9 68%, #513cc8);
  color: #fff; border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 10px 22px rgba(84, 62, 190, .28), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-ghost { background: rgba(255, 255, 255, .62); color: #5b49c9; border-color: rgba(255, 255, 255, .94); }
.btn-danger { background: #fdecef; color: #cf5568; }
.btn-sm { min-height: 34px; border-radius: 999px; }

.chip {
  border-radius: 999px; padding: 6px 12px;
  background: rgba(255, 255, 255, .60);
  border: 1px solid rgba(255, 255, 255, .92);
  color: #776d97;
}
.chip.active {
  background: linear-gradient(145deg, #7e6aff, #5f4ad9);
  color: #fff; border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 7px 16px rgba(84, 62, 190, .22), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.field label { color: #6c628d; font-size: 11.5px; font-weight: 750; }
.field input, .field select, .field textarea {
  min-height: 46px; border-radius: 16px; padding: 0 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  color: #2b2058;
  box-shadow: inset 0 1px 2px rgba(60, 40, 120, .04), 0 1px 0 rgba(255, 255, 255, .9);
}
.field textarea { padding: 11px 14px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(111, 92, 241, .60);
  box-shadow: 0 0 0 4px rgba(111, 92, 241, .12), inset 0 1px 2px rgba(60, 40, 120, .04);
  background: #fff;
}

.app-shell { padding-bottom: calc(112px + var(--safe-bottom)); }
.bottom-nav {
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom));
  padding: 7px; border-radius: 30px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(57, 39, 130, .20), inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
}
.bottom-nav-inner { gap: 2px; }
.nav-item {
  gap: 3px; padding: 6px 2px; border-radius: 20px;
  color: #948cab; font-size: 9.5px; font-weight: 700;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(145deg, #7e6aff, #9b8cff);
  box-shadow: 0 8px 18px rgba(94, 72, 210, .24), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.nav-item.active svg { stroke: currentColor; stroke-width: 2.2; }
.fab {
  right: 20px; bottom: calc(104px + var(--safe-bottom));
  width: 56px; height: 56px;
  background: linear-gradient(145deg, #7e6aff, #5f4ad9);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 16px 30px rgba(83, 61, 190, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.auth-screen {
  align-items: flex-start;
  padding: calc(34px + var(--safe-top)) 18px calc(26px + var(--safe-bottom));
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 205, 170, .50), transparent 30%),
    radial-gradient(circle at 10% 4%, rgba(255, 255, 255, .34), transparent 26%),
    linear-gradient(160deg, #c7bbff 0%, #9480fb 42%, #6b56df 100%);
  color: #fff;
}
.auth-wrap { width: min(100%, 430px); }
.auth-brand { margin-bottom: 26px; gap: 13px; }
.auth-brand img {
  width: 54px; height: 54px; border-radius: 19px; padding: 4px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(50, 30, 130, .20);
}
.auth-brand-name { font-size: 20px; font-weight: 850; letter-spacing: .02em; }
.auth-brand-sub { color: rgba(255, 255, 255, .78); font-size: 11px; }
.auth-title { font-size: 34px; font-weight: 850; line-height: 1.14; letter-spacing: -.045em; max-width: 340px; }
.auth-title em { color: #ffd3a8; }
.auth-desc { color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.65; margin-bottom: 20px; }
.auth-card {
  border-radius: 28px; padding: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(246, 242, 255, .88));
  box-shadow: 0 26px 70px rgba(45, 27, 120, .30), inset 0 1px 0 rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .95);
}
.auth-card .card-title { font-size: 18px; }
.auth-card .card-sub { color: #8b83a6; }
.auth-selected {
  border-radius: 18px; padding: 11px 13px;
  background: rgba(244, 240, 255, .88);
  border: 1px solid rgba(255, 255, 255, .95);
}
.auth-selected .avatar { background: linear-gradient(145deg, #7e6aff, #b09dff); color: #fff; }
.auth-selected strong { color: #3a2c78; }
.auth-selected span { color: #8b83a6; }
.auth-foot { color: rgba(255, 255, 255, .62); }

.modal-backdrop {
  background: rgba(41, 27, 91, .38);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.sheet {
  border-radius: 32px 32px 0 0;
  background: linear-gradient(160deg, rgba(253, 251, 255, .97), rgba(244, 240, 253, .94) 58%, rgba(252, 250, 255, .96));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 -20px 60px rgba(40, 24, 100, .26), inset 0 1px 0 rgba(255, 255, 255, .98);
}
.sheet-head { background: rgba(255, 255, 255, .52); border-bottom-color: rgba(255, 255, 255, .78); }
.sheet-head h3 { color: #2b205a; font-size: 18px; font-weight: 850; }
.sheet-foot { background: rgba(255, 255, 255, .55); border-top-color: rgba(255, 255, 255, .82); }
.sheet-close { background: rgba(255, 255, 255, .78); color: #5d4fc0; border: 1px solid rgba(255, 255, 255, .95); }

.summary-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(240, 235, 255, .70));
}
.summary-total { color: #5b46d2; }
.summary-total strong { font-size: 22px; }
.summary-heading { color: #3b2d75; }
.summary-row { color: #736a91; }
.summary-row strong { color: #3b2d75; }
.summary-note { color: #8b83a6; }

.install-banner {
  background: linear-gradient(135deg, rgba(119, 98, 242, .94), rgba(158, 140, 255, .90));
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(83, 61, 190, .20);
}
.install-banner .list-icon { background: rgba(255, 255, 255, .18); }
.toast {
  background: rgba(42, 27, 96, .86);
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: 0 14px 36px rgba(40, 24, 100, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.task-edit-meta input[type="date"], .task-edit-meta select {
  border-radius: 10px; border-color: rgba(86, 70, 150, .10);
  background: rgba(255, 255, 255, .82);
}

@media (max-width: 380px) {
  .hero-title { font-size: 27px; }
  .page-title { font-size: 26px; }
  .bottom-nav { left: 8px; right: 8px; bottom: calc(8px + var(--safe-bottom)); }
  .nav-item { font-size: 9px; }
}

/* Auth logo needs a tinted plate because the dog mark is white. */
.auth-brand img {
  background: linear-gradient(145deg, #7e6aff, #a18cff);
  border: 1px solid rgba(255, 255, 255, .42);
}

/* -------------------------------------------------------------------------- */
/* Aktiv light refresh: airy blue, circular icon tiles, black dock             */
/* -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12353b;
  --navy: #0d3f48;
  --navy-2: #16525c;
  --blue: #0e7490;
  --blue-soft: #e2f5f8;
  --bg: #edf6f7;
  --card: #ffffff;
  --muted: #76949a;
  --line: #e6eff1;
  --green: #1c8a70;
  --green-soft: #e6f7f1;
  --red: #c95663;
  --red-soft: #fdeff1;
  --amber: #b87522;
  --amber-soft: #fff4e3;
  --gold: #f29a4a;
  --radius: 24px;
  --tile: #e9f8fa;
  --dock: #0c1c1f;
  --shadow: 0 14px 30px rgba(23, 79, 88, .08);
  --font-ui: 'Manrope', 'Avenir Next', 'Söhne', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html { background: var(--bg); }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(255, 208, 165, .36), transparent 25%),
    radial-gradient(circle at 4% 6%, rgba(197, 239, 245, .72), transparent 32%),
    linear-gradient(180deg, #f7fbfc 0%, #edf6f7 48%, #eaf4f5 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: var(--font-ui); }

.topbar {
  padding: calc(13px + var(--safe-top)) 18px 10px;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.brand { gap: 10px; }
.brand img {
  width: 42px; height: 42px; border-radius: 15px;
  padding: 5px; background: #0e7490;
  box-shadow: 0 8px 18px rgba(13, 85, 99, .18);
}
.brand-name { color: #143b43; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand-sub { color: #7f9ca2; font-size: 10.5px; }
.top-actions { gap: 7px; }
.icon-btn {
  width: 40px; height: 40px; color: #15515b;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #e6f0f1;
  box-shadow: 0 6px 14px rgba(19, 69, 77, .07);
}
.avatar {
  width: 40px; height: 40px; color: #fff;
  background: linear-gradient(145deg, #1c7f91, #0a5664);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 7px 15px rgba(9, 70, 82, .18);
}

.page { padding: 12px 18px 30px; }
.page-title { color: #10343b; font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.page-sub { color: #7d989e; font-size: 12px; }
.section-title { margin: 20px 0 9px; }
.section-title h2 { color: #173d44; font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.section-title .link-btn { color: #0e7490; }

.week-strip {
  display: flex; gap: 5px; align-items: stretch;
  margin: 0 0 12px; padding: 7px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(27, 86, 94, .06);
}
.day-pill {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 5px; border-radius: 18px;
  color: #8aa3a8; white-space: nowrap;
}
.day-pill span { font-size: 8.5px; font-weight: 700; letter-spacing: .02em; }
.day-pill strong { font-size: 14px; font-weight: 800; line-height: 1.1; color: #315860; }
.day-pill.active { background: #0d3f48; color: #dff8fa; box-shadow: 0 7px 15px rgba(10, 64, 73, .18); }
.day-pill.active strong { color: #fff; }

.hero {
  border-radius: 30px;
  min-height: 208px;
  padding: 22px 20px 19px;
  color: #103840;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(255, 255, 255, .80), transparent 44%),
    radial-gradient(90% 90% at 0% 100%, rgba(255, 255, 255, .36), transparent 54%),
    linear-gradient(145deg, #dff5f8 0%, #c5edf2 55%, #ace2ea 100%);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 22px 42px rgba(30, 111, 123, .14), inset 0 1px 0 rgba(255,255,255,.90);
}
.hero::before {
  right: -44px; top: -56px; width: 190px; height: 190px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 205, 164, .42), rgba(255, 255, 255, .02) 64%);
}
.hero::after {
  right: -64px; bottom: -118px; width: 220px; height: 220px;
  border: 1px solid rgba(10, 92, 105, .13);
}
.hero-eyebrow { color: #3f7b85; font-size: 10px; letter-spacing: .15em; }
.hero-title { color: #0b343c; font-size: 31px; font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.hero-sub { color: #47767e; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-logo {
  width: 58px; height: 58px; padding: 5px; border-radius: 19px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 10px 20px rgba(25, 95, 105, .12);
  opacity: 1;
}
.hero .btn { min-height: 40px; border-radius: 999px; font-size: 12.5px; }
.hero .btn-primary {
  background: #0e7490; color: #fff; border-color: #0e7490;
  box-shadow: 0 8px 18px rgba(14, 116, 144, .22), inset 0 1px 0 rgba(255,255,255,.20);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, .70); color: #15545e; border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 5px 13px rgba(30, 100, 110, .07);
}

.stat-grid { gap: 11px; margin-top: 13px; }
.stat {
  padding: 15px 14px 14px; border-radius: 23px;
  background: #fff; border: 1px solid #eaf2f3;
  box-shadow: 0 10px 24px rgba(26, 85, 93, .06);
}
.stat-label { color: #79969c; font-size: 11px; font-weight: 700; gap: 7px; }
.stat-label svg {
  width: 14px; height: 14px; padding: 5px; box-sizing: content-box;
  color: #0e7490; background: var(--tile); border-radius: 50%;
}
.stat-value { color: #12353b; font-size: 28px; font-weight: 800; letter-spacing: -.055em; margin-top: 6px; }
.stat-value small { color: #88a1a6; font-size: 10px; font-weight: 700; }
.stat.amber .stat-value { color: #b87522; }
.stat.red .stat-value { color: #c95663; }

.card, .request-card, .expense-card, .batch-receive-item, .choice-card,
.insight-box, .user-pick button, .perm-row, .line-table, .summary-card, .batch-bar {
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e9f1f3;
  box-shadow: 0 10px 24px rgba(25, 80, 88, .055);
}
.card { padding: 16px; }
.card-title { color: #173d44; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.card-title svg { color: #0e7490; }
.card-sub { color: #819ba1; font-size: 11.5px; }
.card + .card { margin-top: 10px; }

.personal-card { background: #fff; border-radius: 24px; }
.personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.personal-item {
  padding: 12px 12px; border-radius: 18px;
  background: #f5fbfc; border: 1px solid #ecf5f6;
  box-shadow: none;
}
.personal-item span { color: #7e9aa0; font-size: 10px; font-weight: 700; }
.personal-item strong { color: #0e6475; font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin-top: 4px; }
.personal-item strong small { color: #89a2a7; font-size: 9.5px; font-weight: 700; }

.btn {
  min-height: 42px; border-radius: 999px; padding: 0 16px;
  border: 1px solid #e6f0f1; background: #fff; color: #155e6b;
  box-shadow: 0 5px 13px rgba(26, 80, 88, .06);
  font-weight: 750;
}
.btn-primary, .btn-blue {
  background: #0e7490; color: #fff; border-color: #0e7490;
  box-shadow: 0 9px 19px rgba(14, 116, 144, .22), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-ghost { background: #fff; color: #155e6b; border-color: #e6f0f1; }
.btn-danger { background: #fdeff1; color: #c95663; border-color: #f8dfe3; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12px; }

.chip {
  border-radius: 999px; padding: 6px 12px;
  background: #fff; border: 1px solid #e6f0f1; color: #78949a;
  font-weight: 700;
}
.chip.active { background: #0d3f48; color: #fff; border-color: #0d3f48; box-shadow: 0 6px 13px rgba(10, 64, 73, .16); }

.field label { color: #66868c; font-size: 11px; font-weight: 750; }
.field input, .field select, .field textarea {
  min-height: 46px; border-radius: 15px; padding: 0 13px;
  background: #f8fbfc; border: 1px solid #e7f0f2; color: #173d44;
  box-shadow: none;
}
.field input[type="file"] { padding: 8px 10px; color: #6b878d; font-size: 11.5px; }
.field input[type="file"]::file-selector-button {
  border: 0; margin-right: 9px; padding: 8px 13px;
  border-radius: 999px; background: #e9f8fa; color: #0e6475;
  font: inherit; font-size: 11.5px; font-weight: 750;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(14, 116, 144, .48);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, .09);
  background: #fff;
}

.app-shell { padding-bottom: calc(108px + var(--safe-bottom)); }
.bottom-nav {
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom));
  padding: 8px; border-radius: 28px;
  background: var(--dock);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 38px rgba(4, 23, 27, .28), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.bottom-nav-inner { gap: 2px; }
.nav-item {
  min-width: 0; gap: 3px; padding: 6px 2px; border-radius: 20px;
  color: #80999e; font-size: 9px; font-weight: 700;
}
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.9; padding: 4px; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,.07); }
.nav-item.active svg { stroke-width: 2.1; background: transparent; }
.nav-item.active {
  color: #082d34;
  background: #66c8d8;
  box-shadow: 0 7px 14px rgba(0,0,0,.18);
}
.nav-item.active svg { stroke-width: 2.1; }
.fab {
  right: 20px; bottom: calc(100px + var(--safe-bottom));
  width: 56px; height: 56px;
  background: #0d3f48; border: 3px solid #eaf6f7;
  box-shadow: 0 15px 28px rgba(8, 55, 63, .24);
}

.auth-screen {
  background:
    radial-gradient(circle at 84% 7%, rgba(255, 204, 160, .34), transparent 28%),
    radial-gradient(circle at 8% 8%, rgba(255,255,255,.62), transparent 28%),
    linear-gradient(160deg, #f5fbfc 0%, #dff3f6 56%, #bfe8ed 100%);
  color: #103840;
}
.auth-wrap { width: min(100%, 430px); }
.auth-brand { margin-bottom: 24px; gap: 13px; }
.auth-brand img {
  width: 54px; height: 54px; border-radius: 18px; padding: 5px;
  background: #0e7490 !important;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 9px 20px rgba(14, 100, 115, .20);
}
.auth-brand-name { color: #113a42; font-size: 20px; font-weight: 800; }
.auth-brand-sub { color: #66878d; font-size: 11px; }
.auth-title { color: #103840; font-size: 35px; font-weight: 800; letter-spacing: -.055em; }
.auth-title em { color: #e08a47; }
.auth-desc { color: #53777e; font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-card {
  border-radius: 26px; padding: 20px;
  background: #fff;
  border: 1px solid #e6f0f2;
  box-shadow: 0 24px 55px rgba(27, 87, 96, .16), inset 0 1px 0 #fff;
}
.auth-card .card-title { color: #173d44; font-size: 18px; }
.auth-card .card-sub { color: #829ca2; }
.auth-selected { border-radius: 17px; padding: 10px 12px; background: #f3fafb; border: 1px solid #e9f3f4; }
.auth-selected .avatar { background: #0e7490; color: #fff; }
.auth-selected strong { color: #17434b; }
.auth-selected span { color: #78969c; }
.auth-foot { color: #718f95; }

.modal-backdrop { background: rgba(7, 45, 52, .34); }
.sheet {
  border-radius: 30px 30px 0 0;
  background: #fbfefe;
  border: 1px solid #e8f2f3;
  box-shadow: 0 -18px 48px rgba(8, 54, 62, .20);
}
.sheet-head { background: rgba(255,255,255,.88); border-bottom-color: #eaf3f4; }
.sheet-head h3 { color: #173d44; font-size: 18px; font-weight: 800; }
.sheet-foot { background: rgba(255,255,255,.92); border-top-color: #eaf3f4; }
.sheet-close { background: #f2f9fa; color: #0e6475; border: 1px solid #e3f0f1; }
.sheet .form-note, .sheet .sheet-note { display: none; }
.sheet-body > .card-sub { display: none; }

.summary-card { background: #fff; }
.summary-total { color: #0e6475; }
.summary-heading { color: #173d44; }
.summary-row { color: #78949a; }
.summary-row strong { color: #173d44; }
.summary-note { color: #829ba1; }

.install-banner {
  background: linear-gradient(135deg, #0e7490, #0b5f75);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: 0 12px 25px rgba(14, 100, 118, .17);
}
.install-banner .list-icon { background: rgba(255,255,255,.16); }
.toast { background: rgba(9, 42, 48, .92); border: 1px solid rgba(255,255,255,.12); }

.list-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #eaf8fa; color: #0e7490;
  border: 1px solid #e3f2f4;
}
.list-title { color: #173d44; font-weight: 750; }
.list-sub { color: #819ba1; }

.btn, .chip, .badge, .nav-item, .stat-label, .page-sub, .card-sub, .list-title, .list-sub,
.perm-row span, .task-edit-meta label, .segmented button, .auth-desc, .hero-sub, .form-note {
  white-space: nowrap;
}
.page-sub, .card-sub, .list-title, .list-sub, .form-note, .hero-sub {
  overflow: hidden; text-overflow: ellipsis;
}
.perm-row span { min-width: 0; }
.perm-row input[type="checkbox"] {
  width: 18px !important; height: 18px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0; flex: 0 0 18px; border-radius: 5px;
  accent-color: #0e7490;
}
.perm-row { min-height: 44px; padding: 10px 12px; border-radius: 14px; background: #f7fbfc; }
.perm-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #315860; }

.guide-body { display: grid; gap: 14px; }
.guide-block { padding: 13px 14px; border-radius: 18px; background: #f4fafb; border: 1px solid #eaf4f5; }
.guide-title { color: #0e6475; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.guide-body p { margin: 0; color: #5f7d83; font-size: 12.5px; line-height: 1.65; white-space: normal; }
.page[data-page="work"] .form-note { display: none; }

@media (max-width: 390px) {
  .page-title { font-size: 27px; }
  .hero-title { font-size: 28px; }
  .hero { padding: 20px 18px 18px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 10.5px; }
  .personal-grid { gap: 7px; }
  .day-pill strong { font-size: 13px; }
}


/* -------------------------------------------------------------------------- */
/* Final polish: glass depth, fixed rhythm, black-dog mark, rich charts        */
/* -------------------------------------------------------------------------- */

:root {
  --glass: rgba(255, 255, 255, .64);
  --glass-strong: rgba(255, 255, 255, .84);
  --glass-line: rgba(255, 255, 255, .92);
  --rhythm: 14px;
}

html, body { background: #edf6f7; }
.app-shell { background:
  radial-gradient(circle at 8% 4%, rgba(150, 235, 241, .34), transparent 34%),
  radial-gradient(circle at 96% 18%, rgba(255, 206, 158, .24), transparent 32%),
  linear-gradient(180deg, #f4fbfc 0%, #edf7f8 48%, #eaf5f6 100%);
}
.page { padding: 14px 16px calc(112px + var(--safe-bottom)); }

.topbar {
  background: rgba(241, 250, 251, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 10px 28px rgba(17, 89, 99, .04);
}
.brand img {
  width: 42px; height: 42px; padding: 5px;
  border-radius: 15px; background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 7px 16px rgba(16, 83, 93, .14), inset 0 1px 0 #fff;
}
.auth-brand img {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .95);
  padding: 5px;
}
.hero-logo {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .98);
  box-shadow: 0 12px 24px rgba(18, 91, 101, .14), inset 0 1px 0 #fff;
}

.card, .stat, .insight-box, .week-strip, .personal-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .58));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 14px 32px rgba(22, 84, 94, .09), 0 2px 6px rgba(22, 84, 94, .035), inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
}
.card + .card { margin-top: 10px; }
.insight-grid { gap: 9px; }
.insight-box { border-radius: 20px; padding: 12px 13px; background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(237, 249, 250, .72)); }
.section-title { margin: 18px 0 9px; }
.section-title + .card, .section-title + .stat-grid { margin-top: 0; }
.hero {
  background: radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .7), transparent 24%), linear-gradient(125deg, #dff7fa 0%, #c4eef3 52%, #a9e2ea 100%);
  border: 1px solid rgba(255, 255, 255, .94);
  box-shadow: 0 18px 38px rgba(22, 101, 112, .13), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.week-strip { border-radius: 22px; box-shadow: 0 12px 28px rgba(20, 88, 97, .08), inset 0 1px 0 #fff; }

.bottom-nav {
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom));
  border-radius: 28px;
  background: rgba(9, 30, 34, .64);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 44px rgba(4, 23, 27, .30), inset 0 1px 0 rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
}
.nav-item { color: #a5bcc0; }
.nav-item svg { background: rgba(255, 255, 255, .08); }
.nav-item.active { color: #082d34; }
.nav-item.active svg { background: transparent; }

.sheet {
  background: linear-gradient(165deg, rgba(250, 254, 255, .94), rgba(237, 249, 250, .88));
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow: 0 -24px 70px rgba(7, 50, 57, .26), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  backdrop-filter: blur(32px) saturate(1.6);
}
.sheet-head { padding: 16px 18px 11px; }
.sheet-body { padding: 16px 18px 24px; }
.sheet-foot { padding: 11px 18px calc(13px + var(--safe-bottom)); gap: 10px; }
.sheet-head, .sheet-foot { background: rgba(255, 255, 255, .48); }
.field { margin-bottom: 13px; }
.field label { margin-bottom: 6px; }
.modal-backdrop { background: rgba(7, 38, 43, .38); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }

.personal-card {
  position: relative; overflow: hidden; padding: 13px 15px 12px; border-radius: 22px;
  background: radial-gradient(circle at 96% 8%, rgba(255, 195, 133, .22), transparent 30%), linear-gradient(140deg, rgba(255, 255, 255, .92), rgba(230, 249, 251, .78));
}
.personal-card::before { content: ''; position: absolute; width: 74px; height: 74px; right: -24px; bottom: -34px; border-radius: 50%; background: rgba(102, 200, 216, .20); }
.personal-card::after { content: ''; position: absolute; width: 38px; height: 38px; right: 34px; top: -22px; border-radius: 50%; background: rgba(242, 154, 74, .16); }
.personal-head { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
.personal-sticker { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .98); box-shadow: 0 7px 14px rgba(27, 103, 113, .10), inset 0 1px 0 #fff; transform: rotate(-6deg); }
.personal-sticker img { width: 32px; height: 22px; object-fit: contain; }
.personal-heading { flex: 1; min-width: 0; }
.personal-heading .card-title { font-size: 14px; }
.personal-caption { margin-top: 1px; color: #819ba1; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.personal-head .link-btn { flex: 0 0 auto; font-size: 11px; }
.personal-grid { position: relative; z-index: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.personal-item { padding: 7px 4px 6px; border-radius: 13px; text-align: center; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85); }
.personal-item span { display: block; color: #79969c; font-size: 9.5px; white-space: nowrap; }
.personal-item strong { display: block; margin-top: 2px; color: #0e6475; font-size: 19px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.personal-item small { margin-left: 1px; font-size: 9px; font-weight: 700; color: #7d989e; }

.chart-card { padding: 14px 14px 12px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chart-pill { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: rgba(233, 248, 250, .92); color: #0e7490; font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.trend-wrap { margin-top: 2px; }
.trend-svg { display: block; width: 100%; height: 108px; overflow: visible; }
.trend-grid { fill: none; stroke: #e5f1f2; stroke-width: 1; stroke-dasharray: 3 4; }
.trend-area { fill: url(#trendFill); }
.trend-line { fill: none; stroke: #1593a4; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: #fff; stroke: #1593a4; stroke-width: 1.8; }
.trend-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 0; margin-top: 1px; }
.trend-days span { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #8ba4a8; font-size: 8px; line-height: 1.2; white-space: nowrap; }
.trend-days i { font-style: normal; font-size: 7.5px; color: #a6b9bc; }
.trend-days span.today { color: #0e6475; font-weight: 800; }
.trend-days span.today i { color: #0e7490; }
.vbars { display: flex; align-items: flex-end; justify-content: space-around; gap: 7px; height: 178px; padding: 6px 2px 0; }
.vbar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.vbar-value { color: #53777d; font-size: 8.5px; font-weight: 750; white-space: nowrap; }
.vbar-track { width: 100%; max-width: 34px; height: 122px; display: flex; align-items: flex-end; border-radius: 12px; background: linear-gradient(180deg, rgba(233, 248, 250, .35), rgba(213, 240, 243, .55)); overflow: hidden; }
.vbar-fill { width: 100%; border-radius: 11px; background: linear-gradient(180deg, #7dd3df 0%, #28a9b8 58%, #0e7490 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); transform-origin: center bottom; }
.vbar:nth-child(2n) .vbar-fill { background: linear-gradient(180deg, #ffd4a6, #f29a4a 65%, #d97c2c); }
.vbar-label { width: 100%; color: #66858b; font-size: 9px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insight-box { position: relative; overflow: hidden; }
.insight-box::after { content: ''; position: absolute; width: 46px; height: 46px; right: -18px; bottom: -20px; border-radius: 50%; background: rgba(102, 200, 216, .13); }
.chart .bar-fill { background: linear-gradient(90deg, #8edbe4, #1593a4); }

.avatar { overflow: hidden; padding: 0; }
.avatar img { display: block; }
.avatar-sm { width: 36px; height: 36px; flex: 0 0 36px; font-size: 14px; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 14px 15px; }
.profile-avatar {
  width: 64px; height: 64px; flex: 0 0 64px; padding: 0; overflow: hidden;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .96);
  background: linear-gradient(145deg, #0e7490, #15515b); color: #fff;
  display: grid; place-items: center; font-size: 23px; font-weight: 800;
  box-shadow: 0 9px 20px rgba(14, 100, 115, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.profile-avatar img { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 50%; }
.profile-main { flex: 1; min-width: 0; }
.profile-name { color: #173d44; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-meta { margin-top: 2px; color: #809ba1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .btn { flex: 0 0 auto; }

/* Home drawers */
.drawer-stack { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 20px; }
.drawer-card {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(24,84,92,.10), inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .25s ease, transform .25s ease;
}
.drawer-card.open {
  box-shadow: 0 20px 46px rgba(24,84,92,.16), inset 0 1px 0 rgba(255,255,255,.96);
}
.drawer-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 0; background: transparent; color: #173d44;
  text-align: left; cursor: pointer;
}
.drawer-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px;
  display: grid; place-items: center; color: #0e7490;
  background: linear-gradient(145deg, #eaf9fb, #d7f1f4);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(19,116,128,.10);
}
.drawer-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-copy small { font-size: 10.5px; color: #7b989e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  color: #0e7490; font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.drawer-card.open .drawer-cta { color: #f29a4a; }
.drawer-body { display: none; padding: 0 15px 15px; }
.drawer-card.open .drawer-body { display: block; animation: drawer-in .26s cubic-bezier(.2,.8,.2,1) both; }
.drawer-card.open .drawer-head { padding-bottom: 10px; }
.drawer-body .stat-grid { margin-top: 0; }
.drawer-body .personal-grid { margin-top: 0; }
.drawer-body .empty { padding: 18px 8px; }
.drawer-body .request-card { margin-bottom: 8px; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Bill / varied windows — less uniform white cards
   -------------------------------------------------------------------------- */
:root {
  --paper: #fffaf0;
  --paper-deep: #fff4df;
  --stamp: #b45309;
}

/* Purchase cards become paper bills, not bordered white panels. */
.request-select-wrap {
  position: relative;
  margin: 8px 0 16px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.request-card {
  position: relative;
  isolation: isolate;
  padding: 16px 18px 15px !important;
  border: 0 !important;
  border-radius: 5px 5px 3px 3px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,250,240,.98)),
    repeating-linear-gradient(0deg, rgba(13,63,72,.035) 0 1px, transparent 1px 23px) !important;
  box-shadow:
    0 18px 30px -16px rgba(13,63,72,.38),
    0 2px 0 rgba(255,255,255,.8) inset !important;
  color: var(--ink) !important;
  overflow: visible;
  transform: rotate(-.28deg);
}
.request-select-wrap:nth-child(even) .request-card { transform: rotate(.24deg); }
.request-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0/14px 14px repeat-x,
    linear-gradient(45deg, transparent 50%, var(--paper) 50%) 0 0/14px 14px repeat-x;
}
.request-head {
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(13,63,72,.28);
}
.request-store {
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}
.request-no {
  margin-top: 3px;
  font-family: "SFMono-Regular", "Cascadia Mono", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(13,63,72,.56) !important;
}
.request-items {
  padding: 10px 0 9px !important;
  color: rgba(13,63,72,.76) !important;
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}
.request-foot {
  margin-top: 0 !important;
  padding-top: 11px;
  border-top: 1px dashed rgba(13,63,72,.24);
}
.request-total {
  color: var(--ink) !important;
  font-size: 28px !important;
  font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.request-meta {
  color: rgba(13,63,72,.55) !important;
  font-size: 10px !important;
}
.request-card .badge {
  border: 1.5px solid currentColor;
  background: transparent !important;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  transform: rotate(-6deg);
  box-shadow: none !important;
}
.request-card .badge.pending { color: #b45309 !important; }
.request-card .badge.received { color: #0e7490 !important; }
.request-card .badge.paid { color: #2f7d4f !important; }
.request-card .badge.mismatch { color: #b13b3b !important; }
.request-select-wrap .request-check {
  top: 12px !important;
  left: 10px !important;
  z-index: 3;
  background: rgba(255,250,240,.88) !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(13,63,72,.12);
}

/* Reimburse summary is a ledger page, not another white card. */
.summary-card {
  border: 0 !important;
  border-radius: 6px 6px 22px 22px !important;
  background: linear-gradient(180deg, #fffdf7, #fff5e6) !important;
  box-shadow: 0 20px 30px -20px rgba(13,63,72,.42), 0 2px 0 rgba(255,255,255,.9) inset !important;
}
.summary-card .form-row input,
.summary-card .field input {
  background: rgba(255,255,255,.62) !important;
}

/* One deep stat, one peach stat: the overview is not four identical tiles. */
.stat-grid .stat:nth-child(1) {
  background: linear-gradient(160deg, #0b3d47, #0e6577) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 20px 26px -18px rgba(13,63,72,.65) !important;
}
.stat-grid .stat:nth-child(1) .stat-label,
.stat-grid .stat:nth-child(1) .stat-value { color: #fff !important; }
.stat-grid .stat:nth-child(1) .stat-label svg { color: #8fe3ee; }
.stat-grid .stat:nth-child(1) .stat-value small { color: rgba(255,255,255,.68); }
.stat-grid .stat:nth-child(4) {
  background: linear-gradient(150deg, #ffe4c9, #fff7ec) !important;
  border-color: transparent !important;
}

/* Compact attendance becomes a small ring layout inside the drawer. */
.personal-grid {
  gap: 8px !important;
}
.personal-item {
  aspect-ratio: 1;
  min-height: 0 !important;
  padding: 7px 4px !important;
  border-radius: 999px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e8f8fa 68%, #d8f1f5) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 10px 18px -14px rgba(13,63,72,.5), 0 1px 0 #fff inset !important;
}
.personal-item span { font-size: 10px !important; color: rgba(13,63,72,.58) !important; }
.personal-item strong { font-size: 22px !important; line-height: 1.05; color: #0b4c5a !important; }
.personal-item strong small { font-size: 9px !important; }

/* Work clock is a vertical time-card with a dark face. */
.attendance-hero {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(102,200,216,.36), transparent 38%),
    linear-gradient(155deg, #082f38 0%, #0c4a55 58%, #0e6577 100%) !important;
  color: #fff !important;
  border-radius: 30px !important;
  box-shadow: 0 24px 34px -24px rgba(8,47,56,.85) !important;
}
.attendance-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -80px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.035), 0 0 0 54px rgba(255,255,255,.025);
  pointer-events: none;
}
.attendance-hero .card-title { color: #fff !important; font-size: 19px; }
.attendance-hero .card-sub { color: rgba(255,255,255,.66) !important; }
.attendance-hero .attendance-clock {
  color: #a9f0f6 !important;
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.attendance-hero .attendance-times div {
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 16px !important;
  padding: 10px 8px !important;
}
.attendance-hero .attendance-times span,
.attendance-hero .attendance-times small { color: rgba(255,255,255,.58) !important; }
.attendance-hero .attendance-times strong { color: #fff !important; }
.attendance-hero .attendance-rule-row { border-color: rgba(255,255,255,.16) !important; }
.attendance-hero .attendance-rule-row span { color: rgba(255,255,255,.62) !important; }
.attendance-hero .attendance-rule-row strong { color: #fff !important; }
.attendance-hero .badge {
  background: rgba(255,255,255,.14) !important;
  color: #d8fbff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
.attendance-hero .btn-primary {
  background: #f7fbfa !important;
  color: #0b3d47 !important;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.45) !important;
}
.attendance-hero .btn-ghost {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* A little editorial spacing between modules. */
.drawer-stack { gap: 14px !important; }
.drawer-card { border-color: rgba(255,255,255,.7) !important; }

/* Deep cobalt home — redesigned 2026-11 */
.home-v2{display:flex;flex-direction:column;gap:12px;padding-bottom:8px;min-width:0}
.home-store{display:flex;align-items:center;gap:8px;background:none;border:0;padding:2px 4px 0;color:var(--ink);font-family:inherit;font-size:22px;font-weight:800;letter-spacing:-.02em;text-align:left;max-width:100%}
.home-store span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-store small{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap}
.home-hero{position:relative;overflow:hidden;isolation:isolate;border-radius:27px;padding:18px 16px 16px;color:#fff;background:
  radial-gradient(120% 90% at 12% 0%,rgba(95,140,255,.58),transparent 55%),
  radial-gradient(100% 80% at 100% 30%,rgba(29,63,160,.65),transparent 60%),
  linear-gradient(145deg,#183e92 0%,#123177 48%,#0b2258 100%);
  box-shadow:0 20px 38px rgba(14,43,105,.28),inset 0 1px 0 rgba(255,255,255,.2);
  background-size:cover;background-position:center}
.home-hero.has-photo{background-size:cover}
.home-hero::before{content:'';position:absolute;inset:0;z-index:-1;opacity:.5;background-image:
  radial-gradient(circle at 18% 22%,rgba(255,255,255,.18) 0 1px,transparent 1.5px),
  radial-gradient(circle at 72% 68%,rgba(255,255,255,.12) 0 1px,transparent 1.5px),
  linear-gradient(115deg,transparent 42%,rgba(255,255,255,.08) 43%,transparent 44%);
  background-size:26px 26px,34px 34px,100% 100%}
.home-hero::after{content:'';position:absolute;right:-60px;bottom:-90px;width:220px;height:220px;border-radius:50%;background:rgba(70,119,230,.28);z-index:-1}
.paper-corner{position:absolute;top:-8px;width:24px;height:38px;background:rgba(255,255,255,.9);box-shadow:0 4px 10px rgba(0,0,0,.12);transform:rotate(-8deg);border-radius:0 0 4px 4px}
.paper-corner::after{content:'';position:absolute;left:50%;top:8px;width:2px;height:18px;background:rgba(0,0,0,.06);transform:translateX(-50%)}
.corner-left{left:22px}.corner-right{left:52px;transform:rotate(5deg);height:30px;opacity:.7}
.hero-edit{position:absolute;right:13px;top:13px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;backdrop-filter:blur(10px)}
.hero-profile{display:flex;align-items:center;gap:11px;min-width:0;margin-top:8px}
.hero-avatar{width:50px;height:50px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 5px 14px rgba(0,0,0,.2);flex:0 0 50px;display:grid;place-items:center}
.hero-avatar .avatar-initial{color:#123177;font-weight:800;font-size:18px}
.hero-avatar>span{color:#123177;font-weight:800;font-size:18px}
.topbar .avatar>span,.auth-selected>span{color:#fff;font-weight:800}
.hero-avatar img{width:100%;height:100%;object-fit:cover}
.hero-id{min-width:0;display:flex;flex-direction:column;gap:1px}
.hero-id span{font-size:10px;color:rgba(255,255,255,.62);letter-spacing:.08em}
.hero-id strong{font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px}
.hero-id small{font-size:10px;color:rgba(255,255,255,.65);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-attendance{display:flex;align-items:center;gap:8px;margin:11px 0 8px;font-size:11px;color:rgba(255,255,255,.78);white-space:nowrap}
.hero-attendance strong{font-weight:650;color:#fff}
.hero-attendance i{width:7px;height:7px;border-radius:50%;background:#f5b26b;margin-left:auto;box-shadow:0 0 0 3px rgba(245,178,107,.18)}
.hero-attendance i.on{background:#70e0cf;box-shadow:0 0 0 3px rgba(112,224,207,.18)}
.worklist{background:rgba(7,24,62,.42);border:1px solid rgba(255,255,255,.15);border-radius:15px;padding:9px 10px;backdrop-filter:blur(8px)}
.worklist-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:700;margin-bottom:5px}
.worklist-head small{font-size:9px;font-weight:500;color:rgba(255,255,255,.55);margin-left:3px}
.worklist-head div{display:flex;gap:8px}
.worklist-head button{background:none;border:0;color:#ffbd7d;font:inherit;font-size:10px;font-weight:700;display:inline-flex;align-items:center;gap:2px;padding:2px 0;white-space:nowrap}
.worklist-scroll{max-height:132px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-behavior:smooth}
.worklist-scroll::-webkit-scrollbar{display:none}
.worklist-row{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;border:0;background:none;color:#fff;font:inherit;font-size:12px;text-align:left;padding:3px 0;border-radius:7px}
.worklist-row:active{background:rgba(255,255,255,.07)}
.worklist-check{width:15px;height:15px;border-radius:4px;border:1px solid rgba(255,255,255,.45);display:grid;place-items:center;flex:0 0 15px;background:rgba(255,255,255,.06)}
.worklist-row.done .worklist-check{background:#ffb26b;border-color:#ffb26b;color:#16346f}
.worklist-row.done .worklist-text{text-decoration:line-through;color:rgba(255,255,255,.48)}
.worklist-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.worklist-by{font-size:9px;color:rgba(255,255,255,.45);white-space:nowrap}
.worklist-empty{font-size:11px;color:rgba(255,255,255,.52);padding:6px 0}
.hero-actions{display:flex;gap:7px;margin-top:11px;min-width:0}
.hero-primary,.hero-ghost{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:34px;padding:0 12px;border-radius:18px;font:inherit;font-size:11px;font-weight:700;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.hero-primary{background:#fff;color:#123177;border:0;box-shadow:0 6px 12px rgba(0,0,0,.16)}
.hero-ghost{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(6px);flex:1}
.home-money-row{display:flex;align-items:center;gap:10px;min-width:0}
.money-pill{flex:1;min-width:0;height:64px;border-radius:32px;background:linear-gradient(135deg,#123a8f,#0d2662);color:#fff;padding:0 18px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 12px 22px rgba(14,43,105,.2);position:relative;overflow:hidden}
.money-pill::after{content:'';position:absolute;right:-10px;top:-20px;width:80px;height:80px;border-radius:50%;background:rgba(255,255,255,.08)}
.money-pill span{font-size:10px;color:rgba(255,255,255,.68);white-space:nowrap}
.money-pill strong{font-size:19px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.money-orb{width:78px;height:78px;border-radius:50%;border:0;background:linear-gradient(145deg,#ffb06b,#f0863b);color:#3b1a05;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 78px;box-shadow:0 12px 22px rgba(240,134,59,.28);font:inherit}
.money-orb span{font-size:9px;font-weight:700;white-space:nowrap}
.money-orb strong{font-size:12px;font-weight:800;white-space:nowrap;max-width:68px;overflow:hidden;text-overflow:ellipsis}
.home-blocks{display:grid;grid-template-columns:1fr 1fr .92fr;gap:10px;min-width:0}
.home-block{height:130px;border:0;border-radius:18px;background:linear-gradient(155deg,#19479c,#0d2a69);color:#fff;padding:13px 12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;font:inherit;box-shadow:0 12px 22px rgba(15,45,105,.18);position:relative;overflow:hidden;min-width:0}
.home-block::after{content:'';position:absolute;right:-22px;bottom:-28px;width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.08)}
.home-block.mismatch{background:linear-gradient(155deg,#1d50a7,#103071)}
.home-block>span{font-size:11px;font-weight:600;color:rgba(255,255,255,.76);white-space:nowrap}
.home-block>strong{font-size:38px;line-height:1;font-weight:800;letter-spacing:-.04em;margin-top:8px;white-space:nowrap}
.home-block>strong small{font-size:12px;font-weight:500;margin-left:2px}
.home-block>i{position:absolute;left:12px;bottom:12px;opacity:.5;display:flex}
.house-block{height:130px;border:0;border-radius:18px;background:linear-gradient(155deg,#d7ebf2,#b9dbe7);color:#0d3f48;padding:12px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;font:inherit;position:relative;overflow:hidden;min-width:0;box-shadow:0 12px 22px rgba(32,107,129,.12)}
.house-block .house-avatar{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.7);display:grid;place-items:center;color:#166a82}
.house-block strong{font-size:14px;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.house-block small{font-size:9px;color:#3d7180;margin-top:2px;white-space:nowrap}
.house-block>i{position:absolute;right:10px;top:11px;opacity:.55}
@media (max-width:370px){.home-block>strong{font-size:32px}.home-blocks{gap:7px}.money-orb{width:70px;height:70px;flex-basis:70px}.home-hero{padding:16px 13px 13px}.hero-actions{gap:5px}.hero-primary,.hero-ghost{padding:0 9px;font-size:10px}}

/* Worklist / employee house / avatar dot */
.avatar-wrap{position:relative;display:inline-flex;flex:0 0 auto}
.house-dot{position:absolute;right:-1px;top:-1px;width:10px;height:10px;border-radius:50%;background:#ef5b4c;border:2px solid #f3fafb;display:none;box-shadow:0 2px 5px rgba(239,91,76,.35)}
.house-dot.show{display:block}
.store-switch-list{display:flex;flex-direction:column;gap:8px}
.store-switch-row{display:flex;align-items:center;gap:10px;width:100%;border:1px solid rgba(13,63,72,.1);background:#fff;border-radius:16px;padding:12px;font:inherit;text-align:left;color:var(--ink)}
.store-switch-row.active{border-color:rgba(14,116,144,.35);background:#effafb}
.store-switch-row>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}
.store-switch-row strong{font-size:14px}
.store-switch-row small{font-size:11px;color:var(--muted);margin-top:1px}
.store-switch-dot{width:10px;height:10px;border-radius:50%;background:#b9dbe7;flex:0 0 10px}
.store-switch-row.active .store-switch-dot{background:#0e7490}
.hero-tones{display:flex;gap:10px;flex-wrap:wrap}
.hero-tone{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:var(--muted)}
.hero-tone input{position:absolute;opacity:0;pointer-events:none}
.hero-tone span{width:42px;height:42px;border-radius:50%;background:var(--tone);border:3px solid #fff;box-shadow:0 0 0 1px rgba(13,63,72,.12);display:block}
.hero-tone input:checked+span{box-shadow:0 0 0 2px #0e7490,0 6px 14px rgba(13,63,72,.18)}
.hero-tone small{white-space:nowrap}
.house-list{display:flex;flex-direction:column;gap:10px;padding-bottom:76px}
.house-post{background:#fff;border:1px solid rgba(13,63,72,.08);border-radius:20px;padding:14px;box-shadow:0 8px 18px rgba(13,63,72,.06);min-width:0}
.house-post-head{display:flex;align-items:center;gap:9px;min-width:0}
.house-post-head>div{display:flex;flex-direction:column;min-width:0}
.house-post-head strong{font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.house-post-head small{font-size:10px;color:var(--muted)}
.house-post p{font-size:14px;line-height:1.55;color:var(--ink);margin:10px 0 0;overflow-wrap:anywhere}
.house-share{display:flex;align-items:center;gap:8px;width:100%;margin-top:11px;padding:10px;border-radius:13px;border:1px dashed rgba(14,116,144,.25);background:#f2fbfc;color:var(--ink);font:inherit;text-align:left;min-width:0}
.house-share span{display:flex;color:#0e7490;flex:0 0 auto}
.house-share div{display:flex;flex-direction:column;flex:1;min-width:0}
.house-share strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.house-share small{font-size:10px;color:var(--muted);margin-top:1px}
.house-leave-card{background:#fff;border:1px solid rgba(13,63,72,.08);border-radius:18px;padding:14px;box-shadow:0 8px 18px rgba(13,63,72,.06);min-width:0}
.house-leave-card .between{gap:8px;min-width:0}
.house-leave-card strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.house-meta{font-size:11px;color:var(--muted);margin-top:5px}
.house-leave-card p{font-size:12px;line-height:1.5;color:var(--ink);margin:7px 0 0;overflow-wrap:anywhere}
.house-actions{display:flex;gap:8px;margin-top:10px}
.house-actions .btn{flex:1;min-height:36px}
.house-fab-row{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 32px),430px);display:flex;gap:8px;z-index:35}
.house-fab-row .btn{flex:1;box-shadow:0 10px 20px rgba(13,63,72,.18)}
@media (max-width:370px){.house-fab-row{width:calc(100% - 24px)}.home-blocks{grid-template-columns:1fr 1fr 1fr}.home-block,.house-block{height:120px;padding:10px}.home-block>strong{font-size:30px}}

@keyframes bill-unfold{0%{opacity:.2;transform:perspective(700px) rotateX(-16deg) scaleY(.9);transform-origin:top center}60%{opacity:1;transform:perspective(700px) rotateX(2deg) scaleY(1.01)}100%{opacity:1;transform:none;transform-origin:top center}}
.request-card{animation:bill-unfold .5s cubic-bezier(.2,.8,.2,1) both;will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){.request-card{animation:none}}

.segmented{display:flex;gap:4px;padding:4px;border-radius:14px;background:rgba(228,243,246,.92);border:1px solid rgba(13,63,72,.06);min-width:0}
.segmented button{flex:1;min-width:0;height:36px;border:0;border-radius:10px;background:transparent;color:#4a737c;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.segmented button.active{background:#fff;color:#0e7490;box-shadow:0 3px 9px rgba(13,63,72,.1)}
html,body{overflow-x:hidden}
.home-v2,.home-hero,.home-money-row,.home-blocks,.home-block,.house-block,.drawer-card,.request-card{max-width:100%;min-width:0}
.home-block>strong{font-size:clamp(28px,7vw,40px)}
@media (max-width:360px){.home-hero{padding:16px}.hero-actions .btn{min-width:0;padding:0 10px;font-size:12px}.home-money-row{gap:8px}.money-pill{padding:0 12px}.money-orb{width:76px;height:76px;flex-basis:76px}}

/* Strict brief: black / white / orange, cobalt surfaces */
:root{
  --ink:#111111; --navy:#111111; --blue:#111111; --gold:#f28a2e;
  --font-ui:"PingFang SC","PingFang TC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;
  --radius:8px;
}
html,body{background:#f4f6f6;color:#111;font-family:var(--font-ui)}
body,.page,.sheet,.modal,.topbar,.bottom-nav,.card,.stat,.insight-box,.batch-bar,.house-post,.house-leave-card,.request-card,.summary-card,.profile-card,.segmented,.field label,.field input,.field select,.field textarea,.page-sub,.card-sub,.small,.muted,.empty,.empty-sub,.section-title,.card-title,.stat-label,.stat-value,.page-title,.list-row,.summary-heading,.house-meta,.house-post p,.house-leave-card p{color:#111}
.page-sub,.card-sub,.small,.muted,.empty,.empty-sub,.meta,.stat-label,.field label,.house-meta{color:#111}
a,.link-btn,.section-title .link-btn,.request-store,.add-line,.chart-pill,.house-share span,.segmented button.active{color:#111}
.section-title .link-btn{color:#f28a2e}
.page-title{font-size:29px;font-weight:800;letter-spacing:-.04em;color:#111}
.card,.stat,.insight-box,.batch-bar,.profile-card{border:0;background:#fff;box-shadow:0 4px 0 rgba(17,17,17,.04);border-radius:10px}
.btn-primary,.btn-blue,.btn-primary:not(:disabled){background:#183e92;color:#fff;border-color:#183e92}
.btn-ghost{background:#fff;color:#111;border-color:rgba(17,17,17,.16)}
.chip.active{background:#183e92;color:#fff;border-color:#183e92}
.badge.pending{color:#f28a2e;background:rgba(242,138,46,.12);border-color:rgba(242,138,46,.28)}
.badge.received,.badge.paid{color:#111;background:#eef0f0;border-color:#e3e6e6}
.badge.mismatch{color:#111;background:#f28a2e;border-color:#f28a2e}
.btn-primary svg,.btn-blue svg{color:#fff}
.btn-ghost svg{color:#111}
.field input,.field select,.field textarea{background:#fff;border-color:rgba(17,17,17,.16);color:#111}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#183e92;box-shadow:0 0 0 3px rgba(24,62,146,.1)}
::placeholder{color:rgba(17,17,17,.42)}

/* Home: no topbar, script type, paper card */
.is-home .topbar{display:none}
.is-home .page{padding-top:18px}
.home-v2{max-width:560px;margin:0 auto}
.home-store{color:#111;font-family:"FZShuTi","方正舒体","Hannotate SC","Hannotate TC","HanziPen SC","Kaiti SC","STKaiti",cursive;font-size:30px;font-weight:400;padding:0 4px 8px}
.home-store small{font-family:var(--font-ui);font-size:12px;color:#111}
.home-store small svg{color:#111}
.home-hero{
  border-radius:5px;
  padding:46px 18px 14px;
  box-shadow:0 4px 0 rgba(17,17,17,.12),0 14px 30px rgba(18,44,104,.12);
  color:#fff;
  font-family:"FZShuTi","方正舒体","Hannotate SC","Hannotate TC","HanziPen SC","Kaiti SC","STKaiti",cursive;
  background:
    linear-gradient(145deg,rgba(25,62,146,.96),rgba(20,48,120,.98)),
    repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px);
}
.home-hero *{font-family:inherit}
.home-hero .paper-corner{background:#fff;opacity:.96}
.home-hero .hero-edit{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
.hero-profile{display:flex;flex-direction:row-reverse;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 12px}
.hero-profile .hero-avatar{width:56px;height:56px;flex:0 0 56px;border:0;background:#f1f3f3}
.hero-profile .hero-avatar>span,.hero-profile .hero-avatar img{color:#111}
.hero-id{flex:1;min-width:0;text-align:left}
.hero-id>span{display:block;color:#fff;font-size:13px;opacity:.9}
.hero-id strong{display:block;color:#fff;font-size:clamp(17px,4.8vw,21px);font-weight:400;line-height:1.2;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:clip;letter-spacing:-.02em}
.hero-id small{color:#fff;font-size:11px;opacity:.86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-attendance{display:flex;align-items:center;gap:8px;margin:8px 0 10px;color:#fff;font-size:12px;white-space:nowrap}
.hero-attendance small{font-size:11px;color:#fff;opacity:.85}
.hero-attendance b{font-size:12px;font-weight:400;color:#f28a2e}
.hero-leave-bar{width:70px;height:7px;border-radius:99px;background:rgba(255,255,255,.28);overflow:hidden;flex:0 0 70px}
.hero-leave-bar i{display:block;height:100%;background:#f28a2e;border-radius:99px;transition:width .5s ease}
.hero-clock{text-align:right;color:#fff;font-size:11px;opacity:.86;margin-top:4px}
.worklist{border-top:1px solid rgba(255,255,255,.28);border-bottom:1px solid rgba(255,255,255,.28);padding:9px 0 6px}
.worklist-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#fff;font-size:12px}
.worklist-head small{font-size:10px;color:#fff;opacity:.8;margin-left:4px}
.worklist-head button{border:0;background:none;color:#f28a2e;font:inherit;font-size:11px;padding:0 3px;white-space:nowrap}
.worklist-scroll{max-height:144px;overflow-y:auto;overscroll-behavior:contain;margin-top:5px;scrollbar-width:none}
.worklist-scroll::-webkit-scrollbar{display:none}
.worklist-row{display:flex;align-items:center;gap:9px;width:100%;min-height:34px;border:0;background:none;color:#fff;text-align:left;padding:3px 0;font:inherit;font-size:12px}
.worklist-check{width:15px;height:15px;flex:0 0 15px;border:1.5px solid #fff;border-radius:2px;display:grid;place-items:center;color:#fff}
.worklist-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.worklist-row.done .worklist-text{text-decoration:line-through;text-decoration-thickness:1px}
.worklist-row.done .worklist-check{background:#f28a2e;border-color:#f28a2e;color:#111}
.worklist-by{font-size:9px;color:#f28a2e;flex:0 0 auto}
.worklist-empty{font-size:11px;color:#fff;opacity:.72;padding:7px 0}
.hero-actions{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:10px;margin:13px 0 14px}
.hero-actions button{min-width:0;height:40px;border-radius:999px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-primary{background:#183e92;color:#fff;border:1px solid #183e92}
.hero-ghost{background:#183e92;color:#fff;border:1px solid #183e92}
.hero-primary svg,.hero-ghost svg{color:#fff}
.home-money-row{display:grid;grid-template-columns:minmax(0,1.2fr) 66px minmax(0,.9fr);align-items:center;gap:9px;margin:0 0 14px}
.money-pill{min-width:0;min-height:78px;border-radius:999px;background:#183e92;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:0 18px;overflow:hidden}
.money-pill span{font-size:11px;color:#fff;white-space:nowrap}
.money-pill strong{display:block;font-family:var(--font-ui);font-size:clamp(19px,5.4vw,26px);font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.money-ratio{height:52px;border-radius:999px;background:transparent;overflow:hidden;display:flex;flex-direction:row;align-items:center;padding:0;gap:0;min-width:0;box-shadow:0 0 0 1px rgba(17,17,17,.08)}
.money-ratio i{display:block;height:18px;border-radius:0;transition:width .55s cubic-bezier(.2,.8,.2,1);min-width:0}
.ratio-buy{background:#183e92;border-radius:999px 0 0 999px}
.ratio-pay{background:#f28a2e;border-radius:0 999px 999px 0}
.money-orb{width:86px;height:86px;min-width:0;border-radius:50%;border:0;background:#f28a2e;color:#111;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;overflow:hidden}
.money-orb span{font-size:10px;color:#111;white-space:nowrap}
.money-orb strong{display:block;font-family:var(--font-ui);font-size:14px;color:#111;white-space:nowrap}
.home-blocks{display:grid;grid-template-columns:1fr 1fr 1.08fr;gap:9px}
.home-block,.house-block{height:132px;border:0;border-radius:14px;padding:11px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;overflow:hidden;min-width:0}
.home-block{background:#183e92;color:#fff}
.home-block span{font-size:13px;color:#fff;white-space:nowrap}
.home-block strong{font-family:var(--font-ui);font-size:clamp(28px,7vw,40px);font-weight:700;color:#fff;line-height:1;margin-top:12px;white-space:nowrap}
.home-block strong small{font-size:12px;font-weight:500;color:#fff}
.home-block i{margin-top:auto;color:#fff}
.home-block.mismatch strong{color:#f28a2e}
.house-block{background:#dbeaf1;color:#111;position:relative}
.house-block .house-avatar{width:32px;height:32px;border-radius:50%;background:#fff;color:#183e92;display:grid;place-items:center}
.house-block strong{font-family:"FZShuTi","方正舒体","Hannotate SC","Hannotate TC","HanziPen SC","Kaiti SC","STKaiti",cursive;font-size:20px;font-weight:400;color:#f28a2e;margin-top:8px;white-space:nowrap}
.house-block small{font-size:10px;color:#111;margin-top:auto}
.house-block i{position:absolute;right:9px;top:9px;color:#111}

/* Batch bar: never overflow */
.batch-bar{display:grid!important;gap:10px;padding:13px;min-width:0}
.batch-copy{min-width:0}
.batch-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.batch-actions .btn{width:100%;min-width:0;height:36px;padding:0 8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.batch-bar .card-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Bottom dock: neutral black, white active pill */
.bottom-nav{background:rgba(30,34,34,.82);border:0;border-radius:26px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.nav-item{color:#fff;font-family:var(--font-ui)}
.nav-item.active{background:#fff;color:#111;border-radius:22px}
.nav-item.active svg{color:#111}
.nav-item svg{color:#fff}

/* Other pages: paper bills, no generic white outline */
.request-card{background:#fbf7ee;border:0;border-radius:5px;box-shadow:0 4px 0 rgba(17,17,17,.06)}
.request-card .badge{background:#fbf7ee}
.summary-card{background:#fbf7ee;border:0;border-radius:5px;box-shadow:0 4px 0 rgba(17,17,17,.06)}
.sheet{border-radius:8px 8px 0 0;background:#fff}
.sheet-head,.sheet-foot{background:#fff}
.segmented{background:#eef0f0;border:0}
.segmented button{color:#111}
.segmented button.active{background:#fff;color:#111}
.house-post,.house-leave-card{background:#fff;border:0;border-radius:8px;box-shadow:0 3px 0 rgba(17,17,17,.05)}
.house-share span,.house-post-head small,.house-meta{color:#111}
.house-block.closed{color:#111}
.page-title{color:#111}
@media (max-width:360px){
  .home-hero{padding:15px}
  .home-money-row{grid-template-columns:minmax(0,1fr) 50px minmax(0,.85fr);gap:7px}
  .money-pill{padding:0 14px}
  .money-orb{width:76px;height:76px}
  .money-orb strong{font-size:12px}
  .home-block,.house-block{height:124px;padding:9px}
  .house-block strong{font-size:18px}
  .hero-actions{gap:7px}
  .hero-actions button{height:38px;font-size:12px;padding:0 6px}
  .batch-actions{grid-template-columns:1fr}
}

/* Only three ink colours: black, white, orange */
.page,.page *,.sheet,.sheet *,.topbar,.topbar *,.auth-card,.auth-card *,.toast,.toast *,.empty,.empty *{color:#111!important}
.home-hero,.home-hero *{color:#fff!important}
.home-hero .hero-attendance b,.home-hero .worklist-by,.home-hero .worklist-head button{color:#f28a2e!important}
.home-hero .worklist-row.done .worklist-check{color:#111!important}
.home-block,.home-block *{color:#fff!important}
.home-block.mismatch strong{color:#f28a2e!important}
.house-block,.house-block *{color:#111!important}
.house-block strong{color:#f28a2e!important}
.hero-actions button,.hero-actions button *{color:#fff!important}
.money-pill,.money-pill *{color:#fff!important}
.money-orb,.money-orb *{color:#111!important}
.btn-primary,.btn-primary *,.btn-blue,.btn-blue *{color:#fff!important}
.btn-ghost,.btn-ghost *{color:#111!important}
.chip.active,.chip.active *{color:#fff!important}
.badge.pending,.badge.pending *{color:#f28a2e!important}
.badge.received,.badge.paid,.badge.mismatch,.badge.received *,.badge.paid *,.badge.mismatch *{color:#111!important}
.bottom-nav .nav-item{color:#fff!important}
.bottom-nav .nav-item *{color:#fff!important}
.bottom-nav .nav-item.active{color:#111!important}
.bottom-nav .nav-item.active *{color:#111!important}
.attendance-hero,.attendance-hero *{color:#fff!important}
.attendance-hero .hero-clock{color:#fff!important}
.hero-clock{color:#fff!important}
.empty svg,.empty-sub svg{color:#111!important}
.icon-btn,.icon-btn *{color:#111!important}
.request-card .badge.pending{color:#f28a2e!important}
.request-card .badge.received,.request-card .badge.paid{color:#111!important}

/* Mobile scrolling + bigger avatar, no white frame */
html,body{height:auto!important;min-height:100%!important;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch}
#app,.app-shell,.page{overflow:visible;height:auto;max-height:none}
.topbar .avatar,.topbar .avatar img,.hero-avatar,.hero-avatar .avatar,.hero-avatar img,.profile-avatar,.profile-avatar .avatar,.profile-avatar img,.avatar-sm,.avatar-sm .avatar,.avatar-sm img{border:0!important;box-shadow:none!important}
.topbar .avatar{width:42px;height:42px;flex-basis:42px;font-size:15px}
.hero-profile .hero-avatar{width:68px;height:68px;flex:0 0 68px;background:rgba(255,255,255,.12);border-radius:50%;padding:2px}
.hero-profile .hero-avatar .avatar,.hero-profile .hero-avatar img{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover}
.profile-avatar{width:80px;height:80px;flex:0 0 80px;border-radius:50%;padding:0;background:#eef1f1}
.profile-avatar .avatar,.profile-avatar img{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover}

/* strict fixes: no glass blur, transparent hero avatar, continuous ratio bar */
.topbar,.hero-ghost,.sheet,.bottom-nav,.modal-backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.hero-profile .hero-avatar{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.hero-profile .hero-avatar .avatar{background:transparent!important;border:0!important;color:#fff!important;box-shadow:none!important}
.hero-profile .hero-avatar img{background:transparent!important;border:0!important;box-shadow:none!important}
.money-ratio{overflow:hidden;background:#f3f6ff;box-shadow:0 0 0 1px rgba(17,17,17,.10);gap:0!important}
.money-ratio i,.money-ratio .ratio-buy,.money-ratio .ratio-pay{border-radius:0!important}
.attendance-hero .attendance-clock{color:#fff!important}
.attendance-hero .card-sub,.attendance-hero .attendance-times small,.attendance-hero .attendance-times span{color:#fff!important}
.attendance-hero{background:linear-gradient(145deg,#2456c2 0%,#183e92 52%,#0b2868 100%)!important}
.auth-brand-name,.auth-brand-name *,.auth-brand-sub,.auth-desc,.auth-foot{color:#111!important}
.auth-title{color:#111!important}
.auth-title em{color:#f28a2e!important}
.auth-brand-name em,.auth-hero em{color:#f28a2e!important}
.hero-avatar>span{color:#fff!important;font-size:26px!important;font-weight:800!important;line-height:1}


/* 1.4.3 refinement: tape, mini chart, profile, deep-blue 3D surfaces, glass dock */
:root{--blue:#183e92;--navy:#183e92;--gold:#f28a2e}
.home-hero{overflow:visible!important;padding-top:44px!important;border-radius:8px!important}
.paper-corner{top:-30px!important;width:38px!important;height:74px!important;left:36px!important;background:
  linear-gradient(103deg,rgba(255,255,255,.88),rgba(244,239,225,.78) 46%,rgba(255,255,255,.58)),
  repeating-linear-gradient(92deg,transparent 0 7px,rgba(38,62,112,.08) 7px 8px)!important;
  clip-path:polygon(8% 0,92% 3%,100% 84%,84% 94%,71% 87%,58% 98%,45% 89%,31% 96%,14% 90%,0 97%)!important;
  border:0!important;border-radius:0!important;box-shadow:2px 3px 8px rgba(8,22,58,.14)!important;
  opacity:.92;z-index:5;transform:rotate(-8deg)!important}
.paper-corner.corner-right{left:88px!important;top:-35px!important;height:82px!important;transform:rotate(7deg)!important;opacity:.86}
.paper-corner::after{content:''!important;position:absolute!important;left:48%!important;top:6px!important;width:1px!important;height:60px!important;background:rgba(30,50,90,.12)!important;box-shadow:7px 0 0 rgba(255,255,255,.3),-7px 0 0 rgba(30,50,90,.06)!important}
.hero-profile{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin-top:0!important}
.hero-signature{position:relative;flex:1;min-width:0;text-align:left;background:none!important;border:0!important;padding:0!important;color:#fff!important;display:block;box-shadow:none!important}
.hero-signature>span{display:block;color:#fff!important;font:500 11px/1.3 var(--font-ui);opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-signature>strong{display:block;color:#fff!important;font-family:"FZShuTi","STXingkai","Kaiti SC",serif!important;font-size:clamp(19px,5.2vw,24px);font-weight:400;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hero-signature>i{display:inline-flex;color:#f28a2e!important;margin-top:1px}
.hero-person{flex:0 0 82px;width:82px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.hero-profile .hero-avatar{width:68px!important;height:68px!important;flex:0 0 68px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.hero-name{display:block;max-width:82px;color:#fff!important;font:600 12px/1.3 var(--font-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-role{display:block;max-width:82px;color:#fff!important;font:400 10px/1.2 var(--font-ui);opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-clock{display:flex!important;align-items:center;justify-content:flex-end;gap:6px}
.hero-clock i{width:8px;height:8px;border-radius:50%;display:block;flex:0 0 8px}
.hero-clock .clock-on{background:#2bb673;box-shadow:0 0 0 3px rgba(43,182,115,.16)}
.hero-clock .clock-off{background:#e14b4b;box-shadow:0 0 0 3px rgba(225,75,75,.14)}
.home-money-row{grid-template-columns:minmax(0,1.15fr) 74px minmax(0,.85fr)!important;gap:8px!important}
.money-chart{height:64px;min-width:0;display:flex;align-items:flex-end;justify-content:center;gap:8px;position:relative;padding:7px 5px 9px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.5));box-shadow:6px 10px 18px rgba(20,45,95,.16),inset 0 1px 0 #fff;overflow:hidden}
.money-chart::before{content:'';position:absolute;inset:8px 7px 10px;background:repeating-linear-gradient(0deg,transparent 0 12px,rgba(24,62,146,.08) 12px 13px);pointer-events:none}
.money-chart::after{content:'';position:absolute;left:12px;right:12px;bottom:7px;height:1px;background:rgba(17,17,17,.18)}
.money-chart i{position:relative;width:15px;min-height:5px;border-radius:7px 7px 3px 3px;display:block;transition:height .55s cubic-bezier(.2,.8,.2,1)}
.money-chart .chart-buy{background:#183e92;box-shadow:3px 5px 10px rgba(24,62,146,.25)}
.money-chart .chart-pay{background:#f28a2e;box-shadow:3px 5px 10px rgba(242,138,46,.28)}
.card,.stat,.request-card,.summary-card,.insight-box,.drawer-card,.sheet,.profile-card,.attendance-card,.home-block,.house-block{box-shadow:8px 14px 28px rgba(18,42,92,.14),inset 0 1px 0 rgba(255,255,255,.85)!important}
.icon-btn,.btn,.chip,.filter-chip,.metric-toggle button,.hero-primary,.hero-ghost,.money-pill,.money-orb,.nav-item{box-shadow:5px 9px 17px rgba(18,42,92,.16),inset 0 1px 0 rgba(255,255,255,.34)}
.btn-primary,.hero-primary{background:#183e92!important;color:#fff!important;border-color:#183e92!important}
.btn-primary *,.hero-primary *{color:#fff!important}
.icon-btn,.icon-btn svg{color:#183e92!important}
.stat-label svg,.card-title svg,.link-btn{color:#183e92!important}
.chip.active,.filter-chip.active,.segmented button.active,.metric-toggle button.active,.tab.active{background:#183e92!important;color:#fff!important;border-color:#183e92!important}
.chip.active *,.filter-chip.active *,.segmented button.active *,.metric-toggle button.active *,.tab.active *{color:#fff!important}
.badge.received{background:#183e92!important;color:#fff!important}
.badge.pending{background:#f28a2e!important;color:#111!important}
.badge.mismatch{background:#f28a2e!important;color:#111!important}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#183e92!important;box-shadow:0 0 0 3px rgba(24,62,146,.12)!important}
.bottom-nav{background:rgba(255,255,255,.46)!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:26px!important;box-shadow:8px 14px 28px rgba(18,42,92,.2),inset 0 1px 0 #fff!important}
.bottom-nav-inner{gap:4px!important}
.nav-item{color:#111!important;background:transparent!important;border-radius:17px!important;padding:8px 10px!important;box-shadow:none!important}
.nav-item svg{color:#111!important;background:transparent!important}
.nav-item.active{background:#183e92!important;color:#fff!important;border-radius:17px!important;box-shadow:5px 9px 17px rgba(24,62,146,.3)!important}
.topbar .avatar,.profile-avatar,.auth-selected .avatar{background:#183e92!important;color:#fff!important}
.fab{background:#183e92!important;color:#fff!important}
.attendance-hero{background:linear-gradient(145deg,#183e92,#0b2258)!important}
.stat.amber,.stat-grid .stat:nth-child(1){background:linear-gradient(145deg,#183e92,#0b2258)!important;color:#fff!important}
.stat.amber *,.stat-grid .stat:nth-child(1) *{color:#fff!important}
.attendance-hero .attendance-rule-row span,.attendance-hero .attendance-rule-row strong{color:#fff!important}
.attendance-hero .btn{background:#fff!important;color:#111!important}
.attendance-hero .btn *{color:#111!important}
.nav-item.active,.nav-item.active *{color:#fff!important}
.nav-item.active svg{color:#fff!important}
@media (max-width:360px){
  .home-money-row{grid-template-columns:minmax(0,1.1fr) 60px minmax(0,.9fr)!important}
  .money-chart{gap:5px;padding-left:3px;padding-right:3px}
  .money-chart i{width:12px}
  .hero-person{flex-basis:72px;width:72px}
  .hero-profile .hero-avatar{width:60px!important;height:60px!important;flex-basis:60px!important}
  .paper-corner{left:28px!important;width:32px!important}.paper-corner.corner-right{left:74px!important}
}
.bottom-nav .nav-item{color:#111!important;background:transparent!important}
.bottom-nav .nav-item *{color:#111!important}
.bottom-nav .nav-item svg{color:#111!important;background:transparent!important}
.bottom-nav .nav-item.active{background:#183e92!important;color:#fff!important}
.bottom-nav .nav-item.active *,.bottom-nav .nav-item.active svg{color:#fff!important}
.paper-corner{top:-22px!important;height:54px!important;opacity:.8!important;box-shadow:1px 2px 5px rgba(8,22,58,.12)!important}
.paper-corner.corner-right{top:-27px!important;height:58px!important;opacity:.74!important}
.paper-corner::after{height:42px!important}
.hero-clock{color:#fff!important;font-weight:700!important;font-size:11px!important}
.stat-label,.house-avatar,.worklist-check,.avatar-wrap{box-shadow:3px 6px 12px rgba(18,42,92,.14),inset 0 1px 0 rgba(255,255,255,.7)}

/* v1.4.5 detail fixes */
.worklist{top:-4px;margin:4px 0 -4px;padding:8px 0 10px;min-height:122px}
.worklist-head{padding:0 12px 6px;align-items:center;gap:8px}
.worklist-head>span{line-height:1.25;padding-top:1px}
.worklist-head>span small{margin-left:4px}
.worklist-scroll{max-height:150px;min-height:78px}
.worklist-row{padding:5px 12px!important}
.worklist-empty{padding:0 12px 4px}
.stat-label{border:0!important;box-shadow:none!important}
.stat-label::before,.stat-label::after{display:none!important}
.stat-grid .stat:nth-child(2) .stat-label{background:#f28a2e!important;color:#111!important;border-radius:10px;padding:3px 8px!important;width:max-content;max-width:100%;box-shadow:none!important}
.stat-grid .stat:nth-child(2) .stat-label *{color:#111!important;background:transparent!important}
.request-card .badge.pending{display:none!important}
.badge.received{background:#183e92!important;color:#fff!important;border:0!important}
.badge.received *{color:#fff!important}
.badge.pending,.badge.mismatch{background:#f28a2e!important;color:#111!important;border:0!important}
.badge.pending *,.badge.mismatch *{color:#111!important}
.card,.home-block,.house-leave-card,.sheet,.stat{padding-left:18px;padding-right:18px}
.work-stats-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.work-stats-head .card-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#work-stats-month{width:124px!important;max-width:42%;min-width:0!important;padding:5px 4px!important;font-size:11px!important;border-radius:9px!important;box-sizing:border-box}
.work-stat-row{padding-left:6px;padding-right:6px}
.work-stat-shifts,.work-stat-row .form-note{padding-left:2px;padding-right:2px;line-height:1.5}
.hero-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.hero-flip{display:inline-flex;align-items:center;gap:3px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff!important;border-radius:999px;padding:5px 10px;font-size:11px;line-height:1;white-space:nowrap}
.hero-flip svg{color:#fff!important}
.hero-schedule{min-height:338px;animation:cardFlip .45s ease}
@keyframes cardFlip{from{transform:perspective(900px) rotateY(88deg);opacity:.25}to{transform:perspective(900px) rotateY(0);opacity:1}}
.schedule-face{position:relative;z-index:2;color:#fff;display:flex;flex-direction:column;gap:7px;height:100%}
.schedule-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 2px}
.schedule-top strong{font-family:"FZShuTi","Hannotate SC","HanziPen SC","STKaiti","KaiTi",serif;font-size:25px;color:#fff!important;font-weight:500}
.schedule-top small{font-size:11px;color:rgba(255,255,255,.82)!important;white-space:nowrap;max-width:45%;overflow:hidden;text-overflow:ellipsis}
.schedule-top select{max-width:138px;min-width:0;background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:9px!important;padding:5px 7px!important;font-size:11px!important}
.schedule-top select option{color:#111;background:#fff}
.schedule-week{display:flex;flex-direction:column;gap:3px;flex:1}
.schedule-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 10px;min-height:27px;border-radius:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.schedule-row span{display:flex;align-items:baseline;gap:6px;min-width:0}
.schedule-row b{font-size:12px;color:#fff!important;font-weight:700}
.schedule-row small{font-size:10px;color:rgba(255,255,255,.66)!important}
.schedule-row strong{font-size:12px;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-row strong.is-leave{color:#f28a2e!important}
.schedule-row.today{background:rgba(242,138,46,.20);border-color:#f28a2e}
.schedule-face>.hero-flip{align-self:flex-start;margin-top:1px}
.house-leave-card{background:linear-gradient(145deg,#183e92,#0b2258)!important;color:#fff!important;border:0!important;border-radius:18px!important;padding:16px 16px 14px!important;box-shadow:8px 14px 28px rgba(18,42,92,.20)!important;position:relative;overflow:hidden}
.house-leave-card::before{content:"";position:absolute;right:-32px;top:-40px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.08)}
.house-leave-card .between,.house-leave-card .house-meta,.house-leave-card p{position:relative;z-index:1}
.house-leave-card strong,.house-leave-card p,.house-leave-card .house-meta{color:#fff!important}
.house-leave-card .house-meta{color:rgba(255,255,255,.78)!important;line-height:1.5;margin:6px 0}
.house-leave-card p{line-height:1.5;margin:0 0 8px}
.house-leave-card .badge{color:#111!important;background:#f28a2e!important;border:0!important}
.house-leave-card .badge *{color:#111!important}
.house-leave-card .btn-primary{background:#f28a2e!important;color:#111!important}
.house-leave-card .btn-ghost{background:rgba(255,255,255,.14)!important;color:#fff!important;border-color:rgba(255,255,255,.3)!important}
@media (max-width:360px){.schedule-top strong{font-size:21px}.schedule-top select{max-width:112px}.schedule-row{padding:4px 8px}.work-stats-head{flex-wrap:wrap}#work-stats-month{max-width:100%;width:132px!important}}
.bottom-nav{background:rgba(255,255,255,.74)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 12px 30px rgba(18,42,92,.18)!important;backdrop-filter:none!important}
.request-card .badge.received{background:#183e92!important;color:#fff!important;border-color:transparent!important}
.request-card .badge.received *{color:#fff!important}
.request-card .badge.mismatch{background:#f28a2e!important;color:#111!important;border-color:transparent!important}
.request-card .badge.mismatch *{color:#111!important}
.topbar .icon-btn,.page-title+.page-sub svg{color:#183e92!important}
.page .icon-btn{color:#183e92!important}
#edit-request-form>.row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
#edit-request-form>.row .btn{width:100%;justify-content:center;min-width:0}

/* v1.4.7 calendar, boot, toast and card rhythm */
.boot{background:#0A1D36!important}
.boot-run{position:relative;width:180px;height:112px;display:flex;align-items:flex-end;justify-content:center}
.boot-logo{width:148px;height:100px!important;border-radius:0!important;object-fit:contain;animation:boot-dog .72s ease-in-out infinite alternate;filter:drop-shadow(0 10px 14px rgba(0,0,0,.28))}
.boot-run:before,.boot-run:after{content:'';position:absolute;left:20px;right:20px;bottom:0;height:2px;border-radius:2px;background:rgba(255,255,255,.28)}
.boot-run:after{left:44px;right:44px;bottom:-8px;opacity:.5}
.boot-run i{position:absolute;bottom:16px;width:16px;height:2px;border-radius:2px;background:rgba(255,255,255,.5);animation:boot-line .7s linear infinite}
.boot-run i:nth-child(2){left:0;bottom:24px}
.boot-run i:nth-child(3){right:0;bottom:10px;animation-delay:.18s}
.boot-run i:nth-child(4){left:8px;bottom:2px;animation-delay:.36s}
@keyframes boot-dog{from{transform:translateY(2px) rotate(-2deg)}to{transform:translateY(-9px) rotate(2deg)}}
@keyframes boot-line{0%,100%{opacity:.15;transform:translateX(0)}50%{opacity:.8;transform:translateX(-8px)}}
.toast{background:#183e92!important;color:#fff!important;border:1px solid rgba(255,255,255,.24)!important;box-shadow:0 14px 30px rgba(8,26,58,.35)!important}
.toast.error{background:#183e92!important;color:#fff!important}
.request-select-wrap .request-check{margin:0 0 11px 16px!important;padding:3px 9px;border-radius:999px;background:rgba(255,250,240,.9);left:auto!important;top:auto!important}
.request-card{padding-top:16px!important}

.home-hero.hero-front{aspect-ratio:4/3!important;height:auto!important;max-height:none!important;padding:26px 18px 12px!important;display:flex;flex-direction:column;overflow:hidden!important}
.hero-front .hero-profile{flex:0 0 auto;height:76px;min-height:0;align-items:flex-start;padding:0}
.hero-front .hero-signature{min-width:0;max-width:calc(100% - 92px);gap:1px}
.hero-front .hero-signature strong{font-size:18px;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.hero-front .hero-person{width:78px;flex:0 0 78px;gap:1px;align-self:flex-start}
.hero-front .hero-avatar{width:44px;height:44px;flex-basis:44px}
.hero-front .hero-name{font-size:10px;line-height:1.2;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-front .hero-role{font-size:8px;line-height:1.2}
.hero-front .hero-attendance{flex:0 0 auto;margin:4px 0 7px;font-size:10px;gap:5px}
.hero-front .hero-attendance small,.hero-front .hero-attendance span{font-size:9px}
.hero-front .hero-leave-bar{height:5px}
.hero-front .worklist{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;padding:9px 12px 10px}
.hero-front .worklist-head{flex:0 0 auto;min-height:20px;padding:0;align-items:center}
.hero-front .worklist-head>span{font-size:10px;gap:4px}
.hero-front .worklist-head small{font-size:9px}
.hero-front .worklist-head button{font-size:9px;padding:1px 3px}
.hero-front .worklist-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding:2px 38px 2px 0;scrollbar-width:none}
.hero-front .worklist-row{min-height:24px;padding:2px 0!important;font-size:10px}
.hero-front .worklist-empty{font-size:9px;padding:4px 0}
.hero-front .hero-foot{flex:0 0 auto;margin-top:4px;min-height:14px;font-size:8px}
.hero-front .hero-clock{gap:5px;font-size:8px}
.worklist-schedule{position:absolute;right:8px;bottom:8px;z-index:4;width:44px;height:44px;border-radius:50%;border:0;background:#f28a2e;color:#111!important;font:700 11px/1 "PingFang SC",sans-serif;box-shadow:0 8px 16px rgba(8,26,58,.26);display:grid;place-items:center}
.worklist-schedule:active{transform:scale(.95)}
@media (max-width:360px){.home-hero.hero-front{padding:22px 14px 10px!important}.hero-front .hero-profile{height:64px}.hero-front .hero-signature strong{font-size:16px}.hero-front .hero-person{width:68px;flex-basis:68px}.hero-front .hero-avatar{width:38px;height:38px;flex-basis:38px}.hero-front .worklist{padding:7px 9px 8px}.hero-front .worklist-schedule{width:38px;height:38px;font-size:10px}.hero-front .hero-foot{font-size:7px}}

/* Scheduling calendar */
.hero-schedule{padding:26px 16px 14px!important;overflow:hidden!important;border-radius:27px}
.schedule-face{gap:6px}
.schedule-top{align-items:center;gap:8px}
.schedule-top>div:first-child{display:flex;flex-direction:column;gap:0}
.schedule-top strong{font-size:24px;line-height:1;color:#fff!important}
.schedule-top small{font-size:9px;color:rgba(255,255,255,.65)}
.schedule-controls{display:flex;align-items:center;gap:4px}
.schedule-controls button{width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;padding:0}
.schedule-controls .schedule-mode{width:auto;min-width:44px;padding:0 9px;border-radius:999px;font-size:10px;color:#fff!important}
.schedule-person{display:flex;align-items:center;min-height:24px}
.schedule-person select{max-width:150px;height:24px;border-radius:999px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);color:#fff;font-size:10px;padding:0 8px}
.schedule-person span{font-size:10px;color:rgba(255,255,255,.75)}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekdays span{text-align:center;font-size:9px;color:rgba(255,255,255,.62);line-height:16px}
.calendar-grid{gap:4px}
.cal-cell{min-width:0;min-height:42px;border-radius:7px;padding:4px 3px 3px;display:flex;flex-direction:column;align-items:center;gap:2px;color:#fff;overflow:hidden}
.cal-cell b{font-size:10px;line-height:1;font-weight:600}
.cal-cell>span{font-size:8px;line-height:1;white-space:nowrap}
.cal-cell.is-empty{background:transparent;min-height:42px}
.cal-cell.is-today{box-shadow:inset 0 0 0 2px #f28a2e}
.shift-early{background:#6fd6d7!important;color:#fff!important}
.shift-mid{background:#f28a2e!important;color:#fff!important}
.shift-late{background:#183e92!important;color:#fff!important}
.shift-rest{background:#35b56f!important;color:#fff!important}
.cal-all{background:rgba(255,255,255,.09);align-items:flex-start;min-height:56px}
.cal-all b{font-size:9px;color:rgba(255,255,255,.65)}
.cal-people{display:flex;flex-direction:column;gap:1px;width:100%;min-width:0;max-height:none;overflow:visible;padding-bottom:2px}
.cal-people span{display:flex;align-items:center;gap:2px;font-size:7px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;max-width:100%}
.cal-people em{font-style:normal;font-size:8px;color:rgba(255,255,255,.4)}
.cal-people i{width:4px;height:4px;border-radius:50%;flex:0 0 4px}
.hero-schedule .schedule-top{padding-right:42px}
.hero-schedule .hero-edit{top:12px;right:12px}
.dot-early{background:#6fd6d7}.dot-mid{background:#f28a2e}.dot-late{background:#183e92}.dot-rest{background:#35b56f}
.calendar-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:8px;color:rgba(255,255,255,.72)}
.calendar-legend span{display:flex;align-items:center;gap:3px}
.calendar-legend i{width:5px;height:5px;border-radius:50%}
.hero-schedule .hero-flip{align-self:flex-start;margin-top:1px;font-size:9px;padding:2px 0}
@media (max-width:360px){.hero-schedule{padding:22px 12px 12px!important}.calendar-grid,.calendar-weekdays{gap:3px}.cal-cell{min-height:36px;padding:3px 2px}.cal-cell b{font-size:9px}.cal-cell>span{font-size:7px}.cal-people span{font-size:7px}.schedule-top strong{font-size:20px}}
/* fit four worklist rows inside the 4:3 card */
.hero-front{padding:18px 18px 6px!important}
.hero-front .hero-profile{height:62px}
.hero-front .hero-avatar{width:38px;height:38px;flex-basis:38px}
.hero-front .hero-signature strong{font-size:17px}
.hero-front .hero-attendance{margin:0 0 3px;font-size:8.5px;gap:4px}
.hero-front .worklist{padding:5px 10px 6px}
.hero-front .worklist-head{min-height:17px}
.hero-front .worklist-row{min-height:18px;padding:0!important;font-size:9px}
.hero-front .worklist-check{width:14px;height:14px;flex:0 0 14px}
.hero-front .worklist-scroll{padding:2px 44px 2px 0}
.hero-front .hero-foot{min-height:10px;margin-top:1px}
.hero-front .hero-clock{font-size:7.5px}

/* 1.4.8 iOS glass background, real tape, aligned money row, card-level schedule button */
html,body{background:#e6f5f8}
body{font-family:"PingFang SC","SF Pro Text","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased}
.app-shell{position:relative;isolation:isolate;background:
  radial-gradient(circle at 92% 4%,rgba(255,224,166,.92) 0,rgba(255,224,166,.55) 18%,transparent 42%),
  radial-gradient(circle at 4% 98%,rgba(104,201,224,.78) 0,rgba(181,235,243,.5) 26%,transparent 56%),
  linear-gradient(225deg,#ffe9c7 0%,#f7f3e9 36%,#cceef4 100%)!important}
.app-shell::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.72;filter:blur(.35px);background:
  radial-gradient(circle at 88% 10%,rgba(255,255,255,.6) 0 25px,rgba(255,255,255,.08) 26px 30px,transparent 31px),
  radial-gradient(circle at 78% 23%,rgba(255,214,154,.34) 0 58px,rgba(255,214,154,.08) 59px 64px,transparent 65px),
  radial-gradient(circle at 94% 46%,rgba(255,255,255,.34) 0 39px,transparent 40px),
  radial-gradient(circle at 12% 78%,rgba(73,181,210,.28) 0 72px,rgba(73,181,210,.06) 73px 78px,transparent 79px),
  radial-gradient(circle at 24% 91%,rgba(255,255,255,.42) 0 28px,transparent 29px),
  radial-gradient(circle at 64% 96%,rgba(116,206,224,.24) 0 52px,transparent 53px),
  radial-gradient(circle at 7% 28%,rgba(255,255,255,.26) 0 18px,transparent 19px)}
.app-shell::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(150deg,rgba(255,255,255,.28),rgba(255,255,255,.06) 45%,rgba(255,255,255,.2))}
.app-shell>*{position:relative;z-index:1}
.topbar{background:rgba(255,255,255,.46)!important;border-bottom-color:rgba(255,255,255,.55)!important}
.page{background:transparent!important}
.home-hero.hero-front{overflow:visible!important;border-radius:22px!important}
.home-hero.hero-front::after{right:0!important;bottom:0!important;width:180px!important;height:180px!important;opacity:.32!important}
.paper-corner{top:-34px!important;left:26px!important;width:44px!important;height:86px!important;opacity:.9!important;
  transform:rotate(-11deg)!important;
  clip-path:polygon(6% 0,26% 3%,47% 0,70% 4%,94% 1%,100% 90%,82% 96%,66% 90%,50% 99%,34% 92%,18% 97%,0 90%)!important;
  background:linear-gradient(103deg,rgba(255,255,255,.9),rgba(246,241,227,.8) 48%,rgba(255,255,255,.62)),
    repeating-linear-gradient(92deg,transparent 0 7px,rgba(38,62,112,.07) 7px 8px)!important;
  box-shadow:3px 5px 10px rgba(8,22,58,.16)!important;z-index:9!important}
.paper-corner.corner-right{left:80px!important;top:-40px!important;height:92px!important;transform:rotate(8deg)!important;opacity:.84!important}
.worklist-schedule{right:18px!important;bottom:14px!important;width:46px!important;height:46px!important;z-index:8!important}
.hero-front .worklist-scroll{padding-right:0!important}
.home-money-row{grid-template-columns:minmax(0,1fr) 58px 96px!important;gap:8px!important;padding:0!important}
.money-pill{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;align-items:center!important;padding:12px 14px!important;min-width:0!important}
.money-pill .money-ico{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.money-pill .money-ico svg{width:18px;height:18px}
.money-pill .money-label{font-size:10px!important;line-height:1.15!important;color:#fff!important;white-space:nowrap}
.money-pill strong{font-size:clamp(20px,5.6vw,28px)!important;line-height:1.05!important;color:#fff!important;white-space:nowrap}
.money-chart{height:58px!important;border-radius:18px!important}
.money-orb{position:relative!important;padding-top:15px!important;min-width:0!important;width:96px!important;height:96px!important;aspect-ratio:1!important;justify-self:end!important;align-self:center!important;color:#111!important}
.money-orb .orb-ico{display:grid;place-items:center;color:#111!important;margin-bottom:1px}
.money-orb .orb-ico svg{width:15px;height:15px}
.money-orb span:not(.orb-ico){font-size:10px!important;line-height:1.15!important;white-space:nowrap}
.money-orb strong{font-size:clamp(17px,4.6vw,23px)!important;line-height:1.05!important;white-space:nowrap}
@media (max-width:360px){.home-money-row{grid-template-columns:minmax(0,1fr) 50px 84px!important}.money-pill{grid-template-columns:28px minmax(0,1fr)!important;padding:10px!important}.money-pill .money-ico{width:28px;height:28px}.money-chart{height:50px!important}.money-orb{padding-top:10px!important;width:84px!important;height:84px!important}}

/* 1.4.9 iOS surfaces: full-page glass, gel highlights, aligned block icons */
.worklist-schedule{position:absolute!important;right:18px!important;bottom:8px!important;width:46px!important;height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;text-align:center!important;z-index:8!important}
.hero-front .hero-foot{height:54px!important;min-height:54px!important;margin-top:0!important;display:flex!important;align-items:flex-end!important;padding-bottom:4px!important}
.hero-actions{gap:8px!important;margin:10px 0 11px!important}
.home-money-row{margin:0 0 10px!important}
.home-blocks{gap:8px!important}
.home-block,.house-block{height:128px!important;padding:11px 12px!important}
.home-block>i,.house-block .house-avatar{position:absolute!important;left:12px!important;bottom:11px!important;width:26px!important;height:26px!important;border-radius:9px!important;display:grid!important;place-items:center!important;margin:0!important;background:rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 3px 7px rgba(8,22,58,.12)!important}
.home-block>i svg{width:16px!important;height:16px!important}
.house-block .house-avatar{background:#fff!important;color:#183e92!important}
.house-block .house-avatar svg{width:16px!important;height:16px!important}
.house-block small{margin-top:auto!important;margin-bottom:30px!important}
.house-block strong{margin-top:5px!important}
.btn,.hero-primary,.hero-ghost,.icon-btn,.money-orb,.worklist-schedule,.nav-item{position:relative;isolation:isolate;overflow:hidden}
.btn::after,.hero-primary::after,.hero-ghost::after,.icon-btn::after,.money-orb::after,.worklist-schedule::after,.nav-item::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:linear-gradient(180deg,rgba(255,255,255,.36),rgba(255,255,255,.05) 42%,rgba(8,22,58,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.52),inset 0 -8px 16px rgba(8,22,58,.06)}
.btn>*,.hero-primary>*,.hero-ghost>*,.icon-btn>*,.money-orb>*,.worklist-schedule>*,.nav-item>*{position:relative;z-index:1}
.auth-screen{position:relative;isolation:isolate;overflow:hidden;background:
  radial-gradient(circle at 92% 4%,rgba(255,224,166,.92) 0,rgba(255,224,166,.5) 20%,transparent 42%),
  radial-gradient(circle at 4% 98%,rgba(104,201,224,.7) 0,rgba(181,235,243,.45) 28%,transparent 58%),
  linear-gradient(225deg,#ffe9c7 0%,#f7f3e9 36%,#cceef4 100%)!important}
.auth-screen::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.6;background:
  radial-gradient(circle at 86% 12%,rgba(255,255,255,.55) 0 24px,transparent 25px),
  radial-gradient(circle at 12% 82%,rgba(73,181,210,.24) 0 66px,transparent 67px),
  radial-gradient(circle at 22% 92%,rgba(255,255,255,.38) 0 26px,transparent 27px)}
.auth-screen::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(150deg,rgba(255,255,255,.24),rgba(255,255,255,.04))}




/* 1.4.9 fit: keep schedule button outside the worklist while restoring a 3-row view */
.hero-front .hero-profile{height:58px!important}
.hero-front .hero-foot{height:46px!important;min-height:46px!important;flex:0 0 46px!important;padding-bottom:2px!important}
.worklist-schedule{width:38px!important;height:38px!important;right:16px!important;bottom:4px!important;font-size:10px!important}
.hero-front .worklist-row{min-height:17px!important}
.hero-front .worklist-scroll{padding:2px 0!important}

/* 1.4.10 fixed iOS backdrop, no overlap, smoother scrolling */
body{position:relative;background:#e6f5f8}
body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(circle at 92% 4%,rgba(255,224,166,.92) 0,rgba(255,224,166,.55) 18%,transparent 42%),
    radial-gradient(circle at 4% 98%,rgba(104,201,224,.78) 0,rgba(181,235,243,.5) 26%,transparent 56%),
    linear-gradient(225deg,#ffe9c7 0%,#f7f3e9 36%,#cceef4 100%)}
#app{position:relative;z-index:1}
.app-shell{background:transparent!important;position:relative;z-index:1}
*{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.hero-front .hero-profile{height:64px!important}
.hero-front .hero-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important}
.hero-front .hero-name{font-size:10.5px!important;line-height:1.2!important}
.hero-front .hero-role{font-size:8.5px!important;line-height:1.2!important}
.hero-front .worklist-row{min-height:16px!important}

/* 1.4.10 performance: no full-screen blur filters, fixed backdrop only */
.app-shell::before{filter:none!important}
html{-webkit-text-size-adjust:100%}

/* 1.4.10 performance: also disable blur on pseudo layers */
*::before,*::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* 1.4.11 bigger avatar, taller worklist without changing card size */
.hero-front .hero-avatar{width:44px!important;height:44px!important;flex:0 0 44px!important}
.hero-front .hero-attendance{margin:6px 0 2px!important}
.hero-front .worklist{margin-top:0!important;padding-top:6px!important;padding-bottom:8px!important}
.hero-front .worklist-row{min-height:16px!important}
.hero-front .hero-foot{height:40px!important;min-height:40px!important;flex:0 0 40px!important;padding-bottom:2px!important}
.worklist-schedule{width:36px!important;height:36px!important;bottom:4px!important;right:16px!important;font-size:10px!important}

/* 1.4.11 fit four list rows under the larger avatar without covering text */
.hero-front .hero-attendance{margin:0 0 2px!important}
.hero-front .worklist{margin-top:2px!important;padding:4px 12px!important}
.hero-front .worklist-head{min-height:15px!important}
.hero-front .worklist-row{min-height:15px!important}
.hero-front .hero-foot{height:38px!important;min-height:38px!important;flex:0 0 38px!important}
.worklist-schedule{width:34px!important;height:34px!important;bottom:4px!important;right:16px!important;font-size:9px!important}

/* 1.4.12 avatar radius 1.8x, floating without moving text */
.hero-front .hero-person{position:relative!important;padding-top:44px!important;width:94px!important;flex:0 0 94px!important}
.hero-front .hero-avatar{position:absolute!important;top:-39px!important;right:0!important;width:79px!important;height:79px!important;flex:0 0 79px!important;margin:0!important;z-index:10!important}
.hero-front .hero-avatar img,.hero-front .hero-avatar .avatar{width:100%!important;height:100%!important}
.hero-front .hero-edit{left:16px!important;right:auto!important;top:2px!important;width:32px!important;height:32px!important;z-index:12!important;background:rgba(255,255,255,.16)!important}

/* 1.4.13 avatar fully inside card, shift name/worklist only */
.hero-front .hero-person{padding-top:58px!important}
.hero-front .hero-avatar{top:-25px!important}
.hero-front .hero-attendance{margin-top:7px!important}

/* 1.4.13 calendar day picker */
.cal-cell{width:100%;min-width:0;border:0;font:inherit;text-align:left;cursor:pointer;-webkit-appearance:none;appearance:none}
.cal-cell:active{transform:scale(.97)}
.shift-day-user{display:flex;align-items:center;gap:10px;padding:2px 0 14px;border-bottom:1px solid rgba(17,17,17,.1);margin-bottom:14px}
.shift-day-user .avatar,.shift-day-user .avatar-sm{width:34px;height:34px;flex:0 0 34px}
.shift-day-user strong{display:block;font-size:15px;color:#111}
.shift-day-user span{display:block;margin-top:3px;font-size:11px;color:#111;opacity:.62}
.shift-day-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shift-day-btn{min-height:64px;border:0;border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#fff;font:inherit;cursor:pointer;box-shadow:5px 9px 18px rgba(18,42,92,.2)}
.shift-day-btn strong{font-size:15px;line-height:1.1;color:#fff}
.shift-day-btn span{font-size:10px;line-height:1.1;color:#fff;opacity:.85}
.shift-day-btn.early{background:#5ecbd0}
.shift-day-btn.mid{background:#f28a2e}
.shift-day-btn.late{background:#183e92}
.shift-day-btn.comp{background:#35b56f}
.shift-day-btn.annual{background:#52657a}
.shift-day-btn.current{outline:3px solid #f28a2e;outline-offset:2px}
.shift-day-clear{width:100%;margin-top:12px;border:0;border-radius:16px;background:rgba(24,62,146,.08);color:#183e92;padding:13px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.shift-day-btn.leave{background:#52657a}

/* 1.4.14 avatar top margin = right margin; signature slightly lower */
.hero-front .hero-avatar{top:-8px!important}
.hero-front .hero-person{padding-top:75px!important}
.hero-front .hero-attendance{margin-top:24px!important}
.hero-front .hero-signature{position:relative!important;top:8px!important}

/* developer theme layer */
#jhg-page-bg{position:fixed;inset:0;z-index:0;background-position:center;background-size:cover;background-repeat:no-repeat;pointer-events:none;opacity:0;transition:opacity .25s ease}
.app-shell{position:relative;z-index:1}
.task-repeat-wrap{display:flex;gap:4px;min-width:0;align-items:center}
.task-repeat-wrap select{flex:1;min-width:0}
.task-repeat-wrap [data-task-monthday]{display:none;width:42px;min-width:42px;padding:0 4px;text-align:center}
.task-repeat-wrap.is-month [data-task-monthday]{display:block}
/* 1.5.0 fit fixes */
.home-store span{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-store small{flex:0 0 auto;white-space:nowrap}
.money-orb strong{max-width:100%!important;overflow:visible!important;text-overflow:clip!important;font-size:clamp(14px,4vw,18px)!important;letter-spacing:-.04em!important}
@media (max-width:360px){.money-orb strong{font-size:14px!important}}
.approval-card .approval-summary{margin-top:10px;font-size:13px;line-height:1.55;color:#111;word-break:break-word}
.approval-card .badge{flex:none}
.schedule-item.done:not(.disabled){cursor:pointer}

.auth-manual{display:flex;align-items:center;gap:8px;margin:8px 0 2px;padding:10px 12px;border-radius:14px;background:rgba(24,62,146,.08);color:#111;font-size:13px}
.auth-manual[hidden]{display:none!important}
.auth-manual-label{font-size:11px;font-weight:700;color:#183e92;background:rgba(24,62,146,.10);padding:2px 7px;border-radius:999px}
.auth-manual strong{font-weight:700}

/* 11/21 request: choice descriptions, home message board, tags */
.choice-card>span:last-child{min-width:0}
.choice-desc{display:block;margin-top:3px;font-size:11px;line-height:1.35;color:#111;opacity:.62;white-space:normal}
.home-blocks.two{grid-template-columns:1fr 1fr}
.home-board{margin:0 16px 10px;padding:15px 16px;border-radius:22px;background:rgba(255,250,240,.86);border:1px solid rgba(24,62,146,.10);box-shadow:8px 14px 28px rgba(18,42,92,.12);cursor:pointer}
.home-board-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.home-board-head strong{font-size:15px;color:#111}
.home-board-head span{font-size:10px;color:#f28a2e;white-space:nowrap}
.home-board-row{padding:8px 0;border-top:1px dashed rgba(24,62,146,.15)}
.home-board-meta{display:flex;align-items:center;gap:6px;min-width:0}
.home-board-meta strong{font-size:12px;color:#111;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-board-meta small{margin-left:auto;font-size:9px;color:#111;opacity:.5;white-space:nowrap}
.home-board-row p{margin:3px 0 0;font-size:12px;line-height:1.35;color:#111;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.home-board-empty{padding:9px 0 2px;font-size:12px;color:#111;opacity:.55}
.house-tag{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;background:#f28a2e;color:#111;font-size:9px;line-height:1.5;white-space:nowrap;margin-left:5px;vertical-align:1px}

/* Task date filter */
.schedule-filter{display:flex;align-items:center;gap:8px;margin-top:12px;padding:7px 10px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(24,62,146,.12)}
.schedule-filter input{flex:1;min-width:0;height:32px;border:0!important;background:transparent!important;padding:0 4px!important;font-size:13px;color:var(--ink)}
.schedule-filter .btn{flex:0 0 auto;height:32px;padding:0 13px;font-size:12px}
.schedule-future-tag{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#f28a2e;color:#111;font-size:10px;font-weight:700;white-space:nowrap}
.schedule-readonly-note{margin-top:8px;padding:7px 10px;border-left:3px solid #f28a2e;border-radius:0 10px 10px 0;background:rgba(242,138,46,.09);color:#111;font-size:11px;line-height:1.45}
.schedule-item.disabled{opacity:.58;cursor:not-allowed}

/* 1123 detail/expense refinements */
.detail-hero, .detail-hero .request-store, .detail-hero .request-no, .detail-hero .request-total, .detail-hero .muted { color:#fff!important; }
.home-board-delete { margin-left:auto; width:26px; height:26px; border:0; border-radius:50%; background:rgba(255,255,255,.6); color:#111; display:inline-flex; align-items:center; justify-content:center; flex:0 0 26px; }
.home-board-meta { align-items:center; gap:6px; }
.home-board-delete:active { transform:scale(.94); }
