:root {
  color-scheme: light;
  --navy-950: #0b1324;
  --navy-900: #111d34;
  --navy-800: #1b2b48;
  --blue-700: #175bc7;
  --blue-600: #2471e8;
  --blue-100: #e9f1ff;
  --ink: #172033;
  --muted: #647087;
  --line: #dce2eb;
  --surface: #ffffff;
  --canvas: #f3f5f8;
  --success: #16734a;
  --success-soft: #e7f6ee;
  --danger: #bd2937;
  --danger-soft: #fff0f1;
  --shadow: 0 12px 34px rgba(20, 31, 51, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.55; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 42px; }

.auth-shell { background: radial-gradient(circle at 15% 15%, #1d3155 0, var(--navy-950) 42%, #070d18 100%); }
.auth-content { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-panel { width: min(100%, 440px); background: var(--surface); border-radius: 18px; padding: 30px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3); }
.login-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-600); color: #fff; font-weight: 800; }
.brand-mark-large { width: 52px; height: 52px; border-radius: 15px; font-size: 1.35rem; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.12; }
h2 { margin-bottom: 13px; font-size: 1.1rem; letter-spacing: -0.01em; }
.eyebrow { margin-bottom: 5px; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.topbar { position: sticky; top: 0; z-index: 10; height: 62px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 18px; padding: 0 20px; color: #fff; background: var(--navy-950); box-shadow: 0 4px 14px rgba(11, 19, 36, 0.18); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 1.08rem; font-weight: 750; }
.brand:hover { text-decoration: none; }
.company-chip { justify-self: start; display: flex; align-items: center; gap: 9px; color: #ced7e7; font-size: 0.88rem; }
.company-chip strong { padding: 4px 8px; border: 1px solid #354564; border-radius: 7px; color: #fff; font-size: 0.75rem; letter-spacing: 0.06em; }
.logout-form { margin: 0; }

.app-frame { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.sidebar { padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.sidebar a { display: block; margin-bottom: 3px; padding: 9px 11px; border-radius: 9px; color: #344058; font-weight: 650; }
.sidebar a:hover { background: var(--blue-100); color: var(--blue-700); text-decoration: none; }
.sidebar a[aria-current="page"] { color: var(--blue-700); background: var(--blue-100); }
.sidebar-group { margin-bottom: 3px; }
.sidebar-parent { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: stretch; }
.sidebar-parent > a { margin-bottom: 0; }
.sidebar-parent > button, .sidebar-group-toggle { border: 0; border-radius: 10px; color: #344058; background: transparent; cursor: pointer; }
.sidebar-parent > button { min-height: 40px; font-size: 1.1rem; }
.sidebar-parent > button:hover, .sidebar-group-toggle:hover { color: var(--blue-700); background: var(--blue-100); }
.sidebar-parent > button span, .sidebar-group-toggle > span:last-child { display: inline-block; transition: transform .16s ease; }
.sidebar-group.is-open .sidebar-parent > button span, .sidebar-group.is-open .sidebar-group-toggle > span:last-child { transform: rotate(180deg); }
.sidebar-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 9px 11px; text-align: left; font-weight: 650; }
.sidebar-submenu { margin: 2px 0 5px 11px; padding-left: 8px; border-left: 2px solid var(--line); }
.sidebar-submenu[hidden] { display: none; }
.sidebar .sidebar-submenu a { margin: 1px 0; padding: 7px 9px; font-size: .9rem; font-weight: 620; }
.version-label { display: block; margin: 16px 11px 0; color: #8b95a7; font-size: .75rem; font-weight: 750; }
.content { width: 100%; max-width: 1500px; padding: 26px 32px 48px; }
.page-narrow { max-width: 700px; }
.page-heading { margin-bottom: 18px; }
.page-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 23px 0 10px; }
.section-heading h2 { margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.composer textarea { width: 100%; min-height: 130px; margin-top: 9px; resize: vertical; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.composer-footer small { color: var(--muted); }

.form-stack { display: grid; gap: 13px; }
label { display: grid; gap: 5px; font-weight: 700; color: #313d53; }
label span em { color: var(--muted); font-weight: 500; font-style: normal; }
input, textarea, select { width: 100%; border: 1px solid #c9d1dd; border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fff; outline: none; transition: border-color .16s, box-shadow .16s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(36, 113, 232, 0.13); }
label small { color: var(--muted); font-weight: 500; }
.field-error { color: var(--danger); }
.checkbox-row { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 600; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; padding: 8px 13px; font-weight: 750; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }
.button-primary:hover { background: var(--blue-700); }
.button-secondary { color: #27334a; background: #fff; border-color: #c8d0dc; }
.button-secondary:hover { border-color: #9eabba; background: #f8f9fb; }
.button-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button-ghost { color: #fff; background: transparent; border-color: #394963; }
.button-large { width: 100%; margin-top: 4px; }

.notice { margin-bottom: 14px; border: 1px solid transparent; border-radius: 9px; padding: 10px 12px; font-weight: 600; }
.notice-success { color: #0d5c3a; background: var(--success-soft); border-color: #b9e2cb; }
.notice-error { color: #8f1f2b; background: var(--danger-soft); border-color: #f2c1c7; }
.notice-info { color: #174b91; background: var(--blue-100); border-color: #bfd3f3; }

.status-pill, .badge, .deleted-label, .live-label { display: inline-flex; align-items: center; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
.status-pill { padding: 7px 11px; color: var(--success); background: var(--success-soft); }
.status-pill::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--success); }
.badge { padding: 4px 9px; }
.badge-active { color: var(--success); background: var(--success-soft); }
.badge-suspended { color: #8c2731; background: var(--danger-soft); }
.deleted-label { padding: 3px 7px; color: #687387; background: #eef1f5; }
.live-label { color: var(--muted); }

.entry-list { display: grid; gap: 8px; }
.entry-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; box-shadow: 0 5px 18px rgba(20, 31, 51, 0.045); }
.entry-card-new { animation: entry-in .28s ease-out both; }
.entry-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.entry-card time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.entry-card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-author { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--navy-800); font-weight: 800; }
@keyframes entry-in { from { opacity: 0; transform: translateY(-8px); } }

.empty-state { display: grid; justify-items: center; gap: 4px; padding: 30px 18px; border: 1px dashed #bdc6d3; border-radius: 12px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 1.05rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; color: var(--muted); }

.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f8f9fb; font-size: 0.78rem; letter-spacing: .04em; text-transform: uppercase; }
td:first-child strong, td:first-child span { display: block; }
td:first-child span { color: var(--muted); font-size: .86rem; }
tbody tr:last-child td { border-bottom: 0; }
.table-action { text-align: right; white-space: nowrap; }
.table-action span { color: #98a1b1; }

.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.company-card header { display: flex; align-items: center; justify-content: space-between; }
.company-card h2 { margin: 14px 0 3px; font-size: 1.2rem; }
.company-monogram { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--navy-800); font-weight: 850; }
.company-code { color: var(--blue-700); font-size: .82rem; font-weight: 850; letter-spacing: .08em; }
.company-card dl { display: grid; gap: 7px; margin: 14px 0; }
.company-card dl div { display: grid; gap: 2px; }
.company-card dt { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.company-card dd { margin: 0; overflow-wrap: anywhere; }

.profile-grid, .settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 14px; align-items: start; }
.settings-stack { display: grid; gap: 14px; }
.detail-list { margin: 0; }
.detail-list div { display: grid; grid-template-columns: 145px 1fr; gap: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.danger-zone { border-color: #efc2c7; box-shadow: none; }
.danger-zone h2 { color: #921e2a; }
.error-panel { margin-top: 8vh; text-align: center; }
.error-code { display: block; margin-bottom: 4px; color: var(--blue-700); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }

.button-row, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button-row form { margin: 0; }
.form-actions { justify-content: flex-end; }
.spaced-panel { margin-top: 16px; }
.section-heading-inner { margin: 0; padding: 15px 16px 9px; }
.borderless { border: 0; }
.checkpoint-code-small { display: inline-block; padding: 4px 8px; border-radius: 7px; color: var(--navy-900); background: #eef2f7; font-size: 1rem; font-weight: 850; letter-spacing: .16em; }
.checkpoint-code-panel { text-align: center; }
.checkpoint-code-panel .button-row { justify-content: center; }
.checkpoint-code { margin: 10px 0 14px; color: var(--navy-950); font-size: clamp(2.3rem, 9vw, 4.5rem); font-weight: 900; letter-spacing: .2em; line-height: 1; }
.print-toolbar { display: flex; justify-content: space-between; margin-bottom: 24px; }
.checkpoint-sign { min-height: 65vh; display: grid; align-content: center; justify-items: center; padding: 50px; border: 5px solid var(--navy-950); border-radius: 18px; text-align: center; background: #fff; }
.checkpoint-sign h1 { font-size: clamp(2rem, 7vw, 4rem); }
.checkpoint-location { margin: 18px 0 30px; color: var(--muted); font-size: 1.25rem; }
.print-code { margin: 35px 0; font-size: clamp(3rem, 13vw, 7rem); }
.route-builder h3 { margin: 0 0 10px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.route-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.route-list { min-height: 180px; display: grid; align-content: start; gap: 9px; padding: 12px; border: 1px dashed #b9c2d0; border-radius: 12px; background: #f8f9fb; }
.route-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.route-item:hover { border-color: var(--blue-600); }
.route-item strong, .route-item span { display: block; }
.route-item span { color: var(--muted); font-size: .82rem; }
.route-item.selected { cursor: grab; }
.route-item.selected.dragging { opacity: .5; }
.drag-handle { font-size: 1.15rem !important; }
.route-remove { width: 34px; height: 34px; margin-left: auto; border: 0; border-radius: 8px; color: var(--danger); background: var(--danger-soft); font-size: 1.25rem; cursor: pointer; }
.route-help { margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.round-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.round-card h2 { margin: 9px 0 5px; }
.round-card p { color: var(--muted); }
.round-card small { color: var(--muted); font-weight: 700; }
.run-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.run-summary div { display: grid; gap: 3px; }
.run-summary span { color: var(--muted); }
.code-entry { border-color: #bad0f0; }
.code-input { text-transform: uppercase; text-align: center; font-size: 1.8rem; font-weight: 850; letter-spacing: .2em; }
.checkpoint-progress { display: grid; gap: 8px; }
.progress-card { display: grid; grid-template-columns: 40px 1fr; gap: 11px; box-shadow: none; }
.progress-card.is-next { border: 2px solid var(--blue-600); }
.progress-card.confirmed { border-left: 5px solid var(--success); }
.progress-card.skipped { border-left: 5px solid var(--danger); }
.progress-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--navy-800); font-weight: 850; }
.progress-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-title h2 { margin: 0; }
.progress-main > p { margin: 4px 0; color: var(--muted); }
.progress-main small { color: var(--muted); }
.progress-main blockquote { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--line); background: #f8f9fb; }
.progress-main details { margin-top: 14px; }
.progress-main summary { color: var(--blue-700); font-weight: 700; cursor: pointer; }
.skip-form { display: grid; gap: 10px; margin-top: 12px; }
.finish-panel { border-color: #b9e2cb; }

.qualification-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; }
.qualification-empty { grid-column: 1 / -1; }
.qualification-card { display: grid; align-content: start; gap: 11px; }
.qualification-card > header, .request-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qualification-card h2, .request-card h2 { margin: 0; }
.qualification-card p, .request-card header p { margin-bottom: 0; color: var(--muted); }
.qualification-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.qualification-meta div { display: grid; gap: 2px; }
.qualification-meta dt { color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.qualification-meta dd { margin: 0; font-weight: 750; }
.qualification-note { margin: 0; padding: 9px 11px; border-left: 3px solid var(--line); background: #f8f9fb; overflow-wrap: anywhere; }
.help-text, .table-note { display: block; color: var(--muted); font-size: .84rem; }
.table-note { margin-top: 5px; max-width: 260px; white-space: normal; }
.badge-qualification-valid, .badge-qualification-unlimited, .badge-request-approved, .badge-request-assigned { color: var(--success); background: var(--success-soft); }
.badge-qualification-expired, .badge-request-rejected { color: #8c2731; background: var(--danger-soft); }
.badge-request-pending, .badge-request-applied { color: #174b91; background: var(--blue-100); }
.badge-request-withdrawn { color: #5f6879; background: #eef1f5; }
.filter-bar { max-width: 720px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter-tabs a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: #47536a; background: #fff; font-weight: 700; }
.filter-tabs a:hover, .filter-tabs a.active { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-100); text-decoration: none; }
.request-list { display: grid; gap: 12px; }
.request-card { display: grid; gap: 12px; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.link-button { display: inline; min-height: 0; margin: 0; border: 0; padding: 0; color: var(--blue-700); background: transparent; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.table-action form { display: inline; margin-left: 8px; }
.option-builder { padding: 0; overflow: hidden; }
.option-builder > .notice { margin: 0 16px 13px; }
.option-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.option-row { display: grid; grid-template-columns: 36px minmax(180px, 1.4fr) minmax(160px, .8fr) 110px auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fb; }
.option-position { align-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--navy-800); font-weight: 800; }
.option-actions { display: flex; gap: 5px; padding-bottom: 2px; }
.icon-button { width: 38px; min-height: 38px; border: 1px solid #c8d0dc; border-radius: 9px; color: #27334a; background: #fff; cursor: pointer; }
.icon-button:hover { border-color: var(--blue-600); }
.icon-button-danger { color: var(--danger); }
.validity-months.is-disabled { opacity: .45; }

.matrix-panel { padding: 0; overflow: hidden; }
.qualification-matrix { min-width: max-content; }
.qualification-matrix th, .qualification-matrix td { min-width: 155px; vertical-align: top; }
.qualification-matrix .matrix-person { position: sticky; left: 0; z-index: 2; min-width: 210px; background: #fff; box-shadow: 1px 0 var(--line); }
.qualification-matrix thead .matrix-person { z-index: 3; }
.qualification-matrix th small, .matrix-person small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.matrix-value { display: block; margin: 3px 0; border-radius: 7px; padding: 5px 7px; color: var(--success); background: var(--success-soft); font-weight: 750; }
.matrix-value small { display: block; font-weight: 500; }
.matrix-value.is-expired { color: #8c2731; background: var(--danger-soft); }
.matrix-empty { color: #a0a8b5; }

.schedule-month-nav { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: stretch; gap: 8px; margin-bottom: 9px; }
.schedule-month-nav > div { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 11px; padding: 5px 14px; background: #fff; box-shadow: 0 3px 10px rgba(20,31,51,.035); text-align: center; }
.schedule-month-nav > div span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-month-nav > div strong { font-size: 1.08rem; }
.schedule-month-arrow { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; color: #3b475d; background: #fff; box-shadow: 0 3px 10px rgba(20,31,51,.035); font-size: 1.7rem; font-weight: 750; }
.schedule-month-arrow:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-100); text-decoration: none; }
.schedule-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.schedule-summary.is-user { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; }
.schedule-summary span { color: var(--muted); font-size: .77rem; font-weight: 700; }
.schedule-summary strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.schedule-summary .has-warning { border-color: #f0bbc1; background: var(--danger-soft); }
.schedule-summary .has-warning strong { color: var(--danger); }
.schedule-summary .has-info { border-color: #bfd3f3; background: var(--blue-100); }
.schedule-summary .has-info strong { color: var(--blue-700); }
.schedule-desktop { overflow-x: auto; padding-bottom: 3px; }
.schedule-week-head, .schedule-week-row { min-width: 940px; display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); gap: 5px; }
.schedule-week-head { align-items: center; margin-bottom: 5px; padding: 0 4px; color: var(--muted); text-align: center; }
.schedule-week-head > span, .schedule-week-head > strong { padding: 5px 2px; font-size: .72rem; }
.schedule-week-head > strong:nth-child(7), .schedule-week-head > strong:nth-child(8) { color: #8b6570; }
.schedule-weeks { min-width: 940px; display: grid; gap: 5px; }
.schedule-week-row { align-items: stretch; }
.schedule-week-number { display: grid; place-items: start center; padding-top: 11px; color: var(--muted); font-size: .72rem; }
.schedule-week-day { min-width: 0; min-height: 128px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.schedule-week-day.is-weekend { background: #fafbfd; }
.schedule-week-day.is-outside { border-style: dashed; background: #eef1f5; opacity: .55; }
.schedule-week-day.is-today { border-color: var(--blue-600); box-shadow: inset 0 3px var(--blue-600); }
.schedule-week-day > header { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 5px 7px; border-bottom: 1px solid var(--line); background: #f8f9fb; }
.schedule-week-day.is-today > header { color: var(--blue-700); background: var(--blue-100); }
.schedule-week-day.is-complete > header span { color: var(--success); background: var(--success-soft); }
.schedule-week-day > header strong { font-size: .78rem; font-variant-numeric: tabular-nums; }
.schedule-week-day > header span { min-width: 20px; border-radius: 999px; padding: 2px 5px; color: var(--muted); background: #edf0f4; font-size: .65rem; font-weight: 850; text-align: center; }
.schedule-week-day > header span:empty { visibility: hidden; }
.schedule-week-shifts { display: grid; gap: 5px; padding: 5px; }
.schedule-week-shift { position: relative; min-width: 0; display: grid; gap: 1px; border: 1px solid var(--line); border-left: 4px solid #94a0b3; border-radius: 7px; padding: 6px 6px 6px 7px; color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(20,31,51,.035); }
.schedule-week-shift:hover { border-top-color: #a9c5ee; border-right-color: #a9c5ee; border-bottom-color: #a9c5ee; background: #f8fbff; text-decoration: none; }
.schedule-week-shift > strong { overflow-wrap: anywhere; font-size: .76rem; line-height: 1.25; }
.schedule-week-time { color: #3b475d; font-size: .67rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-week-location { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-week-capacity { margin-top: 3px; color: var(--muted); font-size: .66rem; font-weight: 800; }
.schedule-week-shift.is-understaffed .schedule-week-capacity { color: var(--danger); }
.schedule-week-shift.is-staffed .schedule-week-capacity { color: var(--success); }
.schedule-week-shift.is-overstaffed .schedule-week-capacity { color: var(--blue-700); }
.schedule-week-shift.is-cancelled { opacity: .6; }
.schedule-week-shift.is-cancelled > strong { text-decoration: line-through; }
.schedule-week-applications, .schedule-week-own { width: fit-content; margin-top: 3px; border-radius: 999px; padding: 2px 5px; color: #174b91; background: #dceaff; font-size: .61rem; font-weight: 850; }
.schedule-week-own { color: var(--success); background: var(--success-soft); }
.schedule-agenda { display: grid; gap: 6px; }
.schedule-agenda.schedule-mobile { display: none; }
.schedule-day { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(20,31,51,.035); }
.schedule-day.is-weekend { background: #fafbfd; }
.schedule-day.is-today { border-color: var(--blue-600); box-shadow: inset 4px 0 var(--blue-600), 0 5px 18px rgba(20,31,51,.045); }
.schedule-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: #f8f9fb; }
.schedule-day.is-empty .schedule-day-head { min-height: 38px; border-bottom: 0; }
.schedule-day.is-empty { box-shadow: none; }
.schedule-day.is-today .schedule-day-head { background: var(--blue-100); }
.schedule-date { display: flex; align-items: center; gap: 8px; }
.schedule-date > span { width: 25px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.schedule-date > strong { font-variant-numeric: tabular-nums; }
.schedule-date > em { border-radius: 999px; padding: 3px 8px; color: var(--blue-700); background: #fff; font-size: .7rem; font-style: normal; font-weight: 850; }
.schedule-day-state { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.schedule-complete { border-radius: 999px; padding: 4px 8px; color: var(--success); background: var(--success-soft); font-weight: 800; }
.own-shift-marker { border-radius: 999px; padding: 4px 8px; color: #174b91; background: #dceaff; font-size: .72rem; font-weight: 850; }
.schedule-day-body { display: grid; }
.schedule-shift { position: relative; display: grid; grid-template-columns: 4px 102px minmax(190px, 1fr) 138px minmax(48px, auto); align-items: center; min-height: 68px; color: var(--ink); background: #fff; }
.schedule-shift + .schedule-shift { border-top: 1px solid var(--line); }
.schedule-shift:hover { background: #f8fbff; text-decoration: none; }
.schedule-category-bar { align-self: stretch; width: 4px; }
.schedule-time, .schedule-shift-main, .schedule-staffing, .schedule-shift-meta { padding: 9px 12px; }
.schedule-time, .schedule-shift-main, .schedule-staffing { display: grid; gap: 1px; }
.schedule-time strong { font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.schedule-time span, .schedule-shift-main > span:last-child, .schedule-staffing span { color: var(--muted); font-size: .78rem; }
.schedule-shift-main > strong { overflow-wrap: anywhere; }
.schedule-category { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.schedule-staffing { border-left: 1px solid var(--line); }
.schedule-staffing strong { font-size: .88rem; font-variant-numeric: tabular-nums; }
.schedule-shift.is-understaffed .schedule-staffing strong { color: var(--danger); }
.schedule-shift.is-staffed .schedule-staffing strong { color: var(--success); }
.schedule-shift.is-overstaffed .schedule-staffing strong { color: var(--blue-700); }
.schedule-shift.is-cancelled { opacity: .62; }
.schedule-shift.is-cancelled .schedule-shift-main > strong { text-decoration: line-through; }
.schedule-shift-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.schedule-application { border-radius: 999px; padding: 4px 8px; color: #174b91; background: #dceaff; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.schedule-open { color: #8490a3; font-size: 1.7rem; line-height: 1; }
.schedule-series { margin-top: 18px; padding: 0; overflow: hidden; }
.schedule-series > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; cursor: pointer; list-style: none; }
.schedule-series > summary::-webkit-details-marker { display: none; }
.schedule-series > summary > span:first-child { display: grid; gap: 2px; }
.schedule-series > summary small { color: var(--muted); font-weight: 500; }
.schedule-series > summary > span:last-child { display: grid; place-items: center; min-width: 30px; height: 28px; border-radius: 999px; color: #4d586b; background: #edf0f4; font-size: .78rem; font-weight: 850; }
.schedule-series[open] > summary { border-bottom: 1px solid var(--line); }
.category-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.function-list, .function-cards { display: grid; gap: 11px; }
.function-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #f9fafc; }
.function-fields { display: grid; grid-template-columns: minmax(180px, 1fr) 130px auto; align-items: end; gap: 9px; }
.function-row fieldset { margin: 11px 0 0; border: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
.function-row legend { padding: 0 8px 0 0; font-weight: 750; }
.requirement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.requirement-grid > div { display: grid; gap: 5px; align-content: start; }
.custom-date-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.weekday-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.shift-detail-head { flex-wrap: wrap; }
.shift-detail-head > div { display: grid; gap: 5px; }
.shift-detail-head p { flex-basis: 100%; margin: 5px 0 0; }
.function-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.function-card ul { margin-bottom: 0; padding-left: 20px; }
.function-requirements { display: grid; gap: 7px; }
.requirement-status-list { display: grid; gap: 5px; }
.requirement-status-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 8px; border-radius: 8px; padding: 6px 8px; background: #f7f9fc; }
.requirement-count { color: var(--blue-700); font-variant-numeric: tabular-nums; }
.requirement-status-row > span { display: grid; gap: 2px; }
.requirement-status-row small { color: var(--muted); }
.field-label { display: block; margin-bottom: 5px; color: #313d53; font-weight: 700; }
.employee-multi { position: relative; }
.employee-multi-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #c9d1dd; border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fff; cursor: pointer; text-align: left; }
.employee-multi-toggle[aria-expanded="true"] { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(36,113,232,.13); }
.employee-multi-panel { position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; right: 0; display: grid; max-height: 330px; overflow-y: auto; border: 1px solid #c9d1dd; border-radius: 12px; padding: 7px; background: #fff; box-shadow: var(--shadow); }
.employee-multi-panel[hidden] { display: none; }
.employee-option { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 8px; border-radius: 8px; padding: 7px 9px; color: var(--ink); cursor: pointer; }
.employee-option:hover { background: var(--blue-100); }
.employee-option input { width: 17px; height: 17px; margin-top: 2px; }
.employee-option > span { display: grid; gap: 2px; }
.employee-option small { color: var(--muted); font-weight: 500; }
.employee-option-state:empty { display: none; }
.employee-option.is-unqualified, .employee-option.is-capacity-muted { color: #8a93a3; background: #f3f4f6; }
.employee-option.is-unqualified strong, .employee-option.is-capacity-muted strong { color: #747e8f; }
.employee-option.is-unqualified .employee-option-state { color: #9a4b52; }

/* V0.3.5.1: kompakte, linienbasierte Oberfläche */
.content { padding: 20px 24px 40px; }
.page-heading { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-heading { margin: 16px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.panel { border-radius: 8px; padding: 14px; box-shadow: none; }
.form-stack { gap: 10px; }
.form-grid { gap: 8px 12px; }
.spaced-panel { margin-top: 10px; }
.notice { margin-bottom: 8px; }
.pagination { margin-top: 14px; }

.entry-list, .request-list, .checkpoint-progress {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.entry-list > .entry-card, .request-list > .request-card, .checkpoint-progress > .progress-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.entry-list > :last-child, .request-list > :last-child, .checkpoint-progress > :last-child { border-bottom: 0; }

.company-grid, .round-grid, .qualification-grid, .function-cards {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.company-grid > .panel, .round-grid > .panel, .qualification-grid > .panel, .function-cards > .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.settings-stack { gap: 8px; }
.profile-grid, .settings-grid, .route-columns { gap: 8px; }
.detail-list div { padding: 7px 0; }
.filter-tabs { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.option-list { gap: 0; padding: 0; border-top: 1px solid var(--line); }
.option-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.option-row:last-child { border-bottom: 0; }
.option-builder > .notice { margin: 10px 12px; }

.schedule-month-nav { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.schedule-month-nav > div, .schedule-month-arrow { border: 0; border-radius: 0; box-shadow: none; }
.schedule-month-nav > div { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.schedule-summary { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.schedule-summary > div { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.schedule-summary > div:first-child { border-left: 0; }

.schedule-week-head, .schedule-week-row { gap: 0; }
.schedule-week-head { margin-bottom: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f8f9fb; }
.schedule-week-head > * + * { border-left: 1px solid var(--line); }
.schedule-weeks { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.schedule-week-row + .schedule-week-row { border-top: 1px solid var(--line); }
.schedule-week-number { padding-top: 9px; background: #f8f9fb; }
.schedule-week-day { min-height: 112px; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.schedule-week-shifts { gap: 5px; padding: 5px; }
.schedule-week-shift { border: 1px solid var(--shift-color, #94a0b3); border-left: 5px solid var(--shift-color, #94a0b3); border-radius: 3px; padding: 6px 6px 6px 7px; background: #f8f9fb; box-shadow: 0 2px 5px rgba(20,31,51,.12); }
.schedule-week-shift:last-child { border-bottom: 1px solid var(--shift-color, #94a0b3); }
.schedule-week-shift:hover { border-color: var(--shift-color, #94a0b3); border-left-width: 5px; background: #fff; }
.schedule-week-shift-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.schedule-week-shift-head > strong { color: #394255; font-size: .76rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.schedule-staffing-bubble { flex: 0 0 auto; min-width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 4px; color: #fff; background: #687387; box-shadow: 0 2px 5px rgba(20,31,51,.24); font-size: .62rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.schedule-staffing-bubble.is-staffed { background: var(--success); }
.schedule-staffing-bubble.is-understaffed { background: var(--danger); }
.schedule-staffing-bubble.is-overstaffed { background: var(--blue-700); }
.schedule-staffing-bubble.is-cancelled { background: #747e8f; }
.schedule-week-category { color: #7a8496; font-size: .64rem; line-height: 1.25; }
.schedule-week-location { color: #929aaa; }

.schedule-agenda.schedule-mobile { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.schedule-agenda.schedule-mobile .schedule-day { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.schedule-agenda.schedule-mobile .schedule-day:last-child { border-bottom: 0; }
.schedule-day-head { padding: 5px 10px; }
.schedule-day.is-empty .schedule-day-head { min-height: 34px; }
.schedule-shift { min-height: 62px; }
.schedule-series { margin-top: 10px; }

/* V0.4.0: eingeklappte Navigation und kompakter PC-Schichtkalender */
.sidebar-collapse-toggle {
  width: 36px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 0 0 8px auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #46536a;
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.sidebar-collapse-toggle:hover { color: var(--blue-700); background: var(--blue-100); }
.sidebar a, .sidebar-group-toggle { display: flex; align-items: center; gap: 10px; }
.nav-icon { flex: 0 0 22px; width: 22px; height: 22px; display: inline-grid; place-items: center; }
.nav-icon svg { width: 21px; height: 21px; }
.nav-label { min-width: 0; }

.schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.schedule-month-controls {
  justify-self: center;
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 10px;
}
.schedule-month-controls h1 { min-width: 190px; text-align: center; font-size: 1.35rem; }
.schedule-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.schedule-toolbar .schedule-month-arrow { min-height: 40px; border-radius: 6px; box-shadow: none; }
.schedule-summary { margin-bottom: 10px; }

.schedule-week-head {
  min-height: 43px;
  padding: 0;
  border-color: #174d7d;
  color: #fff;
  background: #174d7d;
}
.schedule-week-head > span, .schedule-week-head > strong {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 8px 5px;
  color: #fff;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .025em;
}
.schedule-week-head > * + * { border-left-color: rgba(255,255,255,.28); }
.schedule-week-head > strong:nth-child(7), .schedule-week-head > strong:nth-child(8) { color: #fff; }
.schedule-week-number {
  place-items: center;
  padding: 0;
  color: #fff;
  background: #0f5d82;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.schedule-week-day { min-height: 116px; }
.schedule-week-day > header { min-height: 34px; padding: 5px 8px; }
.schedule-week-shifts { gap: 7px; padding: 7px; }
.schedule-week-shift {
  gap: 2px;
  border-radius: 0;
  padding: 7px 7px 7px 9px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(20,31,51,.16);
}
.schedule-week-shift-head { min-height: 28px; align-items: flex-start; }
.schedule-week-shift-head > strong {
  color: #24324a;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.15;
}
.schedule-week-shift > strong { font-size: .73rem; font-weight: 750; line-height: 1.2; }
.schedule-week-category { order: 3; color: #7a8496; font-size: .64rem; line-height: 1.2; }
.schedule-week-location { order: 4; color: #929aaa; font-size: .62rem; }
.schedule-week-applications, .schedule-week-own { order: 5; }
.schedule-staffing-bubble { min-width: 28px; height: 28px; }

@media (min-width: 851px) {
  .sidebar { position: sticky; top: 62px; align-self: start; min-height: calc(100vh - 62px); }
  .sidebar-collapsed .app-frame { grid-template-columns: 64px minmax(0, 1fr); }
  .sidebar-collapsed .sidebar { padding: 8px 7px; }
  .sidebar-collapsed .sidebar-collapse-toggle { margin-right: auto; }
  .sidebar-collapsed .sidebar a { justify-content: center; margin-bottom: 3px; padding: 9px 7px; }
  .sidebar-collapsed .sidebar-parent { display: block; }
  .sidebar-collapsed .sidebar-parent > button,
  .sidebar-collapsed .sidebar-group-toggle { display: none; }
  .sidebar-collapsed .sidebar-submenu,
  .sidebar-collapsed .sidebar-submenu[hidden] {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-collapsed .sidebar .sidebar-submenu a { margin-bottom: 3px; padding: 9px 7px; }
  .sidebar-collapsed .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sidebar-collapsed .version-label { display: none; }
  .sidebar-collapsed .content { max-width: none; padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 1050px) {
  .option-row { grid-template-columns: 36px 1fr 1fr; }
  .validity-months { grid-column: 2; }
  .option-actions { grid-column: 3; justify-content: flex-end; }
}

@media (max-width: 1100px) {
  .schedule-desktop { display: none; }
  .schedule-agenda.schedule-mobile { display: grid; }
}

@media print {
  .topbar, .sidebar, .print-toolbar, .notice { display: none !important; }
  body, html, .app-frame, .content { background: #fff; }
  .app-frame { display: block; }
  .content { max-width: none; padding: 0; }
  .checkpoint-sign { min-height: 95vh; border-color: #000; box-shadow: none; break-inside: avoid; }
}

@media (max-width: 850px) {
  .sidebar-collapse-toggle { display: none; }
  .topbar { grid-template-columns: 1fr auto; height: auto; min-height: 58px; gap: 10px; padding: 8px 14px; }
  .company-chip { grid-column: 1 / -1; grid-row: 2; }
  .app-frame { display: block; }
  .sidebar { position: sticky; top: 82px; z-index: 9; display: flex; gap: 5px; overflow-x: auto; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar a { flex: 0 0 auto; margin: 0; padding: 7px 10px; }
  .sidebar-group { flex: 0 0 auto; margin: 0; }
  .sidebar-parent { grid-template-columns: auto 36px; }
  .sidebar-group-toggle { min-height: 38px; padding: 7px 10px; white-space: nowrap; }
  .sidebar-submenu { margin: 4px 0 0; padding-left: 8px; }
  .version-label { flex: 0 0 auto; margin: 9px 8px 0; }
  .content { padding: 20px 14px 40px; }
  .profile-grid, .settings-grid { grid-template-columns: 1fr; }
  .route-columns, .run-summary { grid-template-columns: 1fr; }
  .request-actions { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .schedule-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-summary.is-user { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-shift { grid-template-columns: 4px 94px minmax(170px, 1fr) 128px minmax(38px, auto); }
  .schedule-time, .schedule-shift-main, .schedule-staffing, .schedule-shift-meta { padding-right: 10px; padding-left: 10px; }
  .schedule-toolbar { grid-template-columns: 1fr; }
  .schedule-month-controls { justify-self: stretch; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .schedule-month-controls h1 { min-width: 0; }
  .schedule-toolbar-actions { justify-content: stretch; }
  .schedule-toolbar-actions .button { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .login-panel { padding: 24px 20px; border-radius: 15px; }
  .page-heading-row, .composer-footer, .entry-card header { align-items: stretch; flex-direction: column; }
  .page-heading-row .button, .composer-footer .button { width: 100%; }
  .entry-card time { margin-left: 41px; }
  .input-action { grid-template-columns: 1fr; }
  .detail-list div { grid-template-columns: 1fr; gap: 3px; }
  .button-row, .form-actions { align-items: stretch; flex-direction: column; }
  .button-row .button, .button-row form, .form-actions .button { width: 100%; }
  .progress-title { align-items: flex-start; flex-direction: column; }
  .qualification-grid { grid-template-columns: 1fr; }
  .qualification-card > header, .request-card > header { flex-direction: column; }
  .option-row { grid-template-columns: 1fr; }
  .option-position, .validity-months, .option-actions { grid-column: 1; }
  .option-actions { justify-content: flex-start; }
  .function-fields, .custom-date-row { grid-template-columns: 1fr; }
  .function-fields .icon-button, .custom-date-row .icon-button { justify-self: start; }
  .schedule-month-nav { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .schedule-toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-toolbar-actions .button-primary:last-child { grid-column: 1 / -1; }
  .schedule-summary, .schedule-summary.is-user { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .schedule-summary > div:nth-child(odd) { border-left: 0; }
  .schedule-summary.is-user > div:last-child { grid-column: 1 / -1; }
  .schedule-day-head { align-items: flex-start; }
  .schedule-date { flex-wrap: wrap; gap: 6px 9px; }
  .schedule-day-state { max-width: 52%; }
  .schedule-shift { grid-template-columns: 4px 76px minmax(0, 1fr) auto; align-items: start; min-height: 82px; }
  .schedule-category-bar { grid-row: 1 / 3; }
  .schedule-time { grid-row: 1 / 3; }
  .schedule-shift-main { grid-column: 3; padding-bottom: 4px; }
  .schedule-staffing { grid-column: 3; border-left: 0; padding-top: 0; }
  .schedule-shift-meta { grid-column: 4; grid-row: 1 / 3; align-self: stretch; padding-left: 3px; }
  .schedule-application { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* V0.5.0 – sachliche Leitstellenoberfläche */
:root {
  --navy-950: #102235;
  --navy-900: #162b40;
  --navy-800: #20384e;
  --blue-700: #155f86;
  --blue-600: #1d729d;
  --blue-100: #e8f1f5;
  --ink: #172431;
  --muted: #62717d;
  --line: #cbd3d9;
  --line-strong: #aeb9c2;
  --surface: #ffffff;
  --canvas: #edf0f2;
  --success: #2f7d46;
  --success-soft: #eaf3ec;
  --warning: #ad7500;
  --warning-soft: #fff4d9;
  --danger: #b33a3a;
  --danger-soft: #faeaea;
  --shadow: none;
  font-family: Arial, "Segoe UI", sans-serif;
}

html, body { background: var(--canvas); }
body { font-size: 14px; line-height: 1.42; }
button, .button { min-height: 36px; }
h1 { font-size: clamp(1.45rem, 2.3vw, 1.75rem); letter-spacing: -.018em; }
h2 { font-size: 1rem; letter-spacing: 0; }
.eyebrow { margin-bottom: 3px; color: #52616d; font-size: .68rem; letter-spacing: .09em; }

.auth-shell { background: #dfe5e9; }
.auth-content { padding: 20px; }
.login-panel {
  width: min(100%, 420px);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--navy-900);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}
.login-heading { margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe5ec;
  border-radius: 0;
  color: #fff;
  background: transparent;
}
.brand-mark-large { width: 48px; height: 48px; border-color: var(--navy-900); color: var(--navy-900); }

.topbar {
  height: 52px;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 0;
  padding: 0 14px;
  background: var(--navy-950);
  border-bottom: 1px solid #30475b;
  box-shadow: none;
}
.brand { gap: 10px; padding-right: 20px; font-size: 1rem; }
.company-chip {
  align-self: stretch;
  justify-self: stretch;
  gap: 12px;
  padding: 0 18px;
  border-left: 1px solid #385064;
  color: #d2dce3;
}
.company-chip strong {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  font-size: .72rem;
}
.topbar-state { display: flex; align-items: center; height: 100%; color: #dce5eb; }
.topbar-state time {
  padding: 0 17px;
  border-right: 1px solid #385064;
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.logout-form { padding-left: 2px; }
.topbar .button-ghost { min-height: 32px; border-color: #546779; }

.app-frame { grid-template-columns: 218px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.sidebar {
  padding: 8px;
  border-right: 1px solid #31485b;
  color: #d3dde4;
  background: var(--navy-900);
}
.sidebar a, .sidebar-group-toggle {
  min-height: 39px;
  margin-bottom: 1px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 8px 10px;
  color: #cbd6de;
  background: transparent;
  font-size: .84rem;
  font-weight: 600;
}
.sidebar a:hover, .sidebar a[aria-current="page"],
.sidebar-parent > button:hover, .sidebar-group-toggle:hover {
  color: #fff;
  background: #1d4058;
  text-decoration: none;
}
.sidebar a[aria-current="page"] { border-left-color: #58a6cf; background: #185271; }
.sidebar-parent { grid-template-columns: minmax(0, 1fr) 36px; }
.sidebar-parent > button {
  min-height: 39px;
  border: 0;
  border-radius: 0;
  color: #bfcbd4;
  background: transparent;
}
.sidebar-submenu { margin: 0 0 2px 13px; border-left: 1px solid #496074; }
.sidebar .sidebar-submenu a { padding: 7px 8px; font-size: .8rem; }
.version-label { margin: 16px 10px 0; color: #8193a2; font-size: .68rem; }
.sidebar-collapse-toggle {
  width: 34px;
  min-height: 32px;
  margin-bottom: 8px;
  border: 1px solid #4a6072;
  border-radius: 0;
  color: #e1e8ed;
  background: #102235;
}
.sidebar-collapse-toggle:hover { color: #fff; background: #1d4058; }

.content { max-width: none; padding: 18px 22px 40px; }
.content-watchbook { padding: 0; }
.page-heading { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.section-heading { margin: 18px 0 8px; }
.section-heading h2, .section-heading-inner h2 { text-transform: uppercase; font-size: .76rem; letter-spacing: .06em; }

.panel {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  background: var(--surface);
  box-shadow: none;
}
.spaced-panel { margin-top: 10px; }
.form-stack { gap: 10px; }
label { gap: 4px; color: #2c3b47; font-size: .82rem; }
input, textarea, select {
  border-color: #aeb9c2;
  border-radius: 0;
  padding: 8px 9px;
  transition: border-color .1s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-700); box-shadow: inset 3px 0 var(--blue-700); }
.button {
  border-radius: 0;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .1s, border-color .1s;
}
.button:hover { transform: none; }
.button-primary { border-color: var(--navy-900); background: var(--navy-900); }
.button-primary:hover { border-color: #244760; background: #244760; }
.button-secondary { border-color: #aeb9c2; color: #263846; }
.button-danger { border-color: #993333; background: #993333; }

.notice { border-radius: 0; padding: 8px 10px; font-size: .82rem; }
.status-pill, .badge, .deleted-label, .live-label {
  border-radius: 1px;
  font-size: .68rem;
  font-weight: 700;
}
.status-pill, .badge { padding: 3px 6px; }
.status-pill::before { border-radius: 50%; }
.filter-tabs { gap: 0; border-bottom: 1px solid var(--line-strong); }
.filter-tabs a { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 12px; background: transparent; }
.filter-tabs a:hover, .filter-tabs a.active { border-color: var(--blue-700); background: #fff; }

.table-panel { border-color: var(--line-strong); }
th, td { padding: 8px 10px; }
th { color: #41515e; background: #e7ebee; font-size: .68rem; letter-spacing: .055em; }
tbody tr:hover td { background: #f4f7f8; }
.company-grid, .round-grid, .qualification-grid { gap: 8px; }
.company-monogram, .avatar, .progress-number, .option-position {
  border-radius: 0;
  background: var(--navy-800);
}
.company-card h2 { margin-top: 10px; }
.qualification-card, .request-card, .round-card { border-top: 3px solid #718797; }
.qualification-note, .progress-main blockquote { background: #f1f4f5; }
.option-row, .function-row, .route-list, .route-item, .icon-button,
.employee-multi-toggle, .employee-multi-panel, .function-card {
  border-radius: 0;
  box-shadow: none;
}
.checkpoint-code-small { border-radius: 0; }
.checkpoint-sign { border-radius: 0; }
.empty-state { border-radius: 0; background: #f8f9fa; }

/* Wachbuch-Arbeitsplatz */
.watchbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(315px, 27vw);
  min-height: calc(100vh - 52px);
  background: #f6f7f8;
}
.watchbook-main { min-width: 0; padding: 18px 20px 36px; }
.watchbook-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 2px 3px 13px;
  border-bottom: 1px solid var(--line-strong);
}
.watchbook-heading h1 { margin: 0 0 3px; }
.watchbook-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.watchbook-toolbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: #e7ebee;
  color: #4b5964;
  font-size: .72rem;
}
.watchbook-toolbar > strong { margin-right: auto; color: #263642; letter-spacing: .05em; }
.watchbook-toolbar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.entry-table-head, .entry-card {
  display: grid;
  grid-template-columns: 96px minmax(145px, 190px) 130px minmax(300px, 1fr);
}
.entry-table-head {
  min-height: 32px;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  color: #4a5965;
  background: #f0f2f3;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.entry-table-head span { padding: 7px 10px; }
.entry-table-head span + span { border-left: 1px solid var(--line); }
.entry-list { display: block; border: 1px solid var(--line); border-top: 0; background: #fff; }
.entry-card {
  min-height: 56px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  background: #fff;
  box-shadow: none;
}
.entry-card:last-child { border-bottom: 0; }
.entry-card:hover { background: #f4f7f8; }
.entry-card > * { padding: 8px 10px; }
.entry-card > * + * { border-left: 1px solid var(--line); }
.entry-time { display: grid; align-content: center; gap: 1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.entry-time strong { font-size: 1.18rem; line-height: 1; }
.entry-time span { color: var(--muted); font-size: .66rem; }
.entry-author { display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 5px; }
.entry-author strong { font-size: .82rem; }
.entry-project { display: grid; align-content: center; gap: 1px; min-width: 0; }
.entry-project strong, .entry-project span, .entry-project small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-project strong { font-size: .82rem; }
.entry-project span, .entry-project small { color: var(--muted); font-size: .68rem; }
.entry-card > .entry-content { display: grid; align-content: stretch; padding: 0; }
.entry-field { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 10px; }
.entry-field + .entry-field { border-top: 1px solid var(--line); }
.entry-field > span { color: #50606b; font-size: .64rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.entry-field p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-field p em, .entry-field p.is-empty { color: var(--muted); font-size: .78rem; }
.entry-measures { background: #f5f8f9; }
.entry-list .empty-state { border: 0; padding: 34px 18px; }
.pagination { margin: 12px 0 0; }

.watchbook-sidepanel {
  min-width: 0;
  padding: 22px 20px;
  border-left: 1px solid var(--line-strong);
  background: #eef1f3;
}
.sidepanel-heading { display: grid; gap: 2px; padding: 0 0 14px; border-bottom: 1px solid var(--line-strong); }
.sidepanel-heading > span { color: #31424f; font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.sidepanel-heading > strong { margin-top: 7px; color: var(--navy-950); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sidepanel-heading > small { color: var(--muted); text-transform: capitalize; }
.watchbook-sidepanel .composer { display: grid; gap: 9px; padding: 16px 0 20px; border-bottom: 1px solid var(--line-strong); }
.watchbook-sidepanel .composer textarea { min-height: 110px; margin: 0; resize: vertical; background: #fff; }
.composer-note { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.watchbook-sidepanel .button-large { margin-top: 4px; }
.watchbook-sidepanel > .notice { margin-top: 16px; }
.standard-text-picker { border: 1px solid #aeb9c2; background: #fff; }
.standard-text-picker summary { padding: 7px 9px; color: #304655; cursor: pointer; font-size: .76rem; font-weight: 700; }
.standard-text-picker[open] summary { border-bottom: 1px solid var(--line); }
.standard-text-options { display: grid; gap: 5px; max-height: 210px; overflow-y: auto; padding: 8px; }
.standard-text-options label { display: flex; align-items: flex-start; gap: 7px; padding: 5px; border-bottom: 1px solid var(--line); cursor: pointer; }
.standard-text-options input { width: auto; margin-top: 2px; padding: 0; }
.standard-text-options .button { margin-top: 3px; }

/* Projekt- und Textbausteinverwaltung */
.settings-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-tabs { overflow-x: auto; flex-wrap: nowrap; }
.settings-tabs a { white-space: nowrap; }
.settings-section { max-width: 860px; }
.settings-intro { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.settings-form { max-width: 720px; padding: 0 18px 18px; }
.settings-form .checkbox-row > span { display: grid; gap: 2px; }
.settings-form .checkbox-row small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.permission-list { border-top: 1px solid var(--line); }
.permission-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(420px, 2fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.permission-row:last-child { border-bottom: 0; }
.permission-person { display: grid; gap: 3px; min-width: 0; }
.permission-person span { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.permission-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.permission-options .checkbox-row { min-width: 120px; }
.settings-facts { margin: 0; border-top: 1px solid var(--line); }
.settings-facts div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.settings-facts div:last-child { border-bottom: 0; }
.settings-facts dt { font-weight: 750; }
.settings-facts dd { margin: 0; color: var(--muted); }
.management-list { border-top: 1px solid var(--line); }
.management-row { border-bottom: 1px solid var(--line); background: #fff; }
.management-row > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.management-row > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.management-row > summary strong, .management-row > summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.management-row > summary small { color: var(--muted); }
.management-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: #f4f6f7; }
.management-editor > .form-stack { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.management-editor textarea { min-height: 82px; }
.round-project { margin: 5px 0 0; color: #334b5b !important; font-size: .78rem; }

/* Schichtplan und weitere Betriebsansichten */
.schedule-toolbar { margin-bottom: 0; padding-bottom: 10px; border-color: var(--line-strong); }
.schedule-month-controls h1 { font-size: 1.22rem; }
.schedule-month-arrow { border-radius: 0; box-shadow: none; }
.schedule-summary {
  gap: 0;
  margin: 0 0 8px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0;
  background: #fff;
}
.schedule-summary > div { border-left: 1px solid var(--line); border-radius: 0; padding: 8px 11px; background: #fff; }
.schedule-summary span { color: #52616c; font-size: .69rem; text-transform: uppercase; letter-spacing: .04em; }
.schedule-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.schedule-week-head { border-radius: 0; border-color: #31576d; background: #244b61; }
.schedule-week-head > span, .schedule-week-head > strong { font-size: .68rem; }
.schedule-weeks { border-radius: 0; border-color: var(--line-strong); }
.schedule-week-number { background: #1b607e; }
.schedule-week-day { background: #fff; }
.schedule-week-day.is-weekend { background: #f3f5f6; }
.schedule-week-day.is-today { box-shadow: inset 0 3px var(--blue-600); }
.schedule-week-day > header { background: #eef1f3; }
.schedule-week-shift {
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.schedule-week-shift:hover { background: #f3f7f8; }
.schedule-staffing-bubble {
  min-width: 31px;
  height: 24px;
  border-radius: 1px;
  box-shadow: none;
}
.schedule-week-applications, .schedule-week-own, .schedule-application,
.own-shift-marker, .schedule-complete, .schedule-date > em,
.schedule-series > summary > span:last-child {
  border-radius: 1px;
}
.schedule-agenda.schedule-mobile, .schedule-day { border-radius: 0; box-shadow: none; }
.schedule-day.is-today { box-shadow: inset 3px 0 var(--blue-600); }
.schedule-series { border-radius: 0; }

@media (min-width: 851px) {
  .sidebar { top: 52px; min-height: calc(100vh - 52px); }
  .sidebar-collapsed .app-frame { grid-template-columns: 56px minmax(0, 1fr); }
  .sidebar-collapsed .sidebar { padding: 6px; }
  .sidebar-collapsed .sidebar a { min-height: 40px; margin-bottom: 1px; border-left-width: 0; padding: 8px 6px; }
  .sidebar-collapsed .sidebar a[aria-current="page"] { box-shadow: inset 3px 0 #58a6cf; }
  .sidebar-collapsed .sidebar .sidebar-submenu a { margin-bottom: 1px; padding: 8px 6px; }
  .sidebar-collapsed .content { padding: 18px 20px 40px; }
  .sidebar-collapsed .content-watchbook { padding: 0; }
}

@media (max-width: 1100px) {
  .watchbook-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .entry-table-head, .entry-card { grid-template-columns: 82px 135px 110px minmax(250px, 1fr); }
  .entry-field { grid-template-columns: 108px minmax(0, 1fr); }
  .management-editor, .management-editor > .form-stack { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .topbar { min-height: 52px; height: 52px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 10px; }
  .brand { padding-right: 12px; }
  .company-chip { grid-column: auto; grid-row: auto; padding: 0 10px; overflow: hidden; white-space: nowrap; }
  .company-chip span { overflow: hidden; text-overflow: ellipsis; }
  .topbar-state { display: none; }
  .topbar .button-ghost { min-height: 30px; padding: 5px 8px; }
  .sidebar { top: 52px; gap: 1px; padding: 5px 7px; border-bottom-color: #31485b; }
  .sidebar a, .sidebar-group-toggle { border-left: 0; }
  .sidebar a[aria-current="page"] { box-shadow: inset 0 -3px #58a6cf; }
  .version-label { margin-top: 8px; }
  .content { padding: 14px 12px 32px; }
  .content-watchbook { padding: 0; }
  .watchbook-layout { display: flex; min-height: 0; flex-direction: column; }
  .watchbook-sidepanel { order: -1; padding: 16px 14px; border-bottom: 1px solid var(--line-strong); border-left: 0; }
  .watchbook-main { padding: 14px 12px 30px; }
  .sidepanel-heading { grid-template-columns: 1fr auto; align-items: end; }
  .sidepanel-heading > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 1.8rem; }
  .sidepanel-heading > small { grid-column: 1; }
  .watchbook-sidepanel .composer textarea { min-height: 120px; }
  .settings-create-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .permission-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-facts div { grid-template-columns: 1fr; gap: 3px; }
  .brand > span:last-child { display: none; }
  .company-chip span { display: none; }
  .company-chip { justify-content: flex-start; }
  .watchbook-heading { min-height: 0; }
  .watchbook-toolbar { gap: 10px; }
  .watchbook-toolbar > span { display: none; }
  .entry-table-head { display: none; }
  .entry-list { border-top: 1px solid var(--line); }
  .entry-card { grid-template-columns: 78px minmax(0, 1fr); }
  .entry-time { grid-row: 1 / 4; }
  .entry-project { min-height: 42px; border-bottom: 1px solid var(--line); }
  .entry-author { min-height: 34px; border-bottom: 1px solid var(--line); }
  .entry-content { grid-column: 2; border-left: 1px solid var(--line); }
  .entry-field { grid-template-columns: 1fr; gap: 4px; }
  .sidepanel-heading > small { font-size: .7rem; }
  .login-panel { border-radius: 0; padding: 20px; }
}

/* V0.10.0: öffentlicher Einstieg und Erstanmeldungs-Pop-up */
.login-customer-link { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.login-customer-link span { color: var(--muted); font-size: .86rem; }
.public-page { min-height: 100vh; color: var(--ink); background: #eef2f5; }
.public-content { width: 100%; min-height: 100vh; }
.public-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 10px max(20px, calc((100vw - 1240px) / 2)); background: var(--navy-950); }
.public-header .button { width: auto; }
.customer-main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 70px; }
.customer-hero { max-width: 720px; margin-bottom: 28px; }
.customer-hero h1 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 3.4rem); }
.customer-hero > p:last-child { color: var(--muted); font-size: 1.05rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong, #cbd2d9); background: #fff; }
.pricing-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; min-width: 0; padding: 22px; border-left: 1px solid var(--line); }
.pricing-card:first-child { border-left: 0; }
.pricing-card h2 { margin: 0; font-size: 1.35rem; }
.pricing-card .price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.pricing-card .price strong { font-size: 2rem; line-height: 1; }
.pricing-card .price span { color: var(--muted); font-size: .78rem; }
.pricing-card ul { display: grid; align-content: start; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pricing-card li { position: relative; padding-left: 18px; color: #465264; font-size: .9rem; }
.pricing-card li::before { position: absolute; left: 0; color: var(--success); content: "✓"; font-weight: 800; }
.customer-form-panel { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 34px; margin-top: 28px; padding: 28px; border: 1px solid var(--line-strong, #cbd2d9); background: #fff; }
.customer-form-intro p:last-child { color: var(--muted); }
.customer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-form .field-wide { grid-column: 1 / -1; }
.customer-success { align-self: start; padding: 18px; border: 1px solid #b9e2cb; background: var(--success-soft); }
.customer-success strong { color: var(--success); font-size: 1.12rem; }
.customer-success .button { margin-top: 8px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.date-input-combo { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; }
.date-picker-trigger { position: relative; display: grid; place-items: center; min-height: 42px; border: 1px solid #c9d1dd; background: #fff; color: var(--blue-700); cursor: pointer; }
.date-picker-trigger > span { font-size: 1.2rem; line-height: 1; }
.date-picker-trigger input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }

.onboarding-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(9, 18, 32, .72); backdrop-filter: blur(3px); }
.onboarding-modal { width: min(1040px, 100%); max-height: calc(100vh - 36px); overflow: hidden; border: 1px solid var(--line-strong, #cbd2d9); background: #edf1f4; box-shadow: 0 30px 90px rgba(0, 0, 0, .34); }
.onboarding-modal-header { display: grid; grid-template-columns: 1fr minmax(260px, .8fr); align-items: end; gap: 24px; padding: 20px 24px; color: #fff; background: var(--navy-950); }
.onboarding-modal-header h1 { color: #fff; }
.onboarding-modal-header p { margin: 0; color: #c8d2e1; }
.onboarding-modal-header .eyebrow { margin-bottom: 4px; color: #91b9ff; }
.onboarding-modal-body { max-height: calc(100vh - 145px); overflow-y: auto; padding: 18px; }
.onboarding-modal-body .panel { border-radius: 0; box-shadow: none; }

@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .pricing-card:nth-child(4) { border-top: 1px solid var(--line); }
  .customer-form-panel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .customer-main { width: min(100% - 20px, 1240px); padding: 28px 0 42px; }
  .pricing-grid, .customer-form { grid-template-columns: 1fr; }
  .pricing-card { border-top: 1px solid var(--line); border-left: 0; }
  .pricing-card:first-child { border-top: 0; }
  .customer-form-panel { gap: 18px; padding: 18px; }
  .customer-form .field-wide { grid-column: auto; }
  .onboarding-modal-backdrop { padding: 0; }
  .onboarding-modal { max-height: 100vh; min-height: 100vh; }
  .onboarding-modal-header { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .onboarding-modal-body { max-height: calc(100vh - 130px); padding: 10px; }
}

/* V0.9.0 – Personalakten */
.personnel-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); margin-bottom: 16px; background: #fff; }
.personnel-stats article { display: grid; gap: 4px; padding: 12px 14px; border-left: 1px solid var(--line); }
.personnel-stats article:first-child { border-left: 0; }
.personnel-stats span { color: var(--muted); font-size: .82rem; }
.personnel-stats strong { font-size: 1.35rem; }
.badge-pending { color: #174b91; background: var(--blue-100); }
.personnel-profile { align-items: end; }
.personnel-document-list { display: grid; gap: 10px; }
.personnel-document-card { border: 1px solid var(--line); border-left: 4px solid #65717e; padding: 13px 15px; background: #fff; }
.personnel-document-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.personnel-document-card > header div { display: grid; gap: 3px; }
.personnel-document-card > header small { color: var(--muted); font-weight: 400; }
.personnel-document-card details { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 9px; }
.personnel-document-card summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.compact-facts { display: flex; gap: 24px; margin: 10px 0; }
.compact-facts div { display: flex; gap: 7px; }
.compact-facts dt { color: var(--muted); }
.compact-facts dd { margin: 0; font-weight: 650; }
.file-links { display: flex; flex-wrap: wrap; gap: 10px; }
.file-links a { color: var(--accent); font-weight: 650; }
.compact-form { margin-top: 10px; max-width: 760px; }
.review-grid { display: grid; grid-template-columns: auto minmax(280px, 1fr); align-items: start; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.static-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
a.static-row { color: inherit; text-decoration: none; }
.static-row > span:first-child { display: grid; gap: 3px; }
.static-row small { color: var(--muted); }
.compact-settings { margin-top: 12px; }
.compact-settings fieldset { min-width: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); padding: 10px; }
.onboarding-steps { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 16px; padding: 0; border: 1px solid var(--line); background: #fff; }
.onboarding-steps li { display: grid; gap: 3px; padding: 12px 14px; border-left: 1px solid var(--line); }
.onboarding-steps li:first-child { border-left: 0; }
.onboarding-steps span { color: var(--muted); font-size: .88rem; }
@media(max-width:850px){.onboarding-steps{grid-template-columns:1fr 1fr}.onboarding-steps li:nth-child(3){border-left:0;border-top:1px solid var(--line)}.onboarding-steps li:nth-child(4){border-top:1px solid var(--line)}.review-grid{grid-template-columns:1fr}.compact-facts{display:grid;gap:4px}}
@media(max-width:600px){.onboarding-steps,.personnel-stats{grid-template-columns:1fr}.onboarding-steps li,.personnel-stats article{border-left:0;border-top:1px solid var(--line)}.onboarding-steps li:first-child,.personnel-stats article:first-child{border-top:0}.personnel-document-card>header{display:grid}.button-row{width:100%}}

/* V0.8.1 – schnelle Terminerfassung */
.quick-shift-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #667782;
  border-radius: 0;
  background: #f7f8f8;
  color: var(--ink);
  box-shadow: 0 14px 40px rgb(12 29 39 / 28%);
}

/* V0.8.2 – modulare Firmenfreigaben */
.company-module-list { display: grid; border: 1px solid var(--line-strong); background: #fff; }
.company-module-list .checkbox-row { min-height: 52px; margin: 0; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.company-module-list .checkbox-row:last-child { border-bottom: 0; }
.company-module-list .checkbox-row > span { display: grid; gap: 2px; }
.company-module-list .checkbox-row small { color: var(--muted); font-size: .7rem; }
.company-module-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
@media (max-width: 600px) { .company-module-actions { display: grid; grid-template-columns: 1fr; } }
.quick-shift-dialog::backdrop { background: rgb(10 24 33 / 58%); }
.quick-shift-form { display: grid; max-height: calc(100vh - 28px); }
.quick-shift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: #e6ebed;
}
.quick-shift-head h2 { margin: 1px 0 0; font-size: 1.12rem; }
.quick-shift-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: #344650;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.quick-shift-close:hover { background: #dfe6e9; }
.quick-shift-body { display: grid; gap: 13px; padding: 16px; overflow-y: auto; }
.quick-shift-body > label { display: grid; gap: 5px; }
.quick-shift-body > label > span,
.quick-time-field legend { color: #42545f; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quick-time-field { margin: 0; padding: 0; border: 0; }
.quick-time-field > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-time-field label { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 7px; }
.quick-time-field label span { color: var(--muted); font-size: .72rem; }
.quick-employee-picker { border: 1px solid var(--line-strong); background: #fff; }
.quick-employee-picker > summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; cursor: pointer; }
.quick-employee-picker > summary span { font-weight: 700; }
.quick-employee-picker > summary small { color: var(--muted); font-weight: 400; }
.quick-employee-picker > summary > strong { color: var(--blue-700); font-size: .74rem; }
.quick-employee-list { display: grid; max-height: 210px; overflow-y: auto; border-top: 1px solid var(--line); }
.quick-employee-list .checkbox-row { min-height: 44px; margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.quick-employee-list .checkbox-row:last-child { border-bottom: 0; }
.quick-employee-list .checkbox-row > span { display: grid; gap: 1px; }
.quick-employee-list .checkbox-row small { color: var(--muted); font-size: .68rem; }
.quick-employee-warning { margin: 0; padding: 8px 12px; border-top: 1px solid #d7b064; background: #fff6dd; color: #745214; font-size: .72rem; }
.quick-shift-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 14px; border-top: 1px solid var(--line-strong); background: #e9edef; }
.quick-shift-actions [value="advanced"] { order: 2; }
.quick-shift-actions [value="create"] { order: 3; }

@media (max-width: 600px) {
  .quick-shift-dialog { width: 100vw; max-width: none; max-height: 100dvh; }
  .quick-shift-form { max-height: 100dvh; }
  .quick-shift-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-shift-actions [value="create"] { grid-column: 1 / -1; grid-row: 1; }
}

/* V0.6.0 – Arbeitszeiterfassung */
.time-admin-label {
  border-left: 3px solid var(--blue-600);
  padding: 4px 8px;
  color: #344754;
  background: #e3eaee;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.time-clock-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--blue-700);
  padding: 18px;
  background: #fff;
}
.time-clock-panel.is-running { border-left-color: var(--success); }
.time-clock-state { display: grid; gap: 3px; }
.time-clock-state > span { color: #52616d; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.time-clock-state > strong { font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.time-clock-state > small { color: var(--muted); }
.time-clock-panel form { display: grid; gap: 7px; }
.time-clock-button { width: 100%; min-height: 48px; font-size: .95rem; }
.time-clock-button:disabled { opacity: .72; cursor: wait; }
.location-feedback { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.time-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.time-summary > div { display: grid; gap: 2px; min-height: 58px; padding: 9px 11px; border-left: 1px solid var(--line); }
.time-summary > div:first-child { border-left: 0; }
.time-summary span { color: #596873; font-size: .67rem; text-transform: uppercase; letter-spacing: .04em; }
.time-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.time-summary .has-warning { box-shadow: inset 0 -3px var(--warning); }
.time-filter-bar {
  display: flex;
  align-items: end;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #e7ebee;
}
.time-filter-bar label { min-width: 170px; }
.time-filter-bar label:nth-of-type(2) { min-width: 220px; }
.time-filter-bar .button { flex: 0 0 auto; }
.time-request-overview { margin-bottom: 10px; padding: 0; }
.time-request-list { border-top: 1px solid var(--line); }
.time-request-list a {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) 150px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.time-request-list a:last-child { border-bottom: 0; }
.time-request-list a:hover { background: #f2f6f7; text-decoration: none; }
.time-request-list span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.time-request-list b { color: var(--blue-700); }
.time-table { min-width: 1060px; }
.time-table td { white-space: nowrap; }
.time-table td:nth-child(5), .time-table td:nth-child(6) { min-width: 120px; }
.time-table td small, .location-link { display: block; }
.time-table td small { margin-top: 2px; color: var(--muted); font-size: .66rem; }
.location-missing { color: var(--danger); font-size: .72rem; font-weight: 700; }
.time-running { color: var(--success); }
.time-status-plain { color: #52616d; font-size: .72rem; }
.time-entry-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.time-entry-summary > div { display: grid; gap: 4px; padding: 13px; border-left: 1px solid var(--line); }
.time-entry-summary > div:first-child { border-left: 0; }
.time-entry-summary span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.time-entry-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.time-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.time-location-panel { display: grid; align-content: start; gap: 4px; }
.time-location-panel h2 { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.time-location-panel > span { color: var(--muted); }
.time-correction-list { display: grid; gap: 8px; }
.time-correction-card { padding: 0; }
.time-correction-card > header { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: #edf1f3; }
.time-correction-card > header div { display: grid; }
.time-correction-card > header span { color: var(--muted); font-size: .7rem; }
.time-correction-card > dl { margin: 0; padding: 4px 13px 10px; }
.time-correction-card > dl div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.time-correction-card > dl div:last-child { border-bottom: 0; }
.time-correction-card dt { color: var(--muted); }
.time-correction-card dd { margin: 0; font-weight: 600; }
.time-correction-card .request-actions { padding: 12px 13px; background: #f6f7f8; }

@media (max-width: 850px) {
  .time-clock-panel { grid-template-columns: 1fr; gap: 14px; }
  .time-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-summary > div:nth-child(odd) { border-left: 0; }
  .time-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .time-filter-bar { flex-wrap: wrap; }
  .time-filter-bar label { flex: 1 1 180px; }
  .time-request-list a { grid-template-columns: 1fr auto; }
  .time-request-list a span { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .time-clock-panel { padding: 14px; }
  .time-clock-state > strong { font-size: 1.65rem; }
  .time-summary { grid-template-columns: 1fr 1fr; }
  .time-filter-bar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .time-filter-bar label { grid-column: 2; min-width: 0 !important; }
  .time-filter-bar button { grid-column: 2; }
  .time-filter-bar > .button:last-child { grid-column: 3; grid-row: 1; }
  .time-entry-summary, .time-location-grid { grid-template-columns: 1fr; }
  .time-entry-summary > div { border-top: 1px solid var(--line); border-left: 0; }
  .time-entry-summary > div:first-child { border-top: 0; }
  .time-correction-card > dl div { grid-template-columns: 1fr; gap: 2px; }
}
