:root[data-lenz-app="immo"]{--lenz-accent:#3158cf;--lenz-hover:#2445ac;--lenz-soft:#e9efff;--lenz-on-soft:#203e93}
:root[data-lenz-app="fin"]{--lenz-accent:#08736b;--lenz-hover:#075a54;--lenz-soft:#e1f3ee;--lenz-on-soft:#0c544f}
:root[data-lenz-app="steuer"]{--lenz-accent:#6941b8;--lenz-hover:#523197;--lenz-soft:#f0e9fb;--lenz-on-soft:#4f318a}
:root[data-lenz-app]{
  --lenz-surface:#fff;--lenz-background:#f7f6f2;--lenz-ink:#23292c;--lenz-muted:#59646b;--lenz-line:#e4e6e5;
  --lenz-rail:#22282b;--lenz-rail-text:#e0e5e8;--lenz-rail-muted:#aab5bc;--lenz-rail-hover:#343e45;
  --lenz-radius:13px;--lenz-control-radius:8px;--lenz-rail-width:17.25rem;
  --lenz-content-max:104rem;--lenz-content-gutter:clamp(.8rem,2.2vw,2rem);
  --lenz-font:"Inter","Segoe UI Variable","Segoe UI",system-ui,sans-serif;
  --surface:var(--lenz-surface);--paper:var(--lenz-surface);--panel:var(--lenz-surface);
  --background:var(--lenz-background);--base:var(--lenz-background);--bg:var(--lenz-background);
  --ink:var(--lenz-ink);--text:var(--lenz-ink);--muted:var(--lenz-muted);--quiet:var(--lenz-muted);
  --line:var(--lenz-line);--border:var(--lenz-line);--blue:var(--lenz-accent);--dark-blue:var(--lenz-hover);
  --sidebar:var(--lenz-rail);--radius:var(--lenz-radius);--green:var(--lenz-on-soft);--dark:var(--lenz-hover);
  --accent:var(--lenz-soft);--pale:var(--lenz-soft);--shadow:0 6px 22px #22282b09;
  font-family:var(--lenz-font);color:var(--lenz-ink);background:var(--lenz-background);
}
[data-lenz-app] body{font-family:var(--lenz-font);background:var(--lenz-background);color:var(--lenz-ink)}
[data-lenz-app] :focus-visible{outline-color:var(--lenz-accent)}
.lenz-layout{display:grid;grid-template-columns:var(--lenz-rail-width) minmax(0,1fr);min-height:100dvh}
.lenz-layout.sidebar-collapsed{grid-template-columns:4.25rem minmax(0,1fr)}
.lenz-layout .lenz-sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;min-width:0;
  padding:1.55rem .9rem .9rem;color:var(--lenz-rail-text);background:var(--lenz-rail);border:0;overflow:hidden}
.lenz-layout .lenz-brand{display:inline-flex;align-items:center;gap:.65rem;align-self:flex-start;margin:0 0 1.65rem .45rem;
  padding:0;color:white;font-size:1.32rem;font-weight:750;line-height:1.18;letter-spacing:-.035em;text-decoration:none}
.lenz-brand strong,.lenz-brand-name{display:block;color:white;font-size:1.32rem;font-weight:750;line-height:1.18}
.lenz-brand small{display:none}
.lenz-brand .lenz-brand-mark{display:grid;place-items:center;flex:0 0 2.375rem;width:2.375rem;height:2.375rem;padding:0;
  background:var(--lenz-accent);color:white;border-radius:10px;font:750 .9rem/1 var(--lenz-font)}
.lenz-layout .lenz-nav{display:grid;align-content:start;gap:1.2rem;min-height:0;overflow:auto;overscroll-behavior:contain;
  scrollbar-width:none;padding:.2rem .15rem .4rem}
.lenz-layout .lenz-nav::-webkit-scrollbar{display:none}
.lenz-nav .lenz-group{display:grid;gap:.2rem}
.lenz-nav .lenz-group-label{margin:.05rem .6rem .35rem;color:var(--lenz-rail-muted);text-transform:uppercase;
  font-size:.65rem;font-weight:700;letter-spacing:.085em;line-height:1.3}
.lenz-nav .lenz-nav-item,.lenz-nav .lenz-nav-item:is(a,button,summary){display:flex;align-items:center;gap:.6rem;
  min-width:0;min-height:42px;width:100%;margin:0;padding:.48rem .6rem;background:transparent;color:var(--lenz-rail-text);
  border:0;border-radius:var(--lenz-control-radius);font:600 .9rem/1.26 var(--lenz-font);text-align:left;text-decoration:none}
.lenz-nav .lenz-nav-item svg{flex:none;width:19px;height:19px;color:inherit}
.lenz-nav .lenz-nav-item svg:last-child:not(:first-child){width:15px;height:15px}
.lenz-nav .lenz-nav-item:hover,.lenz-nav .lenz-nav-item:focus-visible{background:var(--lenz-rail-hover);color:#fff}
.lenz-nav .lenz-nav-item[aria-current="page"],.lenz-nav .lenz-nav-item[aria-current="page"]:hover{
  background:var(--lenz-accent);color:#fff}
#navigation.lenz-nav a[aria-current="page"]{background:var(--lenz-accent);color:#fff}
.lenz-nav .lenz-nav-item[aria-current="page"] svg{color:#fff}
.lenz-nav .lenz-nav-item:focus-visible,.lenz-layout .lenz-collapse:focus-visible{outline-color:#fff;outline-offset:-3px}
.lenz-nav .nav-children{display:grid;gap:.15rem;margin:.15rem 0 .25rem 1.17rem;padding:0 0 0 .55rem;border-left:1px solid #53606a}
.lenz-nav .nav-children .lenz-nav-item{min-height:36px;font-size:.81rem;font-weight:550}
.lenz-nav details:not([open]) .nav-children{display:none}
.lenz-nav .current-branch>.lenz-nav-item,.lenz-nav .nav-branch:has(.nav-children [aria-current="page"])>.lenz-nav-item{background:#303941}
.lenz-layout .lenz-sidebar-footer{margin-top:auto;padding-top:.7rem;flex:none;color:var(--lenz-rail-text)}
.lenz-layout .lenz-sidebar-footer small,.lenz-layout .lenz-sidebar-footer a{color:var(--lenz-rail-muted)}
.lenz-layout .lenz-collapse{display:flex;align-items:center;gap:.6rem;width:100%;min-height:40px;margin:.45rem 0 0;padding:.45rem .6rem;
  border:0;border-radius:var(--lenz-control-radius);background:transparent;color:var(--lenz-rail-text);font-size:.84rem;text-align:left}
.lenz-layout .lenz-collapse:hover{background:var(--lenz-rail-hover);color:#fff}
.lenz-layout .lenz-collapse svg{width:19px;height:19px;flex:none}
.lenz-workspace{min-width:0}
.lenz-layout .lenz-topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;
  min-height:64px;height:auto;gap:.8rem;margin:0;padding:.55rem clamp(.8rem,3vw,2.2rem);background:var(--lenz-surface);
  border-bottom:1px solid var(--lenz-line);color:var(--lenz-ink)}
.lenz-topbar .lenz-topbar-start,.lenz-topbar .lenz-topbar-actions{display:flex;align-items:center;gap:.6rem;min-width:0}
.lenz-topbar .lenz-topbar-title{font-size:.87rem;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.lenz-layout .lenz-menu-toggle,.lenz-layout .lenz-overlay{display:none}
.lenz-layout .lenz-content{width:100%;max-width:var(--lenz-content-max);margin:0 auto;padding:clamp(1rem,3vw,2.15rem) var(--lenz-content-gutter) 2.5rem}
.lenz-content :is(.page-head,.page-heading,.dashboard-intro){margin:0 0 1.15rem}
.lenz-content :is(.page-head,.page-heading,.dashboard-intro) h1,.lenz-content>h1,.lenz-content>#app>h1{font-size:clamp(1.95rem,3.2vw,2.85rem);
  line-height:1.08;letter-spacing:-.045em;font-weight:750;overflow-wrap:anywhere}
.lenz-content :is(.page-head,.page-heading,.dashboard-intro) p{color:var(--lenz-muted);margin:.45rem 0 0}
.lenz-content .panel{border:1px solid var(--lenz-line);border-radius:var(--lenz-radius);background:var(--lenz-surface);box-shadow:0 6px 22px #22282b09}
.lenz-content .panel-head h2{font-size:1.1rem;line-height:1.25;font-weight:720;letter-spacing:-.02em}
[data-lenz-app] :is(button.primary,a.primary,.button.primary,.btn.primary){background:var(--lenz-accent);border-color:var(--lenz-accent);color:#fff}
[data-lenz-app] :is(button.primary,a.primary,.button.primary,.btn.primary):hover:not(:disabled){background:var(--lenz-hover);border-color:var(--lenz-hover);color:#fff}
.lenz-content :is(.btn,.button,select,input:not([type="checkbox"],[type="radio"]),textarea),
[data-lenz-app] dialog :is(.btn,.button,select,input:not([type="checkbox"],[type="radio"]),textarea){border-radius:var(--lenz-control-radius)}
.lenz-content :is(.table-shell,.contract-table-shell,.table-wrap):has(table){overflow-x:auto;border-radius:var(--lenz-control-radius)}
.lenz-content table th{background:#eff1ef;border-color:var(--lenz-line);color:var(--lenz-muted);font-weight:700}
.lenz-content table td{border-color:var(--lenz-line)}
.lenz-content table tbody>tr:hover{background:var(--lenz-soft)}
.lenz-content :is(.row-link,.belegtabelle-link,.contract-name,.beleg-sortierung:hover,.table-sort:hover){color:var(--lenz-on-soft);text-underline-offset:.18em}
[data-lenz-app] dialog{border-color:var(--lenz-line);border-radius:var(--lenz-radius);color:var(--lenz-ink)}
[data-lenz-app] dialog::backdrop{background:#142029b8}
[data-lenz-app="immo"] .auth-brand{background:var(--lenz-rail)}
[data-lenz-app="steuer"] :is(.hero,.coach-einstieg,.konto-intro){background:linear-gradient(115deg,var(--lenz-hover),var(--lenz-accent));color:white}
[data-lenz-app="steuer"] :is(.hero,.coach-einstieg,.konto-intro) :is(p,h2){color:#f5efff}
[data-lenz-app="steuer"] .hero :is(.mint,.btn.primary),[data-lenz-app="steuer"] .coach-einstieg .btn.primary{background:#fff;border-color:#fff;color:var(--lenz-on-soft)}
@media(min-width:976px){
  .lenz-layout.sidebar-collapsed .lenz-sidebar{padding-inline:.5rem}
  .sidebar-collapsed .lenz-brand{margin-inline:auto}
  .sidebar-collapsed :is(.lenz-brand strong,.lenz-brand-name,.lenz-group-label,.lenz-nav-item>span,.lenz-collapse>span){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .sidebar-collapsed .lenz-nav{gap:.65rem}
  .sidebar-collapsed :is(.lenz-nav .lenz-nav-item,.lenz-collapse){justify-content:center;padding-inline:.15rem}
  .sidebar-collapsed :is(.lenz-sidebar .nav-children,.lenz-sidebar-footer .lenz-account,.lenz-nav .nav-disclosure>svg:last-child,.lenz-nav details>summary::after){display:none}
  .sidebar-collapsed .lenz-nav .nav-branch:has([aria-current="page"])>.lenz-nav-item,.sidebar-collapsed .lenz-nav .current-branch>.lenz-nav-item{background:var(--lenz-accent);color:white}
}
@media(max-width:975px){
  .lenz-layout,.lenz-layout.sidebar-collapsed{display:block}
  .lenz-layout .lenz-sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(17.25rem,88vw);height:100dvh;z-index:22}
  .lenz-layout.menu-open .lenz-sidebar{display:flex}
  .lenz-layout .lenz-topbar{min-height:54px}
  .lenz-layout .lenz-menu-toggle{display:inline-flex !important;min-height:40px;min-width:40px;border:1px solid var(--lenz-line);
    border-radius:var(--lenz-control-radius);align-items:center;justify-content:center;padding:0 .35rem;background:#fff;color:var(--lenz-ink)}
  .lenz-menu-toggle svg{width:20px;height:20px}
  .lenz-layout .lenz-collapse{display:none !important}
  .lenz-layout.menu-open .lenz-overlay{display:block !important;position:fixed;inset:0;z-index:21;width:100%;height:100%;
    margin:0;padding:0;border:0;border-radius:0;background:#142029a6}
  body.lenz-layout.menu-open,body:has(.lenz-layout.menu-open){overflow:hidden}
}
@media(max-width:720px){
  [data-lenz-app="immo"] .lenz-topbar-actions{flex-shrink:0}
}
@media(max-width:510px){
  [data-lenz-app="immo"] .lenz-content .table-shell>table:not(.sortable-table){display:table;min-width:36rem}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) tbody{display:table-row-group}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) tr{display:table-row;padding:0;border:0}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) td{display:table-cell;padding:.55rem .65rem !important;border-bottom:1px solid var(--lenz-line);min-width:0;vertical-align:middle}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) td::before{display:none}
  [data-lenz-app="immo"] .table-shell>table:not(.sortable-table) .main-cell{min-width:9rem}
  [data-lenz-app="steuer"] .lenz-topbar .lenz-topbar-title{font-size:.81rem}
  [data-lenz-app="steuer"] .lenz-topbar select{max-width:4.7rem;padding-left:.4rem}
}
