:root {
  --bg: #0b0e14; --panel: #121722; --panel2: #182031; --line: #232c40;
  --text: #dfe6f3; --muted: #8a96ad; --accent: #7aa2ff;
  --green: #3ccf7a; --yellow: #f2c14e; --red: #ef5b5b;
  --radius: 14px;
}
body.red {
  --bg: #0a0000; --panel: #140202; --panel2: #1c0404; --line: #3a0a0a;
  --text: #ff5a4a; --muted: #a0382e; --accent: #ff3b2f;
  --green: #ff5a4a; --yellow: #c8382c; --red: #7a1a14;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
input, select, textarea, button { font: inherit; }
::placeholder { color: var(--muted); opacity: .8; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--text); }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
.ghost { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.ghost:hover { border-color: var(--accent); }
h2 { font-size: 1rem; margin: 0 0 12px; font-weight: 600; }
h2 small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.05rem; white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs button { background: none; border: 0; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.tabs button.active { background: var(--panel2); color: var(--text); }

main { max-width: 1180px; margin: 0 auto; padding: 16px; }
.tab { display: none; } .tab.active { display: block; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Nacht-Auswahl */
.nightpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.nightpick button { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.nightpick button.active { border-color: var(--accent); background: var(--panel2); }
.nightpick .d { color: var(--muted); font-size: .8rem; }
.nightpick .l { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }

/* Ampel */
.hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.light { display: flex; flex-direction: column; gap: 8px; background: #05070b; padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.light span { width: 34px; height: 34px; border-radius: 50%; background: #1d222c; transition: .3s; }
.light.red .r { background: var(--red); box-shadow: 0 0 18px var(--red); }
.light.yellow .y { background: var(--yellow); box-shadow: 0 0 18px var(--yellow); }
.light.green .g { background: var(--green); box-shadow: 0 0 18px var(--green); }
.hero-text { flex: 1; min-width: 240px; }
.level { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.window { font-size: 1.1rem; margin: 4px 0 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.facts b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; }

/* Stunden */
.hours-wrap { overflow-x: auto; }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); gap: 3px; min-width: max-content; }
.hcol { display: grid; grid-template-rows: 18px 90px repeat(8, 22px); gap: 3px; text-align: center; font-size: .75rem; }
.hcol.light-sky { opacity: .45; }
.hcol .t { color: var(--muted); }
.hcol .bar { position: relative; background: var(--panel2); border-radius: 6px; overflow: hidden; }
.hcol .bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; }
.hcol .bar span { position: absolute; left: 0; right: 0; top: 4px; font-weight: 600; font-size: .78rem; }
.hcol .c { border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.hours-legend { display: grid; grid-template-rows: 18px 90px repeat(8, 22px); gap: 3px; font-size: .75rem; color: var(--muted); padding-right: 6px; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.hours-legend div { display: flex; align-items: center; }

/* Ziele */
.targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.target { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.target .n { font-weight: 600; } .target .id { color: var(--muted); font-size: .8rem; margin-left: 6px; }
.target .meta { color: var(--muted); font-size: .82rem; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.target .note { font-size: .82rem; color: var(--accent); margin-top: 6px; }
.target svg { width: 100%; height: 56px; display: block; }
.badge { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--text); margin-left: 6px; vertical-align: middle; }

/* Logbuch */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile .v { font-size: 1.6rem; font-weight: 700; } .tile .k { color: var(--muted); font-size: .85rem; }
.months { display: flex; align-items: flex-end; gap: 4px; height: 120px; overflow-x: auto; padding-top: 18px; }
.month { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); }
.month i { width: 70%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.month b { color: var(--text); font-weight: 500; font-size: .7rem; }
.scanbox { display: flex; gap: 10px; align-items: center; }
.filter { width: 100%; max-width: 320px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); margin-bottom: 12px; }

.obj { border-top: 1px solid var(--line); }
.obj-head { display: grid; grid-template-columns: 1fr 90px 70px 70px 200px; gap: 12px; align-items: center; padding: 10px 4px; cursor: pointer; }
.obj-head:hover { background: var(--panel2); }
.obj-head .nm { font-weight: 600; } .obj-head .nm small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.goal { display: flex; align-items: center; gap: 8px; }
.goal input { width: 58px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 3px 6px; text-align: right; }
.prog { flex: 1; height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); }
.prog i.done { background: var(--green); }
.obj-body { padding: 0 4px 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
.obj-cols { display: grid; grid-template-columns: 1fr 90px 70px 70px 200px; gap: 12px; padding: 0 4px 6px; color: var(--muted); font-size: .8rem; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 12px; max-width: 90vw; white-space: pre-line; z-index: 10; }

@media (max-width: 720px) {
  .top { gap: 8px; } .brand b { display: none; }
  .level { font-size: 1.6rem; }
  .hero-actions { flex-direction: row; width: 100%; }
  .obj-head, .obj-cols { grid-template-columns: 1fr 60px 120px; }
  .obj-head .hide-s, .obj-cols .hide-s { display: none; }
  .nightpick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rigsel { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--text); margin-bottom: 12px; font: inherit; }

/* Planer */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { color: var(--muted); font-size: .85rem; }
.field input, .field select { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; width: 100%; color-scheme: dark; }
.field.box { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.field.box input { background: var(--panel); }
.check { display: flex; gap: 8px; align-items: center; color: var(--text) !important; }
.check input { width: auto; }
.inline { display: flex; gap: 8px; } .inline input { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chips button { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: .8rem; }
.chips button.active, .chips button:hover { border-color: var(--accent); }
.chips button:disabled { opacity: .4; cursor: default; }
.ghost.sm { padding: 4px 10px; font-size: .85rem; }
.plan-result .big { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.plan-result .big small { font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kv div { display: flex; flex-direction: column; } .kv span { color: var(--muted); font-size: .8rem; } .kv b { font-size: 1.05rem; }
.seg { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--panel2); margin: 4px 0 8px; }
.seg i { display: block; height: 100%; transition: width .3s; }
.s-exp { background: var(--accent); } .s-pause { background: var(--yellow); } .s-dither { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--muted); }
.legend .dot { margin-right: 5px; vertical-align: middle; }
.plan-result .note { color: var(--accent); font-size: .9rem; margin: 8px 0; min-height: 1px; }
.session { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.session .kv { flex: 1; grid-template-columns: 1fr; gap: 6px; margin: 0; }
#sRing { transition: stroke-dashoffset .8s linear; }
.pill { font-size: .75rem; padding: 2px 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: var(--green); border-color: var(--green); }
@media (max-width: 820px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* Galerie (Admin) */
.gal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.ghost { color: var(--text); text-decoration: none; display: inline-block; }
.filebtn { display: inline-block; cursor: pointer; }
.primary { background: var(--accent); color: #0b0e14; border: 0; border-radius: 10px; padding: 8px 18px; font-weight: 600; }
body.red .primary { color: #000; }
.ghost.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0; }
.gcard:hover { border-color: var(--accent); }
.gcard .th { aspect-ratio: 3 / 2; background: #000 center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.gcard .th .st { position: absolute; top: 8px; left: 8px; }
.gcard .cap { padding: 10px 12px; } .gcard .cap b { display: block; } .gcard .cap span { color: var(--muted); font-size: .82rem; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.7); color: var(--text); border: 1px solid var(--line); }
.tag.pub { color: var(--green); border-color: var(--green); } .tag.warn { color: var(--yellow); border-color: var(--yellow); } .tag.err { color: var(--red); border-color: var(--red); }

.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.65); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 12px; overflow-y: auto; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 760px; padding: 16px; }
.modal-box.wide { max-width: 1280px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.modal-head h2 { margin: 0; }
.modal-head select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; }
.modal-foot { margin-top: 12px; }
.editor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.e-preview { background: #000; border-radius: 12px; position: relative; display: flex; justify-content: center; min-height: 200px; }
.e-preview .frame { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.e-preview img { max-width: 100%; max-height: 62vh; display: block; }
#eOverlay { position: absolute; inset: 0; pointer-events: none; }
.e-proc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); pointer-events: none; }
.e-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.e-bar .chips button[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.e-solve { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.e-solve dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; }
.e-solve dt { color: var(--muted); } .e-solve dd { margin: 0; }
h3 { font-size: .95rem; margin: 12px 0 8px; }
.ver { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.ver.sel { border-color: var(--accent); }
.ver img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; background: #000; cursor: pointer; }
.ver input { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 4px 8px; width: 100%; font: inherit; }
.ver .btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ver small { color: var(--muted); display: block; margin-top: 2px; }
.e-form textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; width: 100%; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; margin: 0 0 12px; }
legend { padding: 0 6px; color: var(--muted); font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.toggles { display: flex; gap: 18px; margin-bottom: 12px; }
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); position: relative; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: var(--green); border-color: var(--green); }
.switch input:checked + span::after { left: 18px; background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); }
.acq-wrap { overflow-x: auto; }
.acq input { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); padding: 3px 6px; width: 100%; min-width: 60px; font: inherit; font-size: .85rem; }
.acq td { padding: 3px; border: 0; } .acq th { padding: 3px; border: 0; font-size: .78rem; }
.acq button { background: none; border: 0; color: var(--muted); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 66vh; overflow-y: auto; }
.pick { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--panel2); padding: 0; text-align: left; }
.pick img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #000; }
.pick span { display: block; font-size: .72rem; padding: 4px 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick.sel { border-color: var(--accent); }
.pick .done { position: absolute; top: 6px; right: 6px; }
/* Himmels-Overlay */
.sky-overlay { width: 100%; height: 100%; display: block; overflow: visible; }
.sky-overlay text { fill: #ffe6b8; paint-order: stroke; stroke: rgba(0,0,0,.75); stroke-width: 3px; }
.sky-ann circle { fill: none; stroke: #ffcf8a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.sky-ann.star circle { stroke: #9db4ff; }
.sky-ann.big circle { stroke-dasharray: 6 5; opacity: .75; }
.sky-grid path { fill: none; stroke: rgba(157,180,255,.45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sky-grid-labels text { fill: #b9c8ff; }
.sky-compass line { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sky-compass text { fill: #fff; font-weight: 700; }
.sky-compass .scale { stroke-width: 3; }
@media (max-width: 900px) { .editor { grid-template-columns: minmax(0, 1fr); } }

/* Ausrüstungs-Editor */
.rig-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.rig-list { display: flex; flex-direction: column; gap: 6px; }
.rig-item { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.rig-item.sel { border-color: var(--accent); }
.rig-item b { display: block; } .rig-item small { color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--accent); padding: 0; margin-left: 8px; font-size: .8rem; cursor: pointer; }
.rig-edit { padding: 4px 9px; margin-bottom: 12px; }
@media (max-width: 760px) { .rig-layout { grid-template-columns: minmax(0, 1fr); } }

/* Login & Konto */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { width: 100%; max-width: 380px; }
.login-box .brand { font-size: 1.2rem; margin-bottom: 14px; }
.login-box .primary { width: 100%; margin-top: 4px; padding: 10px; }
.login-err { color: var(--red); min-height: 1.3em; margin: 4px 0 10px; font-size: .9rem; }
.login-box .field input, #accModal .field input { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--text); width: 100%; }
.qr { background: #fff; border-radius: 10px; padding: 8px; width: 200px; height: 200px; }
.qr svg { width: 100%; height: 100%; display: block; }
.sess { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.sess small { color: var(--muted); display: block; }

/* Instagram */
.ig-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.ig-preview { position: relative; background: #000; border-radius: 12px; min-height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ig-preview img { max-width: 100%; max-height: 56vh; display: block; border-radius: 4px; }
.ig-layout textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text); width: 100%; resize: vertical; font-size: .9rem; line-height: 1.45; }
.chips button.on { border-color: var(--accent); color: var(--accent); }
.ig-notice { background: var(--panel2); border: 1px solid var(--yellow); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .9rem; }
.ig-posts { margin-top: 14px; font-size: .88rem; }
.count-bad { color: var(--red); }
@media (max-width: 860px) { .ig-layout { grid-template-columns: minmax(0, 1fr); } }
.primary:disabled { opacity: .4; cursor: not-allowed; }
#accModal { z-index: 30; }  /* Konto liegt immer über anderen Dialogen (z. B. „Instagram verbinden“) */

/* Allsky & Treffsicherheit */
.as-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 4px 0 10px; }
.as-live .big { font-size: 1.5rem; font-weight: 700; }
.as-live .muted, .as-models .muted { color: var(--muted); font-size: .85rem; }
.as-chart svg { width: 100%; height: 90px; display: block; overflow: visible; }
.as-chart .lbl { fill: var(--muted); font-size: 10px; }
.as-models { overflow-x: auto; margin-top: 10px; }
.as-models td.bar { width: 40%; min-width: 120px; }
.as-models td.bar i { display: block; height: 8px; border-radius: 4px; background: var(--muted); opacity: .6; }
.as-models tr.ml td { font-weight: 600; } .as-models tr.ml td.bar i { background: var(--accent); opacity: 1; }
.as-alerts { margin-top: 12px; } .as-alerts summary { cursor: pointer; color: var(--muted); }
.as-alerts .check { margin: 8px 0; font-size: .9rem; }
.field.inline-field { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; margin: 8px 0 0; text-align: left; }
.field.inline-field select { width: auto; }
.ml-badge { color: var(--accent); }

/* Wasserzeichen */
.wm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wm-preview { position: sticky; top: 0; text-align: center; }
.wm-preview img { max-width: 100%; max-height: 70vh; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); }
.field input[type="range"] { padding: 0; accent-color: var(--accent); }
@media (max-width: 800px) { .wm-layout { grid-template-columns: 1fr; } .wm-preview { position: static; } }
