@font-face { font-family: "Rubik"; src: url("/static/Rubik.ttf"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #ECEEF2; --panel: #FFFFFF; --ink: #172033; --muted: #5C687D; --line: #D4D9E3; --line-soft: #E6E9EF;
  --stage: #0F141E; --stage-2: #1A2130; --stage-3: #283247; --stage-ink: #DCE2EE; --stage-muted: #8C98AE;
  --de: #F0A21A; --de-soft: #FDF1D6; --de-ink: #7A4D00;
  --en: #3D7BFF; --en-soft: #E2EBFF; --en-ink: #1B46A8;
  --good: #17804D; --good-soft: #DCF2E5; --bad: #C2332F; --bad-soft: #FBE4E2; --warn: #8F5B00; --warn-soft: #FFEFCB;
  --r: 6px; --r-lg: 10px;
  --top-h: 48px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Rubik", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
a { color: var(--en-ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--en); outline-offset: 2px; }
.grow { flex: 1; }
.sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 4px; }
.hint { color: var(--muted); font-size: 12.5px; }
.bad-text { color: var(--bad); font-size: 12.5px; }
.loading, .empty { padding: 48px 24px; color: var(--muted); text-align: center; }
.icon { flex: none; }

/* ---------- Bedienelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #AEB6C6; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #24314D; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { background: rgba(23, 32, 51, 0.07); color: var(--ink); }
.btn.small { height: 26px; padding: 0 9px; font-size: 12.5px; }
.btn.icon-btn { width: 32px; padding: 0; }
.btn.small.icon-btn, .btn.icon-btn.quiet { width: 26px; height: 26px; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
  font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 9px; min-width: 0; }
textarea { resize: vertical; width: 100%; line-height: 1.4; }
select { height: 32px; padding: 0 8px; }
input[type=number] { width: 78px; }
input[type=range] { accent-color: var(--ink); flex: 1; min-width: 0; }
input[type=color] { width: 34px; height: 28px; padding: 1px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; }
input[type=checkbox] { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
progress { width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--line-soft); accent-color: var(--ink); }
progress::-webkit-progress-bar { background: var(--line-soft); }
progress::-webkit-progress-value { background: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check.small { font-size: 12.5px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.field > span { font-size: 12.5px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.field input, .field select { width: 100%; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 28px; }
.row-label { flex: none; width: 96px; font-size: 12.5px; color: var(--muted); }
.row-ctl { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.row output { flex: none; width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.seg-switch { display: inline-flex; padding: 2px; gap: 2px; background: var(--line-soft); border-radius: 8px; }
.seg-switch button { border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--muted); padding: 4px 11px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.seg-switch button.on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chip { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.busy { background: var(--ink); color: #fff; }
.chip.none { background: var(--line-soft); color: var(--muted); }
.note { padding: 10px 12px; border-radius: var(--r); font-size: 13px; margin: 10px 0; overflow-wrap: anywhere; }
.note.good { background: var(--good-soft); color: #0D5C36; }
.note.bad { background: var(--bad-soft); color: #8E211E; }
.note.warn { background: var(--warn-soft); color: #6B4400; }
.note p + p { margin-top: 6px; }

.dialog { border: 0; border-radius: var(--r-lg); padding: 22px; width: min(440px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 24px 60px rgba(15, 20, 30, 0.35); }
.dialog::backdrop { background: rgba(15, 20, 30, 0.5); }
.dialog h2 { margin-bottom: 10px; }
.dialog-body p + p { margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); box-shadow: 0 8px 24px rgba(15, 20, 30, 0.3); overflow-wrap: anywhere; }
.toast.error { background: var(--bad); }

/* ---------- Kopfleiste ---------- */
.top { height: var(--top-h); display: flex; align-items: center; gap: 28px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 20px; height: 20px; border-radius: 5px; background: linear-gradient(90deg, var(--de) 0 46%, var(--ink) 46% 54%, var(--en) 54%); border: 3px solid var(--ink); }
.top-nav { display: flex; gap: 4px; align-self: stretch; }
.top-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.top-nav a:hover { color: var(--ink); }
.top-nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.usage { font-size: 12.5px; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.usage:hover { color: var(--ink); }

/* ---------- Anmeldung ---------- */
body.login { display: grid; place-items: center; background: var(--stage); }
.login-card { width: min(360px, calc(100vw - 32px)); background: var(--panel); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { font-size: 20px; margin-top: 14px; }
.login-card label { font-size: 12.5px; font-weight: 500; margin-top: 6px; }
.login-card input { height: 38px; }
.login-card .btn { height: 38px; margin-top: 8px; }
.form-error { color: var(--bad); font-size: 13px; }

/* ---------- Seiten ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; }
.page.narrow { max-width: 820px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card > h2 { margin-bottom: 6px; }

.dropzone { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 30px 20px; border: 1.5px dashed #A9B2C4; border-radius: var(--r-lg);
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; margin-bottom: 20px; }
.dropzone:hover, .dropzone.over { background: var(--panel); border-color: var(--ink); }
.dropzone:disabled { cursor: progress; }
.project { display: grid; grid-template-columns: 78px minmax(340px, 1.2fr) minmax(190px, 1fr) minmax(190px, 1fr); gap: 16px; align-items: stretch;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; margin-bottom: 10px; }
.project-thumb { display: block; width: 78px; aspect-ratio: 9 / 13; border-radius: var(--r); overflow: hidden; background: var(--stage); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 0; }
.project-name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-name:hover { text-decoration: underline; }
.project-sub { color: var(--muted); font-size: 12.5px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cell { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cell.lang-de { border-left-color: var(--de); }
.cell.lang-en { border-left-color: var(--en); }
.cell-head { display: flex; align-items: center; gap: 8px; }
.lang-tag { font-weight: 700; font-size: 12px; }
.lang-de .lang-tag { color: var(--de-ink); }
.lang-en .lang-tag { color: var(--en-ink); }
.cell-title { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-pubs li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 4px; min-width: 0; }
.cell-none { font-size: 12.5px; color: var(--muted); }

/* ---------- Editor ---------- */
body.in-editor { overflow: hidden; }
.editor { height: calc(100vh - var(--top-h)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 46px minmax(0, 1fr) 196px; }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 46px; }
.ed-name { border-color: transparent !important; font-weight: 600; font-size: 15px; width: min(320px, 30vw); padding: 5px 8px !important; }
.ed-name:hover, .ed-name:focus { border-color: var(--line) !important; }
.ed-title { font-weight: 600; font-size: 15px; padding: 0 8px; }
.ed-save { font-size: 12.5px; color: var(--muted); margin: 0 6px; min-width: 110px; }
.ed-main { display: grid; grid-template-columns: 250px minmax(0, 1fr) 348px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.editor.dropping, .dropping .lib { outline: 2px dashed var(--ink); outline-offset: -6px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; }
.lib { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.lib .hint { padding: 8px 12px; }
.lib-progress { margin: 0 12px 8px; padding: 6px 10px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: 12.5px; }
.lib-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 26px; gap: 9px; align-items: center; padding: 6px 8px 6px 12px; }
.lib-item:hover { background: #F5F6F9; }
.lib-thumb { position: relative; width: 72px; height: 44px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--stage); cursor: pointer; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-add { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(15, 20, 30, 0.55); opacity: 0; }
.lib-thumb:hover .lib-add, .lib-thumb:focus-visible .lib-add { opacity: 1; }
.lib-name { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-sub { font-size: 11.5px; color: var(--muted); }
.lib-note { color: var(--warn); }

.stage { background: var(--stage); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 4px; }
.stage-top .check { color: var(--stage-muted); }
.stage-top input[type=checkbox] { accent-color: var(--stage-ink); }
.lang-switch { background: var(--stage-2); }
.lang-switch button { color: var(--stage-muted); }
.lang-switch button.on { box-shadow: none; color: var(--stage); }
.lang-switch button.lang-de.on { background: var(--de); }
.lang-switch button.lang-en.on { background: var(--en); color: #fff; }
.stage-fit { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 14px 14px; }
.frame { position: relative; background: #000; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px var(--stage-3); }
.stage-canvas { display: block; width: 100%; height: 100%; }
.title-img { position: absolute; transform: translate(-50%, -50%); cursor: move; user-select: none; touch-action: none; outline: 1px dashed transparent; outline-offset: -2px; max-width: none; }
.title-img:hover { outline-color: rgba(255, 255, 255, 0.55); }
.title-img.off { opacity: 0.18; }
.guide-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #FF4FA3; pointer-events: none; }
.safe { position: absolute; inset: 0; pointer-events: none; }
.safe > div { position: absolute; background: repeating-linear-gradient(135deg, rgba(255, 79, 163, 0.28) 0 6px, rgba(255, 79, 163, 0.12) 6px 12px); }
.safe-top { left: 0; right: 0; top: 0; height: 7%; }
.safe-right { right: 0; top: 42%; width: 14%; height: 38%; }
.safe-bottom { left: 0; right: 0; bottom: 0; height: 19%; }
.frame-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--stage-muted); }

.insp { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; flex: none; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 500; color: var(--muted); padding: 12px 6px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.insp-body { padding: 14px 14px 28px; overflow-y: auto; flex: 1; }
.insp-body .hint { margin-top: 8px; }
.title-text { display: block; margin-top: 10px; padding-left: 10px; border-left: 3px solid var(--line); }
.title-text.lang-de { border-left-color: var(--de); }
.title-text.lang-en { border-left-color: var(--en); }
.title-text > span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.tpl-row select { flex: 1; }
.font-picker { position: relative; margin-top: 10px; }
.font-btn { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font-size: 18px; text-align: left; cursor: pointer; }
.font-list { position: absolute; z-index: 5; left: 0; right: 0; top: 44px; max-height: 320px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(15, 20, 30, 0.2); padding: 4px; }
.font-list button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: var(--ink); padding: 7px 10px; font-size: 19px; text-align: left; border-radius: 4px; cursor: pointer; }
.font-list button:hover { background: var(--line-soft); }
.font-list button.on { background: var(--ink); color: #fff; }
.font-list .font-upload { font: inherit; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); border-radius: 0; margin-top: 4px; padding-top: 10px; }
.clip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tl { background: var(--stage-2); color: var(--stage-ink); display: flex; flex-direction: column; min-height: 0; min-width: 0; border-top: 1px solid var(--stage-3); }
.tl-tools { display: flex; align-items: center; gap: 6px; padding: 8px 12px; flex: none; }
.tl .btn { background: var(--stage-3); border-color: transparent; color: var(--stage-ink); height: 30px; }
.tl .btn:hover:not(:disabled) { background: #33405A; }
.tl .btn.play-btn { width: 40px; padding: 0; background: var(--stage-ink); color: var(--stage); }
.tl .sep { background: var(--stage-3); }
.tl-time { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 132px; padding-left: 6px; }
.tl-zoom { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stage-muted); width: 170px; }
.tl-zoom input { accent-color: var(--stage-ink); }
.tl-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 0 16px; }
.tl-track { position: relative; height: 100%; min-height: 110px; cursor: text; touch-action: none; }
.tl-ruler { position: relative; height: 22px; border-bottom: 1px solid var(--stage-3); }
.tick { position: absolute; top: 3px; padding-left: 5px; border-left: 1px solid var(--stage-3); height: 18px; font-size: 11px; color: var(--stage-muted); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.tl-segs { position: relative; height: 72px; margin-top: 10px; }
.seg { position: absolute; top: 0; height: 72px; border-radius: 5px; overflow: hidden; background: var(--stage-3); cursor: grab; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.seg.sel { box-shadow: inset 0 0 0 2px #fff; }
.seg.dragging { z-index: 3; opacity: 0.85; cursor: grabbing; }
.seg-body { position: absolute; inset: 0; background-repeat: no-repeat; touch-action: none; }
.seg-label { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 3px 12px; font-size: 11.5px; color: #fff; background: linear-gradient(rgba(10, 14, 22, 0.8), rgba(10, 14, 22, 0)); white-space: nowrap; overflow: hidden; pointer-events: none; }
.seg-name { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.seg-dur { margin-left: auto; font-variant-numeric: tabular-nums; opacity: 0.85; }
.seg-handle { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: rgba(255, 255, 255, 0); touch-action: none; }
.seg-handle.l { left: 0; } .seg-handle.r { right: 0; }
.seg:hover .seg-handle, .seg.sel .seg-handle { background: rgba(255, 255, 255, 0.85); }
.seg-handle::after { content: ""; position: absolute; left: 4px; top: 26px; width: 1px; height: 20px; background: var(--stage); opacity: 0; }
.seg:hover .seg-handle::after, .seg.sel .seg-handle::after { opacity: 1; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #FF4FA3; pointer-events: none; z-index: 4; }
.tl-head::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 10px; background: #FF4FA3; border-radius: 2px 2px 6px 6px; }

/* ---------- Veröffentlichen ---------- */
.publish { min-height: calc(100vh - var(--top-h)); }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; padding: 20px 24px 64px; }
.lane { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 22px; min-width: 0; }
.lane.lang-de { border-top-color: var(--de); }
.lane.lang-en { border-top-color: var(--en); }
.lane-head h2 { font-size: 19px; }
.lane-head p { color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.lane-status { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lane-status > .note { margin: 0; align-self: stretch; }
.progress-box { align-self: stretch; }
.progress-line { display: flex; justify-content: space-between; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.result { display: flex; gap: 14px; align-self: stretch; }
.result-video { width: 150px; aspect-ratio: 9 / 16; background: #000; border-radius: var(--r); flex: none; object-fit: contain; }
.result-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.result-meta .note { margin: 0; }
.result-meta .btn { margin-top: 4px; }
.dub-box { align-self: stretch; background: var(--en-soft); border-radius: var(--r); padding: 12px 14px; }
.dub-box .hint { margin-top: 8px; color: var(--en-ink); }
.dub-box .hint.bad-text { color: var(--bad); }
.targets { margin-top: 4px; }
.target { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.target-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.target-opts { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.target .btn { grid-column: 2; grid-row: 1 / span 2; }
.platform { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; }
.platform.youtube { background: #D22B2B; }
.more-targets { margin-top: 10px; }
.more-targets summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.lane-targets > .btn { margin-top: 12px; margin-left: -9px; }
.lane-targets > .hint { margin-top: 8px; }
.log li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.log-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-head .btn { margin-left: auto; }
.lane-log { margin-top: 6px; }

/* ---------- Konten, Einstellungen ---------- */
.accounts li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0 12px 12px; border-left: 3px solid var(--line); margin-top: 10px; }
.accounts li.lang-de { border-left-color: var(--de); }
.accounts li.lang-en { border-left-color: var(--en); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--line-soft); object-fit: cover; }
.account-main input { width: 100%; font-weight: 600; }
.copy-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
code { font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; background: rgba(23, 32, 51, 0.08); padding: 3px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.card > .hint { margin-top: 10px; }
.usage-line { font-size: 15px; margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.form-actions { grid-column: 1 / -1; margin-top: 16px; }
.env-list li, .simple-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.simple-list li > span:first-child { font-size: 17px; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; margin-top: 8px; }
.font-grid li { display: flex; align-items: center; justify-content: space-between; font-size: 18px; padding: 5px 0; white-space: nowrap; overflow: hidden; }
.version { text-align: center; margin-top: 24px; }

@media (max-width: 1100px) {
  .ed-main { grid-template-columns: 200px minmax(0, 1fr) 300px; }
  .project { grid-template-columns: 78px minmax(0, 1fr); }
  .project .cell { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .top { gap: 6px; padding: 0 8px; }
  .brand { font-size: 0; gap: 0; }
  .top-nav { flex: 1; min-width: 0; overflow-x: auto; gap: 0; }
  .top-nav a { padding: 0 8px; }
  .top-right .btn { padding: 0 6px; }
  .usage { display: none; }
  .tl-tools { flex-wrap: wrap; }
  .tl-zoom, .tl-tools .grow { display: none; }
  .tl-time { min-width: 0; }
  .tl { height: auto; min-height: 230px; }
  .project { grid-template-columns: 64px minmax(0, 1fr); }
  .project-thumb { width: 64px; }
  .lanes { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 20px 12px 48px; }
  body.in-editor { overflow: auto; }
  .editor { height: auto; grid-template-rows: auto auto auto; }
  .ed-bar { flex-wrap: wrap; padding: 6px 10px; }
  .ed-main { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 70vh; order: -1; }
  .lib, .insp { border: 0; border-top: 1px solid var(--line); max-height: none; }
  .accounts li { grid-template-columns: 36px minmax(0, 1fr); }
  .result { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
