/* Menus and dropdowns: one look across the app (with static/js/menus.js).
   The family look is the Team page's menu: white or ink card, 10px corners,
   one soft shadow, 13px Geist, rows that fill on hover, line icons. */

/* ── Dropdowns, closed ───────────────────────────────────────────────────
   The browser's own arrow goes; ours sits in the same place on every page
   and every computer. Colours and sizes stay with each page. */
html select:not([multiple]):not([size]),
html select[size="1"] {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.75 6 7.75l3-3' fill='none' stroke='%238a919b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 12px 12px !important;
  padding-right: 28px !important;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: inherit;
}
html select:disabled { cursor: default; opacity: .55; }
html select.rd-sel-open { box-shadow: 0 0 0 2px var(--blue) !important; }
html select::-ms-expand { display: none; }
/* Phones keep their own picker; its list inherits the page's colours. */
html select option { background: var(--surface); color: var(--text); }

/* ── Dropdowns, open ──────────────────────────────────────────────────── */
.rd-sel-pop {
  position: fixed; z-index: 2000; box-sizing: border-box;
  max-width: min(360px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 5px; border-radius: 10px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 0 0 1px var(--border-strong);
  font: 500 13px/1.25 var(--font-sans, system-ui, sans-serif); color: var(--text);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 20%, transparent) transparent;
  opacity: 0; transform: scale(.98) translateY(-3px);
  transition: opacity .12s ease, transform .16s cubic-bezier(.2, .9, .3, 1.2);
  -webkit-font-smoothing: antialiased;
}
.rd-sel-pop.is-up { transform: scale(.98) translateY(3px); }
.rd-sel-pop.is-in { opacity: 1; transform: none; }
.rd-sel-pop.is-out { opacity: 0; transition: opacity .1s ease; pointer-events: none; }
.rd-sel-opt {
  display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 12px 6px 6px;
  border-radius: 6px; cursor: pointer; white-space: nowrap; user-select: none;
}
.rd-sel-opt.is-act { background: color-mix(in srgb, var(--text) 7%, transparent); }
.rd-sel-opt.is-on { font-weight: 650; }
.rd-sel-opt.is-dis { color: var(--muted); opacity: .55; cursor: default; }
.rd-sel-txt { overflow: hidden; text-overflow: ellipsis; }
.rd-sel-tick { width: 16px; height: 16px; flex: none; display: inline-flex; color: var(--brand, var(--green)); }
.rd-sel-tick svg, .rd-sel-pop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-sel-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.rd-sel-grp { padding: 9px 12px 4px 29px; font: 600 11.5px/1.2 var(--font-sans, system-ui, sans-serif); color: var(--muted); }
.rd-sel-grp:first-child { padding-top: 5px; }
.rd-sel-sep { height: 1px; margin: 4px 6px; background: var(--border); }
html.rd-light-mode .rd-sel-pop { box-shadow: 0 18px 44px rgba(17, 22, 29, .14), 0 0 0 1px var(--border-strong); }
@media (prefers-reduced-motion: reduce) {
  .rd-sel-pop, .rd-sel-pop.is-up { transform: none; transition: opacity .1s; }
}

/* ── The rota's right-click menu (#chip-ctx) ──────────────────────────────
   :not(#rd) lifts these above the older rules inside rota.html. */
html:not(#rd) #chip-ctx {
  min-width: 220px; max-width: 320px; padding: 5px; border: 0; border-radius: 10px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 1px var(--border-strong);
  font-family: var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased;
}
html.rd-light-mode:not(#rd) #chip-ctx { box-shadow: 0 18px 44px rgba(17, 22, 29, .14), 0 0 0 1px var(--border-strong); }
html:not(#rd) #chip-ctx.rd-in { animation: rd-menu-in .16s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes rd-menu-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

html:not(#rd) #chip-ctx .ctx-hdr {
  display: block; max-width: none; padding: 8px 10px 7px;
  font: 500 12px/1.35 var(--font-sans); letter-spacing: 0; color: var(--muted);
  white-space: normal;
}
html:not(#rd) #chip-ctx .ctx-hdr[style*="flex"] { display: flex !important; }
html:not(#rd) #chip-ctx .ctx-sep { height: 1px; margin: 4px 6px; background: var(--border); }
html:not(#rd) #chip-ctx .ctx-sep + .ctx-sep,
html:not(#rd) #chip-ctx .ctx-sep:last-child { display: none; }
html:not(#rd) #chip-ctx .ctx-item {
  gap: 10px; min-height: 32px; padding: 7px 10px; border-radius: 6px;
  font: 500 13px/1.25 var(--font-sans); color: var(--text); outline: 0;
  transition: background-color .1s;
}
html:not(#rd) #chip-ctx .ctx-item:hover,
html:not(#rd) #chip-ctx .ctx-item:focus,
html:not(#rd) #chip-ctx .ctx-staff-item:not(.ctx-staff-current):hover,
html:not(#rd) #chip-ctx .ctx-staff-item:focus {
  background: color-mix(in srgb, var(--text) 7%, transparent); outline: 0;
}
html:not(#rd) #chip-ctx .ctx-item.ctx-danger { color: var(--red); }
html:not(#rd) #chip-ctx .ctx-item.ctx-danger:hover,
html:not(#rd) #chip-ctx .ctx-item.ctx-danger:focus { background: color-mix(in srgb, var(--red) 10%, transparent); }
html:not(#rd) #chip-ctx .ctx-item.ctx-amber { color: var(--text); }
html:not(#rd) #chip-ctx .ctx-item.ctx-amber .ctx-ico { color: var(--amber); opacity: 1; }
html:not(#rd) #chip-ctx .ctx-ico {
  width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; opacity: .7;
}
html:not(#rd) #chip-ctx .ctx-item.ctx-danger .ctx-ico { opacity: 1; }
html:not(#rd) #chip-ctx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Reassign: a list that opens inside the menu. */
html:not(#rd) #chip-ctx .ctx-reassign-arrow { width: 14px; height: 14px; color: var(--muted); display: inline-flex; }
html:not(#rd) #chip-ctx .ctx-reassign-arrow svg { width: 14px; height: 14px; }
html:not(#rd) #chip-ctx .ctx-reassign-panel.open { max-height: 220px; }
html:not(#rd) #chip-ctx .ctx-reassign-scroll { max-height: 220px; margin: 2px 0 2px 16px; padding: 2px 0; scrollbar-width: thin; }
html:not(#rd) #chip-ctx .ctx-staff-item { gap: 9px; min-height: 34px; padding: 6px 10px; border-radius: 6px; outline: 0; }
html:not(#rd) #chip-ctx .ctx-staff-dot { width: 8px; height: 8px; }
html:not(#rd) #chip-ctx .ctx-staff-name { font: 550 13px/1.2 var(--font-sans); color: var(--text); }
html:not(#rd) #chip-ctx .ctx-staff-role { font: 500 11.5px/1.2 var(--font-sans); color: var(--muted); }
html:not(#rd) #chip-ctx .ctx-staff-current { opacity: .45; }

/* Phones: the menu is a sheet along the bottom, with finger-sized rows. */
@media (max-width: 600px) {
  html:not(#rd) #chip-ctx {
    left: 8px !important; right: 8px !important; top: auto !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    min-width: 0; max-width: none; max-height: 70vh; overflow-y: auto;
    padding: 6px; border-radius: 16px; transform-origin: center bottom !important;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, .35), 0 0 0 1px var(--border-strong);
  }
  html:not(#rd) #chip-ctx.rd-in { animation: rd-sheet-in .26s cubic-bezier(.2, .9, .3, 1.05) both; }
  html:not(#rd) #chip-ctx .ctx-hdr { padding: 10px 12px 8px; font-size: 13px; text-align: center; }
  html:not(#rd) #chip-ctx .ctx-hdr[style*="flex"] { justify-content: center; }
  html:not(#rd) #chip-ctx .ctx-item { min-height: 46px; padding: 10px 12px; font-size: 15px; border-radius: 10px; }
  html:not(#rd) #chip-ctx .ctx-staff-item { min-height: 46px; }
  html:not(#rd) #chip-ctx .ctx-staff-name { font-size: 15px; }
}
@keyframes rd-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html:not(#rd) #chip-ctx.rd-in { animation: none; }
}

/* ── Windows on the rota (.mbg > .modal) ─────────────────────────────────
   Same family as the Team page's sheets: 14px corners, a soft shadow,
   sentence-case headings in Geist, labels quiet above their fields, fields
   36px tall, buttons you can read. #m-edit-staff keeps its own design. */
html:not(#rd) .mbg { background: rgba(10, 13, 18, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html.rd-light-mode:not(#rd) .mbg { background: rgba(17, 22, 29, .28); }
html:not(#rd) .mbg .modal {
  border: 0; border-radius: 14px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px var(--border);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
}
html.rd-light-mode:not(#rd) .mbg .modal { box-shadow: 0 30px 80px rgba(17, 22, 29, .16), 0 0 0 1px var(--border); }
html:not(#rd) .mbg .m-hdr { padding: 20px 18px 0 22px; border: 0; gap: 12px; }
html:not(#rd) .mbg .m-title { font: 700 18px/1.25 var(--font-sans); letter-spacing: -.02em; color: var(--text); }
html:not(#rd) .mbg .m-close {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 20px/1 var(--font-sans) !important; color: var(--muted);
  background: transparent; transition: background-color .15s, color .15s;
}
html:not(#rd) .mbg .m-close:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
html:not(#rd) .mbg .m-body { padding: 14px 22px 22px; font-size: 13.5px; line-height: 1.45; }

/* Fields */
html:not(#rd) .mbg .fg { margin-bottom: 14px; }
html:not(#rd) .mbg .fg > label,
html:not(#rd) .mbg .shift-note-box label,
html:not(#rd) .mbg .hre-field label {
  display: block; margin-bottom: 6px;
  font: 500 12.5px/1.3 var(--font-sans) !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--muted) !important;
}
html:not(#rd) .mbg .fg > label span { color: var(--muted2) !important; }
html:not(#rd) .mbg :is(.fg, .hre-field, .shift-note-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select) {
  height: 36px !important; min-height: 36px; padding-left: 11px; padding-top: 0 !important; padding-bottom: 0 !important;
  border: 0 !important; border-radius: 8px !important;
  background-color: var(--bg) !important; box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 550 14px/1 var(--font-sans) !important; color: var(--text) !important;
  font-variant-numeric: tabular-nums; transition: box-shadow .15s;
}
html:not(#rd) .mbg :is(.fg, .hre-field, .shift-note-box) textarea {
  padding: 9px 11px !important; border: 0 !important; border-radius: 8px !important;
  background-color: var(--bg) !important; box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 500 14px/1.45 var(--font-sans) !important; color: var(--text) !important;
}
html:not(#rd) .mbg :is(input, select, textarea):focus { outline: none; box-shadow: 0 0 0 2px var(--blue) !important; }
html:not(#rd) .mbg :is(input, select, textarea)::placeholder { color: var(--muted2); opacity: 1; }
html:not(#rd) .mbg .fhint { font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
html:not(#rd) .mbg input[type=checkbox], html:not(#rd) .mbg input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand, var(--green)); }

/* Buttons */
html:not(#rd) .mbg .modal button { font-size: 12.5px; }
html:not(#rd) .mbg .modal .btn {
  min-height: 36px; padding: 0 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 13.5px/1 var(--font-sans) !important; letter-spacing: -.005em; text-transform: none;
}
html:not(#rd) .mbg .modal .btn-full { display: flex; width: 100%; min-height: 40px; }
html:not(#rd) .mbg .modal .btn-secondary { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
html:not(#rd) .mbg .modal .btn-secondary:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface)); }

/* Section headings and table heads: sentence case in Geist, not shouted mono. */
html:not(#rd) .mbg :is(.sf-section-h, .sf-add-slot-h, .sf-stag-times-label, .tkp-sub, .tkp-day-sep, .cv-sec-h, .cv-stat span,
  .ocm-tile span, .ocm-h, .tool-list-h, .tool-kicker, .hre-sidebar-h, .hre-form-h-label, .hre-recs-h, .ct-note-k,
  .rev-row-hdr, .rev-lbl, .es-section-h, .elig-sect-hdr, .abs-req-head) {
  font-family: var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 12.5px !important; font-weight: 600 !important; color: var(--muted) !important;
}
html:not(#rd) .mbg :is(.sf-day-th, .cv-table thead th, .ocm-tbl th, .abs-grid th, .scale-diff-tbl th, .pub-hist-tbl th) {
  font-family: var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 12px !important; font-weight: 600 !important; color: var(--muted) !important;
}
html:not(#rd) .mbg :is(.cv-beta, .tool-pill, .hre-card-badge, .ct-badge) {
  font-family: var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 11px !important; font-weight: 600 !important; border-radius: 999px !important;
}

/* Phones: windows are sheets from the bottom (solui2 handles the motion). */
@media (max-width: 600px) {
  html:not(#rd) .mbg .modal { border-radius: 16px 16px 0 0; }
  html:not(#rd) .mbg .m-hdr { padding: 16px 12px 0 18px; }
  html:not(#rd) .mbg .m-body { padding: 12px 18px max(20px, env(safe-area-inset-bottom)); }
  html:not(#rd) .mbg :is(.fg, .hre-field, .shift-note-box) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select) { height: 44px !important; font-size: 16px !important; }
  html:not(#rd) .mbg .modal .btn { min-height: 44px; font-size: 15px !important; }
}
/* Invite rows: email and Staff/Manager side by side, same field look. */
html:not(#rd) .mbg .it-row { border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); padding: 9px 10px 9px 12px; }
html:not(#rd) .mbg .it-pick :is(input, select) {
  height: 34px !important; border: 0 !important; border-radius: 8px !important;
  background-color: var(--surface3, var(--surface)) !important; box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 550 13.5px/1 var(--font-sans) !important; color: var(--text) !important;
}
html:not(#rd) .mbg .it-pick input { padding: 0 10px !important; }
/* The open-shifts count: Geist figures like the rest of the family. */
html:not(#rd) .sol-open-count { font-family: var(--font-sans) !important; font-variant-numeric: tabular-nums; }

/* ── The rota's "…" menu (#tb-menu), same family as the right-click menu ── */
html:not(#rd) .tb-menu {
  min-width: 250px; padding: 5px; border: 0; border-radius: 10px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 1px var(--border-strong);
  font-family: var(--font-sans); transform-origin: top right;
}
html.rd-light-mode:not(#rd) .tb-menu { box-shadow: 0 18px 44px rgba(17, 22, 29, .14), 0 0 0 1px var(--border-strong); }
html:not(#rd) .tb-menu.open { animation: rd-menu-in .16s cubic-bezier(.2, .9, .3, 1.15) both; }
html:not(#rd) .tb-menu button {
  justify-content: flex-start; gap: 10px; min-height: 32px; padding: 7px 10px; border-radius: 6px;
  font: 500 13px/1.25 var(--font-sans) !important; color: var(--text); text-align: left;
}
html:not(#rd) .tb-menu button:hover, html:not(#rd) .tb-menu button:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); outline: 0; }
html:not(#rd) .tb-menu button > span:not(.rd-mi) { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
html:not(#rd) .tb-menu .rd-mi { width: 16px; height: 16px; flex: none; display: inline-flex; opacity: .7; }
html:not(#rd) .tb-menu .rd-mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html:not(#rd) .tb-menu small { font: 500 12px/1.2 var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--muted); }
html:not(#rd) .tb-menu .tb-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); }
html:not(#rd) .tb-menu .tb-menu-sep + .tb-menu-sep { display: none; }

/* ── Copy-week menu (#wdup-menu) ── */
html:not(#rd) .wdup-menu {
  min-width: 220px; padding: 5px; border: 0; border-radius: 10px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 1px var(--border-strong);
  font-family: var(--font-sans);
}
html.rd-light-mode:not(#rd) .wdup-menu { box-shadow: 0 18px 44px rgba(17, 22, 29, .14), 0 0 0 1px var(--border-strong); }
html:not(#rd) .wdup-menu.open { animation: rd-menu-in .16s cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: top left; }
html:not(#rd) .wdup-menu .wdup-hdr { padding: 8px 10px 7px; font: 500 12px/1.3 var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--muted); }
html:not(#rd) .wdup-menu .wdup-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text); font: 500 13px/1.25 var(--font-sans) !important; text-align: left; cursor: pointer;
}
html:not(#rd) .wdup-menu .wdup-opt:hover, html:not(#rd) .wdup-menu .wdup-opt:focus-visible { background: color-mix(in srgb, var(--text) 7%, transparent); outline: 0; }
html:not(#rd) .wdup-menu .rd-mi { width: 16px; height: 16px; flex: none; display: inline-flex; opacity: .7; }
html:not(#rd) .wdup-menu .rd-mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html:not(#rd) .wdup-menu .wdup-empty { width: 230px; white-space: normal; padding: 4px 10px 9px; font: 500 12.5px/1.45 var(--font-sans); color: var(--muted); }

/* ── The rota's Ctrl-K palette (#sol-command), like the Team page finder ──
   One rounded card, a borderless search line, rows with the action on the
   left and its group as quiet text on the right. */
html:not(#rd) .sol-command-shade { background: rgba(10, 13, 18, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html.rd-light-mode:not(#rd) .sol-command-shade { background: rgba(17, 22, 29, .28); }
html:not(#rd) .sol-command-panel {
  width: min(580px, calc(100vw - 32px)); border: 0; border-radius: 14px;
  background: var(--surface3, var(--surface));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px var(--border);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
}
html.rd-light-mode:not(#rd) .sol-command-panel { background: var(--surface); box-shadow: 0 30px 80px rgba(17, 22, 29, .16), 0 0 0 1px var(--border); }
html:not(#rd) .sol-command-panel::before { display: none; }
html:not(#rd) .sol-command-head { min-height: 0; padding: 0; border: 0; }
html:not(#rd) .sol-command-head > :is(.sol-command-index, h2, button) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
html:not(#rd) .sol-command-search { height: 56px; padding: 0 18px; gap: 10px; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
html:not(#rd) .sol-command-search input {
  height: 54px; padding: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; font: 500 17px/1 var(--font-sans) !important; color: var(--text) !important;
}
html:not(#rd) .sol-command-list { padding: 6px; }
html:not(#rd) .sol-command-option {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px;
  border: 0; border-radius: 8px; color: var(--text);
}
html:not(#rd) .sol-command-option.active { background: color-mix(in srgb, var(--text) 7%, transparent); border: 0; }
html:not(#rd) .sol-command-option.active::before { display: none; }
html:not(#rd) .sol-command-copy { order: 1; flex: 1; min-width: 0; }
html:not(#rd) .sol-command-copy b { font: 550 14px/1.25 var(--font-sans); color: var(--text); }
html:not(#rd) .sol-command-copy small { font: 500 12.5px/1.3 var(--font-sans); color: var(--muted); }
html:not(#rd) .sol-command-group {
  order: 2; width: auto; flex: none; font: 500 12.5px/1 var(--font-sans) !important;
  letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important;
}
html:not(#rd) .sol-command-option kbd, html:not(#rd) .sol-command-arrow { order: 3; flex: none; }
html:not(#rd) :is(.sol-command-option, .sol-command-foot) kbd {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: color-mix(in srgb, var(--text) 6%, transparent);
  font: 550 11.5px/1 var(--font-sans); color: var(--muted);
}
html:not(#rd) .sol-command-foot { padding: 9px 14px; border-top: 1px solid var(--border); font: 500 12px/1 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
html:not(#rd) .sol-command-empty b { font: 600 14px/1.3 var(--font-sans); }
@media (max-width: 620px) {
  html:not(#rd) .sol-command-head { min-height: 52px; padding: 0 10px 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
  html:not(#rd) .sol-command-head > :is(.sol-command-index, h2, button) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  html:not(#rd) .sol-command-head > .sol-command-index { display: none; }
  html:not(#rd) .sol-command-head h2 { font: 700 17px/1.2 var(--font-sans); letter-spacing: -.02em; }
  html:not(#rd) .sol-command-search { border-top: 0 !important; }
  html:not(#rd) .sol-command-head button { display: inline-flex; align-items: center; height: 32px !important; min-height: 32px; padding: 0 14px !important; line-height: 1 !important; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); font: 550 13px/1 var(--font-sans); color: var(--text); }
}

/* ── Shift hover card (#chip-tip) ── */
html:not(#rd) #chip-tip .ct-card {
  background: var(--surface3, var(--surface)); border: 0; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 1px var(--border-strong);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
}
html.rd-light-mode:not(#rd) #chip-tip .ct-card { box-shadow: 0 18px 44px rgba(17, 22, 29, .14), 0 0 0 1px var(--border-strong); }
html:not(#rd) #chip-tip .ct-name { font: 700 15px/1.2 var(--font-sans); letter-spacing: -.015em; color: var(--text); }
html:not(#rd) #chip-tip .ct-badge { font: 600 11.5px/1.3 var(--font-sans) !important; text-transform: none; letter-spacing: 0; border-radius: 999px; }
html:not(#rd) #chip-tip .ct-row { font: 500 13px/1.4 var(--font-sans); color: var(--muted); gap: 8px; }
html:not(#rd) #chip-tip .ct-val { font: 550 13px/1.4 var(--font-sans); color: var(--text); font-variant-numeric: tabular-nums; }
html:not(#rd) #chip-tip .ct-ico { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; opacity: .75; }
html:not(#rd) #chip-tip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html:not(#rd) #chip-tip .ct-note { background: color-mix(in srgb, var(--amber) 9%, transparent); border: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 28%, transparent); font: 500 12.5px/1.45 var(--font-sans); color: var(--text); }
html:not(#rd) #chip-tip .ct-note-k { font: 650 12px/1.3 var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--amber); }
html:not(#rd) #chip-tip .ct-lock { font: 600 12px/1.2 var(--font-sans); border-radius: 999px; padding: 3px 9px; }
html:not(#rd) #chip-tip .ct-lock svg { width: 12px; height: 12px; }

/* The open-shifts row label without the mono "QUEUE" tag in front. */
html.sol2-mode:not(#rd) .g-os-label::before { content: none; }
html.sol2-mode:not(#rd) .g-os-label { font: 600 12.5px/1.2 var(--font-sans); }
