/* Offensivst Hub – Design-System „Studio × Bento“: mattes Glas, weiche Verläufe, runde Kacheln, eine Farbe pro App. Systemschrift + JetBrains Mono. */
@font-face { font-family: 'Work Sans'; src: url('/fonts/work-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; src: url('/fonts/work-sans-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; src: url('/fonts/work-sans-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #F3F3F7; --surface: #FFFFFF; --surface-2: rgb(20 20 40 / .05); --surface-3: rgb(20 20 40 / .09); --border: rgb(20 20 40 / .09); --border-strong: rgb(20 20 40 / .18);
  --glass: rgb(255 255 255 / .62); --panel: rgb(255 255 255 / .58); --card: rgb(255 255 255 / .72); --bar: rgb(250 250 253 / .72); --edge: rgb(255 255 255 / .75); --deskc: #E7E7EE;
  --mesh: radial-gradient(900px 600px at 78% 8%, #FFD9C7 0, transparent 60%), radial-gradient(800px 700px at 20% 100%, #C9D8FF 0, transparent 60%), radial-gradient(700px 500px at 60% 60%, #F1D4FF 0, transparent 65%);
  --text: #1D1D1F; --text-2: #5C5C66; --text-3: #84848C; --inv: #FFFFFF;
  --accent: #0071E3; --accent-subtle: rgb(0 113 227 / .12); --hot: #F0345C; --hot-subtle: rgb(240 52 92 / .12);
  --success: #1B8A4B; --success-subtle: rgb(27 138 75 / .13); --warn: #A35A00; --warn-subtle: rgb(230 150 20 / .16); --danger: #C9271B; --danger-subtle: rgb(201 39 27 / .11);
  --shadow-pop: 0 1px 2px rgb(0 0 0 / .06), 0 28px 56px -18px rgb(40 30 80 / .32); --shadow-card: 0 16px 28px -22px rgb(40 30 80 / .42); --pop-edge: transparent;
  --paper: #FFFFFF; --paper-ink: #111110;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace; --script: 'Courier Prime', 'Courier New', Courier, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1); --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px; --top: 52px; --side: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #16161B; --surface: #25252B; --surface-2: rgb(255 255 255 / .07); --surface-3: rgb(255 255 255 / .12); --border: rgb(255 255 255 / .10); --border-strong: rgb(255 255 255 / .20);
  --glass: rgb(52 52 62 / .56); --panel: rgb(34 34 41 / .62); --card: rgb(58 58 68 / .5); --bar: rgb(30 30 36 / .72); --edge: rgb(255 255 255 / .09); --deskc: #1C1C22;
  --mesh: radial-gradient(900px 600px at 78% 8%, rgb(255 140 90 / .17) 0, transparent 60%), radial-gradient(800px 700px at 20% 100%, rgb(90 130 255 / .20) 0, transparent 60%), radial-gradient(700px 500px at 60% 60%, rgb(190 110 255 / .13) 0, transparent 65%);
  --text: #F5F5F7; --text-2: #B6B6C0; --text-3: #878792; --inv: #FFFFFF; --accent: #2B8FFF; --accent-subtle: rgb(43 143 255 / .2); --hot: #FF5C7C; --hot-subtle: rgb(255 92 124 / .2);
  --success: #45CF8B; --success-subtle: rgb(69 207 139 / .16); --warn: #F2B24C; --warn-subtle: rgb(242 178 76 / .16); --danger: #FF7265; --danger-subtle: rgb(255 114 101 / .16);
  --shadow-pop: 0 28px 56px -18px rgb(0 0 0 / .6); --shadow-card: 0 16px 28px -22px rgb(0 0 0 / .6); --pop-edge: transparent; --paper: #2B2B32; --paper-ink: #ECECF1; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #16161B; --surface: #25252B; --surface-2: rgb(255 255 255 / .07); --surface-3: rgb(255 255 255 / .12); --border: rgb(255 255 255 / .10); --border-strong: rgb(255 255 255 / .20);
  --glass: rgb(52 52 62 / .56); --panel: rgb(34 34 41 / .62); --card: rgb(58 58 68 / .5); --bar: rgb(30 30 36 / .72); --edge: rgb(255 255 255 / .09); --deskc: #1C1C22;
  --mesh: radial-gradient(900px 600px at 78% 8%, rgb(255 140 90 / .17) 0, transparent 60%), radial-gradient(800px 700px at 20% 100%, rgb(90 130 255 / .20) 0, transparent 60%), radial-gradient(700px 500px at 60% 60%, rgb(190 110 255 / .13) 0, transparent 65%);
  --text: #F5F5F7; --text-2: #B6B6C0; --text-3: #878792; --inv: #FFFFFF; --accent: #2B8FFF; --accent-subtle: rgb(43 143 255 / .2); --hot: #FF5C7C; --hot-subtle: rgb(255 92 124 / .2);
  --success: #45CF8B; --success-subtle: rgb(69 207 139 / .16); --warn: #F2B24C; --warn-subtle: rgb(242 178 76 / .16); --danger: #FF7265; --danger-subtle: rgb(255 114 101 / .16);
  --shadow-pop: 0 28px 56px -18px rgb(0 0 0 / .6); --shadow-card: 0 16px 28px -22px rgb(0 0 0 / .6); --pop-edge: transparent; --paper: #2B2B32; --paper-ink: #ECECF1; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/20px var(--font); letter-spacing: -0.006em; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: 28px; line-height: 32px; letter-spacing: -0.022em; }
h2 { font-size: 20px; line-height: 28px; letter-spacing: -0.017em; }
h3 { font-size: 16px; line-height: 24px; letter-spacing: -0.011em; }
h4 { font-size: 14px; line-height: 20px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a.link:hover { text-decoration-color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent-subtle); color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mono, .num { font-family: var(--mono); font-feature-settings: 'zero' 0; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.t11 { font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.t12 { font-size: 12px; line-height: 16px; } .t13 { font-size: 13px; line-height: 20px; letter-spacing: -0.003em; } .t16 { font-size: 16px; line-height: 24px; }
.c2 { color: var(--text-2); } .c3 { color: var(--text-3); } .accent { color: var(--accent); } .ok { color: var(--success); } .bad { color: var(--danger); } .warn { color: var(--warn); }
.w500 { font-weight: 500; } .w600 { font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; } .row.g4 { gap: 4px; } .row.g12 { gap: 12px; } .row.g16 { gap: 16px; } .row.g24 { gap: 24px; } .row.top { align-items: flex-start; } .row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; } .stack { display: flex; flex-direction: column; gap: 12px; } .stack.g4 { gap: 4px; } .stack.g8 { gap: 8px; } .stack.g16 { gap: 16px; } .stack.g24 { gap: 24px; } .stack.g32 { gap: 32px; }
.grow { flex: 1; min-width: 0; } .sp { flex: 1; } .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px; border-bottom: 1px solid var(--border); background: var(--bg); }
.hubbtn { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 6px 0 4px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; cursor: pointer; color: var(--text); transition: background .12s var(--ease); }
.hubbtn:hover, .hubbtn[aria-expanded="true"] { background: var(--surface-2); }
.hubmark { width: 24px; height: 24px; border-radius: 4px; background: var(--text); color: var(--inv); display: grid; place-items: center; font: 700 13px/1 var(--font); letter-spacing: -0.04em; }
.hubbtn .chev { color: var(--text-3); transition: transform .16s var(--ease); }
.hubbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--text); } .crumbs .sep { color: var(--text-3); } .crumbs .cur { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbtn { display: inline-flex; align-items: center; gap: 8px; width: 240px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-3); cursor: pointer; transition: border-color .12s var(--ease); }
.searchbtn:hover { border-color: var(--border-strong); } .searchbtn span.sp { text-align: left; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font: 600 11px/1 var(--font); color: var(--text-2); letter-spacing: 0; flex: none; overflow: hidden; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
kbd, .kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; font: 500 11px/1 var(--mono); color: var(--text-3); background: var(--surface); }

.switcher { position: fixed; top: 52px; left: 8px; z-index: 60; width: 336px; padding: 12px; background: var(--surface); border: 1px solid var(--pop-edge); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.switcher.anim { animation: pop .16s var(--ease); transform-origin: top left; }
.switcher .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.apptile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 88px; border-radius: var(--r); color: var(--text-2); text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; transition: background .12s var(--ease), color .12s var(--ease); }
.apptile:hover, .apptile.on { background: var(--surface-2); color: var(--text); }
.apptile svg { width: 22px; height: 22px; }
.apptile .ext { font-size: 10px; color: var(--text-3); margin-top: -6px; font-weight: 450; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.layout { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - var(--top)); }
.layout.noside { grid-template-columns: 1fr; }
.sidebar { border-right: 1px solid var(--border); padding: 12px 8px; position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; }
.sec { padding: 16px 8px 4px; color: var(--text-3); }
.navrow { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden; }
.navrow:hover { background: var(--surface-2); color: var(--text); } .navrow.on { background: var(--surface-2); color: var(--text); }
.navrow svg { width: 16px; height: 16px; flex: none; } .navrow .cnt { margin-left: auto; font: 400 11px var(--mono); color: var(--text-3); }
.navrow .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.main { min-width: 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 32px 32px 96px; }
.page.wide { max-width: none; padding: 24px 24px 96px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.pagehead .sub { margin-top: 4px; color: var(--text-2); }
.eyebrow { color: var(--text-3); margin-bottom: 6px; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s var(--ease), border-color .12s var(--ease), transform .1s var(--ease); user-select: none; }
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--text); color: var(--inv); border-color: var(--text); } .btn.primary:hover { background: color-mix(in oklab, var(--text) 86%, var(--bg)); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); } .btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--danger); } .btn.danger:hover { background: var(--danger-subtle); border-color: var(--danger-subtle); }
.btn.sm { height: 28px; padding: 0 8px; font-size: 13px; } .btn.lg { height: 40px; padding: 0 16px; } .btn.wide { width: 100%; }
.btn.icon { width: 32px; padding: 0; } .btn.sm.icon { width: 28px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .45; pointer-events: none; }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-sm); background: var(--surface-2); gap: 2px; }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-2); }
.input, input.input, select.input, textarea.input, .auth-card input { height: 32px; width: 100%; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 450; transition: border-color .12s var(--ease); outline: none; }
textarea.input { height: auto; min-height: 80px; padding: 8px 10px; line-height: 20px; resize: vertical; }
.input:hover { border-color: var(--border-strong); } .input:focus, .auth-card input:focus { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.input::placeholder { color: var(--text-3); }
select.input { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238E8D88' stroke-width='1.5'%3E%3Cpath d='m5 6.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--text); }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .formgrid .full { grid-column: 1 / -1; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { background: var(--accent-subtle); color: var(--accent); } .badge.ok { background: var(--success-subtle); color: var(--success); } .badge.warn { background: var(--warn-subtle); color: var(--warn); } .badge.bad { background: var(--danger-subtle); color: var(--danger); }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--text-3); }
.status-dot.live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.card.pad { padding: 16px; } .card.pad24 { padding: 24px; }
.card.hov { transition: border-color .12s var(--ease); } .card.hov:hover { border-color: var(--border-strong); }
.section { margin-top: 40px; } .section > .sechead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.list { border-top: 1px solid var(--border); }
.li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid var(--border); transition: background .12s var(--ease); }
a.li:hover, .li.click:hover { background: var(--surface-2); cursor: pointer; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; } .kv dt { color: var(--text-3); } .kv dd { margin: 0; }
.empty { padding: 48px 0; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- Tabellen ---------- */
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 20px; }
.tbl th { position: sticky; top: var(--top); z-index: 2; background: var(--surface); text-align: left; font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: var(--text-3);
  padding: 8px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.total td { border-top: 1px solid var(--text); border-bottom: 0; font-weight: 600; background: transparent; }
.tbl tr.off td { color: var(--text-3); } .tbl tr.off td .cellin { text-decoration: line-through; text-decoration-color: var(--border-strong); }
.cellin { width: 100%; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; outline: none; }
.cellin:hover { border-color: var(--border); } .cellin:focus { border-color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.cellin.num { text-align: right; } input.cellin::-webkit-outer-spin-button, input.cellin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input.cellin[type=number] { -moz-appearance: textfield; }
.grip { cursor: grab; color: var(--text-3); opacity: 0; transition: opacity .12s; } tr:hover .grip, .dragrow:hover .grip { opacity: 1; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgb(10 10 9 / .32); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; animation: fade .16s var(--ease); }
.modal { width: 100%; max-width: 560px; max-height: 80vh; overflow: auto; background: var(--surface); border: 1px solid var(--pop-edge); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); }
.modal.lg { max-width: 820px; } .modal.xl { max-width: 1080px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 20px; } .modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.menu { position: fixed; z-index: 90; min-width: 200px; padding: 4px; background: var(--surface); border: 1px solid var(--pop-edge); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop .16s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; cursor: pointer; color: var(--text); font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); } .menu .danger { color: var(--danger); } .menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menu svg { width: 16px; height: 16px; color: var(--text-2); } .menu .hint { margin-left: auto; }
.palette { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--pop-edge); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; animation: pop .16s var(--ease); margin-top: 5vh; }
.palette input { width: 100%; height: 52px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--border); background: transparent; font-size: 16px; outline: none; }
.palette .res { max-height: 420px; overflow: auto; padding: 6px; }
.palette .grp { padding: 10px 10px 4px; color: var(--text-3); }
.palette .it { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer; }
.palette .it.on { background: var(--surface-2); } .palette .it svg { width: 16px; height: 16px; color: var(--text-2); }
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--text); color: var(--inv); padding: 10px 14px; border-radius: var(--r); font-weight: 500; box-shadow: var(--shadow-pop); animation: pop .2s var(--ease); display: flex; gap: 12px; align-items: center; max-width: 560px; }
.toast.err { background: var(--danger); color: #fff; }
.toast button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 0; }
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--warn-subtle); color: var(--warn); font-weight: 500; margin-bottom: 16px; }

/* ---------- Hub ---------- */
.hello { padding: 8px 0 32px; } .hello h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.appgrid a { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-height: 120px; background: var(--surface); transition: background .12s var(--ease); position: relative; }
.appgrid a:hover { background: var(--surface-2); }
.appgrid a svg { width: 20px; height: 20px; color: var(--text); }
.appgrid .nm { font-weight: 600; } .appgrid .ds { color: var(--text-3); font-size: 12px; line-height: 16px; margin-top: -10px; }
.appgrid .out { position: absolute; top: 16px; right: 16px; width: 14px !important; height: 14px !important; color: var(--text-3) !important; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat .v { font: 500 20px/28px var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .stat .l { color: var(--text-3); font-size: 12px; }
.feed .it { display: grid; grid-template-columns: 68px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.feed .it .ts { color: var(--text-3); font: 400 11px/20px var(--mono); }
.projrow { display: grid; grid-template-columns: 1fr 140px 120px 96px; align-items: center; gap: 12px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface); cursor: pointer; }
.chip:hover { border-color: var(--border-strong); color: var(--text); } .chip.on { background: var(--text); color: var(--inv); border-color: var(--text); }
.chip svg { width: 14px; height: 14px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto; padding-bottom: 24px; align-items: start; }
.kcol { min-height: 200px; border-radius: var(--r); transition: background .12s var(--ease); }
.kcol.over { background: var(--surface-2); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; font-weight: 600; position: sticky; top: 0; }
.kcol-head .cnt { font: 400 12px var(--mono); color: var(--text-3); } .kcol-head .sum { margin-left: auto; font: 400 12px var(--mono); color: var(--text-3); }
.kcard { position: relative; padding: 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: grab; transition: border-color .12s var(--ease), box-shadow .12s var(--ease); }
.kcard:hover { border-color: var(--border-strong); }
.kcard.dragging { opacity: .4; } .kcard.overdue::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.kcard .t { font-weight: 500; } .kcard .m { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 12px; margin-top: 6px; }
.dropline { height: 2px; background: var(--text); border-radius: 1px; margin: -5px 0 3px; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.person { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.person .ph { aspect-ratio: 1; border-radius: var(--r); background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-3); font: 600 28px var(--font); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .nm { font-weight: 600; } .person .rl { color: var(--text-2); font-size: 13px; margin-top: -8px; }

/* ---------- Drehplan ---------- */
.sched { max-width: 1240px; margin: 0 auto; }
.sched-head { display: flex; gap: 24px; align-items: flex-start; padding: 8px 0 24px; }
.sched-logo { width: 120px; height: 64px; border: 1px dashed var(--border-strong); border-radius: var(--r); display: grid; place-items: center; color: var(--text-3); cursor: pointer; overflow: hidden; flex: none; font-size: 12px; }
.sched-logo img { max-width: 100%; max-height: 100%; object-fit: contain; } .sched-logo.has { border-style: solid; border-color: transparent; background: none; }
.titlein { width: 100%; border: 0; background: none; outline: none; padding: 0; font: 600 28px/32px var(--font); letter-spacing: -0.022em; color: var(--text); }
.subin { width: 100%; border: 0; background: none; outline: none; padding: 0; font: 450 14px/20px var(--font); color: var(--text-2); margin-top: 4px; }
.sblock { margin-bottom: 32px; }
.sblock-head { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--text); position: relative; }
.sblock-head .kind { color: var(--text-3); min-width: 64px; }
.sblock-head input.bt { border: 0; background: none; outline: none; font: 600 16px/24px var(--font); letter-spacing: -0.011em; color: var(--text); padding: 0; min-width: 40px; }
.sblock-head input.bd { border: 0; background: none; outline: none; font: 500 13px/20px var(--mono); color: var(--text-2); padding: 0; width: 180px; }
.sblock-head .tools { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; } .sblock:hover .sblock-head .tools, .sblock-head .tools:focus-within { opacity: 1; }
.sblock-head .colorbar { position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; }
.sgrid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; line-height: 18px; }
.sgrid th { font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; color: var(--text-3); text-align: left; padding: 8px 6px 6px; border-bottom: 1px solid var(--border); position: relative; }
.sgrid th input { width: 100%; border: 0; background: none; outline: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: uppercase; color: inherit; }
.sgrid th input:focus { color: var(--text); }
.sgrid th .resize { position: absolute; right: -3px; top: 6px; bottom: 6px; width: 6px; cursor: col-resize; z-index: 3; }
.sgrid th .resize::after { content: ''; position: absolute; left: 2px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.sgrid th .resize:hover::after { background: var(--text); }
.sgrid td { padding: 0; border-bottom: 1px solid var(--border); vertical-align: top; position: relative; }
.sgrid td .cell { display: block; width: 100%; min-height: 34px; padding: 8px 6px; border: 0; background: transparent; outline: none; resize: none; overflow: hidden; font: inherit; color: inherit; line-height: 18px; white-space: pre-wrap; word-break: break-word; }
.sgrid td .cell:focus { box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); border-radius: 2px; }
.sgrid td.first .cell { font-family: var(--mono); font-size: 12px; }
.sgrid tr.textrow td .cell { text-align: center; font-weight: 600; color: var(--text-2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.sgrid tr.textrow td { background: var(--surface-2); }
.sgrid tr.b .cell { font-weight: 600; } .sgrid tr.i .cell { font-style: italic; }
.sgrid td.handle { width: 28px; } .sgrid td.handle .grip { display: grid; place-items: center; height: 34px; }
.sgrid td.acts { width: 28px; } .sgrid td.acts button { opacity: 0; } .sgrid tr:hover td.acts button { opacity: 1; }
.sgrid tr.drop-before td { box-shadow: inset 0 2px 0 var(--text); }
.sgrid tr.dragging td { opacity: .35; }
.rowtint { position: absolute; inset: 0; pointer-events: none; opacity: .14; }
.addrow { display: flex; gap: 4px; padding: 6px 0 0 28px; opacity: .0; transition: opacity .12s; } .sblock:hover .addrow, .addrow:focus-within { opacity: 1; }
.textblock textarea { width: 100%; min-height: 80px; border: 0; border-left: 2px solid var(--border-strong); background: none; outline: none; padding: 8px 12px; font: 450 14px/22px var(--font); color: var(--text); resize: vertical; }
.addblock { display: flex; gap: 8px; justify-content: center; padding: 24px 0; border-top: 1px dashed var(--border); }
.palette-colors { display: flex; gap: 6px; padding: 6px 8px; }
.palette-colors button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer; padding: 0; }

/* ---------- Login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 28px; } .auth-card .muted { color: var(--text-2); } .auth-card .err { color: var(--danger); font-weight: 500; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.auth-card .btn { height: 40px; }
.auth-mark { width: 40px; height: 40px; border-radius: 6px; background: var(--text); color: var(--inv); display: grid; place-items: center; font: 700 20px/1 var(--font); margin-bottom: 8px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) { .cols2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; } .sidebar { display: none; } .page { padding: 20px 16px 80px; } .page.wide { padding: 16px 16px 80px; }
  .searchbtn { width: 32px; padding: 0; justify-content: center; } .searchbtn .sp, .searchbtn kbd { display: none; }
  .formgrid, .cols3 { grid-template-columns: 1fr; } .projrow { grid-template-columns: 1fr 96px; } .projrow > :nth-child(2), .projrow > :nth-child(3) { display: none; }
  .hello h1 { font-size: 32px; line-height: 36px; } .appgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .appgrid a { min-height: 88px; padding: 14px; gap: 10px; } .appgrid .ds { display: none; }
  .switcher { left: 8px; right: 8px; width: auto; } .crumbs .hide-m { display: none; } .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Druck ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; color: #000; font-size: 11px; }
  .topbar, .sidebar, .no-print, .addrow, .addblock, .sblock-head .tools, td.handle, td.acts, .toasts, .resize { display: none !important; }
  .layout, .layout.noside { display: block; } .page, .page.wide { padding: 0; max-width: none; } .sched { max-width: none; }
  .sgrid { font-size: 10px; } .sgrid th { position: static; } .sgrid td .cell { min-height: 0; padding: 4px 5px; } .sgrid tr { break-inside: avoid; } .sgrid thead { display: table-header-group; }
  .sblock { break-inside: auto; margin-bottom: 18px; } .sblock-head { break-after: avoid; border-color: #000; }
  input, textarea { border: 0 !important; }
}

/* ================= Shell v2: linke Leiste (Apps + Projekte), App-Leiste, Inhalt ================= */
.app { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.app.has-side { grid-template-columns: auto auto minmax(0, 1fr); }
.gsb { width: 236px; display: flex; flex-direction: column; gap: 2px; padding: 10px 8px 8px; border-right: 1px solid var(--border); background: var(--surface-2); overflow: hidden; transition: width .2s var(--ease); }
.gsb-top { display: flex; align-items: center; gap: 4px; padding: 2px 2px 8px; }
.gsb-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 32px; padding: 0 4px; border-radius: var(--r-sm); font-weight: 600; letter-spacing: -0.011em; font-size: 15px; }
.gsb-brand:hover { background: var(--surface-3); }
.gsb-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; margin: 0 0 4px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-3); cursor: pointer; text-align: left; font-size: 13px; }
.gsb-search:hover { border-color: var(--border-strong); } .gsb-search svg { flex: none; }
.gsb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 0 4px; }
.gsb .navrow { height: 30px; flex: none; } .gsb .navrow > span:not(.badge-n):not(.dot):not(.st):not(.appic) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.navrow.on { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.navrow .ext { color: var(--text-3); opacity: 0; } .navrow:hover .ext { opacity: 1; }
.navrow .badge-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px var(--font); text-align: center; letter-spacing: 0; }
.navrow.proj { font-weight: 450; } .navrow.proj .dot { width: 7px; height: 7px; margin: 0 4.5px; border-radius: 50%; } .navrow.proj .st { font-size: 11px; color: var(--text-3); } .navrow.proj.more { color: var(--text-3); }
.sec .secbtn { color: var(--text-3); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; } .sec .secbtn:hover { background: var(--surface-3); color: var(--text); }
.gsb-user { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; margin-top: 4px; border: 0; border-top: 1px solid var(--border); background: none; cursor: pointer; text-align: left; font-weight: 500; color: var(--text); }
.gsb-user svg { color: var(--text-3); flex: none; }
.nav-collapsed .gsb { width: 56px; }
.nav-collapsed .gsb-name, .nav-collapsed .gsb .navrow > span, .nav-collapsed .gsb .sec, .nav-collapsed .gsb-search span, .nav-collapsed .gsb-search kbd, .nav-collapsed .gsb .navrow.proj, .nav-collapsed .gsb .navrow.lnk, .nav-collapsed .gsb-user > span:not(.avatar), .nav-collapsed .gsb-user > svg, .nav-collapsed .navrow .ext { display: none; }
.nav-collapsed .gsb-top { flex-direction: column; } .nav-collapsed .gsb-brand { flex: none; padding: 0; justify-content: center; width: 40px; }
.nav-collapsed .gsb .navrow { justify-content: center; padding: 0; position: relative; height: 34px; } .nav-collapsed .gsb .navrow svg { width: 18px; height: 18px; }
.nav-collapsed .gsb .navrow .badge-n { display: block; position: absolute; top: 2px; right: 4px; min-width: 14px; height: 14px; font-size: 9px; line-height: 14px; padding: 0 3px; }
.nav-collapsed .gsb-search { justify-content: center; padding: 0; } .nav-collapsed .gsb-user { justify-content: center; padding: 0; }
.gsb-shade { display: none; }
.asb { width: 272px; border-right: 1px solid var(--border); overflow-y: auto; padding: 10px 8px 24px; background: var(--bg); }
.main { overflow: auto; min-width: 0; position: relative; display: flex; flex-direction: column; }
.main > .page, .main > .story, .main > .launch { flex: 1 0 auto; width: 100%; }
.topbar { flex: none; padding: 0 16px; }
.only-m { display: none; }
/* App-Leiste (Bibliothek) */
.lib { display: flex; flex-direction: column; gap: 2px; }
.lib-head { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px; margin-bottom: 6px; font-size: 15px; letter-spacing: -0.011em; }
.lib-filter { margin: 0 0 6px; height: 30px; font-size: 13px; }
.lib-group { margin-bottom: 6px; }
.lib-g { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 6px; border: 0; background: none; cursor: pointer; color: var(--text-3); font: 500 11px/16px var(--font); letter-spacing: .04em; text-transform: uppercase; text-align: left; border-radius: var(--r-sm); }
.lib-g:hover { color: var(--text); } .lib-g .cnt { margin-left: auto; font-family: var(--mono); letter-spacing: 0; }
.lib-i { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 24px; border-radius: var(--r-sm); font-weight: 500; color: var(--text-2); cursor: pointer; }
.lib-i:hover { background: var(--surface-2); color: var(--text); } .lib-i.on { background: var(--surface-2); color: var(--text); }
.lib-i .m { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.lib-sub { margin: 2px 0 6px 24px; padding-left: 8px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.lib-v { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px 0 8px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); cursor: pointer; }
.lib-v:hover { background: var(--surface-2); color: var(--text); } .lib-v.on { color: var(--text); font-weight: 600; }
.lib-v .sw { width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--border-strong); flex: none; }
.lib-v .mm { opacity: 0; } .lib-v:hover .mm { opacity: 1; }
.lib-add { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; border-radius: var(--r-sm); text-align: left; }
.lib-add:hover { color: var(--text); background: var(--surface-2); }
/* Hub-Startseite: nur Apps */
.launch { max-width: 1080px; margin: 0 auto; padding: 56px 40px 96px; }
.launch h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.launch-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 148px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); position: relative; transition: border-color .12s var(--ease), transform .12s var(--ease); }
.launch-tile:hover { border-color: var(--text); transform: translateY(-1px); }
.launch-tile .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.launch-tile .nm { font-weight: 600; font-size: 17px; letter-spacing: -0.015em; } .launch-tile .ds { color: var(--text-3); font-size: 12.5px; line-height: 17px; margin-top: 2px; }
.launch-tile .out { position: absolute; top: 18px; right: 18px; color: var(--text-3); } .launch-tile .badge-n { position: absolute; top: 18px; right: 18px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font: 600 12px/22px var(--font); text-align: center; padding: 0 6px; }

/* ================= Story: A4-Seiten ================= */
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; --desk: var(--surface-2); background: var(--desk); min-height: 0; }
.story-col { min-width: 0; display: flex; flex-direction: column; }
.story-toolbar { position: sticky; top: var(--top); z-index: 6; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
select.input.elsel { width: 176px; flex: none; } .story-toolbar .check, .story-toolbar .hint { white-space: nowrap; }
.desk { flex: 1; padding: 24px 0 48px; overflow: hidden; }
.desk-inner { width: 794px; margin: 0 auto; transform-origin: 0 0; }
.sheet, .titlepage { width: 794px; background: var(--paper); color: var(--paper-ink); font: 400 16px/16px var(--script); letter-spacing: 0; position: relative; box-shadow: 0 0 0 1px var(--border), 0 12px 32px -18px rgb(0 0 0 / .28); }
.sheet { padding: 96px 96px 96px 144px; counter-reset: scene; }
.sheet .el { position: relative; outline: none; white-space: pre-wrap; overflow-wrap: break-word; min-height: 16px; caret-color: var(--accent); }
.sheet .el:empty::after { content: attr(data-ph); color: #b3b2ad; pointer-events: none; font-weight: 400; text-transform: none; }
.sheet .el.scene { text-transform: uppercase; font-weight: 700; }
.sheet.numbered .el.scene { counter-increment: scene; } .sheet.numbered .el.scene:not(:empty)::after { content: counter(scene); position: absolute; left: -56px; top: 0; font-weight: 700; }
.sheet .el.character { margin-left: 211px; text-transform: uppercase; }
.sheet .el.parenthetical { margin-left: 154px; width: 192px; }
.sheet .el.dialogue { margin-left: 96px; width: 336px; }
.sheet .el.transition { text-transform: uppercase; text-align: right; }
.sheet .el.shot { text-transform: uppercase; } .sheet .el.centered { text-align: center; }
.sheet .el.note { background: var(--warn-subtle); color: var(--warn); padding: 4px 8px; margin-left: -8px; font: 450 13px/18px var(--font); border-radius: 3px; }
.sheet .el.pagebreak { height: 0; min-height: 0; overflow: hidden; } .sheet.printing .el.note { display: none; }
.sheet .el[data-page]::before { content: attr(data-page) "."; position: absolute; left: -144px; top: -120px; width: 794px; height: 112px; box-sizing: border-box; padding: 72px 96px 0 0; text-align: right;
  background: linear-gradient(var(--desk), var(--desk)) top / 100% 24px no-repeat; pointer-events: none; font-weight: 400; text-transform: none; color: var(--paper-ink); }
.sheet .el.character[data-page]::before { left: -355px; } .sheet .el.parenthetical[data-page]::before { left: -298px; } .sheet .el.dialogue[data-page]::before { left: -240px; }
.sheet.readonly .el { cursor: default; }
.titlepage { height: 1123px; margin-bottom: 24px; padding: 96px 96px 96px 144px; display: flex; flex-direction: column; }
.titlepage [contenteditable] { outline: none; min-width: 40px; display: inline-block; } .titlepage [contenteditable]:focus { background: var(--accent-subtle); }
.titlepage [contenteditable]:empty::before { content: attr(data-ph); color: #b3b2ad; }
.titlepage .tt { margin-top: 320px; text-align: center; text-transform: uppercase; text-decoration: underline; }
.titlepage .cr { text-align: center; margin-top: 32px; } .titlepage .au { text-align: center; margin-top: 16px; }
.titlepage .ct { margin-top: auto; } .titlepage .ct span { white-space: pre-wrap; }
.story-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 20px; height: 28px; padding: 0 16px; background: var(--bg); border-top: 1px solid var(--border); font: 400 11px/1 var(--mono); color: var(--text-3); }
.story-insp { width: 264px; border-left: 1px solid var(--border); background: var(--bg); padding: 12px; position: sticky; top: var(--top); height: calc(100dvh - var(--top)); overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.story-insp .scn { display: flex; gap: 8px; padding: 5px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 12.5px; line-height: 16px; color: var(--text-2); }
.story-insp .scn:hover { background: var(--surface-2); color: var(--text); } .story-insp .scn .n { font-family: var(--mono); color: var(--text-3); min-width: 18px; } .story-insp .scn.on { color: var(--text); font-weight: 600; }

/* ================= Akquise ================= */
.acq-sec { margin-top: 32px; } .acq-sec:first-of-type { margin-top: 8px; }
.acq-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.acq-head h3 { font-size: 16px; } .acq-head .cnt { font: 500 13px var(--mono); color: var(--text-3); } .acq-head .hint { color: var(--text-3); font-size: 13px; }
.acq-sec.dran .acq-head { border-color: var(--accent); } .acq-sec.dran .acq-head h3 { color: var(--accent); }
.acq-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.acq-row:hover { background: var(--surface-2); }
.acq-row .who .n { font-weight: 600; } .acq-row .who .c { font-size: 12px; color: var(--text-3); }
.acq-row .msg { min-width: 0; } .acq-row .msg .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acq-row .msg .s { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acq-row .msg .dir { color: var(--text-3); margin-right: 4px; }
.acq-row .age { font: 400 12px var(--mono); color: var(--text-3); white-space: nowrap; text-align: right; } .acq-row .age.late { color: var(--accent); }
.acq-row .acts { display: flex; gap: 4px; }
.acq-empty { padding: 14px 4px; color: var(--text-3); font-size: 13px; }

/* ================= Studio × Bento: Glas, Verläufe, runde Formen ================= */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--mesh); pointer-events: none; }
h1 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-weight: 650; } h3 { font-weight: 650; }
::selection { background: var(--accent-subtle); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t11 { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.accent { color: var(--hot); }
/* Logo: weiße Wortmarke als Maske, nimmt die Textfarbe an */
.logo { display: block; height: 19px; aspect-ratio: 1000 / 246; background: var(--text); -webkit-mask: url(/img/logo.png) left center / auto 100% no-repeat; mask: url(/img/logo.png) left center / auto 100% no-repeat; flex: none; }
.logo.lg { height: 34px; } .logo.sm { height: 15px; }
/* App-Icon: farbiges Quadrat mit runden Ecken */
.appic { width: 24px; height: 24px; border-radius: 7.5px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(160deg, var(--a, #B0B0BA), var(--b, #85858F)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
.appic svg { width: 14px !important; height: 14px !important; stroke-width: 1.9; }
.appic.lg { width: 34px; height: 34px; border-radius: 10px; } .appic.lg svg { width: 19px !important; height: 19px !important; }

/* ---------- Shell ---------- */
.app { padding: 12px; gap: 12px; }
.gsb { width: 244px; padding: 14px 10px 10px; border: 0; border-radius: var(--r-xl); background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); }
.gsb-top { padding: 0 2px 10px; }
.gsb-brand { height: 36px; padding: 0 8px; border-radius: 12px; } .gsb-brand:hover { background: var(--surface-2); }
.gsb-search { height: 34px; padding: 0 12px; margin: 0 0 6px; border: 0; border-radius: 999px; background: var(--surface-2); } .gsb-search:hover { background: var(--surface-3); }
.gsb-search kbd { border: 0; background: none; }
.gsb .sec { padding: 14px 10px 5px; }
.gsb .navrow { height: 34px; padding: 0 8px; gap: 10px; border-radius: 11px; color: var(--text); font-weight: 500; }
.navrow:hover { background: var(--surface-2); }
.navrow.on { background: var(--accent); color: #fff; box-shadow: 0 8px 16px -10px var(--accent); }
.navrow.on .appic { background: rgb(255 255 255 / .24); } .navrow.on .st, .navrow.on .ext { color: rgb(255 255 255 / .8); }
.navrow .badge-n { background: var(--hot); } .navrow.on .badge-n { background: #fff; color: var(--accent); }
.gsb .navrow.proj { height: 30px; font-weight: 400; } .navrow.proj .dot { width: 8px; height: 8px; margin: 0 8px; }
.gsb .navrow.lnk { height: 30px; font-weight: 400; color: var(--text-2); }
.gsb-user { height: 48px; padding: 0 10px; margin-top: 8px; border: 0; border-radius: 16px; background: var(--surface-2); } .gsb-user:hover { background: var(--surface-3); }
.avatar { background: linear-gradient(135deg, #FFAE3D, #FF5C7C); color: #fff; }
.nav-collapsed .gsb { width: 64px; padding: 14px 8px 10px; }
.nav-collapsed .gsb-brand { width: 48px; } .nav-collapsed .gsb-brand .logo { aspect-ratio: auto; width: 12px; height: 21px; }
.nav-collapsed .gsb .navrow { height: 38px; } .nav-collapsed .gsb .navrow .appic { width: 28px; height: 28px; border-radius: 9px; } .nav-collapsed .gsb .navrow .appic svg { width: 16px !important; height: 16px !important; }
.nav-collapsed .gsb-user { background: none; padding: 0; }
.asb { width: 276px; padding: 14px 10px 24px; border: 0; border-radius: var(--r-xl); background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); }
.main { border-radius: var(--r-xl); background: var(--panel); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--edge); }
.main.bare { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.topbar { height: var(--top); padding: 0 20px; border-bottom: 0; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.main.bare .topbar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.crumbs { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; } .crumbs a { font-weight: 500; }
.page { padding: 20px 32px 96px; } .page.wide { padding: 16px 24px 96px; }
kbd, .kbd { border: 0; background: var(--surface-2); border-radius: 6px; }

/* ---------- Bedienelemente ---------- */
.btn { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-2); font-weight: 500; }
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); color: #fff; font-weight: 600; } .btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger:hover { background: var(--danger-subtle); }
.btn.sm { height: 28px; padding: 0 11px; } .btn.lg { height: 42px; padding: 0 20px; font-size: 15px; } .btn.icon, .btn.sm.icon { padding: 0; }
.seg { padding: 3px; border-radius: 999px; background: var(--surface-2); } .seg button { height: 26px; padding: 0 12px; border-radius: 999px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.input, input.input, select.input, textarea.input, .auth-card input { height: 34px; border-radius: 10px; background: var(--card); font-weight: 400; }
textarea.input { height: auto; }
.input:focus, .auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.check input { accent-color: var(--accent); }
.badge { height: 22px; padding: 0 9px; border-radius: 999px; } .badge.live { background: var(--hot-subtle); color: var(--hot); }
.status-dot.live { background: var(--hot); box-shadow: 0 0 0 3px var(--hot-subtle); }
.chip { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--surface-2); } .chip.on { background: var(--accent); color: #fff; }
.cellin { border-radius: 7px; } .cellin:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- Flächen ---------- */
.card { border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); overflow: hidden; }
.card.hov { transition: transform .16s var(--ease); } .card.hov:hover { transform: translateY(-1px); }
.list { border-top: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); overflow: hidden; }
.li { padding: 10px 16px; } .li:last-child { border-bottom: 0; }
.card .list { border-radius: 0; background: none; box-shadow: none; }
.tbl th { background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.sgrid th, .ro-grid th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.sblock-head { border-bottom-color: var(--border-strong); }
.overlay { background: rgb(20 20 40 / .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal { border: 0; border-radius: 24px; box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--edge); }
.modal-head { padding: 18px 22px 14px; border-bottom: 0; } .modal-body { padding: 6px 22px 20px; } .modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); }
.menu, .palette { border: 0; border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--edge); }
.menu { padding: 6px; } .menu button, .menu a { border-radius: 9px; } .palette { border-radius: 22px; } .palette .it { border-radius: 10px; }
.toast { border-radius: 999px; padding: 10px 18px; background: #1D1D1F; color: #fff; } .toast.err { background: var(--danger); }
.banner { border-radius: var(--r); }
.empty { padding: 56px 0; }

/* ---------- App-Leiste (Bibliothek) ---------- */
.lib-head { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; padding: 0 8px; height: 38px; }
.lib-filter { border-radius: 999px !important; padding: 0 12px !important; }
.lib-g { text-transform: none; letter-spacing: 0; font: 600 12px/16px var(--font); height: 28px; padding: 0 8px; border-radius: 10px; }
.lib-i { height: 32px; border-radius: 10px; color: var(--text); padding: 0 10px 0 26px; }
.lib-i.on { background: var(--accent); color: #fff; } .lib-i.on .m { color: rgb(255 255 255 / .8); }
.lib-v { border-radius: 9px; } .lib-v.on { color: var(--accent); }
.lib-add { border-radius: 10px; }

/* ---------- Hub-Startseite: Bento-Kacheln ---------- */
.launch { max-width: 1120px; padding: 4px 16px 64px; }
.launch-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.launch h1 { font-size: 42px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; } .launch-head p { color: var(--text-2); font-size: 16px; margin-bottom: 3px; }
.launch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 124px; grid-auto-flow: dense; gap: 14px; margin-top: 26px; }
.launch-tile { justify-content: flex-end; gap: 0; min-height: 0; padding: 16px 18px; border: 0; border-radius: var(--r-xl); overflow: hidden; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .14);
  background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 18px 30px -18px var(--b), inset 0 1px 0 rgb(255 255 255 / .4); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.launch-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(200px 140px at 0 0, rgb(255 255 255 / .3), transparent 70%); pointer-events: none; }
.launch-tile:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 26px 36px -20px var(--b), inset 0 1px 0 rgb(255 255 255 / .4); } .launch-tile:active { transform: scale(.985); }
.launch-tile .ico { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / .26); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); }
.launch-tile .ico svg { width: 22px; height: 22px; }
.launch-tile .nm { font-weight: 700; font-size: 21px; letter-spacing: -0.025em; line-height: 1.05; } .launch-tile .ds { color: inherit; opacity: .92; font-size: 12.5px; line-height: 1.3; margin-top: 3px; }
.launch-tile.big { grid-column: span 2; grid-row: span 2; padding: 22px 24px; background: radial-gradient(440px 320px at 100% 0, rgb(255 255 255 / .34), transparent 65%), radial-gradient(420px 320px at 0 100%, rgb(214 150 255 / .5), transparent 65%), linear-gradient(150deg, var(--a), var(--b)); }
.launch-tile.big::before { display: none; } .launch-tile.big .nm { font-size: 46px; letter-spacing: -0.04em; } .launch-tile.big .ds { font-size: 15px; margin-top: 6px; }
.launch-tile.big .ico { right: 20px; top: 20px; width: 66px; height: 66px; border-radius: 19px; } .launch-tile.big .ico svg { width: 31px; height: 31px; }
.launch-tile.tall { grid-row: span 2; } .launch-tile.tall .nm { font-size: 30px; } .launch-tile.tall .ico { width: 54px; height: 54px; border-radius: 16px; } .launch-tile.tall .ico svg { width: 26px; height: 26px; }
.launch-tile.soft { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); color: var(--text); text-shadow: none; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--edge); }
.launch-tile.soft::before { display: none; } .launch-tile.soft:hover { box-shadow: 0 24px 34px -24px rgb(40 30 80 / .5), inset 0 0 0 1px var(--edge); }
.launch-tile.soft .ico { background: linear-gradient(160deg, var(--a), var(--b)); color: #fff; box-shadow: 0 8px 14px -8px var(--b), inset 0 1px 0 rgb(255 255 255 / .4); }
.launch-tile.soft .ds { color: var(--text-2); opacity: 1; }
.launch-tile .badge-n { left: 16px; right: auto; top: 16px; background: #fff; color: var(--hot); text-shadow: none; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .3); }
.launch-tile.soft .badge-n { background: var(--hot); color: #fff; }
.launch-tile .out { left: 18px; right: auto; top: 18px; color: var(--text-3); }

/* ---------- Story ---------- */
.story { --desk: var(--deskc); background: var(--deskc); }
.story-toolbar { background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); height: 48px; }
.story-foot { background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.story-insp { background: var(--bar); } .story-insp .scn { border-radius: 9px; } .story-insp .scn.on { background: var(--accent-subtle); color: var(--accent); }
.sheet, .titlepage { box-shadow: 0 1px 3px rgb(0 0 0 / .08), 0 22px 44px -22px rgb(40 30 80 / .4); }
.titlepage [contenteditable]:focus { background: var(--accent-subtle); }
.sgrid td .cell:focus { box-shadow: inset 0 0 0 1.5px var(--accent); border-radius: 6px; }

/* ---------- Akquise ---------- */
.acq-head { border-bottom: 1px solid var(--border-strong); } .acq-sec.dran .acq-head { border-color: var(--hot); } .acq-sec.dran .acq-head h3 { color: var(--hot); }
.acq-row { padding: 12px 10px; border-radius: 0; } .acq-row .age.late { color: var(--hot); }

/* ---------- Login ---------- */
.auth-page { background: none; }
.auth-card { max-width: 380px; padding: 34px 30px 30px; border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--edge); }
.auth-card h1 { font-size: 26px; } .auth-card input { height: 40px; } .auth-card .btn { height: 42px; }

/* ---------- Projekt ---------- */
.titlein { font: 700 34px/38px var(--font); letter-spacing: -0.03em; }
.sharebox { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.sharebox .url { font: 500 13px var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Team ---------- */
.tgroup { margin-bottom: 10px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); overflow: hidden; }
.tgroup-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.tgroup-head:hover { background: var(--surface-2); }
.tgroup-head .nm { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; } .tgroup-head .cnt { color: var(--text-3); font-size: 13px; }
.tgroup-head .chev { color: var(--text-3); transition: transform .2s var(--ease); } .tgroup.open .tgroup-head .chev { transform: rotate(90deg); }
.tgroup-body { padding: 6px 16px 18px; }
.cover { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); }
.cover svg { width: 24px; height: 24px; stroke-width: 1.6; }
.people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.person { gap: 8px; } .person .ph { aspect-ratio: 4 / 5; border: 0; border-radius: 16px; box-shadow: 0 12px 22px -16px rgb(40 30 80 / .5); transition: transform .2s var(--ease); }
.person:hover .ph { transform: translateY(-2px); } .person .nm { font-weight: 600; line-height: 18px; } .person .rl { margin-top: -6px; font-size: 12.5px; }
.crewlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.crewcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: background .12s var(--ease); min-width: 0; }
.crewcard:hover { background: var(--surface-3); } .crewcard .cover { width: 38px; height: 38px; border-radius: 11px; } .crewcard .cover svg { width: 20px; height: 20px; }
.crewcard .nm { font-weight: 600; } .crewcard .rl { font-size: 12.5px; color: var(--text-2); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.pd.nophoto { grid-template-columns: minmax(0, 640px); }
.pd-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-photos .big { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pd-photos .pic { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.pd-photos .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-photos .pic .x { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; } .pd-photos .pic:hover .x { opacity: 1; }
.pd-photos .pic .x button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pd-photos .add { aspect-ratio: 4 / 5; border-radius: 14px; border: 1.5px dashed var(--border-strong); background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.pd-photos .add:hover { color: var(--text); border-color: var(--text-3); }
.cp { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 48px; }
.cp:last-child { border-bottom: 0; } .cp .l { width: 96px; flex: none; color: var(--text-3); font-size: 12.5px; } .cp .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cp .v.mono { font-family: var(--mono); font-weight: 400; font-size: 13px; }

/* ---------- Cast-Auswahl ---------- */
.cast { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cast-role { margin-bottom: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); }
.cast-role.active { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
.cast-role-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cast-role-head input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 700 20px/26px var(--font); letter-spacing: -0.02em; color: var(--text); padding: 0; }
.cast-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cast-p { position: relative; }
.cast-p .shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 6 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.cast-p .shots img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; } .cast-p .shots img:first-child { grid-row: 1 / 3; }
.cast-p .shots.n1 { grid-template-columns: 1fr; } .cast-p .shots.n2 { grid-template-rows: 1fr; } .cast-p .shots.n2 img:first-child { grid-row: auto; }
.cast-p .shots img:not(:first-child) { cursor: pointer; }
.cast-p .nm { margin-top: 8px; font-weight: 600; } .cast-p .src { font-size: 12px; color: var(--text-3); }
.cast-p .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .12s; } .cast-p:hover .rm { opacity: 1; }
.cast-hint { padding: 22px; border: 1.5px dashed var(--border-strong); border-radius: 14px; color: var(--text-3); text-align: center; font-size: 13px; }
.cast-pick { position: sticky; top: calc(var(--top) + 8px); padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-card); max-height: calc(100dvh - var(--top) - 56px); display: flex; flex-direction: column; gap: 12px; }
.cast-pick .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow-y: auto; margin: 0 -4px; padding: 0 4px 4px; }
.cast-pick .pk { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--text); min-width: 0; }
.cast-pick .pk .ph { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface-2); position: relative; }
.cast-pick .pk .ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .cast-pick .pk.in .ph::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 113 227 / .55); color: #fff; font: 700 22px var(--font); }
.cast-pick .pk .n { font-size: 11.5px; line-height: 14px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= Mobil ================= */
@media (max-width: 900px) {
  .app, .app.has-side { grid-template-columns: minmax(0, 1fr); }
  .gsb, .nav-collapsed .gsb { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: 264px; transform: translateX(-100%); transition: transform .24s var(--ease); }
  .nav-collapsed .gsb-name, .nav-collapsed .gsb .navrow > span, .nav-collapsed .gsb .sec, .nav-collapsed .gsb-search span, .nav-collapsed .gsb .navrow.proj, .nav-collapsed .gsb-user > span:not(.avatar) { display: revert; }
  .nav-collapsed .gsb .navrow { justify-content: flex-start; padding: 0 8px; } .gsb-toggle { display: none; }
  .nav-open .gsb { transform: none; } .nav-open .gsb-shade { display: block; position: fixed; inset: 0; z-index: 65; background: rgb(10 10 9 / .32); }
  .only-m { display: inline-flex; } .story-insp { display: none; } .story { grid-template-columns: minmax(0, 1fr); }
  .launch { padding: 28px 16px 80px; } .launch h1 { font-size: 30px; line-height: 34px; } .launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; } .launch-tile { min-height: 116px; gap: 16px; padding: 14px; } .launch-tile .ds { display: none; }
  .acq-row { grid-template-columns: minmax(0, 1fr) auto; } .acq-row .msg { grid-column: 1 / -1; order: 3; } .acq-row .acts { display: none; }
  .story-toolbar .hint { display: none; }
}
/* ================= Druck ================= */
@page script { size: A4; margin: 0; }
@media print {
  .app, .app.has-side { display: block; height: auto; } .main { overflow: visible; display: block; } .gsb, .asb, .gsb-shade, .story-toolbar, .story-foot, .story-insp { display: none !important; }
  .story { display: block; background: #fff; page: script; } .desk { padding: 0; overflow: visible; } .desk-inner { transform: none !important; margin: 0 !important; }
  .sheet, .titlepage { box-shadow: none; background: #fff; color: #000; }
  .titlepage { height: 1122px; margin: 0; break-after: page; }
  .sheet { padding-bottom: 0 !important; }
  .sheet .el[data-page] { break-before: page; margin-top: 0 !important; padding-top: 96px; }
  .sheet .el[data-page]::before { left: 0 !important; top: 48px; width: 554px; height: auto; padding: 0; background: none; }
  .sheet .el.character[data-page]::before { left: -211px !important; } .sheet .el.parenthetical[data-page]::before { left: -154px !important; } .sheet .el.dialogue[data-page]::before { left: -96px !important; }
  .sheet.numbered .el.scene[data-page]::after { top: 96px; }
  .sheet .el.note { display: none; } .sheet .el:empty::after { content: none; }
}
@media (max-width: 900px) { .story-toolbar { overflow-x: auto; } .story-foot { white-space: nowrap; gap: 12px; } .story-foot span:nth-child(3), .story-foot span:nth-child(4) { display: none; } .crumbs { min-width: 0; overflow: hidden; } .topbar .btn.sm { padding: 0 8px; } }

/* Hell/Dunkel in der Leiste · ausklappbare Zusatzfelder · einklappbare Abschnitte */
.gsb-theme { display: flex; gap: 2px; padding: 3px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); flex: none; }
.gsb-theme button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 500 13px/1 var(--font); cursor: pointer; }
.gsb-theme button:hover { color: var(--text); } .gsb-theme button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.gsb-theme .one { display: none; }
.nav-collapsed .gsb-theme { background: none; padding: 0; justify-content: center; } .nav-collapsed .gsb-theme button { display: none; }
.nav-collapsed .gsb-theme .one { display: inline-flex; flex: none; width: 40px; height: 36px; border-radius: 12px; } .nav-collapsed .gsb-theme .one:hover { background: var(--surface-2); }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--text-2); font-size: 14px; font-weight: 500; user-select: none; }
details.more > summary::-webkit-details-marker { display: none; } details.more > summary:hover { color: var(--text); }
details.more > summary svg { transition: transform .16s var(--ease); } details.more[open] > summary svg { transform: rotate(90deg); }
.foldhead { width: 100%; border: 0; background: none; padding: 0; gap: 8px; cursor: pointer; text-align: left; color: var(--text-3); }
.foldhead svg { transition: transform .16s var(--ease); } .foldhead.open svg { transform: rotate(90deg); } .foldhead:hover .t11 { color: var(--text-2); }

.promptbox { font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; resize: vertical; min-height: 260px; padding: 12px 14px; }

/* ---------- Story: Kunden-Leiste, schlanke Werkzeugleiste ---------- */
.lib-cust { margin-bottom: 2px; }
.lib-c { display: flex; align-items: center; height: 36px; border-radius: 12px; padding-right: 10px; }
.lib-c:hover { background: var(--surface-2); } .lib-cust.on > .lib-c { background: var(--surface-2); }
.lib-c .chev { flex: none; display: grid; place-items: center; width: 26px; height: 36px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 10px; } .lib-c .chev:hover { color: var(--text); }
.lib-c .nm { flex: 1; min-width: 0; display: flex; align-items: center; height: 36px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); font: 650 15px/1.2 var(--font); letter-spacing: -0.015em; padding: 0; }
.lib-c .m { flex: none; margin-left: 8px; font-size: 11px; color: var(--text-3); white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.lib-cust > .lib-sub { margin: 2px 0 8px 12px; padding-left: 10px; }
.lib-s { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.lib-s:hover { background: var(--surface-2); color: var(--text); } .lib-s.on { color: var(--text); font-weight: 600; } .lib-s .m { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.lib-sub .lib-sub { margin-left: 8px; }
.story-col { min-width: 0; } .story-toolbar { min-width: 0; gap: 10px; } .story-toolbar .btn { flex: none; }
select.input.elsel { width: 190px; min-width: 0; flex: 0 1 190px; }
.savest { margin-right: 6px; white-space: nowrap; } .savest.bad, .bad { color: var(--danger); }
.story-insp { height: calc(100dvh - var(--top) - 24px); }

/* ---------- Linke Leiste: einklappbarer Abschnitt ---------- */
.secfold { display: flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; margin-left: -3px; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; }
.secfold:hover { color: var(--text); } .secfold .cnt { font-family: var(--mono); letter-spacing: 0; color: var(--text-3); margin-left: 4px; }

/* ---------- Apps anpassen ---------- */
.menu-title { padding: 6px 8px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.launch-head .sp { flex: 1; } .launch-edit { color: var(--text-3); margin-bottom: 1px; } .launch-edit:hover { color: var(--text); }
.app-prev { position: relative; height: 96px; border-radius: 22px; padding: 14px 16px; display: flex; align-items: flex-end; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .14);
  background: radial-gradient(200px 140px at 0 0, rgb(255 255 255 / .3), transparent 70%), linear-gradient(150deg, var(--a), var(--b)); }
.app-prev .ico { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgb(255 255 255 / .26); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); }
.app-prev .nm { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches .sw { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .4); display: grid; place-items: center; position: relative; }
.swatches .sw.on { outline: 2px solid var(--text); outline-offset: 2px; }
.swatches .sw.pick { background: var(--surface-2); color: var(--text-2); overflow: hidden; } .swatches .sw.pick input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; }
.icongrid button { height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.icongrid button:hover { background: var(--surface-2); color: var(--text); } .icongrid button.on { background: var(--accent); color: #fff; }
.li.dim > .appic, .li.dim > .w500 { opacity: .45; }

/* ---------- Kundeninfos ---------- */
textarea.input.grow-ta { resize: none; overflow: hidden; min-height: 0; height: auto; line-height: 1.45; }
.qa { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 10px 14px; }
.qa .n { flex: none; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font); background: var(--surface-2); color: var(--text-2); }
.qa.done .n { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.qa textarea.q { font-weight: 600; font-size: 15px; } .qa textarea.q, .qa textarea.a, .ki-sec textarea, .ki-sec .sec-title { border-color: transparent; background: transparent; box-shadow: none; padding: 5px 8px; }
.qa textarea:hover, .ki-sec textarea:hover, .ki-sec .sec-title:hover { background: var(--surface-2); } .qa textarea:focus, .ki-sec textarea:focus, .ki-sec .sec-title:focus { background: var(--surface); border-color: var(--accent); }
.qa textarea.a { color: var(--text); } .qa.open textarea.a::placeholder { color: var(--text-3); }
.qa .row.t12 { padding: 0 8px; } .qa .ok { color: var(--success); } .qa .warn { color: var(--warn); font-weight: 600; }
.qa .rm, .ki-sec .rm { opacity: 0; flex: none; } .qa:hover .rm, .ki-sec:hover .rm, .qa:focus-within .rm, .ki-sec:focus-within .rm { opacity: 1; }
.ki-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ki-sec { padding: 10px 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ki-sec .sec-title { height: 32px; border: 1px solid transparent; border-radius: 10px; font: 650 15px/1 var(--font); letter-spacing: -0.01em; color: var(--text); min-width: 0; outline: 0; }
.ki-sec textarea.bullets { min-height: 60px; font-size: 14px; }
.link-plain { display: block; color: var(--text); } .link-plain:hover { color: var(--accent); }
@media (max-width: 900px) { .ki-grid { grid-template-columns: minmax(0, 1fr); } .qa .rm, .ki-sec .rm { opacity: 1; } .launch-head .sp { display: none; } .launch-edit { position: absolute; right: 10px; top: 60px; } .savest { display: none; } }

/* ================= Studio × Bento: Handy und Druck ================= */
@media (max-width: 1100px) { .cast { grid-template-columns: minmax(0, 1fr); } .cast-pick { position: static; max-height: 460px; } .launch-grid { grid-auto-rows: 116px; } .launch-tile.big .nm { font-size: 38px; } }
@media (max-width: 900px) {
  .app, .app.has-side { padding: 0; gap: 0; }
  .main { border-radius: 0; box-shadow: none; }
  .gsb, .nav-collapsed .gsb { width: 280px; padding: 14px 10px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 0 26px 26px 0; background: color-mix(in srgb, var(--surface) 88%, transparent); }
  .nav-collapsed .gsb-brand { width: auto; flex: 1; justify-content: flex-start; padding: 0 8px; } .nav-collapsed .gsb-brand .logo { aspect-ratio: 1000 / 246; width: auto; height: 19px; }
  .nav-collapsed .gsb-top { flex-direction: row; } .nav-collapsed .gsb .navrow { height: 38px; padding: 0 8px; } .gsb .navrow { height: 38px; } .gsb .navrow.proj, .gsb .navrow.lnk { height: 34px; }
  .nav-collapsed .gsb .navrow .appic { width: 24px; height: 24px; border-radius: 7.5px; } .nav-collapsed .gsb .navrow .appic svg { width: 14px !important; height: 14px !important; }
  .nav-collapsed .gsb .navrow.lnk, .nav-collapsed .gsb-search kbd, .nav-collapsed .gsb-user > svg { display: revert; } .nav-collapsed .gsb-search { justify-content: flex-start; padding: 0 12px; }
  .nav-collapsed .gsb-user { justify-content: flex-start; padding: 0 10px; background: var(--surface-2); }
  .nav-collapsed .gsb-theme { background: var(--surface-2); padding: 3px; } .nav-collapsed .gsb-theme button { display: inline-flex; } .nav-collapsed .gsb-theme .one { display: none; }
  .nav-collapsed .gsb .navrow .badge-n { position: static; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 5px; }
  .asb { display: block; position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); border-radius: 0 26px 26px 0; background: color-mix(in srgb, var(--surface) 90%, transparent); transform: translateX(-100%); transition: transform .24s var(--ease); }
  .side-open .asb { transform: none; } .side-open .gsb-shade { display: block; position: fixed; inset: 0; z-index: 65; background: rgb(20 20 40 / .32); }
  .nav-open .gsb-shade { background: rgb(20 20 40 / .32); }
  .topbar { padding: 0 10px; gap: 6px; } .topbar .btn { flex: none; } .topbar .logo { margin: 0 4px 0 2px; }
  .page, .page.wide { padding: 14px 14px 88px; } h1 { font-size: 26px; line-height: 30px; }
  .pagehead { flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; } .pagehead > .grow { flex-basis: 100%; }
  .btn { height: 36px; } .btn.sm { height: 32px; } .input, input.input, select.input { height: 40px; font-size: 16px; } textarea.input { font-size: 16px; }
  .overlay { padding: 0; align-items: flex-end; } .modal, .modal.lg, .modal.xl { max-width: none; max-height: 92dvh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .palette { margin: 8px; border-radius: 20px; align-self: flex-start; }
  .launch { padding: 4px 14px 80px; } .launch h1 { font-size: 32px; } .launch-head p { font-size: 15px; flex-basis: 100%; margin: -6px 0 0; }
  .launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 10px; margin-top: 18px; }
  .launch-tile { min-height: 0; padding: 12px 14px; border-radius: 22px; gap: 0; } .launch-tile .nm { font-size: 17px; } .launch-tile .ico { right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 11px; } .launch-tile .ico svg { width: 18px; height: 18px; }
  .launch-tile.big { grid-row: span 1; padding: 14px 16px; } .launch-tile.big .nm { font-size: 30px; } .launch-tile.big .ds { display: block; font-size: 13px; margin-top: 3px; }
  .launch-tile.big .ico { right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 13px; } .launch-tile.big .ico svg { width: 22px; height: 22px; }
  .launch-tile.tall { grid-row: span 1; } .launch-tile.tall .nm { font-size: 17px; } .launch-tile.tall .ico { width: 36px; height: 36px; border-radius: 11px; } .launch-tile.tall .ico svg { width: 18px; height: 18px; }
  .launch-tile .badge-n { left: 12px; top: 12px; } .launch-tile .out { display: none; }
  .cols3 { gap: 12px; } .section { margin-top: 28px; } .titlein { font-size: 26px; line-height: 30px; }
  .sharebox { flex-wrap: wrap; } .sharebox .url { flex-basis: 100%; order: 3; }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 20px; } .cp .l { width: 78px; }
  .people { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; } .crewlist { grid-template-columns: minmax(0, 1fr); }
  .tgroup-body { padding: 4px 12px 14px; } .tgroup-head { padding: 10px 12px; }
  .cast-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cast-role { padding: 12px; } .cast-p .rm { opacity: 1; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; } .acq-row { padding: 12px 6px; }
  .story-toolbar { top: var(--top); } .li { padding: 10px 12px; }
}
@media print {
  body::before { display: none; } .app, .app.has-side { padding: 0; }
  .main { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; }
  .card, .list { box-shadow: none; background: none; } .story { background: #fff; }
}
.gsb-scroll { scrollbar-width: none; } .gsb-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .main.bare .topbar { display: none; } .main.bare .launch { padding-top: 26px; } }
.nav-collapsed .gsb .navrow > span.appic { display: grid; }
@media (max-width: 900px) { .nav-collapsed .gsb .navrow > span.appic { display: grid; } }
@media (max-width: 900px) { .hide-m, .crumbs a, .crumbs .sep { display: none !important; } .crumbs .cur { font-size: 16px; } .topbar .btn.ghost.icon.only-m { width: 36px; } }
.auth-wrap { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-foot { text-align: center; font-size: 12.5px; line-height: 19px; color: var(--text-2); } .auth-foot a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.lib-i.flat { padding-left: 10px; font-weight: 600; } .lib-done { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.pd-newphotos { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-newphotos .pic { position: relative; width: 72px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.pd-newphotos .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-newphotos .pic button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pd-newphotos .add { width: 72px; height: 90px; border-radius: 12px; border: 1.5px dashed var(--border-strong); color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.pd-newphotos .add:hover { color: var(--text); border-color: var(--text-3); }
/* Deckblatt: oben Titel und Kunde, unten Version und „written by …“ */
.titlepage .tt { margin-top: 304px; text-decoration: none; font-weight: 700; }
.titlepage .cl { text-align: center; margin-top: 32px; }
.titlepage .ct { margin-top: auto; text-align: center; } .titlepage .ct .by { margin-top: 16px; } .titlepage .ct .in { display: inline; }

/* ---------- Feedback 18.11. abends ---------- */
/* Leiste eingeklappt: vom Logo nur das „o“ – das „f“ beginnt bei 73/148 der Bildhöhe (kursiv), darum genau dort abschneiden */
@media (min-width: 901px) { .nav-collapsed .gsb-brand .logo { aspect-ratio: auto; height: 21px; width: calc(21px * 70 / 148); -webkit-mask-size: auto 100%; mask-size: auto 100%; } }

/* Kundenlogos */
.clogo { flex: none; display: inline-grid; place-items: center; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.clogo img { width: 82%; height: 82%; object-fit: contain; display: block; }
.clogo.none { background: var(--surface-2); color: var(--text-3); font-weight: 600; box-shadow: none; }
.li .clogo { margin-right: 2px; }
.li.dim { opacity: .55; }
.custhead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.custhead h1 { margin: 0; }
.custlogo-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; flex: none; margin-top: 2px; }
.custlogo-btn .clogo { border-radius: 12px; }
.custlogo-btn:hover .clogo { box-shadow: inset 0 0 0 1px var(--border-strong), 0 0 0 3px var(--surface-2); }
.kurzin, .sitein { width: 100%; border: 0; background: transparent; color: var(--text-2); font: inherit; padding: 2px 0; border-radius: 6px; outline: none; }
.kurzin { font-size: 15px; margin-top: 4px; }
.kurzin::placeholder, .sitein::placeholder { color: var(--text-3); font-style: italic; }
.kurzin:hover, .sitein:hover { background: var(--surface-2); }
.kurzin:focus, .sitein:focus { background: var(--surface-2); box-shadow: 0 0 0 2px var(--accent); padding-left: 6px; }
.siterow { margin-top: 2px; align-items: center; } .sitein { font-size: 12px; color: var(--text-3); width: auto; flex: 0 1 360px; min-width: 0; }

/* Projekt-Status in der Zeile */
.stbtn { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px 0 10px; border-radius: 999px; border: 0; cursor: pointer; font: 600 12px/1 var(--font); background: var(--surface-2); color: var(--text-2); }
.stbtn:hover { background: var(--surface-3); }
.stbtn.pre { background: rgb(245 165 36 / .16); color: #B87400; } .stbtn.post { background: rgb(52 199 89 / .16); color: #1F8F3E; }
:root[data-theme="dark"] .stbtn.pre { color: #FFC160; } :root[data-theme="dark"] .stbtn.post { color: #6FDD8B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stbtn.pre { color: #FFC160; } :root:not([data-theme="light"]) .stbtn.post { color: #6FDD8B; } }

/* Story-Startseite: leeres, weichgezeichnetes Blatt mit kleinem Fenster davor */
.story-start { position: relative; min-height: calc(100dvh - var(--top, 56px)); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; padding: 24px 16px; }
.ss-paper { position: absolute; inset: 0; display: flex; justify-content: center; padding-top: 32px; filter: blur(5px); opacity: .85; pointer-events: none; }
.ss-sheet { width: min(794px, 92%); height: 1123px; background: var(--paper); box-shadow: 0 0 0 1px var(--border), 0 12px 32px -18px rgb(0 0 0 / .28); padding: 96px 96px 0 144px; }
.ss-sheet .l { height: 12px; margin: 0 0 18px; background: color-mix(in srgb, var(--paper-ink) 14%, transparent); border-radius: 3px; }
.ss-sheet .l.c { width: 30%; margin-left: 35%; } .ss-sheet .l.d { width: 55%; margin-left: 20%; }
.ss-sheet .w40 { width: 40%; } .ss-sheet .w60 { width: 60%; } .ss-sheet .w70 { width: 70%; } .ss-sheet .w80 { width: 80%; } .ss-sheet .w90 { width: 90%; }
.ss-pop { position: relative; z-index: 1; width: min(420px, 100%); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-pop); }
.ss-pop h3 { margin: 0; }
.ss-acts { display: flex; gap: 8px; } .ss-acts .btn.primary { flex: 1; justify-content: center; }
.ss-recent { display: flex; flex-direction: column; gap: 2px; } .ss-recent .t11 { padding: 0 2px 6px; }
.ss-recent .li { border-radius: 10px; border: 0; padding: 8px; } .ss-recent .li:hover { background: var(--surface-2); }
@media (max-width: 900px) { .ss-sheet { padding: 48px 32px 0; } }
/* Projektzeile: Logo · Name · Drehtage · Bausteine · Status (überschreibt das alte Raster) */
.li.projrow { display: flex; align-items: center; gap: 12px; }
.li.projrow > .grow { flex: 1; min-width: 0; }
.li.projrow > .mono { width: 140px; text-align: right; }
.li.projrow > .stbtn { min-width: 70px; justify-content: center; }
@media (max-width: 900px) { .li.projrow > .clogo { display: inline-grid !important; } .li.projrow > .grow { display: block !important; } }
