/* Familiar Google layout, original blue palette, compact surfaces from Digitale Sichtwahl. */
:root {
  --primary: #11344f;
  --primary-soft: #dbe9f7;
  --primary-ink: #0b273b;
  --accent: #c2410c;
  --bg: #f3f6f9;
  --card-bg: #fff;
  --text-main: #122833;
  --text-muted: #4e6470;
  --success: #1e537d;
  --border: #d6e1ea;
  --radius-lg: 8px;
  --radius-md: 5px;
  --shadow-soft: none;
}
body { background: radial-gradient(circle at 12% -5%, rgba(17,52,79,.24), transparent 36%), radial-gradient(circle at 88% 6%, rgba(194,65,12,.12), transparent 34%), linear-gradient(160deg,#ecf5f4 0%,#f8fbfc 44%,#fef8ef 100%); background-attachment: fixed; min-height: 100vh; color: var(--text-main); font-family: Inter, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
body::before { display: none; }
button, input, select, textarea { font-family: inherit; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #397bb2; outline-offset: 2px; }
.app-main { gap: 18px; max-width: 1320px; width: 100%; padding: 20px; margin: 0 auto; min-width: 0; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px; margin: 0; border: 1px solid #cbd7df; border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 4px 12px #11344f10; backdrop-filter: none; }
.tab-bar::before, .tab-bar::after { display: none; }
.tab-btn { min-height: 38px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 650; letter-spacing: 0; box-shadow: none; transition: background 120ms ease; }
.tab-btn.active, .btn-primary, .view-toggle button.active { color: #fff; background: linear-gradient(135deg, #11344f, #1e537d); border-color: #11344f; box-shadow: none; }
.tab-btn:not(.active):hover, .btn-ghost:hover { background: #edf4fa; }
.request-nav-plus { width: 16px; height: 16px; fill: currentColor; color: var(--primary); opacity: .85; vertical-align: -3px; }
.tab-btn.active .request-nav-plus, .tab-btn:active .request-nav-plus { color: inherit; opacity: 1; }
.tab-panel { min-width: 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: none; padding: 16px; backdrop-filter: none; }
.card::before, .card::after { display: none; }
.card-header { margin-bottom: 12px; }
.card-title { font-family: inherit; font-size: 15px; font-weight: 650; color: var(--primary); letter-spacing: 0; text-transform: none; }
.card-subtitle { font-size: 11px; line-height: 1.5; color: var(--text-muted); }
.btn-primary, .btn-ghost { min-height: 34px; padding: 7px 12px; border-radius: 5px; font-size: 12px; font-weight: 650; letter-spacing: 0; box-shadow: none; }
.btn-ghost { color: var(--primary); border: 1px solid #bfcfdd; background: #fff; }
.btn-primary:disabled, .btn-ghost:disabled { cursor: default; opacity: .55; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea { min-width: 0; border-radius: 5px; border-color: #bfcfdd; box-shadow: none; }
.view-toggle { padding: 3px; border-radius: 6px; border: 1px solid var(--border); }
.view-toggle button { border-radius: 4px; min-height: 28px; padding: 4px 9px; }
.list-item { border-radius: 5px; border-color: var(--border); box-shadow: none; padding: 11px 13px; }
.list-item-title { font-size: 13px; }
.list-item-sub { color: var(--text-muted); line-height: 1.5; }
.week-table-wrapper { border-color: var(--border); border-radius: 5px; box-shadow: none; }
.week-table thead th, .week-table thead td { background: linear-gradient(180deg, #e8f0f8, #dce7f2); color: #102f47; }
.week-table td, .week-table th { font-size: 12px; }
.week-cell { background: #fff; }
.week-cell-unconfirmed { color: var(--text-main); background: #fff; opacity: 1; }
.week-cell-time { font-variant-numeric: tabular-nums; }
.modal-card { border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.modal-title { font-family: inherit; color: var(--primary); letter-spacing: 0; }
.health-case-card, .health-summary, .health-toolbar { border-radius: 5px; }
.graph-container { border-radius: 5px; }
.graph-bar { border-radius: 4px; font-variant-numeric: tabular-nums; border: 0; font-family: inherit; font-size: 10px; }
.graph-bar:focus-visible { outline-offset: 1px; }
.local-session-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 0 auto; color: var(--text-muted); font-size: 10px; }
.local-rule-validity { margin: 0 0 14px; max-width: 390px; padding: 12px; background: #f1f6fb; border: 1px solid var(--border); border-radius: 5px; }
.local-rule-validity input { width: 100%; }
.local-rule-validity p { font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.local-history-note { padding: 9px 11px; margin: 0 0 12px; color: #7f4a20; background: #fff8ed; border: 1px solid #ebd5b3; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.local-outbox { width: min(760px, calc(100vw - 24px)); max-height: 85vh; overflow: auto; padding: 22px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); background: #fff; font-family: inherit; }
.local-outbox::backdrop { background: #0b273b70; }
.local-outbox h2 { margin: 0 0 8px; font-size: 18px; color: var(--primary); }
.local-outbox p { font-size: 12px; line-height: 1.6; }
.local-outbox details { margin: 12px 0; border: 1px solid var(--border); padding: 12px; border-radius: 5px; }
.local-outbox summary { font-size: 12px; cursor: pointer; font-weight: 650; }
.local-outbox pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .app-main { padding: 12px; }
  .tab-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; scrollbar-color: #b6c8d8 transparent; }
  .tab-btn { flex: 0 0 auto; min-height: 44px; }
  .card { padding: 13px; }
  .local-session-bar { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; padding-left: 6px; }
  .auth-current-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn-primary, .btn-ghost { min-height: 38px; }
  .local-outbox { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Admin tools share the same compact section rhythm. */
.admin-section > summary { cursor: pointer; line-height: 1.5; }
.admin-section[open] > summary { margin-bottom: 14px; }
.admin-section p.muted { margin: 8px 0 14px; }
.admin-subnav { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-back { margin-bottom: 12px; }
.auth-impersonation { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border:1px solid #c6d8e8; border-radius:8px; background:#edf4fb; color:var(--primary); font-size:12px; }
@media (max-width:760px) { .auth-impersonation { flex-wrap:wrap; } }

.week-navigation { flex-wrap:wrap; }
.week-year-control { display:flex; align-items:center; gap:6px; font-size:11px; }

#tab-chef { gap: 12px; }
#tab-chef #admin-management { margin-top: 0; gap: 12px; }
#tab-chef > .auth-admin-card { margin-top: 0; }
#tab-chef .admin-section:not([open]) { padding-top: 10px; padding-bottom: 10px; }
