@charset "UTF-8";
/* === Farben: hell und dunkel === */
/* Jede graue Farbe ist eine Variable (--g-XX, benannt nach ihrem Wert im dunklen Modus). Der helle Modus setzt
   dieselben Variablen neu. Ohne Wahl gilt die Einstellung des Geräts; die Wahl steht als data-theme am <html>. */
:root { color-scheme: dark; --g-08: #080808; --g-10: #101010; --g-15: #151515; --g-17: #171717; --g-1b: #1b1b1b; --g-1c: #1c1c1c; --g-1e: #1e1e1e; --g-20: #202020; --g-22: #222222; --g-24: #242424; --g-27: #272727; --g-29: #292929; --g-2a: #2a2a2a; --g-30: #303030; --g-33: #333333; --g-36: #363636; --g-3c: #3c3c3c; --g-41: #414141; --g-45: #454545; --g-4c: #4c4c4c; --g-50: #505050; --g-55: #555555; --g-5b: #5b5b5b; --g-60: #606060; --g-68: #686868; --g-75: #757575; --g-80: #808080; --g-96: #969696; --g-9a: #9a9a9a; --g-a0: #a0a0a0; --g-aa: #aaaaaa; --g-b6: #b6b6b6; --g-d0: #d0d0d0; --g-de: #dedede; --g-ed: #ededed; --g-ef: #efefef; --g-ff: #ffffff; --accent-green: #4ade80; --accent-green-bg: #16301f; --accent-red: #f87171; --accent-red-bg: #3a1c1c; --card-shadow: none; --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; --g-08: #0b0b0c; --g-10: #fbfbfa; --g-15: #f1f1ef; --g-17: #ffffff; --g-1b: #ffffff; --g-1c: #fefefe; --g-1e: #fcfcfc; --g-20: #f9f9f9; --g-22: #f7f7f7; --g-24: #f5f5f5; --g-27: #f1f1f1; --g-29: #efefef; --g-2a: #eeeeee; --g-30: #e7e7e7; --g-33: #e3e3e3; --g-36: #e0e0e0; --g-3c: #d9d9d9; --g-41: #d3d3d3; --g-45: #cfcfcf; --g-4c: #c7c7c7; --g-50: #c2c2c2; --g-55: #bcbcbc; --g-5b: #b5b5b5; --g-60: #b0b0b0; --g-68: #9f9f9f; --g-75: #929292; --g-80: #878787; --g-96: #737373; --g-9a: #6f6f6f; --g-a0: #696969; --g-aa: #5f5f5f; --g-b6: #535353; --g-d0: #393939; --g-de: #2a2a2d; --g-ed: #1a1a1c; --g-ef: #18181a; --g-ff: #000000; --accent-green: #15803d; --accent-green-bg: #e1f5e7; --accent-red: #b42318; --accent-red-bg: #fde8e6; --card-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 4px 16px rgba(20, 20, 20, .04); } }
:root[data-theme="light"] { color-scheme: light; --g-08: #0b0b0c; --g-10: #fbfbfa; --g-15: #f1f1ef; --g-17: #ffffff; --g-1b: #ffffff; --g-1c: #fefefe; --g-1e: #fcfcfc; --g-20: #f9f9f9; --g-22: #f7f7f7; --g-24: #f5f5f5; --g-27: #f1f1f1; --g-29: #efefef; --g-2a: #eeeeee; --g-30: #e7e7e7; --g-33: #e3e3e3; --g-36: #e0e0e0; --g-3c: #d9d9d9; --g-41: #d3d3d3; --g-45: #cfcfcf; --g-4c: #c7c7c7; --g-50: #c2c2c2; --g-55: #bcbcbc; --g-5b: #b5b5b5; --g-60: #b0b0b0; --g-68: #9f9f9f; --g-75: #929292; --g-80: #878787; --g-96: #737373; --g-9a: #6f6f6f; --g-a0: #696969; --g-aa: #5f5f5f; --g-b6: #535353; --g-d0: #393939; --g-de: #2a2a2d; --g-ed: #1a1a1c; --g-ef: #18181a; --g-ff: #000000; --accent-green: #15803d; --accent-green-bg: #e1f5e7; --accent-red: #b42318; --accent-red-bg: #fde8e6; --card-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 4px 16px rgba(20, 20, 20, .04); }
/*
 * PP Hub interface, refined with unslop by Damir Sokolovsky (@heydamir).
 * https://github.com/heydamir/unslop — CC BY 4.0
 * https://creativecommons.org/licenses/by/4.0/
 */
:root {
  
  --canvas: var(--g-15);
  --sidebar: var(--g-10);
  --surface: var(--g-1b);
  --raised: var(--g-24);
  --hover: var(--g-29);
  --line: var(--g-33);
  --line-soft: var(--g-29);
  --text: var(--g-ef);
  --secondary: var(--g-b6);
  --muted: var(--g-96);
  --radius: 12px;
  --control-radius: 8px;
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 500; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 500; }
h3 { font-size: 14px; line-height: 1.5; font-weight: 500; }
p { line-height: 1.65; }
strong { font-weight: 500; }
small { font-size: 12px; }
::selection { background: var(--g-de); color: var(--g-15); }
:focus-visible { outline: 2px solid var(--g-de); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 100; padding: 12px 20px; border-radius: 8px; color: var(--g-15); background: var(--g-ed); }
.skip-link:focus { top: 12px; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; vertical-align: middle; stroke-width: 1.5; }
.muted { color: var(--muted); }
.button { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--control-radius); display: inline-flex; justify-content: center; align-items: center; gap: 8px; line-height: 20px; font-size: 13px; font-weight: 500; transition: background-color 160ms var(--ease),border-color 160ms var(--ease),color 160ms var(--ease); white-space: nowrap; }
.button-primary { color: var(--g-17); background: var(--g-ed); border-color: var(--g-ed); }
.button-primary:hover { background: var(--g-ff); border-color: var(--g-ff); }
.button-secondary { color: var(--text); background: var(--raised); border-color: var(--g-41); }
.button-secondary:hover { background: var(--g-30); border-color: var(--g-60); }
.button-quiet { color: var(--secondary); background: transparent; }
.button-quiet:hover { color: var(--text); background: var(--raised); }
.button-danger { color: var(--text); background: var(--g-24); border-color: var(--g-75); }
.button-danger:hover { background: var(--g-36); border-color: var(--g-aa); }
.button-wide { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 8px; border: 1px solid transparent; background: transparent; color: var(--secondary); border-radius: 8px; transition: background-color 160ms var(--ease),color 160ms var(--ease); flex-shrink: 0; }
.icon-button:hover { background: var(--hover); color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 12px; white-space: nowrap; }
.text-link:hover { color: var(--text); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--g-41); border-radius: 4px; color: var(--secondary); font-size: 12px; line-height: 16px; white-space: nowrap; }
.count-label, .heading-count { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.heading-count { font-size: 18px; }

/* Navigation and page frame */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--text); font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.brand-mark { display: block; width: 28px; height: 28px; flex: 0 0 28px; }
.sidebar > .brand { margin: 0 12px 32px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 8px 12px; color: var(--secondary); border-radius: 6px; font-size: 13px; line-height: 20px; transition: color 160ms var(--ease),background-color 160ms var(--ease); }
.nav-link:hover { color: var(--text); background: var(--g-1c); }
.nav-link.active { color: var(--text); background: var(--g-27); }
.sidebar-account { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); padding: 20px 4px 0; margin-top: auto; }
.account-link { display: block; min-width: 0; }
.account-link strong { display: block; font-size: 13px; }
.account-link small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.sidebar-account form { margin-left: auto; }
.main-content { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; padding: 40px 32px 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { min-width: 0; overflow-wrap: anywhere; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; font-size: 12px; color: var(--secondary); margin-bottom: 24px; }
.back-link::before { content: '\2190'; margin-right: 8px; }
.back-link:hover { color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.section-heading h2 { font-size: 14px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.empty-state { padding: 40px 24px; color: var(--muted); text-align: left; }
.empty-state h2, .empty-state h3 { color: var(--secondary); font-size: 14px; }
.empty-state p { margin-top: 8px; font-size: 13px; }
.empty-state > p:first-child { margin-top: 0; }
.project-list { padding: 0 24px; }
.project-row { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.project-row:last-child { border-bottom: 0; }
.project-row-title { min-width: 0; margin-right: auto; }
.project-row-title strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.project-row-title small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-row:hover .project-row-title strong { text-decoration: underline; text-underline-offset: 4px; }
.project-row > .icon { color: var(--muted); }
.event-list { padding: 0 24px; }
.event-row { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.event-row:last-child { border-bottom: 0; }
.event-row p { font-size: 12px; color: var(--secondary); line-height: 1.65; }
.event-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.panel-bottom-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line-soft); color: var(--secondary); font-size: 12px; }
.panel-bottom-link:hover { background: var(--g-22); color: var(--text); }

/* Data rows */
.table-toolbar { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.search-field { display: block; max-width: 280px; }
.search-field input { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.usage-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; list-style: none; padding: 0 24px; margin: 0 0 20px; }
.usage-totals li { padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 8px; }
.usage-totals small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.usage-totals strong { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.data-table th { padding: 16px 20px; color: var(--muted); background: var(--g-1e); font-size: 12px; font-weight: 400; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table td { padding: 20px; color: var(--secondary); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table td.muted { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--g-20); }
.data-table th:first-child, .data-table td:first-child { padding-left: 24px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 24px; }
.table-project { color: var(--text); font-weight: 500; display: block; min-width: 160px; }
.table-project:hover { text-decoration: underline; text-underline-offset: 4px; }
.no-search-results { text-align: center; padding: 32px !important; }
.person-cell { min-width: 184px; }
.person-cell strong { display: block; color: var(--text); font-size: 13px; }
.person-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.you-label { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
.activity-feed { padding: 0 24px; }
.feed-row { display: flex; align-items: start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.feed-row:last-child { border-bottom: 0; }
.feed-content { min-width: 0; flex: 1; }
.feed-content p { font-size: 13px; color: var(--secondary); overflow-wrap: anywhere; }
.feed-content > span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.feed-row time { color: var(--secondary); font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.6; }
.feed-row time small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Forms and feedback */
.form-panel { padding: 24px; max-width: 760px; }
.stacked-form, .auth-form { display: flex; flex-direction: column; gap: 24px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field > label { color: var(--secondary); font-size: 13px; font-weight: 500; }
.input-wrap { position: relative; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--g-45); border-radius: var(--control-radius); padding: 10px 12px; background: var(--g-15); color: var(--text); outline: none; transition: border-color 160ms var(--ease),background-color 160ms var(--ease); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--g-68); }
input:focus, select:focus, textarea:focus { border-color: var(--g-d0); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--g-9a); outline-offset: 2px; }
input[type="password"] { padding-right: 44px; }
input[type="checkbox"] { appearance: none; width: 20px; height: 20px; min-height: 20px; padding: 0; border-radius: 4px; flex: 0 0 20px; margin: 0; cursor: pointer; }
input[type="checkbox"]:checked { color: var(--g-15); background: var(--g-ed); border-color: var(--g-ed); }
input[type="checkbox"]:checked::after { content: '\2713'; display: block; text-align: center; font-size: 14px; line-height: 18px; font-weight: 500; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 64px var(--g-24) inset; caret-color: var(--text); }
textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
select { appearance: auto; padding-right: 28px; }
.checkbox-label { display: flex; align-items: start; gap: 12px; color: var(--secondary); font-size: 13px; line-height: 20px; cursor: pointer; }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.65; }
.field-help ul { padding-left: 20px; margin: 0; }
.field-help a { text-decoration: underline; text-underline-offset: 3px; }
.field-errors { color: var(--text); font-size: 12px; line-height: 1.65; }
.field-errors ul, .form-errors ul { list-style: none; padding: 0; margin: 0; }
.form-errors { color: var(--text); font-size: 13px; padding: 12px 16px; border: 1px solid var(--g-80); border-left-width: 3px; border-radius: 8px; line-height: 1.65; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--g-a0); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 4px; padding: 0; background: transparent; color: var(--muted); }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--text); background: var(--g-2a); }
.notice { display: flex; align-items: start; gap: 12px; padding: 16px; border: 1px solid var(--g-4c); border-radius: 8px; color: var(--secondary); background: var(--g-22); font-size: 12px; line-height: 1.65; }
.notice .icon { margin-top: 2px; }
.notice-error { border-color: var(--g-80); color: var(--text); }
.messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.form-panel > .notice { margin-bottom: 24px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 20; transform: translateX(-50%); max-width: calc(100vw - 32px); border: 1px solid var(--g-68); border-radius: 8px; background: var(--g-ed); color: var(--g-17); padding: 12px 20px; font-size: 12px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 24px 0 0; }
.project-meta dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.project-meta dd { margin: 0; color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Personal access */
.account-panel { max-width: 960px; }
.account-identity { padding: 24px; border-bottom: 1px solid var(--line); }
.account-identity p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line-soft); }
.security-row h2 { font-size: 14px; }
.security-row p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.recovery-section .security-row { padding-bottom: 12px; border-bottom: 0; }
.security-details { padding: 0 24px 24px; }
.security-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--secondary); cursor: pointer; font-size: 13px; list-style: none; }
.security-details summary::-webkit-details-marker { display: none; }
.security-details summary:hover { color: var(--text); }
.security-details summary .icon { transition: transform 160ms var(--ease); }
.security-details[open] summary .icon { transform: rotate(90deg); }
.details-content { padding-top: 20px; }
.details-content .notice { margin-bottom: 24px; }
.narrow-form { max-width: 440px; }
.narrow-form > .button { align-self: start; }
.credential-panel { padding: 24px; max-width: 760px; }
.credential-intro { color: var(--secondary); font-size: 13px; }
.credential-list { margin: 24px 0; }
.credential-list > div { display: flex; align-items: start; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.credential-list > div:last-child { border-bottom: 1px solid var(--line-soft); }
.credential-list dt { width: 112px; flex: 0 0 112px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.credential-list dd { display: flex; align-items: start; gap: 12px; flex: 1; min-width: 0; margin: 0; }
.credential-list code { overflow-wrap: anywhere; line-height: 1.75; font-size: 12px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.activation-link-row code { flex: 1; }
.temporary-password { user-select: all; }
.spaced-button { margin-top: 24px; }

/* Login and activation */
.auth-body { min-height: 100vh; }
.auth-main { width: 100%; max-width: 472px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; margin: 0 auto; }
.auth-main > .brand { margin-bottom: 28px; }
.auth-panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-panel h1 { font-size: 24px; line-height: 1.3; }
.auth-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; margin-bottom: 28px; }
.auth-description:empty, .auth-step:empty { display: none; }
.auth-step { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.auth-form { gap: 20px; }
.auth-form .button-primary { margin-top: 4px; }
.first-login-note, .recovery-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 24px; }
.auth-back { display: block; text-align: center; font-size: 12px; color: var(--secondary); margin-top: 24px; }
.auth-back:hover { color: var(--text); }
.qr-frame { width: fit-content; margin: 0 auto 24px; padding: 16px; background: #fff; border-radius: 8px; }
.qr-frame img { display: block; width: 180px; height: 180px; }
.manual-key { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 24px; }
.manual-key summary { color: var(--secondary); font-size: 12px; cursor: pointer; line-height: 1.6; }
.manual-key[open] summary { margin-bottom: 12px; }
.secret-key { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; color: var(--text); user-select: all; }
.totp-form input[name="otp_code"] { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--g-15); border: 1px solid var(--line); border-radius: 8px; padding: 20px 16px; margin-bottom: 16px; }
.recovery-codes code { color: var(--text); font-size: 12px; text-align: center; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; user-select: all; line-height: 1.6; }
.recovery-codes p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.recovery-note { margin-top: 20px; }
.recovery-confirm { margin-top: 24px; }

.settings-heading { margin-bottom: 24px; }
.settings-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.key-state { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin-bottom: 24px; background: var(--g-24); border: 1px solid var(--g-3c); border-radius: 8px; color: var(--secondary); font-size: 13px; }
.key-state small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.key-state code { font-size: 12px; }
.key-remove-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.key-remove-form p { color: var(--muted); font-size: 12px; }
.settings-modules { margin-top: 32px; }
.settings-modules-intro { color: var(--muted); font-size: 13px; padding: 20px 24px 4px; }
.module-list { list-style: none; margin: 0; padding: 0 24px 8px; }
.module-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.module-list li:first-child { border-top: 0; }
.module-list li div { display: flex; flex-direction: column; gap: 4px; }
.module-list small { color: var(--muted); font-size: 12px; }

@media (max-width:1120px) {
  .app-shell { grid-template-columns: 208px minmax(0,1fr); }
  .main-content { padding: 32px 24px 48px; }
  .dashboard-layout { grid-template-columns: 1fr; }
}
@media (max-width:720px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 20px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { margin: 0 8px 16px; }
  .main-nav { flex-direction: row; gap: 4px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; padding: 8px; gap: 8px; font-size: 12px; min-height: 40px; }
  .nav-link .icon { display: none; }
  .sidebar-account { display: none; }
  .main-content { padding: 28px 20px 48px; }
  .page-heading { gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .section-heading { min-height: 60px; padding: 16px 20px; gap: 16px; }
  .section-heading h2 { font-size: 13px; }
  .section-heading .text-link { font-size: 11px; }
  .section-heading .text-link .icon { display: none; }
  .dashboard-layout { gap: 24px; }
  .project-list, .event-list, .activity-feed { padding-left: 20px; padding-right: 20px; }
  .project-row { gap: 12px; min-height: 76px; }
  .project-row .badge { font-size: 11px; }
  .project-row > .icon { display: none; }
  .project-row-title strong { font-size: 13px; }
  .event-row { padding: 16px 0; }
  .panel-bottom-link { padding: 16px 20px; }
  .empty-state { padding: 32px 20px; }
  .table-toolbar { padding: 16px 20px; }
  .search-field { max-width: none; }
  .data-table th { font-size: 11px; padding: 16px; }
  .data-table td { padding: 16px; font-size: 12px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 20px; }
  .person-cell { min-width: 164px; }
  .person-cell strong { font-size: 12px; }
  .person-cell small { font-size: 11px; }
  .feed-row { gap: 16px; padding: 20px 0; }
  .feed-content p { font-size: 12px; }
  .feed-content > span { font-size: 11px; }
  .feed-row time, .feed-row time small { font-size: 11px; }
  .form-panel { padding: 24px 20px; }
  .form-actions { gap: 4px; }
  .form-actions .button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .project-meta { gap: 24px; }
  .account-identity { padding: 24px 20px; }
  .security-row { padding: 24px 20px; gap: 16px; align-items: start; flex-wrap: wrap; }
  .security-row .button { font-size: 12px; }
  .security-details { padding: 0 20px 24px; }
  .credential-panel { padding: 24px 20px; }
  .credential-list > div { flex-direction: column; gap: 12px; }
  .credential-list dt { width: auto; flex-basis: auto; }
  .credential-list dd { width: 100%; }
  .toast { bottom: 20px; width: max-content; }
  .auth-main { padding: 32px 20px; }
  .auth-main > .brand { margin-bottom: 24px; }
  .auth-panel { padding: 28px 24px; }
  .auth-panel h1 { font-size: 23px; }
}
@media (max-width:380px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .page-heading .button { font-size: 11px; }
  .page-heading .button .icon { display: none; }
  .auth-main { padding-left: 16px; padding-right: 16px; }
  .auth-panel { padding-left: 20px; padding-right: 20px; }
  .recovery-codes { gap: 12px 8px; padding-left: 12px; padding-right: 12px; }
  .recovery-codes code { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Video workspace and its collapsible research feed */
.video-layout { display: grid; grid-template-columns: minmax(0,1fr) 384px; gap: 24px; align-items: start; }
.video-layout:has(> .trend-drawer:not([open])) { grid-template-columns: minmax(0,1fr) 48px; }
.video-projects { min-width: 0; }
.trend-drawer { position: sticky; top: 24px; min-width: 0; max-height: calc(100vh - 48px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.trend-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 20px; cursor: pointer; list-style: none; }
.trend-drawer > summary::-webkit-details-marker { display: none; }
.trend-drawer > summary:hover { background: var(--g-22); }
.trend-summary-copy { min-width: 0; }
.trend-summary-copy strong { display: block; font-size: 14px; font-weight: 500; }
.trend-summary-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.trend-drawer > summary > .icon { color: var(--muted); transition: transform 160ms var(--ease); }
.trend-drawer[open] > summary > .icon { transform: rotate(90deg); }
.trend-drawer:not([open]) > summary { min-height: 48px; padding: 12px; justify-content: center; }
.trend-drawer:not([open]) .trend-summary-copy { display: none; }
.trend-drawer-body { max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--g-55) var(--g-20); border-top: 1px solid var(--line-soft); }
.trend-controls { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.trend-controls .button { font-size: 12px; }
.trend-controls > p { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.trend-status-note { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); color: var(--secondary); font-size: 12px; line-height: 1.7; }
.trend-error { padding: 16px 20px; color: var(--text); border-bottom: 1px solid var(--g-55); }
.trend-error strong { font-size: 12px; }
.trend-error p { margin-top: 8px; color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.trend-report-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 16px 20px 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.trend-report-summary { padding: 12px 20px 16px; color: var(--secondary); font-size: 12px; line-height: 1.75; }
.trend-card { border-top: 1px solid var(--line-soft); }
.trend-card > summary { display: flex; align-items: start; gap: 12px; padding: 20px; cursor: pointer; list-style: none; }
.trend-card > summary::-webkit-details-marker { display: none; }
.trend-card > summary:hover { background: var(--g-22); }
.trend-rank { color: var(--muted); font-size: 12px; width: 16px; flex: 0 0 16px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.trend-card-heading { flex: 1; min-width: 0; }
.trend-card-heading > strong { display: block; color: var(--text); font-size: 13px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.trend-card > summary > .icon { color: var(--muted); margin-top: 4px; transition: transform 160ms var(--ease); }
.trend-card[open] > summary > .icon { transform: rotate(90deg); }
.trend-platforms { display: flex; flex-wrap: wrap; margin-top: 8px; gap: 4px 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.trend-platforms > span + span::before { content: '\00b7'; margin-right: 8px; }
.trend-card-body { padding: 0 20px 20px 48px; }
.trend-assessment { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; line-height: 1.65; }
.trend-section { margin-top: 20px; }
.trend-section h4, .trend-limitations h4 { margin: 0 0 8px; color: var(--text); font-size: 12px; line-height: 1.6; font-weight: 500; }
.trend-section p, .trend-section blockquote { margin: 0; color: var(--secondary); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.trend-section blockquote { border-left: 2px solid var(--g-5b); padding-left: 12px; }
.trend-plan { margin: 0; padding-left: 20px; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.trend-plan > li + li { margin-top: 8px; }
.trend-sources { margin: 0; padding: 0; list-style: none; }
.trend-sources li + li { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.trend-sources a { color: var(--text); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.trend-sources a .icon { width: 12px; height: 12px; vertical-align: baseline; }
.trend-sources small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.trend-sources p { color: var(--muted); margin-top: 8px; font-size: 11px; }
.trend-rights { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.trend-rights p { color: var(--muted); font-size: 11px; }
.trend-limitations { padding: 20px; border-top: 1px solid var(--line-soft); }
.trend-limitations ul { padding-left: 16px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.trend-limitations li + li { margin-top: 8px; }
.trend-empty { padding: 24px 20px; }
.trend-empty h3 { font-size: 13px; line-height: 1.6; }
.trend-empty p { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 8px; }
.trend-empty .button { margin-top: 20px; font-size: 12px; }
@media (max-width:1180px) {
  .video-layout, .video-layout:has(> .trend-drawer:not([open])) { grid-template-columns: 1fr; }
  .trend-drawer { position: static; max-height: none; }
  .trend-drawer-body { max-height: none; overflow-y: visible; }
  .trend-drawer:not([open]) .trend-summary-copy { display: block; }
  .trend-drawer:not([open]) > summary { padding: 20px; min-height: 76px; justify-content: space-between; }
  .trend-controls .button { width: auto; }
  .trend-controls > p { text-align: left; }
}
@media (max-width:720px) {
  .video-layout { gap: 24px; }
  .trend-drawer > summary, .trend-drawer:not([open]) > summary { padding: 16px 20px; min-height: 72px; }
  .trend-controls .button { width: 100%; }
  .trend-controls > p { text-align: center; }
  .trend-card-body { padding-left: 20px; }
}

/* Navigation follows the actual module structure. */
.sidebar-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 12px 32px; }
.sidebar-brandrow .brand { margin: 0; }
.mobile-account-link { display: none; }
.settings-team { margin-top: 32px; scroll-margin-top: 24px; }
.overview-module { display: flex; align-items: center; gap: 16px; padding: 24px; margin-bottom: 32px; transition: background-color 160ms var(--ease); }
.overview-module:hover { background: var(--g-24); }
.overview-module-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--g-45); border-radius: 8px; color: var(--secondary); }
.overview-module strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.overview-module small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.overview-module > .icon { margin-left: auto; color: var(--muted); }
#activity { scroll-margin-top: 24px; }
@media (max-width:720px) {
  .sidebar-brandrow { margin: 0 8px 16px; }
  .mobile-account-link { display: inline-flex; min-height: 36px; min-width: 36px; }
  .overview-module { padding: 20px; margin-bottom: 24px; }
  .overview-module small { font-size: 12px; line-height: 1.6; }
}

/* Research controls stay in a native, keyboard-accessible dialog. */
.trend-drawer[open] .trend-summary-copy { padding-right: 40px; }
.trend-settings-trigger { position: absolute; right: 44px; top: 20px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 8px; }
.settings-dialog { width: min(640px,calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--g-50); border-radius: 12px; background: var(--surface); color: var(--text); margin: auto; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--g-55) var(--g-20); }
.settings-dialog::backdrop { background: rgba(0,0,0,.68); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 18px; font-weight: 500; }
.dialog-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.dialog-heading > .icon-button { margin-top: -4px; margin-right: -4px; }
.dialog-body { padding: 24px; }
.dialog-body .stacked-form { gap: 24px; }
.dialog-body textarea { min-height: 96px; height: 96px; }
.dialog-actions { margin-top: 0; padding-top: 24px; }
.trend-platform-choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.trend-platform-choices legend { font-size: 13px; color: var(--secondary); padding: 0; margin-bottom: 12px; font-weight: 500; }
.trend-platform-choices > div { display: flex; align-items: start; flex-wrap: wrap; gap: 12px 20px; }
.dialog-research-meta { padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.dialog-research-meta dl { margin: 0 0 12px; }
.dialog-research-meta dl > div { display: flex; align-items: start; gap: 24px; }
.dialog-research-meta dt { min-width: 64px; }
.dialog-research-meta dd { margin: 0; color: var(--secondary); }
.dialog-prompt { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.dialog-prompt > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; list-style: none; cursor: pointer; }
.dialog-prompt > summary::-webkit-details-marker { display: none; }
.dialog-prompt[open] > summary > .icon { transform: rotate(90deg); }
.dialog-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow-y: auto; margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
@media (max-width:720px) {
  .trend-settings-trigger { top: 16px; }
  .settings-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-heading, .dialog-body { padding: 20px; }
  .dialog-heading h2 { font-size: 17px; }
  .dialog-actions { gap: 8px; }
}

/* Finished clips stay separate from project production settings. */
.video-subnav { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px 28px; margin-left: 20px; border-left: 1px solid var(--line); }
.video-subnav a { color: var(--muted); font-size: 12px; line-height: 20px; padding: 8px 12px; border-radius: 6px; }
.video-subnav a:hover, .video-subnav a.active { color: var(--text); background: var(--g-22); }
.research-header-status:empty { display: none; }
.trend-summary-copy .research-header-status { color: var(--text); font-size: 11px; margin-top: 8px; }
.trend-drawer:has(.research-header-status:not(:empty)) .trend-drawer-body { max-height: calc(100vh - 152px); }
.trend-run-state[data-run-status="queued"] > .trend-status-note, .trend-run-state[data-run-status="running"] > .trend-status-note { display: none; }
.finished-clips { min-width: 0; }
.clip-collection-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 24px; }
.clip-card { min-width: 0; }
.clip-card-player { display: flex; align-items: center; justify-content: center; background: var(--g-08); border-bottom: 1px solid var(--line); }
.clip-card-player video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 440px; object-fit: contain; background: var(--g-08); }
.clip-card-content { padding: 20px; }
.clip-card-meta { display: flex; align-items: start; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.clip-card-content h2 { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.clip-review-state { color: var(--text); font-size: 12px; margin-top: 12px; }
.clip-review-summary { color: var(--secondary); font-size: 12px; line-height: 1.75; margin-top: 12px; }
.clip-output-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 16px; font-variant-numeric: tabular-nums; }
.clip-card-actions, .production-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.clip-card-actions .button, .production-downloads .button { font-size: 12px; }
.project-production { margin-bottom: 32px; }
.production-panel .section-heading { flex-wrap: wrap; }
.production-platform { font-size: 12px; color: var(--muted); margin-top: 4px; }
.production-run-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; color: var(--secondary); font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.production-run-summary time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.production-stages { display: flex; align-items: start; flex-wrap: wrap; list-style: none; gap: 16px 24px; padding: 24px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.production-stages li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.production-stage-mark { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--g-4c); border-radius: 50%; font-size: 11px; }
.production-stage-mark .icon { width: 12px; height: 12px; flex-basis: 12px; }
.production-stages .stage-current { color: var(--text); }
.production-stages .stage-current .production-stage-mark { border-color: var(--g-de); }
.production-stages .stage-done { color: var(--secondary); }
.production-error { margin: 24px; }
.production-result { display: grid; grid-template-columns: minmax(240px,320px) minmax(0,1fr); align-items: start; gap: 32px; padding: 24px; }
.production-preview { min-width: 0; }
.production-player { width: 100%; height: auto; max-height: 640px; display: block; object-fit: contain; background: var(--g-08); border-radius: 8px; }
.production-review h3 { font-size: 18px; line-height: 1.55; }
.production-review h4 { font-size: 13px; font-weight: 500; margin: 24px 0 12px; }
.production-review > p { font-size: 13px; line-height: 1.8; color: var(--secondary); }
.review-details { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 16px; }
.review-details summary { font-size: 12px; color: var(--secondary); cursor: pointer; }
.review-details ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.production-license, .production-history { border-top: 1px solid var(--line); padding: 20px 24px; }
.production-license > summary, .production-history > summary, .project-edit > summary, .project-materials > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--secondary); font-size: 13px; cursor: pointer; list-style: none; }
.production-license > summary::-webkit-details-marker, .production-history > summary::-webkit-details-marker, .project-edit > summary::-webkit-details-marker, .project-materials > summary::-webkit-details-marker { display: none; }
.production-license[open] > summary > .icon, .production-history[open] > summary > .icon, .project-edit[open] > summary > .icon, .project-materials[open] > summary > .icon { transform: rotate(90deg); }
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.license-source { min-width: 0; }
.license-source h3, .license-source h4 { font-size: 13px; font-weight: 500; margin: 0 0 12px; }
.license-source strong { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.license-source p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
.license-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; }
.license-links a { color: var(--secondary); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.production-history-list { margin-top: 20px; }
.production-history-list > div { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.production-history-list > div > span { flex: 1; min-width: 0; }
.production-history-list strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.production-history-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
.project-production-settings, .project-materials, .project-edit { margin-top: 24px; }
.production-config-form { max-width: 760px; padding: 24px; }
.production-next-date { font-size: 12px; color: var(--muted); padding: 0 24px 24px; font-variant-numeric: tabular-nums; }
.project-materials, .project-edit { padding: 24px; }
.project-edit-form { max-width: 712px; margin-top: 24px; }
.catalog-item + .catalog-item { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
@media (max-width:1180px) {
  .trend-drawer:has(.research-header-status:not(:empty)) .trend-drawer-body { max-height: none; }
}
@media (max-width:900px) {
  .production-result { grid-template-columns: 1fr; }
  .production-preview { max-width: 360px; }
}
@media (max-width:720px) {
  .main-nav:has(.video-subnav) { flex-wrap: wrap; }
  .video-subnav { order: 1; flex-basis: 100%; flex-direction: row; gap: 4px; margin: 4px 0 0; padding: 0; border-left: 0; }
  .video-subnav a { padding: 8px; font-size: 11px; }
  .clip-collection-list { gap: 20px; }
  .clip-card-player video { max-height: 560px; }
  .production-panel .section-heading { align-items: start; gap: 16px; }
  .production-panel .section-heading .button { font-size: 12px; }
  .production-result, .production-stages, .production-license, .production-history, .production-config-form, .project-materials, .project-edit { padding: 20px; }
  .production-run-summary { padding: 16px 20px; }
  .license-grid { grid-template-columns: 1fr; gap: 24px; }
  .production-error { margin: 20px; }
  .production-next-date { padding: 0 20px 20px; }
}

/* Material input remains within project settings. */
.project-material-edit { padding: 24px; margin-top: 24px; }
.project-material-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; color: var(--secondary); font-size: 13px; }
.project-material-edit > summary::-webkit-details-marker { display: none; }
.project-material-edit[open] > summary > .icon { transform: rotate(90deg); }
.material-edit-intro { margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.material-edit-form { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.material-edit-groups { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
.material-edit-groups fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.material-edit-groups legend { padding: 0; margin-bottom: 24px; font-size: 14px; font-weight: 500; color: var(--text); }
.material-edit-groups .stacked-form { gap: 20px; }
.material-edit-groups textarea { min-height: 96px; }
@media (max-width:900px) {
  .material-edit-groups { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width:720px) {
  .project-material-edit { padding: 20px; }
}

.trend-limitations > summary { color: var(--secondary); font-size: 12px; line-height: 1.6; cursor: pointer; }
.trend-limitations[open] > ul { margin-top: 12px; }

/* Projects open into their finished clips; controls remain in project settings. */
.project-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); gap: 24px; }
.project-tile { display: flex; flex-direction: column; padding: 24px; min-height: 224px; transition: background-color 160ms var(--ease),border-color 160ms var(--ease); }
.project-tile:hover { background: var(--g-22); border-color: var(--g-55); }
.project-tile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.project-tile-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--g-41); border-radius: 8px; color: var(--secondary); }
.project-tile h2 { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.project-tile > p { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.project-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-tile-action { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); }
.project-finished-clips .clip-collection-list { grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); }
.project-settings { margin-top: 32px; }
.project-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; list-style: none; cursor: pointer; font-size: 13px; color: var(--secondary); }
.project-settings > summary::-webkit-details-marker { display: none; }
.project-settings[open] > summary { border-bottom: 1px solid var(--line); }
.project-settings[open] > summary > .icon { transform: rotate(90deg); }
.project-settings-body { padding: 24px; }
.project-settings-body > .project-production { margin-bottom: 24px; }
@media (max-width:720px) {
  .project-tiles { gap: 20px; }
  .project-tile { padding: 20px; min-height: 200px; }
  .project-settings > summary, .project-settings-body { padding: 20px; }
}

/* Publication copy stays outside the video and hidden until requested. */
.clip-publication { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.clip-publication > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; line-height: 1.6; list-style: none; cursor: pointer; }
.clip-publication > summary::-webkit-details-marker { display: none; }
.clip-publication[open] > summary > .icon { transform: rotate(90deg); }
.publication-fields { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.publication-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.publication-field > label { color: var(--muted); font-size: 12px; }
.publication-field input, .publication-field textarea { color: var(--secondary); font-size: 12px; line-height: 1.7; }
.publication-field .publication-title { min-height: 64px; height: 64px; }
.publication-field .publication-description { min-height: 144px; height: 144px; }
.publication-fields > .text-link { white-space: normal; align-items: start; line-height: 1.6; }

/* Feinschliff 22.11.2026: Karten mit weicher Kante, im hellen Modus mit leichtem Schatten; Schalter für hell und dunkel */
:root { --radius: 16px; }
.panel { box-shadow: var(--card-shadow); }
.overview-module-icon { border-radius: 12px; background: var(--raised); border-color: var(--line); }
.overview-module:hover .overview-module-icon { color: var(--accent-green); }
.nav-link { border-radius: 10px; }
.nav-link.active { box-shadow: inset 0 0 0 1px var(--line-soft); }
.feed-row time, .feed-row time small { font-family: var(--mono); font-size: 12px; }
.theme-toggle { margin-left: auto; }
.sidebar-account form { margin: 0; }
.theme-corner { position: fixed; top: 16px; right: 16px; }

/* === Leitstand der Startseite === */
.leit-heading { align-items: flex-end; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.kpi:hover { border-color: var(--g-55); transform: translateY(-1px); }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.kpi-spark { position: absolute; right: 16px; bottom: 14px; width: 96px; height: 28px; fill: none; stroke: var(--accent-green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9; }
.leit-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.needs, .runs { list-style: none; margin: 0; padding: 8px; }
.need { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--control-radius); color: var(--text); font-size: 13px; line-height: 1.45; transition: background-color 160ms var(--ease); }
.need:hover { background: var(--hover); }
.need > span:nth-child(2) { flex: 1; }
.need .icon { color: var(--muted); }
.need-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #e0a526; }
.need-rot .need-dot { background: var(--accent-red); box-shadow: 0 0 0 4px var(--accent-red-bg); }
.need-gelb .need-dot { box-shadow: 0 0 0 4px color-mix(in srgb, #e0a526 18%, transparent); }
.empty-good p::before { content: "✓ "; color: var(--accent-green); }
.leit-error { padding: 0 24px 16px; color: var(--muted); font-size: 12px; }
.run { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--control-radius); }
.run:hover { background: var(--hover); }
.run > a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.run-name { font-weight: 500; }
.run-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.meter { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: var(--g-30); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent-green); }
.fill-10 { width: 10%; } .fill-20 { width: 20%; } .fill-30 { width: 30%; } .fill-40 { width: 40%; } .fill-50 { width: 50%; }
.fill-60 { width: 60%; } .fill-70 { width: 70%; } .fill-80 { width: 80%; } .fill-90 { width: 90%; } .fill-100 { width: 100%; }
.status-pill { flex: 0 0 auto; padding: 4px 10px; border: 1px solid var(--g-41); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-pill.on { color: var(--accent-green); background: var(--accent-green-bg); border-color: transparent; }
@media (max-width: 900px) { .leit-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { min-height: 112px; padding: 14px; } .kpi-value { font-size: 22px; } .kpi-spark { width: 64px; right: 10px; } }

/* === Anmeldung: links ein ruhiges Bild von PP Hub, rechts das Formular === */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px 56px; overflow: hidden; color: var(--g-ef); background: radial-gradient(120% 80% at 0% 100%, color-mix(in srgb, var(--accent-green) 22%, transparent), transparent 60%), radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--accent-green) 10%, transparent), transparent 55%), var(--g-10); border-right: 1px solid var(--line-soft); }
.auth-hero-brand .brand-mark { width: 28px; height: 28px; }
.auth-hero-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.auth-hero-copy { position: relative; z-index: 1; max-width: 440px; }
.auth-hero-kicker { color: var(--accent-green); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.auth-hero-title { margin-top: 12px; font-family: var(--pp-display, inherit); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; }
.auth-hero-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; color: var(--secondary); font-size: 14px; }
.auth-hero-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.auth-hero-list span { color: var(--text); font-weight: 500; }
.auth-hero-bars { position: absolute; right: -28px; top: 14%; width: min(340px, 52%); color: var(--accent-green); opacity: .1; }
.auth-split .auth-main { min-height: 100vh; }
.auth-split .auth-main > .brand { display: none; }
.auth-panel { box-shadow: var(--card-shadow); }
.auth-foot { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { display: none; }
  .auth-split .auth-main > .brand { display: inline-flex; }
}
