:root {
  --teal: #3d5a57;
  --teal-dark: #2c433f;
  --orange: #ff9933;
  --orange-dark: #d97706;
  --bg: #f6f7f6;
  --card: #ffffff;
  --text: #1f2a28;
  --muted: #5b6b68;
  --line: #d9dfdd;
  --red: #b42318;
  --amber: #b25e09;
  --green: #1b6b45;
  --blue: #1d4f91;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a19; --card: #1c2624; --text: #e8eeec; --muted: #9fb0ac; --line: #30403d;
    --teal: #7fb0a8; --teal-dark: #a8d0c9; --red: #f3786b; --amber: #f0b45a; --green: #5fc48d; --blue: #7fb0f0;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
header.site { background: var(--teal); color: #fff; padding: 14px 16px; }
header.site h1 { margin: 0; font-size: 1.15rem; font-weight: 700; }
header.site p { margin: 2px 0 0; font-size: .9rem; opacity: .9; }
header.site .brand { float: left; width: 44px; height: 44px; margin: 0 12px 0 0; border-radius: 50%; background: #fff; }
header.site::after { content: ''; display: block; clear: both; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1180px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
h2 { font-size: 1.25rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; display: block; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 8px; min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; margin: 6px 0; font-weight: 400; cursor: pointer; }
.choice input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
button, .btn {
  font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 8px; border: 2px solid var(--teal);
  background: var(--teal); color: #fff; cursor: pointer; min-height: 46px; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--teal); }
button.accent { background: var(--orange); border-color: var(--orange); color: #1f1300; }
button.danger { background: transparent; border-color: var(--red); color: var(--red); }
button.small { padding: 6px 10px; min-height: 34px; font-size: .85rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 1 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } html { font-size: 16px; } }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.progress > div { height: 100%; background: var(--orange); transition: width .2s; }
.notice { border-left: 5px solid var(--orange); background: color-mix(in srgb, var(--orange) 14%, var(--card)); padding: 12px 14px; border-radius: 6px; margin: 10px 0; }
.error { border-left: 5px solid var(--red); background: color-mix(in srgb, var(--red) 12%, var(--card)); padding: 12px 14px; border-radius: 6px; margin: 10px 0; color: var(--text); }
.ok { border-left: 5px solid var(--green); background: color-mix(in srgb, var(--green) 12%, var(--card)); padding: 12px 14px; border-radius: 6px; margin: 10px 0; }
.sr { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; border: 1.5px solid currentColor; white-space: nowrap; }
.t1 { color: var(--red); } .t2 { color: var(--amber); } .t3 { color: var(--blue); } .t4 { color: var(--muted); }
.dl-row { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr auto; gap: 8px; align-items: end; margin-top: 8px; }
@media (max-width: 640px) { .dl-row { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr.click { cursor: pointer; } tr.click:hover { background: color-mix(in srgb, var(--teal) 8%, transparent); }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
nav.tabs button { background: transparent; color: var(--text); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 12px; min-height: 40px; }
nav.tabs button[aria-current="true"] { border-bottom-color: var(--orange); color: var(--teal-dark); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tile b { display: block; font-size: 1.7rem; line-height: 1.1; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
pre.out { white-space: pre-wrap; background: color-mix(in srgb, var(--teal) 6%, var(--card)); padding: 10px; border-radius: 6px; font-size: .85rem; overflow-wrap: anywhere; }
details { margin: 6px 0; } summary { cursor: pointer; font-weight: 600; }
.wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wallet .w { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; background: var(--teal); }

/* ---------- Case Loop shell ---------- */
.shell { display: flex; flex-wrap: wrap; align-items: flex-start; }
.shell #tabs { flex: 0 0 220px; background: var(--card); border-right: 1px solid var(--line); min-height: 60vh; }
.shell nav.tabs { flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 12px; border-bottom: 0; position: static; }
.shell nav.tabs button { text-align: left; border: 0; border-radius: 8px; width: 100%; min-height: 44px; }
.shell nav.tabs button[aria-current="true"] { background: color-mix(in srgb, var(--teal) 16%, var(--card)); color: var(--teal-dark); font-weight: 700; border-bottom: 0; }
.shell main.wide { flex: 999 1 560px; min-width: 0; max-width: none; margin: 0; }
.stages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stage { border-radius: 10px; padding: 10px 12px; min-width: 0; border: 1.5px solid var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--card)); }
.stage.current { border: 3px solid var(--orange-dark); background: color-mix(in srgb, var(--orange) 16%, var(--card)); }
.stage.locked { border: 1.5px dashed var(--muted); background: var(--bg); }
.stage b { display: block; font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.kv b { background: color-mix(in srgb, var(--teal) 10%, var(--card)); padding: 8px 10px; }
.kv span { padding: 8px 10px; }
.tagblock { font-weight: 700; }
@media (max-width: 900px) { .shell #tabs { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; } .shell nav.tabs { flex-direction: row; flex-wrap: wrap; } .shell nav.tabs button { width: auto; } .stages { grid-template-columns: 1fr; } }

/* ---------- Compact layout: less scrolling, more visible at a glance ---------- */
html { font-size: 16px; }
body { line-height: 1.4; }
header.site { padding: 8px 16px; }
header.site h1 { display: inline; font-size: 1.05rem; }
header.site p { display: inline; margin: 0 0 0 10px; font-size: .85rem; }
main { padding: 12px 16px; }
.card { padding: 12px 14px; margin-bottom: 10px; }
.card > h3:first-child { margin-top: 0; }
.card p { margin: 4px 0 6px; }
h2 { margin: 0 0 6px; font-size: 1.2rem; }
h3 { margin: 10px 0 4px; font-size: 1rem; }
label { margin: 8px 0 3px; }
th, td { padding: 6px 8px; }
textarea { min-height: 70px; }

/* side menu stays in view while you scroll */
.shell #tabs { position: sticky; top: 0; min-height: 0; }
.shell nav.tabs { padding: 8px; gap: 2px; }
.shell nav.tabs button { min-height: 38px; padding: 6px 12px; }

/* counts in one row */
.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile { padding: 6px 10px; display: flex; align-items: baseline; gap: 8px; font-size: .85rem; }
.tile b { display: inline; font-size: 1.35rem; line-height: 1.2; }

/* Today: work on the left, system status on the right */
.today { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 12px; align-items: start; }
.notice.small { font-size: .82rem; padding: 6px 10px; margin: 0 0 10px; }

/* Case Loop stage bar: one slim row */
.stages { gap: 6px; margin: 0 0 8px; }
.stage { padding: 4px 8px; border-radius: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.stage > .small:first-child { display: none; }
.stage b { display: inline; font-size: .95rem; }
.stage.current { border-width: 2px; }

/* Matter page sections */
.mtabs { display: flex; gap: 2px; margin: 0 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mtabs button { background: transparent; color: var(--text); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 6px 12px; min-height: 40px; white-space: nowrap; }
.mtabs button[aria-selected="true"] { border-bottom-color: var(--orange); color: var(--teal-dark); font-weight: 700; }
[hidden] { display: none !important; }

@media (max-width: 1000px) { .today { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell #tabs { position: static; flex: 1 1 100%; }
  .shell nav.tabs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 4px 8px; }
  .shell nav.tabs button { width: auto; white-space: nowrap; min-height: 40px; }
  .stages { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(130px, 1fr); overflow-x: auto; }
}
@media (max-width: 640px) { html { font-size: 16px; } main { padding: 10px; } header.site p { display: none; } }

/* gaps as compact rows */
.gaplist { margin-top: 4px; }
.gaprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.gaprow.blocking { border-left: 3px solid var(--red, #b3261e); padding-left: 8px; }
.gapmain { min-width: 0; }
.gapmeta { margin-top: 2px; }
.gapbtns { gap: 6px; justify-content: flex-end; }
.gapsug { margin: 6px 0 0; }
.gaprow > div:last-child { grid-column: 1 / -1; }
.gaprow > div:last-child:empty { display: none; }

/* Work section: the lists get more room than the side forms */
.mpane-work { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .mpane-work { grid-template-columns: 1fr; } }

/* phones: tables become stacked rows with labels, so nothing needs sideways scrolling */
@media (max-width: 640px) {
  .card table, .card thead, .card tbody, .card tr, .card td { display: block; }
  .card thead { display: none; }
  .card tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .card td { border: 0; padding: 1px 0; }
  .card td[data-label]::before { content: attr(data-label) ": "; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .gaprow { grid-template-columns: 1fr; }
  .gapbtns { justify-content: flex-start; }
}

/* the menu strip scrolls inside itself instead of widening the page */
.shell #tabs { min-width: 0; max-width: 100%; }
.shell nav.tabs { max-width: 100%; }
.stages { max-width: 100%; }

/* gap rows: the text column can never be squeezed by the buttons or by a long note */
.gaprow { grid-template-columns: minmax(0, 1fr) max-content; padding: 6px 0; }
.gapnote { margin-top: 2px; overflow-wrap: anywhere; }
.gapbtns { flex-wrap: nowrap; }
.gapdone { margin-top: 8px; }
.gapdone > summary { font-size: .9rem; }
.mpane-work { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* steps: the checkbox text and the Waive button share one line */
.steprow { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: flex-start; }
.steprow > label { flex: 1 1 200px; margin: 4px 0; }
.steprow > .steph { flex: 1 1 100%; }

/* Hide the side menu for a wider working area (button in the header; remembered on this computer) */
.shell.menu-hidden #tabs { display: none; }
.shell.menu-hidden main.wide { flex-basis: 100%; }
@media (min-width: 1500px) { .mpane-work { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* ---------- Stage 1: header search, grouped menu, sticky matter header ---------- */
header.site .gsearch { width: 260px; max-width: 100%; min-height: 34px; padding: 5px 10px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .9rem; }
header.site .gsearch::placeholder { color: rgba(255,255,255,.8); }
header.site .gsearch:focus { background: #fff; color: #1f2a28; outline: 3px solid var(--orange); }
header.site .row { gap: 8px; }
@media (max-width: 900px) { header.site .who-email { display: block; flex: 1 0 100%; font-size: .8rem; opacity: .95; } header.site .gsearch { width: 100%; flex: 1 1 160px; } }
a.help-link:not(.btn) { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.btn.small { padding: 6px 10px; min-height: 34px; font-size: .85rem; }
.section-help { margin-top: 0; }
nav.tabs details.moremenu { margin: 2px 0 0; }
nav.tabs details.moremenu > summary { cursor: pointer; list-style: none; padding: 6px 12px; min-height: 38px; display: flex; align-items: center; border-radius: 8px; font-weight: 600; color: var(--muted); }
nav.tabs details.moremenu > summary::-webkit-details-marker { display: none; }
nav.tabs details.moremenu > summary::before { content: '\25B8'; margin-right: 8px; }
nav.tabs details.moremenu[open] > summary::before { content: '\25BE'; }
nav.tabs details.moremenu > button { display: block; width: 100%; padding-left: 28px; }
@media (max-width: 900px) { nav.tabs details.moremenu { flex: 0 0 auto; } nav.tabs details.moremenu > button { display: inline-block; width: auto; padding-left: 12px; } nav.tabs details.moremenu[open] { display: flex; align-items: center; } }
.mhead { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 6px 0 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }

.formstep { margin: 2px 0 2px; font-size: 1.05rem; color: var(--teal-dark); }
.mpane-forms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .mpane-forms { grid-template-columns: 1fr; } }

details.sysbox { padding: 8px 12px; }
details.sysbox > summary { font-size: .9rem; font-weight: 600; color: var(--muted); }
details.sysbox[open] > summary { margin-bottom: 8px; }
details.sysbox.attn { border-left: 5px solid var(--orange); }
details.sysbox.attn > summary { color: var(--text); }

nav.tabs .tabgroup { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
nav.tabs .grouphead { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 6px 12px 2px; }
@media (max-width: 900px) { nav.tabs .tabgroup { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* one status line under each card title */
.card > .status { margin: 2px 0 8px; font-weight: 600; }

/* Approvals on file: the approval text on its own line, who/when/how beneath it */
.approval { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.approval b { display: block; margin-bottom: 2px; overflow-wrap: anywhere; }
.approval span { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }

/* Facelift: the four steps */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lane { text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: var(--radius); padding: 10px 12px; min-height: 0; }
.lane:hover, .lane:focus-visible { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.lane .lanehead { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lane .lanebig { font-size: 2rem; line-height: 1.1; }
.lane.step1, .tabgroup.step1 .stepno { --c: #1F5FAE; } .lane.step2, .tabgroup.step2 .stepno { --c: #B34700; }
.lane.step3, .tabgroup.step3 .stepno { --c: #6A3FB5; } .lane.step4, .tabgroup.step4 .stepno { --c: #1E7A45; }
.lane { border-top-color: var(--c, var(--teal)); }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--c, var(--teal)); color: #fff; font-size: .8rem; font-weight: 700; margin-right: 6px; }
nav.tabs .grouphead { display: flex; align-items: center; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* OPAC step bar. Stage color is the path. Urgency color is only the tag, and it always has a shape and words. */
header.site.opac-head { background: var(--card); color: var(--text); padding: 0; border-bottom: 1px solid var(--line); }
.opac-accent { height: 5px; background: #5B6470; }
.opac-bar-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; }
.opac-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; }
.opac-brand .brand { float: none; width: 36px; height: 36px; margin: 0; }
#opacbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opac-step { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 2px solid #5B6470; background: var(--card); color: var(--text); font-weight: 700; min-height: 40px; }
.opac-step .letter { width: 22px; height: 22px; border-radius: 99px; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.quickjump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved-status { font-size: .85rem; font-weight: 700; color: var(--muted); }
header.site.opac-head .gsearch { width: 180px; border: 1.5px solid #5B6470; background: var(--bg); color: var(--text); }
header.site.opac-head .gsearch::placeholder { color: var(--muted); }
header.site.opac-head .gsearch:focus { background: var(--card); color: var(--text); outline: 3px solid #1F5FAE; }
.context-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--bg); border-top: 1px solid var(--line); }
.stepnav { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line); }
.stepnav-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
button.step-next { color: #fff; }
.shell main.wide { padding-bottom: 28px; }
.shell #tabs { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(420px, 100vw); z-index: 40; overflow: auto; background: var(--card); border-left: 1px solid var(--line); border-right: 0; min-height: 100vh; flex: none; box-shadow: -8px 0 24px rgba(0,0,0,.18); }
.shell #tabs[hidden] { display: none !important; }
.menu-tools { padding: 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.urg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; border: 1.5px solid; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.urg .shape-square { width: 9px; height: 9px; background: currentColor; display: inline-block; flex: none; }
.urg .shape-circle { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 99px; box-sizing: border-box; display: inline-block; flex: none; }
.urg .shape-triangle { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; display: inline-block; flex: none; }
.urg.over { background: #B3261E; color: #FFFFFF; border-color: #B3261E; }
.urg.soon { background: #FFC21A; color: #1F1A00; border-color: #8A5A00; }
.urg.routine { background: #E6E8EB; color: #2B3036; border-color: #5B6470; }
.with-client-card h2 { font-size: 1.6rem; }
.with-client-phone { font-size: 1.4rem; font-weight: 700; }
body.with-client #gsearch, body.with-client #open-menu { visibility: hidden; }
.phone-nav { display: none; position: sticky; bottom: 0; z-index: 8; justify-content: space-around; gap: 6px; padding: 8px; background: var(--card); border-top: 1px solid var(--line); }
.phone-nav button { flex: 1 1 0; min-height: 48px; }
@media (max-width: 720px) {
  .opac-bar-row { padding: 8px; }
  header.site.opac-head .gsearch { width: 100%; flex: 1 1 140px; }
  .stepnav { position: sticky; }
  .opac-step { min-height: 44px; }
  .split, .mpane-analyze, .mpane-complete, .mpane-organize, .mpane-prioritize, .mpane-forms, .today { grid-template-columns: 1fr !important; }
  .phone-nav { display: flex; }
}
.big-tap { min-height: 52px; font-size: 1.05rem; }
.with-client-label { color: var(--muted); font-weight: 700; margin: 10px 0 0; }
.with-client-value, .with-client-phone { font-size: 1.45rem; font-weight: 700; margin: 0 0 8px; }
body.with-client #opacbar, body.with-client #gsearch, body.with-client #open-menu, body.with-client .phone-nav, body.with-client #guide-toggle { display: none !important; }
.guide-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 100%; }
.guide-card .guide-choice { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 48px; margin: 6px 0; text-align: left; }
.guide-card .guide-choice.on { outline: 3px solid var(--teal); }
#guide-admin .row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 14rem); width: 100%; }
@media (max-width: 900px) {
  .guide-toggle button { min-height: 44px; }
  .guide-card .guide-choice, .guide-card .big-tap { min-height: 48px; }
}
