/* Wiser Dispatch. Desktop first. Same minimal language as Wiser PTI Management: 1px borders, no shadows. */
:root {
  --page: #f4f5f7; --card: #ffffff; --border: #dfe2e7; --line: #eceef1;
  --text: #101828; --muted: #5d6675; --faint: #98a2b3;
  --accent: #1f4e8c; --accent-hover: #183f72; --accent-soft: #eaf1fb; --on-accent: #ffffff;
  --ok: #15803d; --ok-soft: #e8f5ec; --warn: #b45309; --warn-soft: #fdf3e3;
  --stop: #b42318; --stop-soft: #fdecea; --info-soft: #f1f3f6;
  --radius: 6px; --radius-s: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text); background: var(--page);
  font-feature-settings: "tnum" 1;
}
* { box-sizing: border-box; box-shadow: none; }
html, body { margin: 0; height: 100%; }
body { display: flex; flex-direction: column; min-width: 1024px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--stop); margin: 8px 0 0; }

/* top bar */
.top { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--border); }
.brand { font-size: 15px; letter-spacing: -.01em; }
.brand b { font-weight: 700; }
.brand .sep { color: var(--faint); margin: 0 6px; }
.brand .tool { color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 16px; }
.who { color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }
.recent { position: relative; }
.recent summary { list-style: none; cursor: pointer; color: var(--accent); }
.recent summary::-webkit-details-marker { display: none; }
.recent-list { position: absolute; right: 0; top: 28px; z-index: 5; width: 320px; max-height: 420px; overflow: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.recent-list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; color: var(--text);
  text-decoration: none; border-top: 1px solid var(--line); }
.recent-list a:first-child { border-top: 0; }
.recent-list a:hover { background: var(--info-soft); }
.recent-list .none { padding: 12px; color: var(--muted); }

/* empty state */
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.drop { width: min(680px, 100%); height: 300px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; border: 1.5px dashed #c3c8d1; border-radius: 10px; background: var(--card);
  cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop-title { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.drop-sub { color: var(--muted); }
.drop.busy { pointer-events: none; opacity: .6; }
.empty-note { color: var(--faint); font-size: 12px; margin-top: 14px; }

/* workspace: the Load Sheet is the primary view (2026-11-15). Edit mode = PDF beside the editor; View PDF =
   the PDF beside the sheet. */
.work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.toolbar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px;
  background: var(--card); border-bottom: 1px solid var(--border); }
.toolbar .file { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.toolbar .file .muted { font-weight: 400; }
.tool-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-quiet.strong { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.btn-quiet:disabled { opacity: .45; cursor: not-allowed; }
.review-status { position: relative; flex: none; }
.review-status summary { list-style: none; cursor: pointer; font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); white-space: nowrap; }
.review-status summary::-webkit-details-marker { display: none; }
.review-status summary.warn { background: var(--warn-soft); border-color: #f1d6ad; }
.review-status summary.stop { background: var(--stop-soft); border-color: #f4c7c1; }
.review-status summary.ok { background: var(--ok-soft); border-color: #bfe3cb; }
.review-status summary::after { content: " ▾"; color: var(--faint); }
.review-list { position: absolute; right: 0; top: 34px; z-index: 6; width: min(380px, 90vw); max-height: 60vh; overflow: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.review-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left;
  padding: 7px 9px; border: 0; border-radius: var(--radius-s); background: none; cursor: pointer; }
.review-item:hover { background: var(--info-soft); }
.review-item b { font-size: 12.5px; }
.review-item span { font-size: 12px; color: var(--muted); }
.review-item.missing b, .review-item.uncertain b { color: var(--warn); }
.review-item.conflict b, .review-item.invalid b { color: var(--stop); }
.review-list > .muted { padding: 8px; font-size: 12.5px; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more-list { position: absolute; right: 0; top: 32px; z-index: 6; min-width: 160px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; }
.more-item { display: block; width: 100%; text-align: left; padding: 7px 9px; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-s); font-size: 13px; }
.more-item:hover { background: var(--info-soft); }
.more-item.danger { color: var(--stop); }

.work-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.work.mode-sheet.pdf-open .work-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.work.mode-edit.pdf-open .work-body { grid-template-columns: minmax(0, 1fr) minmax(520px, 1.1fr); }
.pdf-pane { display: none; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.work.pdf-open .pdf-pane { display: flex; }
.form-pane { display: none; }
.work.mode-edit .form-pane { display: flex; }
.sheet-pane { display: none; min-height: 0; overflow: auto; background: var(--page); }
.work.mode-sheet .sheet-pane { display: block; }
.sheet-wrap { max-width: 820px; margin: 0 auto; padding: 20px 20px 28px; }
.work.pdf-open .sheet-wrap { max-width: 720px; }
.pdf-frame { flex: 1; min-height: 0; background: #e9ebef; }
.pdf-frame object { width: 100%; height: 100%; border: 0; display: block; }
.pdf-frame .gone { padding: 40px; color: var(--muted); text-align: center; }

.form-pane { flex-direction: column; min-height: 0; background: var(--page); }   /* shown only in edit mode */
.form-scroll { flex: 1; overflow: auto; padding: 16px 18px 24px; }

/* state banners */
.banner { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 12px 14px;
  margin-bottom: 12px; line-height: 1.45; }
.banner.warn { background: var(--warn-soft); border-color: #f1d6ad; }
.banner.stop { background: var(--stop-soft); border-color: #f4c7c1; }
.banner.info { background: var(--info-soft); }
.banner b { display: block; margin-bottom: 2px; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }
.banner .actions { margin-top: 8px; display: flex; gap: 8px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* form */
.sec { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid var(--line); }
.sec-head h3 { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sec-head .kind-pickup { color: var(--accent); }
.sec-head .kind-delivery { color: var(--ok); }
.sec-tools { display: flex; gap: 4px; }
.icon-btn { width: 26px; height: 26px; border: 1px solid transparent; border-radius: var(--radius-s); background: none;
  color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.icon-btn:hover { border-color: var(--border); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; padding: 12px 14px 14px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f.c1 { grid-column: span 1; } .f.c2 { grid-column: span 2; } .f.c3 { grid-column: span 3; }
.f.c4 { grid-column: span 4; } .f.c6 { grid-column: span 6; }
.f > span.lbl { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.f input, .f select, .f textarea { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--border);
  border-radius: var(--radius-s); background: #fff; outline: none; }
.f textarea { height: auto; min-height: 64px; padding: 7px 9px; resize: vertical; line-height: 1.4; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.f .note { font-size: 11.5px; line-height: 1.35; color: var(--faint); overflow-wrap: anywhere; }
.f .note q { font-style: italic; }
.tag { font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.f.missing input, .f.missing select, .f.missing textarea { border-color: #e7b46b; background: #fffaf2; }
.f.uncertain input, .f.uncertain select, .f.uncertain textarea { border-color: #e7b46b; border-style: dashed; }
.f.invalid input, .f.invalid select, .f.conflict input, .f.conflict select { border-color: #e3867c; background: #fff7f6; }
.f.missing .tag, .f.uncertain .tag { background: var(--warn-soft); color: var(--warn); }
.f.invalid .tag, .f.conflict .tag { background: var(--stop-soft); color: var(--stop); }
.f .why { font-size: 11.5px; color: var(--warn); }
.f.invalid .why, .f.conflict .why { color: var(--stop); }
.add-row { display: flex; gap: 8px; margin: 4px 0 12px; }

/* copy bar */
.copy-bar { flex: none; padding: 12px 18px 14px; background: var(--card); border-top: 1px solid var(--border); }
.copy-inner { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.copy-inner .confirm { margin: 0; }
.copy-inner .preview, .copy-inner .error { flex-basis: 100%; }
.summary { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.summary .warnc { color: var(--warn); font-weight: 600; }
.summary .stopc { color: var(--stop); font-weight: 600; }
.summary .okc { color: var(--ok); font-weight: 600; }
.confirm { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; user-select: none; }
.confirm input { width: 16px; height: 16px; accent-color: var(--accent); }
.copy-row { display: flex; align-items: center; gap: 14px; }
.btn-primary { height: 44px; min-width: 220px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 650; cursor: pointer; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: #b8c4d6; cursor: not-allowed; }
.btn-primary.done { background: var(--ok); }
.preview { margin: 10px 0 0; max-height: 220px; overflow: auto; padding: 10px 12px; background: var(--info-soft);
  border: 1px solid var(--line); border-radius: var(--radius-s); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 9px 14px; border-radius: var(--radius); opacity: 0; transition: opacity .15s; pointer-events: none; }
.toast.show { opacity: 1; }

/* login */
.login-page { align-items: center; justify-content: center; min-width: 0; }
.login { width: 340px; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; }
.login .brand { font-size: 18px; margin-bottom: 4px; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.login input { height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-s); font-size: 14px; color: var(--text); }
.login input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.login .btn-primary { width: 100%; min-width: 0; }

/* fuel prices page */
a.link { text-decoration: none; }
.small { font-size: 12px; }
main.fuel { flex: 1; overflow: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 14px;
  max-width: 1280px; width: 100%; margin: 0 auto; }
main.fuel .sec { margin: 0; }
.fuel-body { padding: 14px; }
.drop.drop-sm { width: 100%; height: 130px; }
.map-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head select { height: 30px; border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; padding: 0 8px; }
.pill { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--info-soft); color: #374151; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--stop-soft); color: var(--stop); }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.map-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 0.8fr); gap: 8px; align-items: center; font-size: 13px; }
.map-row > span { color: var(--muted); }
.map-row select, .map-row input.typed, .save-as input.typed { height: 32px; border: 1px solid var(--border);
  border-radius: var(--radius-s); background: #fff; padding: 0 8px; min-width: 0; }
.map-row select:focus, input.typed:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.map-actions { display: flex; gap: 8px; margin: 14px 0 10px; }
.summary-pills { display: flex; gap: 8px; margin: 6px 0 10px; }
.table-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.grid-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid-table th { position: sticky; top: 0; background: var(--info-soft); text-align: left; font-weight: 600; color: var(--muted);
  padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid-table tr.st-rejected td { background: var(--stop-soft); }
.grid-table tr.st-skipped td { color: var(--muted); }
.commit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.save-as { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.save-as input.typed { width: 220px; }
details.stale { margin-top: 12px; }
details.stale summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }

/* driver messages panel */
.sec.dispatch { border-color: #cfdcf0; }
.dispatch-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dm-reason { margin: 0; font-size: 12.5px; color: var(--stop); }
.dm-reasons { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.copy-buttons { display: flex; flex-direction: column; gap: 4px; }
.copy-chip { display: block; font-size: 12.5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--info-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-line { font-weight: 650; letter-spacing: .01em; }
.dispatch .preview { margin: 0; max-height: 200px; }
.dispatch-body .btn-quiet { align-self: flex-start; }

/* Telegram simulator (local test harness) */
.sim-banner { background: var(--warn-soft); color: var(--warn); font-size: 12.5px; padding: 6px 20px; border-bottom: 1px solid #f1d6ad; }
main.sim { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 14px; }
.sim-chat { width: min(760px, 100%); display: flex; flex-direction: column; min-height: 0; background: #e7ebf0;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sim-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 12px; background: var(--card);
  border-bottom: 1px solid var(--border); font-size: 13px; }
.sim-head select { height: 28px; border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; max-width: 260px; }
.sim-metrics { margin-left: auto; color: var(--muted); font-feature-settings: "tnum" 1; }
.sim-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sim-log.over { outline: 2px dashed var(--accent); outline-offset: -6px; }
.bubble { max-width: 86%; background: #fff; border-radius: 10px; padding: 8px 10px; border: 1px solid #dfe3e8; }
.bubble.me { align-self: flex-end; background: #e3f2e1; }
.bubble .who { font-size: 11.5px; font-weight: 650; color: var(--accent); margin-bottom: 3px; }
.bubble .reply-ref, .bubble .edited { font-size: 11px; color: var(--faint); }
.bubble .txt { white-space: pre-wrap; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bubble .doc { font-weight: 600; }
.kb { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.kb-row { display: flex; gap: 4px; }
.kb-btn { flex: 1; min-height: 30px; border: 0; border-radius: 6px; background: #eef3fa; color: var(--accent); font-size: 12.5px;
  font-weight: 600; cursor: pointer; padding: 4px 8px; }
.kb-btn:hover { background: var(--accent-soft); }
.sim-compose { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; background: var(--card); border-top: 1px solid var(--border); }
.sim-compose input[type=text] { flex: 1; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0 10px; }
.sim-attach { cursor: pointer; color: var(--accent); font-weight: 600; }
.sim-replying { width: 100%; font-size: 12px; color: var(--accent); }

.sim-groups { display: flex; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--border); }
.sim-groups input { flex: 1; height: 30px; border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0 8px; }
.sim-badge { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--info-soft); color: var(--muted); }
.sim-badge.active { background: var(--ok-soft); color: var(--ok); }
.sim-badge.suggested, .sim-badge.needs_review { background: var(--warn-soft); color: var(--warn); }
.offscreen { position: fixed; left: -9999px; top: 0; }

/* unified Load Sheet (2026-11-15) */
.f .tags { display: inline-flex; gap: 4px; }
.src { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.src.extracted { background: var(--info-soft); color: var(--accent); }
.src.manual { background: #eef6ee; color: var(--ok); }
.f.ro .ro-value { display: flex; align-items: center; min-height: 34px; padding: 0 9px; border: 1px dashed var(--border);
  border-radius: var(--radius-s); background: var(--page); color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.group-title { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin: 4px 2px 8px; }
.sec.internal { border-color: #e4cf9c; }
.sec.internal .sec-head { background: #fdf8ea; }
.internal-note { font-size: 12px; color: var(--warn); padding: 8px 14px 0; }
.miles-gap { margin: 10px 14px 0; }
.f > span.lbl { align-items: flex-start; }
.f .tags { flex: none; align-items: center; }
.f .tags .tag, .f .tags .src { line-height: 1.5; }

/* ---------------------------------------------------------------- Load Sheet (approved design, 2026-11-15) */
.ls { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px;
  line-height: 1.4; }
.ls-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); }
/* Headings (2026-11-16): one style, bold 700, 13px, .06em; LOAD SHEET a step larger. Same on every width. */
.ls-title { font-size: 17px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; color: var(--text); }
.ls-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.ls-meta div { display: flex; gap: 5px; }
.ls-meta dt { color: var(--muted); }
.ls-meta dt::after { content: ":"; }
.ls-meta dd { margin: 0; font-weight: 650; }
.ls-stops { list-style: none; margin: 0; padding: 0; }
.ls-stop { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent); margin: 8px 0 0; }
.ls-stop.delivery { border-left-color: var(--ok); }
.ls-kind { font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; color: var(--accent); }
.ls-stop.delivery .ls-kind { color: var(--ok); }
.ls-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 15px; font-weight: 650; }
.badge { font-size: 10.5px; font-weight: 750; letter-spacing: .05em; padding: 1px 6px; border-radius: 3px;
  background: var(--info-soft); color: var(--muted); }
.badge.strict { background: var(--stop-soft); color: var(--stop); }
.badge.appt { background: var(--accent-soft); color: var(--accent); }
.badge.fcfs { background: var(--ok-soft); color: var(--ok); }
.ls-fac { margin-top: 3px; font-weight: 650; }
/* Click-to-copy address (2026-11-16): the address itself is the control. */
.copy-address { display: flex; align-items: flex-start; gap: 6px; width: calc(100% + 12px); margin: 1px -6px 0;
  padding: 2px 6px; border: 0; border-radius: var(--radius-s); background: none; font: inherit; line-height: inherit;
  color: var(--text); text-align: left; cursor: pointer; transition: background-color .12s; }
.copy-address:hover { background: var(--accent-soft); }
.copy-address:active { background: var(--info-soft); }
.copy-address .ca-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-address .ca-icon { flex: none; width: 14px; height: 14px; margin-top: 3px; fill: none; stroke: currentColor;
  stroke-width: 1.4; color: var(--faint); transition: color .12s; }
.copy-address:hover .ca-icon, .copy-address:focus-visible .ca-icon { color: var(--accent); }
.copy-address .ca-note { flex: none; font-size: 12px; font-weight: 650; color: var(--ok); }
.copy-address .ca-note:empty { display: none; }
.copy-address.copied .ca-icon { color: var(--ok); }
.copy-address[hidden] { display: none; }
.ed-addr-copy { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (pointer: coarse) { .copy-address { padding: 6px; min-height: 36px; } .copy-address .ca-icon { margin-top: 2px; } }
.ls-kv, .ls-ins { margin-top: 3px; }
.ls .k { color: var(--muted); }
.ls-sec { padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); }
.ls-sec h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.3;
  text-transform: uppercase; color: var(--text); }
.ls-sec p { margin: 2px 0; }
.ls-sec ul { margin: 2px 0; padding-left: 18px; }
.ls-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ls-3 div { display: flex; flex-direction: column; }
.ls-3 .k { font-size: 12px; }
.ls-3 b { font-size: 15px; font-weight: 650; }
.ls-3.money b { color: var(--text); }
.copy-row { flex-wrap: wrap; }

/* Phones and narrow windows: one column, the PDF above the review. */
@media (max-width: 900px) {
  body { min-width: 0; }
  .work-body, .work.mode-sheet.pdf-open .work-body, .work.mode-edit.pdf-open .work-body { grid-template-columns: 1fr;
    grid-auto-rows: auto; overflow: auto; }
  .pdf-pane { height: 50vh; border-right: 0; border-bottom: 1px solid var(--border); }
  .sheet-pane, .form-pane { overflow: visible; }
  .sheet-wrap { padding: 12px 10px 20px; }
  .ls { padding: 14px; }
  .toolbar { flex-wrap: wrap; padding: 6px 10px; }
  .toolbar .file { flex-basis: 100%; }
  .tool-actions { flex-wrap: wrap; flex: 1; justify-content: flex-start; }
  .btn-primary { min-width: 0; flex: 1; }
  .copy-row { width: 100%; }
}
@media (max-width: 420px) {
  .ls-3 { grid-template-columns: 1fr; gap: 4px; }
  .ls-3 div { flex-direction: row; justify-content: space-between; }
  .top { padding: 0 12px; }
}
.btn-quiet:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) {
  .brand .sep, .brand .tool { display: none; }
  .top-right { gap: 10px; }
}
.copy-address:focus-visible, .btn-quiet:focus-visible, .review-item:focus-visible, .review-status summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Edit Load (2026-11-15): the Load Sheet's layout */
.save-state { font-size: 12px; white-space: nowrap; }
#load-form { max-width: 900px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 20px 18px; }
.work.pdf-open #load-form { max-width: none; }
.form-scroll { padding: 16px 16px 24px; }
.issues { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; }
.issues .sep { color: var(--faint); }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 2px 10px; cursor: pointer;
  font-size: 12.5px; font-weight: 650; }
.chip.missing, .chip.uncertain { color: var(--warn); background: var(--warn-soft); border-color: #f1d6ad; }
.chip.conflict, .chip.invalid { color: var(--stop); background: var(--stop-soft); border-color: #f4c7c1; }
.chip[aria-expanded="true"] { outline: 2px solid var(--accent-soft); }
.issue-list { flex-basis: 100%; display: grid; gap: 2px; margin-top: 6px; }
.ed-sec { padding: 12px 0 2px; border-top: 1px solid var(--line); }
.issues + .ed-sec { border-top: 0; }
.ed-sec h4, .ed-adv > summary { margin: 0 0 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.ed-row { display: grid; gap: 8px 12px; margin-bottom: 8px; }
.ed-row.r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ed-row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-row.r4 { grid-template-columns: 1fr 1fr 1.4fr 1fr; }
.ed-row.r5 { grid-template-columns: 2fr 1fr 1fr 1.6fr; }
#load-form .f { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin-bottom: 8px; }
#load-form .ed-row .f { margin-bottom: 0; }
#load-form .f .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-height: 18px; }
#load-form .f input, #load-form .f select, #load-form .f textarea { width: 100%; height: 34px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; }
#load-form .f textarea { height: auto; min-height: 34px; padding: 7px 9px; resize: vertical; line-height: 1.4; }
#load-form .f input:focus, #load-form .f select:focus, #load-form .f textarea:focus { border-color: var(--accent);
  outline: 2px solid var(--accent-soft); }
#load-form .f.ro .ro-value { min-height: 34px; display: flex; align-items: center; padding: 0 9px; font-weight: 650;
  background: var(--info-soft); border-radius: var(--radius-s); }
#load-form .hint { font-size: 11.5px; color: var(--faint); }
.f-weight { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 6px; }
.f.pair .pair-in { display: flex; align-items: center; gap: 4px; }
.f.pair .pi { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; }
.f.pair .pi input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-s); }
.f.pair .dash { color: var(--faint); }
.pi.missing input, .pi.uncertain input { border-color: #e7b46b; }
.pi.conflict input, .pi.invalid input { border-color: #e3867c; background: #fff7f6; }
.flag { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 0; padding: 0; cursor: pointer; font-size: 11px;
  font-weight: 800; line-height: 17px; text-align: center; color: #fff; background: var(--warn); }
.flag.conflict, .flag.invalid { background: var(--stop); }
.flag.uncertain { background: #d18a2b; }
.ed-stops { position: relative; padding-top: 4px; border-top: 1px solid var(--line); }
.ed-stops > .flag-anchor { position: absolute; right: 0; top: 6px; }
.ed-stop { margin: 8px 0; padding: 8px 0 4px 12px; border-left: 3px solid var(--accent); }
.ed-stop.delivery { border-left-color: var(--ok); }
.ed-stop.delivery .ls-kind { color: var(--ok); }
.ed-stop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ed-more > summary, .ed-adv > summary { cursor: pointer; font-size: 12px; color: var(--accent); margin: 2px 0 6px; }
.ed-more[open] > summary { margin-bottom: 8px; }
.ed-adv { padding-top: 12px; border-top: 1px solid var(--line); }
.ed-adv > summary { color: var(--muted); }
.warn-line { margin: 0 0 8px; font-size: 12.5px; color: var(--warn); }
.flag-pop { position: fixed; z-index: 20; width: min(360px, calc(100vw - 16px)); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.flag-pop:focus { outline: 2px solid var(--accent-soft); }
.pop-head { font-size: 12.5px; margin-bottom: 4px; }
.pop-head.missing b, .pop-head.uncertain b { color: var(--warn); }
.pop-head.conflict b, .pop-head.invalid b { color: var(--stop); }
.pop-why { margin: 0 0 6px; }
.pop-src { font-size: 12.5px; background: var(--info-soft); border-radius: var(--radius-s); padding: 6px 8px; margin-bottom: 8px; }
.pop-src .k { display: block; color: var(--muted); font-size: 11.5px; }
.pop-src q { font-style: italic; overflow-wrap: anywhere; }
.pop-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 700px) {
  .ed-row.r3, .ed-row.r4, .ed-row.r5 { grid-template-columns: 1fr 1fr; }
  .ed-row.r2 { grid-template-columns: 1fr; }
  #load-form { padding: 12px; }
  .form-scroll { padding: 10px 8px 20px; }
  .save-state { display: none; }
}
@media (max-width: 420px) {
  .ed-row.r3, .ed-row.r4, .ed-row.r5 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- daily fuel price reports (2026-11-15) */
.report-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.supplier-cards { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.supplier-card { min-width: 210px; flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
  background: var(--card); }
.supplier-card.stale { border-color: #f1d6ad; background: var(--warn-soft); }
.sc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-date { font-size: 15px; font-weight: 650; margin: 2px 0; }
.badge-state { font-size: 10.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px;
  border-radius: 3px; background: var(--info-soft); color: var(--muted); margin-left: 6px; white-space: nowrap; }
.badge-state.ok { background: var(--ok-soft); color: var(--ok); }
.badge-state.stale { background: var(--warn-soft); color: var(--warn); }
.upload-btn { display: inline-flex; align-items: center; justify-content: center; align-self: center; cursor: pointer; }
#reports-sec.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.drop-hint { margin: 8px 0 0; }
#report-results { display: grid; gap: 8px; margin-top: 10px; }
#report-results .banner { margin: 0; }
.banner.okb { background: var(--ok-soft); border-color: #bfe3cb; }
.banner .counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.banner details { margin-top: 6px; font-size: 12.5px; }
.banner details ul { max-height: 180px; overflow: auto; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.filters select, .filters input[type="search"] { height: 32px; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: #fff; padding: 0 8px; }
.filters input[type="search"] { width: 190px; }
.grid-table.prices td.num, .grid-table.prices th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-table.prices td.wiser { font-weight: 700; }
.grid-table.prices tr.stale-row td { color: var(--muted); background: #fffaf2; }
.table-wrap { max-height: 60vh; }
@media (max-width: 700px) {
  main.fuel { padding: 10px 8px 30px; }
  .supplier-cards { flex-basis: 100%; }
  .supplier-card { min-width: 0; flex-basis: 100%; }
  .upload-btn { width: 100%; }
  .filters select, .filters input[type="search"] { flex: 1 1 45%; width: auto; }
}

/* ---------------------------------------------------------------- fuel stops on the Load Sheet + sample page (2026-11-15) */
.ls-stop.fuel { border-left-color: var(--warn); }
.ls-stop.fuel .ls-kind { color: var(--warn); }
.ls-fuel-at { color: var(--text); font-weight: 650; letter-spacing: 0; }
.ls-fuel-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-weight: 650;
  font-variant-numeric: tabular-nums; }
.ls-fuel-line .sep { color: var(--faint); font-weight: 400; }
.ls-savings { background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: var(--ok); cursor: help;
  border-bottom: 1px dotted var(--ok); }
.ls-savings:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-savings-detail { margin: 6px 0 0; padding: 7px 10px; font-size: 12.5px; color: var(--muted); background: var(--info-soft);
  border-radius: var(--radius-s); }
.badge.sample { background: var(--warn-soft); color: var(--warn); }
body.sample-page { min-width: 0; }
.sample-banner { background: var(--warn-soft); color: #7a4306; font-size: 12.5px; padding: 8px 20px; border-bottom: 1px solid #f1d6ad; }
.sample-main { flex: 1; overflow: auto; }
.sample-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sample-copy { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sample-copy .copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sample-copy .copy-row button { white-space: nowrap; }
.sample-copy .preview { max-height: 420px; overflow: auto; white-space: pre-wrap; }
.offscreen { position: fixed; left: -9999px; top: 0; }

/* Preview of the copied Load Sheet (2026-11-16): markers faint, lines styled as Telegram shows them. */
.preview .mk { color: var(--faint); }
.preview b { font-weight: 700; }
.preview .tg-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; color: var(--stop); }
#preview, #driver-text { font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
.login-lead { margin: 0; font-size: 15px; font-weight: 600; }
.login-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.login-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.login form { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.login form[hidden], .login-actions[hidden] { display: none; }
.login-actions { display: flex; flex-direction: column; gap: 10px; }
.login-actions .btn-quiet { width: 100%; height: 40px; }
.login a.btn-primary { width: 100%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 400px) { .login { width: auto; margin: 0 12px; } }
.login .btn-primary, .login-actions .btn-quiet { flex: none; height: auto; min-height: 44px; padding: 8px 16px; }

/* automatic fuel plan note on the Load Sheet (2026-11-16) */
.ls-fuel-note { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0; padding: 8px 12px; font-size: 12.5px;
  border-radius: var(--radius-s); background: var(--warn-soft); color: #7a4306; }
.ls-fuel-note p { margin: 0; }
.ls-fuel-note.ready { background: var(--info-soft); color: var(--text); }
.ls-fuel-note.planning { flex-direction: row; align-items: center; gap: 8px; background: var(--info-soft); color: var(--muted); }

/* Fuel Optimizer workflow (2026-11-17) */
.steps { flex: none; display: flex; gap: 0; padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--border); }
.step { display: flex; align-items: center; gap: 10px; flex: 1; padding: 10px 12px; background: none; border: 0;
  border-bottom: 2px solid transparent; text-align: left; cursor: default; color: var(--muted); }
.step:first-child { cursor: pointer; }
.step .step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--card); }
.step .step-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.step .step-t b { font-weight: 600; color: var(--text); font-size: 13px; }
.step .step-t small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.active { border-bottom-color: var(--accent); }
.step.active .step-n { border-color: var(--accent); color: var(--accent); }
.step.done .step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.warn .step-n { background: var(--warn-soft); border-color: #f1d6ad; color: var(--warn); }
.empty-h, .prices-panel h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; margin: 0 0 10px; }
.prices-panel { width: 100%; max-width: 760px; margin: 0 auto 22px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.pc-head h3 { font-size: 14px; margin: 0; }
.pc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pc-row b { color: var(--text); font-weight: 600; }
.pc-row.warn b { color: var(--warn); }
.pc-note { font-size: 12px; margin: 4px 0 0; color: var(--warn); }
.pc-note.muted { color: var(--muted); }
.pc-upload { align-self: flex-start; margin-top: 6px; cursor: pointer; }
.pc-result { font-size: 12.5px; }
.pc-result p { margin: 4px 0 0; }
.pc-result .bad, .bad { color: var(--stop); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.none { background: var(--info-soft); color: var(--muted); }
.pill.stop-pill { background: var(--stop-soft); color: var(--stop); }
.small { font-size: 12px; }
.prices-dlg { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; width: 760px; max-width: 95vw; }
.prices-dlg::backdrop { background: rgba(16, 24, 40, .25); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dlg-head h2 { font-size: 16px; margin: 0; }
.tc, .fr { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; }
.tc-head, .fr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tc-head h3, .fr-head h3 { font-size: 14px; margin: 0; }
.tc-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tc-pick select { padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-s); min-width: 200px; }
.tc-risk { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.tc-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding: 3px 0;
  border-bottom: 1px solid var(--line); }
.tc-row b { color: var(--text); font-weight: 600; text-align: right; }
.tc-row.bad b { color: var(--stop); }
.tc-stop { color: var(--stop); font-size: 13px; margin: 8px 0 0; }
.tc .banner, .fr .banner { margin: 8px 0 0; }
.ls-audience { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.fr { margin-top: 14px; }
.fr-scroll { overflow-x: auto; }
.fr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fr-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fr-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fr-table .hist { color: var(--warn); font-weight: 600; }
.fr-totals { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 10px 0 0; font-size: 13px; }
.fr-totals div { display: flex; flex-direction: column; }
.fr-totals span { color: var(--muted); font-size: 12px; }
.fr-notes { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.fr-list { font-size: 13px; }
.empty { justify-content: flex-start; overflow-y: auto; }
.empty-h { width: min(760px, 100%); }
.empty .drop { width: min(760px, 100%); height: 200px; }

/* Unified workflow v2 (2026-11-17): four dispatcher steps, load status checklist, TEST copies, Telegram preview */
.step { cursor: default; }
.step-test { align-self: center; margin-left: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em; color: #fff; background: var(--stop); white-space: nowrap; }
.empty-lead { width: min(760px, 100%); margin: -4px auto 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tc-actions { display: flex; gap: 6px; align-items: center; }
.tc-test { border-color: var(--stop); border-left: 3px solid var(--stop); }
.ls-test { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-s); background: #fdecee; color: var(--stop);
  border: 1px solid #f3c2c8; }
.ls-test b { display: block; letter-spacing: .03em; }
.ls-test p { margin: 4px 0 0; font-size: 13px; }
.wf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.wf-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.wf-label { color: var(--muted); flex: 1; }
.wf-value { font-weight: 600; }
.wf-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--line); color: var(--muted); flex: none; }
.wf-item.ok .wf-dot { background: #e5f5ec; color: #16794a; }
.wf-item.bad .wf-dot { background: #fdecee; color: var(--stop); }
.wf-item.bad .wf-value { color: var(--stop); }
.wf-item.run .wf-dot { background: #fff4e0; color: #a35f00; }
.wf-more { margin-top: 8px; font-size: 12.5px; }
.tgp { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.tg-phone { background: #d9e4ec; border-radius: 14px; padding: 14px; max-width: 380px; }
.tg-bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 9px 11px; font: 14px/1.4 -apple-system, system-ui, sans-serif;
  color: #111; border: 1px solid #c9d6df; overflow-wrap: anywhere; }
.tg-bubble code.tg-addr { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef2f5; border-radius: 4px; padding: 0 3px;
  white-space: normal; overflow-wrap: anywhere; display: inline; }
.tg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sim-grid { margin: 12px 0; }
.sim-modes { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.sim-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); cursor: pointer; }
.sim-mode span { display: flex; flex-direction: column; gap: 2px; }
.sim-mode small { color: var(--muted); font-size: 12px; }
.sim-mode.off { opacity: .55; cursor: not-allowed; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .wf-list { grid-template-columns: 1fr; } }

/* Shared navigation (2026-11-17) */
.appnav { display: flex; gap: 2px; flex: 1; margin-left: 18px; overflow-x: auto; }
.appnav a { padding: 6px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 550; white-space: nowrap; }
.appnav a:hover { color: var(--text); background: var(--line); }
.appnav a[aria-current="page"] { color: var(--text); background: var(--line); }
