: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; }
.btn.side-action { margin: 0 14px 6px; height: 40px; background: #fff; color: var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.btn.side-action:hover { filter: brightness(0.96); }
.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.sub { padding-left: 28px; }
.side-item.side-empty { color: rgba(255, 255, 255, 0.4); }
.side-item.side-empty .i { color: rgba(255, 255, 255, 0.3); }
.side-item.side-empty .side-count { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }
.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; min-width: 0; 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 { position: relative; }
.search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 45; list-style: none; margin: 0; padding: 6px; max-height: min(420px, 70vh); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(13, 37, 84, 0.16); }
.search-hit { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.search-hit[aria-selected="true"], .search-hit:hover { background: var(--fill); }
.av.search-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--tone); }
.av.code-av { display: grid; place-items: center; background: var(--tint); color: var(--accent); --tone: var(--tint); }
.av.code-av .i { width: 18px; height: 18px; }
.search-text { min-width: 0; display: grid; }
.search-text b { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-text small { font-size: 12px; color: var(--pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-none { padding: 10px 8px; font-size: 14px; color: var(--pale); }
.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.accent.danger { background: #c5221f; }
.menu .menu-item.danger { color: #b3261e; }
.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.ext { padding: 6px 12px 6px 14px; }
.btn.ext .i { width: 15px; height: 15px; }
.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 h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.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; }
.filter-btn.one { min-width: 0; padding: 0 10px 0 12px; color: var(--text); }
.filter-btn.one.on { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.filter-panel.one { width: 220px; }
.filter-panel.one .fopts { padding: 4px 8px; max-height: 300px; }
.filter-panel.one .fopts label { cursor: pointer; }
.filter-panel.one .fopts .pale { margin-left: auto; font-size: 12px; }

.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; }
.mcs { list-style: none; margin: 0; padding: 4px 0 16px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); align-items: start; }
.mc { min-width: 0; padding: 20px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(13, 37, 84, 0.06); }
.mc.checked { box-shadow: inset 0 0 0 2px rgba(30, 142, 62, 0.35), 0 1px 3px rgba(13, 37, 84, 0.06); }
.mc-top { display: flex; align-items: flex-start; gap: 6px; }
.mc-top .menu-wrap { margin: -4px -8px 0 0; }
.mc-copy-all { margin: -4px 0 0 auto; color: var(--pale); }
.mc-top > .mc-who + .menu-wrap { margin-left: auto; }
.pc-tools { display: inline-flex; align-items: center; gap: 2px; }
.pc-tools > .icon-btn { color: var(--pale); }
.mc-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; }
.mc-who:hover b { text-decoration: underline; }
.mc-who:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.mc-id { min-width: 0; display: grid; gap: 2px; }
.mc-id b { font-size: 18px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-id small { font-size: 13px; color: var(--pale); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-type { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-soft); color: var(--c); font-weight: 600; }
.av.mc-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--c-soft); box-shadow: 0 0 0 3px var(--c-soft); }
.fam-f { --c: #db2777; --c-soft: rgba(219, 39, 119, 0.12); }
.fam-m { --c: #2563eb; --c-soft: rgba(37, 99, 235, 0.12); }
.fam-teen { --c: #15803d; --c-soft: rgba(21, 128, 61, 0.13); }
.fam-u { --c: #6b7280; --c-soft: rgba(107, 114, 128, 0.12); }
.av.tone-member { --tone: rgba(36, 99, 176, 0.22); background: rgba(36, 99, 176, 0.1); }
.av.tone-spouse { --tone: rgba(214, 51, 132, 0.24); background: rgba(214, 51, 132, 0.1); }
.av.tone-teen { --tone: rgba(30, 142, 90, 0.26); background: rgba(30, 142, 90, 0.1); }
.av.tone-other { --tone: var(--fill2); background: var(--fill); }
.mc-lines { display: grid; gap: 4px; padding-top: 12px; }
.mc-line { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--pale); }
.mc-line > .i { width: 15px; height: 15px; flex: none; color: var(--xpale); }
.mc-line a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pale); }
.mc-line a:hover { color: var(--accent); text-decoration: underline; }
.mc-copy { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--pale); opacity: 0; }
.mc-copy .i { width: 14px; height: 14px; }
.mc-line:hover .mc-copy, .mc-copy:focus-visible { opacity: 1; }
.mc-copy:hover { background: var(--fill); }
.mc-family { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fam-pill { padding: 2px 10px; border: 1px solid var(--c); border-radius: 999px; color: var(--c); font-size: 12px; font-weight: 600; line-height: 1.4; }
.fam-pill:hover { background: var(--c-soft); }
.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; align-items: center; 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); }
.ci-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 7px 0 9px; margin-right: 4px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); white-space: nowrap; }
.ci-pill .i { width: 14px; height: 14px; }
.ci-pill .i:last-child { width: 12px; height: 12px; }
.ci-pill:hover { background: #f1f5fb; }
.ci-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu-wrap.open > .ci-pill .i:last-child { transform: rotate(180deg); }
.crumb-tools .menu { min-width: 180px; text-align: left; color: var(--text); }
.crumb-tools .menu form { margin: 0; }
.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); }
.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); }
.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; }
.cal-tour { display: grid; gap: 2px; min-width: 0; padding: 4px 6px; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: 12px; line-height: 16px; }
.cal-tour:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-tour > span { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cal-tour > span .i { width: 13px; height: 13px; color: var(--pale); }
.cal-tour.noguide { background: #fdf3c4; color: #8a6a0f; }
.cal-tour.noguide:hover { box-shadow: inset 0 0 0 1px #8a6a0f; }
.cal-tour.quiet { background: var(--fill); color: var(--pale); }
.cal-tour.past { opacity: 0.55; }
.lap-cal .cal-n:hover { color: var(--accent); text-decoration: underline; }
.lap-chip { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 2px 6px; border-radius: 5px; font-size: 12px; line-height: 16px; color: #fff; white-space: nowrap; overflow: hidden; }
.lap-chip b { font-weight: 600; }
.lap-chip span { overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
.lap-chip .i { width: 12px; height: 12px; flex: none; color: var(--gold); }
.lap-chip.open { background: #2f7d4f; }
.lap-chip.full { background: #b3413f; }
.lap-chip.mine:not(.open):not(.full) { background: var(--accent); }
.lap-chip:hover { filter: brightness(1.12); }
.lap-chip.past { opacity: 0.45; }
.cal-legend i.open { background: #2f7d4f; }
.cal-legend i.full { background: #b3413f; }
.cal-legend .i { color: var(--gold); }
.day-nav { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; flex-wrap: wrap; }
.day-nav h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.day-book { margin-left: auto; }
.lap-day td { white-space: nowrap; }
.lap-day tr.past td { color: var(--xpale); }
.lap-day tr.hl td { background: var(--tint); }
.dlg.lap-dlg { width: min(960px, calc(100vw - 32px)); }
.lap-dlg .dlg-head { border-bottom: 1px solid var(--line); }
.lap-panel { max-height: calc(85vh - 60px); overflow: auto; padding-top: 4px; }
.lap-panel .day-nav { justify-content: center; }
.lap-panel .day-nav h1 { min-width: 0; text-align: center; }
.lap-panel .day-book { margin-left: 0; }
.lap-day td.lap-me { font-weight: 600; color: var(--accent); }
.lap-day td.lap-me .i { width: 13px; height: 13px; margin-right: 4px; color: var(--gold); vertical-align: -2px; }
.lap-open { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(30, 142, 62, 0.1); color: #1e7a3c; }
.bell { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--xpale); box-shadow: inset 0 0 0 1px var(--fill2); }
.bell .i { width: 18px; height: 18px; }
.bell:hover { color: var(--accent); background: var(--fill); }
.bell.on { color: #fff; background: var(--accent); box-shadow: none; }
.lap-foot { padding-top: 10px; }
.lap-act { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.lap-act:hover { background: #2f7d4f; color: #fff; }
.lap-act .i { width: 12px; height: 12px; }
.lap-day td.lap-moving { background: #fdf3c4; }
.lap-move-note { margin: 0 0 8px; }
.lap-confirm { font-size: 18px; font-weight: 600; }
.lap-bookers { display: grid; gap: 6px; }
.lap-booker { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--fill2); cursor: pointer; }
.lap-booker:has(input:checked) { background: var(--tint); box-shadow: inset 0 0 0 2px var(--accent); }
.lap-booker input { accent-color: var(--accent); }
.lap-booker > span { display: grid; min-width: 0; }
.lap-booker small { font-size: 12px; color: var(--pale); }
.lap-acts { white-space: nowrap; text-align: right; }
[data-load-into].loading { position: relative; }
[data-load-into].loading::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0.6); }
[data-load-into].loading::after { content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-btn { position: relative; z-index: 2; background: var(--accent) !important; color: #fff !important; box-shadow: 0 0 0 3px var(--tint); cursor: progress; }
.lap-acts .btn { margin-left: 4px; }
.link-inline { color: var(--accent); font-weight: 600; }
.lap-welcome { max-width: 640px; margin: 48px auto; padding: 0 var(--gutter); display: grid; gap: 14px; }
.lap-welcome h1 { font-size: 30px; font-weight: 700; color: var(--dark); }
.lap-welcome p { color: var(--pale); }
.lap-welcome p b { color: var(--text); }
.lap-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 10px; max-width: 640px; }
.lap-choice form { margin: 0; display: grid; }
.lap-pick { display: grid; justify-items: center; gap: 6px; padding: 18px 16px; border-radius: 14px; text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--fill2), 0 1px 3px rgba(13, 37, 84, 0.06); }
.lap-pick .i { width: 26px; height: 26px; color: var(--accent); }
.lap-pick b { font-size: 16px; }
.lap-pick small { font-size: 13px; color: var(--pale); }
.lap-pick:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.lap-pick.on { background: var(--tint); box-shadow: inset 0 0 0 2px var(--accent); }
.acl-list { display: grid; gap: 8px; margin-bottom: 8px; }
.acl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
form.acl-row { grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2fr) auto; }
.acl-row.add { background: var(--fill); box-shadow: none; }
.acl-user { display: grid; grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2fr) auto; align-items: center; gap: 12px; min-width: 0; }
.acl-who { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.acl-name { display: flex; gap: 6px; }
.acl-name input { width: 50%; min-width: 0; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--fill2); background: #fff; font-size: 14px; }
.acl-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.acl-checks label { display: inline-flex; align-items: center; gap: 6px; }
.acl-checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.acl-row .fld { margin: 6px 0 0; }
form.acl-row.acl-site, .acl-site { grid-template-columns: 250px 200px minmax(0, 1fr) auto; }
.acl-desc { width: 100%; min-width: 0; height: 26px; margin-top: 2px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--fill2); background: #fff; font-size: 12px; color: var(--pale); }
.acl-desc:focus { color: var(--text); border-color: var(--accent); outline: none; }
.acl-site-new { display: grid; gap: 4px; }
.acl-people { display: grid; gap: 8px; margin-bottom: 8px; }
.acl-person { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.acl-person-who { flex: 0 1 300px; min-width: 0; display: grid; }
.acl-person-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acl-person-who small { font-size: 13px; color: var(--pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acl-person-groups { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.acl-person > .btn { margin-left: auto; }
.acl-person .acl-checks, .dlg .acl-checks { padding-top: 4px; }
.link-btn.danger { color: #b3261e; }
.link-btn.danger:hover { text-decoration: underline; }
.dlg-foot .acl-remove { margin-left: auto; }
.acl-field { display: grid; gap: 6px; }
form.acl-row.acl-group, .acl-group { grid-template-columns: 200px 170px minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.acl-count { display: block; font-size: 12px; color: var(--pale); }
.acl-group-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acl-group-name b { font-size: 15px; }
.acl-group-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.acl-group-ic .i { width: 18px; height: 18px; }
.acl-group.kind-people { background: #eef4fc; box-shadow: inset 4px 0 0 var(--accent); }
.acl-group.kind-people .acl-group-ic { background: #fff; color: var(--accent); }
.acl-group.kind-pattern { background: #eef8f1; box-shadow: inset 4px 0 0 #2f8a5b; }
.acl-group.kind-pattern .acl-group-ic { background: #fff; color: #2f8a5b; }
.acl-group .acl-select { background: #fff; }
.acl-who-in { min-width: 0; }
.acl-who-in [hidden] { display: none; }
.acl-checks label.locked { color: var(--xpale); cursor: not-allowed; }
.acl-checks label.locked .i, .pale .i.sm { width: 12px; height: 12px; vertical-align: -1px; }
.acl-field > span { font-size: 12px; font-weight: 600; }
@media (max-width: 767px) {
  .acl-person { flex-wrap: wrap; }
  .acl-person-groups { flex-basis: 100%; order: 3; }
}
.acl-site-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acl-site-name img, .acl-site-blank { width: 40px; height: 40px; flex: none; object-fit: contain; }
.acl-site-blank { display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--pale); }
.acl-site-name > span { display: grid; min-width: 0; }
.acl-site-name b { font-size: 15px; }
.acl-site-name small { font-size: 12px; color: var(--pale); }
.acl-site.tone-0 { background: #eef4fc; }
.acl-site.tone-1 { background: #fdf1f0; }
.acl-site.tone-2 { background: #eef8f1; }
.acl-site.tone-3 { background: #fdf7e6; }
.acl-site.tone-4 { background: #f4effb; }
.acl-site.tone-5 { background: #eaf7f8; }
.acl-site .acl-select, .acl-site .echip-in { background: #fff; }
.acl-site-head { display: grid; gap: 12px; padding: 0 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--pale); }
.acl-select { height: 34px; width: 100%; padding: 0 8px; border-radius: 8px; border: 1px solid var(--fill2); background: #fff; font-size: 14px; }
.echips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.echip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 500; }
.echip-x { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--accent); }
.echip-x:hover { background: rgba(36, 99, 176, 0.18); }
.echip-x .i { width: 12px; height: 12px; }
.echip-in { flex: 1; min-width: 180px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--fill2); background: #fff; font-size: 13px; outline: none; }
.echip-in:focus { border-color: var(--accent); border-style: solid; }
.help-names { display: grid; gap: 8px; width: min(320px, 100%); margin: 16px auto; }
.help-pick .btn { width: 100%; justify-content: center; }
.set .tbl-title { margin-top: 24px; }
.set-card { padding: 16px 18px; display: grid; gap: 10px; }
.set-help summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.set-help ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--pale); display: grid; gap: 4px; }
.set-help code { color: var(--text); background: var(--fill); padding: 1px 6px; border-radius: 4px; }
.ev-hero { position: relative; height: 270px; margin-top: 16px; border-radius: 16px; overflow: hidden; background: var(--blue-fade); background-size: cover; background-position: center; }
.ev-date { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 6px 20px rgba(13, 37, 84, 0.18); }
.ev-day { display: grid; justify-items: center; width: 64px; padding: 6px 0 8px; border-radius: 10px; background: #fdf6dc; line-height: 1.1; }
.ev-day small { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--pale); }
.ev-day b { font-size: 18px; text-transform: uppercase; color: var(--dark); }
.ev-day strong { font-size: 26px; color: var(--dark); }
.ev-time { display: grid; justify-items: start; gap: 8px; font-size: 14px; color: var(--text); padding-left: 16px; border-left: 1px solid var(--line); }
.ev-time > span { display: flex; align-items: center; gap: 6px; }
.ev-time .i { width: 16px; height: 16px; color: var(--pale); }
.ev-cal { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 600; }
.ev-cal .i { color: var(--accent); }
.ev-cal:hover { background: var(--accent); color: #fff; }
.ev-cal:hover .i { color: #fff; }
.ev-card { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 28px); padding: 12px 18px 12px 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(13, 37, 84, 0.18); }
.ev-card img { width: 52px; height: 52px; flex: none; }
.ev-card b { display: block; font-size: 18px; color: var(--dark); }
.ev-card small { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pale); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 8px; }
.ev-title { font-size: 32px; font-weight: 700; color: var(--dark); }
.ev-sub { padding-top: 4px; color: var(--pale); }
.ev-about { padding-top: 8px; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-top: 18px; }
.ev-panel { border-radius: 16px; background: #eef4e6; box-shadow: inset 0 0 0 1px rgba(80, 120, 40, 0.18); }
.ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 18px; }
.ev-row + .ev-row { border-top: 1px solid rgba(80, 120, 40, 0.15); }
.ev-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; }
.ev-av.light { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 1px var(--line); }
.ev-av.big { width: 52px; height: 52px; font-size: 17px; }
.ev-who { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.ev-who small { font-size: 13px; color: var(--pale); overflow-wrap: anywhere; }
.ev-who small a:hover { color: var(--accent); text-decoration: underline; }
.ev-big { font-size: 17px; font-weight: 700; color: var(--text); }
.ev-me .ev-big { font-size: 20px; color: var(--dark); }
.ev-plus { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--pale); vertical-align: middle; }
.ev-note { font-style: italic; }
.ev-status { padding-top: 4px; }
.ev-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.ev-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); font-weight: 600; white-space: nowrap; }
.ev-btn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.ev-btn.on { cursor: default; box-shadow: inset 0 0 0 2px #2f8a5b; }
.ev-dot { width: 26px; height: 26px; padding: 4px; border-radius: 50%; color: #fff; }
.ev-dot.yes { background: #2f8a5b; }
.ev-dot.no { background: #c5221f; }
.ev-dot.mail { background: var(--accent); }
.ev-foot { padding-top: 8px; }
.ev-side { display: grid; gap: 16px; }
.ev-box { padding: 16px; }
.ev-box-head { display: flex; gap: 12px; align-items: flex-start; }
.ev-box-head > .i { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; background: var(--fill); color: var(--pale); }
.ev-box-head b { display: block; color: var(--dark); }
.ev-box-head small { font-size: 13px; color: var(--pale); }
.ev-faces { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 0 0 48px; }
.ev-face { display: grid; justify-items: center; gap: 4px; width: 72px; text-align: center; }
.ev-face small { font-size: 12px; color: var(--pale); }
.ev-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 0 48px; }
.ev-assign select { height: 34px; max-width: 100%; padding: 0 8px; border-radius: 8px; border: 1px solid var(--fill2); background: #fff; font-size: 14px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 0 12px; font-size: 13px; color: var(--pale); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--tint); }
.cal-legend i.noguide { background: #fdf3c4; }
.cal-legend i.quiet { background: var(--fill2); }

.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 select { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); outline: none; font: inherit; }
.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; }
.step-form.docs-form { width: 420px; gap: 14px; padding: 18px; border-radius: 16px; }
.stepper li:first-child .step-form.docs-form { left: 0; transform: none; }
.docs-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px -4px 0; }
.docs-head h4, .docs-kind h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.docs-step { display: grid; gap: 8px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.docs-label { font-size: 13px; font-weight: 600; }
.docs-label .req { color: #d93025; }
.fld-icon { position: relative; }
.fld-icon .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--pale); pointer-events: none; }
.fld-icon input { width: 100%; height: 42px; padding: 0 12px 0 40px; border-radius: 10px; border: 1px solid var(--fill2); background: var(--fill); font: inherit; font-size: 14px; }
.docs-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.docs-actions .btn { justify-content: center; height: 40px; }
.docs-kind { display: grid; gap: 6px; }
.docs-kind > p { margin: 0; font-size: 13px; }
.file-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(36, 99, 176, 0.18); border-radius: 12px; background: rgba(36, 99, 176, 0.04); }
.file-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #fff; }
.file-tile.pdf { background: #e5352b; }
.file-tile.other { background: var(--accent); }
.file-tile .i { width: 22px; height: 22px; }
.file-meta { display: grid; min-width: 0; }
.file-meta a { font-size: 14px; font-weight: 700; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-note { grid-column: 1 / -1; font-size: 12px; color: var(--pale); overflow-wrap: anywhere; }
.file-card form { margin: 0; }
.pill-danger { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #c5221f; background: rgba(217, 48, 37, 0.1); }
.pill-danger:hover { background: rgba(217, 48, 37, 0.18); }
.docs-kind form[data-upload] { margin: 0; }
.dropzone { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border: 1.5px dashed var(--fill2); border-radius: 12px; background: rgba(36, 99, 176, 0.03); text-align: center; cursor: pointer; }
.dropzone .i { width: 32px; height: 32px; color: var(--accent); stroke-width: 1.6; }
.dropzone b { font-size: 15px; color: var(--accent); }
.dropzone span { font-size: 12px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--tint); }
.dropzone.busy { opacity: 0.6; pointer-events: none; }
.docs-note { margin: 0; font-size: 12px; }
.upload-error { display: block; margin-top: 4px; font-size: 12px; color: #b3261e; }
.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); }
.state.open { background: #e3f5ea; color: #1e7a45; }
.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: ""; pointer-events: none; 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; }
.ccards { display: grid; gap: 14px; padding: 4px 0 24px; }
.ccards > *, .pcs > * { min-width: 0; }
.pcs { display: grid; gap: 16px; padding: 4px 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.pc { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(13, 37, 84, 0.06); padding: 8px 16px 4px; }
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.pc-title .i { width: 18px; height: 18px; color: var(--accent); }
.pc .pc-top { min-height: 40px; }
.pc-who { display: flex; align-items: center; gap: 14px; padding: 10px 0 8px; }
.av.md { width: 60px; height: 60px; border-radius: 50%; background: var(--fill); overflow: hidden; }
.pc-av { position: relative; flex: none; }
.pc-link { color: inherit; text-decoration: none; cursor: pointer; border-radius: 10px; }
.pc-link:hover .pc-name { text-decoration: underline; }
.pc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pc-star { position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gold); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.pc-star .i { width: 16px; height: 16px; stroke: #c99a12; stroke-width: 1; }
.pc-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.pc-sub { font-size: 13px; color: var(--pale); padding: 2px 0 6px; }
.pc-plan { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 500; color: var(--pale); }
.pc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pc-row:last-of-type { border-bottom: 0; }
.pc-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.pc-ic .i { width: 16px; height: 16px; }
.pc-ic.blue { background: rgba(36, 99, 176, 0.1); color: #2463b0; }
.pc-ic.purple { background: rgba(124, 77, 206, 0.12); color: #7c4dce; }
.pc-ic.green { background: rgba(30, 142, 90, 0.12); color: #1e8e5a; }
.pc-ic.amber { background: rgba(214, 140, 20, 0.14); color: #b9740a; }
.pc-ic.red { background: rgba(217, 48, 37, 0.1); color: #c5221f; }
.pc-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.pc-tabs [role="tab"] { position: relative; padding: 10px 0 9px; font-size: 13px; font-weight: 600; color: var(--pale); }
.pc-tabs [role="tab"]:hover { color: var(--text); }
.pc-tabs [role="tab"][aria-selected="true"] { color: var(--accent); }
.pc-tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.pc-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pc-card { margin: 0; }
.pc-card + .pc-card { border-top: 1px solid var(--line); }
.pc-card dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xpale); }
.pc-card dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rel-chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--accent); white-space: nowrap; }
.rel-chip:empty { display: none; }
.rel-chip.ago { background: var(--fill); color: var(--pale); }
.rel-chip.past { background: rgba(217, 48, 37, 0.1); color: #b3261e; }
.pc-empty { padding: 18px 0; }
.pc-warn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(214, 140, 20, 0.12); color: #7a4c05; font-size: 13px; }
.pc-warn > .i { width: 16px; height: 16px; flex: none; }
.pc-warn > span { flex: 1; min-width: 180px; }
.pc-warn .act-btn { height: 28px; }
.pc-warn-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pc-warn-acts.split { flex-wrap: nowrap; gap: 0; }
.pc-warn-acts.split > .act-btn { border-radius: 8px 0 0 8px; }
.pc-warn-acts.split .caret { width: 28px; padding: 0; justify-content: center; border-radius: 0 8px 8px 0; margin-left: -1px; }
.pc-warn-acts .menu { color: var(--text); min-width: 220px; }
.pc-warn-acts .menu form { margin: 0; }
.addr-form { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.addr-row { display: grid; grid-template-columns: 1fr 64px 110px; gap: 8px; }
.ctbl small.linked { display: block; font-size: 11px; color: var(--pale); }
.ctbl .link-wrap { display: block; }
.ctbl .link-btn { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--accent); }
.ctbl .link-btn:hover { text-decoration: underline; }
.ctbl .link-btn .i { width: 12px; height: 12px; }
.ctbl .link-wrap .menu { color: var(--text); white-space: normal; }
.ctbl .link-wrap .menu form { margin: 0; }
.ctbl .act .edit-btn { height: 26px; padding: 0 10px; font-size: 12px; }
.contact-edit .dlg-body { max-height: 70vh; overflow: auto; display: grid; gap: 14px; }
.ename { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.elist { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.elist legend { font-size: 12px; font-weight: 600; padding: 0 0 6px; }
.erow { display: flex; align-items: center; gap: 8px; width: 100%; }
.erow[hidden] { display: none; }
.erow > input[name="email"], .erow > input[name="phone"] { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); outline: none; }
.erow > input[readonly] { color: var(--pale); }
.erow > input[type="radio"] { flex: none; margin: 0; accent-color: var(--accent); }
.erow.addr { align-items: flex-start; }
.erow.addr > input[type="radio"] { margin-top: 11px; }
.erow.addr > .row-x { margin-top: 5px; }
.egrid { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 56px 96px; gap: 6px; }
.egrid input { min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--fill); outline: none; }
.egrid input[name="street"], .egrid input[name="street2"] { grid-column: span 5; }
.egrid input[name="city"] { grid-column: span 3; }
@media (max-width: 760px) {
  .ename { grid-template-columns: 1fr; }
}
.ctbl tr.hl td { background: rgba(214, 140, 20, 0.12); }
.pc-val { flex: 1; min-width: 0; display: grid; }
.pc-val small { font-size: 11px; color: var(--pale); }
.pc-val b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pc-none { font-size: 14px; color: var(--xpale); }
.pc-from { font-size: 11px; color: var(--xpale); }
.pc-more { justify-self: start; padding: 2px 0 0; font-size: 12px; color: var(--pale); }
.pc-more:hover { color: var(--accent); text-decoration: underline; }
.pc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--fill2); background: #fff; white-space: nowrap; }
.act-btn .i { width: 14px; height: 14px; }
.act-btn.icon-only { width: 32px; padding: 0; justify-content: center; }
.act-btn.icon-only .i { width: 16px; height: 16px; }
.act-btn:hover { background: var(--fill); }
.act-btn.tint { background: var(--tint); color: var(--accent); box-shadow: none; }
.act-btn.tint:hover { background: rgba(36, 99, 176, 0.16); }
.ccard { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(13, 37, 84, 0.06); }
.ccard .scroll { border-radius: 0 0 14px 14px; }
.ccard-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.ccard-head h3 { font-size: 16px; font-weight: 600; }
.ccard-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); flex: none; }
.ccard-ic .i { width: 18px; height: 18px; }
.ccard-empty { padding: 4px 16px 16px; font-size: 14px; color: var(--pale); }
.ctbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--xpale); padding: 8px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.ctbl td { padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctbl tr:last-child td { border-bottom: 0; }
.ctbl .nw { white-space: nowrap; }
.ctbl .nm { white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ccard.tabbed { margin-top: 12px; background: none; box-shadow: none; display: grid; gap: 8px; grid-auto-rows: max-content; align-content: start; }
.ccard.tabbed[hidden] { display: none; }
.vgroup { border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.vg-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 8px 10px 12px; background: #f6f8fc; border-bottom: 1px solid var(--line); }
.vg-head > b { min-width: 0; font-size: 16px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.vg-meta { margin-left: auto; flex: none; font-size: 12px; color: var(--pale); white-space: nowrap; }
.vg-primary { flex: none; height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.vg-fold .i { transition: transform 0.15s; }
.vgroup.folded .vg-fold .i { transform: rotate(-90deg); }
.vgroup.folded .vg-head { border-bottom: 0; }
.vgroup.folded .vg-body { display: none; }
.vg-body .ctbl th { background: none; border-top: 0; }
.row-x { width: 26px; height: 26px; color: var(--xpale); }
.row-x:hover { color: #b3261e; background: rgba(217, 48, 37, 0.08); }
.row-x .i { width: 14px; height: 14px; }
.row-x.locked { display: inline-grid; place-items: center; color: var(--xpale); cursor: help; }
.row-x.locked:hover { background: none; color: var(--pale); }
@media (max-width: 520px) {
  .vg-head { flex-wrap: wrap; row-gap: 6px; }
  .vg-head > b { flex: 1 1 calc(100% - 104px); font-size: 15px; }
  .vg-fold { order: 3; }
  .vg-head .tag, .vg-primary { order: 4; margin-left: 44px; }
  .vg-meta { order: 5; }
}
.toast { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(30, 142, 62, 0.1); color: #1e7a3c; font-size: 14px; font-weight: 600; animation: toast-out 0.4s ease 6s forwards; }
.toast.bad { background: rgba(217, 48, 37, 0.08); color: #b3261e; animation: none; }
.toast .i { width: 16px; height: 16px; }
@keyframes toast-out { to { opacity: 0; height: 0; margin: 0; padding: 0; overflow: hidden; } }
.dlg.wide { width: min(960px, 92vw); max-height: 85vh; }
.dlg.wide[open] { display: flex; flex-direction: column; }
.dlg.wide .dlg-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dlg.wide [role="tabpanel"] { flex: 1; min-height: 0; overflow: auto; }
.dlg.wide .ctbl { min-width: max-content; }
.dlg.wide .ctbl td { white-space: nowrap; }
@media (max-width: 520px) {
  .dlg.wide { width: calc(100vw - 16px); }
}
.tab-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--fill); color: var(--pale); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
[aria-selected="true"] > .tab-count { background: var(--tint); color: var(--accent); }
.ctbl .act { width: 44px; text-align: right; padding-right: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--fill); font-size: 13px; white-space: nowrap; }
.vchip .i { color: var(--accent); }
.spill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--pale); }
.spill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.spill.on { background: rgba(30, 142, 62, 0.1); color: #1e7a3c; }
.dq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.dq-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--fill); }
.dq-tile:hover { background: var(--fill2); }
.dq-tile.on { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(36, 99, 176, 0.25); }
.dq-tile b { font-size: 24px; font-weight: 600; }
.dq-tile span { font-size: 13px; color: var(--pale); }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl-form, .send-form { display: grid; gap: 12px; }
.tpl-form textarea, .send-form textarea { font: 400 14px/1.5 Inter, sans-serif; }
.tpl-preview { position: sticky; top: 80px; padding: 14px 16px; border-radius: 10px; background: var(--fill); }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ph-list li { display: flex; align-items: center; gap: 10px; }
.send-form { max-width: 760px; }
.tag.who { display: inline-flex; align-items: center; gap: 4px; background: var(--tint); color: var(--accent); white-space: nowrap; }
.tag.who:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.tag.who .i { width: 13px; height: 13px; }
.code-view { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 32px; }
.code-hero { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
.code-logo { width: 72px; height: 72px; flex: none; border-radius: 14px; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.code-logo img { width: 80%; height: 80%; object-fit: contain; }
.code-title { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 8px; }
.code-title h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.code-acts { display: grid; justify-items: end; gap: 10px; }
.code-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.code-card { padding: 20px 24px 8px; }
.code-card h2 { font-size: 18px; font-weight: 600; padding-bottom: 6px; }
.drows { margin: 0; }
.drow { display: grid; grid-template-columns: 22px minmax(110px, 0.6fr) minmax(0, 1fr); align-items: center; gap: 0 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.drow:first-child { border-top: 0; }
.drow > .i { width: 20px; height: 20px; color: var(--pale); }
.drow dt { color: var(--pale); }
.drow dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.code-card.given .drow dd { text-align: right; justify-self: end; }
.code-card .warn { margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--pale); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.on { background: #e3f5ea; color: #1e7a45; }
@media (max-width: 760px) {
  .code-grid { grid-template-columns: 1fr; }
  .code-hero { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .code-logo { width: 56px; height: 56px; }
  .code-title h1 { font-size: 22px; }
  .code-acts { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .code-card { padding: 16px 16px 4px; }
  .drow { grid-template-columns: 22px minmax(90px, 0.6fr) minmax(0, 1fr); }
}
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kind { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--fill2); }
.three-fld { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
@media (max-width: 760px) {
  .three-fld { grid-template-columns: 1fr; }
}
.kind span { display: grid; gap: 2px; min-width: 0; }
.kind small { font-size: 13px; overflow-wrap: anywhere; }
.code-search { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); outline: none; min-width: 0; width: 220px; }
.again { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.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; }
.tag.mytag { display: inline-flex; align-items: center; gap: 4px; background: #f1eafa; color: #6b3fa0; }
.tag.mytag a { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.tag.mytag .i { width: 12px; height: 12px; }
.locker-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.locker-chip b { font-weight: 600; }
.locker-chip.men { background: var(--tint); color: var(--accent); }
.locker-chip.women { background: rgba(217, 48, 37, 0.1); color: #b3261e; }
.locker-chip:hover { filter: brightness(0.95); }
.code-logo.women { background: rgba(217, 48, 37, 0.08); }
.tag.size-tag { font-size: 16px; padding: 4px 14px; }
.title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.room-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.room-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--text); }
.room-chip span { font-weight: 500; opacity: 0.7; }
.room-chip:hover { box-shadow: inset 0 0 0 1px var(--fill2); }
.room-chip .i { width: 12px; height: 12px; }
.room-chip.men { background: var(--tint); color: var(--accent); }
.room-chip.men.on { background: var(--accent); color: #fff; }
.room-chip.women { background: rgba(217, 48, 37, 0.1); color: #b3261e; }
.room-chip.women.on { background: #b3261e; color: #fff; }
.who-wrap { position: relative; display: inline-block; }
.who-wrap:hover > .tag.who, .who-wrap:focus-within > .tag.who { box-shadow: inset 0 0 0 1.5px var(--accent); }
.who-card { display: none; position: absolute; top: 100%; left: 0; z-index: 50; width: 340px; margin-top: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 14px 36px rgba(13, 37, 84, 0.18); text-align: left; white-space: normal; font-size: 14px; font-weight: 400; color: var(--text); }
.who-card::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.who-card::after { content: ""; position: absolute; top: -6px; left: 24px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 var(--line); }
.who-wrap:hover .who-card, .who-wrap:focus-within .who-card { display: block; }
.who-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.who-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 18px; font-weight: 700; }
.who-id { display: grid; gap: 6px; min-width: 0; }
.who-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.who-name .pale { font-size: 15px; font-weight: 500; }
.who-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.who-plan { background: var(--tint); color: var(--accent); }
.who-lines { display: grid; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.who-line { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.who-line .i { width: 18px; height: 18px; flex: none; color: var(--pale); }
.who-line a:hover { text-decoration: underline; }
.who-link { display: flex; align-items: center; gap: 10px; margin: 12px 18px; padding: 10px 12px; border-radius: 10px; background: var(--tint); color: var(--accent); font-weight: 600; }
.who-link span { flex: 1; }
.who-link .i { width: 18px; height: 18px; }
.who-link:hover { filter: brightness(0.97); }
.who-foot { display: block; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--pale); }
.warn-text { color: #b3261e; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.notes-head h2 { padding-bottom: 0; display: flex; align-items: center; gap: 8px; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--fill); color: var(--pale); font-size: 12px; font-weight: 600; }
.note-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.note-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 10px 14px; border-radius: 10px; background: var(--fill); font-size: 14px; }
.note-text { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.note-item .kicker { white-space: normal; }
.hero-tags { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.tag-menu { min-width: 220px; padding: 6px 0 0; }
.tag-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.tag-opt:hover { background: var(--fill); }
.tag-opt input { width: 16px; height: 16px; }
.tag-new { padding: 8px 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.tag-new input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--fill2); border-radius: 8px; font: inherit; font-size: 14px; }
.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; }
.online-section { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px dotted var(--fill2); }
.online-toggle:not(:checked) + .online-section { display: none; }
.stepper li.online-open .dot { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.stepper .online-summary label { cursor: pointer; }
.step-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.stepper .online-summary .dot { font-size: 20px; font-weight: 500; line-height: 1; outline: 2px dotted var(--accent); outline-offset: 3px; }
.online-toggle:checked ~ .stepper .more-plus, .online-toggle:not(:checked) ~ .stepper .more-minus { display: none; }
@media (min-width: 768px) {
  .online-section { border-bottom: none; padding-bottom: 0; }
  .online-section .stepper, .stepper.online-main { grid-template-columns: 9rem; }
  .online-section .stepper li:nth-child(2)::before, .stepper.online-main li:nth-child(2)::before { left: calc(-4.5rem + 20px); }
  .online-section .stepper li:first-child::after { content: ""; position: absolute; left: calc(50% - 1px); top: 36px; bottom: -24px; border-left: 2px dotted var(--accent); }
  .online-section .stepper li:first-child :is(b, small) { position: relative; z-index: 1; padding: 0 4px; background: #fff; }
}
.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; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .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; }
  .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 .chev { display: none; }
  .search-pop { position: fixed; top: 60px; left: 8px; right: 8px; }
  .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; }
  .cal-tour { padding: 2px 3px; font-size: 10px; line-height: 13px; }
  .cal-tour > span .i { display: none; }
  .lap-chip { padding: 1px 3px; font-size: 10px; line-height: 13px; }
  .lap-chip span, .lap-chip .i { display: none; }
  .lap-choice { grid-template-columns: 1fr; }
  .day-book { margin-left: 0; }
  form.acl-row, .acl-user, form.acl-row.acl-site, form.acl-row.acl-group { grid-template-columns: 1fr; }
  .acl-site-head { display: none; }
  .ev-hero { height: 220px; }
  .ev-date { top: 10px; right: 10px; gap: 10px; padding: 8px 12px 8px 8px; }
  .ev-time { padding-left: 10px; font-size: 13px; }
  .ev-card { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .ev-title { font-size: 26px; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-row { flex-wrap: wrap; }
  .ev-acts { width: 100%; justify-content: flex-start; }
  .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; }
  .tpl { grid-template-columns: 1fr; }
  .ctbl th, .ctbl td { padding: 8px 8px; }
  .ctbl th:first-child, .ctbl td:first-child { padding-left: 14px; }
  .vchip { white-space: normal; overflow-wrap: anywhere; }
  .tpl-preview { position: static; }
  .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; }
  .step-form.docs-form { width: auto; }
  .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; }
}
