/* Schaeffler look: green #00893d, cool greys, Roboto, square corners. Built for gloves: big targets, big type. */
:root {
  --green: #00893d;
  --green-dark: #006f31;
  --green-tint: #e6f3ec;
  --text: #404547;
  --text-2: #646464;
  --text-3: #878d90;
  --line: #cdd3d6;
  --line-2: #dee4e7;
  --surface: #ebeef0;
  --surface-2: #f4f8fa;
  --white: #fff;
  --red: #ce0000;
  --red-tint: #fbeaea;
  --amber: #b26b00;
  --amber-tint: #fff4e0;
  --tap: 56px;
  --gutter: 16px;
  --top: 56px;
  --tabbar: 72px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface-2);
  padding-top: var(--top);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 3px solid var(--green);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: none; }
.wordmark { color: var(--green); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.brand-app { color: var(--text); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sap-pill {
  white-space: nowrap; flex: none;
  display: flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px;
  background: var(--green-tint); border: 1px solid #b7dcc7; color: var(--green-dark);
  font-size: 14px; font-weight: 500;
}
.sap-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(0, 137, 61, 0.2); }
.sap-pill.syncing .dot { animation: pulse 1s infinite; }
.sap-age { color: var(--text-2); font-weight: 400; }

/* ---------- tab bar (bottom on phones, rail on desktop) ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500;
  border-top: 4px solid transparent;
}
.tabbar svg { width: 28px; height: 28px; fill: currentColor; }
.tabbar a.active { color: var(--green); border-top-color: var(--green); background: var(--surface-2); }

/* ---------- layout ---------- */
main { padding: var(--gutter); max-width: 1320px; margin: 0 auto; outline: none; }
.stack > * + * { margin-top: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--text-2); }
.small { font-size: 15px; }

.card { background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 18px; }
.card.flush { padding: 0; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-title .ico { width: 26px; height: 26px; flex: none; color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--tap); padding: 0 20px;
  border: 0; border-radius: 0;
  background: var(--green); color: var(--white);
  font-size: 19px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background 0.15s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--text-3); cursor: default; }
.btn.xl { min-height: 72px; font-size: 22px; }
.btn.secondary { background: var(--white); color: var(--green); border: 2px solid var(--green); }
.btn.secondary:hover { background: var(--green-tint); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { background: var(--surface); }
.btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.linkbtn { background: none; border: 0; padding: 10px 0; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ---------- job cards (home) ---------- */
.jobs { display: grid; gap: 12px; }
.job {
  display: grid; grid-template-columns: 6px 1fr auto; align-items: stretch;
  background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; min-height: 96px;
}
.job .bar { background: var(--line); }
.job.p1 .bar { background: var(--red); }
.job.p2 .bar { background: var(--amber); }
.job .body { padding: 14px 16px; min-width: 0; }
.job .title { font-size: 19px; font-weight: 700; margin: 2px 0 4px; overflow-wrap: anywhere; }
.job .meta { font-size: 15px; color: var(--text-2); }
.job .go { display: flex; align-items: center; padding: 0 16px; color: var(--green); }
.job .go svg { width: 28px; height: 28px; fill: currentColor; }
.job.hero { border: 2px solid var(--green); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--surface); color: var(--text);
}
.tag.red { background: var(--red-tint); color: var(--red); }
.tag.amber { background: var(--amber-tint); color: var(--amber); }
.tag.green { background: var(--green-tint); color: var(--green-dark); }
.tag.grey { background: var(--surface); color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- equipment ---------- */
.eq-head { background: var(--white); border: 1px solid var(--line-2); border-top: 4px solid var(--green); padding: 18px; box-shadow: var(--shadow); }
.eq-head h1 { margin: 6px 0 4px; }
.eq-head .loc { color: var(--text-2); font-size: 16px; }
.charcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 12px; }
.charc { background: var(--surface-2); border: 1px solid var(--line-2); padding: 8px 10px; }
.charc .v { font-size: 18px; font-weight: 700; color: var(--text); }
.charc .l { font-size: 13px; color: var(--text-2); }
.alert {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; background: var(--amber-tint); border-left: 5px solid var(--amber);
}
.alert.red { background: var(--red-tint); border-left-color: var(--red); }
.alert svg { width: 28px; height: 28px; fill: var(--amber); }
.alert.red svg { fill: var(--red); }
.alert .t { font-weight: 700; font-size: 18px; }
.alert .m { font-size: 15px; color: var(--text-2); }

.eq-grid { display: grid; gap: 16px; }

/* ---------- briefing ---------- */
.brief-headline { font-size: 21px; font-weight: 700; padding: 16px 18px; background: var(--green); color: var(--white); }
.cause { margin-bottom: 14px; }
.cause:last-child { margin-bottom: 0; }
.cause .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.cause .why { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.meter { height: 12px; background: var(--surface); margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--green); }
.cause:not(:first-child) .meter > span { background: var(--text-3); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line-2); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; min-height: var(--tap); cursor: pointer; }
.checklist input { appearance: none; width: 32px; height: 32px; border: 2px solid var(--text-3); margin: 0; background: var(--white); display: grid; place-content: center; }
.checklist input:checked { background: var(--green); border-color: var(--green); }
.checklist input:checked::after { content: ''; width: 9px; height: 16px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.checklist input:checked ~ .p-name { text-decoration: line-through; color: var(--text-3); }
.p-name { font-weight: 500; }
.p-name .mat { display: block; font-size: 14px; color: var(--text-2); font-weight: 400; }
.p-qty { font-weight: 700; white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); width: 36px; height: 36px; display: grid; place-content: center; background: var(--surface); font-weight: 700; color: var(--green-dark); }
.safety { background: var(--red-tint); border-left: 5px solid var(--red); padding: 14px 16px; }
.safety h3 { color: var(--red); margin-bottom: 6px; }
.safety ul, .tip ul { margin: 0; padding-left: 20px; }
.tip { background: var(--green-tint); border-left: 5px solid var(--green); padding: 14px 16px; }
.tip h3 { color: var(--green-dark); margin-bottom: 6px; }
.estimate { display: flex; gap: 10px; align-items: baseline; }
.estimate .big { font-size: 28px; font-weight: 700; color: var(--text); }

.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 30px; padding: 2px 9px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--text-3); }
.chip.sap::before, .chip.order::before { background: #0a6ed1; }
.chip.manual::before { background: var(--green); }
.chip.note::before { background: var(--amber); }

/* skeleton while AI thinks */
.thinking { display: grid; gap: 10px; }
.thinking .line { height: 18px; background: linear-gradient(90deg, var(--surface) 0%, var(--line-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.thinking .line:nth-child(2) { width: 80%; }
.thinking .line:nth-child(3) { width: 60%; }
.think-label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--green-dark); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--green-tint); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }

/* ---------- history timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.timeline li:first-child { border-top: 0; }
.timeline .d { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.timeline .t { font-weight: 500; }
.timeline .s { font-size: 14px; color: var(--text-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--surface-2); border: 1px solid var(--line-2); padding: 10px; text-align: center; }
.stat .n { font-size: 26px; font-weight: 700; color: var(--green-dark); }
.stat .l { font-size: 13px; color: var(--text-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { min-height: 48px; border: 0; background: var(--white); font-weight: 500; font-size: 16px; }
.seg button.on { background: var(--green); color: var(--white); }

/* ---------- notes ---------- */
.note { padding: 12px 0; border-top: 1px solid var(--line-2); }
.note:first-child { border-top: 0; }
.note .who { font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.note.new { animation: flash 1.6s ease-out; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.msg { max-width: 88%; padding: 12px 14px; font-size: 18px; }
.msg.user { align-self: flex-end; background: var(--green); color: var(--white); }
.msg.ai { align-self: flex-start; background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.msg.ai p { margin: 0 0 8px; }
.msg.ai p:last-child { margin-bottom: 0; }
.msg.ai ul, .msg.ai ol { margin: 4px 0 8px; padding-left: 22px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { min-height: 48px; padding: 0 16px; border: 1px solid var(--green); background: var(--white); color: var(--green-dark); font-weight: 500; font-size: 16px; }
.composer {
  position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr var(--tap) var(--tap); gap: 8px;
  padding: 10px 0; background: var(--surface-2);
}
.composer input { min-height: var(--tap); padding: 0 14px; border: 2px solid var(--line); background: var(--white); font-size: 18px; min-width: 0; }
.composer input:focus { outline: none; border-color: var(--green); }
.iconbtn { width: var(--tap); height: var(--tap); display: grid; place-content: center; border: 0; background: var(--green); color: var(--white); }
.iconbtn.alt { background: var(--white); color: var(--green); border: 2px solid var(--green); }
.iconbtn.rec { background: var(--red); color: #fff; border-color: var(--red); animation: pulse 1s infinite; }
.iconbtn svg { width: 26px; height: 26px; fill: currentColor; }
.eq-mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line-2); margin-bottom: 12px; font-size: 16px; }
.eq-mini b { color: var(--text); }

/* ---------- dictation ---------- */
.mic-wrap { display: grid; justify-items: center; gap: 14px; padding: 18px 0 8px; text-align: center; }
.mic {
  width: 168px; height: 168px; border-radius: 50%; border: 0;
  background: var(--green); color: var(--white);
  display: grid; place-content: center;
  box-shadow: 0 0 0 10px var(--green-tint);
}
.mic svg { width: 72px; height: 72px; fill: currentColor; }
.mic.rec { background: var(--red); box-shadow: 0 0 0 10px var(--red-tint); animation: pulse 1.1s infinite; }
.mic-label { font-size: 22px; font-weight: 700; }
.mic-sub { font-size: 16px; color: var(--text-2); }
.timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; color: var(--red); }
textarea.big { width: 100%; min-height: 140px; padding: 14px; border: 2px solid var(--line); background: var(--white); font-size: 18px; resize: vertical; }
textarea.big:focus { outline: none; border-color: var(--green); }
.field { padding: 12px 0; border-top: 1px solid var(--line-2); }
.field:first-child { border-top: 0; padding-top: 0; }
.field .k { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.field .v { font-size: 18px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--text-2); background: var(--surface); padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-ok, .badge-bad {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 15px; font-weight: 500;
}
.badge-ok { background: var(--green-tint); color: var(--green-dark); }
.badge-bad { background: var(--red-tint); color: var(--red); }
.badge-ok svg, .badge-bad svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.progress-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.progress-steps span { flex: 1; height: 6px; background: var(--line-2); }
.progress-steps span.on { background: var(--green); }

/* SAP result */
.result { border: 1px solid var(--line-2); background: var(--white); box-shadow: var(--shadow); }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px; }
.result-head svg { width: 44px; height: 44px; }
.result.guard .result-head { background: linear-gradient(90deg, var(--green-tint), var(--amber-tint)); border-bottom: 3px solid var(--amber); }
.result.guard .result-head svg { fill: var(--green); }
.result.ok .result-head { background: var(--green-tint); border-bottom: 3px solid var(--green); }
.result.ok .result-head svg { fill: var(--green); }
.result.err .result-head { background: var(--red-tint); border-bottom: 3px solid var(--red); }
.result.err .result-head svg { fill: var(--red); }
.result-head .t { font-size: 19px; font-weight: 700; }
.result-head .s { font-size: 15px; color: var(--text-2); }
.result-body { padding: 16px 18px; display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 15px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
details.raw summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; color: var(--green-dark); }
pre.json { margin: 0; max-height: 360px; overflow: auto; background: #1f2427; color: #d7e0e4; padding: 14px; font-size: 13px; line-height: 1.5; }

/* ---------- documents ---------- */
.dropzone {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 26px 18px; border: 2px dashed var(--green); background: var(--white);
}
.dropzone.drag { background: var(--green-tint); }
.dropzone svg { width: 54px; height: 54px; fill: var(--green); }
.doc { background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.doc-head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px 18px; }
.doc-ico { width: 52px; height: 64px; background: var(--red); color: #fff; display: grid; place-content: center; font-weight: 700; font-size: 14px; }
.doc-head .t { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.doc-head .m { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.doc-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 18px 16px; }
.versions { border-top: 1px solid var(--line-2); }
.ver { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 15px; }
.ver:first-child { border-top: 0; }
.ver .vn { font-size: 20px; font-weight: 700; }
.ver.archived { color: var(--text-3); background: var(--surface-2); }
.ver.archived .vn { text-decoration: line-through; }
.ver a { min-height: 44px; display: inline-flex; align-items: center; }
.diff { margin: 0 18px 16px; border-left: 5px solid var(--green); background: var(--green-tint); padding: 14px 16px; }
.diff h3 { color: var(--green-dark); margin-bottom: 6px; }
.diff ul { margin: 8px 0 0; padding-left: 20px; }
.diff li { margin-bottom: 6px; }
.diff li .impact { display: block; font-size: 15px; color: var(--text-2); }
.ingest { background: var(--white); border: 2px solid var(--green); padding: 18px; }
.ingest ol { list-style: none; margin: 12px 0 0; padding: 0; }
.ingest li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; min-height: 44px; color: var(--text-3); }
.ingest li.on { color: var(--text); font-weight: 500; }
.ingest li.ok { color: var(--text); }
.ingest li .st { width: 26px; height: 26px; border: 2px solid var(--line); display: grid; place-content: center; }
.ingest li.on .st { border-color: var(--green); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.ingest li.ok .st { background: var(--green); border-color: var(--green); }
.ingest li.ok .st::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.bar-outer { height: 10px; background: var(--surface); margin-top: 12px; }
.bar-outer > span { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.25s; }
.footer-admin { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pin-row input, .pin-input { min-height: var(--tap); padding: 0 14px; border: 2px solid var(--line); font-size: 20px; letter-spacing: 0.3em; background: var(--white); min-width: 0; }
.pin-row .btn { width: auto; }

/* ---------- login ---------- */
.login { max-width: 420px; margin: 8vh auto 0; display: grid; gap: 16px; text-align: center; }
.login .wordmark { font-size: 34px; }
.pin-input { text-align: center; width: 100%; }
.err { color: var(--red); font-weight: 500; min-height: 24px; }

/* ---------- sheet / toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 82vh; overflow: auto;
  background: var(--white); border-top: 4px solid var(--green);
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  animation: up 0.2s ease-out;
}
.sheet-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; font-size: 22px; color: var(--text-2); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 50;
  max-width: calc(100% - 32px); padding: 14px 18px;
  background: #1f2427; color: #fff; font-size: 16px; box-shadow: var(--shadow);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.55; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes flash { from { background: var(--green-tint); } }

@media (max-width: 480px) {
  .brand-sep, .brand-app { display: none; }
  .sap-pill { padding: 0 10px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 17px; letter-spacing: 0.04em; }
  .sap-age { display: none; }
  .tabbar a { font-size: 12px; text-align: center; }
  h1 { font-size: 23px; }
}

/* ---------- tablet / desktop ---------- */
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .doc-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  :root { --tabbar: 0px; --rail: 104px; }
  body { padding-left: var(--rail); padding-bottom: 0; }
  .tabbar {
    inset: var(--top) auto 0 0; width: var(--rail); height: auto;
    grid-template-columns: 1fr; grid-auto-rows: 96px; align-content: start;
    border-top: 0; border-right: 1px solid var(--line); padding-bottom: 0;
  }
  .tabbar a { border-top: 0; border-left: 4px solid transparent; text-align: center; padding: 0 6px; }
  .tabbar a.active { border-left-color: var(--green); }
  main { padding: 28px 32px; }
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .eq-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .eq-grid > .side { position: sticky; top: calc(var(--top) + 20px); }
  .narrow { max-width: 820px; margin: 0 auto; }
  .composer { bottom: 0; }
  .sheet { left: 50%; right: auto; width: 640px; transform: translateX(-50%); bottom: auto; top: 12vh; max-height: 76vh; border: 1px solid var(--line); border-top: 4px solid var(--green); }
  .toast { bottom: 24px; }
}
