/* U17 Ops · light, neutral greys and white, VOGO blue as the only accent. */
:root {
  --bg: #F1F2F4; --panel: #FFFFFF; --well: #E6E8EB; --line: #CFD4DA; --line-soft: #E1E4E8;
  --text: #15191D; --dim: #414B55; --faint: #6A747E;
  --blue: #0072C6; --blue-dark: #00579A; --blue-soft: #E3F0FA;
  --green: #0E8A4F; --green-soft: #E2F3EA; --red: #C8261B; --red-soft: #FBE7E5; --orange: #C96A00;
  --shadow: 0 1px 2px rgba(21, 25, 29, .06), 0 2px 8px rgba(21, 25, 29, .04);
  --font: 'Barlow Semi Condensed', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.35; -webkit-font-smoothing: antialiased; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
#app { height: 100dvh; display: flex; flex-direction: column; }
svg.ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--blue-dark); text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--text); background: var(--panel); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 114, 198, .15); }
textarea { resize: vertical; min-height: 80px; }
.mono { font-family: var(--mono); }
.muted { color: var(--faint); }
.grow { flex: 1; min-width: 0; }

.top { flex: none; padding: calc(10px + var(--sat)) 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; min-height: calc(54px + var(--sat)); }
.top h1 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 small { color: var(--faint); font-weight: 600; margin-left: 8px; letter-spacing: .08em; font-size: 12px; }
.top .back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--well); }
.brand { width: 12px; height: 12px; border-radius: 3px; background: var(--blue); flex: none; }
.sync { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sync.pending i { background: var(--orange); }
.sync.off i { background: #98A2AB; }

.wrap { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px 28px; }
.wrap > .inner { max-width: 760px; margin: 0 auto; }
.wrap > .inner.wide { max-width: 1180px; }
.sec { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 22px 2px 8px; display: flex; align-items: center; gap: 8px; }
.sec:first-child { margin-top: 2px; }
.sec .cnt { margin-left: auto; font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--faint); }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 10px; }
.pad { padding: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-soft); min-height: 52px; width: 100%; text-align: left; }
.row:first-child { border-top: none; }
.row .t { font-size: 16.5px; font-weight: 500; }
.row .d { font-size: 13.5px; color: var(--faint); margin-top: 1px; }
.row .chev { color: #A3ACB5; width: 18px; height: 18px; }
.num { width: 38px; height: 38px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; flex: none; }
.num.mine { background: var(--blue); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--well); color: var(--dim); white-space: nowrap; }
.chip.blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.bar.done > i { background: var(--green); }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--dim); }
.bars .mono { font-size: 12px; color: var(--faint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.btn.blue { background: var(--blue); }
.btn.ghost { background: var(--well); color: var(--text); }
.btn.red { background: var(--red); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; }

.hero { background: var(--text); color: #fff; border-radius: 14px; padding: 16px; }
.hero .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A9B4BF; }
.hero .big { font-size: 30px; font-weight: 700; line-height: 1.1; margin: 4px 0 2px; }
.hero .clock { font-family: var(--mono); font-size: 26px; font-weight: 600; }
.hero .sub { color: #C9D1D9; font-size: 14.5px; }
.hero .btn { background: #fff; color: var(--text); margin-top: 12px; }
.hero.on { background: var(--blue-dark); }

.seg { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 36px; padding: 0 13px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--text); border-color: var(--text); color: #fff; }
.seg button b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; opacity: .75; }

.chk { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line-soft); min-height: 54px; width: 100%; text-align: left; }
.chk:first-child { border-top: none; }
.chk .box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #9AA4AE; flex: none; display: flex; align-items: center; justify-content: center; color: transparent; }
.chk.on .box { background: var(--green); border-color: var(--green); color: #fff; }
.chk .box .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.chk .t { font-size: 16px; font-weight: 500; }
.chk.on .t { color: var(--faint); }
.chk .d { font-size: 13.5px; color: var(--faint); margin-top: 1px; }
.chk .who { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.chk .time { font-family: var(--mono); font-size: 12.5px; color: var(--dim); flex: none; }
.chk .qty { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--dim); flex: none; background: var(--well); padding: 3px 8px; border-radius: 6px; }
.chk .edit { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--faint); flex: none; }
.chk .edit .ic { width: 18px; height: 18px; }
.port { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--dim); }
.port input { width: 120px; padding: 6px 9px; font-family: var(--mono); font-size: 14px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.photos .ph { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--well); position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .add { border: 1.5px dashed #9AA4AE; background: none; color: var(--dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; }
.refimg { width: 100%; display: block; background: var(--well); }
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 14, .96); display: flex; flex-direction: column; color: #fff; }
.viewer .vtop { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--sat)) 14px 10px; }
.viewer .vimg { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer .vimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vbot { padding: 12px 14px calc(14px + var(--sab)); display: flex; gap: 8px; align-items: center; }
.viewer select, .viewer input { background: #1F252B; color: #fff; border-color: #3A434C; }

.mrow .ko { font-family: var(--mono); font-size: 15px; font-weight: 600; width: 50px; flex: none; }
.mrow .teams { font-size: 17px; font-weight: 600; }
.dayh { position: sticky; top: -14px; z-index: 3; background: var(--bg); padding: 10px 2px 6px; font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }

.tabbar { flex: none; display: flex; background: var(--panel); border-top: 1px solid var(--line-soft); padding-bottom: var(--sab); }
.tabbar button { flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tabbar button.on { color: var(--blue-dark); }

.lock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.lock .box { width: 100%; max-width: 360px; }
.lock h2 { font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; }
.lock p { color: var(--dim); margin: 8px 0 18px; }
.lock label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin: 12px 0 5px; }
.lock .err { color: var(--red); font-weight: 600; min-height: 22px; margin-top: 10px; }
.pin { font-family: var(--mono); font-size: 24px; letter-spacing: .4em; text-align: center; }

.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(21, 25, 29, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--panel); width: 100%; max-width: 560px; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + var(--sab)); max-height: 86dvh; overflow-y: auto; }
.sheet h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.sheet .actions { display: flex; gap: 8px; margin-top: 14px; }
.sheet .actions .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--sab)); transform: translateX(-50%); z-index: 80; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; max-width: 90vw; text-align: center; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; padding: 11px 14px; border-top: 1px solid var(--line-soft); font-size: 15.5px; }
.kv:first-child { border-top: none; }
.kv .k { color: var(--faint); font-weight: 600; font-size: 13.5px; padding-top: 2px; }
.issue { display: flex; gap: 12px; align-items: flex-start; }

/* manager dashboard */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.grid .card + .card { margin-top: 0; }
.pc .head { display: flex; align-items: center; gap: 10px; }
.pc .name { font-size: 18px; font-weight: 700; }
.pc .line { font-size: 14px; color: var(--dim); margin-top: 6px; display: flex; gap: 7px; align-items: flex-start; }
.pc .line .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--faint); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #A3ACB5; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(14, 138, 79, .18); }
.map { position: relative; height: 340px; overflow: hidden; background: var(--well); }
.map img { position: absolute; width: 256px; height: 256px; max-width: none; }
.map .mk { position: absolute; transform: translate(-50%, -50%); min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); white-space: nowrap; }
.map .mk.pitch { background: var(--text); border-radius: 6px; }
.map .attr { position: absolute; right: 4px; bottom: 3px; font-size: 10.5px; background: rgba(255, 255, 255, .8); padding: 1px 5px; border-radius: 4px; color: var(--dim); }
.feed .row { min-height: 0; padding: 9px 14px; align-items: flex-start; }
.feed .time { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 44px; flex: none; padding-top: 2px; }
table.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.hours th, table.hours td { padding: 8px 10px; text-align: right; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 13px; }
table.hours th { font-family: var(--font); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-top: none; }
table.hours td:first-child, table.hours th:first-child { text-align: left; font-family: var(--font); font-size: 15px; font-weight: 600; }
.scroll-x { overflow-x: auto; }
