/* ================================================================
   ARLS HQ — OPERATIONS DESIGN SYSTEM
   A calm, role-aware command center for office, management and field.
   ================================================================ */

:root {
  --logo: url("assets/arls-silver-logo.png");
  --bg: #f3f5f2;
  --surface: #ffffff;
  --sidebar: #10251a;
  --text: #17231b;
  --muted: #66756b;
  --faint: #93a097;
  --line: #dfe6e0;
  --line-2: #ebefec;
  --green: #287648;
  --green-deep: #185735;
  --green-tint: #e7f2eb;
  --green-tint-2: #f1f7f3;
  --radius: 16px;
  --side: 282px;
  --shadow-sm: 0 1px 2px rgba(18, 42, 28, .04), 0 4px 12px rgba(18, 42, 28, .035);
  --shadow: 0 10px 28px rgba(18, 42, 28, .08), 0 2px 8px rgba(18, 42, 28, .05);
  --shadow-lg: 0 24px 64px rgba(10, 28, 17, .18), 0 8px 22px rgba(10, 28, 17, .09);
  --sans: "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(40, 118, 72, .035), transparent 34rem),
    var(--bg);
  color: var(--text);
  letter-spacing: -.006em;
}

button, input, select, textarea { font-family: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(70, 157, 101, .28);
  outline-offset: 2px;
}

/* ---------- shell ---------- */
.app { grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar {
  background:
    radial-gradient(circle at 10% -10%, rgba(100, 178, 124, .18), transparent 15rem),
    var(--sidebar);
  border-right: 0;
  box-shadow: inset -1px 0 rgba(255,255,255,.045);
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.brand {
  min-height: 84px;
  padding: 16px 18px 14px;
  gap: 0;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.brand .brandlogo {
  width: 116px;
  max-width: 116px;
  aspect-ratio: 420 / 294;
  background: var(--logo) center 54% / 150% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand .brandcap {
  position: relative;
  margin-left: 12px;
  padding-left: 12px;
  color: rgba(232, 243, 235, .68);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: .13em;
}
.brand .brandcap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255,255,255,.16);
}

.side-search { padding: 14px 14px 8px; }
.side-search svg { color: rgba(229, 242, 233, .54); }
.side-search input {
  height: 42px;
  padding-left: 36px;
  color: #f4faf6;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.085);
  border-radius: 11px;
  font-size: 13.5px;
}
.side-search input::placeholder { color: rgba(228, 240, 231, .5); }
.side-search input:focus {
  color: #fff;
  background: rgba(255,255,255,.115);
  border-color: rgba(147, 207, 166, .5);
  box-shadow: 0 0 0 3px rgba(107, 181, 131, .14);
}

.nav { padding: 5px 11px 18px; }
.nav .navgroup {
  margin: 13px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.nav .navgroup:first-child { margin-top: 4px; }
.nav .grouplabel,
.nav .navgroup .grouplabel {
  padding: 0 10px 7px;
  color: rgba(217, 232, 221, .43);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .14em;
}
.nav .navitem,
.nav .navgroup .navitem {
  position: relative;
  min-height: 41px;
  margin: 2px 0;
  padding: 8px 10px;
  gap: 11px;
  color: rgba(240, 247, 242, .76);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 520;
  transition: color .14s ease, background .14s ease, transform .14s ease;
}
.nav .navitem:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
  transform: translateX(1px);
}
.nav .navitem.on,
.nav .navitem.ai.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(72, 154, 98, .92), rgba(43, 124, 72, .92));
  box-shadow: 0 8px 18px rgba(3, 25, 12, .2), inset 0 0 0 1px rgba(255,255,255,.11);
}
.nav .navitem.on::before {
  content: "";
  position: absolute;
  left: -11px;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: #8fd0a3;
}
.nav .navitem .ni,
.nav .navitem.ai .ni,
.nav .navitem.on .ni {
  width: 22px;
  height: 22px;
  color: currentColor;
  background: transparent;
  border-radius: 0;
}
.navsvg { width: 19px; height: 19px; display: block; }
.nav .navitem.ai { color: #b8dfc3; font-weight: 650; }
.nav .navitem.ai .ni { color: #8bd0a2; }
.nav .navitem.ai.on .ni { color: #fff; }

.side-foot {
  gap: 9px;
  padding: 13px 14px calc(15px + env(safe-area-inset-bottom, 0px));
  color: rgba(235, 244, 237, .72);
  background: rgba(3, 17, 10, .14);
  border-top-color: rgba(255,255,255,.075);
}
.side-user.show { padding: 3px 2px 9px; cursor: pointer; }
.side-user .ua {
  width: 31px;
  height: 31px;
  color: #fff;
  background: rgba(102, 183, 127, .25);
  box-shadow: inset 0 0 0 1px rgba(149, 215, 168, .22);
}
.side-user .ut b { color: #f1f7f3; font-size: 12px; }
.side-user .ut small { color: rgba(229, 240, 232, .5); }
.toggle { color: rgba(232, 241, 235, .62); font-size: 12px; }
.toggle .tw { background: rgba(255,255,255,.15); }
.side-foot .sync { color: rgba(229,240,232,.46); }
.side-foot .sync .dot { background: rgba(255,255,255,.3); }
.side-foot .sync.online .dot { background: #74d292; box-shadow: 0 0 0 3px rgba(116,210,146,.12); }

.main { min-height: 100dvh; }
.topbar {
  min-height: 64px;
  padding: calc(var(--safe-top) + 10px) 24px 10px;
  background: rgba(255,255,255,.86);
  border-bottom-color: rgba(207, 217, 209, .74);
  box-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.crumbs { color: var(--faint); font-size: 13px; }
.crumbs button { color: var(--muted); font-size: 13px; }
.crumbs .cur { color: var(--text); font-weight: 680; }
.wrap { max-width: 1180px; padding: 36px 38px 96px; }
body.tool-view .wrap { max-width: none; padding: 0; }

.userbtn, .menu-btn, .newbtn, .btn, .tinybtn {
  border-radius: 10px;
  box-shadow: none;
}
.userbtn { border-color: var(--line); background: rgba(255,255,255,.78); }
.useravatar { background: var(--green-tint); }

/* ---------- home command center ---------- */
.ops-home { max-width: 1140px; margin: 0 auto; }
.ops-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 7px 0 27px;
}
.ops-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ops-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46a567;
  box-shadow: 0 0 0 5px #e5f3e9;
}
.ops-welcome h1 {
  margin: 0;
  color: #15231a;
  font-size: clamp(31px, 4.6vw, 50px);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.ops-welcome-copy > p {
  max-width: 650px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.ops-today {
  min-width: 220px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}
.ops-today span { display: block; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ops-today strong { display: block; margin-top: 5px; font-size: 14px; letter-spacing: -.01em; }
.ops-today small { display: block; margin-top: 4px; color: var(--green); font-size: 11px; font-weight: 700; }

.ops-command {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.ops-command > svg { position: absolute; left: 19px; color: #4d725a; pointer-events: none; }
.ops-command input {
  width: 100%;
  height: 64px;
  padding: 0 148px 0 54px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd9cf;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(24, 66, 39, .09);
  font-size: 15.5px;
  font-weight: 520;
  outline: none;
}
.ops-command input:focus { border-color: #68a47a; box-shadow: 0 16px 38px rgba(24,66,39,.13), 0 0 0 4px #e5f2e9; }
.ops-command button {
  position: absolute;
  right: 8px;
  height: 48px;
  padding: 0 19px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.ops-command button:hover { background: var(--green-deep); }

.ops-section { margin-top: 28px; }
.ops-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ops-section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.ops-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.ops-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.ops-action {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 17px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.ops-action:hover { transform: translateY(-2px); border-color: #b9cdbf; box-shadow: var(--shadow); }
.ops-action-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 10px;
}
.ops-action-icon .navsvg { width: 20px; height: 20px; }
.ops-action b { display: block; font-size: 14px; letter-spacing: -.01em; }
.ops-action small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.ops-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.ops-panel {
  padding: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}
.ops-panel + .ops-panel { margin-top: 14px; }
.ops-panel .answer-section { margin-top: 0; }
.ops-panel .answer-section-head h2,
.ops-panel .kpi-live-head h2 { color: var(--text); font-size: 15px; letter-spacing: -.015em; text-transform: none; }
.ops-panel .kpi-counter-card { box-shadow: none; border-radius: 14px; }
.ops-panel .answer-grid { grid-template-columns: 1fr; }
.ops-panel .answer-shortcut {
  min-height: 52px;
  padding: 9px 10px;
  border-color: transparent;
  background: transparent;
  border-radius: 10px;
  font-size: 12.5px;
}
.ops-panel .answer-shortcut:hover { background: var(--green-tint-2); border-color: var(--line); }
.ops-panel .answer-shortcut span { width: 31px; height: 31px; font-size: 15px; }
.ops-season-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.ops-season-list button {
  padding: 8px 11px;
  color: var(--green-deep);
  background: var(--green-tint-2);
  border: 1px solid #d6e4da;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- consistent internal pages ---------- */
.phead h1, .office-hero h1, .adminhero h1, .schedule-hero h1, .partner-hero h1, .eq-hero h1, .library-hero h1 {
  color: #142119;
  font-weight: 750;
  letter-spacing: -.035em;
}
.article, .rowlist, .deptcard, .actioncard, .refcard, .whenarea-card, .whencard, .library-hero,
.adminhero + .builder-note, .teamcard, .sm-tab, .eq-panel, .eq-card, .partner-card, .partner-guide-card {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.article { padding: 28px; }
.rowlist { overflow: hidden; }
.lrow { padding: 15px 17px; }
.lrow:hover { background: #f4f8f5; }
.btn { min-height: 40px; font-weight: 620; }
.btn.primary, .newbtn { background: var(--green); border-color: var(--green); }
.btn.primary:hover, .newbtn:hover { background: var(--green-deep); }
.modal { border: 1px solid rgba(255,255,255,.6); border-radius: 20px; }
.backdrop { background: rgba(10, 28, 17, .52); backdrop-filter: blur(4px); }
.authscreen { background: radial-gradient(circle at 50% -15%, #dfeee4 0, transparent 36rem), #f3f6f3; }
.authcard { border-radius: 22px; box-shadow: var(--shadow-lg); }
.authlogo {
  width: 220px;
  height: 106px;
  max-width: 76%;
  background: var(--logo) center 54% / 150% no-repeat;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- mobile quick access ---------- */
.mobile-dock { display: none; }

@media (max-width: 1040px) {
  :root { --side: 260px; }
  .wrap { padding-left: 26px; padding-right: 26px; }
  .ops-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ops-dashboard-grid { grid-template-columns: 1fr; }
  .ops-dashboard-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .ops-panel + .ops-panel { margin-top: 0; }
}

@media (max-width: 820px) {
  .sidebar { width: min(88vw, 310px); }
  .topbar { min-height: 58px; padding: calc(var(--safe-top) + 8px) 14px 8px; }
  .menu-btn { border-color: var(--line); }
  .wrap { padding: 23px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
  .ops-welcome { grid-template-columns: 1fr; gap: 15px; padding-top: 3px; }
  .ops-today { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
  .ops-today span { display: none; }
  .ops-today strong { margin: 0; font-size: 12.5px; }
  .ops-today small { margin: 0 0 0 auto; }
  .mobile-dock {
    position: fixed;
    z-index: 45;
    left: 10px;
    right: 10px;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    background: rgba(15, 36, 24, .94);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 19px;
    box-shadow: 0 16px 38px rgba(7, 23, 13, .26);
    backdrop-filter: blur(15px);
  }
  .mobile-dock button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(235, 244, 238, .58);
    background: transparent;
    border: 0;
    border-radius: 13px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-dock button.on { color: #fff; background: rgba(90, 170, 114, .34); }
  .mobile-dock .navsvg { width: 18px; height: 18px; }
  .back-btn { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 620px) {
  .ops-welcome h1 { font-size: 32px; }
  .ops-welcome-copy > p { font-size: 14px; }
  .ops-command { margin-bottom: 20px; }
  .ops-command input { height: 58px; padding-right: 58px; font-size: 14px; }
  .ops-command button { width: 42px; height: 42px; padding: 0; font-size: 0; }
  .ops-command button::after { content: "→"; font-size: 19px; }
  .ops-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ops-action { min-height: 118px; padding: 14px; }
  .ops-dashboard-side { grid-template-columns: 1fr; }
  .ops-panel { padding: 16px; }
  .article { padding: 20px 17px; }
}

@media (max-width: 390px) {
  .ops-action-grid { grid-template-columns: 1fr; }
  .ops-action { min-height: 96px; display: grid; grid-template-columns: 39px 1fr; column-gap: 12px; align-items: center; }
  .ops-action-icon { grid-row: 1 / 3; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav .navitem, .ops-action { transition: none; }
}

/* ================================================================
   MOBILE OPERATIONS MODE
   Phone-first overrides shared by HQ, dashboards and workspaces.
   ================================================================ */
@media (max-width: 820px) {
  html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  body.nav-open { overflow: hidden; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app, .main, .wrap, #view,
  .ops-home, .wt-page, .bd-page, .up-page, .co-page,
  .eq-page, .partner-page, .answer-home, .best-answer, .other-answers {
    min-width: 0;
    max-width: 100%;
  }
  .main { grid-column: 1; width: 100%; overflow: clip; }
  .sidebar {
    z-index: 50;
    width: min(90vw, 340px);
    max-width: calc(100vw - 34px);
  }
  .brand { min-height: 76px; padding: 13px 16px 11px; }
  .brand .brandlogo { width: 105px; max-width: 105px; }
  .nav .navitem, .nav .navgroup .navitem { min-height: 46px; }
  .side-search input { height: 46px; font-size: 16px; }

  .topbar {
    min-height: 60px;
    gap: 8px;
    padding: calc(var(--safe-top) + 7px) 12px 7px;
  }
  .menu-btn, .userbtn { width: 44px; height: 44px; padding: 0; justify-content: center; flex: 0 0 44px; }
  .usertext { display: none; }
  .crumbs { min-width: 0; flex: 1; gap: 4px; font-size: 12px; }
  .crumbs button { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .crumbs .cur { max-width: 42vw; }
  .newbtn { min-width: 44px; height: 44px; padding: 0 12px; }
  .wrap { padding: 19px 14px calc(108px + env(safe-area-inset-bottom, 0px)); }
  body.tool-view .wrap { padding: 0 0 calc(82px + env(safe-area-inset-bottom, 0px)); }
  body.tool-view .toolview { height: calc(100dvh - 142px - env(safe-area-inset-bottom, 0px)); }

  .mobile-dock {
    left: 8px;
    right: 8px;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    height: 70px;
    padding: 6px;
    border-radius: 18px;
  }
  .mobile-dock button { min-height: 56px; touch-action: manipulation; }
  .mobile-dock button span { line-height: 1.05; }
  .back-btn { bottom: calc(89px + env(safe-area-inset-bottom, 0px)); min-height: 44px; }

  button, a, input, select, textarea { touch-action: manipulation; }
  input, select, textarea { font-size: 16px !important; }
  .btn, .tinybtn, .newbtn { min-height: 44px; }
  .headtools, .teambar, .eq-detail-actions {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .headtools .btn, .teambar .btn, .eq-detail-actions .btn { flex: 1 0 auto; }
  .phead { gap: 11px; }
  .phead .pi { width: 42px; height: 42px; border-radius: 11px; font-size: 21px; }
  .phead h1, .office-hero h1, .adminhero h1, .partner-hero h1, .eq-hero h1 { font-size: clamp(25px, 8vw, 32px); }
  .phead p, .office-hero p, .adminhero p, .partner-hero p, .eq-hero p { font-size: 14px; line-height: 1.5; }
  .library-hero, .schedule-hero { padding: 20px 17px; border-radius: 16px; }
  .article { padding: 19px 16px; }
  .richbody { font-size: 15px; line-height: 1.58; }
  .richbody h2 { font-size: 19px; }
  .lrow { min-height: 70px; padding: 14px; gap: 11px; }
  .lrow .lico { width: 38px; height: 38px; font-size: 18px; }
  .lrow .lt { font-size: 15px; }
  .lrow .lw { font-size: 12.5px; }
  .lrow .lmeta { display: none; }
  .lrow .lgo { margin-top: 11px; }
  .rowlist, .article, .ops-panel, .wt-panel, .bd-panel, .up-panel, .co-panel { max-width: 100%; }

  .modal {
    max-height: min(94dvh, 900px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .modal h2 { padding: 18px 16px 0; }
  .modal .form { padding: 15px 16px 18px; }
  .modal-foot { gap: 8px; padding: 12px 16px calc(13px + env(safe-area-inset-bottom, 0px)); }
  .frow { display: grid; grid-template-columns: 1fr; gap: 0; }

  .schedule-tabs, .wt-tabs, .wt-workspace-tabs, .wt-support-tabs,
  .wt-service-tabs, .wt-roster-status, .wt-range-tabs, .bd-ranges, .up-ranges {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .schedule-tabs::-webkit-scrollbar, .wt-tabs::-webkit-scrollbar,
  .wt-workspace-tabs::-webkit-scrollbar, .wt-service-tabs::-webkit-scrollbar,
  .wt-roster-status::-webkit-scrollbar, .bd-ranges::-webkit-scrollbar,
  .up-ranges::-webkit-scrollbar { display: none; }
  .schedule-tabs button, .wt-tab, .wt-service-tabs button,
  .wt-roster-status button, .bd-ranges button, .up-ranges button { min-height: 44px; }

  .wt-table-wrap, .bd-table-wrap, .up-table-wrap, .schedule-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .wt-table th, .bd-table th, .up-table th, .schedule-table th { font-size: 10px; }
  .wt-table td, .bd-table td, .up-table td, .schedule-table td { font-size: 12px; }
  .wt-table th:first-child, .wt-table td:first-child,
  .bd-table th:first-child, .bd-table td:first-child,
  .up-table th:first-child, .up-table td:first-child,
  .schedule-table th:first-child, .schedule-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 #e6ebe7;
  }
  .wt-table th:first-child, .bd-table th:first-child,
  .up-table th:first-child, .schedule-table th:first-child { background: #eef4ef; z-index: 3; }

  .wt-hero, .bd-hero, .up-hero, .co-hero { padding: 18px 16px; border-radius: 16px; }
  .wt-hero h1, .bd-hero h1, .up-hero h1, .co-hero h1 { font-size: clamp(27px, 9vw, 34px); }
  .wt-hero p, .bd-hero p, .up-hero p, .co-hero p { font-size: 13px; }
  .wt-panel-head, .bd-panel-head, .up-panel-head, .co-panel-head { padding: 14px; }
  .wt-panel-head h2, .bd-panel-head h2, .up-panel-head h2, .co-panel-head h2 { font-size: 15px; }
  .wt-panel-head p, .bd-panel-head p, .up-panel-head p, .co-panel-head p { font-size: 11px; }
  .wt-row-action, .wt-link, .up-pay { min-height: 40px; padding: 8px; font-size: 11px; }
}

@media (max-width: 620px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .ops-welcome { gap: 12px; padding-bottom: 19px; }
  .ops-welcome h1 { font-size: clamp(29px, 9vw, 36px); }
  .ops-welcome-copy > p { font-size: 14px; line-height: 1.5; }
  .ops-today { width: 100%; }
  .ops-command { margin-bottom: 18px; }
  .ops-command input { height: 56px; padding-left: 48px; border-radius: 14px; }
  .ops-command > svg { left: 16px; }
  .ops-section { margin-top: 22px; }
  .ops-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ops-action-grid { grid-template-columns: 1fr; gap: 9px; }
  .ops-action {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    align-items: center;
    column-gap: 12px;
    padding: 13px 14px;
  }
  .ops-action-icon { grid-row: 1 / 3; width: 42px; height: 42px; margin: 0; }
  .ops-action b { align-self: end; font-size: 15px; }
  .ops-action small { align-self: start; font-size: 12px; }
  .ops-panel { padding: 14px; }

  .answer-hero h1 { font-size: 29px; }
  .answer-hero p { font-size: 14px; }
  .answer-search input, .ask-ai-form input { font-size: 16px; }
  .best-card { padding: 16px 14px; }
  .best-card h2 { font-size: 18px; }

  .month-card { min-height: 0; }
  .campaign-card { padding: 16px; }
  .teamcard { align-items: flex-start; padding: 13px; }

  .wt-actions, .bd-hero-actions, .up-actions, .co-actions { width: 100%; gap: 8px; flex-wrap: wrap; }
  .wt-actions .btn, .bd-hero-actions .btn, .up-actions .btn, .co-actions .btn { min-width: 0; flex: 1; }
  .wt-metrics, .bd-top, .bd-source-strip, .up-metrics { gap: 8px; }
  .wt-metric, .bd-metric, .up-metric { min-height: 0; padding: 14px; }
  .wt-metric strong, .bd-metric > strong, .up-metric strong { font-size: 24px; }
  .wt-filter, .wt-roster-filter { padding: 9px; }
  .wt-support-tabs:before { display: none; }
  .wt-support-tabs .wt-tab:first-of-type { margin-left: 0; }
  .wt-dashboard-toolbar { padding: 15px; }
  .wt-dashboard-toolbar h2 { font-size: 21px; }
  .wt-service-mix button { grid-template-columns: minmax(92px,1fr) minmax(70px,1fr) 58px; gap: 7px; }
  .wt-service-mix button span, .wt-service-mix button strong { font-size: 10px; }
  .wt-stat-strip article { padding: 14px; }

  .bd-toolbar, .up-toolbar { padding: 9px; }
  .bd-date, .up-date { width: 100%; }
  .bd-date b, .up-date b { min-width: 0; flex: 1; }
  .bd-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bd-chart-bars { min-width: 520px; }
  .bd-service-mix > div { grid-template-columns: minmax(90px,1fr) minmax(70px,1.2fr) 62px; }

  .co-layout { gap: 10px; }
  .co-library-head, .co-coming { padding: 13px; }
  .co-library-item { min-height: 70px; max-width: none; }
  .co-subject, .co-email pre { margin-left: 10px; margin-right: 10px; }
  .co-email pre { padding: 13px; font-size: 12px; line-height: 1.6; }
  .co-steps { padding: 10px; }
  .co-client-updates { margin: 0 10px 10px; }
  .co-preview { margin: 12px 10px 16px; }
}

@media (max-width: 480px) {
  .topbar { padding-left: 9px; padding-right: 9px; }
  .crumbs button:not(:last-of-type), .crumbs .sep { display: none; }
  .crumbs button { max-width: 52vw; }
  .mobile-dock { left: 6px; right: 6px; }
  .mobile-dock button { font-size: 8.5px; }
  .mobile-dock .navsvg { width: 20px; height: 20px; }
  .ops-today small { font-size: 10px; }
  .wt-metrics, .bd-top, .bd-source-strip, .bd-quality-grid,
  .bd-fin-grid, .bd-labor-summary, .bd-churn-metrics, .up-metrics { grid-template-columns: 1fr; }
  .wt-actions { display: grid; grid-template-columns: 1fr; }
  .wt-actions .btn { width: 100%; }
  .bd-service-grid { grid-template-columns: 1fr 1fr; }
  .bd-service-grid article { padding: 11px; }
  .bd-service-grid strong { font-size: 19px; }
  .co-hero-count { width: 100%; grid-template-columns: auto 1fr; }
}
