:root{
  --ink:#111214;
  --paper:#ffffff;
  --bg:#f4f2ee;
  --line:#e2ded6;
  --muted:#6b6b6f;
  --accent:#e4572e;
  --ok:#2e7d32;
  --red:#c0392b;
}
*{ box-sizing:border-box; }

/* The whole app hides things with the `hidden` attribute. That works through a
   browser default rule, which ANY author `display` beats regardless of
   specificity - so the moment an element with `hidden` also gets a class like
   `.modal{display:flex}` or `.staff-list{display:grid}`, it stops hiding and
   sits there permanently while the JS toggling it appears to do nothing.
   This puts `hidden` back in charge for good. */
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; overscroll-behavior-y:none; touch-action:manipulation; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Helvetica Neue',Arial,sans-serif;
  -webkit-tap-highlight-color:transparent;
  padding:20px;
  padding-top:calc(20px + env(safe-area-inset-top));
  padding-bottom:calc(20px + env(safe-area-inset-bottom));
  padding-left:calc(16px + env(safe-area-inset-left));
  padding-right:calc(16px + env(safe-area-inset-right));
  overscroll-behavior-y:none;
}
input, select{ -webkit-user-select:text; user-select:text; }
.sheet{ max-width:520px; margin:0 auto; }

.topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.brand{ font-weight:900; letter-spacing:-0.3px; font-size:1.05rem; }
.brand span{ color:var(--accent); }
.who{ font-size:0.8125rem; font-weight:700; color:var(--muted); }

.panel{ background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:18px 18px 16px; }
.panel h2{ font-size:0.8125rem; font-weight:900; text-transform:uppercase; letter-spacing:0.6px; margin:0 0 10px; }
.sub{ font-size:0.6875rem; font-weight:900; text-transform:uppercase; letter-spacing:0.6px; color:var(--muted); margin:20px 0 8px; }
.note{ font-size:0.8125rem; color:var(--muted); line-height:1.5; margin:0 0 14px; }
.err{ color:var(--red); font-size:0.8125rem; font-weight:700; min-height:1em; margin:10px 0 0; }
.ok{ color:var(--ok); font-size:0.8125rem; font-weight:700; min-height:1em; margin:6px 0 0; }

label{ display:block; font-size:0.625rem; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; color:var(--muted); margin-bottom:4px; }
input[type=text], select{
  width:100%; min-width:0; padding:11px 12px; font-size:1rem; font-weight:700;
  border:1.5px solid var(--ink); border-radius:8px; background:#fff; color:var(--ink);
}
.row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.row > *{ flex:1 1 auto; min-width:0; }

.btn{
  border:1.5px solid var(--ink); background:var(--accent); color:#fff;
  border-radius:10px; padding:12px 16px; cursor:pointer; font-weight:800; font-size:0.875rem;
}
.btn.secondary{ background:#fff; color:var(--ink); }
.btn.big{ padding:18px 16px; font-size:1rem; }
.btn:disabled{ opacity:0.45; cursor:default; }
.linkish{ background:none; border:none; color:var(--muted); font-size:0.75rem; font-weight:700;
  text-decoration:underline; cursor:pointer; padding:10px 0 0; }

/* Staff picker - thumb-sized rows, because this is used at 6am. */
.staff-list{ display:grid; gap:8px; }
.staff-btn{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  border:1.5px solid var(--line); background:#fff; border-radius:10px;
  padding:14px 16px; cursor:pointer; font-weight:800; font-size:0.9375rem; text-align:left;
}
.staff-btn:hover{ border-color:var(--ink); }
.staff-btn .role{ font-size:0.625rem; font-weight:800; text-transform:uppercase;
  letter-spacing:0.5px; color:var(--muted); }

.pin-who{ font-weight:900; font-size:1.05rem; margin-bottom:10px; }
.pin-dots{ display:flex; gap:10px; margin:0 0 16px; }
.pin-dots i{ width:14px; height:14px; border-radius:50%; border:2px solid var(--ink); display:block; }
.pin-dots i.on{ background:var(--ink); }
.keypad{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.keypad button{
  border:1.5px solid var(--ink); background:#fff; border-radius:12px;
  padding:18px 0; font-size:1.375rem; font-weight:800; cursor:pointer;
}
.keypad button:active{ background:var(--bg); }
.keypad button.wide{ grid-column:span 1; font-size:0.875rem; }

.cam-wrap{ background:#000; border-radius:12px; overflow:hidden; aspect-ratio:4/3; margin-bottom:12px; }
.cam-wrap video{ width:100%; height:100%; object-fit:cover; display:block; transform:scaleX(-1); }

.outlets{ display:grid; gap:8px; }
.outlet-row{ border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.outlet-row .nm{ font-weight:800; }
.outlet-row .meta{ font-size:0.75rem; color:var(--muted); margin-top:3px; }
.outlet-row .meta.unset{ color:var(--red); font-weight:700; }

.recent{ display:grid; gap:6px; }
.ev{ display:flex; justify-content:space-between; gap:10px; font-size:0.8125rem;
  border-bottom:1px solid var(--line); padding:7px 0; }
.ev .k{ font-weight:800; }
.ev .k.in{ color:var(--ok); }
.ev .k.out{ color:var(--muted); }
.ev .flag{ color:var(--red); font-weight:800; font-size:0.6875rem; }

/* ============================================================
   PHONE
   This app is used on a phone far more than a laptop - the station
   lives on the counter and staff check their shifts in bed. So the
   phone case is the one that has to be right, not the fallback.
   ============================================================ */
@media (max-width: 600px){
  /* A flex or grid item defaults to min-content width, which is what lets one
     wide child shove the whole page sideways. Learned this the slow way on
     ALLIN4, where a stats table dragged every other panel off screen. */
  html, body{ max-width:100%; overflow-x:clip; }
  .sheet, .panel{ min-width:0; max-width:100%; }
  body{
    padding-left:calc(12px + env(safe-area-inset-left));
    padding-right:calc(12px + env(safe-area-inset-right));
    padding-top:calc(10px + env(safe-area-inset-top));
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }
  .panel{ padding:14px 13px 13px; border-radius:10px; }

  /* iOS zooms the whole page when it focuses a field under 16px. */
  input, select, input:focus, select:focus{ font-size:1rem; }

  /* Three controls side by side leaves ~100px each on a 390px screen, which
     wraps "Register this device" into a mess. Stack them instead. */
  #manager-panel .row{ flex-direction:column; align-items:stretch; }
  #manager-panel .row > *{ width:100%; flex:none; }
  /* ...except the per-outlet row, where a narrow radius box beside the button
     still fits comfortably and reads better than two stacked lines. */
  #manager-panel .row.tight{ flex-direction:row; align-items:center; }
  #manager-panel .row.tight .rad{ flex:0 0 76px; width:76px; }
  #manager-panel .row.tight .btn{ flex:1 1 auto; width:auto; }

  /* Thumb-sized: this is tapped at 6am by someone holding a tray. */
  .keypad{ gap:8px; }
  .keypad button{ padding:20px 0; font-size:1.5rem; }
  .staff-btn{ padding:16px; font-size:1rem; }
  .btn.big{ padding:20px 14px; }

  /* Portrait phone: a 4:3 preview eats the screen and pushes the buttons below
     the fold. Squarer keeps the face big and the buttons reachable. */
  .cam-wrap{ aspect-ratio:1/1; }

  .topbar{ margin-bottom:10px; }
  .brand{ font-size:1rem; }
  .who{ font-size:0.75rem; text-align:right; max-width:58%; }
}

/* Short screens (a phone in landscape, or a small older phone): the camera
   preview is the first thing that should give up space. */
@media (max-height: 680px){
  .cam-wrap{ aspect-ratio:4/3; max-height:34vh; }
  .cam-wrap video{ height:100%; }
}

.row.tight{ gap:6px; margin-top:8px; }
.row.tight .rad{ flex:0 0 78px; width:78px; padding:8px 8px; font-size:0.875rem;
  border:1.5px solid var(--line); border-radius:8px; font-weight:700; }
.btn.small{ flex:0 0 auto; padding:8px 12px; font-size:0.75rem; }
.loc-msg{ min-height:1em; }

/* MANAGER: TODAY */
.today-head{ display:flex; align-items:baseline; justify-content:space-between; }
.on-shift{ margin-bottom:12px; }
.onshift-title{ font-size:0.6875rem; font-weight:900; text-transform:uppercase;
  letter-spacing:0.5px; color:var(--ok); margin-bottom:6px; }
.chip{ display:flex; justify-content:space-between; gap:10px; align-items:baseline;
  border:1px solid var(--line); border-left:3px solid var(--ok);
  border-radius:8px; padding:9px 11px; margin-bottom:6px; font-weight:800; font-size:0.875rem; }
.chip span{ font-weight:600; font-size:0.75rem; color:var(--muted); text-align:right; }

.flag-banner{ background:#fff4f1; border:1px solid var(--red); color:var(--red);
  border-radius:8px; padding:9px 11px; font-size:0.8125rem; font-weight:800; margin-bottom:10px; }

.events{ display:grid; gap:8px; }
.ev-row{ display:flex; gap:10px; align-items:center;
  border:1px solid var(--line); border-radius:10px; padding:8px; }
.ev-row.flagged{ border-color:var(--red); background:#fff8f6; }
.thumb{ width:52px; height:52px; border-radius:8px; object-fit:cover; flex:0 0 52px; background:var(--bg); }
.thumb.none{ display:flex; align-items:center; justify-content:center; color:var(--muted); font-weight:800; }
.ev-main{ min-width:0; }
.ev-line{ font-weight:800; font-size:0.9375rem; }
.ev-sub{ font-size:0.75rem; color:var(--muted); margin-top:2px; }
.ev-sub b{ color:var(--red); }
.k{ font-weight:900; font-size:0.6875rem; letter-spacing:0.5px; margin-right:4px; }
.k.in{ color:var(--ok); }
.k.out{ color:var(--muted); }

/* View switcher - managers only. */
.viewtabs{ display:flex; gap:4px; padding:4px; margin-bottom:12px;
  border:1.5px solid var(--ink); border-radius:999px; }
.viewtabs button{ flex:1 1 0; min-width:0; border:none; background:transparent; cursor:pointer;
  border-radius:999px; padding:10px 8px; font-weight:800; font-size:0.75rem;
  text-transform:uppercase; letter-spacing:0.4px; color:var(--ink); white-space:nowrap; }
.viewtabs button.active{ background:var(--accent); color:#fff; }

.soon{ display:grid; gap:8px; margin:14px 0 4px; }
.soon-row{ display:flex; justify-content:space-between; align-items:baseline;
  border:1px dashed var(--line); border-radius:10px; padding:13px 14px; }
.soon-row b{ font-size:0.9375rem; }
.soon-row span{ font-size:0.6875rem; font-weight:800; text-transform:uppercase;
  letter-spacing:0.5px; color:var(--muted); }

/* MAP CHECK - a viewer for a stored outlet location, opened from an outlet row.
   Leaflet brings its own stylesheet; everything here is the frame around it. */
.modal{
  position:fixed; inset:0; z-index:50;
  display:flex; align-items:center; justify-content:center;
  background:rgba(17,18,20,0.62);
  padding:16px;
  padding-top:calc(16px + env(safe-area-inset-top));
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
}
.modal-card{
  background:var(--paper); border:1.5px solid var(--ink); border-radius:12px;
  width:100%; max-width:520px; max-height:100%; overflow:auto; padding:14px;
}
.modal-head{ display:flex; gap:10px; align-items:flex-start; justify-content:space-between; margin-bottom:10px; }
.modal-heading{ min-width:0; }
.modal-title{ font-weight:900; font-size:0.9375rem; }
.modal-note{ font-size:0.75rem; color:var(--muted); margin-top:3px; line-height:1.45; }
.modal-x{
  flex:0 0 auto; width:32px; height:32px;
  border:1.5px solid var(--ink); background:#fff; color:var(--ink);
  border-radius:8px; font-size:1.25rem; line-height:1; font-weight:800; cursor:pointer;
}
/* A fixed height, not an aspect ratio: the useful thing is seeing the circle
   against the street, and that needs vertical room more than a shape. */
.map-body{ height:320px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg); }
.map-foot{ margin:10px 0 0; }
/* Stops the page behind scrolling while a map is open - and on iOS, stops the
   map's own drag gestures being stolen by the page. */
body.modal-open{ overflow:hidden; }

@media (max-height: 680px){ .map-body{ height:240px; } }

/* MANAGER: STAFF -----------------------------------------------------------
   Denser than the staff picker on the sign-in screen: that one is tapped at 6am
   by someone holding a tray, this one is read by a manager sitting down. */
.staff-admin{ display:grid; gap:8px; }
.staff-row{
  display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:10px; padding:10px 12px;
}
/* Faded rather than hidden: a leaver is still part of the record, and bringing
   someone back has to be possible. */
.staff-row.inactive{ opacity:0.55; background:var(--bg); }
.staff-main{ min-width:0; flex:1 1 160px; }
.staff-row .nm{ font-weight:800; font-size:0.9375rem; }
.staff-row .meta{ font-size:0.75rem; color:var(--muted); margin-top:2px; }
.staff-row .you{ font-size:0.625rem; font-weight:900; text-transform:uppercase; letter-spacing:0.5px;
  color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:1px 6px; vertical-align:middle; }
.staff-acts{ display:flex; gap:6px; flex-wrap:wrap; flex:0 0 auto; }

.tag{ font-size:0.625rem; font-weight:900; text-transform:uppercase; letter-spacing:0.5px;
  border-radius:999px; padding:2px 7px; vertical-align:middle; }
.tag.locked{ background:#fff4f1; color:var(--red); border:1px solid var(--red); }
.tag.off{ background:var(--bg); color:var(--muted); border:1px solid var(--line); }

.opt{ text-transform:none; letter-spacing:0; font-weight:600; color:var(--muted); }

@media (max-width: 600px){
  /* The actions drop to their own line and spread out, rather than squeezing
     four buttons into the gap left by a long name. */
  .staff-acts{ width:100%; }
  .staff-acts .btn{ flex:1 1 auto; }
}

/* CHECKLISTS ----------------------------------------------------------------
   The station side is tapped by someone mid-task, so rows are big and the
   whole row is the button. The manager side is read, so it folds away. */
.cl-lists{ display:grid; gap:8px; }
.cl-card{ border:1.5px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.cl-card.complete{ border-color:var(--ok); }
.cl-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%;
  background:none; border:none; padding:14px 14px 10px; cursor:pointer; text-align:left; color:var(--ink); }
.cl-name{ font-weight:900; font-size:1rem; min-width:0; }
.cl-prog{ font-weight:800; font-size:0.8125rem; color:var(--muted); flex:0 0 auto; }
.cl-card.complete .cl-prog{ color:var(--ok); }
.cl-bar{ height:4px; background:var(--bg); margin:0 14px 12px; border-radius:2px; overflow:hidden; }
.cl-bar i{ display:block; height:100%; background:var(--accent); }
.cl-card.complete .cl-bar i{ background:var(--ok); }
.cl-items{ border-top:1px solid var(--line); }
.cl-item{ display:flex; gap:12px; align-items:flex-start; width:100%; text-align:left; cursor:pointer;
  background:#fff; border:none; border-bottom:1px solid var(--line); padding:14px; color:var(--ink);
  font-size:0.9375rem; font-weight:700; }
.cl-item:last-child{ border-bottom:none; }
.cl-item:disabled{ opacity:0.5; }
.cl-item.done{ background:#f3f8f3; }
.cl-item.done .cl-label{ color:var(--muted); text-decoration:line-through; }
.box{ flex:0 0 24px; width:24px; height:24px; border:2px solid var(--ink); border-radius:6px;
  display:flex; align-items:center; justify-content:center; font-weight:900; font-size:0.875rem; }
.done .box{ background:var(--ok); border-color:var(--ok); color:#fff; }
.cl-label{ min-width:0; flex:1 1 auto; line-height:1.35; }
/* The name and time sit under a ticked item, and are not struck through - they
   are the record, not the task. */
.cl-by{ display:block; font-size:0.75rem; font-weight:700; color:var(--ok); margin-top:2px; text-decoration:none; }
.cam-tag{ font-size:0.5625rem; font-weight:900; text-transform:uppercase; letter-spacing:0.5px;
  border:1px solid var(--accent); color:var(--accent); border-radius:999px; padding:1px 6px; vertical-align:middle;
  text-decoration:none; display:inline-block; }

.today-lists{ margin-top:14px; }
.onshift-title.muted{ color:var(--muted); }
.cl-outlet{ font-size:0.75rem; font-weight:800; margin:10px 0 6px; }
.cl-sum{ border:1px solid var(--line); border-left:3px solid var(--line); border-radius:8px; margin-bottom:6px; }
.cl-sum.complete{ border-left-color:var(--ok); }
.cl-sum.partial{ border-left-color:var(--accent); }
.cl-sum.none{ border-left-color:var(--red); }
.cl-sum summary{ display:flex; justify-content:space-between; gap:10px; padding:9px 11px; cursor:pointer;
  font-weight:800; font-size:0.875rem; list-style:none; }
.cl-sum summary::-webkit-details-marker{ display:none; }
.cl-sum summary b{ font-size:0.75rem; }
.cl-sum.complete summary b{ color:var(--ok); }
.cl-sum.partial summary b{ color:var(--accent); }
.cl-sum.none summary b{ color:var(--red); }
.cl-sum.empty summary b{ color:var(--muted); font-weight:600; }
.cl-line{ display:flex; gap:10px; align-items:center; padding:7px 11px; border-top:1px solid var(--line);
  font-size:0.8125rem; font-weight:700; }
.cl-line .box{ flex-basis:18px; width:18px; height:18px; font-size:0.6875rem; border-width:1.5px; }
.cl-line:not(.done) .cl-label{ color:var(--muted); }
.thumb.sm{ width:40px; height:40px; flex:0 0 40px; display:block; }

.cl-edit-items{ display:grid; gap:6px; }
.cl-edit{ display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:8px; padding:8px 10px; font-size:0.875rem; font-weight:700; }
.cl-edit .cl-label{ flex:1 1 150px; }
.cl-edit-acts{ display:flex; gap:4px; flex:0 0 auto; }
.cl-edit-acts .btn.small{ padding:6px 9px; }
label.check{ display:flex; gap:8px; align-items:center; text-transform:none; letter-spacing:0;
  font-size:0.8125rem; font-weight:700; color:var(--ink); margin:10px 0 0; }
label.check input{ width:18px; height:18px; }
#list-modal .row{ flex-direction:row; }

/* TABS ----------------------------------------------------------------------
   The manager bar can hold seven tabs; on a phone it scrolls sideways rather
   than squeezing labels to nothing. */
.viewtabs.scroll{ overflow-x:auto; scrollbar-width:none; }
.viewtabs.scroll::-webkit-scrollbar{ display:none; }
.viewtabs.scroll button{ flex:1 0 auto; padding:10px 12px; }
.badge{ display:inline-block; min-width:16px; padding:1px 5px; margin-left:3px; border-radius:999px;
  background:var(--red); color:#fff; font-size:0.625rem; font-weight:900; }
.viewtabs button.active .badge{ background:#fff; color:var(--accent); }

textarea{ width:100%; min-width:0; padding:11px 12px; font:inherit; font-size:1rem; font-weight:600;
  border:1.5px solid var(--ink); border-radius:8px; background:#fff; color:var(--ink); resize:vertical; }
input[type=time], input[type=date], input[type=datetime-local]{
  width:100%; min-width:0; padding:10px 12px; font-size:1rem; font-weight:700; font-family:inherit;
  border:1.5px solid var(--ink); border-radius:8px; background:#fff; color:var(--ink); }
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.grid3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.grid2 > *, .grid3 > *{ min-width:0; }
.tight-row{ margin-top:10px; }
a.btn{ display:inline-block; text-align:center; text-decoration:none; }
label.inline{ display:flex; align-items:center; gap:6px; margin:0; flex:0 0 auto; }
label.inline input{ width:52px; padding:6px 8px; font-size:0.875rem; border:1.5px solid var(--line); border-radius:6px; font-weight:800; }
.ok-text{ color:var(--ok) !important; }
.onshift-title.red{ color:var(--red); }
button.as-btn{ width:100%; text-align:left; background:#fff; cursor:pointer; font:inherit; color:var(--ink); }

/* TODAY: shift status chips */
.chip.st-late, .chip.st-missing, .chip.st-no_show{ border-left-color:var(--red); }
.chip.st-late b, .chip.st-missing b, .chip.st-no_show b{ color:var(--red); }
.chip.st-open{ border-left-color:var(--accent); }
.chip.st-upcoming{ border-left-color:var(--line); }
#today-late, #today-notes, #today-stock{ margin-bottom:12px; }

/* NOTES */
.notes{ display:grid; gap:6px; }
.note-card{ border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:0.875rem; font-weight:600; line-height:1.4; }
.note-card.urgent{ border-color:var(--red); background:#fff8f6; }
.note-card .meta{ font-size:0.6875rem; color:var(--muted); margin-top:4px; font-weight:700; }
.note-body{ white-space:pre-wrap; }

/* STATION STOCK COUNT */
.count-row{ display:flex; gap:10px; align-items:center; border-bottom:1px solid var(--line); padding:9px 0; }
.count-row.low .nm{ color:var(--red); }
.count-main{ flex:1 1 auto; min-width:0; }
.count-main .nm{ font-weight:800; font-size:0.9375rem; }
.count-main .meta{ font-size:0.75rem; color:var(--muted); margin-top:2px; }
.count-main .meta b{ color:var(--red); }
.count-in{ flex:0 0 84px; width:84px; padding:10px; font-size:1.0625rem; font-weight:800; text-align:right;
  border:1.5px solid var(--ink); border-radius:8px; }

/* MANAGER STOCK */
.low-list{ margin-top:8px; display:grid; gap:4px; font-size:0.8125rem; }
.low-list b{ color:var(--red); }
.low-list span{ color:var(--muted); font-size:0.75rem; }

/* SHIFTS */
.week-nav{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin:10px 0 6px; }
.week-label{ font-weight:900; font-size:0.9375rem; text-align:center; flex:1 1 auto; }
.sh-summary{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:0.8125rem; color:var(--muted); margin:6px 0; }
.sh-summary b{ color:var(--ink); }
.sh-summary .warn b, .sh-summary .warn{ color:var(--accent); }
.sh-summary i{ font-style:normal; font-size:0.75rem; }
.sh-days{ display:grid; gap:10px; margin-top:12px; }
.day-card{ border:1.5px solid var(--line); border-radius:10px; padding:10px; }
.day-card.today{ border-color:var(--accent); }
.day-head{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.day-head b{ font-size:0.9375rem; }
.day-head span{ flex:1 1 auto; font-size:0.75rem; color:var(--muted); font-weight:700; }
.shift-row{ display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; width:100%; text-align:left; cursor:pointer;
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--ok); border-radius:8px; padding:9px 10px;
  margin-top:6px; font:inherit; color:var(--ink); }
.shift-row.draft{ border-left-color:var(--muted); border-style:dashed solid dashed solid; }
.shift-row.warn{ border-left-color:var(--red); }
.sh-time{ font-weight:900; font-size:0.875rem; font-variant-numeric:tabular-nums; }
.sh-who{ font-weight:700; font-size:0.875rem; flex:1 1 auto; min-width:0; }
.sh-who .pos{ font-size:0.6875rem; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:0.4px; }
.sh-tags{ display:flex; gap:4px; flex-wrap:wrap; }
.off-line{ font-size:0.75rem; color:var(--muted); font-weight:700; margin-bottom:2px; }
.off-chip{ border:1px solid var(--line); background:var(--bg); border-radius:999px; padding:2px 8px;
  font-size:0.75rem; font-weight:800; cursor:pointer; color:var(--ink); }
.off-chip.pending{ border-style:dashed; color:var(--accent); }
select.off-add{ margin-top:8px; padding:6px 10px; font-size:0.8125rem; border:1px dashed var(--line); font-weight:700; color:var(--muted); }
.dayoff-admin{ border:1px solid var(--line); border-radius:10px; padding:10px; margin-top:10px; background:var(--bg); display:grid; gap:6px; }
.dayoff-admin .meta{ font-size:0.75rem; color:var(--muted); }
.dayoff-admin .row{ justify-content:space-between; }
.req-row{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; border:1px solid var(--accent); background:#fff;
  border-radius:8px; padding:8px 10px; font-size:0.8125rem; margin-bottom:6px; }
.req-row span{ flex:1 1 180px; }

/* ME: days off */
.off-grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:5px; margin:8px 0; }
.off-day{ border:1.5px solid var(--ink); background:#fff; border-radius:10px; padding:8px 0; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:1px; color:var(--ink); min-width:0; font:inherit; }
.off-day b{ font-size:0.6875rem; font-weight:900; text-transform:uppercase; }
.off-day span{ font-size:1.125rem; font-weight:900; }
.off-day i{ font-style:normal; font-size:0.5625rem; font-weight:800; color:var(--muted); white-space:nowrap; }
.off-day.mine{ background:var(--ok); border-color:var(--ok); color:#fff; }
.off-day.mine i{ color:#fff; }
.off-day.asked{ border-style:dashed; border-color:var(--accent); }
.off-day.asked i{ color:var(--accent); }
.off-day.full{ background:var(--bg); border-color:var(--line); color:var(--muted); }
.off-day.full i{ color:var(--red); }
.off-day:disabled{ opacity:0.55; cursor:default; }
.full-box{ border:1px solid var(--red); border-radius:10px; padding:10px; background:#fff8f6; margin-bottom:8px; }
.full-box .note{ margin:6px 0; }

/* TEAM: skills and ratings */
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.chip-btn{ border:1.5px solid var(--ink); background:#fff; border-radius:999px; padding:5px 11px; font-weight:800;
  font-size:0.75rem; cursor:pointer; color:var(--ink); }
.chip-btn.off{ opacity:0.45; text-decoration:line-through; }
.chip-btn:disabled{ cursor:default; }
.stars{ color:var(--accent); letter-spacing:1px; font-size:0.8125rem; }
.avg{ font-size:0.75rem; color:var(--muted); font-weight:800; }
.rate-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; border-bottom:1px solid var(--line); padding:9px 0; flex-wrap:wrap; }
.rate-row .nm{ font-weight:800; }
.rate-row .meta{ font-size:0.75rem; color:var(--muted); margin-top:2px; }
.star-btns{ display:flex; gap:2px; }
.star-btns button{ border:none; background:none; font-size:1.5rem; line-height:1; color:var(--line); cursor:pointer; padding:2px; }
.star-btns button.on{ color:var(--accent); }
.star-btns button:disabled{ cursor:default; }

.linkish.void{ padding:0 0 0 4px; font-size:0.6875rem; color:var(--red); }

@media (max-width: 600px){
  .grid3{ grid-template-columns:1fr 1fr 1fr; }
  #manager-panel .row.tight-row{ flex-direction:column; }
  .off-day span{ font-size:1rem; }
  .shift-row{ padding:10px; }
}
#me-hours .meta{ font-size:0.8125rem; color:var(--muted); padding:5px 0; border-bottom:1px solid var(--line); }
.chip{ flex-wrap:wrap; }
.chip > span{ flex:1 1 180px; }
#st-tabs button{ padding:10px 4px; }
