/* ============================================================
   REMS & NECKAR — Verwaltung (Demo-Backend)
   App-Shell: Seitenleiste in Moos, Arbeitsfläche in Stein,
   Karten in Kalk. Gleiche Tokens wie die Website, aber dichter.
   ============================================================ */
:root {
  --stone: #f2efe9; --stone-2: #e9e4db; --stone-3: #dcd5c9; --chalk: #faf8f4; --white: #fff;
  --moss: #1c2a24; --moss-2: #24342d; --moss-3: #2e4038; --moss-4: #3a4f45;
  --brass: #b8925a; --brass-2: #cfa86c; --brass-soft: rgba(184, 146, 90, .16);
  --text: #1b1f1d; --text-soft: #5d635f; --text-mute: #8a908b;
  --on-dark: #efece5; --on-dark-soft: rgba(239, 236, 229, .62);
  --line: rgba(27, 31, 29, .1); --line-2: rgba(27, 31, 29, .22); --line-l: rgba(239, 236, 229, .12);
  --ok: #3f7d5a; --ok-soft: rgba(63, 125, 90, .14); --warn: #c2842e; --warn-soft: rgba(194, 132, 46, .16); --bad: #b4483c; --bad-soft: rgba(180, 72, 60, .14); --info: #3f6f9a; --info-soft: rgba(63, 111, 154, .14);
  --display: 'Fraunces', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .21, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --r: 6px; --r-lg: 12px; --side: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--stone); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
.num { font-family: var(--display); font-weight: 300; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
::selection { background: var(--brass-soft); }

/* Shell */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--moss); color: var(--on-dark); display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; font-family: var(--display); font-size: 19px; }
.side-brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; margin-top: 3px; font-weight: 600; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--on-dark-soft); font-weight: 500; transition: background .25s, color .25s; position: relative; }
.side-nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav a:hover { color: var(--on-dark); background: rgba(239, 236, 229, .05); }
.side-nav a.is-active { color: var(--on-dark); background: var(--moss-3); }
.side-nav a.is-active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; background: var(--brass); border-radius: 0 3px 3px 0; }
.side-nav .badge { margin-left: auto; background: var(--brass); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.side-sep { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); padding: 18px 12px 6px; font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: rgba(239, 236, 229, .05); }
.side-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; }
.side-user b { display: block; font-weight: 600; font-size: 13px; }
.side-user span { font-size: 12px; color: var(--on-dark-soft); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--on-dark-soft); }
.side-link:hover { color: var(--on-dark); }
.side-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(242, 239, 233, .9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 24px; }
.top-crumb { font-size: 12px; color: var(--text-mute); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.top-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--chalk); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; width: 280px; color: var(--text-mute); }
.top-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.top-search input { border: 0; background: transparent; outline: none; width: 100%; color: var(--text); }
.top-search kbd { font-family: var(--sans); font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; color: var(--text-mute); }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--chalk); display: grid; place-items: center; color: var(--text-soft); transition: background .25s; }
.icon-btn:hover { background: var(--white); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid var(--chalk); }
.content { padding: 26px 28px 60px; display: grid; gap: 22px; align-content: start; animation: viewIn .5s var(--ease-spring) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* Bausteine */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; border: 1px solid transparent; transition: transform .4s var(--ease-spring), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-brass { background: var(--brass); color: #fff; } .btn-brass:hover { background: var(--brass-2); }
.btn-moss { background: var(--moss); color: var(--on-dark); } .btn-moss:hover { background: var(--moss-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); } .btn-ghost:hover { border-color: var(--text); background: var(--chalk); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.card { background: var(--chalk); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(28, 42, 36, .3); padding: 20px 22px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 20px; }
.card-head .more { font-size: 13px; font-weight: 600; color: var(--brass); }
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, 1fr); } .g-3 { grid-template-columns: repeat(3, 1fr); } .g-2 { grid-template-columns: repeat(2, 1fr); } .g-21 { grid-template-columns: 1.6fr 1fr; } .g-12 { grid-template-columns: 1fr 1.6fr; } .g-31 { grid-template-columns: 2.2fr 1fr; }
.kpi { display: grid; gap: 6px; }
.kpi-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }
.kpi .num { font-size: 36px; line-height: 1; }
.kpi .num small { display: block; font-size: 13px; color: var(--text-soft); margin-top: 4px; letter-spacing: 0; }
.kpi-trend { font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.kpi-trend b { font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.up b { background: var(--ok-soft); color: var(--ok); } .down b { background: var(--bad-soft); color: var(--bad); } .flat b { background: var(--stone-2); color: var(--text-soft); }
.spark { height: 34px; margin-top: 4px; }
.spark path { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.spark .area { fill: url(#sparkFill); stroke: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--ok-soft); color: var(--ok); } .p-warn { background: var(--warn-soft); color: var(--warn); } .p-bad { background: var(--bad-soft); color: var(--bad); } .p-info { background: var(--info-soft); color: var(--info); } .p-mute { background: var(--stone-2); color: var(--text-soft); } .p-brass { background: var(--brass-soft); color: var(--brass); }
.pill.no-dot::before { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--text-soft); transition: all .25s; }
.chip.is-active, .chip:hover { background: var(--moss); color: var(--on-dark); border-color: var(--moss); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr.is-link { cursor: pointer; } tbody tr.is-link:hover { background: rgba(255, 255, 255, .6); }
td.r, th.r { text-align: right; }
.obj-cell { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.obj-cell img { width: 62px; height: 46px; object-fit: cover; border-radius: var(--r); flex: none; }
.obj-cell b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.obj-cell span { font-size: 12px; color: var(--text-soft); }
.portal-dots { display: flex; gap: 5px; }
.portal-dots i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 800; font-style: normal; letter-spacing: 0; color: #fff; background: var(--stone-3); }
.portal-dots i.on { background: var(--moss); } .portal-dots i.err { background: var(--bad); } .portal-dots i.sync { background: var(--brass); }
.feed { display: grid; gap: 0; }
.feed li { list-style: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--stone-2); }
.feed i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed li b { font-weight: 600; }
.feed li span { color: var(--text-soft); }
.feed time { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.agenda { display: grid; gap: 8px; }
.agenda li { list-style: none; display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--stone); font-size: 13px; }
.agenda li .num { font-size: 18px; }
.agenda li b { display: block; font-weight: 600; }
.agenda li span { color: var(--text-soft); font-size: 12px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top; }
.avatars { display: flex; }
.avatars img { margin-left: -8px; border: 2px solid var(--chalk); }
.avatars img:first-child { margin-left: 0; }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--text-mute); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--moss); transition: fill .2s; transform-origin: bottom; animation: barUp .9s var(--ease-out) both; }
.chart .bar.b2 { fill: var(--brass); } .chart .bar.b3 { fill: var(--stone-3); } .chart .bar.b4 { fill: var(--moss-4); }
@keyframes barUp { from { transform: scaleY(0); } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--moss); }
.legend i.b2 { background: var(--brass); } .legend i.b3 { background: var(--stone-3); } .legend i.b4 { background: var(--moss-4); }
.progress { height: 8px; border-radius: 8px; background: var(--stone-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-2)); border-radius: 8px; width: var(--w, 50%); transition: width 1s var(--ease-out); }
.progress.p-ok span { background: var(--ok); }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--stone-3); border: 0; transition: background .3s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-spring); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle.is-on { background: var(--ok); } .toggle.is-on::after { transform: translateX(18px); }
.field { display: grid; gap: 5px; }
.field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid .span2 { grid-column: span 2; } .form-grid .span3 { grid-column: span 3; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--text-soft); position: relative; }
.tabs button.is-active { color: var(--text); }
.tabs button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brass); }
.tab-panel { display: none; } .tab-panel.is-active { display: block; animation: viewIn .4s var(--ease-spring) both; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--text-soft); transition: all .25s; background: var(--white); cursor: pointer; }
.drop.is-over { border-color: var(--brass); background: var(--brass-soft); color: var(--text); }
.drop svg { width: 30px; height: 30px; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop b { font-weight: 600; color: var(--text); }
.media-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--stone-2); animation: viewIn .5s var(--ease-spring) both; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .cover { position: absolute; left: 8px; top: 8px; }
.media .up { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass); transform-origin: left; animation: upl 1.6s var(--ease-out) both; }
@keyframes upl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.media-actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; }
.media:hover .media-actions { opacity: 1; }
.media-actions button { border: 0; background: rgba(250, 248, 244, .95); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 600; }
.media-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.media-file i { width: 34px; height: 34px; border-radius: var(--r); background: var(--moss); color: var(--on-dark); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.media-file b { display: block; font-weight: 600; }
.media-file span { font-size: 12px; color: var(--text-soft); }
.portal-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portal-row:last-child { border-bottom: 0; }
.portal-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; letter-spacing: -.02em; }
.portal-row b { display: block; font-weight: 600; }
.portal-row span { font-size: 12px; color: var(--text-soft); }
.log { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; background: var(--moss); color: var(--on-dark-soft); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; max-height: 190px; overflow: auto; }
.log b { color: var(--brass-2); font-weight: 600; } .log .ok { color: #8fcaa4; } .log .err { color: #e59a8f; }
.split { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.inbox { display: grid; gap: 4px; }
.inbox-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r); cursor: pointer; transition: background .2s; border: 1px solid transparent; }
.inbox-item:hover { background: var(--white); }
.inbox-item.is-active { background: var(--white); border-color: var(--line); box-shadow: 0 1px 0 var(--line); }
.inbox-item b { font-weight: 600; }
.inbox-item.is-new b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 8px; transform: translateY(-1px); }
.inbox-item span { font-size: 12px; color: var(--text-soft); grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item time { font-size: 11px; color: var(--text-mute); }
.msg { display: grid; gap: 18px; }
.msg-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.msg-head h2 { font-size: 24px; margin-bottom: 4px; }
.msg-meta { font-size: 13px; color: var(--text-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.msg-body { background: var(--white); border-radius: var(--r-lg); padding: 18px 20px; font-size: 14px; line-height: 1.7; border: 1px solid var(--line); }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.score div { padding: 12px 14px; border-radius: var(--r); background: var(--stone); }
.score div b { display: block; font-weight: 600; margin-bottom: 2px; }
.score div span { font-size: 12px; color: var(--text-soft); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: 54px repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.cal-head { padding: 10px 6px; font-size: 12px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); color: var(--text-soft); }
.cal-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--text); }
.cal-head.is-today b { color: var(--brass); }
.cal-time { font-size: 11px; color: var(--text-mute); text-align: right; padding: 0 8px; height: 54px; border-top: 1px solid var(--line); transform: translateY(-7px); }
.cal-col { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 53px, var(--line) 53px 54px); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 6px; padding: 6px 8px; font-size: 11px; line-height: 1.3; background: var(--moss); color: var(--on-dark); overflow: hidden; cursor: pointer; transition: transform .3s var(--ease-spring), box-shadow .3s; border-left: 3px solid var(--brass); }
.ev:hover { transform: scale(1.02); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); z-index: 2; }
.ev b { display: block; font-weight: 600; }
.ev.e-open { background: var(--brass-soft); color: var(--text); border-left-color: var(--brass); }
.ev.e-int { background: var(--stone-2); color: var(--text); border-left-color: var(--text-mute); }
.ev.e-notar { background: var(--info-soft); color: var(--text); border-left-color: var(--info); }
.rent-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sepa { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--moss); color: var(--on-dark); }
.sepa b { display: block; font-weight: 600; }
.sepa span { font-size: 12px; color: var(--on-dark-soft); }
.sepa .toggle { margin-left: auto; }
.donut { width: 150px; height: 150px; }
.donut circle { fill: none; stroke-width: 18; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray 1s var(--ease-out); }
.stat-list { display: grid; gap: 10px; }
.stat-list li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.stat-list .progress { grid-column: 1 / -1; }
.owner-card { display: flex; gap: 16px; align-items: center; }
.owner-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.empty { text-align: center; color: var(--text-soft); padding: 40px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 90; background: var(--moss); color: var(--on-dark); padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s, transform .5s var(--ease-spring); pointer-events: none; max-width: min(90vw, 560px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--brass); color: #fff; font-size: 12px; font-weight: 600; }
.demo-bar a { text-decoration: underline; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(28, 42, 36, .55); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-panel { background: var(--chalk); border-radius: var(--r-lg); width: min(560px, 100%); padding: 26px; display: grid; gap: 16px; transform: translateY(10px); transition: transform .5s var(--ease-spring); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.modal.is-open .modal-panel { transform: none; }
.typing::after { content: "▍"; color: var(--brass); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview-card { border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.preview-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.preview-card div { padding: 14px 16px; }
.preview-card b { font-family: var(--display); font-weight: 400; font-size: 18px; display: block; }
.preview-card span { font-size: 12px; color: var(--text-soft); }
.side-toggle { display: none; }
@media (max-width: 1100px) {
  .g-4, .rent-kpis { grid-template-columns: repeat(2, 1fr); }
  .g-3, .g-21, .g-12, .g-31, .g-2, .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .top-search { display: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); z-index: 40; transform: translateX(-100%); transition: transform .4s var(--ease-spring); }
  .side.is-open { transform: none; }
  .side-toggle { display: grid; }
  .content { padding: 18px 16px 60px; }
  .top { padding: 12px 16px; }
  .g-4, .rent-kpis, .form-grid, .media-grid { grid-template-columns: 1fr 1fr; }
  .cal { grid-template-columns: 44px repeat(6, minmax(90px, 1fr)); overflow-x: auto; }
  .content, .grid > *, .split > *, .main { min-width: 0; }
  .card { overflow-x: auto; }
  .top h1 { font-size: 20px; }
  .top .btn-brass { padding: 9px 11px; font-size: 0; gap: 0; }
  .top .btn-brass svg { width: 16px; height: 16px; }
  .demo-bar { font-size: 11px; text-align: center; }
}
