/* Lifted verbatim from docs/mockups/timer.html / review.html — the two
   mockups share this exact block byte-for-byte. The full stylesheet is
   kept here, including rules not yet used by any template, because the
   mockup is the specification for steps 2, 4 and 6 too. Do not add new
   colours, radii, shadows, font sizes or spacing values; the :root block
   is the complete set of design tokens. */
:root {
  --bg:          #F7F7F8;
  --surface:     #FFFFFF;
  --surface-alt: #FCFCFD;
  --border:      #E8E8EB;
  --border-firm: #D8D8DE;
  --text:        #18181B;
  --text-soft:   #52525B;
  --text-muted:  #8E8E98;

  --accent:      #C2255C;
  --accent-hover:#A81E50;
  --accent-weak: #FDF2F6;

  --running:     #D6336C;
  --ok:          #0CA678;
  --warn:        #B45309;

  --c-orange:    #E8590C;
  --c-blue:      #1C7ED6;
  --c-teal:      #0CA678;
  --c-grey:      #868E96;

  --s1: 4px;  --s2: 8px;  --s3: 12px;
  --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

  --t-xs: 11px; --t-sm: 12.5px; --t-md: 14px;
  --t-lg: 16px; --t-xl: 20px;  --t-timer: 30px;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(24,24,27,.05);

  --sidebar-w: 208px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--t-md);
  -webkit-font-smoothing: antialiased;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ===================== SHELL ===================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: var(--s5) var(--s3) var(--s3);
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s2) var(--s6);
  font-weight: 600; font-size: var(--t-lg); letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--accent); flex: 0 0 22px; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; background: var(--surface);
  clip-path: polygon(50% 50%, 50% 14%, 78% 50%); opacity: .95;
}
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2); border-radius: var(--radius-sm);
  color: var(--text-soft); text-decoration: none; font-weight: 450;
}
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-weak); color: var(--accent); font-weight: 500; }
.nav svg { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-gap { flex: 1; }
.whoami {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2); border-top: 1px solid var(--border);
  margin-top: var(--s3); padding-top: var(--s4);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #E4E4E8; color: var(--text-soft);
  display: grid; place-items: center; font-size: var(--t-xs); font-weight: 600;
}
.whoami div { font-size: var(--t-sm); color: var(--text-soft); line-height: 1.3; }

.main { flex: 1; min-width: 0; padding: var(--s5) var(--s6) var(--s7); }
/* Wide, because this is a table not an article. The cap only stops
   things getting silly on an ultrawide. */
.wrap { max-width: 1680px; margin: 0 auto; }

/* ===================== ACTIVE ENTRY ===================== */
.timerbar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.timerbar.is-running { border-color: var(--running); }
.timerbar-top { display: flex; align-items: stretch; }

.ticketpick {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s3) 0 var(--s4);
  font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); white-space: nowrap;
}
.ticketpick svg { width: 15px; height: 15px; color: var(--text-muted); }
.ticketpick:hover { color: var(--accent); }
.ticketpick:hover svg { color: var(--accent); }

.subject {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 0 var(--s3); font-size: var(--t-lg); font-weight: 450;
  background: transparent; height: 62px;
}
.subject::placeholder { color: var(--text-muted); font-weight: 400; }

.timer-meta { display: flex; align-items: center; gap: var(--s1); padding-right: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s1) var(--s2); border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: var(--t-md); white-space: nowrap;
}
.chip:hover { background: var(--bg); color: var(--text); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; display: inline-block; }
.divider-v { width: 1px; background: var(--border); margin: var(--s4) var(--s2); }
.elapsed {
  font-size: var(--t-timer); font-weight: 450; letter-spacing: -0.02em;
  padding: 0 var(--s3) 0 var(--s2); display: grid; place-items: center; min-width: 148px;
}
.gobtn { width: 62px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.gobtn:hover { background: var(--accent-hover); }
.gobtn svg { width: 20px; height: 20px; }
.timerbar.is-running .gobtn { background: var(--running); }

/* Note pane — only on the active entry, or one you have opened */
.timer-note { border-top: 1px solid var(--border); background: var(--surface-alt); padding: var(--s3) var(--s4); }
.notefield {
  width: 100%; border: none; outline: none; resize: none;
  background: transparent; line-height: 1.55; color: var(--text);
  min-height: 88px; overflow: hidden; display: block;
}
.notefield::placeholder { color: var(--text-muted); }
.notefoot {
  display: flex; align-items: center; gap: var(--s3);
  margin-top: var(--s2); font-size: var(--t-sm); color: var(--text-muted);
}
.notefoot .grow { flex: 1; }

/* ===================== WEEK STRIP ===================== */
.week {
  display: flex; align-items: flex-end; gap: var(--s5);
  margin-top: var(--s5); padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.week-total { line-height: 1.2; }
.week-total .k { font-size: var(--t-sm); color: var(--text-muted); }
.week-total .v { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; display: block; margin-top: var(--s1); }
.bars { display: flex; gap: var(--s3); align-items: flex-end; flex: 1; height: 46px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--s2); height: 100%; justify-content: flex-end; }
.bar .fill { width: 100%; max-width: 30px; background: var(--border-firm); border-radius: 2px; }
.bar.today .fill { background: var(--accent); }
.bar .d { font-size: var(--t-xs); color: var(--text-muted); }
.bar.today .d { color: var(--accent); font-weight: 500; }
.week-goal { font-size: var(--t-sm); color: var(--text-muted); padding-bottom: var(--s1); }

/* ===================== DAY GROUPS ===================== */
.day { margin-top: var(--s5); }
.day-head { display: flex; align-items: baseline; gap: var(--s3); padding: 0 var(--s4) var(--s2); }
.day-head h2 { margin: 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.day-head .date { font-size: var(--t-sm); color: var(--text-muted); flex: 1; }
.day-head .total { font-size: var(--t-md); font-weight: 500; color: var(--text-soft); }

.rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.entry { border-bottom: 1px solid var(--border); }
.entry:last-of-type { border-bottom: none; }
.entry:hover { background: var(--surface-alt); }
.entry.open { background: var(--surface-alt); }

.row { display: flex; align-items: center; gap: var(--s3); height: 48px; padding: 0 var(--s2) 0 var(--s4); }

/* 1. Ticket number — the identifier, so it leads */
.row-ticket {
  width: 62px; flex: 0 0 62px;
  font-weight: 600; color: var(--text);
}
.row-ticket.none { color: var(--text-muted); font-weight: 400; }

/* 2. Ticket subject */
.row-subject { flex: 1; min-width: 0; font-weight: 450; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3. Customer */
.row-cust {
  display: inline-flex; align-items: center; gap: var(--s2);
  width: 132px; flex: 0 0 132px;
  font-size: var(--t-sm); color: var(--text-soft);
  white-space: nowrap; overflow: hidden;
}
.row-cust span:last-child { overflow: hidden; text-overflow: ellipsis; }

.row-span { font-size: var(--t-sm); color: var(--text-muted); width: 108px; flex: 0 0 108px; text-align: right; white-space: nowrap; }
.row-dur { width: 72px; flex: 0 0 72px; text-align: right; font-weight: 500; }

/* Last sync to Syncro */
.row-sync {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--s1);
  width: 112px; flex: 0 0 112px;
  font-size: var(--t-sm); color: var(--text-muted); white-space: nowrap;
}
.row-sync svg { width: 13px; height: 13px; flex: 0 0 13px; }
.row-sync.ok { color: var(--ok); }
.row-sync.failed { color: var(--warn); }

.row-actions { display: flex; gap: 1px; width: 136px; flex: 0 0 136px; justify-content: flex-end; }
.row-actions button {
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--text-muted); opacity: 0;
}
.entry:hover .row-actions button, .entry:focus-within .row-actions button, .entry.open .row-actions button { opacity: 1; }
.row-actions button:hover { background: var(--bg); color: var(--text); }
.row-actions svg { width: 15px; height: 15px; }
.chev { transition: transform .12s ease; }
.entry.open .chev { transform: rotate(180deg); }

/* Notes only exist here, on the entry you have opened */
.note-pane { display: none; padding: 0 var(--s4) var(--s4) var(--s4); }
.entry.open .note-pane { display: block; }
.note-box {
  background: var(--surface); border: 1px solid var(--border-firm);
  border-radius: var(--radius); padding: var(--s3);
}
.note-box:focus-within { border-color: var(--accent); }

.addmanual {
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; padding: var(--s3) var(--s4);
  text-align: left; color: var(--accent); font-size: var(--t-sm); font-weight: 500;
  border-top: 1px solid var(--border);
}
.addmanual svg { width: 14px; height: 14px; }
.addmanual:hover { background: var(--accent-weak); }

.hint { margin: var(--s5) 0 0; font-size: var(--t-sm); color: var(--text-muted); text-align: center; }
kbd {
  font: inherit; font-size: var(--t-xs);
  border: 1px solid var(--border-firm); border-bottom-width: 2px;
  border-radius: var(--radius-sm); padding: 1px var(--s1);
  background: var(--surface); color: var(--text-soft);
}

/* Manual add, sitting next to the start/stop button so it is always
   reachable no matter how far down the list you are */
.manualbtn {
  width: 48px; background: var(--surface); color: var(--text-muted);
  display: grid; place-items: center; border-left: 1px solid var(--border);
}
.manualbtn:hover { background: var(--bg); color: var(--accent); }
.manualbtn svg { width: 18px; height: 18px; }

/* ===================== SHARED BUTTONS ===================== */
.btn {
  padding: var(--s1) var(--s3); border-radius: var(--radius-sm);
  font-size: var(--t-sm); font-weight: 450; white-space: nowrap;
  border: 1px solid var(--border-firm); background: var(--surface); color: var(--text-soft);
}
.btn:hover { border-color: var(--text-muted); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-quiet:hover { background: var(--bg); border-color: transparent; }
.btn-danger { color: var(--warn); border-color: transparent; background: transparent; }
.btn-danger:hover { background: #FDF3E7; border-color: transparent; color: var(--warn); }
.btn svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* ===================== REVIEW / FLAGS =====================
   One place for everything that needs a human look: entries that
   have not reached Syncro, days where our total disagrees with
   Syncro's, and days short of the target hours. */
.review {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); text-decoration: none; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border); border-left: 2px solid var(--warn);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: var(--s3);
}
.review:hover { background: var(--surface-alt); }
.review .warnico { width: 16px; height: 16px; flex: 0 0 16px; color: var(--warn); }
.review-lead { font-weight: 500; white-space: nowrap; }
.review-sub {
  flex: 1; min-width: 0; font-size: var(--t-sm); color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-go {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--t-sm); font-weight: 500; color: var(--accent); flex: 0 0 auto;
}
.review-go svg { width: 14px; height: 14px; }

/* Count against the Review item in the sidebar */
.nav .badge {
  margin-left: auto; font-size: var(--t-xs); font-weight: 600;
  background: var(--warn); color: #fff;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ===================== REVIEW PAGE ===================== */
.pagehead { padding: 0 var(--s4) var(--s5); }
.pagehead h1 { margin: 0; font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; }
.pagehead p { margin: var(--s2) 0 0; color: var(--text-muted); font-size: var(--t-sm); }
.allclear {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s7) var(--s4); text-align: center;
}
.allclear svg { width: 26px; height: 26px; color: var(--ok); }
.allclear p { margin: var(--s3) 0 0; color: var(--text-soft); }
.allclear.hide { display: none; }
.group.hide { display: none; }

.rgroup { border-bottom: 1px solid var(--border); }
.rgroup:last-child { border-bottom: none; }
.rgroup-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4); background: var(--surface-alt);
}
.rgroup-head h3 { margin: 0; font-size: var(--t-sm); font-weight: 600; }
.rgroup-head .rcount { flex: 1; font-size: var(--t-sm); color: var(--text-muted); }

.rrow {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4); min-height: 46px;
  border-top: 1px solid var(--border);
}
.rrow:first-of-type { border-top: none; }
.rrow:hover { background: var(--surface-alt); }
.rrow.gone { display: none; }
.rmain { flex: 1; min-width: 0; }
.rmain .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmain .s { font-size: var(--t-sm); color: var(--text-muted); margin-top: 1px; }
.rwhy { font-size: var(--t-sm); color: var(--warn); width: 224px; flex: 0 0 224px; }
.rnums { font-size: var(--t-sm); color: var(--text-soft); width: 224px; flex: 0 0 224px; }
.ractions { display: flex; gap: var(--s1); flex: 0 0 auto; }

/* Dismiss with a reason — revealed under the row it belongs to */
.dismiss {
  display: none; padding: var(--s3) var(--s4);
  background: var(--accent-weak); border-top: 1px solid var(--border);
}
.dismiss.show { display: block; }
.dismiss-lab { font-size: var(--t-sm); color: var(--text-soft); margin-bottom: var(--s2); }
.reasons { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.reasons input {
  flex: 1; min-width: 150px; height: 28px;
  border: 1px solid var(--border-firm); border-radius: var(--radius-sm);
  background: var(--surface); padding: 0 var(--s2); outline: none;
  font-size: var(--t-sm);
}
.reasons input:focus { border-color: var(--accent); }

/* ===================== MANUAL ENTRY SHEET ===================== */
/* The ticket picker has to sit above this sheet, since you open it
   from inside the sheet. */
#scrim  { z-index: 50; }
#mscrim { z-index: 30; padding-top: 8vh; }

.sheet {
  width: 100%; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border-firm);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(24,24,27,.16);
  display: flex; flex-direction: column; max-height: 84vh; overflow: hidden;
}
.sheet-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border);
}
.sheet-head h2 { margin: 0; font-size: var(--t-md); font-weight: 600; flex: 1; }
.sheet-head .esc { font-size: var(--t-sm); color: var(--text-muted); }
.sheet-body { padding: var(--s4); overflow-y: auto; }
.sheet-foot {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.sheet-foot .grow { flex: 1; font-size: var(--t-sm); color: var(--text-muted); }
.sheet-foot .grow.saved { color: var(--ok); }

.field { margin-bottom: var(--s4); }
.field > label { display: block; font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--s2); }
.ctrl {
  width: 100%; height: 38px; padding: 0 var(--s3);
  border: 1px solid var(--border-firm); border-radius: var(--radius-sm);
  background: var(--surface); outline: none;
}
.ctrl:focus { border-color: var(--accent); }
.ctrl::placeholder { color: var(--text-muted); }

.ticketbtn {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; text-align: left; height: 42px; padding: 0 var(--s3);
  border: 1px solid var(--border-firm); border-radius: var(--radius-sm);
  background: var(--surface);
}
.ticketbtn:hover { border-color: var(--accent); }
.ticketbtn svg { width: 15px; height: 15px; color: var(--text-muted); flex: 0 0 15px; }
.ticketbtn .tnum { font-weight: 600; }
.ticketbtn .tsub { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-soft); }
.ticketbtn .tcust { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--text-soft); }
.ticketbtn.empty .tnum { color: var(--text-muted); font-weight: 400; }

.times { display: flex; gap: var(--s3); margin-bottom: var(--s4); }
.times .field { flex: 0 0 128px; margin-bottom: 0; }
.times .field.dur { flex: 0 0 92px; }
.times .spacer { flex: 1; }

.note-wrap {
  border: 1px solid var(--border-firm); border-radius: var(--radius-sm);
  padding: var(--s3); background: var(--surface);
}
.note-wrap:focus-within { border-color: var(--accent); }
.note-wrap .notefield { min-height: 128px; }

@media (max-width: 900px) {
  .rwhy, .rnums { width: auto; flex: 1 1 auto; }
  .rrow { flex-wrap: wrap; }
}
@media (max-width: 660px) {
  .review-lead { white-space: normal; }
  .review-sub { display: none; }
  .times { flex-wrap: wrap; }
  .times .field { flex: 1 1 104px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== TICKET PICKER ===================== */
.scrim {
  position: fixed; inset: 0; background: rgba(24,24,27,.32);
  display: none; align-items: flex-start; justify-content: center;
  padding: 10vh var(--s4) var(--s4);
  z-index: 40;
}
.scrim.show { display: flex; }

.picker {
  width: 100%; max-width: 680px;
  background: var(--surface); border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(24,24,27,.16);
  display: flex; flex-direction: column;
  max-height: 72vh; overflow: hidden;
}

.picker-search {
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s4); border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.picker-search svg { width: 17px; height: 17px; color: var(--text-muted); flex: 0 0 17px; }
.picker-search input {
  flex: 1; border: none; outline: none; background: transparent;
  height: 54px; font-size: var(--t-lg);
}
.picker-search input::placeholder { color: var(--text-muted); }
.picker-search .esc { font-size: var(--t-sm); color: var(--text-muted); }

.picker-filters {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  flex: 0 0 auto; flex-wrap: wrap;
}
.fchip {
  font-size: var(--t-sm); color: var(--text-soft);
  padding: var(--s1) var(--s3); border-radius: 20px;
  border: 1px solid var(--border-firm); background: var(--surface);
}
.fchip:hover { border-color: var(--text-muted); }
.fchip[aria-pressed="true"] {
  background: var(--accent-weak); border-color: var(--accent);
  color: var(--accent); font-weight: 500;
}
.fsel {
  font-size: var(--t-sm); color: var(--text-soft);
  padding: var(--s1) var(--s2); border-radius: 20px;
  border: 1px solid var(--border-firm); background: var(--surface);
  height: 26px;
}
.fsel.active { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.fcount { margin-left: auto; font-size: var(--t-sm); color: var(--text-muted); }

.picker-list { overflow-y: auto; flex: 1 1 auto; }

.pick {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
}
.pick:last-child { border-bottom: none; }
.pick:hover, .pick.cursor { background: var(--accent-weak); }
.pick-num { width: 46px; flex: 0 0 46px; font-weight: 600; }
.pick-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-cust {
  display: inline-flex; align-items: center; gap: var(--s2);
  width: 128px; flex: 0 0 128px; font-size: var(--t-sm); color: var(--text-soft);
  white-space: nowrap; overflow: hidden;
}
.pick-cust span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pick-status {
  font-size: var(--t-xs); color: var(--text-soft);
  border: 1px solid var(--border-firm); border-radius: 20px;
  padding: 1px var(--s2); white-space: nowrap;
  width: 118px; flex: 0 0 118px; text-align: center;
}
.pick-status.closed { color: var(--text-muted); }
.pick-age { font-size: var(--t-sm); color: var(--text-muted); width: 66px; flex: 0 0 66px; text-align: right; }
.pick mark { background: var(--accent-weak); color: var(--accent); font-weight: 600; border-radius: 2px; }

.pick-empty { padding: var(--s6) var(--s4); text-align: center; color: var(--text-muted); font-size: var(--t-sm); }

.picker-foot {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-top: 1px solid var(--border);
  background: var(--surface-alt); font-size: var(--t-sm); color: var(--text-muted);
  flex: 0 0 auto;
}
.picker-foot .grow { flex: 1; }
.noticket { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.noticket:hover { color: var(--accent); }

@media (max-width: 720px) {
  .pick-status, .pick-age { display: none; }
  .pick-cust { width: 104px; flex-basis: 104px; }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 56px; }
  .sidebar { padding: var(--s4) var(--s2); align-items: center; }
  .brand span, .nav a span, .whoami div { display: none; }
  .brand { padding-bottom: var(--s5); }
  .nav a { justify-content: center; }
  .main { padding: var(--s4) var(--s4) var(--s6); }
}
@media (max-width: 900px) { .row-span { display: none; } }
@media (max-width: 760px) { .row-cust { display: none; } }
@media (max-width: 660px) {
  .timerbar-top { flex-wrap: wrap; }
  .ticketpick { padding-right: 0; }
  .subject { flex-basis: auto; height: 52px; }
  .timerbar-top > .divider-v { display: none; }
  .timer-meta { flex-basis: 100%; border-top: 1px solid var(--border); padding: var(--s2) var(--s2) var(--s2) var(--s4); }
  .elapsed { font-size: var(--t-xl); min-width: 0; }
  .week { flex-wrap: wrap; gap: var(--s4); }
  .bars { order: 2; flex-basis: 100%; }
  .week-goal { display: none; }
  .row-sync { width: auto; flex: 0 0 auto; }
  .row-sync .synctime { display: none; }
  .row-actions { width: 58px; flex-basis: 58px; }
}
