/* Refit Rigs Ops — visual system modeled on refitrigs.com + brand logo
   Brand: trailer red / black / white · bold industrial commercial rental
*/

:root {
  --rr-red: #e10600;
  --rr-red-dark: #b80500;
  --rr-red-soft: #fff0ef;
  --rr-black: #0a0a0a;
  --rr-ink: #141414;
  --rr-charcoal: #1f1f1f;
  --rr-muted: #5c5c5c;
  --rr-line: #e6e6e6;
  --rr-line-strong: #d0d0d0;
  --rr-bg: #f4f4f5;
  --rr-surface: #ffffff;
  --rr-danger: #c62828;
  --rr-ok: #1b7a3d;
  --rr-ok-soft: #e8f6ee;
  --rr-warn-soft: #fff6e8;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--rr-bg);
  color: var(--rr-ink);
  line-height: 1.45;
}

a { color: var(--rr-red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Ship's Log–style shell: top bar + hideable left drawer ─
   Closed by default. Hamburger always visible above the drawer.
   Drawer never covers the toggle (topbar z-index > drawer). */
.topstack {
  position: sticky;
  top: 0;
  z-index: 50; /* above drawer so menu never traps the user */
}
.topbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  min-height: 52px;
  background: var(--rr-black);
  color: #f0f0f0;
  border-bottom: 3px solid var(--rr-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.nav-toggle {
  background: none;
  border: 0;
  color: #f0f0f0;
  cursor: pointer;
  padding: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle[aria-expanded="true"] { background: rgba(225, 6, 0, 0.25); }
.nav-ico { display: block; width: 22px; height: 22px; }
.nav-ico svg { display: block; width: 100%; height: 100%; }
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
  min-width: 0;
  padding: 0.5rem 0.25rem;
}
.topbar .brand:hover { text-decoration: none; color: #fff; }
.topbar .brand-logo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.topbar .brand-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand .accent { color: var(--rr-red); }
.topbar-ver {
  margin-left: auto;
  font-size: 0.75rem;
  color: #888;
  font-variant-numeric: tabular-nums;
  padding-right: 0.5rem;
}

/* Drawer — closed by default (translateX -100%); only open with .nav-open */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40; /* below topstack (50) so hamburger stays usable */
  width: 250px;
  max-width: 82vw;
  background: #121212;
  color: #e8e8e8;
  padding: calc(52px + env(safe-area-inset-top, 0px)) 0 16px; /* clear sticky topbar */
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-right: 1px solid #2a2a2a;
  visibility: hidden; /* not focusable / not intercepting when closed */
}
body.nav-open .drawer {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 2px 0 22px rgba(0, 0, 0, 0.4);
}
.drawer-head {
  padding: 8px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}
.drawer-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 0.35rem;
}
.drawer-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}
.drawer a {
  color: #c8c8c8;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer a:hover {
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
}
.drawer a.on {
  background: #1a1a1a;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--rr-red);
}
.drawer a.muted {
  color: #888;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
}
.drawer .nav-more {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}
.drawer .nav-more > summary {
  color: #c8c8c8;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.drawer .nav-more > summary::-webkit-details-marker { display: none; }
.drawer .nav-more > summary::after {
  content: "▾";
  margin-left: auto;
  opacity: 0.7;
  font-size: 13px;
}
.drawer .nav-more[open] > summary::after { content: "▴"; }
.drawer .nav-more > summary.on {
  background: #1a1a1a;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--rr-red);
}
.drawer .nav-more > a {
  padding-left: 34px;
  font-size: 14px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35; /* under drawer (40), under topbar (50) */
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Main content — full width; drawer overlays (does not permanently steal layout) */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 3rem;
}
.page-foot {
  text-align: center;
  font-size: 12px;
  margin-top: 2rem;
  color: var(--rr-muted);
}
.muted { color: var(--rr-muted); }

/* Public book header (public_base.html) — keep light top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--rr-surface);
  border-bottom: 3px solid var(--rr-red);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top .brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--rr-ink);
  text-decoration: none;
}
.top .brand-logo { height: 42px; width: auto; display: block; }
.top .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.top .brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top .brand-name .accent { color: var(--rr-red); }
.top .brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-muted);
}
.top .nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.top .nav-link {
  color: var(--rr-charcoal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 0.55rem;
}
.top .nav-link:hover { color: var(--rr-red); }

/* Tools list — single-column assign UI */
.tools-card { padding: 0.5rem 1rem 1rem; }
.tools-list { display: flex; flex-direction: column; }
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--rr-line);
}
.tool-row:first-child { border-top: none; }
.tool-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.tool-name { font-size: 0.98rem; }
.tool-alloc-form {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}
.tool-alloc-form select {
  min-width: 10rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.tool-alloc-form button {
  margin: 0 0 0 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .tool-row { flex-direction: column; align-items: stretch; }
  .tool-alloc-form select { width: 100%; min-width: 0; }
  .top { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: flex-start; }
}

/* ── Layout (legacy .main alias for public book) ──────────── */
.main {
  flex: 1;
  padding: 1.75rem 1.25rem 2.5rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.card.narrow { max-width: 24rem; margin-left: auto; margin-right: auto; }

h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rr-black);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rr-ink);
}

.lede {
  color: var(--rr-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
  max-width: 40rem;
}

.page-head { margin-bottom: 1.15rem; }

.page-head .lede { margin-bottom: 0; }

.crumb { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--rr-muted); }
.crumb a { font-weight: 600; }

/* Hero strip (home) — echoes site headline energy */
.hero {
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.06), transparent 55%),
    var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-top: 4px solid var(--rr-red);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 18ch;
}

.hero .lede {
  font-size: 1.02rem;
  color: var(--rr-charcoal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rr-red);
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
}

.badge-ok { background: var(--rr-ok); color: #fff; }
.badge-muted { background: #ececec; color: var(--rr-muted); }

.stubs {
  color: var(--rr-charcoal);
  line-height: 1.85;
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
}

.stubs a { font-weight: 700; }

/* ── Alerts ───────────────────────────────────────────────── */
.error {
  color: var(--rr-danger);
  background: #fdecea;
  border: 1px solid #f5c2c0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.error-detail { margin-top: 0.35rem; font-size: 0.9rem; color: var(--rr-muted); font-weight: 500; }
.error-inline { color: var(--rr-danger); font-size: 0.9rem; font-weight: 600; }

.flash-ok {
  color: var(--rr-ok);
  background: var(--rr-ok-soft);
  border: 1px solid #b7e0c5;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ── Forms / buttons (CTA like “Book Your Rig”) ───────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form label,
.inline-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rr-muted);
}

.login-form input,
select,
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--rr-line-strong);
  background: #fff;
  color: var(--rr-ink);
  font: inherit;
}

.login-form input:focus,
select:focus,
input:focus {
  outline: 2px solid rgba(225, 6, 0, 0.25);
  border-color: var(--rr-red);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem;
  border: none;
  border-radius: 8px;
  background: var(--rr-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--rr-red-dark);
}

button:hover,
.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.btn-secondary,
button.btn-secondary {
  background: #fff;
  color: var(--rr-ink);
  border: 1px solid var(--rr-line-strong);
  box-shadow: none;
}

.btn-secondary:hover,
button.btn-secondary:hover {
  border-color: var(--rr-red);
  color: var(--rr-red);
  background: var(--rr-red-soft);
  filter: none;
}

.btn-warn,
button.btn-warn {
  background: var(--rr-danger);
  box-shadow: 0 2px 0 #8e1b1b;
}

.logout { margin-top: 1.25rem; }
.logout button {
  background: transparent;
  color: var(--rr-muted);
  border: 1px solid var(--rr-line-strong);
  box-shadow: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.logout button:hover {
  color: var(--rr-ink);
  border-color: var(--rr-ink);
  filter: none;
  background: #fafafa;
}

/* ── Footer ───────────────────────────────────────────────── */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--rr-black);
  color: #cfcfcf;
  font-size: 0.8rem;
}

.foot a { color: #fff; font-weight: 600; }
.foot a:hover { color: var(--rr-red); text-decoration: none; }
.ver { font-variant-numeric: tabular-nums; color: #8a8a8a; }
.foot-brand { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.foot-brand span { color: var(--rr-red); }

/* ── Board (product-card columns) ─────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.board-col {
  min-height: 12rem;
  border-top: 3px solid var(--rr-red);
}

.board-col h2 {
  color: var(--rr-red);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rr-line);
}

.rental-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rental-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rr-line);
}

.rental-list li:first-child { border-top: none; padding-top: 0; }

.rental-list a {
  color: var(--rr-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rental-list a:hover strong { color: var(--rr-red); }
.rental-list strong { font-weight: 800; }

.meta { color: var(--rr-muted); font-size: 0.85rem; }
.empty { color: var(--rr-muted); font-size: 0.92rem; margin: 0; font-style: italic; }

/* ── Facts / actions / timeline ───────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--rr-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
}

.facts dd { margin: 0; font-weight: 700; color: var(--rr-ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rr-line);
}

.timeline-item:first-child { border-top: none; }

.timeline-item.status-error {
  border-left: 4px solid var(--rr-danger);
  padding-left: 0.85rem;
  background: linear-gradient(90deg, #fdecea, transparent 40%);
}

.timeline-item.status-ok {
  border-left: 4px solid var(--rr-ok);
  padding-left: 0.85rem;
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.tl-push { margin-top: 0.25rem; font-size: 0.9rem; color: var(--rr-muted); }
.push-status { font-weight: 800; color: var(--rr-ink); }
.retry-form { margin-top: 0.35rem; }

.error-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rr-line);
}

.mt { margin-top: 1rem; }

/* Login card with logo */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.login-brand img {
  height: 72px;
  width: auto;
}

.login-brand .sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rr-muted);
}

@media (max-width: 640px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav { justify-content: flex-start; }
  .brand-logo { height: 36px; }
}


/* MS0 form extras */
textarea {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rr-line-strong);
  border-radius: 8px;
  resize: vertical;
}
.req { color: var(--rr-red); font-weight: 800; }
.meta { color: var(--rr-muted); font-size: 0.9rem; }
a.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--rr-red);
  color: #fff !important;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
}
a.btn:hover { background: var(--rr-red-dark); }
a.btn-secondary {
  background: #ececec;
  color: var(--rr-ink) !important;
}
a.btn-secondary:hover { background: #ddd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }


/* Ops memory V1 */
.nav-sep {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 0.5rem 0.85rem;
}
.nav-badge {
  display: inline-block;
  margin-left: 0.4rem;
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--rr-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
}
.flash {
  background: var(--rr-ok-soft);
  border: 1px solid #b7e0c4;
  color: var(--rr-ok);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  font-weight: 600;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rr-line);
}
.check-list li:first-child { border-top: none; }
.check-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 0.25rem 0 0;
  line-height: 1;
}
.sop-body { line-height: 1.55; }
button.btn-secondary {
  background: #ececec;
  color: var(--rr-ink);
}
button.btn-secondary:hover { background: #ddd; }


/* === grok-theme ops overlay === */
@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");
:root {
  --rr-red: #e10600;
  --rr-red-dark: #b80500;
  --rr-red-soft: #fde8e6;
  --rr-paper: #f3efe8;
  --rr-cream: #fffdf8;
  --rr-ink: #161311;
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
}
body { background: var(--rr-paper); color: var(--rr-ink); font-family: var(--font); }
.card {
  background: var(--rr-cream);
  border: 0;
  box-shadow: 0 0 0 1px rgb(22 19 17 / 0.07), 0 1px 2px -1px rgb(22 19 17 / 0.06);
}
.ops-tabbar { display: none; }
.ops-more-overlay, .ops-more-sheet { display: none; }
@media (max-width: 767px) {
  .topstack { display: none; }
  .drawer, .nav-backdrop { display: none !important; }
  .ops-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    height: calc(4.75rem + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgb(243 239 232 / 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #d4cdc2;
  }
  .ops-tabbar a,
  .ops-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 0;
    color: #6e675f;
    font: 500 11px/1 "Archivo", sans-serif;
    text-decoration: none;
    min-height: 44px;
    cursor: pointer;
  }
  .ops-tabbar a.on,
  .ops-tabbar button[aria-expanded="true"] { color: #e10600; }
  .wrap { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .ops-more-overlay {
    display: block;
    position: fixed; inset: 0; background: rgb(22 19 17 / 0.4); z-index: 46;
  }
  .ops-more-overlay[hidden] { display: none; }
  .ops-more-sheet {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 47;
    max-height: 80dvh;
    overflow: auto;
    background: #f3efe8;
    border-radius: 14px 14px 0 0;
    padding: 0.5rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
  }
  .ops-more-sheet[hidden] { display: none; }
  .ops-more-handle {
    width: 40px; height: 4px; border-radius: 99px; background: #d4cdc2;
    margin: 8px auto 12px;
  }
  .ops-more-label {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #948c83; padding: 0 12px 8px; margin: 0;
  }
  .ops-more-sheet a,
  .ops-more-logout {
    display: flex; align-items: center; min-height: 48px;
    padding: 0 12px; border-radius: 8px;
    color: #161311; text-decoration: none; font-weight: 500;
    width: 100%; background: none; border: 0; text-align: left;
    font: inherit; cursor: pointer;
  }
  .ops-more-sheet a.on { background: #161311; color: #fffdf8; }
}

/* Desktop crew chrome: paper/cream drawer + top bar (keep left drawer) */
.ops-redline {
  height: 4px;
  width: 100%;
  background: #e10600;
  position: sticky;
  top: 0;
  z-index: 51;
}
.ops .topbar {
  background: #f3efe8;
  color: #161311;
  border-bottom: 1px solid #d4cdc2;
  box-shadow: none;
  min-height: 56px;
}
.ops .nav-toggle { color: #161311; }
.ops .nav-toggle:hover { background: rgb(22 19 17 / 0.06); }
.ops .nav-toggle[aria-expanded="true"] { background: #fde8e6; color: #e10600; }
.ops .topbar .brand { color: #161311; text-transform: none; letter-spacing: 0; }
.ops .topbar .brand:hover { color: #161311; }
.ops .topbar .brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.ops .topbar-ver { color: #948c83; }
.ops .drawer {
  background: #fffdf8;
  color: #161311;
  border-right: 1px solid #d4cdc2;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}
.ops .drawer-head {
  border-bottom: 1px solid #e8e2d8;
}
.ops .drawer-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.ops .drawer-tag { color: #948c83; }
.ops .drawer a,
.ops .drawer .nav-more > summary {
  color: #2c2622;
}
.ops .drawer a:hover,
.ops .drawer .nav-more > summary:hover {
  background: #f3efe8;
  color: #161311;
}
.ops .drawer a.on,
.ops .drawer .nav-more > summary.on {
  background: #f3efe8;
  color: #161311;
  box-shadow: inset 3px 0 0 #e10600;
}
.ops .drawer a.muted {
  color: #6e675f;
  border-top-color: #e8e2d8;
}
.ops .drawer .nav-more {
  border-top-color: #e8e2d8;
}
.ops .nav-backdrop {
  background: rgb(22 19 17 / 0.35);
}
@media (max-width: 767px) {
  .ops-redline { display: none; }
}

