:root {
  color-scheme: light;
  --bg: #f5f7f5; --surface: #ffffff; --surface-soft: #f0f4f1;
  --ink: #1e2b25; --muted: #59675f; --line: #dfe6e1; --control: #87968e;
  --brand: #205641; --brand-hover: #163f30; --sidebar: #183e32;
  --accent: #dce9da; --accent-ink: #244436;
  --success: #eaf3eb; --success-ink: #2c6241; --warning: #fcf3dc; --warning-ink: #765514;
  --error: #fbeeed; --error-ink: #a33b34; --radius: 14px;
  --mine: #e8f0ff; --mine-ink: #1d4f9c; --mine-line: #9db8e8;
  --proposal: #f2ecfa; --proposal-ink: #65408c; --proposal-line: #9d7fb9;
  --shadow: 0 1px 3px rgb(25 44 35 / 4%), 0 12px 32px rgb(25 44 35 / 2%);
  --tour-scrim: rgb(13 30 23 / 68%);
  --font: "Inter", "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: var(--brand); text-underline-offset: 4px; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, .button, input, .choice-card { transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
button, .button, label.file-picker { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #527d5c; outline-offset: 4px; }
:target { scroll-margin-top: 24px; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { margin-bottom: 12px; font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -1px; text-wrap: balance; }
h2 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.55px; }
h3 { margin-top: 26px; margin-bottom: 14px; font-size: 16px; letter-spacing: -.2px; }
p { margin-bottom: 16px; }
small { font-size: 12px; }
form { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--surface); border: 1px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 18px 20px; color: var(--ink); border-right: 1px solid var(--line); overflow-y: auto; background: #fbfcfa; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 29px; font-weight: 650; letter-spacing: -1.1px; }
.brand-mark { display: grid; place-content: center; position: relative; width: 42px; height: 44px; border-radius: 12px; background: var(--brand); color: white; font-size: 33px; line-height: 1; font-weight: 650; letter-spacing: -4px; padding-right: 8px; }
.brand-mark > span { position: absolute; right: 9px; bottom: 12px; font-size: 28px; }
.brand-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 1.6px; }
.workspace-label { margin: 48px 14px 12px; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); }
.main-nav { display: grid; gap: 7px; }
.main-nav a { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--muted); text-decoration: none; border-radius: 9px; font-size: 14px; font-weight: 500; }
.main-nav a.active { color: var(--brand); background: #eaf2ed; font-weight: 600; }
.main-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.main-nav a.active:hover { background: #e3eee7; color: var(--brand); }
.main-nav .nav-help { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 0; color: var(--muted); background: transparent; border-radius: 9px; font: 500 14px/1.5 var(--font); text-align: left; box-shadow: none; }
.main-nav .nav-help:hover { background: var(--surface-soft); color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.session-note { margin: 0 4px 24px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; font-size: 12px; }
.session-note > .icon { margin-bottom: 10px; color: var(--brand); }
.session-note strong { display: block; font-size: 12px; font-weight: 500; }
.session-note p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 18px 6px 0; border-top: 1px solid var(--line); }
.avatar { display: inline-grid; place-content: center; width: 36px; height: 36px; background: #edf1ee; color: var(--brand); border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.sidebar-user strong, .sidebar-user small { display: block; font-size: 12px; }
.sidebar-user small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.sidebar-user form { margin-left: auto; }
.icon-button { display: inline-grid; place-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: inherit; border-radius: 8px; }
.icon-button:hover { background: var(--surface-soft); }
.app-frame { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.topbar { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 44px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.breadcrumb > span { margin: 0 12px; color: var(--control); }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.session-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-dot { width: 6px; height: 6px; background: #53794b; border-radius: 50%; }
.workspace-main { position: relative; width: 100%; max-width: 1600px; padding: 44px; margin: 0 auto; flex: 1; min-width: 0; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 44px 24px; color: var(--muted); font-size: 12px; }
.workspace-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.footer-separator { margin: 0 6px; color: var(--control); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.page-heading .intro { margin-bottom: 0; }
.heading-dot { color: var(--brand); }
.eyebrow-separator { padding: 0 8px; color: var(--control); }
.page-symbol { display: grid; place-content: center; background: #e8ece2; color: var(--brand); width: 64px; height: 64px; border: 1px solid #dbe2d3; border-radius: 18px; flex-shrink: 0; }
.eyebrow { display: block; margin-bottom: 12px; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); }
.eyebrow.light { color: #cbdbb6; }
.intro { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 650px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 17px; border: 1px solid #d8e0db; border-radius: 9px; background: var(--surface); color: var(--ink); font: 500 14px/1.5 var(--font); text-decoration: none; }
.button:hover, button:hover { background: var(--surface-soft); border-color: var(--control); }
.button.primary, button.primary { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 7px rgb(18 57 41 / 10%); }
.button.primary:hover, button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button:disabled { cursor: not-allowed; opacity: .5; }
form[aria-busy=true] button:disabled { cursor: wait; opacity: .7; }
.button.quiet { background: transparent; border-color: transparent; }
.button.quiet:hover { background: var(--error); border-color: #efdbd6; }
.danger { color: var(--error-ink); }
.full-width { width: 100%; }
label { font-size: 13px; font-weight: 500; }
input:not([type=radio]):not([type=file]):not([type=hidden]) { min-width: 0; max-width: 100%; width: 100%; border: 1px solid var(--control); border-radius: 8px; padding: 12px 14px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; min-height: 46px; }
input:hover { border-color: var(--brand); }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(33 77 63 / 8%); }
input[aria-invalid=true] { border-color: var(--error-ink) !important; background: var(--error) !important; }
.msg { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 22px; overflow-wrap: anywhere; }
.msg .icon { margin-top: 2px; }
.msg.ok { color: var(--success-ink); background: var(--success); border-color: #d5e7d7; }
.msg.err { color: var(--error-ink); background: var(--error); border-color: #f0d9d6; }
.error-summary { display: block; }
.error-summary ul { margin-bottom: 0; padding-left: 22px; }
.hint, .small, .muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.hint { margin-top: 14px; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.upload-card { padding: 32px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.section-heading > .step-number { margin-top: 2px; width: 38px; height: 38px; color: var(--brand); background: var(--surface-soft); }
.section-heading h2 { margin: 1px 0 7px; font-size: 19px; letter-spacing: -.4px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 760px; }
.step-number { display: inline-grid; place-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.drop { padding: 32px 24px 28px; text-align: center; background: #fafcfb; border: 1.5px dashed #a3b4aa; border-radius: 12px; transition: background 160ms, border-color 160ms; }
.drop.over { background: #eaf2e4; border-color: var(--brand); }
.upload-symbol { display: grid; place-content: center; width: 56px; height: 56px; margin: 0 auto 22px; background: #edf3ef; border: 1px solid #dce6df; border-radius: 14px; color: var(--brand); }
.drop h3 { margin: 0 0 8px; font-size: 19px; font-weight: 550; letter-spacing: -.4px; }
.drop > p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 0 auto 22px; }
.file-picker { position: relative; overflow: hidden; border-color: #a6b39e; box-shadow: var(--shadow); }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 3px solid #527d5c; outline-offset: 4px; }
.drop > .file-limits { margin: 16px auto 0; font-size: 12px; }
.picked-files { padding: 0; margin: 12px 0 0; list-style: none; }
.picked-files li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px 12px; margin-top: 8px; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.file-type { display: inline-grid; place-content: center; width: 36px; height: 40px; border-radius: 6px; background: #ecf2e7; color: var(--brand); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.file-description { flex: 1; min-width: 0; }
.file-description strong { display: block; font-weight: 500; }
.file-description small { display: block; font-size: 12px; color: var(--muted); }
.file-remove { width: 44px; min-height: 44px; padding: 0; border-color: transparent; background: transparent; font-size: 20px; }
/* Language switch: native names (not DE/IT/EN codes); active = weight + fill, not colour alone. */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .2px; text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { background: var(--surface-soft); color: var(--ink); }
.lang-switch a.on { background: #edf3ef; color: var(--brand); box-shadow: inset 0 0 0 1px #dce6df; }
.login-form-wrap .lang-switch { margin-bottom: 28px; }
.numbering-fieldset { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin: 32px 0 0; min-inline-size: 0; }
.numbering-fieldset legend { padding: 0; float: left; display: flex; align-items: center; gap: 12px; width: 100%; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.required-label { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.numbering-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; clear: both; }
.choice-card { display: flex; align-items: center; gap: 10px; padding: 16px 12px; border: 1px solid var(--control); border-radius: 9px; cursor: pointer; }
.choice-card input { margin: 0; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.choice-card strong { display: block; font-size: 12px; font-weight: 600; }
.choice-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
.choice-card > .icon { margin-left: auto; color: var(--brand); visibility: hidden; }
.choice-card:has(input:checked) { background: #f1f6eb; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.choice-card:has(input:checked) > .icon { visibility: visible; }
.choice-card:hover { background: var(--surface-soft); }
.upload-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.upload-submit > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.previous-batch { padding-top: 22px; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 12px; }
.previous-batch a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }
.previous-batch span { display: block; margin-top: 6px; color: var(--muted); }
.guide-card { padding: 28px 24px; box-shadow: none; }
.guide-card .eyebrow { font-size: 12px; letter-spacing: 1.25px; }
.guide-card h2 { margin: 10px 0 26px; font-size: 22px; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: flex; gap: 13px; padding-bottom: 25px; position: relative; }
.workflow-list li:last-child { padding-bottom: 0; }
.workflow-list li > span { display: inline-grid; place-content: center; width: 26px; height: 26px; background: var(--surface); color: var(--brand); border: 1px solid #c9d8ce; border-radius: 50%; flex-shrink: 0; font-size: 11px; font-weight: 600; z-index: 1; }
.workflow-list li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 25px; bottom: 0; width: 1px; background: var(--line); }
.workflow-list strong { display: block; font-size: 13px; font-weight: 600; margin: 3px 0 7px; }
.workflow-list p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.privacy-card { margin-top: 22px; padding: 20px 24px; border-radius: var(--radius); color: var(--muted); }
.privacy-card h3 { margin: 14px 0 10px; font-size: 14px; color: var(--ink); }
.privacy-card p { font-size: 12px; line-height: 1.8; }
.privacy-card > span { display: block; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; }
.numbering-info { margin-top: 20px; font-size: 12px; color: var(--muted); }
.numbering-info summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.numbering-info summary::after { content: "+"; margin-left: auto; font-size: 19px; color: var(--brand); }
.numbering-info[open] summary::after { content: "−"; }
.numbering-info summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.numbering-info .hint { margin-top: 4px; }
.auth-main { padding: 0; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; padding: 16px; gap: 16px; background: white; }
.login-story { padding: 40px clamp(32px, 5.5vw, 88px) 32px; display: flex; flex-direction: column; color: #f4f6ed; background: var(--sidebar); border-radius: 18px; overflow: hidden; }
.login-story .brand-mark { background: #e0ebdf; color: var(--sidebar); }
.login-story .brand-sub { color: #becfc5; }
.login-story .brand { font-size: 31px; }
.story-content { margin: auto 0; padding: 56px 0 32px; }
.story-content h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.07; letter-spacing: -2.5px; margin: 22px 0; font-weight: 500; }
.story-content > p { color: #c6d6ca; font-size: 15px; line-height: 1.8; max-width: 360px; }
.story-footer { font-size: 12px; color: #c6d6ca; margin: 36px 0 0; }
.review-illustration { position: relative; max-width: 360px; padding: 24px; margin: 38px 0 5px; background: #fcfdfb; color: var(--ink); border: 1px solid #e4e9dc; border-radius: 12px; box-shadow: 0 16px 40px rgb(4 20 12 / 12%); }
.illustration-head { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.illustration-head > .icon { margin-left: auto; color: var(--muted); }
.illustration-mark { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.illustration-rule { border-top: 1px solid #dbe1d3; margin: 18px 0; }
.illustration-row { display: flex; align-items: center; gap: 14px; margin: 15px 0; }
.illustration-row > span { color: var(--muted); font-size: 12px; }
.illustration-row i { width: 62%; height: 7px; border-radius: 4px; background: #dce4d4; }
.illustration-row:nth-last-child(3) i { width: 43%; }
.illustration-row b { display: inline-grid; place-content: center; margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #e0ead4; color: var(--brand); }
.illustration-row b.illustration-open { background: #f4e5bf; color: var(--warning-ink); font-size: 12px; }
.illustration-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid #dbe1d3; padding-top: 14px; margin-top: 18px; font-size: 12px; }
.illustration-clock { display: none; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 40px 32px; background: var(--surface); }
.login-form-wrap { width: 100%; max-width: 380px; margin: auto 0; }
.login-form-wrap h2 { font-size: 34px; letter-spacing: -1.2px; margin: 15px 0 12px; }
.login-form .full-width { margin-top: 26px; min-height: 48px; justify-content: space-between; padding: 12px 18px; }
.login-form label { display: block; margin: 22px 0 8px; font-size: 13px; }
.login-privacy { display: flex; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 36px; color: var(--muted); }
.login-privacy > .icon { color: var(--brand); margin-top: 3px; }
.login-privacy p { font-size: 12px; line-height: 1.8; margin-bottom: 0; }
.login-privacy strong { color: var(--ink); font-weight: 500; }
.login-footnote { font-size: 12px; color: var(--muted); margin: 60px 0 0; }
/* Review pages share the same calm, compact table language. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.actions .button { min-height: 42px; }
.scroll { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 11px; margin: 22px 0; max-width: 100%; overscroll-behavior-inline: contain; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 15px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { background: #f8faf9; color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background-color: #f8fbf9; }
td.n { text-align: right; white-space: nowrap; }
th:first-child, td:first-child { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--success-ink); background: var(--success); }
.b-abweichung { color: var(--warning-ink); background: var(--warning); }
.b-fehler { color: var(--error-ink); background: var(--error); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 26px 0; background: #edf0ef; border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--muted); padding: 11px 18px; border-radius: 7px; }
.tabs a:hover { background: #e6ebe8; }
.tabs a.on { background: white; color: var(--brand); font-weight: 600; box-shadow: 0 1px 5px rgb(25 52 35 / 7%); }
tr.we td { color: var(--muted); background: #fafbf8; }
td.obs { color: var(--muted); font-style: italic; }
td.open, tbody tr:hover td.open { background: var(--warning); color: var(--warning-ink); }
td.conf, tbody tr:hover td.conf { background: #f1f7ee; }
td.small { min-width: 180px; }
.days td { padding: 9px 12px; }
.days input.corr { width: 90px !important; min-height: 44px !important; padding: 8px !important; border-color: #9e804d !important; border-radius: 6px !important; background: #fffaf0 !important; text-align: right; font-variant-numeric: tabular-nums; }
.days input.note { width: 180px !important; min-height: 44px !important; padding: 8px !important; border-radius: 6px !important; }
.foot-table { width: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.foot-table td:first-child { white-space: normal; }
.foot-table tr:nth-child(2) td { background: #f0f5e9; color: var(--brand); font-weight: 600; }
.foot-table td.n { min-width: 120px; }
.live { list-style: none; padding: 0; margin: 24px 0; }
.live li { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.live .name { flex: 1; min-width: 150px; overflow-wrap: anywhere; }
.live .state { color: var(--muted); font-size: 12px; }
.live .s-done { color: var(--success-ink); }
.live .s-error { color: var(--error-ink); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.summary-card { padding: 22px; }
.summary-card .metric-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.metric-value { display: block; font-size: 29px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 3px; color: var(--muted); }
.metric-note { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.table-card { padding: 0; overflow: hidden; }
.card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 24px 26px 0; }
.card-heading h2 { font-size: 17px; margin: 0; }
.card-heading p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.table-card .scroll { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-bottom: 0; }
.table-note { padding: 16px 26px; margin: 0; font-size: 12px; background: #fafbf8; border-top: 1px solid var(--line); color: var(--muted); }
.employee-name { font-weight: 600; }
.employee-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 12px; font-weight: 600; text-decoration: none; }
.employee-heading h1 { overflow-wrap: anywhere; }
.employee-heading .badge { vertical-align: middle; margin-left: 10px; }
.employee-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12px; }
.source-line { padding: 14px 18px; font-size: 12px; color: var(--muted); background: #f0f2eb; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; text-decoration: none; }
.download-section { border-top: 1px solid var(--line); margin-top: 24px; padding: 4px 0; }
.download-section > summary { cursor: pointer; padding: 18px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.download-section > summary:hover { color: var(--brand); }
.download-section .actions { margin-bottom: 20px; }
.progress-track { height: 5px; border-radius: 5px; background: #e4ebdd; margin: 24px 0 12px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: #527044; transition: width 200ms ease; }
.progress-track[data-percent='100'] .progress-fill { width: 100%; }
.processing-card { max-width: 880px; }
.processing-status { color: var(--muted); font-size: 12px; }
.processing-status { min-block-size: 2.5em; }
.completion-slot { min-height: 60px; }
.completion-slot p { margin-bottom: 0; }
.file-status { display: grid; align-content: center; gap: 6px; width: 150px; min-height: 42px; flex-shrink: 0; }
.file-status .state-placeholder { width: 72px; height: 7px; border-radius: 4px; }
.live li:not(.is-pending) .state-placeholder { visibility: hidden; }
.feedback-slot { min-height: 74px; display: flow-root; }
.batch-progress { display: block; width: 100%; height: 6px; margin: 28px 0 14px; border: 0; border-radius: 6px; overflow: hidden; appearance: none; accent-color: var(--brand); background: #e4ebdd; }
.batch-progress::-webkit-progress-bar { background: #e4ebdd; }
.batch-progress::-webkit-progress-value { background: var(--brand); }
.batch-progress::-moz-progress-bar { background: var(--brand); }
.save-feedback { position: sticky; bottom: 16px; background: var(--surface-soft); border-color: var(--line); box-shadow: var(--shadow); margin-top: 20px; margin-bottom: 0; }
.empty-state { padding: 60px 24px; text-align: center; }
.empty-state .icon { color: var(--brand); margin-bottom: 20px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.user-guide { width: min(980px, calc(100% - 40px)); height: min(900px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 90px rgb(10 30 20 / 25%); overflow: hidden; }
.user-guide[open] { display: flex; flex-direction: column; }
.user-guide::backdrop { background: rgb(15 35 27 / 65%); }
.guide-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px 24px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.guide-header .eyebrow { margin-bottom: 6px; }
.guide-header h2 { margin: 0; font-size: 25px; }
.guide-header .icon-button { flex-shrink: 0; border: 1px solid var(--control); }
.guide-header .icon-button:hover { background: #e8eee3; }
.guide-body { flex: 1; min-height: 0; max-height: calc(100dvh - 180px); overflow: auto; overscroll-behavior: contain; padding: 28px 32px 32px; }
.guide-start { display: flex; align-items: flex-start; gap: 16px; padding: 22px; border-radius: 12px; background: #edf4e6; margin: 24px 0; }
.guide-start-icon { display: grid; place-content: center; height: 38px; width: 38px; flex-shrink: 0; color: var(--brand); background: white; border: 1px solid #cad9bc; border-radius: 10px; }
.guide-start h3 { margin: 0 0 7px; }
.guide-start p { margin: 0; font-size: 14px; color: var(--brand); }
.guide-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.guide-toc a { display: flex; align-items: center; min-height: 40px; font-size: 13px; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.guide-toc a:hover { background: var(--surface-soft); text-decoration: underline; }
.guide-section { scroll-margin-top: 24px; border-bottom: 1px solid var(--line); padding: 30px 0; }
.guide-section h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 19px; }
.guide-section p, .guide-section li, .guide-section dd { font-size: 14px; line-height: 1.85; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-section ol, .guide-section ul { padding-left: 24px; margin: 0 0 20px; }
.guide-section li { padding-left: 4px; margin-bottom: 12px; }
.guide-section li::marker { color: var(--brand); font-weight: 600; }
.guide-note { padding: 16px 18px; background: var(--surface-soft); border-left: 3px solid #94ab79; border-radius: 0 8px 8px 0; color: var(--muted); font-size: 13px !important; }
.guide-status-list > p { display: flex; gap: 14px; align-items: flex-start; }
.guide-status-list .badge { margin-top: 5px; flex-shrink: 0; }
.guide-example { border: 1px solid #dccca6; background: #fffaf0; padding: 18px; border-radius: 10px; margin: 22px 0; font-size: 14px; }
.guide-example p { margin: 8px 0 0; }
.guide-definitions { margin: 20px 0; }
.guide-definitions > div { display: grid; grid-template-columns: 175px minmax(0, 1fr); padding: 12px 0; gap: 16px; border-bottom: 1px solid var(--line); }
.guide-definitions dt { font-size: 12px; font-weight: 600; color: var(--brand); padding-top: 4px; }
.guide-definitions dd { margin: 0; }
.guide-glossary .guide-definitions { padding: 0 16px 12px; margin-top: 0; }
.guide-section details { border: 1px solid var(--line); border-radius: 9px; margin: 10px 0; }
.guide-section summary { cursor: pointer; padding: 16px; font-size: 14px; font-weight: 500; }
.guide-section summary:hover { background: var(--surface-soft); }
.guide-section summary:focus-visible { outline: 3px solid #527d5c; outline-offset: -3px; border-radius: 8px; }
.guide-section details[open] summary { color: var(--brand); border-bottom: 1px solid var(--line); }
.guide-section details p { padding: 16px; }
.guide-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; }
.guide-footer p { max-width: 410px; color: var(--muted); font-size: 12px; margin: 0; }
kbd { padding: 2px 6px; border: 1px solid var(--control); border-radius: 4px; background: var(--surface-soft); font: inherit; font-size: 12px; }
/* --- monthly flow: summary, overtime table, status page --- */
.value-note { margin-bottom: 28px; }
.value-note h2 { font-size: 17px; }
.value-note p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.button.big { min-height: 50px; padding: 13px 22px; font-size: 14px; }
.button.small { min-height: 44px; padding: 9px 12px; }
.numbering-auto { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; }
.light-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.review-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.review-total { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.total-symbol { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.total-good { color: var(--success-ink); background: var(--success); }
.total-review { color: var(--warning-ink); background: var(--warning); }
.total-error { color: var(--error-ink); background: var(--error); }
.total-label { display: block; color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.total-value { font-weight: 550; font-size: 30px; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.count-tag { display: inline-grid; place-content: center; min-width: 30px; height: 28px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 7px; font-size: 12px; color: var(--muted); }
.employee-identity { display: flex; align-items: center; gap: 12px; }
.employee-avatar { display: grid; place-content: center; width: 38px; height: 38px; border: 1px solid #dde7e0; border-radius: 11px; background: #f0f5f1; font-size: 14px; color: var(--brand); flex-shrink: 0; }
.month-table td { vertical-align: middle; padding-block: 18px; }
.employee-link { color: var(--ink); text-decoration: none; }
.employee-link:hover { color: var(--brand); text-decoration: underline; }
.review-link { color: var(--brand); border-color: #c3d5c9; background: #f4f8f5; }
.employee-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 24px 0; }
.employee-filters { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.employee-filters button { min-height: 44px; padding: 8px 12px; border-color: transparent; background: transparent; font-size: 13px; color: var(--muted); }
.employee-filters button span { font-size: 12px; font-variant-numeric: tabular-nums; }
.employee-filters button[aria-pressed=true] { color: var(--brand); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 3px rgb(25 44 35 / 5%); font-weight: 600; }
.employee-filters button:hover { color: var(--ink); border-color: var(--control); }
.employee-search { display: flex; align-items: center; gap: 10px; flex: 0 1 300px; border: 1px solid var(--control); border-radius: 9px; padding-inline: 12px; color: var(--muted); background: var(--surface); }
.employee-search:focus-within { outline: 3px solid #527d5c; outline-offset: 2px; }
#employee-search { border: 0; min-height: 44px; padding: 10px 0; border-radius: 0; font-size: 14px; background: transparent; outline: none; box-shadow: none; }
.employee-count { margin: 12px 24px 16px; font-size: 12px; color: var(--muted); }
.employee-count:not([hidden]) + .scroll { margin-top: 0; }
.employee-empty { padding: 42px 24px; text-align: center; border-top: 1px solid var(--line); }
.employee-empty > .icon { color: var(--muted); }
.employee-empty h3 { margin: 16px 0 8px; }
.employee-empty p { color: var(--muted); font-size: 14px; }
.month-table .employee-name small, .month-table td > small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.month-table .badge { font-size: 12px; padding: 5px 10px; border: 1px solid rgb(0 0 0 / 4%); }
.light-detail { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; max-width: 360px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .button + .button { margin-left: 8px; }
.numbering-choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }
select { min-height: 38px; padding: 6px 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
select:focus-visible { outline: 3px solid #527d5c; outline-offset: 2px; }
.month-details { margin-top: 22px; padding: 0; }
.month-details > summary { cursor: pointer; padding: 18px 24px; font-weight: 600; font-size: 14px; }
.month-details > :not(summary) { margin-left: 24px; margin-right: 24px; }
.month-details[open] > summary { border-bottom: 1px solid var(--line); }
table.ot td { padding: 8px 10px; }
.ot input.ot-in:not([type=radio]):not([type=file]):not([type=hidden]) { width: 86px; min-width: 86px; min-height: 44px; padding: 8px; text-align: right; border: 1px dashed #a88b4e; border-radius: 6px; background: #fffcf4; font-size: 13px; font-variant-numeric: tabular-nums; }
.ot input.ot-in.mine:not([type=radio]):not([type=file]):not([type=hidden]) { border: 1px solid var(--mine-line); background: var(--mine); color: var(--mine-ink); font-weight: 600; }
.ot th { min-width: 62px; }
.wide .ot th:first-child, .wide .ot td:first-child, .wide .days th:first-child, .wide .days td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 var(--line); }
.wide .ot th:first-child, .wide .days th:first-child { background: #f8faf9; z-index: 2; }
.wide .scroll { scroll-padding-inline: 130px 16px; }
td.mine, tbody tr:hover td.mine { background: var(--mine); color: var(--mine-ink); }
td.suggestion, tbody tr:hover td.suggestion { background: var(--proposal); color: var(--proposal-ink); }
.ot input.ot-in.suggestion:not([type=radio]):not([type=file]):not([type=hidden]) { color: var(--proposal-ink); background: var(--proposal); border: 1px solid var(--proposal-line); }
.quarter-proposal { font-weight: 600; }
.confirm-suggestions { display: block; margin-top: 10px; border-color: var(--proposal-line); color: var(--proposal-ink); background: var(--proposal); font-size: 12px; min-height: 44px; }
.confirm-suggestions:hover { border-color: var(--proposal-ink); background: #e9dff5; }
.proposal-legend { padding-left: 12px; border-left: 3px solid var(--proposal-line); }
.ot td.conf .calc { margin-right: 6px; }
.change-cell { min-height: 28px; padding: 2px 8px; font-size: 11px; color: var(--muted); border-color: transparent; background: transparent; text-decoration: underline; }
.change-cell:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.check { font-weight: 700; }
.check .ok-mark, .check.is-ok { color: var(--success-ink); }
.check .diff-mark, .check.is-diff { color: var(--error-ink); }
.status-cell { white-space: nowrap; font-size: 12px; }
tr.st-offen .status-cell { color: var(--warning-ink); font-weight: 600; }
tr.st-von-Dominik .status-cell { color: var(--mine-ink); font-weight: 600; }
td.facts { min-width: 280px; line-height: 1.7; }
.holiday-toggle { display: inline-grid; place-content: center; min-width: 44px; min-height: 36px; cursor: pointer; }
.holiday-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.gis-details { margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 16px; }
.gis-details > summary { cursor: pointer; padding: 12px 0; font-size: 13px; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--success); color: var(--success-ink); font-size: 12px; font-weight: 600; }
.live-pill .status-dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lane { background: #eef2ea; border: 1px solid #dfe6d9; border-radius: 14px; padding: 14px; min-width: 0; }
.lane h2 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 2px 4px 12px; }
.lane-count { display: inline-grid; place-content: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--surface); font-size: 12px; color: var(--muted); }
.prio-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.prio-card.mine { border-color: var(--mine-line); box-shadow: inset 3px 0 var(--mine-line), var(--shadow); }
.prio-card.internal { background: #fbfbf6; border-style: dashed; }
.prio-card h3 { font-size: 14px; line-height: 1.45; margin: 10px 0 6px; }
.prio-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.prio-top { display: flex; align-items: center; gap: 6px; }
.prio-date { margin-left: auto; font-size: 11px; color: var(--muted); }
.status-pill { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.s-open { background: var(--warning); color: var(--warning-ink); }
.s-asked { background: var(--mine); color: var(--mine-ink); }
.s-progress { background: #efe7fb; color: #5a3a8c; }
.s-done { background: var(--success); color: var(--success-ink); }
.internal-tag { font-size: 11px; color: var(--muted); border: 1px dashed var(--control); border-radius: 6px; padding: 1px 6px; }
.owners { display: flex; flex-wrap: wrap; gap: 5px; }
.owner { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: #f0f2eb; color: var(--ink); }
.owner-dominik { background: var(--mine); color: var(--mine-ink); font-weight: 600; }
.docs-card { margin-top: 26px; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0; }
.doc-tabs a { padding: 8px 12px; border-radius: 7px; font-size: 12px; text-decoration: none; background: #f0f2eb; }
.doc-tabs a.on { background: var(--brand); color: #fff; }
.doc-view { border-top: 1px solid var(--line); padding-top: 20px; max-width: 980px; font-size: 14px; overflow-wrap: anywhere; }
.doc-view table { margin: 14px 0; } .doc-view pre { overflow: auto; background: #f5f7f2; padding: 12px; border-radius: 8px; }
@media (max-width: 1200px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lanes { grid-template-columns: 1fr; } .row-actions { white-space: normal; text-align: left; } .row-actions .button { margin: 4px 0 0; } }
@media (prefers-reduced-motion: reduce) { .live-pill .status-dot { animation: none; } }
@media (max-width: 850px) { .main-nav .nav-help { font-size: 12px; min-height: 44px; padding: 10px 12px; } }
@media (max-width: 600px) {
  .main-nav .nav-help { font-size: 12px; min-height: 44px; padding: 10px 12px; }
  .user-guide { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .guide-header { padding: 20px 18px; gap: 10px; }
  .guide-header h2 { font-size: 21px; }
  .guide-header .eyebrow { font-size: 12px; letter-spacing: 1px; }
  .guide-body { padding: 20px 18px; max-height: calc(100dvh - 160px); }
  .guide-toc { grid-template-columns: 1fr; padding: 12px; }
  .guide-start { padding: 16px; gap: 12px; }
  .guide-section h3 { font-size: 17px; gap: 10px; }
  .guide-definitions > div { grid-template-columns: 1fr; gap: 3px; }
  .guide-status-list > p { flex-wrap: wrap; gap: 6px; }
  .guide-footer .button { width: 100%; }
}
.print { background: var(--surface); padding: 40px; max-width: 1600px; margin: 0 auto; }
.print section.emp { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--brand); }
.print h1 { margin-top: 20px; }
.print .noprint { font-size: 12px; }
.print .scroll { border-radius: 6px; }
@media (min-width: 1600px) { .upload-layout { grid-template-columns: minmax(0, 1fr) 340px; } .workspace-main { padding-top: 48px; } }
@media (max-width: 1200px) {
  .app-body { grid-template-columns: 215px minmax(0, 1fr); }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .workspace-main { padding: 30px 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .upload-layout { grid-template-columns: minmax(0, 1fr); }
  .upload-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .privacy-card { margin: 0; }
  .summary-grid { gap: 12px; }
  .summary-card { padding: 18px; }
}
@media (max-width: 850px) {
  .app-body { display: block; }
  .sidebar { position: static; height: auto; padding: 18px 24px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { font-size: 24px; margin-right: auto; }
  .brand-mark { width: 36px; height: 38px; font-size: 29px; border-radius: 10px; }
  .brand-mark > span { right: 8px; bottom: 10px; }
  .brand-sub { display: none; }
  .main-nav { display: flex; flex-wrap: nowrap; gap: 4px; order: 2; width: 100%; overflow-x: auto; scrollbar-width: thin; padding-block: 4px; scroll-padding-inline: 4px; }
  .main-nav a, .main-nav .nav-help { flex-shrink: 0; white-space: nowrap; }
  .main-nav a { font-size: 12px; min-height: 44px; padding: 10px 12px; }
  .main-nav a.active { box-shadow: none; }
  .workspace-label, .session-note, .sidebar-user > .avatar, .sidebar-user > span { display: none; }
  .sidebar-bottom { padding: 0; margin: 0; }
  .sidebar-user { padding: 0; border: 0; }
  .app-frame { min-height: calc(100dvh - 150px); }
  .topbar { min-height: 65px; }
  .login-layout { grid-template-columns: .85fr 1fr; }
  .login-story { padding: 35px 28px; }
  .story-content h1 { font-size: 42px; }
  .story-content > p { font-size: 13px; }
  .login-panel { padding: 44px 26px; }
  .login-form-wrap h2 { font-size: 29px; }
}
@media (max-width: 600px) {
  .workspace-main { padding: 26px 18px; }
  .workspace-footer { padding: 18px; font-size: 12px; }
  .sidebar { padding: 16px 18px; gap: 12px; }
  .topbar { padding: 12px 18px; gap: 10px; }
  .breadcrumb { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .topbar-actions .button { padding: 8px; font-size: 12px; }
  .session-status { font-size: 12px; }
  .page-heading { margin-bottom: 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-heading > .button { width: 100%; }
  .page-symbol { display: none; }
  h1 { font-size: 29px; letter-spacing: -.9px; }
  .eyebrow { font-size: 12px; letter-spacing: 1.1px; }
  .intro { font-size: 14px; }
  .card, .upload-card { padding: 22px 18px; }
  .drop { padding: 28px 16px 22px; }
  .numbering-options { grid-template-columns: 1fr; }
  .required-label { font-size: 12px; }
  .numbering-fieldset legend { gap: 8px; font-size: 12px; }
  .upload-submit { flex-direction: column; align-items: stretch; gap: 18px; }
  .upload-submit > span { justify-content: center; order: 2; }
  .upload-aside { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .summary-card { padding: 18px 14px; }
  .summary-card .metric-label { font-size: 12px; }
  .metric-value { font-size: 25px; }
  .table-card { padding: 0; }
  .review-totals { gap: 8px; margin-bottom: 20px; }
  .review-total { flex-direction: column; padding: 16px 12px; gap: 12px; }
  .total-symbol { width: 32px; height: 32px; border-radius: 8px; }
  .total-label { font-size: 12px; overflow-wrap: anywhere; }
  .total-value { font-size: 27px; }
  .month-table, .month-table tbody { display: block; }
  .month-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .month-table tr.light-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
  .month-table tr.light-row:last-child { border-bottom: 0; }
  .month-table td { display: block; padding: 0; border: 0; white-space: normal; background: transparent; }
  .month-table .employee-name { align-self: center; overflow-wrap: anywhere; }
  .month-table .matricola-cell { text-align: right; align-self: center; }
  .month-table .matricola-cell::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
  .month-table .matricola-cell > small { display: none; }
  .month-table .matricola-cell:has(form) { grid-column: 1 / -1; text-align: left; }
  .month-table td:nth-child(3), .month-table .row-actions { grid-column: 1 / -1; }
  .month-table .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .month-table .row-actions .button { flex: 1; margin: 0; min-height: 44px; }
  .card-heading { padding: 22px 18px 0; }
  .employee-toolbar { padding: 18px 18px 0; gap: 12px; }
  .employee-search { flex-basis: 100%; }
  .employee-count { margin-inline: 18px; }
  #employee-search, #days input.corr, #days input.note, #ot input.ot-in { font-size: 16px; }
  .table-note { padding: 16px 18px; }
  .tabs { width: 100%; gap: 3px; }
  .tabs a { padding: 10px; font-size: 12px; flex: 1 1 auto; justify-content: center; }
  .actions > .button { flex: 1 1 140px; }
  .login-layout { display: block; padding: 10px; }
  .login-story { padding: 26px; border-radius: 13px; }
  .login-story .brand { font-size: 26px; }
  .story-content { padding: 24px 0 0; }
  .story-content h1 { font-size: 36px; margin: 12px 0 0; letter-spacing: -1.3px; }
  .story-content > p, .story-content .eyebrow { display: none; }
  .review-illustration, .story-footer { display: none; }
  .login-panel { padding: 30px 20px 20px; }
  .login-form-wrap { max-width: 400px; }
  .login-footnote { margin-top: 32px; }
  .print { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Native page transitions keep the workspace shell steady across normal navigations. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .sidebar { view-transition-name: workspace-sidebar; }
  .topbar { view-transition-name: workspace-topbar; }
  .workspace-main { view-transition-name: workspace-content; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-group(workspace-sidebar), ::view-transition-group(workspace-topbar), ::view-transition-group(workspace-content) { animation-duration: 0s; }
  ::view-transition-old(workspace-content) { animation: page-out 100ms ease-out both; }
  ::view-transition-new(workspace-content) { animation: page-in 180ms ease-out both; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.navigation-progress { display: none; position: fixed; z-index: 20; inset: 0 0 auto; height: 3px; overflow: hidden; background: var(--line); }
.navigation-progress::after { content: ""; display: block; height: 100%; width: 35%; background: var(--brand); animation: navigation-progress 1.2s ease-in-out infinite; }
.is-navigating .navigation-progress { display: block; }
@keyframes navigation-progress { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
.workspace-main.is-loading > :not(.page-loading) { visibility: hidden; }
.page-loading { position: absolute; inset: 0; z-index: 3; padding: inherit; background: var(--bg); }
.loading-panel { position: sticky; top: 24px; }
.skeleton { display: block; background: #e4ebe7; border-radius: 6px; animation: skeleton-pulse 1.5s ease-in-out infinite; }
@keyframes skeleton-pulse { 50% { opacity: .48; } }
.loading-heading { display: grid; gap: 15px; margin-bottom: 32px; }
.sk-eyebrow { width: 130px; height: 10px; }
.sk-title { width: min(60%, 340px); height: 36px; }
.sk-description { width: min(82%, 500px); height: 13px; }
.loading-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.loading-stat { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sk-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.sk-value { width: 40px; height: 26px; }
.loading-tabs { display: flex; gap: 12px; margin-bottom: 26px; }
.loading-tabs .skeleton { width: 95px; height: 34px; }
.loading-table { padding: 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.loading-toolbar { padding: 26px 0; border-bottom: 1px solid var(--line); }
.loading-toolbar .skeleton { width: 140px; height: 15px; }
.loading-row { display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: center; gap: 24px; min-height: 60px; border-bottom: 1px solid var(--line); }
.loading-row:last-child { border: 0; }
.loading-row .skeleton { height: 12px; max-width: 160px; }
.loading-row .skeleton:last-child { width: 72%; justify-self: end; }
.loading-upload { display: grid; justify-items: center; gap: 24px; padding: 60px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sk-button { width: 170px; height: 44px; }
.page-loading:not([data-kind=overview]) .loading-stats, .page-loading:not([data-kind=employee]) .loading-tabs,
.page-loading:not([data-kind=upload]) .loading-upload, .page-loading[data-kind=upload] .loading-table { display: none; }
@media (max-width: 600px) {
  .loading-stats { gap: 8px; }
  .loading-stat { flex-direction: column; align-items: flex-start; padding: 16px 12px; gap: 12px; }
  .loading-table { padding: 0 18px; }
  .loading-row { gap: 14px; }
  .sk-title { width: 80%; height: 29px; }
  .file-status { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton, .navigation-progress::after { animation: none; }
  .navigation-progress::after { width: 100%; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body.print { max-width: none; padding: 0; font-size: 12px; }
  .noprint, .sidebar, .topbar, .workspace-footer, .skip-link { display: none !important; }
  .print section.emp { break-before: page; }
  .print .scroll { overflow: visible; border: 0; }
  th, td { padding: 5px 4px; font-size: 12px; }
  h1 { font-size: 26px; }
  .badge { white-space: normal; }
  td.open, td.conf, th { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Overtime table: filter line and weekend list */
.ot-filter { margin: 0 0 12px; color: var(--muted, #555); }
.weekend-list { margin-top: 20px; padding: 12px 16px; border: 1px dashed var(--line, #ccc); border-radius: 10px; }
.weekend-list h3 { margin: 0 0 4px; font-size: 1rem; }
.weekend-list ul { margin: 8px 0 0; padding-left: 18px; }

/* Guide: one section at a time (JS adds .paged) */
.user-guide.paged .guide-section { border-bottom: 0; }
.guide-toc a[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.guide-pager { position: sticky; bottom: -32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); background: var(--surface); }
.guide-pager .button[disabled] { opacity: .45; cursor: not-allowed; }
.guide-count { font-size: 13px; color: var(--muted); }
.heading-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.help-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 500; vertical-align: middle; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.help-link:hover { background: var(--surface-soft); }
.help-link:focus-visible { outline: 3px solid #527d5c; outline-offset: 2px; }

/* The native dialog supplies focus containment; only the tour card receives pointer input. */
.tour-start { min-height: 44px; gap: 7px; font-size: 13px; }
.tour-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.tour-dialog::backdrop { background: transparent; }
.tour-spotlight { position: absolute; border: 2px solid var(--surface); border-radius: 10px; box-shadow: 0 0 0 100vmax var(--tour-scrim); pointer-events: none; }
.tour-card { position: absolute; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 64px rgb(13 30 23 / 24%); }
.tour-card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px -12px 8px 0; }
.tour-card .eyebrow { margin: 0; color: var(--brand); }
.tour-count { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tour-card h2 { margin-bottom: 12px; font-size: 22px; line-height: 1.25; }
.tour-card h2:focus { outline: none; } /* Programmatic reading focus, not an interactive control. */
#tour-description { margin-bottom: 20px; font-size: 15px; line-height: 1.65; }
.tour-progress { display: block; width: 100%; height: 4px; margin-bottom: 20px; border: 0; border-radius: 4px; background: var(--surface-soft); accent-color: var(--brand); }
.tour-progress::-webkit-progress-bar { border-radius: 4px; background: var(--surface-soft); }
.tour-progress::-webkit-progress-value { border-radius: 4px; background: var(--brand); }
.tour-progress::-moz-progress-bar { border-radius: 4px; background: var(--brand); }
.tour-card > footer { display: flex; justify-content: space-between; gap: 12px; }
.tour-card > footer .button { min-height: 44px; }
.tour-hint { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .topbar-actions { gap: 10px; } .tour-card { padding: 16px 20px; } }
@media print { .tour-dialog, .tour-start { display: none !important; } }

/* Projektstatus: questions */
.questions h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.questions h4 { margin: 14px 0 6px; font-size: .95rem; color: var(--brand); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.5; }
.q-item.internal { border-style: dashed; }
.q-item.partial { background: var(--warning); }
.q-answer { margin: 6px 0 0; }
.q-meta, .q-source { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.q-id { font-weight: 600; }
.q-answered { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.q-answered summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.q-answered[open] { padding-bottom: 14px; }
.q-now { padding-left: 0; counter-reset: q; }
.q-item.now { border-left: 4px solid var(--brand); }
.q-later { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.q-later summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.q-later[open] { padding-bottom: 14px; }
/* Welcome note after login (early draft disclaimer) */
.welcome-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgb(10 30 20 / 28%); }
.welcome-dialog::backdrop { background: rgb(15 35 27 / 55%); }
.welcome-card { margin: 0; padding: 28px 28px 24px; display: grid; gap: 0; }
.welcome-card .eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.welcome-card h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.6px; }
.welcome-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.welcome-body p:last-child { margin-bottom: 22px; color: var(--muted); }
.welcome-card .button { justify-self: start; min-width: 140px; }
.report-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.report-toolbar .report-print { margin-left: auto; font-size: 13px; }
.report-intro { max-width: 52rem; }
