/* Omicron Attendance — industrial: steel blue + safety yellow, gauge-dial punch */
:root {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F6F8FA;
  --line: #D6DCE4;
  --ink: #142234;
  --muted: #5A6779;
  --steel: #16324F;
  --steel-2: #24507C;
  --steel-soft: #DCE6F1;
  --safety: #F2B705;
  --safety-ink: #2B2100;
  --go: #1A8F52;
  --go-soft: #D9F1E4;
  --stop: #C93C3C;
  --stop-soft: #F9DEDE;
  --warn: #B07A00;
  --warn-soft: #FCF0C8;
  --off-soft: #E6E9EE;
  --leave: #3D63B8;
  --leave-soft: #DDE6F7;
  --shadow: 0 1px 2px rgba(20, 34, 52, .06), 0 8px 24px rgba(20, 34, 52, .07);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1722; --surface: #152331; --surface-2: #1A2B3C; --line: #263B50; --ink: #E5ECF4; --muted: #93A3B6;
    --steel: #9CC0E6; --steel-2: #B9D4F0; --steel-soft: #1E3550; --go: #4CC488; --go-soft: #143A28; --stop: #F07A7A; --stop-soft: #43201F;
    --warn: #F2C94C; --warn-soft: #3A3014; --off-soft: #1F2C3A; --leave: #8FAEF0; --leave-soft: #1C2D4D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1722; --surface: #152331; --surface-2: #1A2B3C; --line: #263B50; --ink: #E5ECF4; --muted: #93A3B6;
  --steel: #9CC0E6; --steel-2: #B9D4F0; --steel-soft: #1E3550; --go: #4CC488; --go-soft: #143A28; --stop: #F07A7A; --stop-soft: #43201F;
  --warn: #F2C94C; --warn-soft: #3A3014; --off-soft: #1F2C3A; --leave: #8FAEF0; --leave-soft: #1C2D4D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--steel-2); }
h1, h2, h3 { font-stretch: 85%; font-weight: 750; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.btn:hover { border-color: var(--steel-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--steel); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .btn.primary { color: #0D1722; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0D1722; } }
.btn.safety { background: var(--safety); color: var(--safety-ink); border-color: transparent; }
.btn.danger { color: var(--stop); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); outline: none;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--steel-2); box-shadow: 0 0 0 3px var(--steel-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--steel); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-P, .s-IN { background: var(--go-soft); color: var(--go); }
.s-A, .s-NP, .s-LWP { background: var(--stop-soft); color: var(--stop); }
.s-HD, .s-MO { background: var(--warn-soft); color: var(--warn); }
.s-L, .s-LH { background: var(--leave-soft); color: var(--leave); }
.s-H, .s-WO, .s-NJ, .s- { background: var(--off-soft); color: var(--muted); }
.late-tag { color: var(--stop); font-weight: 650; font-size: 12.5px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; transition: .25s; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--stop); color: #fff; }

/* sheet (bottom sheet on mobile, dialog on desktop) */
.sheet-wrap { position: fixed; inset: 0; background: rgba(8, 16, 26, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); animation: up .24s cubic-bezier(.2,.8,.2,1); }
.sheet.wide { max-width: 760px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 6px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
@media (min-width: 760px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; } .sheet .grab { display: none; } .sheet { padding-top: 20px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(circle at 50% -10%, var(--steel-soft), transparent 60%), var(--bg); }
.login-box { width: 100%; max-width: 380px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--steel); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 30px; height: 30px; }
.brand b { display: block; font-size: 18px; font-stretch: 85%; }
.brand span { font-size: 13px; color: var(--muted); }
.login h1 { font-size: 30px; margin-bottom: 6px; }
.login p.lead { color: var(--muted); margin: 0 0 22px; }
.err-box { background: var(--stop-soft); color: var(--stop); padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; margin-bottom: 14px; font-size: 14px; }

/* ---------- staff app ---------- */
.app { min-height: 100%; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; max-width: 560px; margin: 0 auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--steel-soft); color: var(--steel); display: grid; place-items: center; font-weight: 750; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar .who b { display: block; font-size: 16px; }
.topbar .who span { font-size: 13px; color: var(--muted); }
.page { max-width: 560px; margin: 0 auto; padding: 4px 16px 24px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabbar .in { display: flex; width: 100%; max-width: 560px; }
.tabbar button { flex: 1; background: none; border: 0; padding: 10px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--steel); }
.tabbar button[aria-current="page"]::after { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--safety); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--stop); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }

/* the gauge */
.gauge-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px 16px 18px; position: relative; overflow: hidden; }
.gauge-date { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); padding: 0 4px; }
.gauge-date b { color: var(--ink); font-size: 15px; }
.gauge { position: relative; width: min(300px, 80vw); aspect-ratio: 300 / 262; margin: 10px auto 0; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge .tick { stroke: var(--line); stroke-width: 2; }
.gauge .tick.major { stroke: var(--muted); stroke-width: 2.5; }
.gauge .track { stroke: var(--steel-soft); }
.gauge .fill { stroke: var(--safety); transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.gauge .fill.done { stroke: var(--go); }
.gauge .now { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.gauge .lbl { font-size: 11px; fill: var(--muted); font-family: var(--font); font-weight: 600; }
.gauge-center { position: absolute; left: 0; right: 0; top: 0; height: 114.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.clock { font-size: clamp(44px, 14vw, 58px); font-weight: 750; font-stretch: 78%; letter-spacing: -.02em; line-height: 1; }
.clock small { font-size: .38em; font-weight: 650; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.gauge-state { margin-top: 8px; font-size: 14px; font-weight: 650; }
.gauge-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.loc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); margin: 14px 0 12px; font-size: 14px; }
.loc .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); color: var(--muted); }
.loc.ok { background: var(--go-soft); color: var(--go); } .loc.ok .dot { background: var(--go); color: var(--go); animation: pulse 2s infinite; }
.loc.bad { background: var(--stop-soft); color: var(--stop); } .loc.bad .dot { background: var(--stop); color: var(--stop); }
.loc.wait .dot { animation: pulse 1.2s infinite; }
.loc b { font-weight: 700; }
.loc .spacer + button { margin: -6px -6px -6px 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.punch { width: 100%; min-height: 64px; border-radius: 18px; border: 0; font-size: 19px; font-weight: 750; font-stretch: 90%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.punch.in { background: var(--safety); color: var(--safety-ink); box-shadow: 0 6px 0 #C79600, 0 10px 20px rgba(242, 183, 5, .25); }
.punch.out { background: var(--steel); color: #fff; box-shadow: 0 6px 0 #0B1E31; }
:root[data-theme="dark"] .punch.out { color: #0D1722; box-shadow: 0 6px 0 #5F86AF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .punch.out { color: #0D1722; box-shadow: 0 6px 0 #5F86AF; } }
.punch:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.punch:disabled { background: var(--off-soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.punch svg { width: 26px; height: 26px; }

.daystrip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.daystrip > div { padding: 12px 14px; }
.daystrip > div + div { border-left: 1px solid var(--line); }
.daystrip span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.daystrip b { font-size: 20px; font-stretch: 85%; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; }

/* camera */
.cam { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3/4; max-height: 58vh; margin: 0 auto 14px; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video { transform: scaleX(-1); }
.cam .frame { position: absolute; inset: 12% 18% 22%; border: 2px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
.cam .hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--line); background: var(--safety); cursor: pointer; display: block; margin: 0 auto; }

/* history calendar */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.month-nav h2 { font-size: 20px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .wd { text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); padding-bottom: 2px; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; font-size: 15px; gap: 1px; padding: 0; }
.cal button i { font-style: normal; font-size: 10px; font-weight: 650; opacity: .85; }
.cal button.today { outline: 2px solid var(--safety); outline-offset: 1px; }
.cal button.s-, .cal button.s-NP { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.cal button.s-NP { color: var(--ink); }
.cal button.s-NJ { opacity: .4; }
.sumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sumgrid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.sumgrid b { display: block; font-size: 22px; font-stretch: 85%; }
.sumgrid span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1.5px solid currentColor; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list .item { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.list .item + .item { border-top: 1px solid var(--line); }
.list .item .main { flex: 1; min-width: 0; }
.list .item b { display: block; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; }
.side { background: var(--steel); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
:root[data-theme="dark"] .side { background: #0A1420; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side { background: #0A1420; } }
.side .brand { margin: 0 6px 22px; }
.side .brand-mark { background: rgba(255,255,255,.1); }
.side .brand b { color: #fff; } .side .brand span { color: rgba(255,255,255,.65); }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; position: relative; }
.side a svg { width: 20px; height: 20px; opacity: .9; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.side a[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--safety); }
.side .count { margin-left: auto; background: var(--safety); color: var(--safety-ink); font-size: 12px; font-weight: 750; padding: 1px 8px; border-radius: 10px; }
.side .foot { margin-top: auto; font-size: 13px; color: rgba(255,255,255,.6); padding: 0 8px; }
.main-wrap { min-width: 0; }
.ahead { display: flex; align-items: center; gap: 12px; padding: 22px 28px 6px; flex-wrap: wrap; }
.ahead h1 { font-size: 28px; }
.acontent { padding: 14px 28px 40px; }
.mtop { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .22s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(8,16,26,.45); }
  .mtop { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--steel); color: #fff; position: sticky; top: 0; z-index: 30; }
  :root[data-theme="dark"] .mtop { background: #0A1420; }
  .mtop b { font-stretch: 85%; font-size: 17px; }
  .mtop .icon-btn { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
  .ahead { padding: 16px 16px 4px; } .ahead h1 { font-size: 23px; }
  .acontent { padding: 12px 16px 32px; }
}

.board { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.board > div { padding: 16px 18px; position: relative; }
.board > div + div { border-left: 1px solid var(--line); }
.board b { display: block; font-size: 34px; font-stretch: 80%; font-weight: 750; line-height: 1.05; }
.board span { font-size: 13px; font-weight: 650; color: var(--muted); }
.board > div::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); }
.ratio { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--off-soft); margin: 14px 0 4px; }
.ratio i { display: block; height: 100%; }
@media (max-width: 700px) { .board { grid-template-columns: repeat(3, 1fr); } .board > div:nth-child(4) { border-left: 0; } .board > div:nth-child(n+4) { border-top: 1px solid var(--line); } .board b { font-size: 28px; } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 12px; }
.toolbar .input { width: auto; min-height: 40px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tbl td { white-space: nowrap; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; }
.person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.person .avatar { width: 38px; height: 38px; font-size: 14px; }
.person b { display: block; font-weight: 650; }
.person span { font-size: 12.5px; color: var(--muted); }
.thumbs { display: flex; gap: 6px; }
.thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--off-soft); cursor: zoom-in; border: 1px solid var(--line); }

/* register grid */
.reg { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.reg th, .reg td { border-bottom: 1px solid var(--line); text-align: center; padding: 0; }
.reg th { background: var(--surface-2); color: var(--muted); font-weight: 650; height: 38px; min-width: 34px; position: sticky; top: 0; z-index: 2; }
.reg th.wk { color: var(--stop); }
.reg .name { position: sticky; left: 0; background: var(--surface); text-align: left; padding: 8px 12px; min-width: 170px; z-index: 1; border-right: 1px solid var(--line); }
.reg th.name { z-index: 3; background: var(--surface-2); }
.reg td.c { cursor: pointer; }
.reg td.c span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; margin: 4px auto; font-weight: 700; font-size: 11.5px; position: relative; }
.reg td.c span.m::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--steel-2); }
.reg td.c span.lt { box-shadow: inset 0 -3px 0 var(--stop); }
.reg td.c:hover span { outline: 2px solid var(--steel-2); }
.reg td.tot { font-weight: 700; padding: 0 10px; background: var(--surface-2); }

.form-sec { margin: 6px 0 4px; font-size: 14px; font-weight: 750; color: var(--steel); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 14px; }
.form-sec:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.photo-pick { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.photo-pick .avatar { width: 64px; height: 64px; font-size: 22px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.map-frame { width: 100%; height: 240px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; background: var(--surface-2); }
.zoom-img { max-width: 100%; max-height: 70vh; border-radius: 14px; display: block; margin: 0 auto; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.money { font-weight: 700; }
