/* Master Marketing Team · Master Motors y Master Car Rental · design system
   Palette: Prussian Blue #1A3760 (identity, navigation, selection), Portland Orange #FF623D (actions, activity),
   Cultured #F2F2F2 (ground). Type: Geist. Signature: the slanted work-order tag, taken from the MM isotype.
   Orange never carries small white text: actions on orange use ink (#101828, 5.9:1). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Official palette */
  --prussian: #1A3760;
  --orange: #FF623D;
  --cultured: #F2F2F2;
  /* Derived from it */
  --prussian-hover: #142C4D;
  --prussian-press: #0F2340;
  --orange-hover: #F2532D;
  --orange-press: #E54A25;
  --orange-ink: #B8361A;
  --orange-tint: #FFF0EB;
  --on-orange: #101828;
  --sel-bg: #E8EDF4;
  --sel-fg: #1A3760;
  --sel-line: rgba(26, 55, 96, .45);
  --ot-bg: #E8EDF4;
  --ot-fg: #1A3760;

  /* Surfaces and text */
  --bg: #F2F2F2;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --surface-3: #EEF0F3;
  --lane: rgba(16, 24, 40, .035);
  --lane-over: rgba(26, 55, 96, .08);
  --hover: rgba(16, 24, 40, .05);
  --chip-bg: #F2F4F7;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-3b: #5B6679; /* secondary text placed straight on Cultured: #667085 there is 4.4:1 */
  --line: #E4E7EC;
  --line-2: #D0D5DD;
  --line-3: #B4BCC8;
  --line-soft: #EEF0F3;
  --card-bd: #E4E7EC;
  --scrim: rgba(16, 24, 40, .45);
  --toast-bg: #101828;
  --scroll: rgba(16, 24, 40, .18);

  /* Navigation shell */
  --side-bg: #1A3760;
  --side-fg: #C9D3E1;
  --side-fg-3: #A9BAD1;
  --side-hover: rgba(255, 255, 255, .07);
  --side-active: rgba(255, 255, 255, .12);
  --side-line: rgba(255, 255, 255, .1);
  --side-raise: rgba(255, 255, 255, .05);

  /* Meaning */
  --danger: #D92D20;
  --danger-ink: #B42318;
  --danger-tint: #FEF3F2;
  --danger-line: #FECDCA;
  --warn-ink: #B54708;
  --warn-tint: #FFFAEB;
  --warn-line: #FEDF89;
  --ok: #17B26A;
  --ok-ink: #067647;
  --ok-tint: #ECFDF3;
  --info-ink: #175CD3;
  --info-tint: #EFF8FF;
  --alta: #DC6803;

  /* Status: glyph color, text color, tint */
  --st-nuevo: #667085; --st-nuevo-ink: #475467; --st-nuevo-tint: #F2F4F7;
  --st-proceso: #F79009; --st-proceso-ink: #B54708; --st-proceso-tint: #FFFAEB;
  --st-espera: #2E90FA; --st-espera-ink: #175CD3; --st-espera-tint: #EFF8FF;
  --st-revision: #7A5AF8; --st-revision-ink: #5925DC; --st-revision-tint: #F4F3FF;
  --st-listo: #17B26A; --st-listo-ink: #067647; --st-listo-tint: #ECFDF3;

  /* Focus */
  --focus: #1A3760;
  --focus-ring: rgba(26, 55, 96, .18);
  --focus-on-dark: #FFB49F;

  /* Shape, depth, space, motion */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-md: 0 6px 16px -4px rgba(16, 24, 40, .10), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --sh-lg: 0 16px 40px -12px rgba(16, 24, 40, .24), 0 4px 10px -4px rgba(16, 24, 40, .07);
  --sh-drag: 0 18px 32px -10px rgba(16, 24, 40, .30), 0 4px 10px -4px rgba(16, 24, 40, .12);
  --h-sm: 30px; --h-md: 36px; --h-lg: 44px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --d1: 120ms; --d2: 180ms; --d3: 220ms;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --prussian-hover: #2A4A7A;
    --prussian-press: #335889;
    --orange-ink: #FF8E72;
    --orange-tint: #3A1F18;
    --sel-bg: #1B2E4C;
    --sel-fg: #C9DAF5;
    --sel-line: rgba(143, 179, 232, .55);
    --ot-bg: #1B2E4C;
    --ot-fg: #BCD0F0;
    --bg: #0B1322;
    --surface: #121C2E;
    --surface-2: #172236;
    --surface-3: #1E2B42;
    --lane: rgba(255, 255, 255, .025);
    --lane-over: rgba(143, 179, 232, .10);
    --hover: rgba(255, 255, 255, .06);
    --chip-bg: rgba(255, 255, 255, .06);
    --ink: #E8EDF5;
    --ink-2: #C2CCDB;
    --ink-3: #8E9BB2;
    --ink-3b: #8E9BB2;
    --line: #233149;
    --line-2: #2F3F5C;
    --line-3: #42557A;
    --line-soft: #1B2639;
    --card-bd: #24324A;
    --scrim: rgba(0, 0, 0, .6);
    --toast-bg: #E8EDF5;
    --scroll: rgba(255, 255, 255, .18);
    --side-bg: #0F1D33;
    --side-fg: #B7C3D6;
    --side-fg-3: #8FA0BA;
    --danger: #F97066;
    --danger-ink: #FDA29B;
    --danger-tint: #3A1715;
    --danger-line: #5A2420;
    --warn-ink: #FEC84B;
    --warn-tint: #33260D;
    --warn-line: #4D3A12;
    --ok: #47CD89;
    --ok-ink: #75E0A7;
    --ok-tint: #0F2E20;
    --info-ink: #84CAFF;
    --info-tint: #102A45;
    --alta: #FDB022;
    --st-nuevo: #98A2B3; --st-nuevo-ink: #C2CCDB; --st-nuevo-tint: rgba(255, 255, 255, .06);
    --st-proceso: #FDB022; --st-proceso-ink: #FEC84B; --st-proceso-tint: #33260D;
    --st-espera: #53B1FD; --st-espera-ink: #84CAFF; --st-espera-tint: #102A45;
    --st-revision: #9B8AFB; --st-revision-ink: #BDB4FE; --st-revision-tint: #231C45;
    --st-listo: #47CD89; --st-listo-ink: #75E0A7; --st-listo-tint: #0F2E20;
    --focus: #8FB3E8;
    --focus-ring: rgba(143, 179, 232, .30);
    --sh-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --sh-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --sh-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
    --sh-lg: 0 16px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
    --sh-drag: 0 18px 32px -10px rgba(0, 0, 0, .7);
    --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E9BB2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--scroll) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
}
html.locked, html.locked body { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--sel-fg); text-underline-offset: 2px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 98, 61, .24); }
input, textarea { caret-color: var(--orange); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-3); }
.spacer { flex: 1; }
.ic { flex: none; }
kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-3); font: 500 11px/1 var(--font);
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2); --b-hover: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-md); padding: 0 14px;
  border: 1px solid var(--b-bd); border-radius: var(--r-md); background: var(--b-bg); color: var(--b-fg);
  font: 550 14px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  box-shadow: var(--sh-xs);
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease), box-shadow var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.btn:hover { background: var(--b-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { cursor: progress; opacity: .75; }
.btn-primary { --b-bg: var(--orange); --b-fg: var(--on-orange); --b-bd: transparent; --b-hover: var(--orange-hover); }
.btn-primary:active { background: var(--orange-press); }
.btn-secondary { --b-bg: var(--surface); }
.btn-navy { --b-bg: var(--prussian); --b-fg: #FFFFFF; --b-bd: var(--prussian); --b-hover: var(--prussian-hover); }
.btn-navy:active { background: var(--prussian-press); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--ink-2); --b-hover: var(--hover); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { --b-fg: var(--danger-ink); }
/* Same red in both themes: white text needs the deep red (4.8:1). */
.btn-danger-solid { --b-bg: #D92D20; --b-fg: #FFFFFF; --b-bd: #D92D20; --b-hover: #B42318; }
.btn-sm { height: var(--h-sm); padding: 0 10px; gap: 6px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: var(--h-lg); padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  appearance: none; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-sm { width: 28px; height: 28px; border-radius: var(--r-sm); }
.linkbtn {
  appearance: none; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0;
  color: var(--sel-fg); font-weight: 550; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color var(--d1) var(--ease);
}
.linkbtn:hover { text-decoration-color: currentColor; }

/* ---------- form controls ---------- */
input[type="text"], input[type="search"], input[type="date"], input[type="tel"], input[type="email"], input[type="password"], select, textarea {
  height: var(--h-md); min-width: 0; max-width: 100%; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font: 400 14px/1.4 var(--font); box-shadow: var(--sh-xs);
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
textarea { height: auto; width: 100%; padding: 9px 12px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 34px; cursor: pointer; background: var(--surface) var(--select-chev) no-repeat right 10px center / 16px; }
input[type="date"] { cursor: pointer; }
input:hover:not(:focus):not(:disabled), select:hover:not(:focus):not(:disabled), textarea:hover:not(:focus):not(:disabled) { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .14); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
::placeholder { color: var(--ink-3); opacity: 1; }
input[type="checkbox"] {
  appearance: none; display: inline-grid; place-content: center; width: 18px; height: 18px; margin: 0; flex: none;
  border: 1.5px solid var(--line-3); border-radius: 5px; background: var(--surface); cursor: pointer;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
input[type="checkbox"]::before {
  content: ""; width: 10px; height: 10px; background: #FFFFFF; transform: scale(0); transition: transform var(--d1) var(--ease);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
input[type="checkbox"]:checked { background: var(--prussian); border-color: var(--prussian); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.35; cursor: pointer; }
.check input { margin-top: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > input, .field > select, .field > textarea { width: 100%; }
.lbl { font: 500 13px/1.3 var(--font); color: var(--ink-2); }
.hint { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.err { font-size: 12.5px; font-weight: 500; color: var(--danger-ink); }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-btns.end { justify-content: flex-end; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; }

/* ---------- chips, badges, tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); color: var(--ink-2);
  font: 500 13px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.chip .ic { color: var(--ink-3); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--line-3); color: var(--ink); background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--prussian); border-color: var(--prussian); color: #FFFFFF; }
.chip[aria-pressed="true"] .ic { color: inherit; }
.chip-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--ink-2); font: 500 12px/1 var(--font); white-space: nowrap;
}
.badge.ok { background: var(--ok-tint); color: var(--ok-ink); }
.badge.warn { background: var(--warn-tint); color: var(--warn-ink); }

/* The work-order number: a slanted tag, like the stripes of the MM isotype. */
.ot {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 1px; flex: none;
  background: var(--ot-bg); color: var(--ot-fg); font: 600 11.5px/1 var(--font); letter-spacing: .02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; transform: skewX(-12deg);
}
.ot > span { transform: skewX(12deg); }
.ot-lg { height: 22px; padding: 0 9px; font-size: 12.5px; background: var(--prussian); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .ot-lg { background: var(--sel-bg); color: var(--sel-fg); box-shadow: inset 0 0 0 1px var(--sel-line); } }
.biz { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ink-2); font: 600 11.5px/1 var(--font); letter-spacing: .02em; white-space: nowrap; }
.bmark { width: auto; height: 12px; flex: none; }
.ws-tile { width: 28px; height: 28px; border-radius: 7px; background: #FFFFFF; display: grid; place-items: center; flex: none; position: relative; }
.ws-tile .bmark { height: 15px; }
.ws-tile.both .bmark { position: absolute; height: 11px; }
.ws-tile.both .bmark:first-child { left: 3px; top: 4px; }
.ws-tile.both .bmark:last-child { right: 3px; bottom: 4px; }

/* Status: shape plus color, never color alone. */
.stg { flex: none; color: var(--st-c, var(--st-nuevo)); }
.stg-tick { stroke: var(--surface); }
.st-nuevo { --st-c: var(--st-nuevo); --st-ink: var(--st-nuevo-ink); --st-tint: var(--st-nuevo-tint); }
.st-proceso { --st-c: var(--st-proceso); --st-ink: var(--st-proceso-ink); --st-tint: var(--st-proceso-tint); }
.st-espera { --st-c: var(--st-espera); --st-ink: var(--st-espera-ink); --st-tint: var(--st-espera-tint); }
.st-revision { --st-c: var(--st-revision); --st-ink: var(--st-revision-ink); --st-tint: var(--st-revision-tint); }
.st-listo { --st-c: var(--st-listo); --st-ink: var(--st-listo-ink); --st-tint: var(--st-listo-tint); }
.st-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: var(--r-full);
  background: var(--st-tint); color: var(--st-ink); font: 500 12px/1 var(--font); white-space: nowrap; vertical-align: middle;
}
.pg { flex: none; }
.pg-urgente { color: var(--danger); }
.pg-mark { stroke: #FFFFFF; }
.pg-alta { color: var(--alta); }
.pg-normal { color: var(--ink-3); }
.av {
  --s: 24px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--av, #4A5E6B); color: #FFFFFF; font: 600 calc(var(--s) * .4)/1 var(--font); letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.av-xs { --s: 18px; }
.av-sm { --s: 22px; }
.av-md { --s: 28px; }
.av-lg { --s: 44px; }
.prop {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; max-width: 100%; padding: 0 7px; border-radius: var(--r-sm);
  background: var(--chip-bg); color: var(--ink-2); font: 500 12px/1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.prop .ic { color: var(--ink-3); }
.prop.unit { min-width: 0; }
.prop.unit > span { overflow: hidden; text-overflow: ellipsis; }
.prop.due.late, .prop.prio-urgente { background: var(--danger-tint); color: var(--danger-ink); }
.prop.due.today { background: var(--warn-tint); color: var(--warn-ink); }
.prop.due.done { background: var(--ok-tint); color: var(--ok-ink); }
.prop.prio-alta { color: var(--ink-2); }
.prop.due.late .ic, .prop.due.today .ic, .prop.due.done .ic { color: inherit; }
.unseen { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; display: inline-block; }

/* ---------- menus ---------- */
.menu {
  position: fixed; z-index: 100; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); max-height: min(440px, calc(100vh - 16px));
  overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--sh-lg); opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease); overscroll-behavior: contain;
}
.menu.up { transform-origin: bottom left; transform: translateY(4px) scale(.98); }
.menu.in { opacity: 1; transform: none; }
.menu-title {
  padding: 8px 10px 6px; color: var(--ink-3); font: 500 12px/1.3 var(--font);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
.menu-head { padding: 8px 10px 4px; color: var(--ink-3); font: 500 12px/1 var(--font); }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); text-align: left; cursor: pointer;
  font: 450 13.5px/1.25 var(--font);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-item > .ic { color: var(--ink-3); }
.menu-item.danger { color: var(--danger-ink); }
.menu-item.danger > .ic { color: inherit; }
.menu-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-label small { margin-top: 2px; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-check { width: 16px; height: 16px; flex: none; color: var(--sel-fg); }
.menu-item kbd { margin-left: auto; }
.menu-item .ws-tile { width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.menu-item .ws-tile .bmark { height: 13px; }

/* Bottom sheet on phones */
.asheet { position: fixed; inset: 0; z-index: 95; }
.asheet-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 200ms var(--ease); }
.asheet.in .asheet-scrim { opacity: 1; }
.asheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; overscroll-behavior: contain;
  padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--surface);
  box-shadow: var(--sh-lg); transform: translateY(100%); transition: transform var(--d3) var(--ease);
}
.asheet.in .asheet-panel { transform: none; }
.asheet-grip { width: 36px; height: 4px; margin: 4px auto 10px; border-radius: 2px; background: var(--line-3); }
.asheet-title { padding: 0 12px 2px; font: 600 15px/1.3 var(--font); }
.asheet-sub { padding: 0 12px 8px; color: var(--ink-3); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.asheet-opts { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.asheet .menu-item { min-height: 48px; gap: 12px; padding: 10px 12px; font-size: 16px; border-radius: 10px; }
.asheet .menu-head { padding: 12px 12px 4px; font-size: 12.5px; }
.asheet-cancel {
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 12px; background: var(--surface-3); color: var(--ink);
  font: 600 16px/1 var(--font); cursor: pointer;
}

/* ---------- tooltips (pointer devices) ---------- */
@media (hover: hover) and (pointer: fine) {
  [data-tip] { position: relative; }
  [data-tip]::after {
    content: attr(data-tip); position: absolute; z-index: 50; left: 50%; top: calc(100% + 6px); padding: 5px 8px; border-radius: 6px;
    background: var(--toast-bg); color: var(--surface); font: 500 12px/1.2 var(--font); white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translate(-50%, -2px); transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
  }
  [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 450ms; }
}

/* ---------- feedback ---------- */
.toast {
  position: fixed; z-index: 110; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(540px, calc(100vw - 32px)); padding: 10px 10px 10px 14px; border-radius: 10px;
  background: var(--toast-bg); color: var(--surface); font: 500 13.5px/1.35 var(--font); box-shadow: var(--sh-lg);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast-msg { padding: 3px 0; }
.toast-ok > .ic { color: #47CD89; }
.toast-error > .ic { color: #FDA29B; }
.toast-act {
  margin-left: 4px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; flex: none;
  background: rgba(255, 255, 255, .14); color: inherit; font: 600 13px/1 var(--font); cursor: pointer;
}
.toast-act:hover { background: rgba(255, 255, 255, .22); }
@media (prefers-color-scheme: dark) {
  .toast-ok > .ic { color: #067647; }
  .toast-error > .ic { color: #B42318; }
  .toast-act { background: rgba(16, 24, 40, .1); }
  .toast-act:hover { background: rgba(16, 24, 40, .18); }
}
.banner {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--warn-line); border-radius: var(--r-md);
  background: var(--warn-tint); color: var(--warn-ink); font-size: 13.5px; line-height: 1.45;
}
.banner .ic { margin-top: 1px; }
.banner.is-update { align-items: center; border-color: var(--sel-line); background: var(--sel-bg); color: var(--sel-fg); }
.banner.is-update .ic { margin-top: 0; }
.banner.is-update p { flex: 1; min-width: 0; }
.skel {
  height: 64px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel-wrap { display: flex; flex-direction: column; gap: 10px; }
.skel-line { display: block; width: 90px; height: 12px; border-radius: 6px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--ink-3b); }
.empty-ic {
  width: 44px; height: 44px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink-3); box-shadow: var(--sh-xs);
}
.empty h2 { color: var(--ink); font: 600 15px/1.3 var(--font); }
.empty p { max-width: 42ch; font-size: 13.5px; line-height: 1.5; }
.empty .btn { margin-top: 6px; }

/* ---------- business logos ---------- */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* ---------- public pages (/pedir and /e/...) ---------- */
.pub-band { background: var(--side-bg); color: #FFFFFF; padding: calc(28px + env(safe-area-inset-top)) 0 64px; }
.pub-band-in, .pub-main { width: min(680px, 100%); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.pub-band-in { display: flex; flex-direction: column; gap: 24px; }
.pub-logos { display: flex; align-items: center; gap: 18px; }
.pub-logos img { height: 26px; width: auto; }
.pub-logos img + .sep + img { height: 22px; }
.pub-logos .sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .25); }
.pub-band h1 { font: 600 28px/1.15 var(--font); letter-spacing: -.025em; }
.pub-band p { margin-top: 8px; max-width: 52ch; color: var(--side-fg); font-size: 15px; line-height: 1.5; }
.pub-main { margin-top: -40px; padding-bottom: 32px; }
.pub-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-md); }
.pub-foot { padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); color: var(--ink-3b); font-size: 12.5px; text-align: center; }
.pub-foot a { color: var(--ink-2); }
.pub-recent { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.pub-recent h2 { font: 600 14px/1.2 var(--font); }
.pub-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pub-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.pub-item:first-child { border-top: 0; }
.pub-item:hover { background: var(--surface-2); }
.pub-item-top { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
.pub-item b { font-weight: 500; }
.pub-done { align-items: flex-start; }
.big-check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok-ink); }
.pub-done h2, .pub-card > h2 { font: 600 20px/1.25 var(--font); letter-spacing: -.015em; }
.pub-done > p { color: var(--ink-2); line-height: 1.5; }
.pub-done .copy-row { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.biz-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-opt {
  display: grid; place-items: center; height: 56px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); cursor: pointer; box-shadow: var(--sh-xs);
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.biz-opt img { max-height: 26px; width: auto; }
.biz-opt:hover:not([aria-pressed="true"]) { border-color: var(--line-3); }
.biz-opt[aria-pressed="true"] { border-color: var(--prussian); background: var(--sel-bg); box-shadow: 0 0 0 1px var(--prussian); }
@media (prefers-color-scheme: dark) { .biz-opt[aria-pressed="true"] { border-color: var(--sel-line); box-shadow: 0 0 0 1px var(--sel-line); } }
.track-top { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.track-title { font: 600 22px/1.25 var(--font); letter-spacing: -.015em; }
.track-status { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); }
.track-status p { color: var(--ink-2); line-height: 1.5; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.done::before { background: var(--prussian); }
.steps li.now::before { background: var(--orange); }
.steps li.done, .steps li.now { color: var(--ink); }
@media (prefers-color-scheme: dark) { .steps li.done::before { background: var(--focus); } }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.kv div { display: flex; flex-direction: column; gap: 3px; }
.kv span { color: var(--ink-3); font-size: 12.5px; }
.kv b { font-weight: 550; }
.pub-tl h3 { font: 600 14px/1.2 var(--font); margin-bottom: 10px; }

/* Activity list, shared by the request detail and the public page */
.tl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tl-event { display: flex; align-items: center; gap: 10px; padding-left: 5px; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.tl-dot { width: 16px; display: grid; place-items: center; flex: none; }
.tl-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); }
.tl-ev-txt { min-width: 0; }
.tl-ev-txt b { color: var(--ink-2); font-weight: 550; }
.tl-event time { margin-left: auto; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-note { display: flex; align-items: flex-start; gap: 10px; }
.tl-body { flex: 1; min-width: 0; padding: 8px 12px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; }
.tl-head b { color: var(--ink); font-weight: 600; }
.tl-head time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-pub { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--info-tint); color: var(--info-ink); font: 500 12px/1 var(--font); }
.tl-text { margin-top: 4px; color: var(--ink); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  input[type="text"], input[type="search"], input[type="date"], input[type="tel"], input[type="email"], input[type="password"], select, textarea { font-size: 16px; }
  input[type="text"], input[type="search"], input[type="date"], input[type="tel"], input[type="email"], input[type="password"], select { height: var(--h-lg); }
  .btn { height: 40px; }
  .btn-sm { height: 34px; }
  .btn-lg { height: 48px; }
  .chip { height: 36px; }
  .row2 { grid-template-columns: 1fr; }
  .pub-band { padding-bottom: 56px; }
  .pub-band h1 { font-size: 24px; }
  .pub-card { padding: 18px; border-radius: var(--r-lg); }
  .kv { grid-template-columns: 1fr 1fr; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) {
  .icon-btn { width: 40px; height: 40px; }
  .icon-sm { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

@media (hover: none) {
  .btn:hover { background: var(--b-bg); }
  .chip:hover:not([aria-pressed="true"]) { border-color: var(--line-2); color: var(--ink-2); background: var(--surface); }
  .icon-btn:hover:not([aria-expanded="true"]) { background: transparent; }
  .menu-item:hover:not(:focus-visible) { background: none; }
}
