:root {
  --accent: #2463b0;
  --dark: #0d2554;
  --soft: #4a80c4;
  --tint: rgba(36, 99, 176, 0.1);
  --blue-fade: linear-gradient(110deg, var(--dark) 0%, #1b4687 55%, var(--soft) 100%);
  --text: rgba(0, 0, 0, 0.95);
  --pale: rgba(51, 51, 51, 0.7);
  --xpale: rgba(51, 51, 51, 0.5);
  --line: rgba(51, 51, 51, 0.08);
  --fill: rgba(51, 51, 51, 0.05);
  --fill2: rgba(51, 51, 51, 0.1);
  --bg: #ffffff;
  --gold: #e3b341;
  --side: 264px;
  --gutter: 32px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.4 Inter, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.i { width: 20px; height: 20px; flex: none; }
.i.sm { width: 16px; height: 16px; }
.pale { color: var(--pale); font-size: 14px; }
.small { font-size: 12px; }
.wrap { padding: 0 var(--gutter); }

.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--dark) 0%, #1b4687 55%, var(--soft) 100%); color: #fff; overflow-y: auto; }
.side-brand { display: grid; justify-items: center; gap: 2px; padding: 28px 20px 22px; text-align: center; }
.side-brand img { width: 104px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3)); }
.side-brand b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.side-brand small { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.side-nav { display: grid; gap: 2px; padding: 8px 14px 16px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.side-item .i { color: rgba(255, 255, 255, 0.6); }
.side-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.side-item.on { background: rgba(255, 255, 255, 0.13); color: #fff; font-weight: 600; }
.side-item.on .i { color: var(--gold); }
.side-count { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center; background: rgba(255, 255, 255, 0.14); }
.side-item.on .side-count { background: var(--gold); color: var(--dark); }
.side-head { padding: 18px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.side-foot { margin-top: auto; display: flex; gap: 16px; padding: 16px 26px 22px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.side-foot a:hover { color: #fff; }
.side-backdrop { display: none; }
.shell-main { margin-left: var(--side); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); background: #eef3fb; border-bottom: 1px solid rgba(36, 99, 176, 0.12); }
.global-search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--fill2); color: var(--xpale); margin: 0; }
.global-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; color: var(--text); }
.global-search input::placeholder { color: var(--xpale); }
.global-search input::-webkit-search-cancel-button { display: none; }
.global-search kbd { font: 500 12px Inter, sans-serif; padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--fill2); color: var(--xpale); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-switch { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 6px 0 4px; border-radius: 10px; color: var(--pale); }
.app-switch img { width: 32px; height: 32px; object-fit: contain; }
.app-switch:hover, .menu-wrap.open > .app-switch { background: rgba(36, 99, 176, 0.08); }
.apps-menu { width: 360px; padding: 8px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 48px rgba(13, 37, 84, 0.18); }
.app-row b { display: block; font-size: 15px; font-weight: 600; }
.menu .app-row + .app-row { margin-top: 2px; }
.menu .app-row { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 12px; border-radius: 12px; }
.app-row img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.app-row > span { min-width: 0; }
.app-row small { display: block; font-size: 13px; color: var(--pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .app-row.on { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(36, 99, 176, 0.18); }
.menu .app-row:focus-visible, .app-switch:focus-visible, .me:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--pale); }
.nav-item .i { width: 18px; height: 18px; }
.me { width: 36px; height: 36px; border-radius: 50%; background: #fdf3c4; color: #b8901d; font-size: 15px; font-weight: 600; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35); }
.hamburger { display: none; }

.menu-wrap { position: relative; }
.menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.12); padding: 6px; z-index: 40; }
.menu-wrap.right .menu { left: auto; right: 0; }
.menu-wrap.open > .menu { display: block; }
.menu a, .menu .menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px; text-align: left; }
.menu a:hover, .menu .menu-item:hover { background: var(--fill); }
.menu-head { padding: 9px 10px; font-size: 12px; color: var(--pale); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu form { margin: 0; }

.bottom-tabs { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 6px 16px 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn .i { width: 18px; height: 18px; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { filter: brightness(1.12); }
.btn.accent:disabled { opacity: 0.35; cursor: default; filter: none; }
.btn.light { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--fill2); padding: 6px 14px; }
.btn.light:hover { background: var(--fill); }
.btn.pill { background: rgba(255, 255, 255, 0.18); color: #fff; border-radius: 8px; }
.btn.pill:hover { background: rgba(255, 255, 255, 0.26); }
.btn.google { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--fill2); height: 44px; padding: 0 18px; gap: 10px; width: 100%; max-width: 360px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text); }
.icon-btn:hover { background: var(--fill); }
.icon-btn.light { color: #fff; }
.icon-btn.light:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn.boxed { box-shadow: inset 0 0 0 1px var(--fill2); }
form.inline { display: inline; margin: 0; }

.hero { background: var(--blue-fade); color: #fff; padding: 24px var(--gutter) 28px; }
.hero-in { display: flex; gap: 24px; align-items: flex-start; }
.hero-passes { width: min(588px, 100%); }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.pass-list { list-style: none; margin: 0; padding: 0; }
.pass-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.pass-list b { display: block; font-size: 14px; font-weight: 600; }
.pass-list small { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.hero-empty { padding: 24px 0 16px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.stat { margin-left: auto; width: 280px; background: #fff; color: var(--text); border-radius: 10px; padding: 14px 16px; }
.stat small { display: block; font-size: 12px; color: var(--pale); }
.stat b { display: block; font-size: 24px; font-weight: 600; }
.hero.slim { padding: 20px var(--gutter); }
.hero.slim .wrap { padding: 0; display: grid; gap: 14px; }
.range > span:first-child { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.date-in { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); }
.date-in input { flex: 1; background: none; border: 0; color: #fff; outline: none; color-scheme: dark; }

.note { padding: 16px 0 8px; font-size: 14px; color: var(--pale); }
.note.center { text-align: center; padding: 16px 0 32px; }
.banner { padding: 14px 0 6px; text-align: center; font-size: 18px; font-weight: 600; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 12px; flex-wrap: wrap; }
.list-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools form { margin: 0; }
.filter-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--fill); color: var(--xpale); font-size: 14px; min-width: 138px; }
.filter-btn span { flex: 1; text-align: left; }
.filter-btn.on { color: var(--accent); }
.filter-panel { width: 300px; padding: 8px; }
.fgroup summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .i { margin-left: auto; color: var(--xpale); transition: transform 0.15s; }
.fgroup[open] summary .i { transform: rotate(90deg); }
.fgroup summary:hover { background: var(--fill); }
.fgroup .count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; }
.fopts { display: grid; gap: 2px; padding: 0 8px 8px 12px; max-height: 220px; overflow: auto; }
.fopts label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
.fopts input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px 4px; }
.filter-actions .btn { justify-content: center; padding: 6px 14px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px; border-bottom: 1px solid var(--line); }
.row:hover { background: rgba(51, 51, 51, 0.025); }
.row.checked { background: var(--fill); }
.row-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; }
.av { position: relative; display: block; width: 80px; height: 80px; flex: none; }
.av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.av.muted img { filter: grayscale(1) contrast(0.9) brightness(1.08); }
.av .badge { position: absolute; right: -2%; bottom: -2%; width: 36%; height: 36%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.av .badge svg { width: 100%; height: 100%; display: block; }
.av.blank { background: var(--fill); border-radius: 50%; }
.av.xl { width: 120px; height: 120px; border-radius: 50%; background: #fff; }
.row-text { min-width: 0; }
.kicker { font-size: 11px; line-height: 20px; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.name { font-size: 14px; font-weight: 600; line-height: 19.6px; }
.row-actions { display: flex; align-items: center; gap: 4px; }
.row-actions .narrow { display: none; }
.chev { display: grid; place-items: center; width: 28px; height: 36px; color: var(--pale); }
.rows.plain .row { padding: 8px 0; }
.empty { padding: 24px 0; text-align: center; color: var(--pale); font-size: 14px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 20px 0; font-size: 14px; }
.pg, .pg-nav { min-width: 32px; height: 32px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; }
.pg:hover, .pg-nav:hover { background: var(--fill); }
.pg.on { background: var(--fill2); font-weight: 600; }
.pg-nav.off { color: var(--xpale); }
.gap { padding: 0 4px; color: var(--pale); }

.day { font-size: 16px; font-weight: 600; padding: 18px 0 10px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; background: var(--fill); }
.gimg { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; }

.band { background: var(--blue-fade); color: #fff; margin-top: 24px; padding: 20px 0 8px; }
.band h2 { font-size: 24px; font-weight: 600; padding-bottom: 10px; }
.band-rows { list-style: none; margin: 0; padding: 0; }
.band-rows li { padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.band-rows b { display: block; font-size: 14px; font-weight: 600; }
.band-rows small { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.band .pg.on { background: rgba(255, 255, 255, 0.2); }
.band .pg:hover, .band .pg-nav:hover { background: rgba(255, 255, 255, 0.1); }
.band .pg-nav.off, .band .gap { color: rgba(255, 255, 255, 0.5); }

.detail-hero { background: var(--blue-fade); color: #fff; padding: 12px 0 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.8); padding-bottom: 16px; }
.crumbs b { color: #fff; font-weight: 600; }
.crumbs .back { display: grid; place-items: center; width: 24px; height: 24px; }
.crumb-tools { margin-left: auto; display: flex; gap: 4px; }
.detail-head { display: flex; align-items: center; gap: 24px; }
.detail-head .who { flex: 1; min-width: 0; }
.detail-head .id { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.detail-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.detail-head .sub { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.contact { display: grid; gap: 14px; min-width: 280px; }
.cline { display: flex; align-items: center; gap: 8px; }
.cline > div { flex: 1; margin-right: 12px; }
.cline b { display: block; font-size: 14px; font-weight: 600; }
.cline small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; }
.round .i { width: 16px; height: 16px; }
.round:hover { background: rgba(255, 255, 255, 0.2); }
.detail-band { background: var(--accent); padding: 12px 0; }
.wrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wrap.two form { display: block; }
.band-btn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.band-btn:hover { background: rgba(255, 255, 255, 0.18); }
.link-actions { display: flex; gap: 20px; padding: 16px 0 6px; }
.link-btn { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.link-btn .i { width: 18px; height: 18px; }
.warn { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #f0f5fc; box-shadow: inset 0 0 0 1px rgba(36, 99, 176, 0.25); font-size: 14px; }
.warn b { color: var(--accent); }
.warn p { white-space: pre-line; margin-top: 6px; color: var(--pale); }
.tabbar { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.tabbar button { padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--pale); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar button.on { color: var(--text); border-color: var(--accent); }
.page-tabs { margin-top: 14px; }
.page-tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px; font-size: 15px; font-weight: 600; color: var(--pale); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.page-tabs a:hover { color: var(--text); }
.page-tabs a.on { color: var(--text); border-color: var(--accent); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #e8a33a; box-shadow: 0 0 0 2px #fff; }
.kvrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.kvrow b { font-size: 14px; font-weight: 600; }
.chips-out { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--fill2); background: #fff; white-space: nowrap; }
.chip-btn .i { width: 14px; height: 14px; }
.chip-btn:hover { background: var(--fill); }
.see-all { color: var(--accent); font-size: 14px; font-weight: 600; padding: 8px 0 24px; }
.fields { display: grid; gap: 14px; padding: 8px 0 20px; margin: 0; }
.fields.more { border-top: 1px solid var(--line); padding-top: 18px; }
.fields dt { font-size: 12px; color: var(--pale); }
.fields dd { margin: 2px 0 0; font-size: 14px; }
.tbl-title { font-size: 18px; font-weight: 600; padding: 18px 0 8px; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--pale); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.grid th { text-transform: none; font-size: 12px; font-weight: 500; }
.tbl.grid td { white-space: nowrap; }
.tbl .idx { color: var(--xpale); font-size: 12px; width: 24px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 14px; flex-wrap: wrap; }
.cal-head h2 { font-size: 16px; font-weight: 600; }
.cal-tools { display: flex; align-items: center; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 32px; }
.cal-dow { padding: 6px; text-align: center; font-size: 12px; color: var(--pale); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal.week .cal-cell { min-height: 420px; }
.cal-cell.out .cal-n { color: var(--xpale); }
.cal-cell.today { background: var(--tint); }
.cal-cell.today .cal-n { color: var(--accent); font-weight: 600; }
.cal-n { font-size: 12px; text-align: right; }
.cal-ev { font-size: 12px; padding: 2px 6px; border-radius: 4px; background: var(--tint); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: 11px; color: var(--pale); padding: 0 6px; }

.tiles { list-style: none; margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; }
.tile-img { aspect-ratio: 1; border-radius: 8px; background: var(--fill); display: grid; place-items: center; font-size: 28px; font-weight: 600; color: var(--xpale); margin-bottom: 6px; }
.tiles li { min-width: 0; }
.tiles .name, .tiles .kicker, .tiles .pale { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name.small { font-size: 12px; }
.exp { list-style: none; margin: 0; padding: 0 0 24px; display: grid; gap: 4px; }
.exp li { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.exp li:first-child { background: var(--fill); border-radius: 8px; }
.exp p { font-size: 14px; white-space: pre-line; }

.dlg { border: 0; padding: 0; border-radius: 12px; width: min(720px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); color: var(--text); overflow: hidden; }
.dlg.narrow { width: min(400px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.4); }
.dlg form { margin: 0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; }
.dlg-head b { font-size: 14px; font-weight: 600; flex: 1; text-align: center; }
.dlg-head.center b { text-align: center; }
.dlg-band { background: var(--accent); color: #fff; padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dlg-band.dark { background: var(--dark); grid-template-columns: 1fr; }
.dlg-band .fld input { background: rgba(255, 255, 255, 0.15); color: #fff; }
.dlg-band .fld input::placeholder { color: rgba(255, 255, 255, 0.6); }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12px; font-weight: 600; }
.fld input, .fld textarea { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); outline: none; }
.fld textarea { height: auto; padding: 10px 12px; resize: vertical; }
.fld.plain em { font-style: normal; float: right; font-weight: 400; color: var(--pale); font-size: 12px; }
.dlg-body { padding: 16px 20px; }
.dlg-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dlg-sub { text-align: center; color: var(--pale); font-size: 14px; padding-bottom: 12px; }
.kv { margin: 0 0 14px; display: grid; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; }
.kv dt { color: var(--pale); }
.kv dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--fill2); cursor: pointer; }
.chips input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.dlg-foot { padding: 0 20px 18px; display: grid; gap: 10px; justify-items: start; }
.dlg-foot.left { display: flex; gap: 8px; padding-top: 4px; }
.need { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); position: relative; transition: background 0.15s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { left: 14px; }

.stage-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stage-tile { display: block; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.stage-tile:hover { background: rgba(255, 255, 255, 0.2); }
.stage-tile.on { background: #fff; color: var(--text); }
.stage-tile small { display: block; font-size: 12px; font-weight: 600; opacity: 0.85; }
.stage-tile b { display: block; font-size: 26px; font-weight: 600; }
.stage-tile.gold small { color: var(--gold); }
.stage-tile.gold.on small { color: #8a6a0f; }
.prog { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.prog i { width: 14px; height: 5px; border-radius: 3px; background: var(--fill2); }
.prog i.on { background: var(--accent); }
.state { flex: none; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--pale); white-space: nowrap; }
.state.due { background: #fdf3c4; color: #8a6a0f; }
.state.done { background: var(--tint); color: var(--accent); }
.stepper { list-style: none; margin: 0; padding: 8px 0 4px; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
.stepper li { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; padding: 0 4px; min-width: 0; }
.stepper li + li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 1px; background: var(--fill2); }
.stepper li.done::before { background: var(--accent); }
.stepper li.skipped::before { background: var(--accent); opacity: 0.45; }
.stepper .dot { width: 32px; height: 32px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: #fff; color: var(--xpale); box-shadow: inset 0 0 0 2px var(--fill2); }
.stepper .dot .i { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper li.done .dot { background: var(--accent); color: #fff; box-shadow: none; }
.stepper li.current .dot { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--tint); }
.stepper li.skipped .dot { color: #8a6a0f; box-shadow: inset 0 0 0 2px var(--gold); }
.stepper b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.stepper li.todo b { color: var(--pale); font-weight: 500; }
.stepper li.current b { color: var(--accent); }
.stepper small { font-size: 12px; color: var(--pale); overflow-wrap: anywhere; }
.sync-note { display: block; margin-top: 2px; font-style: normal; font-size: 11px; line-height: 1.3; color: var(--xpale); }
.sync-note.pending { color: #8a6a0f; }
.sync-note.applied { color: #1e7a3c; }
.sync-note.conflict, .sync-note.skipped { color: #b3261e; }
.step-edit summary { list-style: none; display: grid; place-items: center; width: 26px; height: 22px; margin-top: 2px; border-radius: 6px; color: var(--xpale); cursor: pointer; }
.step-edit summary::-webkit-details-marker { display: none; }
.step-edit summary:hover, .step-edit[open] summary { background: var(--fill); color: var(--accent); }
.step-form { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 20; width: 250px; display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; text-align: left; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(13, 37, 84, 0.16); }
.step-form-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px -2px 0; }
.step-form b { font-size: 14px; }
.step-actions { display: flex; gap: 8px; }
.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.pcard { padding: 14px 18px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); }
.pcard h4, .raw-fields h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-bottom: 8px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 10px 0 0; }
.pgrid > div { min-width: 0; }
.pgrid > div.wide { grid-column: 1 / -1; }
.pgrid dt { font-size: 12px; color: var(--pale); }
.pgrid dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.pgrid dd a { color: var(--accent); }
.pval { display: inline-flex; align-items: center; gap: 6px; }
.src { font-style: normal; font-size: 11px; color: var(--xpale); padding: 0 6px; border-radius: 4px; background: var(--fill); }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--pale); }
.tag.yes { background: rgba(30, 142, 62, 0.1); color: #1e7a3c; }
.tag.no { background: rgba(217, 48, 37, 0.08); color: #b3261e; }
.form-btn { margin-top: 12px; }
.raw-fields { margin: 18px 0 8px; }
.raw-fields summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.raw-fields summary::-webkit-details-marker { display: none; }
.raw-fields[open] summary .i { transform: rotate(90deg); }
.raw-fields h4 { margin-top: 16px; }
.ref-panel { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: #f6f9fd; box-shadow: inset 0 0 0 1px rgba(36, 99, 176, 0.14); display: grid; gap: 8px; }
.ref-panel h4 { font-size: 14px; font-weight: 600; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ref-card-form { margin: 0; display: grid; }
.ref-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1px var(--fill2); transition: box-shadow 0.12s, transform 0.12s; }
.ref-card:hover, .ref-card:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline: none; }
.ref-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref-top b { font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-status { flex: none; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--pale); }
.badge-status.on { background: rgba(30, 142, 62, 0.1); color: #1e7a3c; }
.ref-meta { font-size: 12px; color: var(--pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-meta.muted { color: var(--xpale); font-style: italic; }
.ref-foot { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.ref-attach { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--accent); }
.ref-or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--xpale); margin: 2px 0; }
.ref-or::before, .ref-or::after { content: ""; flex: 1; height: 1px; background: var(--fill2); }
.ref-panel .attach { padding: 0; max-width: none; }
.ref-panel .attach .fld input { background: #fff; box-shadow: inset 0 0 0 1px var(--fill2); }
.btn.ghost { margin-left: auto; color: var(--pale); box-shadow: inset 0 0 0 1px var(--fill2); padding: 6px 14px; }
.btn.ghost:hover { color: var(--text); background: #fff; }
.sub-title { font-size: 14px; font-weight: 600; padding: 16px 0 4px; }
.attach { display: flex; align-items: flex-end; gap: 8px; padding: 12px 0 4px; max-width: 640px; }
.attach .fld { flex: 1; }
.attach .btn { height: 36px; }
.fgroup.change { margin: 4px 0 8px; max-width: 640px; }
.fgroup.change summary { padding-left: 0; color: var(--accent); font-weight: 600; }
.kvrow.ref { border-bottom: 1px solid var(--line); }
.draft { padding: 14px 16px; border-radius: 10px; background: var(--fill); max-width: 720px; display: grid; gap: 10px; }
.draft .kv { margin: 0; }
.draft .kv div { justify-content: flex-start; gap: 12px; }
.draft .kv dt { width: 64px; flex: none; }
.draft-body { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--fill2); font: 400 14px/1.55 Inter, sans-serif; white-space: pre-wrap; }

.splash { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #0d3f9a url(/static/background.jpg) center / cover no-repeat; }
.splash-card { width: min(362px, 100%); padding: 36px 16px 40px; border-radius: 16px; display: grid; justify-items: center; gap: 14px; text-align: center; color: #fff; background: rgba(15, 23, 52, 0.55); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.splash-card img { width: 64px; height: auto; }
.splash-card h1 { font-size: 22px; font-weight: 600; line-height: 1.25; padding: 4px 16px 0; }
.splash-sub { font-size: 13px; color: rgba(255, 255, 255, 0.7); padding-bottom: 18px; }
.splash-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); font-size: 15px; font-weight: 600; color: #fff; }
.splash-google:hover { background: rgba(255, 255, 255, 0.24); }
.splash-legal { padding-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.splash-legal a:hover { color: #fff; }
.login { max-width: 400px; margin: 72px auto; padding: 0 16px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.login img { width: 64px; height: 64px; border-radius: 14px; }
.login h1 { font-size: 24px; font-weight: 600; }
.login a:not(.btn) { color: var(--accent); }
.doc { max-width: 720px; margin: 32px auto; font-size: 15px; line-height: 1.6; }
.doc h1 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.doc h2 { font-size: 18px; font-weight: 600; margin: 20px 0 6px; }
.doc p { margin-bottom: 10px; }
.doc a { color: var(--accent); }
footer { display: flex; justify-content: center; gap: 16px; padding: 24px 16px 32px; font-size: 13px; color: var(--pale); }
footer a:hover { color: var(--accent); }
.shell main { padding-bottom: 32px; }

@media (max-width: 1100px) {
  :root { --side: 228px; }
  .side-brand b { font-size: 28px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --side: 280px; }
  .side { transform: translateX(-100%); transition: transform 0.2s; }
  .side-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  .side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.4); }
  .shell-main { margin-left: 0; }
  .topbar { height: 56px; gap: 10px; }
  .global-search { height: 40px; }
  .global-search kbd { display: none; }
  .hamburger { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; color: var(--pale); }
  .shell main { padding-bottom: 90px; }
  .bottom-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottom-tabs .nav-item { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; background: none; padding: 4px; }
  .bottom-tabs .nav-item .i { width: 24px; height: 24px; }
  .bottom-tabs .nav-item.on { color: var(--accent); background: none; }
  .hero { padding: 16px var(--gutter) 24px; }
  .hero-in { flex-direction: column; gap: 16px; }
  .hero-head { flex-wrap: wrap; }
  .hero-head h2 { width: 100%; font-size: 26px; }
  .hero-head .btn { margin-left: auto; border-radius: 999px; }
  .stat { width: 100%; margin: 0; }
  .list-head h1 { font-size: 28px; }
  .list-head .tools { width: 100%; }
  .filter-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .filter-btn span, .filter-btn .sm { display: none; }
  .filter-panel { width: min(320px, calc(100vw - 32px)); }
  .av { width: 48px; height: 48px; }
  .row-link { gap: 12px; align-items: flex-start; }
  .row-actions .wide { display: none; }
  .row-actions .narrow { display: block; }
  .row-actions .menu-wrap .menu { left: auto; right: 0; }
  .row .chev { display: none; }
  .row.checked .btn.light { padding: 6px 10px; }
  .detail-head { flex-wrap: wrap; gap: 16px; }
  .av.xl { width: 88px; height: 88px; }
  .contact { width: 100%; min-width: 0; }
  .crumbs b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dlg-band, .dlg-body.two { grid-template-columns: 1fr; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 10px; padding: 1px 3px; }
  .banner { font-size: 16px; }
  .top-right { gap: 4px; }
  .apps-menu { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; }
  .stage-strip { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .stepper { grid-auto-flow: row; gap: 0; }
  .stepper li { grid-template-columns: 32px 1fr; justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; padding: 0 0 18px; }
  .stepper .dot { grid-row: span 2; margin: 0; }
  .step-edit { grid-column: 2; }
  .step-form { position: static; transform: none; width: auto; margin-top: 6px; }
  .stepper b { padding-top: 2px; }
  .stepper li + li::before { display: none; }
  .stepper li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--fill2); }
  .stepper li:has(+ li.done)::after { background: var(--accent); }
  .stepper li:has(+ li.skipped)::after { background: var(--accent); opacity: 0.45; }
  .prog { display: none; }
  .attach { flex-direction: column; align-items: stretch; }
}
