:root {
  --navy: #2A3C60;
  --purple: #577CC7;
  --teal: #1691A5;
  --turq: #36D0EA;
  --gold: #F9BB32;
  --orange: #FF8C1A;
  --red: #FF5527;
  --ink: #2A3C60;
  --muted: #6B7A99;
  --line: #DCE3EF;
  --bg: #F4F6FA;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.brand .bar { width: 4px; height: 26px; background: var(--gold); border-radius: 2px; }
.brand .name { font-weight: 700; font-size: 16px; }
.topbar .meta { font-size: 13px; opacity: 0.85; text-align: right; }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
h1 { font-size: 24px; margin: 6px 0 4px; }
h2 { font-size: 19px; margin: 18px 0 8px; }
p { line-height: 1.5; }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(42, 60, 96, 0.08);
  padding: 16px;
  margin: 0 0 14px;
}
button { font-family: inherit; cursor: pointer; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  min-height: 52px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.teal { background: var(--teal) !important; }
.red { background: var(--red) !important; }
.gold { background: var(--gold) !important; color: var(--navy) !important; }
.orange { background: var(--orange) !important; color: var(--navy) !important; }
.purple { background: var(--purple) !important; }
.link { background: none; border: 0; color: var(--purple); font-weight: 700; font-size: 15px; padding: 6px 0; text-decoration: underline; }
.grid-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (min-width: 520px) { .grid-nums { grid-template-columns: repeat(6, 1fr); } }
.num-btn {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  border-radius: 12px;
  min-height: 62px;
}
.num-btn:active { background: var(--turq); }
.actions { display: grid; gap: 12px; }
.who {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(42, 60, 96, 0.08);
}
.who .big { font-size: 30px; font-weight: 800; }
.shift-pick { display: grid; gap: 8px; margin: 8px 0 14px; }
.shift-opt {
  text-align: left; border: 2px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 12px; padding: 12px 14px; font-size: 15px;
}
.shift-opt strong { display: block; font-size: 16px; }
.shift-opt.selected { border-color: var(--teal); background: #E7F6F9; }
label.fld { display: block; font-weight: 700; margin: 12px 0 6px; }
textarea, input[type=text], input[type=password], input[type=number] {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px; background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.warn { background: #FFF1EC; border-left: 0; border-radius: 10px; padding: 12px 14px; color: var(--navy); font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; }
.confirm { text-align: center; padding: 28px 16px; }
.confirm .tick {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff; background: var(--teal);
}
.confirm .line1 { font-size: 30px; font-weight: 800; margin: 0; }
.confirm .line2 { font-size: 18px; margin: 6px 0 18px; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.err { color: var(--red); font-weight: 700; margin: 10px 0 0; }
.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.hidden { display: none !important; }
.my-shift { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.my-shift:last-child { border-bottom: 0; }
.my-shift strong { display: block; font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 999px; background: var(--turq); color: var(--navy); margin-left: 6px; vertical-align: middle; }

/* Board */
.wide { max-width: 1100px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.tab { border: 0; background: #fff; color: var(--navy); font-weight: 700; padding: 10px 14px; border-radius: 10px; font-size: 15px; box-shadow: 0 1px 2px rgba(42,60,96,0.08); }
.tab.on { background: var(--navy); color: #fff; }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 1px 3px rgba(42,60,96,0.08); }
.kpi .v { font-size: 28px; font-weight: 800; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 700; }
.shift-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(42,60,96,0.08); }
.shift-card .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shift-card .title { font-weight: 800; font-size: 16px; }
.shift-card .when { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #EEF1F7; color: var(--navy); }
.chip.in { background: var(--teal); color: #fff; }
.chip.out { background: var(--red); color: #fff; }
.chip.late { background: var(--gold); color: var(--navy); }
.chip.extra { background: var(--turq); color: var(--navy); }
table.log { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 14px; }
table.log th { background: var(--navy); color: #fff; text-align: left; padding: 10px; font-size: 13px; }
table.log td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req .what { font-size: 15px; }
.req .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filters select, .filters input { font-family: inherit; font-size: 15px; padding: 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
