
html { background: #f6f6f6; }
html[data-theme="dark"] { background: #191b1f; color-scheme: dark; }
body { margin: 0; }
#ff-dashboard {
  color-scheme: light;
  --ff-red: #e60005; --ff-red-hover: #c80004; --ff-rose: #fff0f0;
  --ff-paper: #fff; --ff-ground: #f6f6f6; --ff-text: #262626;
  --ff-muted: #656565; --ff-line: #dedede; --ff-soft-line: #ededed;
  --ff-radius: 10px; --ff-shadow: #00000009; --ff-on-red: #fff;
  --ff-brand-red: #e60005;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px;
  line-height: 1.5; color: var(--ff-text); container-type: inline-size;
  width: 100%;
}
#ff-dashboard[data-theme="dark"] {
  color-scheme: dark;
  --ff-red: #ff797d; --ff-red-hover: #c80004; --ff-rose: #3c262b;
  --ff-paper: #24262b; --ff-ground: #191b1f; --ff-text: #f3f3f4;
  --ff-muted: #b6b8c0; --ff-line: #43464e; --ff-soft-line: #363940;
  --ff-shadow: #00000035;
}
#ff-dashboard * { box-sizing: border-box; }
#ff-dashboard [hidden] { display: none !important; }
#ff-dashboard button, #ff-dashboard input { font: inherit; }
#ff-dashboard button { color: inherit; }
#ff-dashboard .ff-window { display: flex; flex-direction: column; min-height: 100dvh; background: var(--ff-ground); }
#ff-dashboard button:not(:disabled), #ff-dashboard summary { cursor: pointer; }
#ff-dashboard .ff-icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; vertical-align: middle; }
#ff-dashboard .ff-account-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; }
#ff-dashboard [data-person-name], #ff-dashboard [data-person-field], #ff-dashboard [data-greeting-name] { overflow-wrap: anywhere; }
#ff-dashboard .ff-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px; background: var(--ff-paper); border-bottom: 3px solid var(--ff-brand-red); border-radius: 8px 8px 0 0; }
#ff-dashboard .ff-identity { display: flex; align-items: center; gap: 24px; }
#ff-dashboard .ff-drk { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
#ff-dashboard .ff-cross { position: relative; display: block; width: 42px; height: 42px; flex: 0 0 42px; }
#ff-dashboard .ff-cross::before, #ff-dashboard .ff-cross::after { content: ''; position: absolute; background: var(--ff-brand-red); }
#ff-dashboard .ff-cross::before { width: 14px; height: 42px; left: 14px; top: 0; }
#ff-dashboard .ff-cross::after { width: 42px; height: 14px; top: 14px; left: 0; }
#ff-dashboard .ff-drk-name { font-family: Arial, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.08; }
#ff-dashboard .ff-association { border-left: 1px solid var(--ff-line); padding-left: 24px; font-size: 15px; line-height: 1.3; }
#ff-dashboard .ff-app { font-size: 23px; font-weight: 700; letter-spacing: -.6px; color: var(--ff-red); }
#ff-dashboard .ff-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 32px; background: var(--ff-paper); border-bottom: 1px solid var(--ff-line); }
#ff-dashboard .ff-home { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 44px; background: transparent; border: 0; font-size: 14px; font-weight: 600; }
#ff-dashboard .ff-toolbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex: 1; min-width: 0; }
#ff-dashboard .ff-search-wrap { position: relative; width: min(100%, 370px); }
#ff-dashboard .ff-search-box { display: flex; align-items: center; gap: 9px; border: 1px solid var(--ff-line); border-radius: 7px; background: var(--ff-ground); padding: 0 12px; color: var(--ff-muted); }
#ff-dashboard .ff-search-box input { display: block; width: 100%; min-width: 0; height: 42px; padding: 6px 0; color: var(--ff-text); background: transparent; border: 0; font-size: 14px; }
#ff-dashboard .ff-search-box input::placeholder { color: var(--ff-muted); opacity: 1; }
#ff-dashboard .ff-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 6; padding: 7px; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: 8px; box-shadow: 0 8px 25px var(--ff-shadow); }
#ff-dashboard .ff-search-results button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 10px; min-height: 44px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 5px; font-size: 14px; }
#ff-dashboard .ff-search-results button:hover { background: var(--ff-rose); }
#ff-dashboard .ff-search-caption { margin: 0; padding: 6px 10px; color: var(--ff-muted); font-size: 12px; }
#ff-dashboard .ff-account-wrap { position: relative; }
#ff-dashboard .ff-account { display: flex; align-items: center; gap: 9px; background: var(--ff-paper); border: 0; padding: 3px 0; min-height: 44px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
#ff-dashboard .ff-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ff-red); background: var(--ff-rose); font-size: 14px; font-weight: 600; }
#ff-dashboard .ff-account-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 7; padding: 7px; width: 264px; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: 10px; box-shadow: 0 8px 28px var(--ff-shadow); }
#ff-dashboard .ff-menu-heading { display: grid; gap: 2px; padding: 8px 10px 12px; border-bottom: 1px solid var(--ff-soft-line); margin-bottom: 5px; }
#ff-dashboard .ff-menu-heading strong { font-size: 14px; font-weight: 600; }
#ff-dashboard .ff-menu-heading span { color: var(--ff-muted); font-size: 12px; }
#ff-dashboard .ff-menu-action { display: flex; align-items: center; gap: 10px; border: 0; width: 100%; min-height: 44px; padding: 10px; background: transparent; text-align: left; font-size: 14px; border-radius: 5px; }
#ff-dashboard .ff-menu-action:hover { background: var(--ff-ground); }
#ff-dashboard .ff-menu-divider { border-top: 1px solid var(--ff-soft-line); margin: 6px 0; }
#ff-dashboard .ff-logout { color: var(--ff-red); }
#ff-dashboard .ff-theme-menu { padding: 7px 10px 11px; }
#ff-dashboard .ff-theme-label { display: block; font-size: 12px; color: var(--ff-muted); margin-bottom: 8px; }
#ff-dashboard .ff-theme-picker { display: flex; gap: 5px; padding: 4px; border-radius: 7px; background: var(--ff-ground); }
#ff-dashboard .ff-theme-choice { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 13px; }
#ff-dashboard .ff-theme-choice[aria-pressed="true"] { background: var(--ff-paper); border-color: var(--ff-line); color: var(--ff-red); box-shadow: 0 1px 3px var(--ff-shadow); }
#ff-dashboard .ff-main { padding: 24px 32px 30px; width: 100%; max-width: 1344px; margin: 0 auto; flex: 1; }
#ff-dashboard .ff-location { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 13px; }
#ff-dashboard .ff-location span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
#ff-dashboard .ff-demo { color: var(--ff-muted); font-size: 12px; }
#ff-dashboard .ff-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px; align-items: center; }
#ff-dashboard .ff-welcome { padding: 14px 0 18px; }
#ff-dashboard .ff-date { color: var(--ff-muted); font-size: 13px; margin: 0 0 15px; }
#ff-dashboard h1 { font-size: 36px; line-height: 1.15; letter-spacing: -1.1px; font-weight: 650; margin: 0 0 14px; }
#ff-dashboard h1 span { color: var(--ff-red); }
#ff-dashboard .ff-welcome p:last-child { margin: 0; max-width: 350px; font-size: 15px; color: var(--ff-muted); line-height: 1.65; }
#ff-dashboard .ff-info { min-width: 0; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 18px 22px 8px; box-shadow: 0 2px 5px var(--ff-shadow); }
#ff-dashboard .ff-info-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#ff-dashboard h2 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: -.2px; }
#ff-dashboard .ff-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 0; border-radius: 5px; padding: 6px 0 6px 6px; color: var(--ff-red); background: var(--ff-paper); font-size: 13px; }
#ff-dashboard .ff-info-row { display: flex; align-items: center; gap: 13px; padding: 16px 0; border-top: 1px solid var(--ff-soft-line); }
#ff-dashboard .ff-info-row:first-child { border-top: 0; }
#ff-dashboard .ff-info-icon { display: grid; place-items: center; color: var(--ff-red); flex: 0 0 30px; }
#ff-dashboard .ff-info-row small { color: var(--ff-muted); display: block; font-size: 12px; }
#ff-dashboard .ff-info-row strong { display: block; font-size: 14px; font-weight: 550; }
#ff-dashboard .ff-info-empty { color: var(--ff-muted); font-size: 14px; padding: 22px 0; margin: 0; }
#ff-dashboard .ff-config { padding: 12px 0; }
#ff-dashboard fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#ff-dashboard legend { font-size: 13px; color: var(--ff-muted); padding: 0 0 7px; }
#ff-dashboard .ff-option { display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 14px; }
#ff-dashboard .ff-option input { accent-color: var(--ff-red); width: 18px; height: 18px; margin: 0; }
#ff-dashboard .ff-config-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#ff-dashboard .ff-action { border: 1px solid var(--ff-line); border-radius: 6px; min-height: 40px; padding: 8px 13px; background: var(--ff-paper); font-size: 13px; }
#ff-dashboard .ff-primary { border-color: var(--ff-brand-red); background: var(--ff-brand-red); color: var(--ff-on-red); }
#ff-dashboard .ff-primary:hover { border-color: var(--ff-red-hover); background: var(--ff-red-hover); }
#ff-dashboard .ff-modules { margin-top: 34px; border-top: 1px solid var(--ff-line); padding-top: 26px; }
#ff-dashboard .ff-section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
#ff-dashboard .ff-section-heading span { font-size: 13px; color: var(--ff-muted); }
#ff-dashboard .ff-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#ff-dashboard .ff-module { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; overflow: hidden; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 0; background: var(--ff-paper); box-shadow: 0 2px 5px var(--ff-shadow); }
#ff-dashboard .ff-module:focus-visible { outline: 2px solid var(--ff-red); outline-offset: 3px; }
#ff-dashboard .ff-module-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; background: var(--ff-ground); }
#ff-dashboard .ff-module-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; width: 100%; padding: 18px; }
#ff-dashboard .ff-module-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
#ff-dashboard .ff-module-description { flex: 1; font-size: 13px; line-height: 1.6; color: var(--ff-muted); }
#ff-dashboard .ff-module-open { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; min-height: 36px; border: 0; background: transparent; color: var(--ff-muted); font-size: 13px; gap: 10px; }
#ff-dashboard .ff-status { font-size: 13px; color: var(--ff-muted); margin: 16px 0 0; }
#ff-dashboard .ff-account-page { max-width: 720px; margin: 0 auto; }
#ff-dashboard .ff-back { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 6px 0; min-height: 44px; background: transparent; color: var(--ff-red); font-size: 13px; }
#ff-dashboard .ff-page-heading { margin: 12px 0 22px; }
#ff-dashboard .ff-page-heading h1 { font-size: 28px; letter-spacing: -.5px; margin-bottom: 8px; }
#ff-dashboard .ff-page-heading p { color: var(--ff-muted); font-size: 14px; margin: 0; }
#ff-dashboard .ff-settings-card { padding: 22px; background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: var(--ff-radius); }
#ff-dashboard .ff-setting-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ff-soft-line); }
#ff-dashboard .ff-setting-row:first-child { padding-top: 0; }
#ff-dashboard .ff-setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
#ff-dashboard .ff-setting-label { flex: 1; min-width: 160px; }
#ff-dashboard .ff-setting-label strong { display: block; font-size: 15px; font-weight: 600; }
#ff-dashboard .ff-setting-label small { display: block; margin-top: 5px; color: var(--ff-muted); font-size: 13px; }
#ff-dashboard .ff-setting-row .ff-theme-picker { min-width: 210px; }
#ff-dashboard .ff-setting-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ff-brand-red); }
#ff-dashboard .ff-setting-stack { flex-direction: column; align-items: stretch; }
#ff-dashboard .ff-settings-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
#ff-dashboard .ff-module-switches { display: grid; gap: 0; margin-top: 8px; }
#ff-dashboard .ff-switch-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ff-soft-line); cursor: pointer; }
#ff-dashboard .ff-switch-row input { flex: 0 0 auto; appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: var(--ff-line); position: relative; cursor: pointer; transition: background .15s; }
#ff-dashboard .ff-switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ff-paper); box-shadow: 0 1px 2px #0003; transition: transform .15s; }
#ff-dashboard .ff-switch-row input:checked { background: var(--ff-brand-red); }
#ff-dashboard .ff-switch-row input:checked::after { transform: translateX(18px); }
#ff-dashboard .ff-switch-row input:focus-visible { outline: 2px solid var(--ff-red); outline-offset: 2px; }
#ff-dashboard .ff-switch-row strong { display: block; font-size: 14px; font-weight: 600; }
#ff-dashboard .ff-switch-row small { display: block; color: var(--ff-muted); font-size: 12px; }
#ff-dashboard .ff-switch-warning { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--ff-rose); color: var(--ff-text); font-size: 13px; }
#ff-dashboard .ff-section-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#ff-dashboard .ff-arrange-help { margin: -8px 0 14px; color: var(--ff-muted); font-size: 13px; }
#ff-dashboard .ff-module { position: relative; }
#ff-dashboard .ff-arranging .ff-module { cursor: grab; touch-action: none; user-select: none; outline: 2px dashed var(--ff-line); outline-offset: 2px; }
#ff-dashboard .ff-arranging .ff-module-open { pointer-events: none; opacity: .5; }
#ff-dashboard .ff-module.ff-dragging { cursor: grabbing; opacity: .65; outline-color: var(--ff-red); box-shadow: 0 8px 20px var(--ff-shadow); }
#ff-dashboard .ff-module-move { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
#ff-dashboard .ff-module-move button { width: 34px; height: 34px; border: 1px solid var(--ff-line); border-radius: 6px; background: var(--ff-paper); font-size: 20px; line-height: 1; box-shadow: 0 1px 3px var(--ff-shadow); }
#ff-dashboard .ff-module-move button:hover { color: var(--ff-red); border-color: var(--ff-red); }
#ff-dashboard .ff-profile { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--ff-soft-line); }
#ff-dashboard .ff-profile .ff-avatar { width: 48px; height: 48px; flex: 0 0 48px; font-size: 20px; }
#ff-dashboard .ff-profile p { margin: 3px 0 0; color: var(--ff-muted); font-size: 13px; }
#ff-dashboard .ff-profile-data { margin: 0; }
#ff-dashboard .ff-profile-data div { padding: 16px 0 0; }
#ff-dashboard .ff-profile-data dt { font-size: 12px; color: var(--ff-muted); margin-bottom: 4px; }
#ff-dashboard .ff-profile-data dd { margin: 0; font-size: 14px; }
#ff-dashboard .ff-account-copy { color: var(--ff-muted); font-size: 14px; line-height: 1.65; margin: 0 0 18px; }
#ff-dashboard .ff-account-note { font-size: 12px; color: var(--ff-muted); margin: 14px 0 0; }
#ff-dashboard button:disabled { opacity: .65; }
#ff-dashboard .ff-loading, #ff-dashboard .ff-load-error { padding: 40px 0; }
#ff-dashboard .ff-action { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
#ff-dashboard.ff-login-page .ff-header { justify-content: center; }
#ff-dashboard .ff-login-main { flex: 1; display: grid; align-items: center; padding: 48px 20px; }
#ff-dashboard .ff-login-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 32px; border: 1px solid var(--ff-line); border-radius: 10px; background: var(--ff-paper); }
#ff-dashboard .ff-login-brand { display: grid; gap: 4px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--ff-line); }
#ff-dashboard .ff-login-brand span:last-child { color: var(--ff-muted); font-size: 13px; }
#ff-dashboard .ff-login-card h1 { font-size: 26px; letter-spacing: -.6px; }
#ff-dashboard .ff-login-card p { color: var(--ff-muted); margin: 0 0 22px; }
#ff-dashboard .ff-login-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px; border-radius: 7px; background: var(--ff-brand-red); color: var(--ff-on-red); text-decoration: none; font-weight: 600; }
#ff-dashboard .ff-login-link:hover { background: var(--ff-red-hover); }
#ff-dashboard .ff-login-card .ff-login-hint { margin: 13px 0 24px; text-align: center; font-size: 13px; }
#ff-dashboard .ff-login-help { font-size: 13px; color: var(--ff-muted); }
#ff-dashboard .ff-login-help summary { padding: 10px 0; color: var(--ff-red); }
#ff-dashboard .ff-login-help p { margin: 8px 0 0; }
#ff-dashboard .ff-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 15px 32px; border-top: 1px solid var(--ff-line); color: var(--ff-muted); font-size: 11px; background: var(--ff-paper); border-radius: 0 0 8px 8px; }
@container (max-width: 900px) {
  #ff-dashboard .ff-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 780px) {
  #ff-dashboard .ff-header { flex-wrap: wrap; gap: 20px; padding: 24px; }
  #ff-dashboard .ff-toolbar { padding: 10px 24px; }
  #ff-dashboard .ff-main { padding: 22px 24px; }
  #ff-dashboard .ff-overview { gap: 24px; }
  #ff-dashboard h1 { font-size: 30px; }
  #ff-dashboard .ff-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 600px) {
  #ff-dashboard .ff-toolbar { flex-wrap: wrap; gap: 6px; }
  #ff-dashboard .ff-home { width: 100%; }
  #ff-dashboard .ff-toolbar-tools { flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  #ff-dashboard .ff-search-wrap { width: auto; flex: 1; min-width: 150px; }
  #ff-dashboard .ff-account-name { display: none; }
  #ff-dashboard .ff-settings-card { padding: 18px; }
  #ff-dashboard .ff-overview { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #ff-dashboard .ff-welcome { padding-top: 0; }
  #ff-dashboard h1 { font-size: 30px; }
  #ff-dashboard .ff-info { padding: 16px 18px 6px; }
  #ff-dashboard .ff-module-grid { grid-template-columns: minmax(0, 1fr); }
  #ff-dashboard .ff-modules { margin-top: 26px; }
}
@container (max-width: 390px) {
  #ff-dashboard .ff-header { padding: 20px; }
  #ff-dashboard .ff-toolbar { padding: 10px 20px; }
  #ff-dashboard .ff-identity { align-items: flex-start; flex-direction: column; gap: 16px; }
  #ff-dashboard .ff-association { border: 0; padding-left: 0; }
  #ff-dashboard .ff-main { padding: 20px; }
  #ff-dashboard .ff-footer { padding: 15px 20px; }
}
@media (pointer: coarse) { #ff-dashboard .ff-action, #ff-dashboard .ff-edit, #ff-dashboard .ff-option, #ff-dashboard .ff-theme-choice { min-height: 44px; } #ff-dashboard .ff-search-box input { font-size: 16px; } }
/* Fahrzeuge (ADR-0012 Schritt 3) */
#ff-dashboard select { font: inherit; }
#ff-dashboard a.ff-home { color: inherit; text-decoration: none; }
#ff-dashboard .ff-vehicles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#ff-dashboard .ff-vehicles .ff-location { margin-bottom: 0; }
#ff-dashboard .ff-vehicles h1, #ff-dashboard .ff-vehicles h2 { margin: 0; font-size: 20px; }
#ff-dashboard .ff-table-wrap { position: relative; overflow-x: auto; }
#ff-dashboard .ff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#ff-dashboard .ff-table th, #ff-dashboard .ff-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--ff-soft-line); vertical-align: middle; }
#ff-dashboard .ff-table thead th { font-size: 12px; color: var(--ff-muted); font-weight: 600; }
#ff-dashboard .ff-row-actions { text-align: right; white-space: nowrap; }
#ff-dashboard .ff-row-actions .ff-action + .ff-action { margin-left: 6px; }
#ff-dashboard .ff-inactive { color: var(--ff-muted); }
#ff-dashboard .ff-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; border: 0; }
#ff-dashboard fieldset.ff-form-grid legend { font-weight: 600; margin-bottom: 4px; }
#ff-dashboard .ff-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
#ff-dashboard .ff-field-wide { grid-column: 1 / -1; }
#ff-dashboard .ff-field input, #ff-dashboard .ff-field select { min-height: 40px; padding: 6px 10px; color: var(--ff-text); background: var(--ff-paper); border: 1px solid var(--ff-line); border-radius: 6px; font-weight: 400; }
#ff-dashboard .ff-field input:focus-visible, #ff-dashboard .ff-field select:focus-visible { outline: 2px solid var(--ff-red); outline-offset: 1px; }
#ff-dashboard .ff-group-list { list-style: none; margin: 0; padding: 0; }
#ff-dashboard .ff-group-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ff-soft-line); }
#ff-dashboard .ff-group-list small { color: var(--ff-muted); }
#ff-dashboard .ff-hint { font-size: 13px; color: var(--ff-muted); margin: 0 0 16px; }
#ff-dashboard .ff-check-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; }
#ff-dashboard .ff-tour { border-top: 1px solid var(--ff-soft-line); padding: 16px 0; }
#ff-dashboard .ff-tour h3 { margin: 0; font-size: 16px; }
#ff-dashboard .ff-tour .ff-section-heading { margin-bottom: 8px; }
#ff-dashboard .ff-stop-list { margin: 0 0 12px; padding-left: 22px; }
#ff-dashboard .ff-stop-list li { padding: 4px 0; overflow-wrap: anywhere; }
#ff-dashboard .ff-stop-list small { color: var(--ff-muted); }
#ff-dashboard .ff-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#ff-dashboard a.ff-module-open { color: var(--ff-red); font-weight: 600; text-decoration: none; }
#ff-dashboard .ff-day-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
#ff-dashboard .ff-day-tab[aria-pressed="true"] { border-color: var(--ff-red); color: var(--ff-red); background: var(--ff-rose); font-weight: 600; }
#ff-dashboard .ff-warning { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--ff-red); background: var(--ff-rose); font-size: 13px; }
#ff-dashboard .ff-run-state { align-self: center; font-size: 13px; color: var(--ff-muted); margin-right: 4px; }
#ff-dashboard a.ff-action { color: var(--ff-text); }
#ff-dashboard .ff-live-counts { margin: 0 0 4px; font-weight: 600; }
#ff-dashboard .ff-live-state { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ff-line); white-space: nowrap; }
#ff-dashboard .ff-live-started { color: var(--ff-red); border-color: var(--ff-red); background: var(--ff-rose); }
#ff-dashboard .ff-live-facts, #ff-dashboard .ff-live-progress { margin: 0 0 6px; overflow-wrap: anywhere; }
#ff-dashboard .ff-live-progress { font-weight: 600; }
#ff-dashboard .ff-live-nicht-angetroffen { color: var(--ff-red); font-weight: 600; }
#ff-dashboard .ff-orders-search { max-width: 420px; margin: 8px 0 12px; }
#ff-dashboard .ff-orders td { overflow-wrap: anywhere; }
#ff-dashboard .ff-orders small { color: var(--ff-muted); }
#ff-dashboard .ff-order-time { font-weight: 700; white-space: nowrap; }
#ff-dashboard .ff-order-open .ff-order-time { color: var(--ff-red); }
#ff-dashboard .ff-order-open { background: var(--ff-rose); }
@media (max-width: 720px) {
  #ff-dashboard .ff-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #ff-dashboard .ff-orders, #ff-dashboard .ff-orders tbody, #ff-dashboard .ff-orders tr, #ff-dashboard .ff-orders td { display: block; }
  #ff-dashboard .ff-orders tr { padding: 8px 0; border-bottom: 1px solid var(--ff-soft-line); }
  #ff-dashboard .ff-orders td { border: 0; padding: 2px 0; }
  #ff-dashboard .ff-orders td[data-label]:not(.ff-order-time)::before { content: attr(data-label) ": "; color: var(--ff-muted); font-size: 12px; }
}
@media print {
  #ff-dashboard .ff-header, #ff-dashboard .ff-toolbar, #ff-dashboard .ff-footer, #ff-dashboard .ff-hint, #ff-dashboard .ff-orders-search, #ff-dashboard .ff-config-actions, #ff-dashboard .ff-day-tab[aria-pressed="false"] { display: none; }
}
/* Fahrer-App: big touch targets, one column, readable in the vehicle. */
#ff-dashboard.ff-driver-app .ff-main { max-width: 640px; margin: 0 auto; width: 100%; }
#ff-dashboard .ff-driver-run { border-top: 1px solid var(--ff-soft-line); padding: 14px 0; }
#ff-dashboard .ff-driver-run h3 { margin: 0; font-size: 18px; }
#ff-dashboard .ff-driver-facts { margin: 2px 0 10px; color: var(--ff-muted); }
#ff-dashboard .ff-driver-big { display: block; width: 100%; min-height: 52px; font-size: 17px; font-weight: 700; margin-top: 10px; }
#ff-dashboard .ff-driver-done { background: #1b7f3b; border-color: #1b7f3b; color: #fff; }
#ff-dashboard .ff-driver-list { list-style: none; margin: 0; padding: 0; }
#ff-dashboard .ff-driver-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--ff-soft-line); }
#ff-dashboard .ff-driver-row:first-child { border-top: 0; }
#ff-dashboard .ff-driver-tick { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ff-line); background: var(--ff-paper); font-size: 24px; font-weight: 800; line-height: 1; }
#ff-dashboard .ff-driver-tick[aria-pressed="true"] { background: #1b7f3b; border-color: #1b7f3b; color: #fff; }
#ff-dashboard .ff-driver-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#ff-dashboard .ff-driver-who strong { font-size: 17px; }
#ff-dashboard .ff-driver-time { font-weight: 800; margin-right: 6px; }
#ff-dashboard .ff-driver-address, #ff-dashboard .ff-driver-state { display: block; color: var(--ff-muted); font-size: 14px; }
#ff-dashboard .ff-driver-state-eingestiegen, #ff-dashboard .ff-driver-state-abgesetzt { color: #1b7f3b; font-weight: 600; }
#ff-dashboard .ff-driver-state-warn { color: var(--ff-red); font-weight: 600; }
#ff-dashboard .ff-driver-note { display: block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: #fff6d6; color: #262626; font-size: 14px; }
#ff-dashboard .ff-driver-more { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#ff-dashboard .ff-driver-more .ff-action { min-height: 40px; }
#ff-dashboard .ff-driver-dialog { border: 1px solid var(--ff-line); border-radius: var(--ff-radius); background: var(--ff-paper); color: var(--ff-text); width: min(92vw, 420px); padding: 18px; }
#ff-dashboard .ff-driver-dialog h2 { margin: 0 0 4px; font-size: 19px; }
#ff-dashboard .ff-driver-options { display: grid; gap: 8px; margin: 10px 0; }
#ff-dashboard .ff-driver-options .ff-option { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ff-line); border-radius: 10px; }
#ff-dashboard .ff-driver-date { min-height: 44px; font-size: 16px; padding: 6px 10px; border: 1px solid var(--ff-line); border-radius: 10px; background: var(--ff-paper); color: var(--ff-text); }
@media (max-width: 720px) {
  #ff-dashboard.ff-driver-app .ff-header { padding: 12px 16px; }
  #ff-dashboard.ff-driver-app .ff-association { display: none; }
}
#ff-dashboard .ff-driver-tick[aria-pressed="true"]:disabled { opacity: 1; }
