/* Copied unchanged from prototype/index.html (VR design system 06) by tools_extract_prototype.js. Do not edit here. */
/* VR CRM 06 - one stylesheet, shared components. No legacy overrides.
   Design references: Atlassian spacing, Carbon data tables/empty states, W3C reflow.
   Colours: original olive and charcoal; proposed copper accent. */
:root {
 --brand:#717357; --brand-dark:#2f3030; --brand-light:#bfbcbc;
 --text:#2f3030; --muted:#66695f; --bg:#fff; --panel:#fff;
 --accent:#717357; --accent-soft:#f1f2eb; --olive-text:#53573e;
 --action:#a15f3c; --action-hover:#844c30; --action-soft:#fbf0e8; --action-line:#c98b68;
 --copper-bright:#ba7650; --ok:#53573e; --ok-soft:#edf0e3;
 --warn:#8b492b; --warn-soft:#fbede0; --danger:#843d30; --danger-soft:#f9e9e2;
 --grey-soft:#f6f6f2; --info:#717357; --info-soft:#f1f2eb;
 --line:#d2d3c8; --control-line:#8f9186; --radius:12px; --sidebar:248px; --topbar:72px;
 --brand-nav-text:#f4f5ee; --brand-nav-muted:#b9bcb0; --mustard:#bfbcbc; --mustard-soft:#f6f6f2;
 --space-1:8px; --space-2:16px; --space-3:24px; --space-4:32px; --space-5:40px;
 --ui-font:'Open Sans','Segoe UI',Arial,sans-serif;
}
* {box-sizing:border-box}
html {height:100%;color-scheme:light;font-size:16px}
body {margin:0;height:100vh;height:100dvh;overflow:hidden;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);grid-template-rows:var(--topbar) minmax(0,1fr);font:15px/1.55 var(--ui-font);color:var(--text);background:#fff;-webkit-font-smoothing:antialiased}
button,input,select,textarea {font:inherit;color:inherit;letter-spacing:normal}
button,a,input,select,textarea {touch-action:manipulation}
button {display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:44px;padding:10px 16px;border:1px solid var(--control-line);border-radius:8px;background:#fff;font-size:14px;font-weight:600;line-height:1.45;cursor:pointer;text-align:center;text-decoration:none;transition:background .12s,border-color .12s}
button:hover {background:var(--grey-soft);border-color:var(--brand);filter:none}
button.primary {background:var(--action);color:#fff;border-color:var(--action)}
button.primary:hover {background:var(--action-hover);border-color:var(--action-hover)}
button.active {background:var(--action-soft);border-color:var(--action);color:var(--action-hover)}
button.small {min-height:36px;padding:6px 12px;font-size:13px}
button:disabled {opacity:.48;cursor:not-allowed}
a {color:var(--olive-text);text-underline-offset:3px}
a:hover {color:var(--action)}
a,button {overflow-wrap:break-word}
:focus-visible {outline:3px solid var(--action);outline-offset:3px}
::selection {background:#ecd2bf;color:var(--text)}
input:not([type=checkbox]):not([type=radio]),select,textarea {width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--control-line);border-radius:8px;background:#fff;font-size:14px;line-height:1.5}
input::placeholder,textarea::placeholder {color:#6e7165;opacity:1}
input:focus,select:focus,textarea:focus {outline:2px solid var(--action);outline-offset:1px}
input[type=checkbox],input[type=radio] {width:18px!important;height:18px;min-height:18px;margin:0;flex:0 0 18px;accent-color:var(--action);cursor:pointer;vertical-align:middle}
label {display:block;font-size:14px;font-weight:600;margin:16px 0 8px;line-height:1.5}
label.inline {display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:400;white-space:normal}
label.inline input {width:auto}
.icon {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.icon.small {width:16px;height:16px}
.icon-button {width:40px;min-width:40px;padding:8px}
.sr-only {position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%);height:1px!important;width:1px!important;overflow:hidden!important;white-space:nowrap!important}
.skip-link {position:fixed;top:-100px;left:265px;z-index:99;padding:12px;background:white}
.skip-link:focus {top:10px}
[hidden] {display:none!important}
.layout {display:contents}
header.app-header {grid-column:2;grid-row:1;display:flex;align-items:center;gap:16px;min-width:0;padding:0 32px;border-bottom:1px solid var(--line);background:#fff;z-index:5}
header .spacer {flex:1}
.breadcrumb {display:flex;align-items:center;gap:12px;min-width:0;font-size:13px;color:var(--muted)}
.breadcrumb .crumb-current {font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}
.crumb-divider {color:#8a8d7b}
header .who {display:flex;align-items:center;gap:6px;min-width:0;padding:4px 6px;border:1px solid var(--line);border-radius:10px;background:var(--grey-soft)}
header .who select {width:auto;max-width:242px;min-height:36px;border:0;background:transparent;font-size:13px;padding:6px 10px;line-height:1.5}
header .who .avatar {width:32px;height:32px;flex:0 0 32px;border:1px solid #e4c8b6;border-radius:7px;background:var(--action-soft);color:var(--action-hover)}
.header-demo {display:inline-flex;align-items:center;font-size:12px;font-weight:600;line-height:1.5;min-height:30px;white-space:nowrap;border:1px solid #d5d9c8;border-radius:7px;padding:5px 9px;background:var(--accent-soft);color:var(--olive-text)}
#reset {border-color:transparent;color:var(--muted)}
#menu-toggle {display:none}
nav#nav {grid-row:1 / 3;grid-column:1;display:flex;flex-direction:column;min-height:0;background:var(--brand-dark);color:var(--brand-nav-text);overflow:hidden;z-index:15}
.nav-brand {display:flex;align-items:center;gap:12px;padding:24px 22px 20px;text-decoration:none;flex-shrink:0}
.logo-mark {width:44px;height:44px;flex:0 0 44px}
.brand-copy {display:flex;flex-direction:column;color:#fff;line-height:1.3}
.brand-copy strong {font-size:16px;font-weight:700}
.brand-copy span {font-size:11px;color:var(--brand-nav-muted)}
.nav-scroll {padding:0 12px 24px;flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#717366 transparent}
nav .sect {font-size:12px;font-weight:600;color:var(--brand-nav-muted);padding:24px 12px 9px;letter-spacing:normal;text-transform:none}
nav .sect:first-child {padding-top:8px}
nav a.nav-link {display:flex;align-items:center;gap:10px;min-height:42px;margin:3px 0;padding:10px 12px;border-radius:7px;color:var(--brand-nav-text);font-size:13px;line-height:1.5;text-decoration:none;border:1px solid transparent}
nav a.nav-link:hover {background:#414339}
nav a.nav-link.active {background:var(--brand);border-color:#919478;box-shadow:inset 3px 0 #dda782;color:#fff;font-weight:600}
nav .nav-link .icon {width:18px;height:18px;color:#c4c7b6}
nav .nav-link.active .icon {color:#fff}
.nav-label {flex:1;min-width:0}
.nav-count {padding:1px 6px;min-width:23px;text-align:center;border-radius:4px;background:#4b4e41;color:#fff;font-size:12px;font-variant-numeric:tabular-nums}
.nav-lock .icon {width:13px;height:13px}
.nav-footer {padding:14px 24px 20px;border-top:1px solid #535648}
.nav-footer button {justify-content:flex-start;border:0;background:none;color:#eee;width:100%;padding:6px 0;min-height:32px;font-size:13px}
.nav-footer .version {margin-left:auto;color:#d8b099}
.prototype-note {font-size:12px;color:var(--brand-nav-muted);padding-top:8px;line-height:1.6}
.prototype-note strong {font-weight:500;color:#d8dacd}
#nav-shade {display:none}
main#main {grid-column:2;grid-row:2;min-width:0;min-height:0;overflow:auto;background:#fff;padding:32px 32px 56px;scrollbar-gutter:stable}
.page-content {width:100%;max-width:1480px;margin:0 auto;container-type:inline-size;min-width:0}
h2 {font-size:30px;font-weight:600;line-height:1.25;margin:0;color:var(--text);letter-spacing:normal;overflow-wrap:break-word}
h2>.muted {display:block;margin-top:8px;font-size:15px;font-weight:400;line-height:1.6}
h3 {font-size:19px;line-height:1.4;font-weight:600;margin:28px 0 16px;letter-spacing:normal;text-transform:none}
h3 .muted {font-size:14px;font-weight:400}
p {margin:0 0 16px}
.muted {color:var(--muted);font-size:13px;line-height:1.55}
.roomhead,.page-heading {display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;min-width:0}
.headline {flex:1;min-width:0}
.page-kicker {margin-bottom:8px;color:var(--olive-text);font-size:13px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:none}
.page-kicker::before {content:'';display:inline-block;width:20px;height:3px;background:var(--action);margin:0 9px 3px 0;vertical-align:middle}
.page-subtitle {margin-top:8px;font-size:14px;line-height:1.6;color:var(--muted);max-width:70ch}
.hello-name {color:var(--action)}
.page-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex:0 1 auto}
.page-actions:empty {display:none}
.room-hero {margin-bottom:28px}
.room-hero h2 {font-size:34px}
.overview-grid {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.9fr);gap:20px;margin-bottom:28px;align-items:stretch}
.overview-grid>.metric-grid {margin:0}
.metric-grid,.room-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px;width:100%}
.metric-card {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;min-width:0;min-height:150px;padding:20px;border:1.5px solid var(--line);border-top:3px solid var(--brand);border-radius:12px;background:#fff;text-align:left;text-decoration:none;line-height:1.45;box-shadow:0 2px 3px rgba(47,48,48,.02)}
button.metric-card {font-weight:400}
button.metric-card:hover {border-color:var(--action);background:var(--action-soft)}
.metric-card[data-tone=copper] {border-top-color:var(--action)}
.metric-card.is-current {background:var(--action-soft);border:1.5px solid var(--action);border-top-width:3px}
.metric-card .metric-label {font-size:14px;line-height:1.4;font-weight:600;color:var(--text);min-height:20px}
.metric-card .metric-value {font-size:32px;line-height:1.1;font-weight:600;color:var(--olive-text);font-variant-numeric:tabular-nums}
.metric-card[data-tone=copper] .metric-value,.metric-card.is-current .metric-value {color:var(--action)}
.metric-card .metric-note {font-size:12px;line-height:1.5;color:var(--muted);margin-top:auto}
button.metric-card .metric-note {color:var(--action);font-weight:500}
.focus-card,.context-card {display:flex;flex-direction:column;gap:12px;padding:22px 24px;border:1.5px solid var(--action);border-radius:12px;background:var(--action);color:#fff;min-width:0}
.focus-card.focus-empty,.context-card[data-tone=olive] {background:var(--brand);border-color:var(--brand)}
.focus-top {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:600}
.focus-date {padding:3px 7px;border:1px solid rgba(255,255,255,.65);border-radius:4px;line-height:1.4;font-size:12px;white-space:normal;text-align:right}
.focus-card h3,.context-card h3 {font-size:18px;font-weight:600;line-height:1.45;margin:0;color:#fff}
.focus-card p,.context-card p {font-size:13px;line-height:1.55;margin:0;color:#fff}
.focus-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:auto}
.focus-bottom>span {font-size:12px}
.focus-card button,.context-card button {background:#fff;border-color:#fff;color:var(--action-hover);font-size:13px;min-height:36px;padding:7px 12px}
.focus-card button:hover,.context-card button:hover {background:#fcf3eb;border-color:#fcf3eb}
.context-card[data-tone=olive] button {color:var(--olive-text)}
/* Data workspaces share the same tabs, toolbars and section boundaries. */
.workspace {border:1.5px solid var(--line);border-radius:12px;overflow:clip;background:#fff}
.workspace-body {padding:24px;min-width:0}
.workspace-body>.panel:last-child,.workspace-body>section:last-child {margin-bottom:0}
.room-tabs-row {display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:0 24px;background:var(--grey-soft);min-width:0;flex-wrap:wrap}
.tabs {display:flex;gap:26px;min-width:0;margin:0 0 24px;border-bottom:1.5px solid var(--line);overflow-x:auto;overflow-y:hidden}
.room-tabs-row>.tabs {margin:0;border:0;flex:1;overflow:visible}
.tabs a {display:inline-flex;align-items:center;gap:8px;padding:16px 0 14px;border-bottom:3px solid transparent;margin-bottom:-1px;color:var(--muted);font-weight:600;text-decoration:none;white-space:nowrap;font-size:15px}
.tabs a.active {color:var(--action);border-bottom-color:var(--action)}
.tabs .n {display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:25px;font-size:12px;line-height:1.4;padding:3px 7px;border:1px solid #cbd0be;border-radius:6px;background:var(--accent-soft);color:var(--olive-text);font-weight:600;font-variant-numeric:tabular-nums}
.tabs .active .n {color:var(--action-hover);background:var(--action-soft);border-color:#d8b49c}
.tabs .n:empty {display:none}
.room-search {display:flex;gap:8px;align-items:center;padding:10px 0;min-width:0;flex:0 1 365px}
.room-search .search-wrap {flex:1;min-width:0}
.room-search input {font-size:13px;min-height:38px}
.room-search button {min-height:38px;font-size:13px;white-space:nowrap;padding:8px 10px}
.search-wrap {position:relative;min-width:0}
.search-wrap>.icon {display:none}
.toolbar {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;min-width:0}
.toolbar>select {width:auto;max-width:100%}
.toolbar:empty {display:none}
.process-toolbar {justify-content:space-between}
.process-filter {display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 260px;max-width:560px}
.process-filter label {margin:0;font-weight:500;font-size:13px;white-space:nowrap}
.process-filter select {flex:1;min-width:0}
.view-toggle,.seg {display:inline-flex;padding:4px;gap:4px;border:1px solid var(--line);border-radius:8px;background:var(--grey-soft);flex:0 0 auto}
.view-toggle button,.seg button {padding:6px 12px;min-height:34px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:13px}
.view-toggle button.active,.seg button.active {background:#fff;color:var(--action-hover);border-color:var(--action);box-shadow:none}
.filtertabs {display:flex;gap:8px;flex-wrap:wrap}
.filtertabs a {padding:7px 12px;border:1px solid var(--line);border-radius:6px;color:var(--muted);text-decoration:none;font-size:13px}
.filtertabs a.active {background:var(--action-soft);border-color:var(--action);color:var(--action-hover)}
.filtertabs .n {margin-left:6px}
.panel,.grp,.vg {background:#fff;border:1.5px solid var(--line);border-radius:12px;min-width:0;margin-bottom:24px}
.panel {padding:24px}
.panel h3:first-child {margin-top:0}
.section-heading {display:flex;align-items:baseline;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 16px}
.section-heading h3 {margin:0}
.section-heading .section-caption {color:var(--muted);font-size:13px}
.section-frame {border:1.5px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px;background:#fff}
.section-frame>.section-heading {padding:16px 20px;background:var(--grey-soft);border-bottom:1px solid var(--line);margin:0}
.empty-state {padding:32px;min-height:175px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;margin:0 0 24px;position:relative}
.empty-state::before {content:'';width:32px;height:4px;border-radius:2px;background:var(--action)}
.empty-state h3 {font-size:20px;line-height:1.4;margin:0}
.empty-state p {font-size:14px;line-height:1.6;color:var(--muted);margin:0;max-width:65ch}
.empty-state-actions {display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}
.section-frame>.empty-state {border:0;border-radius:0;margin:0}
.empty {font-size:14px;color:var(--muted);padding:24px;line-height:1.6}
.help-disclosure,details.hint {margin:20px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;color:var(--muted);padding:0;font-size:13px}
.help-disclosure summary,details.hint summary {display:flex;align-items:center;gap:12px;cursor:pointer;padding:16px 0;line-height:1.5;color:var(--olive-text);list-style:none;font-weight:500}
.help-disclosure summary::after,details.hint summary::after {content:'+';margin-left:auto;font-size:19px;font-weight:500}
.help-disclosure[open] summary::after,details.hint[open] summary::after {content:'\2212'}
summary::-webkit-details-marker {display:none}
.help-content,.hint-content {padding:0 0 18px;color:var(--muted);line-height:1.7;max-width:100ch}
.hint:not(details) {border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:8px;background:var(--accent-soft);padding:16px 18px;margin:0 0 20px;color:var(--olive-text);font-size:14px;line-height:1.6}
/* Pictograms are navigation aids, never appended to every content label. */
#main .tabs .icon,#main .view-toggle .icon,#main .page-actions .icon,#main button .icon,#main .focus-card .icon,#main .col h4 .icon,.help-disclosure .icon,details.hint .icon {display:none}
.table-wrap {overflow:auto;max-width:100%;scrollbar-width:thin}
.table-panel {padding:0!important;overflow:hidden}
table {border-collapse:collapse;width:100%;font-size:14px;line-height:1.55}
th,td {padding:16px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}
th {font-size:12px;font-weight:600;color:var(--olive-text);background:var(--grey-soft);white-space:normal}
tr:last-child td {border-bottom:0}
td b {font-weight:600}
tr.clickable {cursor:pointer}
tr.clickable:hover {background:#fcf7f3}
.table-wrap table {min-width:640px}
table.perms {min-width:1050px}
table.perms th {text-align:center;min-width:98px}
table.perms th:first-child,table.perms th:nth-child(2),table.perms th:nth-child(3) {text-align:left}
table.perms td {min-width:70px}
/* Colour conveys role; labels keep every state understandable without colour. */
.badge {display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;max-width:100%;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted);background:var(--grey-soft);white-space:normal}
.badge.gruen {color:var(--ok);background:var(--ok-soft)}
.badge.gelb {color:var(--warn);background:var(--warn-soft)}
.badge.rot {color:var(--danger);background:var(--danger-soft)}
.badge.current {background:var(--action-soft);color:var(--action-hover)}
.badge.grau {background:var(--grey-soft);color:var(--muted)}
.dot,.nl:not(.tag) {display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle;flex:0 0 8px;background:var(--brand-light)}
.dot.gruen,.nl.gruen {background:var(--brand)}
.dot.gelb {background:var(--copper-bright)}
.dot.rot,.nl.rot {background:var(--danger)}
.tag,.chip {display:inline-flex;gap:4px;align-items:center;padding:4px 8px;margin:2px 4px 2px 0;border-radius:5px;color:var(--olive-text);background:var(--accent-soft);font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.tag.nl {color:var(--action-hover);background:var(--action-soft)}
.chip.eff {font-weight:600;padding:2px 6px;min-width:23px;justify-content:center;white-space:nowrap}
.chip.e8 {background:var(--action-soft);color:var(--action-hover)}
.avatar {display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:30px;height:30px;flex:0 0 30px;font-size:12px;font-weight:600;color:var(--olive-text);border-radius:50%;background:var(--accent-soft);border:1px solid var(--line)}
.avatar.group {border-radius:6px}
.progress,.loadbar {display:inline-block;height:8px;width:110px;max-width:100%;background:#e8e8dd;border-radius:5px;overflow:hidden;vertical-align:middle}
.progress>div,.loadbar>span {display:block;height:100%;background:var(--action);border-radius:5px}
.loadbar {width:72px;height:7px}
.loadbar>span {background:var(--brand)}
.process-list {border:1.5px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px}
.process-list-head,.process-list-row {display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1.25fr) minmax(105px,.7fr) minmax(110px,.75fr);gap:20px;align-items:center;padding:18px 20px}
.process-list-head {background:var(--grey-soft);font-size:12px;font-weight:600;color:var(--olive-text);border-bottom:1px solid var(--line)}
.process-list-row {border-bottom:1px solid var(--line);cursor:pointer;position:relative;min-height:112px}
.process-list-row:last-child {border-bottom:0}
.process-list-row:hover {background:#fcf7f3}
.process-list-row>div {min-width:0;overflow-wrap:break-word}
.process-customer {font-size:16px;font-weight:600;line-height:1.5}
.process-template,.list-station {font-size:13px;color:var(--muted);line-height:1.5;margin-top:5px}
.list-current {font-size:14px;font-weight:600;line-height:1.5;color:var(--action-hover)}
.list-warning {font-size:12px;color:var(--danger);margin-top:8px;padding-left:8px;border-left:3px solid var(--danger);line-height:1.5}
.list-warning .icon {display:none}
.list-progress b {font-size:14px;font-weight:600}
.list-progress-track {height:7px;background:#eadbcc;border-radius:5px;margin:8px 0 5px;overflow:hidden}
.list-progress-track i {display:block;height:100%;background:var(--action);border-radius:5px}
.list-progress-label {font-size:11px;color:var(--muted);line-height:1.45}
.list-owner {display:flex;align-items:center;gap:8px;font-size:13px}
.process-legend {display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:0 0 16px}
.process-legend span {display:flex;align-items:center;gap:6px}
.legend-dot {height:10px;width:10px;display:inline-block;border-radius:50%;border:1px solid var(--brand-light)}
.legend-dot.finished {background:var(--brand);border-color:var(--brand)}
.legend-dot.current {border:2px solid var(--action)}
.legend-dot.future {border:1px dashed var(--brand)}
.pb {border:1.5px solid var(--line);border-radius:12px;overflow:auto;margin-bottom:24px;background:#fff}
.pbrow {display:grid;min-width:var(--matrix-width,950px);align-items:stretch;border-bottom:1px solid var(--line);cursor:pointer}
.pbrow:last-child {border:0}
.pbhead {background:var(--grey-soft);cursor:default}
.pbcust {position:sticky;left:0;z-index:1;padding:22px 20px;border-right:1px solid var(--line);background:#fff;font-size:14px}
.pbcust .name {font-weight:600;font-size:15px;line-height:1.5}
.pbcust .muted {margin-top:7px;font-size:12px}
.pbhead .pbcust {background:var(--grey-soft);display:flex;align-items:center}
.pbcell {display:flex;align-items:center;justify-content:center;min-height:128px;position:relative;min-width:0}
.pbhead .pbcell {display:grid;grid-template-rows:18px 50px 40px;gap:6px;padding:16px 12px;text-align:center;border-left:1px solid var(--line)}
.pbhead .pbcell b {font-size:14px;line-height:1.5;font-weight:600;align-self:center}
.pbhead .pbcell .muted {align-self:start;font-size:12px}
.stage-index {font-size:12px;font-weight:600;color:var(--brand)}
.pbcell .line {height:2px;background:#d9dbcb;flex:1}
.pbcell.past .line,.pbcell.now .line.l {background:#a2a68a}
.pbcell.first .line.l,.pbcell.last .line.r {visibility:hidden}
.pbcell .circle {display:flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border:1.5px solid #959b7f;border-radius:50%;font-size:12px;background:#fff;color:var(--olive-text)}
.pbcell.past .circle {background:var(--brand);color:#fff;border-color:var(--brand)}
.pbcell .pbcard {width:54px;height:54px;flex:0 0 54px;border:0;padding:0;margin:0;position:relative;background:#fff;border-radius:50%;cursor:grab}
.stage-ring {width:54px;height:54px;position:relative}
.stage-ring svg {width:54px;height:54px;transform:rotate(-90deg)}
.stage-ring .track {fill:none;stroke:#eed1bc;stroke-width:3}
.stage-ring .value {fill:none;stroke:var(--action);stroke-width:3;stroke-linecap:round}
.ring-text {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--action)}
.stage-caption {position:absolute;top:60px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;color:var(--action)}
.customer-status {margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.pbcell.over,.col.over {outline:2px dashed var(--action);outline-offset:-3px;background:var(--action-soft)}
/* Tasks share list and board styling with a stable information hierarchy. */
.task-section {border:1.5px solid var(--line);border-top:3px solid var(--brand);border-radius:12px;overflow:hidden;margin-bottom:24px}
.task-section[data-section-tone=copper] {border-top-color:var(--action)}
.task-section>h3 {margin:0;padding:16px 20px;display:flex;align-items:center;gap:10px;background:var(--grey-soft);border-bottom:1px solid var(--line);font-size:16px;line-height:1.5;flex-wrap:wrap}
.task-section-count {display:inline-flex;align-items:center;justify-content:center;font-size:12px;min-width:29px;min-height:27px;line-height:1.4;padding:3px 8px;border:1px solid #cbd0be;border-radius:6px;background:var(--accent-soft);color:var(--olive-text);text-align:center;font-variant-numeric:tabular-nums}
.select-section {margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}
.task-list-row {display:grid;grid-template-columns:minmax(0,1fr) 113px 50px 120px 64px;gap:16px;align-items:center;padding:20px;border-bottom:1px solid var(--line);min-width:0;cursor:grab}
.task-list-row.selectable {grid-template-columns:18px minmax(0,1fr) 113px 50px 120px 64px}
.task-list-row:last-child {border:0}
.task-list-row:hover {background:#fcf9f6}
.task-list-row>div {min-width:0}
.task-list-title>button {font-size:15px;text-align:left;justify-content:flex-start;padding:0;min-height:0;background:none;border:0;line-height:1.55;font-weight:600}
.task-list-title>button:hover {color:var(--action);text-decoration:underline}
.task-list-context {display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:6px;font-size:12px;color:var(--muted);line-height:1.5}
.task-list-context a {font-weight:500;text-decoration:none}
.task-list-owner {display:flex;align-items:center;gap:7px}
.task-list-owner button {padding:0;min-height:32px;border:0;background:transparent;text-align:left;justify-content:flex-start;color:var(--olive-text);font-size:12px;line-height:1.5}
.task-list-effort {font-size:12px;white-space:nowrap}
.task-list-check {display:flex;flex-direction:column;gap:6px;align-items:center;margin:0;font-size:11px;font-weight:400;color:var(--muted)}
.task-list-row.done .task-list-title>button {color:var(--muted);text-decoration:line-through}
.task-history {border:1.5px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}
.task-history>summary {padding:16px 20px;font-size:14px;cursor:pointer;background:var(--grey-soft)}
.task-history[open]>summary {border-bottom:1px solid var(--line)}
.board {display:flex;align-items:stretch;gap:20px;overflow:auto;padding-bottom:16px;max-width:100%}
.col {flex:1 1 0;min-width:210px;max-width:420px;border:1.5px solid var(--line);border-top:4px solid var(--brand);border-radius:12px;padding:16px;background:var(--grey-soft)}
.col[data-tone=overdue],.col[data-tone=today],.col[data-tone=person] {border-top-color:var(--action)}
.col h4 {display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;font-size:15px;margin:0 0 8px;line-height:1.5}
.col h4>span:first-child {display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.col-subtitle {font-size:12px;color:var(--muted);margin:0 0 16px;line-height:1.6;min-height:38px}
.col .empty {padding:20px 12px;background:#fff;border:1px dashed #a8ad97;border-radius:8px;font-size:13px}
.card {padding:18px 16px;margin:0 0 16px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:grab}
.card:last-child {margin-bottom:0}
.card .name {font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:break-word}
.card .muted {margin-top:8px;font-size:12px;line-height:1.6}
.card .foot {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:16px}
.card .foot>span {display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.card .task-actions {display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);margin-top:12px;padding-top:12px;font-size:12px}
.card .task-actions button {font-size:12px;padding:5px 8px;min-height:30px;background:var(--action-soft);border:0;color:var(--action-hover)}
.card.done .name {text-decoration:line-through;color:var(--muted)}
.dragging {opacity:.45}
.task-history .board {flex-wrap:wrap;padding:16px}
/* Karten: Titel als Knopf (öffnet die Aufgabe), ungelesen fett mit Punkt wie eine neue Mail */
.card .card-line {display:flex;align-items:flex-start;gap:8px}
.card .card-title {flex:1;min-width:0;display:block;padding:0;min-height:0;border:0;background:none;text-align:left;justify-content:flex-start;font-size:14px;font-weight:500;line-height:1.45;color:var(--text);overflow-wrap:anywhere;text-decoration:none}
.card .card-title:hover {color:var(--action);background:none}
.card.unread {border-left:4px solid var(--action);background:#fffaf6}
.card.unread .card-title,.task-list-row.unread .task-list-title>button {font-weight:700}
.unread-dot {display:inline-block;width:9px;height:9px;margin:0 7px 1px 0;border-radius:50%;background:var(--action);vertical-align:middle}
.card-toggle {flex:0 0 auto;min-height:26px;width:26px;padding:0;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:13px;line-height:1;color:var(--olive-text)}
.card.compact {padding:10px 12px;margin-bottom:8px}
.card .card-meta {display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px}
.card .card-meta .card-cust {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.card .card-meta .badge {padding:1px 6px}
.check-chip {font-size:11px;padding:1px 6px;margin:0;white-space:nowrap}
.check-chip.full {background:#e3eadb;color:#3d5a2a}
.card.upcoming {cursor:default;border-style:dashed;background:transparent;opacity:.85;padding:10px 12px;margin-bottom:8px}
.card.upcoming .card-title {color:var(--muted)}
.upcoming-when {margin-top:6px;font-size:12px;color:var(--olive-text)}
.col[data-tone=upcoming] {border-top-color:#b9bcae;border-style:dashed;background:#fbfbf8}
.upcoming-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.upcoming-list .card {margin:0}
.upcoming-toggle {display:inline-flex;gap:8px;align-items:center;font-size:13px;min-height:36px}
.upcoming-toggle.active {border-color:var(--action);color:var(--action-hover);background:var(--action-soft)}
.upcoming-toggle .n {font-size:11px;padding:1px 6px;border-radius:5px;background:var(--accent-soft)}
.nav-new {margin-left:auto;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#dda782}
.nav-new+.nav-count {margin-left:6px}
.tab-new {font-size:11px;font-weight:700;padding:2px 7px;border-radius:5px;background:var(--action);color:#fff}
.checklist {margin:18px 0 4px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--grey-soft)}
.checklist-head {display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:14px}
.checklist-bar {flex:1;max-width:160px;height:6px;border-radius:3px;background:#e2e3da;overflow:hidden}
.checklist-bar i {display:block;height:100%;background:var(--brand)}
.checklist-item {display:flex;align-items:flex-start;gap:10px;padding:6px 0;font-size:14px;font-weight:400;margin:0;cursor:pointer;border-top:1px solid #ebece4}
.checklist-item input {margin-top:3px}
.checklist-item span:first-of-type {flex:1}
.checklist-item.done span:first-of-type {text-decoration:line-through;color:var(--muted)}
.checklist-add {margin-top:8px;font-size:13px}
.tpl-check {margin:-2px 0 10px 52px;font-size:13px}
.tpl-ci {display:flex;align-items:center;gap:8px;margin:0 0 2px}
.tpl-ci .tpl-box {width:14px;height:14px;flex:0 0 14px;border:1.5px solid var(--control-line);border-radius:3px}
.modal .tpl-ci input {flex:1;height:30px;min-height:30px;padding:2px 8px;font-size:13px;border-color:var(--line)}
.modal .tpl-ci button {height:28px;min-height:28px;width:28px;padding:0;border:0;background:none;color:var(--muted)}
.tpl-add-ci {min-height:28px;padding:2px 8px;font-size:12px;border-style:dashed;background:none;color:var(--olive-text)}
.task-history .card {flex:0 1 300px;margin:0}
.dropbar {display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 24px}
.dropbar .col {min-width:170px;flex:1;max-width:none;padding:12px 16px;border:1px dashed #979d86;background:#fff}
.dropbar .col h4 {font-size:13px;margin:0}
.dropbar .col .empty,.dropbar .col h4>.muted {display:none}
.dropbar .col-subtitle {min-height:0;margin:6px 0 0;font-size:12px}
.workload {border-top:3px solid var(--brand)}
.workload-heading {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.workload-heading>b {font-size:16px}
.workload-people {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.wl {display:flex;gap:8px;align-items:center;font-size:13px}
.workload-pools {display:flex;gap:12px 24px;flex-wrap:wrap;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.selbar {display:flex;gap:10px 12px;align-items:center;flex-wrap:wrap;border:1px solid var(--action);border-left:4px solid var(--action);border-radius:8px;padding:14px 16px;background:var(--action-soft);margin-bottom:20px;font-size:13px}
.selbar select {width:auto;max-width:320px}
.selbar.quiet {background:#fff;border-color:var(--line)}
.grp>.head,.vg>.head {display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:18px 20px;cursor:pointer;font-size:14px}
.grp>.head>b,.vg>.head>b {flex:1;min-width:180px;font-size:16px}
.caret {width:14px;flex-shrink:0;color:var(--brand)}
.grp>.body,.vg>.body {border-top:1px solid var(--line)}
.grp.closed>.body,.vg.closed>.body {display:none}
.vg.now {border-top:3px solid var(--action)}
.vg.past {border-top:3px solid var(--brand)}
.vg>.body {padding:0 20px}
.task {display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;cursor:grab}
.task:last-child {border:0}
.task .t {flex:1;min-width:230px;line-height:1.6}
.task select.mini {width:auto;max-width:200px;font-size:12px;padding:6px 8px;min-height:36px}
.task.done .t {text-decoration:line-through;color:var(--muted)}
.row {display:grid;grid-template-columns:minmax(200px,1.6fr) minmax(170px,1.2fr) 90px 120px 140px;gap:18px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);font-size:14px;cursor:pointer;min-width:800px}
.row:last-child {border:0}
.row:hover {background:#fcf7f3}
.process-meta {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px!important}
.process-meta>span[style] {display:none}
.process-meta .progress {margin:6px 0}
.process-meta>.meta-cell {min-width:0}
.cols {display:grid;gap:24px;min-width:0}
.customer-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.kv {display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;font-size:14px;line-height:1.6}
.kv>div:nth-child(odd) {color:var(--muted);font-size:13px}
.record-mark {display:none}
.tagedit .tag button {padding:0 3px;min-height:24px;border:0;background:none;color:inherit}
.tagedit input {width:170px;max-width:100%;min-height:36px;font-size:13px}
.task-detail-info {display:grid;grid-template-columns:115px minmax(0,1fr);gap:16px;padding:24px 0;font-size:14px}
.task-detail-info>span {color:var(--muted)}
.cfilter {display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(130px,.7fr) minmax(140px,.7fr);gap:16px;align-items:end;margin:0 0 20px}
.filter-field {min-width:0}
.filter-field label {margin:0 0 6px;font-size:12px;color:var(--muted);font-weight:500}
.cfilter input,.cfilter select {width:100%}
.filter-secondary {display:flex;align-items:center;gap:12px 24px;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.filter-secondary>label {font-size:13px}
.tagfilter {display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-width:0}
.tagfilter .tf {border:1px solid #aaaD9d;background:#fff;text-decoration:none;cursor:pointer;padding:5px 9px;margin:0;font-size:12px}
.tagfilter .tf.on {background:var(--action-soft);border-color:var(--action);color:var(--action-hover);font-weight:600}
.tagfilter .tagmode {width:auto;min-height:32px;padding:4px 6px;font-size:12px}
.filtersum {display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--line);margin:16px 0;font-size:13px}
.filtersum b {font-size:14px;font-weight:600}
.result-caption {margin-bottom:16px;color:var(--muted);font-size:13px}
.filter-builder {border-top:1px solid var(--line);margin-top:20px;padding-top:20px;display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.filter-builder .filter-field {flex:1;min-width:220px}
.mailrow {font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
.person-entry .badge+.muted {margin-top:12px}

.customers-table {table-layout:fixed;min-width:890px!important}
.customers-table .col-select {width:45px}
.customers-table .col-customer {width:25%}
.customers-table .col-place {width:16%}
.customers-table .col-advisor {width:12%}
.customers-table .col-tags {width:20%}
.customers-table .col-contacts {width:auto}
.customer-name {font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:break-word}
.customer-meta {margin-top:5px;font-size:12px;color:var(--muted)}
.sync-banner {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:24px;border:1.5px solid var(--line);border-top:3px solid var(--action);border-radius:12px;margin-bottom:24px}
.sync-banner>.badge {align-self:start;justify-self:end}
.sync-banner h3 {margin:0 0 6px;font-size:18px}
.sync-banner p {font-size:14px;color:var(--muted);margin:0;max-width:75ch}
.sync-actions {display:flex;gap:16px;align-items:center;flex-wrap:wrap;grid-column:1 / -1;border-top:1px solid var(--line);padding-top:20px}
.sync-actions button {margin-left:auto}
.sync-actions label {font-size:14px}
.rmgrid {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr);gap:24px}
.rmgrid .panel {margin:0 0 24px}
.rmhead {display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:0 0 16px;font-size:14px}
.rmhead>b {font-size:17px!important}
.vt {border-top:3px solid var(--brand)}
.rmconn {display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.rmconn>.muted {max-width:85ch;font-size:14px}
.rm-actions {display:flex;flex-wrap:wrap;gap:10px}
.rmlog {max-height:460px;overflow:auto;font-size:13px}
.rmlog>div {padding:16px 0;border-bottom:1px solid var(--line);line-height:1.65}
.rmlog>div:first-child {padding-top:0}
.rmlog>div:last-child {border:0;padding-bottom:0}
.rmlog .log-meta {display:flex;gap:10px;align-items:center;margin-bottom:8px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.dir {display:inline-flex;padding:3px 6px;font-size:11px;font-weight:600;border-radius:4px}
.dir.out {color:var(--action-hover);background:var(--action-soft)}
.dir.in {color:var(--olive-text);background:var(--accent-soft)}
.rmlists {display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.suppression-item {padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere;line-height:1.6}
.suppression-item:last-child {border:0;padding-bottom:0}
.suppression-item:first-child {padding-top:0}
.suppression-item b {font-weight:600}
/* Dialogs are isolated from the page shell; long plans scroll inside the dialog. */
.modal-bg {position:fixed;inset:0;z-index:80;background:rgba(33,35,29,.48);display:flex;align-items:center;justify-content:center;padding:24px}
.modal {position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;width:560px;max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 24px 90px rgba(0,0,0,.18)}
.modal.wide {width:1060px}
.modal h2 {font-size:26px;margin:0 36px 20px 0;line-height:1.35}
.modal .modal-close {position:absolute;right:18px;top:18px;width:32px;min-height:32px;padding:6px;border:0;background:var(--grey-soft)}
.modal .row2 {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.modal .row2>.muted {flex-basis:100%!important}
.modal .row2>span:empty {display:none}
.modal .cols {gap:16px}
.modal .hint {font-size:13px}
.plan {overflow:auto;margin-top:20px}
.plan .vgh {display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 0;margin:12px 0 0;min-width:760px;font-weight:600;font-size:14px}
.deputy-switch {margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.room-hero.deputy-view .page-heading {border-left:4px solid var(--action);padding-left:14px}
.plan .prow select.tpl-own-station {border-color:var(--action);color:var(--action-hover)}
.plan .prow {display:grid;grid-template-columns:20px minmax(200px,1fr) 120px 220px 32px;gap:10px;align-items:center;padding:6px 0;min-width:760px}
.plan .prow input,.plan .prow select {font-size:13px;min-height:38px;padding:8px}
.plan .prow button {min-height:32px;padding:4px;border:0}
.plan .vgh .muted {font-weight:400}
.token-list {display:grid;grid-template-columns:16px 150px minmax(0,1fr);gap:16px;align-items:center;font-size:13px;margin:24px 0}
.token-dot {height:14px;width:14px;display:block;border-radius:4px}
.design-choice {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.design-notes {font-size:13px;color:var(--muted);margin:24px 0 0;line-height:1.7}
.toast {position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:99;max-width:min(700px,calc(100% - 32px));padding:16px 20px;background:var(--brand-dark);color:#fff;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,.18);font-size:14px;line-height:1.6}
.toast.warn {background:var(--danger)}

/* Reusable quantities. Dates, identifiers and narrative text are intentionally excluded. */
.count-badge {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:32px;padding:4px 9px;flex:0 0 auto;border:1px solid #cbd0be;border-radius:7px;background:var(--accent-soft);color:var(--olive-text);font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;vertical-align:middle;text-decoration:none}
.count-badge[data-tone=copper] {border-color:#d8b49c;background:var(--action-soft);color:var(--action-hover)}
.count-badge.is-zero {border-color:var(--line);background:var(--grey-soft);color:var(--muted)}
.count-label {display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.5}
h3>.count-badge {margin-left:8px;font-size:13px;vertical-align:middle}
.quantity-cell {min-width:124px;text-align:center}
.quantity-cell .badge {margin-top:8px}
.quantity-stack {display:flex;flex-direction:column;align-items:center;gap:8px}
.quantity-stack>.badge {margin:0;white-space:nowrap}
.section-caption.count-label {gap:8px}
.filtersum>.count-label {gap:8px 10px}
.filtersum .count-label .count-badge {font-size:13px}
.room-customers-table {min-width:1040px!important;table-layout:fixed}
.room-customers-table .col-room-customer {width:23%}
.room-customers-table .col-room-place {width:14%}
.room-customers-table .col-room-advisor {width:10%}
.room-customers-table .col-room-process {width:23%}
.room-customers-table .col-room-count {width:82px}
.room-customers-table .col-room-due {width:108px}
.room-customers-table .col-room-action {width:174px}
.room-customers-table td:last-child,.room-customers-table th:last-child {text-align:right}
.room-customers-table td:last-child button {white-space:nowrap}
.room-processes {display:flex;flex-direction:column;gap:12px;line-height:1.5}
.room-processes .customer-meta {margin-top:4px}
.room-processes a {font-size:13px;font-weight:500}
.task-history>summary {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.task-history>summary .count-badge {margin-left:auto}
.task-history>summary::after {content:'+';font-size:18px;color:var(--muted);line-height:1;margin-left:2px}
.task-history[open]>summary::after {content:'\2212'}
/* Select-only count filters. The native select is retained as the data/event source. */
.count-select {min-width:0;flex:1}
.count-select-trigger {display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:12px;width:100%;min-height:46px;padding:9px 14px;border:1px solid var(--control-line);border-radius:8px;background:#fff;text-align:left;font-size:14px;font-weight:400;line-height:1.5;cursor:pointer}
.count-select-trigger:hover {background:var(--grey-soft);border-color:var(--brand)}
.count-select-trigger[aria-expanded=true] {outline:2px solid var(--action);outline-offset:1px;border-color:var(--action)}
.count-select-trigger .select-label {min-width:0;overflow-wrap:anywhere}
.count-select-trigger .count-badge {min-width:30px;min-height:27px;padding:3px 7px;font-size:12px}
.select-chevron {display:block;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-2px) rotate(45deg);justify-self:center}
.count-select-trigger[aria-expanded=true] .select-chevron {transform:translateY(2px) rotate(225deg)}
.count-select-popup {position:fixed;z-index:70;padding:6px;border:1.5px solid #b7b9ab;border-radius:10px;background:#fff;box-shadow:0 12px 32px rgba(47,48,48,.15);overflow-y:auto;overscroll-behavior:contain;font-family:var(--ui-font);font-size:14px;line-height:1.5;min-width:0}
.count-select-option {display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:12px;min-height:50px;padding:10px 12px;border:1px solid transparent;border-radius:6px;cursor:pointer;user-select:none}
.count-select-option>.select-option-label {min-width:0;overflow-wrap:anywhere;padding:1px 0}
.count-select-option[aria-selected=true] {background:var(--action-soft);color:var(--action-hover);font-weight:600}
.count-select-option.is-focused {border-color:var(--action);background:#fcf5f0}
.count-select-option+.count-select-option {margin-top:3px}
.select-option-mark {font-weight:600;font-size:15px;color:var(--action)}
.count-select-option .count-badge {font-size:12px;min-width:29px;min-height:28px;padding:3px 8px}
@media (max-width:620px) {header .who {padding:3px 4px}.count-select-trigger {gap:9px;padding:9px 11px;font-size:13px}.count-select-option {gap:10px;padding:10px;font-size:13px}}

/* Adapt by available content width, not a fragile sum of fixed columns. */
@container (max-width:1000px) {
 .overview-grid {grid-template-columns:1fr}
 .focus-card,.context-card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;padding:20px 24px}
 .focus-top {grid-column:1 / -1}
 .focus-card h3,.context-card h3 {grid-column:1}
 .focus-card p,.context-card p {grid-column:1}
 .focus-bottom {grid-column:2;grid-row:2 / span 2;flex-direction:column;align-items:flex-end;justify-content:center;max-width:220px}
 .room-tabs-row {gap:0}
 .room-tabs-row>.tabs {flex:1 1 auto}
 .room-search {flex:1 1 320px;max-width:420px;margin-left:auto}
 .process-list-head,.process-list-row {gap:16px;grid-template-columns:minmax(0,1.5fr) minmax(0,1.2fr) 100px 100px}
 .task-list-row,.task-list-row.selectable {grid-template-columns:18px minmax(0,1fr) 116px 64px;gap:12px}
 .task-list-row>.task-list-title {grid-column:2;grid-row:1}
 .task-list-row>.task-list-due {grid-column:3;grid-row:1}
 .task-list-row>.task-list-effort {grid-column:4;grid-row:1}
 .task-list-row>.task-list-owner {grid-column:2;grid-row:2}
 .task-list-row>.task-list-check {grid-column:3 / 5;grid-row:2;flex-direction:row;justify-content:flex-end}
 .task-list-row:not(.selectable)>.task-list-title {grid-column:1 / 3}
 .task-list-row:not(.selectable)>.task-list-owner {grid-column:1 / 3}
 .customer-grid,.rmgrid {grid-template-columns:1fr}
}
@container (max-width:900px) {
 .row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0;gap:16px}
 .row>div:first-child {grid-column:1 / -1}
 .row>div:nth-child(2),.row>div:nth-child(4) {grid-column:1}
 .row>div:nth-child(3),.row>div:nth-child(5) {grid-column:2}
}
@container (max-width:720px) {
 .roomhead,.page-heading {align-items:flex-start;flex-direction:column;gap:16px}
 .page-actions {justify-content:flex-start}
 .room-tabs-row {padding:0 16px}
 .room-tabs-row>.tabs {flex:1 1 100%;gap:24px}
 .room-search {flex:1 1 100%;max-width:none;margin:0;padding:12px 0}
 .workspace-body {padding:20px}
 .process-list-head {display:none}
 .process-list-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:20px}
 .process-list-row .list-progress {grid-column:1}
 .process-list-row .list-owner {grid-column:2}
 .cfilter {grid-template-columns:repeat(2,minmax(0,1fr))}
 .cfilter>.filter-field:first-child {grid-column:1 / -1}
 .process-meta {grid-template-columns:repeat(2,minmax(0,1fr))}
 .cols {grid-template-columns:1fr!important}
 .kv {grid-template-columns:120px minmax(0,1fr)}
}
@container (max-width:520px) {
 .room-hero h2 {font-size:29px}
 .row {grid-template-columns:1fr}
 .row>div:nth-child(n) {grid-column:1}
 .room-tabs-row>.tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
 .room-tabs-row>.tabs a {display:block;text-align:center;white-space:normal;font-size:12px;padding:12px 0;line-height:1.5}
 .room-tabs-row>.tabs a .n {display:inline-block;margin-left:4px}
 .room-tabs-row>.tabs a .n:empty {display:none}
 .metric-grid,.room-stats {grid-template-columns:1fr;gap:12px}
 .metric-card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;min-height:100px;padding:16px 20px}
 .metric-card .metric-value {grid-column:2;grid-row:1 / span 2;align-self:center;font-size:30px}
 .metric-card .metric-note {grid-column:1}
 .focus-card,.context-card {display:flex;gap:12px;padding:20px}
 .focus-bottom {flex-direction:row;max-width:none;align-items:center;justify-content:space-between;margin-top:8px}
 .focus-top {flex-wrap:wrap}
 .focus-date {white-space:normal}
 .room-tabs-row>.tabs {gap:20px}
 .tabs a {font-size:13px}
 .tabs .n {font-size:11px}
 .room-search {flex-wrap:wrap}
 .room-search .search-wrap {flex:1 1 100%}
 .workspace-body {padding:16px}
 .process-filter {flex-direction:column;align-items:stretch;gap:6px;max-width:none}
 .process-filter label {font-size:12px}
 .view-toggle {margin-left:auto}
 .process-list-row {grid-template-columns:1fr;gap:14px}
 .process-list-row .list-progress {grid-column:1;max-width:150px}
 .process-list-row .list-owner {grid-column:1}
 .task-list-row,.task-list-row.selectable {grid-template-columns:18px minmax(0,1fr) 56px;gap:12px 8px;padding:16px}
 .task-list-row>.task-list-title {grid-column:2 / 4;grid-row:1}
 .task-list-row:not(.selectable)>.task-list-title {grid-column:1 / 4}
 .task-list-row>.task-list-due {grid-column:1 / 3;grid-row:2}
 .task-list-row>.task-list-effort {grid-column:3;grid-row:2}
 .task-list-row>.task-list-owner,.task-list-row:not(.selectable)>.task-list-owner {grid-column:1 / 3;grid-row:3}
 .task-list-row>.task-list-check {grid-column:3;grid-row:3;flex-direction:column}
 .task-section>h3 {padding:14px 16px;font-size:15px}
 .select-section {margin-left:0;width:100%}
 .empty-state {padding:24px;min-height:180px}
 .empty-state h3 {font-size:18px}
 .cfilter {grid-template-columns:1fr}
 .filter-secondary {gap:16px}
 .sync-banner {grid-template-columns:1fr;padding:20px}
 .sync-actions button {margin-left:0}
 .panel {padding:20px}
 .kv {grid-template-columns:1fr;gap:6px}
 .kv>div:nth-child(even) {margin-bottom:12px}
 .process-meta {grid-template-columns:1fr}
 .task .t {min-width:calc(100% - 50px)}
 .selbar select {max-width:100%;width:100%}
 .ovgrid {grid-template-columns:1fr}
 .ovrow {grid-template-columns:110px 42px minmax(0,1fr)}
}
@media (max-width:1100px) {
 :root {--sidebar:232px}
 main#main {padding:28px 24px 48px}
 header.app-header {padding:0 24px;gap:12px}
 .breadcrumb .crumb-section,.breadcrumb .crumb-divider {display:none}
 header .who .avatar {display:none}
}
@media (max-width:960px) {
 body {grid-template-columns:minmax(0,1fr)}
 header.app-header,main#main {grid-column:1}
 nav#nav {position:fixed;left:0;top:0;bottom:0;width:258px;transform:translateX(-100%);visibility:hidden;z-index:51}
 body.nav-open nav#nav {transform:translateX(0);visibility:visible}
 body.nav-open #nav-shade {display:block;position:fixed;inset:0;background:rgba(30,32,27,.4);z-index:50}
 #menu-toggle {display:inline-flex}
 .skip-link {left:18px}
}
@media (max-width:620px) {
 :root {--topbar:64px}
 header.app-header {padding:0 16px;gap:8px}
 main#main {padding:24px 16px 40px;scrollbar-gutter:auto}
 .header-demo,header .spacer {display:none}
 .breadcrumb {flex:1;min-width:0}
 .breadcrumb .crumb-current {font-size:12px;max-width:135px}
 header .who select {max-width:135px;font-size:12px;padding:6px}
 #reset {display:none}
 h2 {font-size:27px}
 .modal-bg {padding:10px}
 .modal {padding:24px 20px;max-height:calc(100dvh - 20px);border-radius:12px}
 .modal h2 {font-size:22px}
 .modal .cols {grid-template-columns:1fr!important}
 .modal .row2 {gap:8px}
 .modal .row2 button {flex:1 1 auto}
 .task-detail-info {grid-template-columns:90px minmax(0,1fr);gap:12px}
 .token-list {grid-template-columns:16px 1fr}
 .token-list>span {grid-column:2}
}
:root[data-density=spacious] main {font-size:16px}
:root[data-density=spacious] .task-list-title>button,:root[data-density=spacious] td {font-size:16px}
:root[data-density=spacious] .task-list-row,:root[data-density=spacious] .process-list-row {padding-top:26px;padding-bottom:26px}
@media (prefers-reduced-motion:reduce) {* {transition:none!important;scroll-behavior:auto!important}}

/* Record detail components use the same spacing and boundaries as the overview. */
.customer-grid > .panel {border-top:3px solid var(--brand)}
.customer-grid > .person-panel {border-top-color:var(--action)}
.person-entry {display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}
.person-entry:last-child {border-bottom:0;padding-bottom:0}
.person-entry > .avatar {width:34px;height:34px;margin-top:2px}
.person-name {font-size:16px;font-weight:600;line-height:1.45}
.person-role {font-size:13px;line-height:1.55;color:var(--muted);margin-top:3px}
.person-mail {font-size:14px;line-height:1.6;color:var(--olive-text);margin-top:7px;overflow-wrap:anywhere}
.person-entry .badge {margin-top:9px;white-space:normal}
.person-entry .muted {overflow-wrap:anywhere}
.tagedit > div {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tagedit > div > input {flex:1 1 140px;width:auto;min-width:0}
.tagedit [data-add-tag] {padding:7px 12px;min-height:36px;border:1.5px solid var(--action-line);border-radius:7px;background:var(--action-soft);color:var(--action);white-space:nowrap}
.activity-entry {display:block;padding:20px 0;border-bottom:1px solid var(--line)}
.activity-entry:first-child {padding-top:0}
.activity-entry:last-child {padding-bottom:0;border-bottom:0}
.activity-symbol {display:none}
.activity-entry b {font-size:15px;font-weight:600}
.activity-text {font-size:14px;line-height:1.65;margin:7px 0;overflow-wrap:anywhere}
.process-meta {border-top:3px solid var(--action)}
.process-meta > div {min-width:0;overflow-wrap:anywhere}
.process-meta > button {align-self:start;justify-self:start}
.vg {overflow:hidden}
.vg.now > .head {background:var(--action-soft)}
.vg.past > .head {background:var(--grey-soft)}
.task .t > .muted {display:block;margin-top:4px}

.tag-details {border:0;margin-bottom:12px;font-size:13px}
.tag-details>summary {padding:8px 0;cursor:pointer;color:var(--olive-text);font-weight:600;list-style:disclosure-closed inside}
.tag-details[open]>summary {list-style:disclosure-open inside;margin-bottom:8px}
.room-hero>.overview-grid {margin-bottom:0}


/* V6: one customer per row. Detailed newsletter state belongs to a person, not a customer. */
.customers-table td {vertical-align:top;padding-block:18px}
.customers-table .contact-cell {padding:16px}
.customers-table td>input[type=checkbox] {margin-top:5px}
.customers-table .customer-name {font-size:14px;line-height:1.55}
.customers-table .col-contacts {width:188px}
.contact-summary {display:flex;flex-direction:column;gap:7px;align-items:flex-start;min-width:0}
.contact-summary>button {min-height:38px;width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 10px;align-items:center;gap:9px;padding:5px 9px 5px 5px;border:1px solid var(--line);background:#fff;text-align:left;font-size:13px;font-weight:600}
.contact-summary>button:hover {border-color:var(--action);background:var(--action-soft)}
.contact-summary>button .count-badge {height:29px;min-height:29px;min-width:34px;border:0;border-radius:5px}
.contact-summary .contact-link-mark {width:6px;height:6px;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:rotate(45deg)}
.contact-summary .contact-summary-note {padding-left:5px;font-size:12px;line-height:1.4;color:var(--muted)}
.contact-summary .contact-summary-note.has-optout {color:var(--danger)}
.contact-placeholder {font-size:13px;color:var(--muted);display:block;padding-top:8px}
.room-customers-table th.quantity-cell,.room-customers-table td.quantity-cell {min-width:0;text-align:center;vertical-align:top}
.room-customers-table th.quantity-cell {vertical-align:middle}
.room-customers-table td.quantity-cell .count-badge {margin-top:0}
.room-customers-table td {vertical-align:top}
.room-customers-table .customer-meta {margin-top:5px}
.room-customers-table td:first-child {padding-top:18px}
/* Rows have an explicit label column and value column; the width of a number never changes the grid. */
.status-badge {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:30px;padding:4px 9px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:600;line-height:1.45;white-space:nowrap}
.status-badge[data-tone=ok] {background:var(--ok-soft);border-color:#c8d0b7;color:var(--ok)}
.status-badge[data-tone=warn] {background:var(--action-soft);border-color:#d9b399;color:var(--action-hover)}
.status-badge[data-tone=delay],.status-badge[data-tone=blocked] {background:var(--danger-soft);border-color:#ddbbad;color:var(--danger)}
.status-badge[data-tone=neutral] {background:var(--grey-soft);color:var(--muted)}
.contact-records {display:flex;flex-direction:column;gap:0}
.contact-record {padding:22px 0;border-top:1px solid var(--line);min-width:0}
.contact-record:first-child {padding-top:6px;border-top:0}
.contact-record:last-child {padding-bottom:0}
.contact-person {display:flex;gap:8px 14px;align-items:baseline;flex-wrap:wrap;margin:0 0 15px}
.contact-person b {font-size:16px;font-weight:600;color:var(--text)}
.contact-person span {font-size:13px;color:var(--muted)}
.contact-fields {margin:0;display:grid;grid-template-columns:88px minmax(0,1fr);align-items:start;gap:12px 16px;font-size:14px}
.contact-fields dt {font-size:12px;font-weight:500;color:var(--muted);padding-top:5px}
.contact-fields dd {margin:0;min-width:0;overflow-wrap:anywhere;line-height:1.65}
.contact-fields dd.contact-mail-value {padding-top:3px}
.contact-mail-value a {color:var(--text);font-size:14px;text-decoration:none;overflow-wrap:anywhere;word-break:normal}
.contact-mail-value a:hover {text-decoration:underline;color:var(--action)}
.contact-status-detail {display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}
.contact-status-detail:empty {display:none}
.contact-status-actions {margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.contact-status-actions button {font-size:12px;min-height:32px;padding:6px 9px}
.person-panel .contact-record {padding-block:20px}
.person-panel .contact-record:first-child {padding-top:0}
.person-panel .contact-fields {grid-template-columns:78px minmax(0,1fr);gap:12px}
.modal-bg.is-contact-drawer {justify-content:flex-end;align-items:stretch;padding:16px;background:rgba(33,35,29,.25)}
.modal.contact-drawer {display:flex;flex-direction:column;width:660px;max-width:100%;height:100%;max-height:100%;border-radius:14px;padding:32px;overflow-y:auto}
.contact-drawer .page-kicker {margin-bottom:12px}
.contact-drawer h2 {margin:0 28px 9px 0;font-size:25px}
.contact-drawer .drawer-subtitle {font-size:14px;color:var(--muted);margin:0 0 24px;line-height:1.6}
.contact-drawer .drawer-info {background:var(--accent-soft);padding:14px 16px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.6;margin-bottom:20px;color:var(--olive-text)}
.contact-drawer>.contact-records {flex:1;min-width:0}
.contact-drawer .row2 {flex-shrink:0;position:sticky;bottom:-32px;margin:26px -32px -32px;padding:18px 32px;background:#fff;z-index:1}
/* GF dashboard: all visualisations derive from current records, no fabricated history or capacity. */
.gf-dashboard {display:block;min-width:0}
.gf-dashboard .page-heading {margin-bottom:24px}
.gf-dashboard .gf-scope {display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.gf-scope label {margin:0;font-size:13px;font-weight:500}
.gf-scope select {width:210px;min-width:0;max-width:100%}
.gf-scope .gf-date {color:var(--muted);font-size:12px;flex-basis:100%;text-align:right}
.gf-kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.gf-kpi {display:grid;grid-template-rows:auto 46px auto;gap:12px;min-width:0;padding:20px;min-height:160px;border:1.5px solid var(--line);border-top:3px solid var(--brand);border-radius:12px;background:#fff;text-align:left;align-content:start;justify-content:stretch;font-weight:400;position:relative}
.gf-kpi:hover {background:var(--accent-soft);border-color:var(--brand)}
.gf-kpi[data-tone=copper] {border-top-color:var(--action)}
.gf-kpi[data-tone=copper]:hover {background:var(--action-soft);border-color:var(--action)}
.gf-kpi[data-tone=delay] {background:var(--action-soft);border-color:#d3ae94;border-top-color:var(--action)}
.gf-kpi .kpi-label {font-size:14px;font-weight:600;line-height:1.5}
.gf-kpi .kpi-value {display:block;align-self:center;font-size:36px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--olive-text);letter-spacing:-.015em}
.gf-kpi[data-tone=delay] .kpi-value,.gf-kpi[data-tone=copper] .kpi-value {color:var(--action-hover)}
.gf-kpi .kpi-note {font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}
.gf-summary {display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px}
.gf-panel {border:1.5px solid var(--line);border-radius:12px;background:#fff;padding:22px;min-width:0}
.gf-panel-header {display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin-bottom:18px}
.gf-panel-header h3 {margin:0;font-size:18px}
.gf-panel-header p {margin:5px 0 0;font-size:12px;color:var(--muted);line-height:1.6}
.gf-panel-header>.count-label {font-size:12px;color:var(--muted);white-space:nowrap;flex:0 0 auto}
.gf-state-strip {display:flex;gap:3px;border-radius:6px;overflow:hidden;height:16px;background:var(--grey-soft);margin:20px 0 18px}
.gf-state-strip>i {display:block;height:100%;min-width:0}
.gf-tone-ok {background:var(--brand)}
.gf-tone-warn {background:#c69b77}
.gf-tone-delay {background:var(--danger)}
.gf-tone-pool {background:var(--action)}
.gf-state-legend {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gf-state-button {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0;min-height:48px;font-size:13px;font-weight:500;background:#fff;flex-wrap:nowrap;text-align:left}
.gf-state-button>span:first-child {display:flex;align-items:center;gap:7px;min-width:0}
.gf-state-button .count-badge {min-width:36px;min-height:29px;padding:3px 6px}
.gf-color-key {display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:2px}
.gf-state-button[data-gf-tone=delay] {color:var(--danger)}
.gf-task-split {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gf-task-split .gf-state-button {font-size:13px}
.gf-mini-footer {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.gf-inline-stat {display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);min-width:0}
.gf-inline-stat button {border:0;background:none;padding:0;min-height:30px;text-align:left;justify-content:flex-start;color:var(--muted);font-size:12px;font-weight:400}
.gf-inline-stat button:hover {text-decoration:underline;color:var(--action)}
.gf-muted-note {font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}
.gf-panel .gf-muted-note {margin-top:16px}
.gf-room-section {margin-bottom:28px;min-width:0}
.gf-section-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:0 0 16px}
.gf-section-heading h3 {margin:0;font-size:20px}
.gf-section-heading p {margin:5px 0 0;font-size:13px;color:var(--muted)}
.gf-volume-key {display:flex;gap:14px;font-size:12px;color:var(--muted);flex-wrap:wrap;align-items:center}
.gf-volume-key span {display:inline-flex;align-items:center;gap:6px}
.gf-room-table {min-width:865px;table-layout:fixed}
.gf-room-table col:nth-child(1) {width:19%}
.gf-room-table col:nth-child(2) {width:25%}
.gf-room-table col:nth-child(3) {width:10%}
.gf-room-table col:nth-child(4) {width:10%}
.gf-room-table col:nth-child(5) {width:10%}
.gf-room-table col:nth-child(6) {width:14%}
.gf-room-table col:nth-child(7) {width:12%}
.gf-room-table th,.gf-room-table td {padding:16px 14px;vertical-align:middle}
.gf-room-table th.gf-number,.gf-room-table td.gf-number {text-align:center}
.gf-room-table th {font-size:12px;font-weight:600;line-height:1.5}
.gf-room-table .gf-room-link {display:block;border:0;background:none;padding:0;min-height:0;text-align:left;font-size:14px;font-weight:600;line-height:1.5;color:var(--text)}
.gf-room-table .gf-room-link:hover {color:var(--action);text-decoration:underline}
.gf-room-table .gf-room-meta {font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px}
.gf-room-table tr.is-selected {background:#fcf5ef}
.gf-room-table tr.is-selected td:first-child {box-shadow:inset 3px 0 var(--action)}
.gf-room-table tr:hover {background:#fcf9f6}
.gf-room-table .count-badge {width:44px;min-width:44px;padding-inline:4px}
.gf-room-table .count-badge[data-tone=delay] {background:var(--danger-soft);color:var(--danger);border-color:#ddbbad}
.gf-volume {display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;gap:12px}
.gf-volume-track {background:var(--grey-soft);height:10px;border-radius:4px;overflow:hidden;display:flex;align-items:stretch}
.gf-volume-track>i {display:block;min-width:0}
.gf-volume-total {display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;text-align:right}
.gf-volume-total small {font-size:11px;color:var(--muted);font-weight:400}
.gf-details {min-width:0;margin-top:0}
.gf-details-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff}
.gf-filter-pills {display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.gf-filter-pills button {min-height:36px;padding:5px 10px;font-size:12px;gap:8px;border-color:var(--line);font-weight:500}
.gf-filter-pills button.active {border-color:var(--action);background:var(--action-soft);color:var(--action-hover)}
.gf-filter-pills button .count-badge {min-width:28px;min-height:23px;font-size:11px;padding:2px 5px;border:0}
.gf-details .section-heading {padding:18px 20px;margin:0;background:var(--grey-soft);border-bottom:1px solid var(--line);align-items:center}
.gf-details .section-heading h3 {font-size:18px}
.gf-details-table {min-width:785px;table-layout:fixed}
.gf-details-table th,.gf-details-table td {padding:16px 20px;vertical-align:top;overflow-wrap:break-word}
.gf-details-table .detail-primary {display:block;color:var(--text);font-size:14px;font-weight:600;line-height:1.55;text-decoration:none}
.gf-details-table .detail-primary:hover {text-decoration:underline;color:var(--action)}
.gf-details-table .detail-secondary {display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.55}
.gf-details-table .detail-date {display:block;font-size:13px;font-variant-numeric:tabular-nums;margin-top:8px;color:var(--muted)}
.gf-details-table .detail-reason {font-size:13px;line-height:1.6;color:var(--muted);margin-top:6px}
.gf-details-table .status-badge {min-width:72px}
.gf-details-table td.gf-number {text-align:center}
.gf-status-note {margin-top:20px}
.gf-recurrence {margin-top:26px}
.gf-recurrence>summary {font-size:14px;font-weight:600;cursor:pointer;padding:14px 0;color:var(--olive-text)}
.gf-recurrence>summary::after {content:'+';float:right}
.gf-recurrence[open]>summary::after {content:'\2212'}
@container (max-width:1020px) {
 .gf-kpi {padding:18px;min-height:158px}
 .gf-room-table {min-width:840px}
}
@container (max-width:860px) {
 .gf-summary {grid-template-columns:1fr;gap:20px}
}
@container (max-width:720px) {
 .gf-kpis {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .gf-kpi {min-height:145px;padding:16px;gap:10px}
 .gf-scope {justify-content:flex-start;width:100%}
 .gf-scope .gf-date {text-align:left}
 .gf-scope select {flex:1;max-width:290px}
 .gf-details .section-heading {align-items:flex-start;gap:16px;flex-direction:column}
 .gf-panel {padding:20px}
 .gf-panel-header {flex-wrap:wrap}
 .gf-room-table {min-width:840px}
}
@container (max-width:410px) {
 .gf-state-legend {grid-template-columns:1fr;gap:8px}
 .gf-task-split {grid-template-columns:1fr;gap:8px}
 .gf-mini-footer {grid-template-columns:1fr;gap:12px}
 .gf-kpi {grid-template-rows:42px 42px auto}
 .gf-kpi .kpi-label {font-size:13px}
 .gf-kpi .kpi-value {font-size:32px}
 .gf-panel {padding:16px}
}
@media (max-width:640px) {
 .modal-bg.is-contact-drawer {padding:8px}
 .modal.contact-drawer {padding:24px 18px;border-radius:12px}
 .contact-drawer h2 {font-size:22px}
 .contact-drawer .row2 {bottom:-24px;margin:24px -18px -24px;padding:16px 18px}
 .contact-fields,.person-panel .contact-fields {grid-template-columns:1fr;gap:5px}
 .contact-fields dt {margin-top:8px;padding:0}
 .contact-fields dd {padding-top:0!important}
 .contact-person {margin-bottom:10px}
}

/* Kundenverwaltung nach dem Vorläufer (ADR 0005), in den Bausteinen von Design 06:
   Panels, section-heading, metric-grid, customer-grid, badge, tabs. Nur Oliv und Kupfer. */
.kv-ic {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:var(--accent-soft);border:1px solid var(--line);color:var(--olive-text)}
.kv-row {display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.kv-row:last-child {border-bottom:0}
.kv-row .grow {flex:1;min-width:0}
.kv-row .muted {margin-top:2px;line-height:1.5}
.kv-right {margin-left:auto;font-size:14px;font-weight:600;color:var(--olive-text);white-space:nowrap;font-variant-numeric:tabular-nums}
.kv-cell {display:flex;align-items:center;gap:12px}
.kv-type {font-size:12px;color:var(--muted);white-space:nowrap}
.kv-short {font-size:18px;font-weight:400;color:var(--muted)}
.kv-warn {color:var(--warn);font-weight:600}
.kv-panel-actions {display:flex;gap:8px;flex-wrap:wrap}
.kv-sub {font-size:14px;margin:20px 0 4px;color:var(--olive-text)}
.kv-top {margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.kv-alert {display:flex;gap:12px;align-items:flex-start;border:1px solid var(--action-line);border-left:4px solid var(--action);border-radius:8px;background:var(--warn-soft);color:var(--warn);padding:16px 18px;margin:0 0 20px;font-size:14px;line-height:1.6}
.kv-todo {border:1px solid var(--action-line);border-radius:10px;background:var(--warn-soft);color:var(--warn);margin:0 0 16px;font-size:14px}
.kv-todo summary {display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;list-style:none}
.kv-todo summary .muted {color:var(--warn);opacity:.8}
.kv-todo summary::after {content:'+';margin-left:auto;font-size:19px}
.kv-todo[open] summary::after {content:'\2212'}
.kv-todo ul {margin:0 16px 12px 40px;padding:0;line-height:1.8}
.kv-todo > button {margin:0 16px 14px 40px}
.kv-quick {border:1.5px solid var(--line);border-radius:12px;background:#fff;margin:0 0 24px;overflow:hidden}
.kv-quick-head {display:flex;width:100%;justify-content:flex-start;gap:16px;border:0;border-radius:0;min-height:56px;padding:12px 20px;background:var(--accent-soft);font-weight:400;text-align:left}
.kv-quick-head:hover {background:var(--accent-soft);border:0}
.kv-quick-label {display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--olive-text);white-space:nowrap}
.kv-quick-text {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kv-quick-text .muted {margin-left:8px}
.kv-quick-body {padding:16px 20px}
.kv-quick-body input {margin-bottom:8px}
.kv-context {border:1.5px solid var(--line);border-top:3px solid var(--action);border-radius:12px;background:#fff;padding:20px 24px;margin:0 0 24px}
.kv-context .page-kicker {margin-bottom:6px}
.kv-context-title {font-size:17px;font-weight:600;line-height:1.6}
.kv-context p {margin:6px 0 12px;color:var(--muted)}
.kv-orgchart {overflow-x:auto}
/* Organigramm wie im Vorläufer: Wurzel mittig, Linien, Karten in Reihen zu je 3, Töchter eine Ebene tiefer */
.kv-orgchart {overflow-x:auto;margin:0 0 28px;padding:28px 24px 36px;border-radius:16px;background:var(--grey-soft)}
.kv-orgchart .oc-title {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 24px;padding-left:14px;border-left:4px solid var(--brand)}
.kv-orgchart .oc-title h3 {margin:0;font-size:24px}
.kv-orgchart .oc-title span {color:var(--muted);font-size:13px}
.oc {display:flex;flex-direction:column;align-items:center;min-width:max-content}
.oc-root {display:flex;flex-direction:column;align-items:center;min-width:300px;padding:22px 40px 16px;border-radius:14px;background:var(--brand);color:#fff;box-shadow:0 10px 24px rgba(47,48,48,.18)}
.oc-root b {font-size:20px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.oc-root span {margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.35);font-size:13px;color:#eceee4;align-self:stretch;text-align:center}
.oc-stem {width:0;height:28px;border-left:1px solid #a9ab9f}
.oc-stem.dashed {border-left-style:dashed}
.oc-tier {padding:4px 12px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;color:var(--muted)}
.oc-row {display:flex;justify-content:center;align-items:stretch;gap:28px}
.oc-col {position:relative;display:flex;flex-direction:column;width:320px;padding-top:28px}
.oc-col::before {content:'';position:absolute;top:0;left:50%;height:28px;border-left:1px solid #a9ab9f}
.oc-col::after {content:'';position:absolute;top:0;left:-14px;right:-14px;border-top:1px solid #a9ab9f}
.oc-col:first-child::after {left:50%}
.oc-col:last-child::after {right:50%}
.oc-col:only-child::after {display:none}
.oc-card {flex:1;background:#fff;border-radius:16px;padding:22px 22px 16px;box-shadow:0 2px 4px rgba(47,48,48,.04),0 8px 22px rgba(47,48,48,.07);text-align:left}
.oc-head {display:flex;gap:16px;align-items:center}
.oc-mark {display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 52px;border-radius:50%;background:var(--brand);color:#fff}
.oc-mark .icon {width:24px;height:24px}
.oc-head a {color:var(--text);font-size:17px;font-weight:700;line-height:1.35;text-decoration:none}
.oc-head a:hover {color:var(--action);text-decoration:underline}
.oc-sub-line {margin-top:3px;font-size:13px;color:var(--muted)}
.oc-card.is-lead .oc-mark {background:var(--action)}
.oc-sect {margin:18px 0 8px;padding-top:16px;border-top:1px solid #ecede6;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--olive-text)}
.oc-p {display:flex;align-items:center;gap:12px;padding:6px 0;font-size:14px}
.oc-p .oc-pi {display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--accent-soft);color:var(--olive-text)}
.oc-p a {color:var(--text);text-decoration:none}
.oc-p a:hover {color:var(--action);text-decoration:underline}
.oc-p .r {margin-left:auto;font-weight:600;color:var(--olive-text);font-variant-numeric:tabular-nums}
.oc-p .r.verm {color:var(--warn);border-bottom:1px dashed var(--warn)}
.oc-warn {margin-top:6px;font-size:13px;font-weight:600;color:var(--warn)}
.oc-loc {display:flex;flex-direction:column;gap:4px;margin-top:14px;padding-top:14px;border-top:1px solid #ecede6}
.oc-loc span {display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.oc-loc svg {width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8}
.oc-empty {color:var(--muted)}
.kv-tabs {margin-top:8px;overflow-y:hidden;gap:20px}
.badge.verm {background:var(--warn-soft);color:var(--warn);outline:1px dashed var(--warn);outline-offset:-1px}
.badge.xs {padding:1px 6px;font-size:11px}
tr.ended td,tr.ended a {color:var(--muted)}
.tl {display:flex;overflow-x:auto;gap:4px;padding-bottom:4px}
.tl-item {position:relative;flex:0 0 132px;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:0;padding:10px 6px;border:0;border-radius:10px;background:none;font-weight:400;text-align:center}
.tl-item:hover {background:var(--grey-soft);border:0}
.tl-item.is-current {background:var(--action-soft)}
.tl-item::before {content:'';position:absolute;left:0;right:0;top:57px;border-top:2px solid var(--line)}
.tl-date {font-size:13px;font-weight:600;line-height:1.3;display:flex;flex-direction:column}
.tl-date small {font-size:11px;font-weight:400;color:var(--muted)}
.tl-dot {position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin:4px 0;border-radius:50%;border:2px solid var(--brand);background:#fff}
.tl-dot.fill {background:var(--brand)}
.tl-dot.future {border-color:var(--action);border-style:dashed}
.tl-dot.plus {width:22px;height:22px;border-style:dashed;border-color:var(--action);color:var(--action)}
.tl-type {font-size:12px;color:var(--muted)}
.tl-title {font-size:13px;line-height:1.4}
.kv-note {margin-top:16px;padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:var(--grey-soft)}
.kv-note h4 {margin:0;font-size:15px}
.kv-note p {margin:0;white-space:pre-wrap;line-height:1.6}
.kv-note .section-heading {margin-bottom:8px}
.kv-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kv-form-grid .span2 {grid-column:1 / -1}
.kv-more {border:1.5px solid var(--line);border-radius:12px;background:#fff;margin:0 0 16px}
.kv-more summary {display:flex;align-items:baseline;gap:12px;padding:18px 24px;cursor:pointer;list-style:none;font-weight:600;font-size:16px}
.kv-more summary .muted {font-weight:400}
.kv-more summary::after {content:'+';margin-left:auto;font-size:19px;font-weight:500;color:var(--olive-text)}
.kv-more[open] summary::after {content:'\2212'}
.kv-more-body {padding:0 24px 20px}
.kv-search {display:flex;flex-direction:column;gap:8px}
.kv-search input {max-width:640px}
.kv-assign p {margin:0 0 12px}
.kv-assign-row {display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.kv-assign-row input {max-width:320px}
.sentence {margin-top:16px;padding:12px 16px;border-radius:8px;background:var(--accent-soft);font-size:14px;line-height:1.6}
.flt {margin-bottom:6px}
.chklist {max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.chklist label {display:flex;align-items:center;gap:8px;margin:6px 0;color:var(--text);font-size:14px}
.chklist input {width:auto}
@media (max-width:900px) {.kv-form-grid {grid-template-columns:1fr} .oc-roots {grid-template-columns:1fr}}
/* Kalender im Outlook-Stil (PL, 2026-10-12): Raster, Farben und Popover wie Outlook, Rahmen und Bedienleiste im CRM-Stil */
.cal-workspace {--ol-blue:#0f6cbd;--ol-blue-soft:#deecf9;--ol-line:#e1dfdd;--ol-line-soft:#f0efee;--ol-off:#f5f5f5;--ol-text:#242424}
.cal-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--line)}
.cal-toolbar button {min-height:36px;padding:6px 12px}
.cal-toolbar .cal-arrow {width:36px;padding:0;font-size:20px;line-height:1}
.cal-tb-sep {width:1px;height:28px;background:var(--line);margin:0 4px}
.cal-title {margin:0 8px;font-size:20px;font-weight:600;line-height:1.3;white-space:nowrap}
.cal-loading {font-size:13px;color:var(--muted)}
.cal-modes {display:inline-flex;margin-left:auto;border:1px solid var(--control-line);border-radius:8px;overflow:hidden}
.cal-modes button {border:0;border-radius:0;min-height:34px;font-weight:500}
.cal-modes button+button {border-left:1px solid var(--line)}
.cal-modes button.is-on {background:var(--ol-blue-soft);color:#0b4a85;font-weight:700}
.cal-panel-btn[aria-pressed=true] {background:var(--accent-soft);border-color:var(--brand)}
.cal-body {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}
.cal-body.with-panel {grid-template-columns:minmax(0,1fr) 260px}
.cal-main {min-width:0}
.cal-bar {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px 4px 12px;background:#cfe4f7;border:1px solid #b4d4f0;border-bottom:0;border-radius:8px 8px 0 0;font-size:13px;font-weight:600;color:#0b3a66}
.cal-bar-actions {display:flex;gap:4px}
.cal-bar button {min-height:28px;padding:2px 10px;font-size:12px;font-weight:600;border:0;background:transparent;color:#0b3a66}
.cal-bar button:hover {background:rgba(255,255,255,.55)}
.cal-week {--cal-cols:56px 1fr;border:1px solid var(--ol-line);border-radius:0 0 8px 8px;overflow:hidden;background:#fff;color:var(--ol-text);user-select:none}
.cal-head,.cal-allday-row {display:grid;overflow-y:hidden;scrollbar-gutter:stable;border-bottom:1px solid var(--ol-line)}
.cal-head {grid-template-columns:var(--cal-cols)}
.cal-allday-row {grid-template-columns:56px minmax(0,1fr)}
.cal-gutter {border-right:1px solid var(--ol-line)}
.cal-tz {display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;font-size:11px;color:#616161}
.cal-dayhead {border-left:1px solid var(--ol-line)}
.cal-dayhead:first-of-type {border-left:0}
.cal-dayhead button {display:flex;flex-direction:column;align-items:flex-start;gap:0;width:100%;min-height:0;padding:6px 10px 8px;border:0;border-top:3px solid transparent;border-radius:0;background:none;font-weight:400;color:inherit}
.cal-dayhead button:hover {background:var(--ol-line-soft);border-color:transparent}
.cal-dayhead.is-today button {border-top-color:var(--ol-blue);background:#f3f8fd;font-weight:700}
.cal-dayhead.is-weekend button {color:#616161}
.cal-dow {font-size:13px}
.cal-dnum {font-size:22px;line-height:1.25}
.cal-allday {display:grid;min-height:30px;padding:2px 0;grid-auto-rows:26px;row-gap:2px}
.cal-allday-cell {border-left:1px solid var(--ol-line);min-height:26px}
.cal-allday-cell:first-child {border-left:0}
.cal-allday-cell.is-weekend {background:var(--ol-off)}
.cal-scroll {height:clamp(420px,calc(100dvh - 360px),940px);overflow-y:auto;scrollbar-gutter:stable;position:relative}
.cal-grid {display:grid;grid-template-columns:var(--cal-cols);position:relative}
.cal-times {position:relative;border-right:1px solid var(--ol-line)}
.cal-times span {position:absolute;right:8px;transform:translateY(-50%);font-size:11px;color:#616161;background:#fff;padding:0 2px}
.cal-col {position:relative;border-left:1px solid var(--ol-line);background:var(--ol-off)}
.cal-times+.cal-col {border-left:0}
.cal-col::after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background-image:linear-gradient(var(--ol-line) 1px,transparent 1px),linear-gradient(var(--ol-line-soft) 1px,transparent 1px);background-size:100% 48px,100% 24px}
.cal-work {position:absolute;left:0;right:0;background:#fff}
.cal-col.is-today {background:#eaf1f9}
.cal-col.is-today .cal-work {background:#f7fafd}
.cal-now {position:absolute;left:-1px;right:0;height:2px;background:var(--ol-text);z-index:4;pointer-events:none}
.cal-now::before {content:"";position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--ol-text)}
.cal-sel {position:absolute;left:0;right:0;z-index:2;background:rgba(15,108,189,.2);border:1px solid var(--ol-blue);pointer-events:none}
.cal-drop {position:absolute;left:2px;right:4px;z-index:5;min-height:22px;padding:2px 6px;border:2px dashed var(--brand);border-radius:4px;background:rgba(113,115,87,.16);font-size:12px;font-weight:600;color:var(--olive-text);pointer-events:none;overflow:hidden}
.cal-ev {--ev-bg:#cfe4f7;--ev-bar:var(--ol-blue);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;min-height:0;padding:2px 6px 2px 8px;border:0;border-left:4px solid var(--ev-bar);border-radius:4px;background:var(--ev-bg);color:var(--ol-text);font-size:12px;font-weight:400;line-height:1.3;text-align:left;overflow:hidden;cursor:pointer;transition:none}
.cal-ev:hover {background:var(--ev-bg);border-color:var(--ev-bar);filter:brightness(.96)}
.cal-ev:focus-visible {outline:2px solid var(--ol-text);outline-offset:1px}
.cal-col>.cal-ev {position:absolute;z-index:2;box-shadow:0 0 0 1px #fff}
.cal-ev .cal-ev-title {display:flex;align-items:center;gap:4px;min-width:0;width:100%;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-ev .cal-ev-sub {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-ev.is-short {flex-direction:row;align-items:center}
.cal-ev.is-short .cal-ev-title {width:auto;flex:0 1 auto}
.cal-ev .cal-ic {width:14px;height:14px;flex:0 0 14px}
.cal-ev.show-tentative,.cal-ev.is-open {--ev-bg:repeating-linear-gradient(135deg,#e3eefa 0 5px,#fff 5px 9px);border-left-style:dashed}
.cal-ev.show-free {--ev-bg:#fff;box-shadow:inset 0 0 0 1px var(--ev-bar)}
.cal-ev.show-oof {--ev-bg:#e9e0f5;--ev-bar:#8764b8}
.cal-ev.show-workingElsewhere {--ev-bg:#fff;border-left-style:dotted;box-shadow:inset 0 0 0 1px var(--ev-bar)}
.cal-ev.is-crm {--ev-bar:var(--brand)}
.cal-ev.is-crm.show-busy {--ev-bg:#e9ebdd}
.cal-ev.is-cancelled .cal-ev-title {text-decoration:line-through;opacity:.75}
.cal-ev.is-active,.cal-ev.is-focus {box-shadow:0 0 0 2px var(--ol-text);z-index:3}
.cal-ev.is-dragging {opacity:.88;z-index:6;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:grabbing}
.cal-ev.is-dragging .cal-ev-title[data-time]::before {content:attr(data-time);font-weight:400;margin-right:4px}
.cal-ev-resize {position:absolute;left:0;right:0;bottom:0;height:7px;cursor:ns-resize}
.cal-ev-allday {position:relative;z-index:2;flex-direction:row;align-items:center;gap:4px;height:24px;margin:0 3px}
.cal-month {border:1px solid var(--ol-line);border-radius:0 0 8px 8px;overflow:hidden;background:#fff;color:var(--ol-text)}
.cal-month-head,.cal-month-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-month-dow {padding:6px 8px;font-size:13px;border-bottom:1px solid var(--ol-line)}
.cal-month-cell {display:flex;flex-direction:column;gap:2px;min-width:0;padding:4px;border-left:1px solid var(--ol-line);border-bottom:1px solid var(--ol-line);cursor:default}
.cal-month-cell:nth-child(7n+1) {border-left:0}
.cal-month-cell.is-weekend,.cal-month-cell.is-other {background:var(--ol-off)}
.cal-month-cell.is-other .cal-month-num {color:#8a8886}
.cal-month-num {align-self:flex-start;min-height:0;min-width:28px;padding:2px 6px;border:0;border-radius:14px;background:none;font-size:13px;font-weight:600}
.cal-month-cell.is-today .cal-month-num {background:var(--ol-blue);color:#fff}
.cal-ev-month {flex-direction:row;align-items:center;gap:4px;width:100%;height:22px;padding:0 6px}
.cal-ev-month .cal-ev-time {font-weight:400;flex:0 0 auto}
.cal-more {min-height:0;padding:0 6px;border:0;background:none;font-size:12px;font-weight:600;color:var(--ol-blue);justify-content:flex-start}
.cal-side {display:flex;flex-direction:column;gap:20px;min-width:0}
.cal-mini {border:1px solid var(--line);border-radius:8px;padding:10px}
.cal-mini-head {display:flex;align-items:center;gap:4px;margin-bottom:6px}
.cal-mini-head b {flex:1;font-size:14px}
.cal-mini-head button {min-height:28px;width:28px;padding:0;border:0;font-size:18px}
.cal-mini-grid {display:grid;grid-template-columns:repeat(7,1fr);gap:1px;text-align:center}
.cal-mini-dow {font-size:11px;color:var(--muted);padding:2px 0}
.cal-mini-grid button {min-height:30px;padding:0;border:0;border-radius:50%;background:none;font-size:12px;font-weight:400}
.cal-mini-grid button.is-range {background:var(--ol-blue-soft);border-radius:0}
.cal-mini-grid button.is-other {color:#8a8886}
.cal-mini-grid button.is-today {background:var(--ol-blue);color:#fff;border-radius:50%;font-weight:700}
.cal-side-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;font-size:15px}
.cal-side-head .n {font-size:12px;padding:1px 8px;border-radius:6px;background:var(--accent-soft);color:var(--olive-text);font-weight:600}
.cal-taskpanel>p {font-size:13px;margin:0 0 10px}
.cal-task {display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 10px;margin-bottom:8px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:6px;background:#fff;cursor:grab}
.cal-task:hover {border-color:var(--brand)}
.cal-task.is-planned {border-left-color:var(--ol-blue);background:#fafcfe}
.cal-task-title {font-size:13px;font-weight:600;line-height:1.35}
.cal-task-meta {font-size:12px;color:var(--muted)}
.cal-late {color:var(--danger);font-weight:600}
.cal-chip {gap:4px;flex:0 0 auto;white-space:nowrap;min-height:0;padding:3px 8px;border:0;background:#deecf9;color:#0b3a66;font-size:12px;font-weight:600;cursor:pointer}
.cal-chip:hover {background:#cfe4f7;border:0}
.cal-chip .icon {width:13px;height:13px}
.card.compact .cal-chip {padding:3px 5px}
.card.compact .cal-chip-text {display:none}
.cal-ic {width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.cal-ic-slot {display:inline-flex;flex:0 0 18px}
.cal-ic.cal-ic-fill {stroke:none}
.cal-pop {position:fixed;z-index:70;width:340px;max-width:calc(100vw - 16px);padding:16px 18px;background:#fff;border-radius:8px;box-shadow:0 10px 36px rgba(0,0,0,.24),0 0 0 1px rgba(0,0,0,.06);color:var(--ol-text);font-size:14px}
.cal-peek {width:360px;border-top:6px solid #0f6cbd}
.cal-peek.is-crm {border-top-color:var(--brand)}
.cal-peek.show-oof {border-top-color:#8764b8}
.cal-pop h3 {margin:0 32px 10px 0;font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.cal-pop-close {position:absolute;top:8px;right:8px;min-height:32px;width:32px;padding:0;border:0;background:none}
.cal-pop-line {display:flex;align-items:center;gap:10px;margin:8px 0;line-height:1.4}
.cal-pop .cal-pop-line input[name=location] {border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:34px;padding:4px 0}
.cal-pop .cal-pop-line input[name=location]:focus {outline:0;border-bottom:2px solid #0f6cbd}
.cal-quick input[name=subject] {width:100%;min-height:40px;margin-bottom:4px;padding:4px 0;border:0;border-bottom:2px solid #0f6cbd;border-radius:0;font-size:18px}
.cal-quick input[name=subject]:focus {outline:0}
.cal-join {font-weight:600;color:#4f52b2}
.cal-people-list {list-style:none;margin:0 0 8px 28px;padding:0;max-height:150px;overflow:auto;font-size:13px}
.cal-people-list li {display:flex;align-items:center;gap:8px;padding:2px 0}
.cal-resp {width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#c8c6c4}
.cal-resp.r-accepted,.cal-resp.r-organizer {background:#13a10e}
.cal-resp.r-tentativelyAccepted {background:#8764b8}
.cal-resp.r-declined {background:#c50f1f}
.cal-pop-crm {display:flex;align-items:flex-start;gap:10px;margin:10px 0;padding:8px 10px;border-radius:6px;background:var(--accent-soft);color:var(--olive-text);font-size:13px}
.cal-linkbtn {display:inline;min-height:0;padding:0;border:0;background:none;font:inherit;font-weight:600;color:inherit;text-decoration:underline;text-align:left}
.cal-linkbtn:hover {background:none}
.cal-pop-preview {margin:8px 0 0;max-height:96px;overflow:hidden;color:var(--muted);font-size:13px;white-space:pre-line}
.cal-respond {display:flex;gap:6px;margin-top:12px}
.cal-respond button {flex:1;min-height:34px;padding:4px 8px;font-size:13px}
.cal-respond button.is-on {background:var(--ol-blue-soft);border-color:#0f6cbd;color:#0b3a66}
.cal-pop-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px}
.cal-pop-actions button {min-height:36px;padding:6px 14px}
.cal-pop-actions button.danger,.cal-form button.danger {background:var(--danger);border-color:var(--danger);color:#fff}
.cal-outlook-link {margin-right:auto;font-size:13px}
.cal-pop label,.cal-form label {display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:400}
.cal-switch {position:relative;cursor:pointer}
.cal-switch input {position:absolute;opacity:0;width:1px!important;height:1px}
.cal-switch-ui {position:relative;width:36px;height:20px;flex:0 0 36px;border-radius:10px;border:1px solid #616161;background:#fff;transition:background .12s}
.cal-switch-ui::after {content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#616161;transition:transform .12s}
.cal-switch input:checked+.cal-switch-ui {background:#0f6cbd;border-color:#0f6cbd}
.cal-switch input:checked+.cal-switch-ui::after {transform:translateX(16px);background:#fff}
.cal-switch input:focus-visible+.cal-switch-ui {outline:2px solid var(--action);outline-offset:2px}
.cal-switch input:disabled+.cal-switch-ui {opacity:.6}
.modal.cal-form-modal {width:760px}
.cal-form input.cal-form-title[name=subject] {min-height:48px;padding:6px 0;border:0;border-bottom:2px solid var(--line);border-radius:0;font-size:22px;font-weight:600}
.cal-form input.cal-form-title[name=subject]:focus {outline:0;border-bottom-color:#0f6cbd}
.cal-form-row {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}
.cal-form-row>.cal-ic,.cal-form-row>.icon {color:var(--muted)}
.cal-form-when input {width:auto!important;flex:0 1 auto}
.cal-form-row>input[name=location],.cal-form-row>select[name=customer] {flex:1 1 260px;width:auto}
.cal-form-opts select {width:auto}
.cal-form-note {align-items:flex-start}
.cal-form-note textarea {flex:1;width:auto}
.cal-people {display:flex;flex:1 1 300px;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;padding:4px 8px;border:1px solid var(--control-line);border-radius:8px;background:#fff}
.cal-people input[data-cal-people-input] {flex:1;min-width:200px;width:auto;min-height:34px;padding:4px;border:0}
.cal-people input[data-cal-people-input]:focus {outline:0}
.cal-people:focus-within {outline:2px solid var(--action);outline-offset:1px}
.cal-pchip {display:inline-flex;align-items:center;gap:2px;padding:2px 2px 2px 10px;border-radius:14px;background:#deecf9;color:#0b3a66;font-size:13px}
.cal-pchip button {min-height:24px;width:24px;padding:0;border:0;border-radius:50%;background:none}
.cal-form-warn {margin:0 0 12px;padding:8px 12px;border-radius:6px;background:var(--warn-soft);color:var(--warn);font-size:13px}
.cal-ctx {position:fixed;z-index:200;min-width:250px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.18)}
.cal-ctx button {display:flex;justify-content:flex-start;gap:10px;width:100%;min-height:38px;padding:8px 12px;border:0;border-radius:6px;background:none;font-weight:400;text-align:left}
.cal-ctx button:hover,.cal-ctx button:focus {background:var(--accent-soft);outline:0}
@media (max-width:1100px) {.cal-body.with-panel {grid-template-columns:minmax(0,1fr)}.cal-side {display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:16px}}
@media (max-width:700px) {.cal-toolbar {padding:12px}.cal-modes {margin-left:0;width:100%}.cal-modes button {flex:1;padding:6px 4px}.cal-title {font-size:17px;white-space:normal}.cal-body {padding:12px 0}.cal-side {grid-template-columns:minmax(0,1fr)}.cal-month-grid {grid-template-rows:none!important;grid-auto-rows:minmax(72px,auto)}.cal-ev-month .cal-ev-time {display:none}}

/* E-Mail aus Outlook (Add-in-Spike) */
.tl-dot.mail {border-color:var(--copper-bright)}
/* Person anlegen als Seite: Unternehmen suchen, Tags und Status per Klick */
.pf .panel label {margin-top:10px}
.pf textarea {width:100%}
.pf-chips {display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}
.pf-chip {border:1.5px solid var(--line);border-radius:999px;padding:5px 12px;background:#fff;color:var(--text);font-size:13px;min-height:0;cursor:pointer}
.pf-chip:hover {border-color:var(--brand)}
.pf-chip.on {background:var(--brand);border-color:var(--brand);color:#fff}
.pf-chip.pf-nl.on {background:var(--action);border-color:var(--action)}
.pf-newtag {display:flex;gap:8px;align-items:center;margin-top:6px}
.pf-newtag input {max-width:240px}
.pf-hits {display:flex;flex-direction:column;gap:4px;margin-top:6px}
.pf-hit {display:flex;align-items:center;gap:8px;text-align:left;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:#fff;min-height:0;cursor:pointer}
.pf-hit:hover {border-color:var(--brand);background:var(--grey-soft)}
.pf-picked {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding:9px 12px;border:1.5px solid var(--brand);border-radius:8px;background:var(--grey-soft)}
.pf-picked button {margin-left:auto}
.mail-head {display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:10px 0 8px;font-size:13px}
.mail-head>span {color:var(--muted)}
.mail-head>div {min-width:0;overflow-wrap:anywhere}
.mail-note {margin:8px 0;padding:8px 12px;border-left:3px solid var(--copper-bright);background:#fff;border-radius:0 8px 8px 0;font-size:13px}
.mail-task {display:flex;align-items:center;gap:6px;margin:6px 0;font-size:13px}
.mail-atts {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.mail-att {display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;text-decoration:none;font-size:13px}
.mail-att:hover {border-color:var(--brand)}
.mail-att span:first-of-type {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-body {white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;margin-top:10px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.5}
.mail-foot {display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;margin-top:10px;font-size:12px}
.mail-more {margin-top:8px}
.mail-more>summary {cursor:pointer;color:var(--olive-text);font-size:13px}
.task-mails {margin:14px 0 4px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.task-mails-head {display:flex;align-items:center;gap:8px;padding:9px 14px;background:var(--grey-soft);font-weight:600;font-size:13px}
.task-mail {display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:0;padding:9px 14px;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;text-align:left;font-weight:400}
.task-mail:hover {background:var(--grey-soft);border-top:1px solid var(--line)}
.task-mail b {font-weight:600}
/* Projekte (PL, 2026-10-13): Kacheln, Projektraum, Unterpunkte */
.pj-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:0 0 24px}
.pj-tile {display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px;border:1.5px solid var(--line);border-top:3px solid var(--action);border-radius:12px;background:#fff;color:var(--text);text-decoration:none;box-shadow:0 2px 3px rgba(47,48,48,.02);transition:border-color .15s,box-shadow .15s}
.pj-tile:hover,.pj-tile:focus-visible {border-color:var(--action-line);box-shadow:0 6px 18px rgba(47,48,48,.08)}
.pj-tile.done {border-top-color:var(--brand)}
.pj-tile h3 {margin:0;font-size:18px;line-height:1.35}
.pj-tile p {margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.pj-tile-top {display:flex;align-items:center;gap:8px;font-size:12px}
.pj-tile-top .chip {margin:0}
.pj-ic {display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;background:var(--action-soft);color:var(--action);margin-right:auto}
.pj-bar {height:6px;border-radius:3px;background:#e2e3da;overflow:hidden}
.pj-bar i {display:block;height:100%;background:var(--brand)}
.pj-bar.inline {display:inline-block;width:110px;vertical-align:middle;margin-right:8px}
.pj-meta,.pj-foot {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.pj-foot {margin-top:auto}
.pj-avatars {display:flex;padding-left:6px}
.pj-avatars .avatar {margin-left:-6px;background:#fff}
.pj-mine {font-weight:600;color:var(--action)}
.pj-members {display:flex;flex-wrap:wrap;gap:8px;margin-top:-8px}
.pj-member {display:inline-flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:13px}
.pj-x {min-height:26px;width:26px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:17px;line-height:1;justify-content:center}
.pj-x:hover {color:var(--danger);background:var(--danger-soft)}
.pj-add {display:grid;grid-template-columns:minmax(0,1fr) 150px 150px auto;gap:8px;margin:0 0 16px}
.pj-tasks {display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.pj-task {border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 14px}
.pj-task.done {background:var(--grey-soft)}
.pj-row {display:grid;grid-template-columns:auto minmax(0,1fr) auto 150px 130px 26px;align-items:center;gap:8px}
.pj-task .pj-head input.pj-title {font-weight:600;font-size:15px;border-color:transparent;background:transparent;min-height:36px}
.pj-task .pj-head input.pj-title:hover:not(:disabled),.pj-task .pj-head input.pj-title:focus {border-color:var(--control-line);background:#fff}
.pj-head .pj-title:disabled {color:var(--text)}
.pj-task.done .pj-title {text-decoration:line-through;color:var(--muted)}
.pj-slot {display:inline-flex;align-items:center;gap:6px;justify-content:flex-end}
.pj-slot .chip {margin:0}
.pj-subs {margin:6px 0 2px 26px;padding-left:12px;border-left:2px solid #ebece4}
.pj-sub {padding:3px 0;font-size:14px;border-top:1px solid #ebece4}
.pj-sub:first-child {border-top:0}
.pj-sub.done .pj-sub-text {text-decoration:line-through;color:var(--muted)}
.pj-row select,.pj-row input[type=date] {font-size:13px;min-height:32px;padding:4px 8px}
.pj-inroom {display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--action);background:var(--action-soft);border-radius:5px;padding:2px 8px;white-space:nowrap}
.pj-inroom .icon {width:13px;height:13px}
.pj-by {font-size:12px}
.pj-due.overdue {border-color:var(--danger);color:var(--danger)}
.pj-subs .checklist-add {margin:6px 0 4px}
.pj-pick {display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;margin:4px 0 8px}
.pj-pick-item {display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;font-weight:400;margin:0;cursor:pointer}
.pj-pick-item:has(input:checked) {border-color:var(--action);background:var(--action-soft)}
@media (max-width:760px){.pj-add{grid-template-columns:1fr 1fr}.pj-add input[name=title],.pj-add button{grid-column:1/-1}.pj-row{grid-template-columns:auto minmax(0,1fr) 26px}.pj-row>.pj-slot,.pj-row>input[type=date],.pj-row>select{grid-column:2;justify-content:flex-start}.pj-row>.pj-x,.pj-row>span:last-child{grid-row:1;grid-column:3}}
/* Mein Raum selbst gestalten (S-22): Bausteine im 12er-Raster, Breite je Baustein */
.dash-grid {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:start}
.dash-w {grid-column:span 12;min-width:0;border:1.5px solid var(--line);border-radius:12px;background:#fff;padding:16px 18px 18px}
.dash-w[data-size=s] {grid-column:span 4}
.dash-w[data-size=m] {grid-column:span 6}
.dash-w[data-size=l] {grid-column:span 8}
.dash-w[data-type=tiles] {background:transparent;border:0;padding:0}
.dash-w[data-type=tiles] .dash-w-head {display:none}
.dash-grid.editing .dash-w[data-type=tiles] {background:#fff;border:1.5px dashed var(--control-line);padding:16px 18px 18px}
.dash-grid.editing .dash-w[data-type=tiles] .dash-w-head {display:flex}
.dash-w-head {display:flex;align-items:center;gap:10px;margin:0 0 12px}
.dash-w-head h3 {display:flex;align-items:center;gap:8px;margin:0;font-size:16px;flex:1;min-width:0}
.dash-w-head h3 .icon {color:var(--brand);flex:none}
.dash-w-tools {display:flex;gap:6px}
.dash-w-tools button {min-height:32px;min-width:32px;padding:4px 8px;font-size:14px}
.dash-w-tools .dash-del:hover {border-color:var(--action);color:var(--action-hover);background:var(--action-soft)}
.dash-grip {cursor:grab;color:var(--muted);font-size:18px;line-height:1;user-select:none}
.dash-grid.editing .dash-w {border:1.5px dashed var(--control-line);cursor:grab}
.dash-grid.editing .dash-w-body {pointer-events:none;opacity:.75;max-height:340px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 75%,transparent);mask-image:linear-gradient(#000 75%,transparent)}
.dash-w.dash-over {outline:3px solid var(--action);outline-offset:3px}
.dash-tiles {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.dash-tile.metric-card {min-height:0;gap:6px;padding:16px}
.dash-tile .metric-value {font-size:30px;line-height:1.1}
.dash-empty {padding:18px;border:1px dashed #a8ad97;border-radius:8px;background:var(--grey-soft);color:var(--muted);font-size:14px}
.dash-board {padding-bottom:6px}
.dash-board .col {min-width:200px}
.col h4 .col-min-btn {margin-left:auto;min-height:26px;min-width:26px;padding:0 6px;font-size:16px;line-height:1;border:1px solid var(--line);background:#fff;color:var(--muted)}
.col h4 .col-min-btn:hover {color:var(--action-hover);border-color:var(--action)}
.col.col-min {flex:0 0 56px;min-width:56px;max-width:56px;padding:0}
.col.col-min>button {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:100%;min-height:220px;padding:14px 0;border:0;background:none;color:var(--text);font-weight:600}
.col.col-min>button:hover {background:var(--action-soft)}
.col-min-label {writing-mode:vertical-rl;transform:rotate(180deg);font-size:14px;white-space:nowrap}
.col-min-n {font-size:13px;padding:2px 7px;border-radius:10px;background:#fff;border:1px solid var(--line);font-variant-numeric:tabular-nums}
.col.col-min.over {outline:3px solid var(--action)}
.dash-rows {display:flex;flex-direction:column}
.dash-row {display:flex;align-items:center;gap:12px;padding:10px 2px;border-top:1px solid var(--line)}
.dash-row-main {flex:1;min-width:0}
.dash-row .badge {flex:none}
.dash-row:first-child {border-top:0}
.dash-row .muted {font-size:12px;margin-top:2px}
.dash-row-title {padding:0;min-height:0;border:0;background:none;text-align:left;font-weight:500;font-size:14px;color:var(--text)}
.dash-row-title:hover {color:var(--action);background:none}
.dash-row.done .dash-row-title {text-decoration:line-through;color:var(--muted)}
.dash-foot {display:flex;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--line)}
.dash-more {padding-top:8px;font-size:12px}
.dash-note {width:100%;min-height:150px;resize:vertical;padding:12px;border:1px solid #e6d8a8;border-radius:8px;background:#fffbea;font:inherit;font-size:14px;line-height:1.5;box-sizing:border-box}
.dash-w[data-type=projects] .pj-grid {grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
/* Gestalten-Modus */
.dash-kit {border:1.5px solid var(--action-line);border-radius:12px;background:var(--action-soft);padding:18px 20px;margin:0 0 20px}
.dash-kit-head {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px}
.dash-kit-head h3 {margin:0 0 4px;font-size:18px}
.dash-kit-head p {margin:0;font-size:13px}
.dash-kit-row {display:flex;gap:12px;align-items:flex-start;padding-top:12px;margin-top:12px;border-top:1px solid var(--action-line)}
.dash-set-label {flex:0 0 150px;font-size:13px;font-weight:600;padding-top:8px}
.dash-presets,.dash-palette,.dash-chips {display:flex;flex-wrap:wrap;gap:8px;flex:1;min-width:0}
.dash-presets button {flex-direction:column;align-items:flex-start;gap:0;background:#fff;padding:8px 14px}
.dash-presets button span {font-size:12px;color:var(--muted);font-weight:400}
.dash-palette {display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.dash-palette button {display:flex;align-items:flex-start;gap:10px;justify-content:flex-start;text-align:left;background:#fff;padding:10px 12px;font-weight:400}
.dash-palette button>span:nth-child(2) {flex:1;min-width:0;display:flex;flex-direction:column}
.dash-palette button small {font-size:12px;color:var(--muted);line-height:1.4}
.dash-palette button .icon {color:var(--brand);flex:none;margin-top:2px}
.dash-plus {color:var(--action)}
.dash-plus .icon {color:var(--action)!important}
.dash-palette button:hover {border-color:var(--action)}
.dash-settings {border:1px solid var(--line);border-radius:8px;background:var(--grey-soft);padding:4px 12px 12px;margin:0 0 12px}
.dash-set-row {display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;padding-top:10px}
.dash-set-row .dash-set-label {flex:0 0 auto;padding-top:0}
.dash-opt {display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.dash-opt input,.dash-opt select {font-weight:400;min-height:34px}
.dash-seg {display:inline-flex;border:1px solid var(--control-line);border-radius:8px;overflow:hidden;background:#fff}
.dash-seg button {border:0;border-radius:0;min-height:30px;padding:3px 10px;font-size:12px;font-weight:500;background:#fff}
.dash-seg button+button {border-left:1px solid var(--line)}
.dash-seg button.active {background:var(--brand);color:#fff}
.dash-cols {display:flex;flex-wrap:wrap;gap:8px 16px}
.dash-colset {display:inline-flex;align-items:center;gap:8px;font-size:13px}
.dash-colset b {font-weight:600;min-width:84px}
.dash-chip {min-height:30px;padding:3px 10px;font-size:12px;font-weight:500;border-radius:15px;background:#fff}
.dash-chip.on {background:var(--brand);border-color:var(--brand);color:#fff}
.dash-chip .icon {width:14px;height:14px;margin-right:2px}
@media (max-width:960px) {.dash-w[data-size=s],.dash-w[data-size=m],.dash-w[data-size=l] {grid-column:span 12}.dash-kit-row {flex-direction:column}.dash-set-label {flex:none;padding-top:0}}
/* Memo-App (S-23): Handy-Ansicht mit einem Knopf */
.memo-stage {display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:32px;align-items:start}
.memo-phone {width:100%;max-width:360px;aspect-ratio:9/18.5;border:10px solid #2f3030;border-radius:40px;background:#fff;box-shadow:0 18px 40px rgba(47,48,48,.18);display:flex;flex-direction:column;overflow:hidden;justify-self:center}
.memo-status {display:flex;justify-content:space-between;padding:10px 22px 6px;font-size:12px;font-weight:600;color:var(--text)}
.memo-off {color:var(--action-hover)}
.memo-app,.memo-login {flex:1;display:flex;flex-direction:column;min-height:0}
.memo-who {text-align:center;font-size:13px;color:var(--muted);padding:8px 16px 0}
.memo-center {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px}
.memo-rec {width:150px;height:150px;border-radius:50%;border:0;background:var(--action);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(161,95,60,.35);padding:0}
.memo-rec:hover {background:var(--action-hover);color:#fff}
.memo-rec .icon {width:64px;height:64px}
.memo-rec.on {background:#b3261e;animation:memo-pulse 1.4s ease-in-out infinite}
.memo-stop {width:46px;height:46px;border-radius:8px;background:#fff}
@keyframes memo-pulse {0%,100% {box-shadow:0 0 0 0 rgba(179,38,30,.45)} 50% {box-shadow:0 0 0 22px rgba(179,38,30,0)}}
.memo-time {font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;min-height:36px}
.memo-sub {font-size:14px;color:var(--muted);text-align:center}
.memo-flash {display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--olive-text);background:var(--accent-soft);border-radius:8px;padding:8px 12px;text-align:center}
.memo-list {border-top:1px solid var(--line);padding:10px 16px 16px;font-size:12px}
.memo-list>b {display:block;font-size:12px;margin-bottom:4px}
.memo-item {display:flex;justify-content:space-between;gap:8px;padding:5px 0;color:var(--muted)}
.memo-item>span:last-child {display:flex;align-items:center;gap:4px;text-align:right}
.memo-item.wait {color:var(--action-hover);font-weight:600}
.memo-item .icon {width:14px;height:14px}
.memo-login {align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center}
.memo-login h3 {margin:0;font-size:24px}
.memo-login p {margin:0 0 18px;color:var(--muted)}
.memo-login small {color:var(--muted);font-size:12px}
.memo-logo {width:72px;height:72px;border-radius:18px;background:var(--action);color:#fff;display:flex;align-items:center;justify-content:center}
.memo-logo .icon {width:38px;height:38px}
.memo-side {display:flex;flex-direction:column;gap:20px;min-width:0}
.memo-side .panel h3 {margin:0 0 8px}
.memo-sim {display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.memo-q {display:flex;align-items:center;gap:6px;color:var(--action-hover);font-weight:600}
.memo-steps {margin:0 0 14px;padding-left:20px;line-height:1.6}
.memo-ctx {display:inline-flex;align-items:center;gap:4px}
.memo-ctx .icon {width:14px;height:14px;color:var(--action)}
.memo-player {margin:12px 0 16px}
.memo-player audio {width:100%}
.memo-fake {display:flex;align-items:center;gap:10px;padding:14px;border-radius:8px;background:var(--grey-soft);border:1px dashed var(--control-line);color:var(--muted)}
.memo-actions {flex-wrap:wrap;gap:8px}
@media (max-width:900px) {.memo-stage {grid-template-columns:1fr}}
/* Handy-App unter /memo (PL, 2026-10-15): nur der Aufnahmeknopf, ohne Navigation */
body.memo-only .app-header, body.memo-only #nav, body.memo-only #nav-shade {display:none !important}
body.memo-only {display:block;overflow:auto}
body.memo-only .layout {display:block}
body.memo-only #main {padding:0;margin:0;width:100%;max-width:none;height:100dvh;overflow:auto}
body.memo-only #main .memo-rec .icon {display:block}
.memo-app-full .memo-who select {max-width:100%}
.memo-app-full {min-height:100dvh;display:flex;flex-direction:column;background:#fff;padding-bottom:env(safe-area-inset-bottom)}
.memo-app-top {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 16px 6px;font-weight:600}
.memo-app-top .memo-app-brand {display:inline-flex;align-items:center;gap:6px}
.memo-app-top .memo-app-brand .icon {width:20px;height:20px;color:var(--action)}
.memo-app-top a {font-size:14px;font-weight:600}
.memo-app-full .memo-app {flex:1}
.memo-app-full .memo-who {font-size:15px;padding:4px 16px 0}
.memo-app-full .memo-rec {width:210px;height:210px;touch-action:manipulation}
.memo-app-full .memo-rec .icon {width:88px;height:88px}
.memo-app-full .memo-stop {width:64px;height:64px}
.memo-app-full .memo-time {font-size:34px}
.memo-app-full .memo-sub {font-size:16px}
.memo-app-full .memo-list {font-size:14px;padding:12px 16px 18px}
.memo-app-full .memo-list>b {font-size:14px}
.memo-app-note {margin:8px 16px 0;padding:10px 12px;border-radius:8px;background:var(--accent-soft);font-size:14px}
/* KI-Assistent (S-24): Knopf unten rechts, Seitenfenster mit Gespräch und anklickbaren Treffern */
.ai-fab {position:fixed;right:24px;bottom:24px;z-index:60;display:flex;align-items:center;gap:8px;padding:12px 18px;border:0;border-radius:28px;background:var(--brand-dark);color:#fff;font-weight:600;box-shadow:0 8px 22px rgba(47,48,48,.28)}
.ai-fab:hover {background:#000;color:#fff}
.ai-fab.hidden {display:none}
.ai-fab .icon {color:#e8c39f}
.ai-panel {position:fixed;top:0;right:0;bottom:0;z-index:60;width:min(440px,100vw);display:flex;flex-direction:column;background:#fff;border-left:1.5px solid var(--line);box-shadow:-12px 0 30px rgba(47,48,48,.14)}
.ai-panel[hidden] {display:none}
.ai-head {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--line)}
.ai-head>div {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ai-head b {display:flex;align-items:center;gap:6px;font-size:16px}
.ai-head b .icon {color:var(--action)}
.ai-head>span {display:flex;gap:6px}
.ai-mode {font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px;background:var(--grey-soft);border:1px solid var(--line);color:var(--muted)}
.ai-mode.on {background:var(--accent-soft);border-color:var(--brand);color:var(--olive-text)}
.ai-who {padding:8px 16px;font-size:12px;color:var(--muted);background:var(--grey-soft);border-bottom:1px solid var(--line)}
.ai-log {flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.ai-hello p {margin:0 0 10px;color:var(--muted)}
.ai-ex {display:block;width:100%;text-align:left;justify-content:flex-start;margin:0 0 8px;font-weight:400;background:var(--grey-soft)}
.ai-msg {max-width:100%;font-size:14px;line-height:1.5}
.ai-msg p {margin:0 0 6px}
.ai-msg ul {margin:0 0 6px;padding-left:20px}
.ai-msg.user {align-self:flex-end;max-width:85%;padding:9px 13px;border-radius:14px 14px 4px 14px;background:var(--brand);color:#fff}
.ai-msg.bot {padding:2px 0}
.ai-msg.error {padding:9px 13px;border-radius:8px;background:var(--action-soft);color:var(--action-hover)}
.ai-step {display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.ai-step .icon {width:14px;height:14px}
.ai-busy {animation:ai-blink 1.2s ease-in-out infinite}
@keyframes ai-blink {50% {opacity:.4}}
.ai-card {margin:8px 0 4px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.ai-card-head {display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--grey-soft);font-size:13px;font-weight:600;border-bottom:1px solid var(--line)}
.ai-card-head .icon {width:15px;height:15px;color:var(--brand)}
.ai-copy {margin-left:auto;min-height:26px;padding:2px 8px;font-size:12px}
.ai-row {display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.ai-row:first-of-type {border-top:0}
.ai-row .muted {flex-basis:100%;font-size:12px}
.ai-row .badge {margin-left:auto}
.ai-link {padding:0;min-height:0;border:0;background:none;text-align:left;font-weight:600;font-size:13px;color:var(--text);text-decoration:none}
.ai-link:hover {color:var(--action);background:none}
.ai-link.done {text-decoration:line-through;color:var(--muted)}
.ai-tags {display:flex;flex-wrap:wrap;gap:4px}
.ai-none {padding:8px 12px}
.ai-pending .ai-actions {display:flex;gap:8px;padding:0 12px 10px}
.ai-pending>.muted {padding:0 12px 10px}
.ai-input {display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}
.ai-input textarea {flex:1;resize:none;min-height:44px;padding:9px 11px;border:1.5px solid var(--control-line);border-radius:8px;font:inherit;font-size:14px}
@media (max-width:620px) {.ai-fab span {display:none}.ai-fab {padding:14px}}
/* Aufwand & Stolpersteine (Schaubild, PL 2026-10-13) */
.st-flow {display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;margin:0 0 32px}
.st-flowstep {flex:1 1 150px;display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--grey-soft)}
.st-flowstep small {color:var(--muted);font-size:13px;line-height:1.4}
.st-arrow {align-self:center;color:var(--brand);font-size:20px}
.st-loop {flex-basis:100%;display:flex;align-items:center;gap:8px;color:var(--olive-text);font-size:13px}
.st-no {display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;font-weight:700}
.st-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px;align-items:start}
.st-panel {position:relative;border:1px solid var(--line);border-radius:var(--radius)}
.st-panel > .st-no {position:absolute;top:-13px;left:20px}
.st-panel h3 {margin:4px 0 12px}
.st-wide {grid-column:1/-1}
.st-card {border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.st-card-title {font-weight:600}
.st-sizes {display:flex;gap:8px;margin:12px 0 8px}
.st-size {min-height:36px;min-width:44px;padding:4px 10px;border-radius:18px;font-weight:700}
.st-size.on {background:var(--brand);border-color:var(--brand);color:#fff}
.st-size:disabled {opacity:1;cursor:default;background:var(--accent-soft);border-color:var(--line);min-height:30px;min-width:38px;font-size:13px}
.st-sizehint {font-size:14px;margin-bottom:8px}
.st-note {font-size:13px;padding:8px 10px;border-radius:8px;background:var(--accent-soft);color:var(--olive-text)}
.st-note.warn {background:var(--warn-soft);color:var(--warn)}
.st-waitrow {margin:10px 0}
.st-waitchip {background:var(--warn-soft);color:var(--warn);display:inline-flex;align-items:center;gap:6px}
.st-waitbtns {display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.st-line {display:flex;height:34px;margin:16px 0 8px;border-radius:8px;overflow:hidden;font-size:11px;line-height:1.2}
.st-line span {display:flex;align-items:center;justify-content:center;padding:0 4px;text-align:center;overflow:hidden}
.st-line .o,.st-legend i.o,.st-time .o {background:var(--brand);color:#fff}
.st-line .w,.st-legend i.w,.st-time .w {background:repeating-linear-gradient(45deg,var(--grey-soft) 0 6px,var(--line) 6px 12px);color:var(--text)}
.st-legend {display:flex;flex-wrap:wrap;gap:16px;font-size:13px}
.st-legend i {display:inline-block;width:14px;height:14px;border-radius:3px;vertical-align:-2px;margin-right:4px}
.st-dialog {border:1px solid var(--control-line);border-radius:12px;padding:16px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.st-dialog-head {display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ok);margin-bottom:10px}
.st-fb,.st-why {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.st-fb button {flex:1}
.st-dialog-foot {margin-top:14px;min-height:36px;display:flex;align-items:center}
.st-ok {display:flex;gap:6px;align-items:flex-start;font-size:13px;color:var(--ok)}
.st-table td {vertical-align:top;padding:12px 14px}
.st-table tr.st-hot td {background:var(--action-soft)}
.st-table tr.st-few td {color:var(--muted)}
.st-bar,.st-time {display:flex;height:22px;min-width:170px;border-radius:6px;overflow:hidden;background:var(--grey-soft);font-size:11px;font-weight:700}
.st-time {height:12px;margin-bottom:4px;min-width:140px}
.st-bar span {display:flex;align-items:center;justify-content:center;white-space:nowrap}
.st-bar .k,.st-mini i.k {background:var(--accent-soft)}
.st-bar .p,.st-mini i.p {background:var(--brand-light)}
.st-bar .g,.st-mini i.g {background:var(--copper-bright);color:#fff}
.st-mini {font-weight:400;font-size:11px;white-space:nowrap}
.st-mini i {display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 3px 0 6px;vertical-align:-1px}
.st-warnchip {background:var(--warn-soft);color:var(--warn)}
.st-finds {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.st-find {display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:10px;background:var(--grey-soft);font-size:14px}
.st-find b {display:flex;align-items:center;gap:6px}
.st-find.hot {background:var(--action-soft)}
.st-measure {display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.st-measure > div:first-child {flex:1 1 360px}
.st-toggle {display:flex}
.st-toggle button:first-child {border-radius:8px 0 0 8px}
.st-toggle button:last-child {border-radius:0 8px 8px 0;margin-left:-1px}
.st-fill {display:grid;grid-template-columns:70px minmax(0,1fr) 90px;gap:4px 12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.st-fill-bar {height:12px;border-radius:6px;background:var(--grey-soft);overflow:hidden}
.st-fill-bar span {display:block;height:100%;background:var(--brand-light)}
.st-fill-lvl {font-size:13px;font-weight:600}
.st-fill-chips {grid-column:2/-1;font-size:12px;color:var(--muted)}
.st-not ul {margin:0 0 12px;padding-left:20px}
.st-not li {margin:4px 0}
@media (max-width:1100px) {.st-grid {grid-template-columns:repeat(2,minmax(0,1fr))} .st-finds {grid-template-columns:1fr}}
@media (max-width:760px) {.st-grid {grid-template-columns:1fr} .st-arrow {display:none}}
/* News intern (PL 2026-10-13) */
.news-tabs button {min-height:0;padding:16px 0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;margin-bottom:-1px;background:none;color:var(--muted);font-size:15px;white-space:nowrap}
.news-tabs button:hover {background:none;color:var(--text)}
.news-tabs button.active {color:var(--action);border-bottom-color:var(--action)}
.news-filters {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px}
.news-only {display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:13px}
.news-only input {width:auto;min-height:0}
.news-layout {display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.news-list {display:flex;flex-direction:column;gap:20px;min-width:0}
.news-aside {display:flex;flex-direction:column;gap:16px}
.news-aside h3 {margin:0 0 8px;font-size:16px}
.news-aside p {margin:4px 0}
.news-big {font-size:28px;color:var(--action);margin-right:6px}
.news-card {border:1px solid var(--line);border-radius:var(--radius)}
.news-card.unread {border-left:4px solid var(--action)}
.news-head {display:flex;align-items:center;gap:12px;margin-bottom:12px}
.news-by {display:flex;flex-direction:column;line-height:1.35;flex:1;min-width:0}
.news-by .muted {font-size:12px}
.news-av {width:38px;height:38px;flex:none}
.news-new {background:var(--action-soft);color:var(--action-hover);font-weight:600}
.news-plan {background:var(--warn-soft);color:var(--warn)}
.news-draft {background:var(--grey-soft);color:var(--muted)}
.news-topic {font-size:12px;font-weight:600;color:var(--olive-text);text-transform:uppercase;letter-spacing:.04em}
.news-title {display:block;min-height:0;padding:0;border:0;background:none;text-align:left;justify-content:flex-start}
.news-title:hover {background:none}
.news-title h3 {margin:4px 0 6px;font-size:21px;line-height:1.3}
.news-title:hover h3 {color:var(--action)}
.news-teaser {margin:0 0 14px;color:var(--muted)}
.news-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.news-react {display:flex;flex-wrap:wrap;gap:6px}
.news-emoji {min-width:44px;font-weight:600}
.news-planrow {display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}
.news-planrow:last-child {border-bottom:0}
.linkish {min-height:0;padding:0;border:0;background:none;color:var(--olive-text);text-align:left;justify-content:flex-start;font-weight:600}
.linkish:hover {background:none;color:var(--action)}
.news-sum {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.news-sumcard {flex-direction:column;align-items:flex-start;gap:2px;padding:16px 20px;border-color:var(--line);border-radius:var(--radius)}
.news-sumcard b {font-size:26px;line-height:1.2}
.news-sumcard.active {border-color:var(--action);background:var(--action-soft)}
.news-actions {white-space:nowrap}
.news-actions button {margin-left:6px}
.news-danger {background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}
.news-lead {font-size:17px;color:var(--muted);margin:4px 0 12px}
.news-body {font-size:15px}
.news-body h4 {margin:18px 0 6px;font-size:17px}
.news-body ul {padding-left:22px}
.news-ctitle {margin:24px 0 10px;font-size:16px;border-top:1px solid var(--line);padding-top:16px}
.news-comment {display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line)}
.news-comment .muted {font-size:12px}
.news-cform {display:flex;gap:10px;align-items:flex-end;margin-top:12px}
.news-form {display:flex;flex-direction:column;gap:6px}
.news-form label {font-size:13px;font-weight:600;margin-top:8px}
.news-check {display:flex;align-items:center;gap:8px;font-weight:400!important}
.news-check input,.news-when input[type=radio] {width:auto;min-height:0}
.news-when {border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:12px 0 4px}
.news-when legend {font-size:13px;font-weight:600;padding:0 4px}
.news-when label {display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:400;margin:6px 0}
.news-when input[type=datetime-local] {width:auto;min-height:36px;padding:4px 8px}
.news-rights td,.news-rights th {padding:10px 12px}
.news-rights input {width:auto;min-height:0}
@media (max-width:1000px) {.news-layout {grid-template-columns:1fr} .news-aside {order:-1}}
@media (max-width:600px) {.news-sum {grid-template-columns:1fr} .news-cform {flex-direction:column;align-items:stretch}}
/* News: Titelbild, Galerie, Anhänge, Editor wie im Marketing-Entwurf (PL 2026-10-13) */
.news-coverbtn {display:block;width:100%;min-height:0;padding:0;border:0;border-radius:12px;overflow:hidden;margin:0 0 14px;background:none}
.news-coverbtn:hover {background:none}
.news-cover {position:relative;overflow:hidden;border-radius:12px;background:var(--grey-soft)}
.news-cover.photo {height:240px}
.news-cover.photo img {width:100%;height:100%;object-fit:cover;display:block}
.news-cover.big {margin:4px 0 16px}
.news-cover.photo.big {height:auto;max-height:420px}
.news-cover.photo.big img {height:auto;max-height:420px}
.news-cover.jubi {height:220px;background:linear-gradient(100deg,#925337 0%,#ab7755 62%,#a97451 100%);color:#fffaf3;isolation:isolate}
.news-cover.jubi.big {height:250px}
.jubi-no {position:absolute;right:20px;top:-70px;font-weight:750;letter-spacing:-24px;font-size:270px;line-height:1.3;color:#f7ddc629;transform:rotate(-7deg);user-select:none}
.jubi-in {position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:22px 28px;text-align:left}
.jubi-in small {font-size:11px;font-weight:600;color:#f6e5d7}
.jubi-in b {font-size:32px;line-height:1.18;letter-spacing:-.5px;max-width:340px}
.news-att {display:flex;align-items:center;gap:6px;font-size:13px;margin:-6px 0 12px}
.modal.news-read {width:780px}
.news-body blockquote {margin:12px 0;padding:6px 16px;border-left:3px solid var(--action);color:var(--muted)}
.news-body h2 {font-size:22px;margin:18px 0 6px}
.news-body h3 {font-size:19px;margin:16px 0 6px}
.news-body a {color:var(--action)}
.news-gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:16px 0}
.news-gallery figure {margin:0}
.news-gallery img {width:100%;height:150px;object-fit:cover;border-radius:10px;display:block}
.news-gallery figcaption {font-size:12px;color:var(--muted);margin-top:4px}
.news-file {display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.news-ext {display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;background:var(--accent-soft);color:var(--olive-text);font-size:11px;font-weight:700}
.modal.nc-modal {width:1180px;padding:0;display:flex;flex-direction:column;overflow:hidden}
.nc-modal > .modal-close {z-index:2}
.nc-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 72px 16px 32px;border-bottom:1px solid var(--line)}
.nc-head h2 {margin:0 0 2px!important}
.nc-head p {margin:0;font-size:13px}
.nc-layout,.nc-preview {flex:1;min-height:0;overflow:auto}
.nc-layout {display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;padding:24px 32px;background:var(--grey-soft)}
.nc-preview {padding:24px 32px;max-width:820px;width:100%;margin:0 auto}
.nc-ptitle {margin:6px 0 12px!important}
.nc-main {display:flex;flex-direction:column;gap:20px;min-width:0}
.nc-field {display:flex;flex-direction:column;gap:6px}
.nc-field > label,.nc-lab {font-size:14px;font-weight:600}
.nc-lab {display:flex;justify-content:space-between}
.nc-lab .muted {font-weight:400;font-size:12px}
.nc-lab label {margin:0;display:inline}
.nc-title {font-size:20px!important;font-weight:600;min-height:56px!important}
.nc-err:empty {display:none}
.nc-err {padding:10px 14px;border-radius:8px;background:var(--danger-soft);color:var(--danger);font-size:14px}
.nc-editor {border:1px solid var(--control-line);border-radius:10px;background:#fff;overflow:hidden}
.nc-editor:focus-within {border-color:var(--action);box-shadow:0 0 0 3px var(--action-soft)}
.nc-tools {display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;border-bottom:1px solid var(--line);background:var(--grey-soft)}
.nc-tools select {width:auto!important;min-height:36px!important;padding:4px 8px!important;font-size:13px!important}
.nc-tools button {min-height:34px;min-width:34px;padding:4px 8px;border:0;background:none;font-size:14px}
.nc-tools button:hover {background:#fff}
.nc-tools .nc-swatch {min-width:22px;width:22px;min-height:22px;height:22px;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);margin:0 2px}
.nc-tools input[type=color] {width:30px;min-height:28px;height:28px;padding:0;border:0;background:none}
.nc-div {width:1px;height:22px;background:var(--line);margin:0 4px}
.nc-linkrow {display:flex;gap:8px;padding:8px;border-bottom:1px solid var(--line)}
.nc-linkrow input {min-height:36px!important}
.nc-linkrow[hidden] {display:none}
.nc-body {min-height:260px;padding:16px 18px;outline:none}
.nc-body:empty::before {content:attr(data-placeholder);color:var(--muted)}
.nc-drop {width:100%;justify-content:flex-start;gap:14px;padding:16px;border:1.5px dashed var(--control-line);border-radius:10px;background:#fff;text-align:left}
.nc-drop span {display:flex;flex-direction:column;font-weight:400}
.nc-drop small {color:var(--muted);font-size:12px}
.nc-drop.over {border-color:var(--action);background:var(--action-soft)}
.nc-img {display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:8px}
.nc-thumb {width:96px;height:64px;border-radius:8px;overflow:hidden;background:var(--grey-soft)}
.nc-thumb img {width:100%;height:100%;object-fit:cover;display:block}
.nc-thumb .news-cover.jubi {height:64px;border-radius:0}
.nc-thumb .jubi-in,.nc-thumb .jubi-no {display:none}
.nc-imgtext {display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.nc-imgtext input {min-height:36px!important}
#nc-files .news-file {background:#fff;padding:8px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px}
.nc-side {display:flex;flex-direction:column;gap:16px}
.nc-box {display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.nc-box h3 {margin:0 0 4px;font-size:16px}
.nc-box > label {font-size:13px;font-weight:600;margin-top:4px}
.nc-radio {display:grid!important;grid-template-columns:22px 1fr;gap:6px;align-items:start;font-weight:400!important;margin:4px 0}
.nc-radio input {width:auto;min-height:0;margin-top:4px}
.nc-radio span {display:flex;flex-direction:column}
.nc-radio small {color:var(--muted);font-size:12px}
.nc-tips {background:var(--accent-soft);border-color:transparent}
.nc-tips ul {margin:0;padding-left:18px;font-size:13px}
.nc-foot {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;padding:14px 32px;border-top:1px solid var(--line);background:#fff}
.nc-foot > span {margin-right:auto;font-size:12px}
@media (max-width:900px) {.nc-layout {grid-template-columns:1fr} .nc-head,.nc-layout,.nc-preview,.nc-foot {padding-left:16px;padding-right:16px}}
/* Vorlagen: Kacheln wie im Marketing-Entwurf (PL 2026-10-13) */
.vor-intro {display:flex;align-items:center;gap:24px;background:#eaece1;border:1px solid #d9decf;border-radius:var(--radius);padding:22px 28px;margin:0 0 22px}
.vor-intro h3 {margin:0 0 4px;font-size:20px}
.vor-intro p {margin:0;font-size:14px;color:#66705a;max-width:640px}
.vor-badge {margin-left:auto;white-space:nowrap;background:#ffffff99;border-radius:8px;padding:10px 14px;font-size:13px;font-weight:600;color:var(--olive-text)}
.vor-tools {display:flex;align-items:center;gap:16px;margin:0 0 22px}
.vor-tools input {max-width:460px}
.vor-tools .muted {margin-left:auto;font-size:13px;white-space:nowrap}
.vor-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.vor-tile {position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
.vor-tile:hover {border-color:#b8bea9;box-shadow:0 10px 40px #2529210d;transform:translateY(-2px)}
.vor-fav {position:absolute;top:10px;right:10px;z-index:2;min-height:34px;width:34px;padding:0;border:1px solid #ffffff88;border-radius:50%;background:#ffffffc0;font-size:17px;color:var(--olive-text)}
.vor-fav.on {color:var(--action)}
.vor-main {display:block;width:100%;min-height:0;padding:0;border:0;border-radius:0;background:none;text-align:left;font-weight:400}
.vor-main:hover {background:none}
.vor-prev {position:relative;height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f0e7df}
.vor-prev.olive {background:#e8ecdf} .vor-prev.neutral {background:#e9ebe7} .vor-prev.sand {background:#f0ecdf} .vor-prev.plum {background:#eee7ec} .vor-prev.charcoal {background:#43483e}
.vor-types {position:absolute;bottom:12px;left:16px;font-size:10px;font-weight:700;letter-spacing:.5px;color:#6c5141}
.vor-prev.charcoal .vor-types {color:#e2e8d7}
.vor-art {position:relative;width:150px;height:104px;background:#fffefb;box-shadow:0 7px 14px #393e2314;transform:rotate(-6deg);border-radius:2px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:12px;color:#465037}
.vor-art::after {content:'';position:absolute;width:36%;height:150%;right:-7px;top:-28px;background:#a56a4740;transform:rotate(25deg)}
.vor-brand {font-style:italic;font-size:18px;font-weight:800;letter-spacing:-2px;line-height:1}
.vor-title {font-size:10px;line-height:1.5;max-width:100px;font-weight:700}
.vor-art.slide {transform:rotate(-5deg);border-bottom:7px solid var(--action)}
.vor-art.company {background:#70775b;color:#fff;transform:rotate(5deg)}
.vor-art.company::after {background:#a9ae9170;width:40%}
.vor-art.portrait {width:94px;height:128px;transform:rotate(6deg);padding:10px;box-shadow:8px 5px 0 #ffffff60,0 7px 16px #393e2317}
.vor-art.portrait::after {display:none}
.vor-art.fact {width:98px;height:130px;transform:rotate(-5deg)}
.vor-art.fact::after {width:100%;height:30px;background:#b3b7a4;bottom:0;top:auto;transform:none;left:0}
.vor-lines {height:40px;margin-top:8px;background:repeating-linear-gradient(to bottom,#c5c9ba 0,#c5c9ba 2px,transparent 2px,transparent 7px);opacity:.8}
.vor-art.brand {background:transparent;box-shadow:none;transform:none;color:#fff;font-style:italic;align-items:center;justify-content:center;font-size:72px;letter-spacing:-8px;font-weight:800;overflow:visible}
.vor-art.brand::after {display:none}
.vor-body {padding:18px 20px 16px}
.vor-body h3 {margin:0 0 6px;font-size:17px;line-height:1.35}
.vor-body p {margin:0;font-size:13px;color:var(--muted);min-height:40px}
.vor-bottom {display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:13px;font-weight:600;color:var(--olive-text)}
.vor-empty {grid-column:1/-1}
.vor-fhead {display:flex;align-items:center;gap:14px;background:var(--grey-soft);padding:18px;border-radius:10px;margin-bottom:16px}
.vor-fhead p {margin:2px 0 0;font-size:13px}
.vor-fsym {display:flex;padding:12px;border-radius:10px;background:#e4e9d9;color:#63714e}
.vor-file {display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-top:10px}
.vor-ext {display:flex;align-items:center;justify-content:center;width:44px;height:46px;flex:none;border-radius:7px;background:var(--action-soft);border:1px solid #e8d2c3;color:var(--action-hover);font-size:10px;font-weight:700}
.vor-fcopy {flex:1;min-width:160px;display:flex;flex-direction:column}
.vor-fcopy b {overflow-wrap:anywhere}
.vor-none {padding:20px;border:1px dashed var(--line);border-radius:10px;text-align:center}
.vor-none p {margin:6px 0}
.vor-drop {margin-top:16px}
.vor-note {font-size:12px;margin-top:16px}
.vor-tones {display:flex;flex-wrap:wrap;gap:12px}
.vor-tones label {display:flex;flex-direction:column;align-items:center;gap:4px;margin:0;font-weight:400;cursor:pointer}
.vor-tones input {position:absolute;opacity:0;width:1px;height:1px}
.vor-tones span {width:34px;height:34px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.vor-tones input:checked + span {box-shadow:0 0 0 2px var(--action)}
.vor-tones input:focus-visible + span {outline:3px solid var(--action);outline-offset:2px}
.vor-tones small {font-size:11px;color:var(--muted)}
.vor-promo h3 {margin:4px 0 0;font-size:17px;line-height:1.35}
.vor-deck {position:relative;height:118px;margin:14px 0 18px}
.vor-paper {position:absolute;width:156px;height:96px;left:16px;top:8px;padding:12px;background:#fff;border:1px solid #dcddd3;border-radius:3px;box-shadow:0 8px 18px #4b4e3512;transform:rotate(-7deg);font-size:8px;font-weight:700;color:#6b7258}
.vor-paper.front {left:44px;top:16px;transform:rotate(5deg);background:#fbfbf7;display:flex;flex-direction:column;justify-content:space-between;font-size:9px}
.vor-bar {height:32px;margin:8px -12px -12px;padding:8px 11px;background:#6f7358;color:#fff;font-size:8px}
.vor-mark {color:var(--action);font-size:17px;font-style:italic;font-weight:800;letter-spacing:-2px;line-height:1}
@media (max-width:1100px) {.vor-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px) {.vor-grid {grid-template-columns:1fr} .vor-intro {flex-direction:column;align-items:flex-start} .vor-badge {margin-left:0} .vor-tools {flex-wrap:wrap} .vor-tools .muted {margin-left:0;white-space:normal}}
.news-big.olive {color:var(--olive-text)}
/* Kundenakte: E-Mails als Liste (PL 2026-10-14) */
.kvm-tools {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 14px}
.kvm-tools input {flex:1;min-width:220px;max-width:460px}
.kvm-month {margin:16px 0 4px;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
.kvm-month:first-child {margin-top:0}
.kvm-row {border-top:1px solid var(--line)}
.kvm-row.open {background:var(--grey-soft);border-radius:8px;border-top-color:transparent}
.kvm-main {display:grid;grid-template-columns:96px 112px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:0;padding:11px 10px;border:0;border-radius:8px;background:none;text-align:left;font-weight:400;color:inherit}
.kvm-main:hover {background:var(--grey-soft)}
.kvm-date {display:flex;flex-direction:column;font-size:13px;font-weight:600}
.kvm-date small {font-weight:400;color:var(--muted)}
.kvm-dir {display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--olive-text)}
.kvm-dir.in {color:var(--action-hover)}
.kvm-copy {display:flex;flex-direction:column;min-width:0}
.kvm-copy b {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kvm-copy .muted {font-size:12px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kvm-meta {display:flex;align-items:center;gap:6px;white-space:nowrap}
.kvm-meta .chip {display:inline-flex;align-items:center;gap:4px}
.kvm-tools .dash-seg button.active .muted {color:#ffffffcc}
.kvm-by {font-size:12px;min-width:56px;text-align:right}
.kvm-detail {padding:0 14px 14px}
@media (max-width:760px) {.kvm-main {grid-template-columns:80px minmax(0,1fr)} .kvm-copy,.kvm-meta {grid-column:1/-1}}
/* Aufwand in Größen, Warten auf extern, Abhak-Frage, Auswertung (PL 2026-10-14) */
.chip.eff.sXL {background:var(--action-soft);color:var(--action-hover)}
.chip.wait-chip {background:var(--warn-soft);color:var(--warn);font-weight:600;white-space:nowrap}
.chip.ext-chip {background:var(--grey-soft);color:var(--muted);white-space:nowrap}
.wait-line {display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ext-box {display:inline-flex;align-items:center;gap:6px;margin:6px 0 0;font-size:13px;font-weight:400;white-space:nowrap;cursor:pointer}
.ext-box input {width:auto;min-height:0;margin:0}
.plan .prow .ext-box {margin:0}
.plan .prow.px {grid-template-columns:20px minmax(200px,1fr) 178px 74px 220px 32px;min-width:870px}
.eff-q {margin:16px 0 4px}
.eff-pick {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.eff-pick button {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:96px;padding:14px 6px;border-radius:12px;font-weight:400;text-align:center}
.eff-pick button b {font-size:24px;line-height:1;font-weight:700;color:var(--olive-text)}
.eff-pick button span {font-size:12px;line-height:1.3;color:var(--muted)}
.eff-pick button small {margin-top:2px;padding:1px 8px;border-radius:10px;background:var(--brand);color:#fff;font-size:10px;font-weight:600;white-space:nowrap}
.eff-pick button.plan {border:2px dashed var(--brand)}
.eff-pick button.on {background:var(--brand);border-color:var(--brand)}
.eff-pick button.on b,.eff-pick button.on span {color:#fff}
.eff-why {margin:0 0 14px;padding:12px 14px;border-radius:10px;background:var(--action-soft)}
.eff-why>div {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.eff-why button.active {background:var(--action);border-color:var(--action);color:#fff}
.eff-anon {flex:1;align-self:center;font-size:12px}
.eff-tabs {margin-top:0;overflow-y:hidden}
.eff-rooms {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.eff-kpis {grid-template-columns:repeat(5,minmax(0,1fr))}
.eff-kpis .metric-card {min-height:130px}
.eff-two {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;margin:0 0 20px}
.eff-two .panel,.eff-two+.panel {margin:0}
.eff-finds {grid-template-columns:1fr;margin-top:8px}
.st-find.good {background:#e8ecdf}
.eff-trend {display:flex;align-items:flex-end;gap:12px;height:180px;margin:14px 0 12px}
.eff-month {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;min-width:0;font-size:12px}
.eff-month small {font-size:11px;white-space:nowrap}
.eff-col {display:flex;flex-direction:column;width:100%;max-width:46px;border-radius:6px;overflow:hidden;background:var(--grey-soft)}
.eff-col .g,.eff-two .st-legend i.g {background:var(--copper-bright)}
.eff-col .p,.eff-two .st-legend i.p {background:var(--brand-light)}
.eff-col .k,.eff-two .st-legend i.k {background:#a9b48f}
.eff-hist {display:flex;align-items:flex-end;gap:4px;height:58px}
.eff-hist span {display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;width:26px;height:100%}
.eff-hist i {display:block;width:16px;min-height:2px;border-radius:3px 3px 0 0;background:#b9c0a6}
.eff-hist b {font-size:10px;font-weight:600;color:var(--muted)}
.eff-hist .plan i {background:var(--brand)}
.eff-hist .plan b {color:var(--text)}
.eff-down {color:var(--olive-text);font-weight:700;white-space:nowrap}
.eff-up {color:var(--action-hover);font-weight:700;white-space:nowrap}
@media (max-width:1100px) {.eff-kpis {grid-template-columns:repeat(3,minmax(0,1fr))} .eff-two {grid-template-columns:1fr}}
@media (max-width:640px) {.eff-pick {grid-template-columns:repeat(3,minmax(0,1fr))} .eff-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Teamraum: Auswertungs-Kachel (PL 2026-10-14) */
.eff-room {margin:0 0 20px;border-top:3px solid var(--action)}
.eff-room-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.eff-room-head h3 {display:flex;align-items:center;gap:8px;margin:0 0 4px}
.eff-room-head .muted {font-size:13px}
.eff-room-body {display:grid;grid-template-columns:auto minmax(200px,1fr);align-items:center;gap:24px}
.eff-room-kpis {display:flex;flex-wrap:wrap;gap:22px}
.eff-room-kpis span {display:flex;flex-direction:column;font-size:12px;color:var(--muted)}
.eff-room-kpis b {font-size:22px;line-height:1.2;color:var(--olive-text)}
.eff-room-kpis .g b {color:var(--action-hover)}
.eff-room-hot {margin-top:14px;padding:10px 14px;border-radius:8px;background:var(--action-soft);font-size:14px}
@media (max-width:900px) {.eff-room-body {grid-template-columns:1fr}}
/* Mitarbeiter & Rechte (PL 2026-10-14) */
.pp-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.pp-grid .panel {margin:0}
.pp-pick {grid-column:1/-1;display:grid;grid-template-columns:auto minmax(220px,460px) 1fr;align-items:center;gap:16px}
.pp-pick label {margin:0;font-weight:600}
.pp-who {display:flex;align-items:center;gap:12px;justify-self:end}
.pp-who div {display:flex;flex-direction:column}
.pp-avatar {width:42px;height:42px;font-size:14px}
.pp-card h3 {margin:0 0 12px}
.pp-card h3 .muted {font-weight:400;font-size:14px}
.pp-perms-head {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:6px}
.pp-perms-head h3 {margin:0;margin-right:auto}
.pp-list {display:flex;flex-direction:column}
.pp-col {display:flex;flex-direction:column;gap:20px;min-width:0}
.pp-col .pp-card .pp-list:not(.pp-perms .pp-list) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
.pp-row {display:flex;align-items:flex-start;gap:12px;margin:0;padding:11px 4px;border-top:1px solid var(--line);font-weight:400;cursor:pointer}
.pp-row input {width:auto;min-height:0;margin:3px 0 0;flex:none}
.pp-row>span:not(.chip) {display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.pp-row small {font-size:12px;line-height:1.45}
.pp-row.own {background:var(--action-soft);border-radius:6px}
.chip.pp-diff {background:var(--action-soft);color:var(--action-hover);white-space:nowrap}
.pp-roles td:first-child {min-width:260px}
.pp-roles th {vertical-align:bottom;text-align:center}
.pp-roles th:first-child {text-align:left}
@media (max-width:900px) {.pp-grid,.pp-col .pp-card .pp-list:not(.pp-perms .pp-list) {grid-template-columns:1fr} .pp-pick {grid-template-columns:1fr} .pp-who {justify-self:start}}
