:root {
  color-scheme: light;
  --accent: #2cf27f;
  --accent-strong: #0bbb5c;
  --accent-soft: #dcfbea;
  --accent-ink: #063d22;
  --ink: #101814;
  --muted: #66716b;
  --line: #dfe6e1;
  --surface: #ffffff;
  --canvas: #f2f6f3;
  --sidebar: #07100b;
  --sidebar-soft: #111d16;
  --danger: #dc3f4f;
  --warning: #dc8517;
  --blue: #3478f6;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(15, 35, 23, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="lime"] { --accent: #c7ff3d; --accent-strong: #83b900; --accent-soft: #f0ffd0; --accent-ink: #314500; }
:root[data-theme="blu"] { --accent: #4d8dff; --accent-strong: #2466dc; --accent-soft: #e5efff; --accent-ink: #0e326f; }
:root[data-theme="arancio"] { --accent: #ff8a34; --accent-strong: #d95c00; --accent-soft: #fff0e4; --accent-ink: #6c2d00; }
:root[data-theme="viola"] { --accent: #9b7bff; --accent-strong: #6d4ce0; --accent-soft: #eee9ff; --accent-ink: #352377; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 34%), linear-gradient(145deg, #050a07, #0d1b12 68%, #09110c); }
.gate-card { width: min(520px, 100%); padding: 34px; overflow: hidden; color: #f5fff8; background: rgba(12, 23, 16, .9); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; box-shadow: 0 28px 90px rgba(0, 0, 0, .4); backdrop-filter: blur(18px); }
.gate-card h1 { margin: 30px 0 10px; font-size: clamp(28px, 6vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.gate-card p { margin: 0; color: #aab8af; }
.gate-card b { color: #fff; }
.gate-kicker { display: block; margin-top: 24px; color: var(--accent); font-weight: 800; letter-spacing: .12em; }
.gate-icon { display: grid; width: 64px; height: 64px; place-items: center; margin-top: 32px; color: var(--accent-ink); background: var(--accent); border-radius: 18px; font-size: 20px; font-weight: 900; }
.gate-icon.error { color: #fff; background: var(--danger); }
.identity-note { margin-top: 22px; padding-top: 18px; color: #8fa098; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.loader { display: block; width: 36px; height: 36px; margin-top: 34px; border: 3px solid rgba(255, 255, 255, .13); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.brand b { color: #fff; font-size: 16px; line-height: 1; letter-spacing: .06em; }
.brand small { margin-top: 5px; color: #78887e; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.brand-symbol { position: relative; display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 2px solid var(--accent); border-radius: 12px; transform: rotate(45deg); }
.brand-symbol::before { content: ""; width: 15px; height: 15px; border: 2px solid var(--accent); border-radius: 50%; }
.brand-symbol i { position: absolute; width: 4px; height: 22px; background: var(--accent); border-radius: 4px; transform: rotate(-45deg); }
.brand-gate { padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }

.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 272px; padding: 24px 18px; flex-direction: column; color: #eaf4ed; background: var(--sidebar); border-right: 1px solid rgba(255, 255, 255, .06); }
.sidebar > .brand { padding: 0 10px 25px; }
.company-chip { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; padding: 13px; background: var(--sidebar-soft); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; }
.company-chip > span:last-child, .user-card > span:last-child, .live-card > span:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.company-chip b, .user-card b, .live-card b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.company-chip small, .user-card small, .live-card small { margin-top: 2px; overflow: hidden; color: #7e9085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-avatar, .user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: 12px; font-weight: 900; }
.nav { display: grid; gap: 5px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; color: #95a39a; background: transparent; border: 0; border-radius: 12px; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.nav-item.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.nav-item span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; }
.nav-item.active span { color: var(--accent-ink); background: var(--accent); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item b { font-size: 14px; font-weight: 700; }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; }
.live-card, .user-card { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; }
.live-card { background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.user-card { border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
.live-dot { width: 9px; height: 9px; flex: 0 0 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
.user-avatar { color: #dce7e0; background: #223029; }
.mobile-scrim { display: none; }

.main { min-height: 100vh; margin-left: 272px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(22px, 4vw, 54px); background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.topbar-title { display: flex; align-items: center; gap: 13px; }
.topbar-title small { display: block; margin-bottom: 2px; color: var(--accent-strong); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.topbar-title h1 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.sync-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sync-status i { width: 8px; height: 8px; background: var(--accent-strong); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }
.sync-status.offline i { background: var(--warning); box-shadow: 0 0 0 4px #fff0d9; }
.menu-button { display: none; width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 21px; }
.content { width: min(1450px, 100%); margin: 0 auto; padding: 32px clamp(22px, 4vw, 54px) 60px; }
.page { display: grid; gap: 24px; animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }

.primary-button, .secondary-button, .text-button, .icon-button { border: 0; border-radius: 11px; font-weight: 800; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.primary-button { padding: 11px 17px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.primary-button:hover:not(:disabled) { filter: brightness(.96); transform: translateY(-1px); }
.secondary-button { padding: 10px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.secondary-button:hover:not(:disabled) { background: #f8faf8; }
.text-button { padding: 7px 8px; color: var(--accent-strong); background: transparent; }
.text-button:hover { background: var(--accent-soft); }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; background: #eef2ef; font-size: 23px; }
.small { padding: 8px 12px; font-size: 13px; }
.full { width: 100%; }
button:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }

.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px 32px; color: #eefbf2; background: radial-gradient(circle at 86% 0, color-mix(in srgb, var(--accent) 25%, transparent), transparent 35%), linear-gradient(135deg, #0b1710, #13251a); border-radius: 22px; box-shadow: var(--shadow); }
.welcome small { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.welcome h2 { max-width: 750px; margin: 8px 0 7px; font-size: clamp(25px, 3vw, 37px); line-height: 1.1; letter-spacing: -.04em; }
.welcome p { margin: 0; color: #98aa9f; }
.welcome .secondary-button { flex: 0 0 auto; color: #eaf4ed; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .13); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { position: relative; min-width: 0; padding: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 20px rgba(20, 42, 28, .035); }
.stat-card::after { content: ""; position: absolute; right: -28px; bottom: -40px; width: 100px; height: 100px; background: var(--accent-soft); border-radius: 50%; opacity: .45; }
.stat-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.stat-card > b { display: block; margin: 10px 0 2px; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.stat-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.stat-icon { float: right; display: grid; width: 39px; height: 39px; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 11px; }
.stat-icon svg { width: 19px; }
.stat-card.amber .stat-icon { color: #a86109; background: #fff0d9; }
.stat-card.blue .stat-icon { color: var(--blue); background: #e8f0ff; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: 18px; }
.panel { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(20, 42, 28, .035); }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head small { display: block; margin-bottom: 3px; color: var(--accent-strong); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.progress-label { color: var(--accent-strong); font-weight: 900; }
.progress-bar { height: 7px; overflow: hidden; background: #e9eeea; border-radius: 99px; }
.progress-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.setup-list { display: grid; gap: 8px; margin-top: 18px; }
.setup-step { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; color: inherit; background: #f8faf8; border: 1px solid transparent; border-radius: 12px; text-align: left; }
.setup-step:hover { border-color: var(--line); background: #fff; }
.setup-step > span { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: #9da8a1; border-radius: 10px; font-weight: 900; }
.setup-step.done > span { color: var(--accent-ink); background: var(--accent); }
.setup-step > div { min-width: 0; }
.setup-step b { font-size: 14px; }
.setup-step p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.setup-step > i { color: var(--accent-strong); font-size: 12px; font-style: normal; font-weight: 800; }

.presence-list, .member-list, .attendance-table, .event-list { display: grid; }
.presence-row, .member-row { display: grid; grid-template-columns: 38px minmax(130px, 1fr) auto auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf1ee; }
.presence-row:last-child, .member-row:last-child { border-bottom: 0; }
.presence-row > div, .member-row > div { display: flex; min-width: 0; flex-direction: column; }
.presence-row b, .member-row b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.presence-row small, .member-row small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; color: var(--accent-ink); background: var(--accent-soft); border-radius: 11px; font-size: 11px; font-weight: 900; }
.presence-time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 800; }
.state-pill, .status-pill, .role-badge { display: inline-flex; width: fit-content; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 99px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.working { color: #08713a; background: #ddfae9; }
.break { color: #99600b; background: #fff0d5; }
.off, .planned { color: #626c66; background: #ebefec; }
.blocked { color: #a62c3b; background: #ffe5e8; }
.done { color: #2f61a5; background: #e5efff; }

.compact-task-list { display: grid; }
.compact-task { display: grid; grid-template-columns: 10px minmax(170px, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid #edf1ee; }
.compact-task:last-child { border: 0; }
.compact-task > div { display: flex; min-width: 0; flex-direction: column; }
.compact-task b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.compact-task small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-task time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.priority-dot { width: 8px; height: 8px; background: #9aa49e; border-radius: 50%; }
.priority-dot.high { background: var(--warning); }
.priority-dot.urgent { background: var(--danger); box-shadow: 0 0 0 4px #ffe9eb; }
.priority-dot.low { background: var(--blue); }
.empty { display: grid; min-height: 220px; place-items: center; align-content: center; padding: 32px; text-align: center; }
.empty > span { display: grid; width: 58px; height: 58px; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 18px; }
.empty svg { width: 27px; }
.empty h3 { margin: 14px 0 5px; }
.empty p { max-width: 430px; margin: 0 0 18px; color: var(--muted); }
.view-intro, .filter-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.view-intro h2, .filter-head h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.view-intro p, .filter-head p { margin: 4px 0 0; color: var(--muted); }

.site-grid, .task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-card, .task-card { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(20, 42, 28, .035); }
.site-card-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 13px; }
.site-code { display: grid; width: 48px; height: 48px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 14px; font-size: 13px; font-weight: 900; }
.site-card-top small { color: var(--accent-strong); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.site-card h3 { margin: 2px 0; font-size: 18px; }
.site-card p { margin: 0; color: var(--muted); font-size: 13px; }
.assignee-block { margin: 20px 0 14px; padding: 14px; background: #f7f9f7; border-radius: 12px; }
.assignee-block > small { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.assignee-block > div { display: flex; flex-wrap: wrap; gap: 7px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 700; }
.person-chip i { display: grid; width: 22px; height: 22px; place-items: center; color: var(--accent-ink); background: var(--accent-soft); border-radius: 50%; font-size: 8px; font-style: normal; }
.muted { color: var(--muted); font-size: 12px; }
.inline-form { display: flex; align-items: end; gap: 9px; }
.inline-form label { flex: 1; }
.callout, .info-banner { padding: 13px 15px; color: #77500c; background: #fff4dc; border: 1px solid #f4dca9; border-radius: 12px; font-size: 13px; }
.site-actions { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf1ee; }
.site-actions label { width: 150px; }
label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #4e5952; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd9d2; border-radius: 10px; }
input, select { min-height: 43px; padding: 9px 11px; }
textarea { min-height: 94px; padding: 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa49e; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0; }

.segmented { display: flex; gap: 3px; padding: 4px; background: #e7ece8; border-radius: 12px; }
.segmented button { padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 12px; font-weight: 800; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(18, 34, 23, .08); }
.task-card { position: relative; overflow: hidden; }
.task-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #b6c0ba; }
.task-card.in_progress::before { background: var(--accent); }
.task-card.blocked::before { background: var(--danger); }
.task-card.done::before { background: var(--blue); }
.task-card-head { display: flex; align-items: center; justify-content: space-between; }
.priority { padding: 4px 8px; color: #66716b; background: #edf1ee; border-radius: 7px; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.priority.high { color: #9a5b04; background: #fff1db; }
.priority.urgent { color: #a62c3b; background: #ffe5e8; }
.priority.low { color: #2d66b4; background: #e5efff; }
.task-card h3 { margin: 16px 0 6px; font-size: 19px; }
.task-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; }
.task-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 13px; background: #f7f9f7; border-radius: 11px; }
.task-meta > span { display: flex; min-width: 0; flex-direction: column; }
.task-meta small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.task-meta b { margin-top: 3px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-meta .overdue b { color: var(--danger); }
.task-note { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; color: #59635d; background: #f8faf8; border-left: 3px solid var(--accent); font-size: 12px; }
.task-note b { color: var(--ink); white-space: nowrap; }
.task-actions { display: flex; justify-content: flex-end; gap: 8px; min-height: 34px; margin-top: 16px; }

.team-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(450px, 1.25fr); gap: 18px; }
.invite-panel { align-self: start; color: #ecf8f0; background: linear-gradient(145deg, #0b1710, #15291c); border-color: #1d3324; }
.invite-panel .panel-head small { color: var(--accent); }
.invite-panel .panel-head h3 { color: #fff; }
.invite-body > p { color: #a6b5ac; }
.invite-code { display: grid; gap: 10px; margin: 20px 0; padding: 18px; color: var(--ink); background: #fff; border-radius: 14px; text-align: center; }
.invite-code small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.invite-code b { font-size: 25px; letter-spacing: .12em; }
.privacy-note { display: block; margin-top: 14px; color: #7f9286; font-size: 11px; }
.role-badge { color: #4d5951; background: #eef2ef; }
.info-banner { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, white); }

.employee-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #eaf4ed; background: #0b1710; border-radius: var(--radius); }
.employee-mark { display: grid; width: 46px; height: 46px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 13px; font-weight: 900; }
.employee-banner small { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.employee-banner h2 { margin: 2px 0 0; font-size: 19px; }
.employee-banner p { margin: 3px 0 0; color: #93a499; font-size: 12px; }
.today-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(430px, 1.2fr); gap: 18px; }
.clock-card { grid-row: span 2; color: #edf9f1; background: linear-gradient(150deg, #09150d, #14261a); border-color: #1c3323; }
.clock-card .site-picker, .invite-panel label { color: #b9c6be; }
.clock-state { display: flex; align-items: center; gap: 9px; color: #a9b8af; font-size: 13px; font-weight: 800; }
.state-dot { width: 10px; height: 10px; background: #77847c; border-radius: 50%; }
.state-dot.working { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); }
.state-dot.break { background: #ffb449; box-shadow: 0 0 0 5px rgba(255, 180, 73, .13); }
.live-clock { display:block; margin: 16px 0 20px; color: #fff; font-size: clamp(42px, 6vw, 66px); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.05em; }
.site-picker select { color: #f4fff7; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .13); }
.site-picker option { color: #111; }
.active-site { display: flex; padding: 12px; flex-direction: column; background: rgba(255, 255, 255, .06); border-radius: 11px; }
.active-site small { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.time-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; }
.time-counters span { display: flex; padding: 13px; flex-direction: column; background: rgba(255, 255, 255, .06); border-radius: 11px; }
.time-counters small { color: #899a90; font-size: 9px; font-weight: 900; }
.time-counters b { margin-top: 3px; font-size: 20px; font-variant-numeric: tabular-nums; }
.clock-actions { display: grid; grid-template-columns: 1fr 105px; gap: 9px; }
.punch-button, .pause-button { min-height: 52px; border: 0; border-radius: 13px; font-weight: 900; }
.punch-button { color: var(--accent-ink); background: var(--accent); }
.punch-button.out { color: #fff; background: var(--danger); }
.pause-button { color: #e6f1e9; background: rgba(255, 255, 255, .1); }
.pause-button.active { color: #432800; background: #ffb449; }
.gps-note { margin: 13px 0 0; color: #7f9186; font-size: 11px; text-align: center; }
.today-tasks, .today-events { min-width: 0; }
.event-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf1ee; }
.event-row:last-child { border: 0; }
.event-row > span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 10px; font-size: 9px; font-weight: 900; }
.event-row > div { display: flex; flex-direction: column; }
.event-row b { font-size: 13px; }
.event-row small { color: var(--muted); font-size: 10px; }
.event-row time { display: flex; flex-direction: column; text-align: right; font-size: 13px; font-weight: 800; }

.ai-shell { display: flex; min-height: calc(100vh - 175px); flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: #eef9f1; background: #0a150e; }
.ai-brand { display: flex; align-items: center; gap: 12px; }
.ai-brand > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 12px; }
.ai-brand svg { width: 21px; }
.ai-brand small { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ai-brand h2 { margin: 2px 0 0; font-size: 20px; }
.ai-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #aebbb3; background: rgba(255, 255, 255, .07); border-radius: 99px; font-size: 11px; font-weight: 800; }
.ai-status i { width: 7px; height: 7px; background: #8d9991; border-radius: 50%; }
.ai-status.online i { background: var(--accent); }
.ai-status.offline i { background: var(--danger); }
.ai-notice { padding: 10px 24px; color: #76520e; background: #fff5de; border-bottom: 1px solid #f2ddb4; font-size: 12px; }
.ai-thread { display: flex; min-height: 360px; flex: 1; padding: 24px; flex-direction: column; gap: 16px; overflow-y: auto; }
.ai-message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; max-width: 82%; }
.ai-message.user { align-self: flex-end; grid-template-columns: minmax(0, 1fr) 34px; }
.ai-message.user > span { grid-column: 2; }
.ai-message.user > div { grid-row: 1; grid-column: 1; background: var(--accent-soft); }
.ai-message > span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: 9px; font-weight: 900; }
.ai-message > div { padding: 13px 15px; background: #f3f6f4; border-radius: 4px 15px 15px; }
.ai-message small { color: var(--accent-strong); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.ai-message p { margin: 5px 0 0; white-space: normal; }
.ai-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-sources a { padding: 5px 8px; color: #2466b8; background: #fff; border: 1px solid #dbe5f4; border-radius: 7px; font-size: 11px; font-weight: 700; text-decoration: none; }
.ai-empty { display: grid; margin: auto; place-items: center; padding: 30px; text-align: center; }
.ai-empty > span { display: grid; width: 64px; height: 64px; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border-radius: 20px; }
.ai-empty svg { width: 30px; }
.ai-empty h3 { margin: 15px 0 4px; font-size: 23px; }
.ai-empty p { max-width: 470px; margin: 0; color: var(--muted); }
.ai-empty > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.ai-empty button { padding: 8px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.ai-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 16px 20px; background: #f7f9f7; border-top: 1px solid var(--line); }
.ai-form textarea { min-height: 48px; max-height: 160px; }
.typing { display: flex; gap: 4px; padding: 7px 0; }
.typing i { width: 7px; height: 7px; background: #8d9991; border-radius: 50%; animation: bounce 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { to { transform: translateY(-5px); background: var(--accent-strong); } }

.settings-panel { max-width: 900px; }
.theme-grid { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 11px; }
.theme-card { display: flex; min-height: 132px; align-items: center; padding: 13px; flex-direction: column; justify-content: center; background: #f8faf8; border: 1px solid var(--line); border-radius: 13px; }
.theme-card:hover { background: #fff; transform: translateY(-1px); }
.theme-card.active { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-card > span { width: 42px; height: 42px; margin-bottom: 10px; background: var(--swatch); border: 6px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d7dfda, 0 5px 12px rgba(0,0,0,.12); }
.theme-card b { font-size: 12px; }
.theme-card small { color: var(--muted); font-size: 10px; }
.settings-note { margin-top: 18px; padding: 13px; color: var(--muted); background: #f7f9f7; border-radius: 10px; font-size: 12px; }

.modal { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: visible; background: transparent; border: 0; }
.modal::backdrop { background: rgba(4, 10, 6, .72); backdrop-filter: blur(5px); }
.modal-card { max-height: calc(100vh - 36px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .32); }
.modal-card > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-card header small { color: var(--accent-strong); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.modal-card h2 { margin: 2px 0 0; font-size: 22px; }
#modalBody { padding: 22px; }
.form-stack { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }
.modal-context { display: flex; align-items: center; gap: 11px; padding: 12px; background: var(--accent-soft); border-radius: 12px; }
.modal-context > span { display: grid; width: 39px; height: 39px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 10px; font-size: 11px; font-weight: 900; }
.modal-context > div { display: flex; flex-direction: column; }
.modal-context small { color: var(--muted); }
.gate-form { display: grid; gap: 14px; margin-top: 24px; }
.gate-form label { color: #b9c6be; }
.gate-form input { min-height: 50px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
.auth-form input { letter-spacing: normal; font-weight: 500; text-transform: none; }
.auth-help { display:block; margin-top: 12px !important; color: #b0bfb5; font-size: 13px; }
.auth-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.gate .text-button { color:var(--accent); }
.password-field { display:flex; position:relative; align-items:center; }
.password-field input { padding-right:84px; }
.password-field button { position:absolute; right:8px; min-height:40px; padding:8px; background:transparent; border:0; color:#245a3a; font-size:12px; font-weight:800; }
.recovery-code { margin:22px 0; padding:18px; background:#fff; color:var(--ink); border-radius:14px; }
.recovery-code code { display:block; overflow-wrap:anywhere; font-size:15px; line-height:1.8; user-select:all; }
.recovery-continue { margin-top:24px; }
.activation-email { margin-top:16px !important; color:#fff !important; overflow-wrap:anywhere; }
.account-link { text-align:left; background:transparent; border:0; cursor:pointer; }
#changePasswordForm .form-error { color:#ac263a; }
.form-error { color: #ff9ba5; font-size: 13px; }
.error-banner { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; color: #852d38; background: #ffe9eb; border: 1px solid #f7c8ce; border-radius: 13px; }
.error-banner svg { width: 23px; }
.error-banner b { font-size: 13px; }
.error-banner p { margin: 1px 0 0; font-size: 12px; }
.error-banner .text-button { color: #852d38; }

.skeleton-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skeleton-card { display: grid; gap: 12px; height: 160px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.skeleton-card i, .skeleton-card span { display: block; background: linear-gradient(90deg, #eef2ef, #f8faf8, #eef2ef); background-size: 220% 100%; border-radius: 7px; animation: shimmer 1.2s infinite linear; }
.skeleton-card i { width: 42px; height: 42px; }
.skeleton-card span { width: 72%; height: 16px; }
.skeleton-card span:last-child { width: 46%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; width: min(370px, calc(100% - 44px)); gap: 9px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 13px 15px; color: #effbf3; background: #0c1811; border: 1px solid #203327; border-radius: 13px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); animation: toast-in .25s ease both; }
.toast > span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 8px; font-weight: 900; }
.toast p { margin: 0; font-size: 13px; font-weight: 700; }
.toast.error > span { color: #fff; background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.install-button { width: 100%; min-height: 44px; margin-bottom: 12px; padding: 11px 14px; color: var(--accent); background: #122019; border: 1px solid #284132; border-radius: 10px; font-weight: 750; cursor: pointer; }
.mobile-nav { display: none; }
.nav { flex: 1; align-content: start; overflow-y: auto; min-height: 80px; padding-right: 3px; }
.nav-item b { font-size: 14px; }
.sidebar-footer { flex-shrink: 0; padding-top: 10px; }
.account-link { display: block; margin: 0 0 10px; color: #b2c8b9; text-align: center; font-size: 14px; }
.gate-signin { display: block; margin-top: 24px; text-align: center; text-decoration: none; min-height: 48px; }
.signin-note { margin-top: 20px !important; font-size: 14px; }
.gate-divider { margin: 22px 0; color: var(--muted); font-size: 14px; }
.gate .gate-divider { color: #aab8af; }
.gate-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
.gate .secondary-button { text-align: center; }
.workspace-label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.workspace-label select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--ink); }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
a.primary-button, a.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.group-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.group-list { padding: 16px; }
.group-choice { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 14px 9px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 10px; }
.group-choice > span { color: var(--accent-strong); }
.group-choice svg { width: 25px; height: 25px; }
.group-choice b { display: block; font-size: 16px; }
.group-choice small { display: block; color: var(--muted); font-size: 12px; margin: 5px 0; }
.group-choice p { margin: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.group-choice.active { background: var(--accent-soft); }
.group-join { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-panel { display: flex; min-height: 470px; flex-direction: column; }
.chat-thread { display: flex; height: min(52dvh, 560px); min-height: 240px; overflow-y: auto; flex-direction: column; gap: 12px; padding: 15px 4px; }
.chat-message { align-self: flex-start; max-width: 88%; padding: 12px 15px; color: var(--ink); background: var(--canvas); border-radius: 14px 14px 14px 3px; overflow-wrap: anywhere; }
.chat-message.own { align-self: flex-end; background: var(--accent-soft); border-radius: 14px 14px 3px 14px; }
.chat-message small { display: block; color: var(--muted); font-size: 12px; }
.chat-message p { margin: 5px 0 0; font-size: 16px; }
.chat-empty { padding: 32px 12px; color: var(--muted); text-align: center; }
.chat-compose { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-compose textarea { width: 100%; resize: vertical; min-height: 54px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.chat-compose .form-error { grid-column: 1 / -1; }
.participant-picker { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.participant-picker label { display: flex; flex-direction: row; gap: 10px; align-items: center; font-size: 14px; }
.participant-picker input { width: 20px; min-height: 20px; }
.participant-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.participant-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.participant-list { margin-bottom: 22px; }
.document-list { display: grid; gap: 16px; }
.document-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.role-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.report-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.report-filters label { display: grid; flex: 1; min-width: 145px; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.report-filters input, .report-filters select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; }
.report-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.report-table th { padding: 12px 10px; color: var(--muted); background: var(--canvas); font-size: 11px; font-weight: 750; }
.report-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.report-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.report-table td strong { color: var(--accent-ink); font-size: 17px; }
.install-guide p, .install-guide li { color: var(--muted); line-height: 1.7; }
.install-guide ol { padding-left: 22px; }
.install-guide li { margin: 14px 0; }
.install-guide b { color: var(--ink); }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .today-grid { grid-template-columns: 1fr; }
  .clock-card { grid-row: auto; }
}
@media (max-width: 900px) {
  .group-layout { grid-template-columns: 1fr; }
  .group-list { max-height: 360px; overflow-y: auto; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 70px rgba(0, 0, 0, .3); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; display: block; visibility: hidden; background: rgba(2, 8, 4, .6); opacity: 0; transition: .2s ease; }
  .mobile-scrim.open { visibility: visible; opacity: 1; }
  .main { margin-left: 0; }
  .main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 20; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .04); }
  .mobile-nav button { display: grid; flex: 1; min-height: 52px; max-width: 160px; gap: 4px; justify-items: center; align-content: center; padding: 5px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
  .mobile-nav svg { width: 23px; height: 23px; }
  .mobile-nav button.active { color: var(--accent-ink); background: var(--accent-soft); }
  .toast-region { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .menu-button { display: block; }
  .dashboard-grid, .team-layout { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .site-grid, .task-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .role-explainer { grid-template-columns: 1fr; }
  .chat-compose { grid-template-columns: 1fr; }
  .chat-compose button { min-height: 44px; }
  .chat-message { max-width: 94%; }
  body { font-size: 16px; }
  .topbar { min-height: 72px; padding: 11px 14px; }
  .topbar-title h1 { font-size: 18px; }
  .topbar-title small { font-size: 8px; }
  .sync-status { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar .primary-button { padding: 9px 11px; font-size: 14px; }
  .content { padding: 18px 14px 42px; }
  .page { gap: 14px; }
  .welcome { align-items: stretch; padding: 22px; flex-direction: column; }
  .welcome h2 { font-size: 25px; }
  .stats-grid, .stats-grid.three { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card > b { font-size: 27px; }
  .stat-icon { width: 34px; height: 34px; }
  .panel, .site-card, .task-card { padding: 17px; }
  .panel-head { align-items: flex-start; }
  .compact-task { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 9px; }
  .compact-task time { display: none; }
  .compact-task .status-pill { grid-column: 2 / -1; justify-self: start; }
  .presence-row, .member-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .presence-time { grid-column: 2; grid-row: 2; font-size: 14px; font-variant-numeric: tabular-nums; }
  .presence-row > .state-pill { grid-column: 3; grid-row: 1 / 3; }
  .presence-row > .avatar { grid-row: 1 / 3; }
  .presence-row > div { grid-column: 2; grid-row: 1; }
  .role-badge { display: none; }
  .view-intro, .filter-head { align-items: stretch; flex-direction: column; }
  .segmented { align-self: flex-start; }
  .site-card-top { grid-template-columns: 42px minmax(0, 1fr); }
  .site-code { width: 42px; height: 42px; }
  .site-card-top .status-pill { grid-column: 2; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .site-actions { align-items: stretch; flex-direction: column; }
  .site-actions label, .site-actions button { width: 100%; }
  .task-meta { grid-template-columns: 1fr 1fr; }
  .task-meta > span:last-child { grid-column: 1 / -1; }
  .task-actions { flex-wrap: wrap; }
  .team-layout { gap: 14px; }
  .invite-code b { font-size: 20px; }
  .employee-banner { align-items: flex-start; }
  .today-grid { gap: 14px; }
  .live-clock { font-size: 48px; }
  .clock-actions { grid-template-columns: 1fr; }
  .ai-shell { min-height: calc(100dvh - 204px); border-radius: 16px; }
  .ai-head { padding: 15px; }
  .ai-notice { padding: 9px 15px; }
  .ai-thread { padding: 16px 12px; }
  .ai-message { max-width: 94%; }
  .ai-form { grid-template-columns: 1fr; padding: 12px; }
  .ai-form .primary-button { width: 100%; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .modal { width: calc(100% - 18px); }
  .error-banner { grid-template-columns: 30px 1fr; }
  .error-banner .text-button { grid-column: 2; justify-self: start; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .gate-card { padding: 25px; }
  .report-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .report-filters label { min-width: 0; }
  .report-filters label:has(select) { grid-column: 1 / -1; }
  .report-filters button { min-height: 44px; }
  .report-table, .report-table tbody { display: block; }
  .report-table thead { display: none; }
  .report-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
  .report-table td { display: block; padding: 0; border: 0; }
  .report-table td::before { display: block; content: attr(data-label); margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
  .report-table td:first-child, .report-table td:last-child { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
  .stats-grid, .stats-grid.three { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .setup-step { grid-template-columns: 34px 1fr; }
  .setup-step > i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.access-choices { display:grid; gap:12px; margin-top:24px; }
.access-choice { display:flex; align-items:center; gap:14px; width:100%; min-height:92px; padding:18px; text-align:left; color:#f5fff8; background:#1b2d23; border:1px solid #3a5444; border-radius:16px; cursor:pointer; }
.access-choice:hover, .access-choice:focus-visible { border-color:var(--accent); background:#234431; }
.access-choice:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.access-choice > span:nth-child(2) { display:grid; flex:1; gap:5px; }
.access-choice b { font-size:18px; }
.access-choice small { color:#bfcfc5; font-size:13px; line-height:1.45; }
.access-choice-icon { display:grid; place-items:center; width:38px; flex-shrink:0; color:var(--accent); }
.access-choice-icon svg { width:28px; height:28px; }
.access-back { display:block; margin-top:22px; }
.gate-form .invite-code-input { letter-spacing:.1em; text-transform:uppercase; font-weight:800; }

.delegation-fields { display:grid; gap:8px; min-width:0; margin:18px 0; padding:0; border:0; }
.delegation-fields legend { margin-bottom:14px; font-weight:800; font-size:17px; }
.delegation-fields label { display:flex; align-items:flex-start; gap:12px; padding:13px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.delegation-fields input[type="checkbox"] { flex-shrink:0; width:23px; height:23px; min-height:23px; margin:1px 0 0; padding:0; accent-color:var(--accent); }
.delegation-fields label span { display:grid; gap:3px; }
.delegation-fields label b { font-size:15px; }
.delegation-fields label small { font-size:12px; line-height:1.45; color:var(--muted); }
.invite-panel .delegation-fields label { border-color:#3a5444; }
.invite-panel .delegation-fields label small { color:#bbcec1; }
.delegation-panel { margin-bottom:20px; }
.delegated-list { display:grid; gap:12px; padding:0; margin:24px 0; list-style:none; }
.delegated-list li { display:flex; gap:10px; align-items:center; }
.delegated-list svg { width:20px; height:20px; color:var(--accent); }
