: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;
}

/* V0.13.6: readable metadata and a consistent WCAG-visible focus indicator. */
small, .help-text, .table-note, .entry-field > span, .schedule-week-location, .schedule-week-capacity, .schedule-week-category { font-size: max(.75rem, 12px); color: #435160; }
:focus-visible { outline: 3px solid #075f91 !important; outline-offset: 3px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

* { 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; }
:focus-visible { outline: 3px solid #0b6fa4; outline-offset: 2px; }

.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); }
.mobile-nav-toggle { display: none; border: 1px solid #557086; background: transparent; color: #fff; border-radius: 4px; min-width: 38px; cursor: pointer; }
.mobile-nav-backdrop { display: none; }
.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; }
.password-input-combo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.password-input-combo input { min-width: 0; }
.password-toggle { min-width: 88px; border: 1px solid #c8d0dc; border-radius: 9px; padding: 8px 11px; color: #27334a; background: #fff; font-weight: 700; cursor: pointer; }
.password-toggle:hover { border-color: #9eabba; background: #f8f9fb; }

.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-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.entry-photos img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.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; }
.error-reference { color: var(--muted); font-size: .82rem; }

.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: 102px minmax(190px, 1fr) 138px minmax(48px, auto); align-items: center; min-height: 68px; border: 1px solid var(--line); border-left: 4px solid var(--shift-color, #94a0b3); color: var(--ink); background: #fff; }
.schedule-shift + .schedule-shift { border-top: 1px solid var(--line); }
.schedule-shift:hover { background: #f8fbff; text-decoration: none; }
.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-own-assignment { background: #e7f6ee; box-shadow: inset 0 0 0 2px #2f7d46; }
.schedule-shift.is-own-assignment::after { content: 'Meine Einteilung'; position: absolute; right: 8px; top: 4px; color: #175b35; font-size: .78rem; font-weight: 800; }
.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(--line); border-left: 4px 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(--line); }
.schedule-week-shift:hover { border-color: var(--line); border-left-color: var(--shift-color, #94a0b3); 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: 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: 76px minmax(0, 1fr) auto; align-items: start; min-height: 82px; }
  .schedule-time { grid-row: 1 / 3; }
  .schedule-shift-main { grid-column: 2; padding-bottom: 4px; }
  .schedule-staffing { grid-column: 2; border-left: 0; padding-top: 0; }
  .schedule-shift-meta { grid-column: 3; 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; }
.brand.has-company-logo { width: 132px; min-width: 132px; height: 52px; overflow: hidden; }
.brand-company-logo { display: block; width: auto; height: auto; max-width: 112px; max-height: 34px; object-fit: contain; object-position: left center; }
.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-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: max-content; }
.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: 13px 20px 36px; }
.watchbook-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 2px 3px 8px;
  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: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 9px;
  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: 86px minmax(115px, 150px) 105px minmax(340px, 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: 3px solid #99aab6;
  border-radius: 0;
  padding: 0;
  background: #fff;
  box-shadow: none;
}
.entry-card:last-child { border-bottom: 0; }
.entry-card:hover { background: #f4f7f8; }
.entry-card:nth-child(even) { background: #edf3f5; }
.entry-card:nth-child(even):hover { background: #e7eef1; }
.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, .entry-card:nth-child(even) .entry-measures { background: transparent; }
.entry-list .empty-state { border: 0; padding: 34px 18px; }
.pagination { margin: 12px 0 0; }

.watchbook-sidepanel {
  min-width: 0;
  padding: 17px 20px;
  border-left: 1px solid var(--line-strong);
  background: #eef1f3;
}
.sidepanel-heading { display: grid; gap: 2px; padding: 0 0 10px; 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: 6px; padding: 10px 0 14px; 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: 1px; }
.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; }
.company-logo-preview { display: flex; align-items: center; min-height: 76px; margin: 0 18px 12px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.company-logo-preview img { display: block; width: auto; height: auto; max-width: 240px; max-height: 52px; object-fit: contain; object-position: left center; }
.settings-logo-delete { padding: 0 18px 18px; }
.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;
}

/* V0.11.1.3: Die Kategorienfarbe bleibt ausschließlich am linken Terminbalken. */
.schedule-week-shift,
.schedule-shift {
  border-top-color: var(--line) !important;
  border-right-color: var(--line) !important;
  border-bottom-color: var(--line) !important;
  border-left: 4px solid var(--shift-color, #94a0b3) !important;
}
.schedule-week-shift:hover,
.schedule-shift:hover {
  border-left-color: var(--shift-color, #94a0b3) !important;
}
.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: 76px 115px 95px minmax(260px, 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; }
  .brand.has-company-logo { width: 92px; min-width: 92px; }
  .brand-company-logo { max-width: 80px; max-height: 30px; }
  .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; }
  body.mobile-nav-open { overflow: hidden; }
  .mobile-nav-toggle { display: inline-grid; place-items: center; }
  .mobile-nav-backdrop { position: fixed; z-index: 40; inset: 52px 0 0; background: rgba(5, 17, 28, .52); }
  .mobile-nav-backdrop:not([hidden]) { display: block; }
  .sidebar { position: fixed; z-index: 50; top: 52px; bottom: 0; left: 0; display: block; width: min(85vw, 320px); padding: 12px; overflow-y: auto; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface); box-shadow: 8px 0 22px rgba(0,0,0,.18); transform: translateX(-104%); transition: transform .18s ease; }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  .sidebar a, .sidebar-group-toggle { display: flex; width: 100%; margin: 0 0 3px; border-left: 0; padding: 10px 11px; white-space: normal; }
  .sidebar a[aria-current="page"] { box-shadow: inset 3px 0 #58a6cf; }
  .sidebar-parent { grid-template-columns: minmax(0, 1fr) 38px; }
  .sidebar-submenu { margin: 2px 0 5px 10px; }
  .version-label { margin: 12px 10px 0; }
  .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: inline; }
  .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.11.0 – kompaktere, ruhige Verwaltungsoberfläche */
.page-heading { margin-bottom: 10px; }
.page-heading h1, .section-heading h2, .panel > h2 { margin-bottom: 4px; }
.section-heading { margin: 12px 0 7px; }
.panel { padding: 12px 14px; }
.form-stack { gap: 9px; }
.form-grid { gap: 8px 12px; }
.button-row, .form-actions { gap: 7px; }
.table-scroll th, .table-scroll td { padding-top: 8px; padding-bottom: 8px; }
.management-row > summary, .management-row.static-row { padding-top: 9px; padding-bottom: 9px; }
.qualification-grid, .function-cards, .request-list, .personnel-document-list { gap: 8px; }
.settings-grid { gap: 10px; }
.shift-detail-head { display: grid; grid-template-columns: 1fr; gap: 5px; border-radius: 0; }
.shift-detail-head > div { display: flex; flex-wrap: wrap; gap: 5px 16px; align-items: baseline; }

@media (max-width: 700px) {
  .panel { padding: 11px 12px; }
  .shift-detail-head > div { display: grid; gap: 3px; }
}

/* 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; }
}

/* V0.13.3 – Firmenlink, Kontaktbuch und kompakteres Wachbuch */
.company-chip .company-name { color: inherit; }
.company-chip a.company-name { text-decoration: none; }
.company-chip a.company-name:hover, .company-chip a.company-name:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.watch-photo-picker { display: grid; gap: 6px; }
.watch-photo-label { font-size: .82rem; font-weight: 700; }
.watch-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.watch-photo-actions .button { min-height: 32px; padding: 6px 9px; font-size: .76rem; cursor: pointer; }
.watch-photo-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.watch-photo-previews { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; }
.watch-photo-preview { width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.watch-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.watch-photo-preview span { display: grid; place-items: center; width: 100%; height: 100%; padding: 3px; color: var(--muted); font-size: .58rem; line-height: 1.1; text-align: center; overflow: hidden; }

.contact-heading p { margin: 3px 0 0; color: var(--muted); }
.contact-panel, .contact-form-panel { max-width: 1120px; }
.contact-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-search { flex: 1 1 420px; max-width: 620px; }
.contact-search span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .72rem; }
.contact-toolbar > span { white-space: nowrap; color: var(--muted); font-size: .76rem; }
.contact-list { display: grid; }
.contact-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 1.2fr) minmax(130px, .9fr) minmax(120px, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-primary, .contact-direct, .contact-scope { min-width: 0; display: grid; gap: 2px; }
.contact-primary strong, .contact-direct a, .contact-scope small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-primary small, .contact-scope small, .contact-note { color: var(--muted); font-size: .72rem; }
.contact-direct a { color: #174d70; text-decoration: none; font-size: .8rem; }
.contact-direct a:hover { text-decoration: underline; }
.contact-scope-label { width: max-content; padding: 2px 5px; border: 1px solid var(--line); background: #f4f6f7; color: #354550; font-size: .64rem; font-weight: 700; }
.contact-note { max-height: 3.1em; overflow: hidden; overflow-wrap: anywhere; }
.contact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.contact-actions form { margin: 0; }
.contact-actions .button { min-height: 30px; padding: 5px 8px; font-size: .72rem; }
.contact-form-panel .form-stack { max-width: 900px; }
.contact-visibility { display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); }
.contact-visibility legend { padding: 0 5px; font-weight: 700; }
.contact-project-options { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 4px; }
.contact-project-options label { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; }
.contact-project-options input { width: auto; margin: 0; }

@media (max-width: 1100px) {
  .contact-row { grid-template-columns: minmax(140px, 1fr) minmax(170px, 1fr) minmax(120px, .8fr) auto; }
  .contact-note { grid-column: 1 / 4; }
}

@media (max-width: 850px) {
  .company-chip .company-name { overflow: hidden; text-overflow: ellipsis; }
  .contact-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .contact-primary, .contact-direct, .contact-scope, .contact-note { grid-column: 1; }
  .contact-actions { grid-column: 2; grid-row: 1 / 5; align-self: center; flex-direction: column; }
}

@media (max-width: 600px) {
  .company-chip .company-name { display: none; }
  .watch-photo-actions .button { flex: 1 1 135px; text-align: center; }
  .contact-toolbar { align-items: stretch; flex-direction: column; }
  .contact-search { flex-basis: auto; max-width: none; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-direction: row; }
}

/* V0.13.4 – kompakte Qualifikationsaktionen, Sitzungswarnung und Hauptadmin-Hinweise */
.qualification-card-actions { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.qualification-card-actions form { margin: 0; }
.qualification-action-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.qualification-action-icon:hover { border-color: var(--line-strong); background: #f6f8f9; }
.qualification-action-icon svg { width: 16px; height: 16px; }
.qualification-action-danger { color: var(--danger, #a62d2d); }
.qualification-proof-menu { position: relative; }
.qualification-proof-menu > summary { list-style: none; }
.qualification-proof-menu > summary::-webkit-details-marker { display: none; }
.qualification-proof-menu > div { position: absolute; z-index: 20; top: 36px; right: 0; min-width: 220px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 8px 24px rgba(20,32,40,.12); }
.qualification-proof-menu > div a { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-file-list { display: grid; gap: 4px; padding: 8px 10px; border-left: 3px solid var(--line-strong); background: #f7f9fa; font-size: .82rem; }
.proof-file-list strong { font-size: .78rem; }
.proof-file-list a, .proof-file-list span { overflow-wrap: anywhere; }

.login-remember { margin-top: -2px; }
.session-timeout-dialog { width: min(430px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-strong); background: #fff; }
.session-timeout-dialog::backdrop { background: rgba(20, 30, 38, .38); }
.session-timeout-card { display: grid; gap: 12px; padding: 20px; }
.session-timeout-card h2, .session-timeout-card p { margin: 0; }
.platform-admin-notice { margin-bottom: 10px; }
.platform-notice-admin { margin-bottom: 18px; }
.platform-notice-list { display: grid; gap: 7px; margin-top: 14px; }
.platform-notice-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.platform-notice-row p { margin: 3px 0; white-space: pre-wrap; }
.platform-notice-row small { color: var(--muted); }

@media (max-width: 720px) {
  .qualification-proof-menu > div { right: auto; left: 0; max-width: min(280px, calc(100vw - 48px)); }
  .platform-notice-row { flex-direction: column; }
}

/* V0.13.5.5 – kompakte Dienstanweisungen, Kontakte und QR-Rundgänge */
.compact-choice-row { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:6px; }
.compact-choice-row label { display:flex; align-items:center; gap:5px; font-size:.78rem; }
.compact-choice-row input { width:auto; }
.instruction-metrics,.round-metrics { display:flex; gap:8px; margin:0 0 8px; }
.instruction-metrics span,.round-metrics span { display:flex; align-items:baseline; gap:4px; padding:5px 8px; border:1px solid var(--line); background:#fff; font-size:.72rem; }
.instruction-metrics strong,.round-metrics strong { font-size:1rem; }
.instruction-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; gap:8px; align-items:end; padding:8px; margin-bottom:8px; }
.compact-tabs { display:flex; gap:2px; }
.compact-tabs a,.compact-tabs button { padding:6px 9px; border:1px solid var(--line); color:inherit; font:inherit; font-size:.72rem; text-decoration:none; background:transparent; cursor:pointer; }
.compact-tabs a.active,.compact-tabs button.active { border-color:var(--blue-700); background:var(--blue-700); color:#fff; }
.inline-form { display:inline-flex; margin:0; }
.compact-instruction-list { padding:0; overflow:hidden; }
.compact-instruction-list .instruction-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; align-items:center; min-height:72px; padding:9px 12px; border:0; border-bottom:2px solid var(--line-strong); border-radius:0; }
.compact-instruction-list .instruction-row:last-child { border-bottom:0; }
.instruction-row.is-new { box-shadow:inset 4px 0 var(--blue-600); background:#f7fbfd; }
.instruction-row-link { position:absolute; inset:0; z-index:0; }
.instruction-copy,.instruction-state,.instruction-actions { position:relative; z-index:1; }
.instruction-copy { display:grid; gap:2px; pointer-events:none; }
.instruction-copy strong { font-size:.94rem; }
.instruction-copy p { margin:3px 0 0; color:#3f505a; font-size:.75rem; line-height:1.35; }
.instruction-state { display:grid; justify-items:end; gap:3px; font-size:.7rem; }
.instruction-status-link { display:grid; gap:2px; text-align:right; }
.instruction-actions { display:flex; align-items:center; gap:5px; }
.repeat-row { position:relative; margin-top:8px; padding:9px 42px 9px 9px; border:1px solid var(--line); background:#f8fafb; }
.repeat-row > [data-remove-repeat] { position:absolute; top:8px; right:8px; }
.span-two { grid-column:1/-1; }
.qr-admin-panel,.round-scanner { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.qr-admin-panel form { display:flex; align-items:end; gap:7px; }
.round-scanner dialog { width:min(430px,calc(100vw - 24px)); padding:14px; border:1px solid var(--line-strong); }
.round-scanner dialog::backdrop { background:rgba(10,24,34,.52); }
.round-scanner video { width:100%; max-height:65vh; background:#111; object-fit:cover; }
.dialog-close { float:right; border:0; background:transparent; font-size:1.5rem; cursor:pointer; }
.progress-card.scanned { border-color:var(--blue-600); }
.progress-card.with_deviation,.progress-card.unavailable { border-left:4px solid var(--danger); }
.finding-row { padding:8px 0; border-bottom:1px solid var(--line); }
.finding-row p { margin:3px 0; }
.round-photo-list { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.round-photo-list img { display:block; width:58px; height:44px; border:1px solid var(--line); object-fit:cover; }
.round-protocol-block { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.round-protocol-block h3 { margin: 0 0 4px; font-size: .8rem; }
.round-protocol-block p { margin: 2px 0; }
.round-control-result { display: grid; grid-template-columns: minmax(150px,1fr) minmax(100px,1fr) auto; gap: 7px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.round-control-result:first-of-type { border-top: 0; }
.checkpoint-hint { padding:8px 0; border-bottom:1px solid var(--line); }
.checkpoint-hint h3,.checkpoint-hint p { margin:4px 0; }
.checkpoint-hint-launcher { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.checkpoint-hint-launcher h2,.checkpoint-hint-launcher p { margin:2px 0; }
.checkpoint-hint-dialog { width:min(520px,calc(100vw - 24px)); max-height:calc(100vh - 28px); padding:14px; border:1px solid var(--line-strong); }
.checkpoint-hint-dialog::backdrop { background:rgba(10,24,34,.48); }
.checkpoint-hint-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.compact-filter-grid { display:grid; grid-template-columns:1.5fr repeat(5,minmax(110px,.7fr)) auto; gap:7px; align-items:end; padding:8px; }
.clickable-row { cursor:pointer; }
.clickable-row:hover { background:#f2f7fa; }
@media(max-width:900px){.instruction-toolbar,.compact-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-instruction-list .instruction-row{grid-template-columns:1fr auto}.instruction-state{justify-items:start}.instruction-actions{grid-column:1/-1}.qr-admin-panel,.round-scanner{align-items:stretch;flex-direction:column}.qr-admin-panel form{align-items:stretch;flex-direction:column}}
@media(max-width:600px){.instruction-toolbar,.compact-filter-grid{grid-template-columns:1fr}.compact-tabs{overflow:auto}.compact-instruction-list .instruction-row{grid-template-columns:1fr}.instruction-state{justify-items:start}}

/* V0.13.5 – einheitliche Aktionssymbole, Mitteilungen und Dienstanweisungen */
.action-icons { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.action-icon,
.qualification-action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.action-icon:hover,
.qualification-action-icon:hover { border-color: var(--line-strong); background: #f6f8f9; }
.action-icon svg,
.qualification-action-icon svg { width: 16px; height: 16px; pointer-events: none; }
.action-icon-danger,
.qualification-action-danger { color: var(--danger, #a62d2d); }
.table-action .action-icon { vertical-align: middle; }
.table-action form:has(.action-icon) { display: inline-block; margin-left: 5px; vertical-align: middle; }
.file-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }

.notification-bell { display: grid; grid-template-rows: 20px 11px; place-items: center; align-content: center; width: 38px; height: 44px; border: 0; color: #dce5eb; text-decoration: none; background: transparent; }
.notification-bell:hover { color: #fff; background: #1d4058; text-decoration: none; }
.notification-bell svg { grid-row: 1; width: 18px; height: 18px; }
.notification-bell:not(.has-unread) svg { grid-row: 1 / -1; }
.notification-count { grid-row: 2; min-width: 15px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--danger, #a62d2d); color: #fff; font-size: .58rem; font-weight: 800; line-height: 13px; text-align: center; }
.notification-list { display: grid; }
.notification-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.notification-row:last-child { border-bottom: 0; }
.notification-row:hover { background: #f8fafb; }
.notification-row.is-unread { font-weight: 600; }
.notification-dot { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notification-row.is-unread .notification-dot { background: var(--accent, #12628a); }
.notification-copy { min-width: 0; display: grid; gap: 2px; }
.notification-copy strong, .notification-copy span { overflow-wrap: anywhere; }
.notification-copy span, .notification-row time { color: var(--muted); font-size: .76rem; font-weight: 400; }

.instruction-list { display: grid; }
.instruction-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.instruction-row:last-child { border-bottom: 0; }
.instruction-copy { display: grid; gap: 3px; min-width: 0; }
.instruction-copy p { margin: 0; color: var(--muted); }
.instruction-actions { display: flex; align-items: center; gap: 6px; }
.compact-state-action { white-space: nowrap; }

.qualification-request-card { display: grid; gap: 9px; padding: 13px 4px 15px; border: 0; border-bottom: 3px solid var(--line-strong); background: transparent; box-shadow: none; }
.qualification-request-card:first-child { border-top: 1px solid var(--line); }
.qualification-request-card > header { align-items: start; }
.qualification-request-heading { display: grid; gap: 1px; }
.qualification-request-heading h2 { font-size: 1.35rem; line-height: 1.15; }
.qualification-request-heading > strong { font-size: .94rem; }
.qualification-request-heading small { color: var(--muted); font-size: .74rem; }
.qualification-request-submitted, .qualification-request-expiry { margin: 0; color: var(--muted); font-size: .78rem; }
.qualification-request-submitted strong, .qualification-request-expiry strong { color: var(--ink); }
.qualification-request-proofs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .76rem; }
.qualification-request-proofs > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.qualification-proof-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.qualification-proof-icon:hover { border-color: var(--blue-700); color: var(--blue-700); text-decoration: none; }
.qualification-proof-icon svg { width: 16px; height: 16px; }
.qualification-review-result { margin: 0; padding: 7px 9px; border-left: 3px solid var(--blue-700); background: #f1f4f5; font-size: .8rem; }
.qualification-request-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 9px; border-top: 1px solid var(--line); }
.qualification-approval-form { display: grid; grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto; gap: 8px; align-items: end; }
.qualification-review-note { min-height: 38px; height: 38px; max-height: 180px; padding-block: 7px; field-sizing: content; resize: vertical; }
.qualification-request-actions .button { min-height: 38px; padding: 6px 11px; }
.qualification-reject-details { position: relative; }
.qualification-reject-details > summary { list-style: none; }
.qualification-reject-details > summary::-webkit-details-marker { display: none; }
.qualification-reject-details[open] > form { position: absolute; z-index: 20; right: 0; top: calc(100% + 5px); width: min(420px, 80vw); padding: 11px; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 8px 24px rgba(20,32,40,.14); }
.qualification-reject-details [data-standard-text-picker] { font-size: .8rem; }

@media (max-width: 650px) {
  .notification-row { grid-template-columns: 8px minmax(0, 1fr); }
  .notification-row time { grid-column: 2; }
  .instruction-row { grid-template-columns: 1fr; }
  .instruction-actions { justify-content: flex-start; flex-wrap: wrap; }
  .qualification-request-actions, .qualification-approval-form { grid-template-columns: 1fr; }
  .qualification-reject-details[open] > form { position: static; width: 100%; margin-top: 6px; }
}

/* V0.13.5.3 – kompakte Betriebsübersichten und einheitliche Aktionen */
.action-icon,
.qualification-action-icon,
.qualification-proof-icon {
  box-sizing: border-box;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}
.action-icon svg,
.qualification-action-icon svg,
.qualification-proof-icon svg { width: 16px; height: 16px; }
.action-icons form,
.table-action .action-icons form:has(.action-icon) { display: inline-flex; margin: 0; }

.qualification-expiry-text { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.qualification-grid > .qualification-card { gap: 5px; padding: 10px 3px 12px; border: 0; border-bottom: 2px solid var(--line-strong); background: transparent; box-shadow: none; }
.qualification-grid > .qualification-card:first-child { border-top: 1px solid var(--line); }
.qualification-grid > .qualification-card > header { padding: 0; border: 0; }
.qualification-grid > .qualification-card > p { margin: 2px 0; }
.qualification-group-delete { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.time-summary > div { min-height: 46px; padding: 6px 9px; align-content: center; gap: 0; }
.time-summary span { line-height: 1.15; }
.time-summary strong { line-height: 1.15; }
.time-filter-bar { gap: 5px; padding: 6px; }
.time-filter-bar label { min-width: 150px; }
.time-filter-bar label > span { margin-bottom: 2px; font-size: .7rem; }
.time-filter-bar input,
.time-filter-bar select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.time-table-panel { padding-top: 5px; }
.time-table { min-width: 940px; }
.time-table th,
.time-table td { padding-top: 6px; padding-bottom: 6px; }
.time-table tr.time-needs-review td:first-child { box-shadow: inset 3px 0 #c89b31; }
.location-missing { color: var(--muted); font-weight: 500; }

.personnel-stats { margin-bottom: 9px; }
.personnel-stats > a { display: grid; align-content: center; gap: 0; min-height: 48px; padding: 6px 10px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.personnel-stats > a:first-child { border-left: 0; }
.personnel-stats > a:hover { background: #f6f8f9; }
.personnel-stats > a.is-active { box-shadow: inset 0 -2px var(--blue-700); }
.personnel-stats span { font-size: .72rem; line-height: 1.15; }
.personnel-stats strong { font-size: 1.05rem; line-height: 1.1; }
.personnel-overview-panel { padding-top: 4px; }
.personnel-overview-table { min-width: 960px; }
.personnel-overview-table th,
.personnel-overview-table td { padding-top: 6px; padding-bottom: 6px; }
.personnel-overview-table td:first-child { min-width: 190px; }
.personnel-overview-table td:nth-child(2) { min-width: 320px; }
.personnel-name-link { color: var(--ink); text-decoration: none; }
.personnel-name-link:hover { color: var(--blue-700); text-decoration: underline; }
.personnel-needs { display: grid; gap: 2px; color: #5e6870; font-size: .74rem; white-space: normal; }
.personnel-needs strong { color: #384852; }
.personnel-overview-table tr.has-personnel-action td:first-child { box-shadow: inset 3px 0 #c89b31; }
.personnel-onboarding { color: var(--muted); font-size: .74rem; }
.personnel-onboarding.is-open { color: #755815; font-weight: 700; }
.is-muted { color: var(--muted); font-size: .74rem; }

.schedule-summary > a { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 6px 9px; border-left: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; }
.schedule-summary > div { gap: 5px; padding: 6px 9px; }
.schedule-summary > a:hover { background: #f6f8f9; }
.schedule-summary > a.is-active { box-shadow: inset 0 -2px var(--blue-700); }
.schedule-summary .has-warning { border-color: transparent; background: #fff; }
.schedule-summary .has-warning strong { color: var(--danger); }
.schedule-summary .has-info { border-color: transparent; background: #fff; }
.schedule-summary-link strong { color: var(--blue-700); }
.schedule-filter-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -1px 0 7px; padding: 5px 8px; border: 1px solid var(--line); background: #f6f8f9; font-size: .74rem; }
.schedule-week-head,
.schedule-week-row { min-width: 900px; grid-template-columns: 42px repeat(7, minmax(0, 1fr)); }
.schedule-week-head > span,
.schedule-week-head > strong { padding: 3px 2px; }
.schedule-week-day { min-height: 96px; }
.schedule-week-day > header { min-height: 27px; padding: 3px 6px; }
.schedule-week-shifts { gap: 4px; padding: 4px; }
.schedule-week-shift { gap: 0; padding: 4px 5px; }
.schedule-week-shift-head { min-height: 0; }
.schedule-week-day.is-today { outline: 2px solid var(--blue-600); outline-offset: -2px; box-shadow: none; }
.schedule-shift { padding-top: 8px; padding-bottom: 8px; }
.schedule-day.is-today { outline: 2px solid var(--blue-600); outline-offset: -2px; box-shadow: none; }

.watchbook-export-form { max-width: 820px; }
.watchbook-export-projects { padding: 10px; border: 1px solid var(--line); }
.watchbook-export-projects legend { padding: 0 5px; font-weight: 700; }
.watchbook-export-projects > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 14px; margin-top: 7px; }

@media (max-width: 600px) {
  .personnel-stats > a { border-top: 1px solid var(--line); border-left: 0; }
  .personnel-stats > a:first-child { border-top: 0; }
  .watchbook-export-projects > div { grid-template-columns: 1fr; }
}

/* V0.13.5.4 – kompakte Qualifikationen, Account-Navigation und Mitteilungen */
.action-icon svg,
.qualification-action-icon svg,
.qualification-proof-icon svg { width: 21px; height: 21px; }

.qualification-grid { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.qualification-grid > .qualification-card { min-width: 0; height: 100%; padding: 10px; border: 1px solid var(--line); }
.qualification-grid > .qualification-card:first-child { border-top: 1px solid var(--line); }
.qualification-card > header h2 { font-size: 1rem; }
.qualification-card-actions { margin-top: auto; }
.qualification-request-history th,
.qualification-request-history td { padding-top: 6px; padding-bottom: 6px; }
.qualification-request-history .badge { padding: 2px 6px; font-size: .66rem; }
.qualification-request-history .table-note { display: block; margin-top: 2px; font-size: .7rem; }

.qualification-request-list { padding: 0; overflow: visible; }
.qualification-employee-group + .qualification-employee-group { border-top: 4px solid var(--line-strong); }
.qualification-employee-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-strong); background: #f1f4f5; }
.qualification-employee-heading h2 { margin: 0; font-size: 1.18rem; }
.qualification-employee-heading span,
.qualification-employee-heading small { color: var(--muted); font-size: .72rem; }
.qualification-request-row { display: grid; gap: 5px; padding: 8px 12px 10px; border-bottom: 2px solid var(--line); }
.qualification-request-row:last-child { border-bottom: 0; }
.qualification-request-row-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.qualification-request-row-heading > div { display: grid; gap: 1px; }
.qualification-request-row-heading > div > strong { font-size: .94rem; }
.qualification-request-row-heading small { color: var(--muted); font-size: .7rem; }
.qualification-request-row-heading .badge { padding: 2px 6px; font-size: .64rem; }
.qualification-request-proofs { gap: 5px; }
.qualification-request-actions { display: flex; align-items: end; justify-content: flex-end; gap: 7px; padding-top: 6px; }
.qualification-approval-form { flex: 1 1 auto; grid-template-columns: minmax(155px,210px) minmax(180px,1fr) auto; }
.qualification-review-label { min-width: 180px; }
.qualification-review-note { min-height: 34px; height: 34px; padding-block: 5px; overflow-y: hidden; field-sizing: content; }
.qualification-request-actions .button { min-height: 34px; }

.sidebar-divider { display: block; height: 1px; margin: 7px 5px; background: rgba(209,224,234,.25); }
.notification-menu { position: relative; }
.notification-menu > summary { list-style: none; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-bell { position: relative; display: grid; place-items: center; width: 38px; height: 44px; cursor: pointer; }
.notification-bell svg,
.notification-bell:not(.has-unread) svg { grid-row: auto; width: 19px; height: 19px; }
.notification-count { position: absolute; left: 50%; bottom: -2px; transform: translateX(1px); min-width: 15px; height: 14px; line-height: 14px; z-index: 2; }
.notification-popover { position: absolute; z-index: 80; top: calc(100% + 5px); right: 0; width: min(390px,calc(100vw - 20px)); max-height: min(520px,calc(100vh - 70px)); overflow: auto; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(12,28,38,.22); }
.notification-popover > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: #fff; }
.notification-popover > header a { font-size: .74rem; }
.notification-popover-empty { margin: 0; padding: 18px 12px; color: var(--muted); }
.notification-popover-item { display: grid; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.notification-popover-item.is-unread { box-shadow: inset 3px 0 var(--blue-700); }
.notification-popover-item p { margin: 2px 0; color: var(--muted); font-size: .76rem; }
.notification-popover-item small { color: var(--muted); font-size: .68rem; }
.notification-popover-actions,
.notification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font-size: .72rem; }
.notification-popover-actions form,
.notification-actions form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.notification-popover-actions select,
.notification-actions select { width: auto; min-height: 27px; padding: 3px 22px 3px 5px; font-size: .7rem; }
.notification-task-label { color: #735513; font-size: .64rem; text-transform: uppercase; }
.notification-row { grid-template-columns: 8px minmax(0,1fr) auto; }
.notification-row > .notification-actions { grid-column: 2 / -1; }
.notification-copy small { color: var(--muted); font-size: .7rem; }
.instruction-times { display: grid; gap: 1px; }

.notification-channel-settings { max-width: 960px; }
.notification-channel-settings > form { padding: 0 14px 14px; }
.notification-channel-table { border: 1px solid var(--line); }
.notification-channel-head,
.notification-channel-row { display: grid; grid-template-columns: minmax(220px,1fr) 80px 145px 80px; align-items: center; }
.notification-channel-head { min-height: 34px; background: #eef1f3; font-size: .72rem; }
.notification-channel-row { min-height: 36px; border-top: 1px solid var(--line); font-size: .8rem; }
.notification-channel-head > *,
.notification-channel-row > * { padding: 6px 8px; }
.notification-channel-head > *:not(:first-child),
.notification-channel-row > *:not(:first-child) { justify-self: center; text-align: center; }
.notification-channel-row input { width: auto; }

@media (max-width: 1180px) {
  .qualification-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .qualification-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notification-popover { position: fixed; top: 57px; right: 10px; }
}
@media (max-width: 650px) {
  .qualification-grid { grid-template-columns: 1fr; }
  .qualification-request-actions { align-items: stretch; flex-direction: column; }
  .notification-channel-table { overflow-x: auto; }
  .notification-channel-head,.notification-channel-row { min-width: 580px; }
}

/* V0.13.5.4 – Wachbuch-Arbeitsplatz */
.watchbook-filter { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(4,minmax(115px,.8fr)) auto auto; gap: 6px; align-items: end; padding: 7px 8px; border: 1px solid var(--line-strong); border-top: 0; background: #f8f9fa; }
.watchbook-filter label { display: grid; gap: 2px; min-width: 0; }
.watchbook-filter label > span { color: var(--muted); font-size: .66rem; font-weight: 700; }
.watchbook-filter input,.watchbook-filter select { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: .74rem; }
.watchbook-filter .button { min-height: 32px; padding: 5px 9px; }
.entry-table-head { position: sticky; top: 52px; z-index: 15; }
.entry-card { border-bottom-width: 4px; }
.entry-card > * { padding-top: 7px; padding-bottom: 7px; }
.entry-field { grid-template-columns: 116px minmax(0,1fr); gap: 8px; padding: 6px 9px; }
.entry-long-text { min-width: 0; }
.entry-long-text p { margin: 0; }
.entry-long-text.is-collapsed p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }
.entry-long-text [data-text-toggle] { margin-top: 3px; font-size: .72rem; }
.watchbook-date-separator { padding: 5px 9px; border-bottom: 1px solid var(--line-strong); background: #dfe6ea; color: #344a59; font-size: .7rem; font-weight: 800; letter-spacing: .035em; }
.watchbook-sidepanel { position: sticky; top: 52px; align-self: start; height: calc(100vh - 52px); overflow: auto; }
.watchbook-sidepanel .composer { position: relative; padding-bottom: 0; }
.watchbook-sidepanel .standard-text-picker + textarea { margin-top: -3px; }
.standard-text-picker { position: relative; }
.standard-text-picker[open] summary { border-bottom: 0; }
.watchbook-sidepanel .standard-text-options { position: static; z-index: auto; width: auto; min-width: 0; max-width: 100%; max-height: 210px; overflow: auto; border: 1px solid var(--line-strong); background: #fff; box-shadow: none; }
.watchbook-save-action { position: sticky; bottom: 0; z-index: 12; margin: 0 -2px; padding: 8px 2px 10px; border-top: 1px solid var(--line-strong); background: #eef1f3; }
.watchbook-save-action .button { width: 100%; }
.watchbook-save-confirmation { margin: 0; padding: 7px 9px; font-size: .76rem; }
.watch-photo-preview { position: relative; overflow: visible; }
.watch-photo-preview img,.watch-photo-preview > span { overflow: hidden; }
.watch-photo-remove { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: var(--danger,#a62d2d); color: #fff; font-size: .8rem; line-height: 1; cursor: pointer; }

@media (max-width: 1200px) {
  .watchbook-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .watchbook-sidepanel { position: static; height: auto; overflow: visible; }
  .entry-table-head { top: 52px; }
  .watchbook-sidepanel .standard-text-options { position: static; width: auto; max-height: 210px; transform: none; }
  .watchbook-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .watchbook-filter { grid-template-columns: 1fr; }
  .entry-table-head { position: static; }
}

/* V0.13.5.4 – Freigabe und Direkteinteilung im Schichtplan */
.schedule-release-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 7px 9px; border: 1px solid var(--line-strong); background: #f6f8f9; font-size: .78rem; }
.schedule-release-bar form { margin: 0; }
.schedule-locked-notice { display: grid; gap: 3px; margin-bottom: 10px; }
.schedule-week-row.is-empty-week .schedule-week-day { min-height: 52px; }
.schedule-week-row.is-empty-week .schedule-week-number { min-height: 52px; }
.schedule-week-shift-wrap,.schedule-shift-wrap { position: relative; min-width: 0; }
.schedule-week-shift-wrap .schedule-week-shift { padding-right: 25px; }
.schedule-assigned-names { overflow-wrap: anywhere; color: #3b5362; font-size: .78rem; font-weight: 700; white-space: normal; }
.personnel-overview-table tbody tr:nth-child(even) { background: #f7f9fa; }
@media (max-width: 700px) {
  .personnel-overview-table { min-width: 0; }
  .personnel-overview-table thead { display: none; }
  .personnel-overview-table, .personnel-overview-table tbody, .personnel-overview-table tr, .personnel-overview-table td { display: block; width: 100%; }
  .personnel-overview-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .personnel-overview-table td { min-width: 0 !important; padding: 3px 0; border: 0; }
  .personnel-overview-table .table-action { text-align: left; }
}
.schedule-quick-assign { position: absolute; right: 4px; bottom: 4px; z-index: 3; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid var(--blue-700); background: #fff; color: var(--blue-700); font-size: .9rem; font-weight: 800; cursor: pointer; }
.schedule-quick-assign:hover { background: var(--blue-700); color: #fff; }
.schedule-week-applications,.schedule-week-own,.own-shift-marker,.schedule-application { padding: 2px 4px; font-size: .62rem; line-height: 1.1; }
.quick-assign-dialog { width: min(500px,calc(100vw - 28px)); max-height: min(680px,calc(100vh - 28px)); padding: 0; border: 1px solid var(--line-strong); background: #fff; }
.quick-assign-dialog::backdrop { background: rgba(20,30,38,.38); }
.occurrence-dialog { width: min(1060px,calc(100vw - 48px)); max-height: min(900px,calc(100vh - 42px)); padding: 0; border: 1px solid var(--line-strong); background: #f6f8f9; color: var(--ink); }
.occurrence-dialog::backdrop { background: rgba(17,27,35,.5); }
.occurrence-dialog-inner { position: relative; max-height: inherit; overflow: auto; padding: 18px; }
.occurrence-dialog-close { position: sticky; top: 0; float: right; z-index: 2; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: 1.25rem; cursor: pointer; }
.shift-detail-title { margin: 0 0 4px; font-size: 1.25rem; }
.shift-function-table,.compact-assignment,.compact-staffing { margin-top: 10px; }
.compact-assignment-form { display: grid; grid-template-columns: minmax(170px,.8fr) minmax(220px,1fr) auto; gap: 8px; align-items: end; }
.compact-assignment-form > .notice { grid-column: 1 / -1; }
.compact-staffing-group { padding: 8px 0; border-top: 1px solid var(--line); }
.compact-staffing-group:first-of-type { border-top: 0; }
.compact-staffing-group ul { display: grid; gap: 5px; margin: 5px 0 0; padding: 0; list-style: none; }
.compact-staffing-group li { display: flex; align-items: center; gap: 7px; min-height: 28px; }
.compact-staffing-group li form { display: inline-flex; margin: 0; }
.destructive-management { margin-top: 12px; }
.destructive-management summary { cursor: pointer; font-weight: 700; }
.destructive-management form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 10px; }
body.modal-open { overflow: hidden; }
@media (max-width:700px) { .occurrence-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); }.occurrence-dialog-inner { padding: 12px; }.compact-assignment-form { grid-template-columns: 1fr; }.compact-staffing-group li { flex-wrap: wrap; } }
.quick-assign-form { display: grid; gap: 10px; padding: 14px; }
.quick-assign-form > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.quick-assign-form h2 { margin: 1px 0 0; font-size: 1.05rem; }
.quick-assign-form > header button { border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; }
.quick-assign-form fieldset { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--line); }
.quick-assign-employees { display: grid; gap: 3px; max-height: 260px; overflow: auto; }
.quick-assign-form footer { display: flex; justify-content: flex-end; gap: 7px; }

@media (max-width: 720px) {
  .schedule-release-bar { align-items: stretch; flex-direction: column; }
  .schedule-shift-wrap > .schedule-quick-assign { position: static; width: 100%; height: 30px; margin-top: 3px; }
}


/* V0.13.7 – verbindliche, responsive Erstanmeldung */
.onboarding-modal-backdrop { overscroll-behavior: contain; }
.onboarding-modal { display: grid; grid-template-rows: auto auto minmax(0,1fr); border-radius: 16px; background: #f4f6f8; }
.onboarding-modal-header { align-items: center; }
.onboarding-modal-header h1 { margin: 0 0 6px; }
.onboarding-modal-header form { justify-self: end; }
.onboarding-modal-header .button-secondary { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.onboarding-modal-header .button-secondary:hover { background: rgba(255,255,255,.1); }
.onboarding-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #fff; }
.onboarding-progress a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 9px 12px; color: var(--text); text-decoration: none; border-left: 1px solid var(--line); }
.onboarding-progress a:first-child { border-left: 0; }
.onboarding-progress a:hover { background: var(--blue-50,#eef5ff); }
.onboarding-progress span,.onboarding-number { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--blue-700,#2057a6); font-weight: 700; }
.onboarding-modal-body { scroll-behavior: smooth; }
.onboarding-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.onboarding-summary article { display: grid; gap: 2px; padding: 14px 16px; border-left: 1px solid var(--line); }
.onboarding-summary article:first-child { border-left: 0; }
.onboarding-summary span,.onboarding-summary small { color: var(--muted); }
.onboarding-summary strong { font-size: 1.28rem; }
.onboarding-section { padding: 20px; border-radius: 12px !important; }
.onboarding-section + .onboarding-section { margin-top: 16px; }
.onboarding-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.onboarding-section-heading h2 { margin: 1px 0 3px; }
.onboarding-section-heading p { margin: 0; color: var(--muted); }
.onboarding-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.onboarding-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.onboarding-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 13px 15px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.onboarding-choice:hover { border-color: var(--blue-500,#3b78c8); background: var(--blue-50,#eef5ff); }
.onboarding-choice span { display: grid; gap: 3px; }
.onboarding-choice small,.onboarding-hint { color: var(--muted); }
.onboarding-choice b { color: var(--blue-700,#2057a6); font-size: 1.3rem; }
.onboarding-hint { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--blue-500,#3b78c8); background: #f6f9fd; }
.onboarding-document-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.onboarding-finish { border: 1px solid #b9cee9 !important; background: #f4f8fd !important; }
.onboarding-progress a.active { color: var(--blue-700,#2057a6); background: #eef5ff; box-shadow: inset 0 -3px 0 var(--blue-600,#2f6fbe); }
.onboarding-step-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.onboarding-step-actions form { margin: 0; }
.onboarding-qualification-groups { display: grid; gap: 14px; }
.onboarding-qualification-group { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.onboarding-qualification-group legend { padding: 0 7px; font-weight: 750; color: var(--text); }
.onboarding-qualification-group > p { margin: 0 0 12px; color: var(--muted); }
.onboarding-state-note { display: block; margin-top: 8px; color: var(--muted); }
.onboarding-multi-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.onboarding-multi-option { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.onboarding-multi-option:has(input:checked) { border-color: var(--blue-500,#3b78c8); background: #eef5ff; }
.onboarding-multi-option.is-existing { cursor: default; opacity: .82; }
.onboarding-multi-option span { display: grid; gap: 2px; }
.onboarding-multi-option small { color: var(--muted); }
.onboarding-proof-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.onboarding-proof-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.onboarding-proof-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.onboarding-proof-card > header div { display: grid; gap: 2px; }
.onboarding-proof-card > header small { color: var(--muted); }

.onboarding-modal-qualification .page-heading > .button-secondary { display: none; }
.content:has(.onboarding-modal-backdrop) > .notice { position: fixed; z-index: 140; top: 12px; left: 50%; width: min(720px,calc(100% - 32px)); transform: translateX(-50%); box-shadow: 0 10px 35px rgba(0,0,0,.25); }
.onboarding-modal-backdrop + * { pointer-events: none; }
@media (max-width: 760px) {
  .onboarding-modal { border-radius: 0; }
  .onboarding-progress { grid-template-columns: repeat(3,minmax(82px,1fr)); overflow-x: auto; }
  .onboarding-progress a { flex-direction: column; gap: 4px; padding: 8px 5px; font-size: .76rem; text-align: center; }
  .onboarding-summary,.onboarding-form-grid,.onboarding-choice-grid,.onboarding-document-list { grid-template-columns: 1fr; }
  .onboarding-summary article { border-top: 1px solid var(--line); border-left: 0; }
  .onboarding-summary article:first-child { border-top: 0; }
  .onboarding-modal-header form { justify-self: start; }
  .onboarding-section { padding: 15px; }
}


/* Mobile round execution polish */
@media (max-width: 850px) {
  .topbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
  }

  .topbar-actions {
    min-width: 0;
  }

  .round-run-heading {
    gap: 8px;
  }

  .round-run-heading .button-row {
    flex-direction: row;
    width: auto;
  }

  .round-run-heading .button-row > * {
    width: auto;
  }
}

@media (max-width: 600px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 8px;
  }

  .topbar .company-chip {
    display: none;
  }

  .topbar .brand,
  .topbar .brand.has-company-logo {
    width: auto;
    min-width: 0;
    height: 52px;
    padding: 0 6px;
    overflow: hidden;
  }

  .topbar .brand-company-logo {
    max-width: 46px;
    max-height: 34px;
  }

  .topbar-actions {
    grid-column: 3;
    gap: 4px;
    justify-self: end;
  }

  .topbar .button-ghost {
    min-height: 44px;
    padding: 7px 8px;
  }

  .content {
    padding: 12px 10px max(56px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .round-run-heading {
    margin-bottom: 8px;
    padding-bottom: 9px;
  }

  .round-run-heading > div:first-child {
    min-width: 0;
  }

  .round-run-heading .eyebrow {
    margin-bottom: 4px;
  }

  .round-run-heading h1 {
    font-size: clamp(1.35rem, 7vw, 1.65rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .round-run-heading p:not(.eyebrow) {
    margin: 4px 0 0;
    font-size: .9rem;
    line-height: 1.35;
  }

  .round-run-heading .status-pill {
    min-height: 36px;
    padding: 6px 10px;
  }

  .round-scanner {
    gap: 10px;
    padding: 12px;
  }

  .round-scanner h2,
  .finish-panel h2 {
    margin-bottom: 6px;
    font-size: 1.08rem;
  }

  .round-scanner p,
  .finish-panel p {
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .round-scanner > .button,
  .finish-panel .button {
    min-height: 48px;
  }

  .checkpoint-progress {
    gap: 7px;
    margin-top: 8px;
  }

  .checkpoint-progress > .progress-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-left-width: 4px;
  }

  .checkpoint-progress .progress-number {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 1rem;
  }

  .checkpoint-progress .progress-main {
    min-width: 0;
  }

  .checkpoint-progress .progress-title {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .checkpoint-progress .progress-title h2 {
    flex: 1 1 120px;
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .checkpoint-progress .badge {
    flex: 0 0 auto;
    font-size: .72rem;
  }

  .checkpoint-progress .progress-main > p {
    margin: 3px 0;
    line-height: 1.35;
  }

  .checkpoint-progress .progress-main > small {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
  }

  .checkpoint-progress details {
    margin-top: 8px;
  }

  .checkpoint-progress summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    line-height: 1.25;
    cursor: pointer;
  }

  .checkpoint-progress details .form-stack {
    gap: 9px;
    padding-top: 6px;
  }

  .checkpoint-progress textarea,
  .checkpoint-progress input,
  .checkpoint-progress select {
    max-width: 100%;
    font-size: 16px;
  }

  .checkpoint-progress input[type="file"] {
    padding: 6px;
  }

  .checkpoint-progress input[type="file"]::file-selector-button {
    min-height: 40px;
    margin-right: 8px;
  }

  .checkpoint-progress .button,
  .finish-panel .button-row .button {
    min-height: 48px;
  }

  .finish-panel {
    padding: 12px;
  }

  .round-scanner dialog {
    width: calc(100vw - 16px);
    max-width: 430px;
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 12px;
    overflow: auto;
  }

  .round-scanner dialog video {
    max-height: calc(100dvh - 170px);
  }

  .round-scanner dialog .button {
    min-height: 48px;
  }

  .round-scanner,
  .checkpoint-progress,
  .finish-panel {
    scroll-margin-top: 60px;
  }
}

/* Mobile navigation contrast */
@media (max-width: 850px) {
  .sidebar a,
  .sidebar-parent > button,
  .sidebar-group-toggle {
    color: #24384a;
  }

  .sidebar a:hover,
  .sidebar-parent > button:hover,
  .sidebar-group-toggle:hover {
    color: #102235;
    background: #e8f1f7;
  }

  .sidebar a[aria-current="page"] {
    color: #fff;
    background: #185271;
  }

  .sidebar-submenu {
    border-left-color: #b7c8d5;
  }

  .version-label {
    color: #5d7182;
  }
}.version-label { color: #586879; font-size: max(.75rem, 12px); }

/* Strukturierte Rundgänge im Wachbuch */
.watchbook-round-entry { border-left: 4px solid #2f6388; padding-left: 14px; }
.watchbook-round-label { display: block; color: #2f6388; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.watchbook-round-entry h3 { margin: 4px 0; color: #172333; }
.watchbook-round-status { margin: 0 0 10px; color: #31475a; font-weight: 650; }
.watchbook-round-checkpoints { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.watchbook-round-checkpoint { padding: 9px 11px; border-radius: 7px; background: #f6f8fa; border: 1px solid #d5dde5; color: #172333; }
.watchbook-round-checkpoint.is-scanned { border-left: 4px solid #2f7d48; }
.watchbook-round-checkpoint.is-unavailable { border-left: 4px solid #b7791f; }
.watchbook-round-checkpoint.is-missing { border-left: 4px solid #a83b3b; }
.watchbook-round-checkpoint small { color: #435160; font-weight: 600; }
.watchbook-round-checkpoint p { margin: 6px 0 0; }
.watchbook-round-reason { color: #795617; }
@media (max-width:700px) { .watchbook-round-entry { padding-left: 10px; }.watchbook-round-checkpoint { padding: 8px; } }
