
/* 작업대: 영상과 같은 어두운 무대 하나. 도구 표면은 불투명, 강조색은 호박색 하나(공 색과 겹치지 않게). */
:root {
  color-scheme: dark;
  --bg: #0b0c11; --stage: #08090d; --panel: #13151d; --panel2: #1b1e2a; --panel3: #242838; --line: #262a3a; --fg: #ecebe6; --mute: #9197ab; --dim: #636a80;
  --accent: #ffd34d; --accent-fg: #1a1505; --danger: #ff5d6c; --ok: #3ddc84;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --hit: 40px; --r: 12px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
@media (pointer: coarse) { :root { --hit: 44px; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--fg); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { user-select: text; -webkit-user-select: text; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ic { display: block; flex: none; }
.sp { flex: 1; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 버튼 */
.ib { width: var(--hit); height: var(--hit); display: grid; place-items: center; border-radius: 10px; color: var(--fg); flex: none; }
.ib:hover { background: var(--panel2); } .ib:active { background: var(--panel3); } .ib:disabled { color: var(--dim); pointer-events: none; }
.btn { height: var(--hit); padding: 0 16px; border-radius: 10px; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--panel3); } .btn:disabled { opacity: .5; pointer-events: none; }
.btn.pri { background: var(--accent); color: var(--accent-fg); } .btn.pri:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); } .btn.wide { width: 100%; }

/* ── 처음 화면 ── */
.view { position: fixed; inset: 0; display: flex; flex-direction: column; }
#home { padding-top: var(--sat); }
.hbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 max(16px, var(--sal)) 0 max(18px, var(--sal)); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, #ff5a5f, #ffb020, #3dd68c, #3ba9ff, #a970ff, #ff6fb5, #ff5a5f); -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); }
/* 사이트에 실렸을 때만 붙는 메뉴(app.js siteBar) — 사이트 머리와 같은 모양 */
.sw-seg { display: flex; gap: 2px; padding: 3px; margin-left: 14px; border-radius: 999px; background: rgba(255,255,255,.06); }
.sw-seg a { padding: 6px 13px; border-radius: 999px; color: var(--mute); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sw-seg a:hover { color: var(--fg); } .sw-seg a[aria-current] { background: rgba(255,255,255,.12); color: var(--fg); }
.sw-login { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #10121f; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.sw-acct { color: var(--mute); font-size: 14px; font-weight: 600; text-decoration: none; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .hbar .brand span { display: none; } .sw-seg { margin-left: 4px; } .sw-seg a { padding: 6px 10px; font-size: 13px; } }
@media (max-width: 420px) { .hbar { gap: 6px; padding-left: 12px; padding-right: 8px; } .hbar .brand, .hbar .sp { display: none; } .sw-seg { margin-left: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; } .sw-seg::-webkit-scrollbar { display: none; } .sw-seg a { padding: 6px 9px; } .sw-login { padding: 0 12px; font-size: 13px; flex: none; } #hSettings { flex: none; } }
.hscroll { flex: 1; overflow-y: auto; padding: 4px max(18px, var(--sal)) calc(28px + var(--sab)) max(18px, var(--sar)); -webkit-overflow-scrolling: touch; }
.hscroll > div { max-width: 1180px; margin: 0 auto; }
.hscroll h2 { font-size: 13px; font-weight: 700; color: var(--mute); margin: 18px 0 12px; letter-spacing: .02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px 14px; }
.card { display: flex; flex-direction: column; gap: 8px; text-align: left; position: relative; min-width: 0; }
.card .shot { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--stage); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: block; position: relative; transition: transform .16s, box-shadow .16s; }
.card .shot canvas, .card .shot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card:hover .shot { box-shadow: 0 0 0 1.5px var(--accent), 0 10px 30px rgba(0,0,0,.5); transform: translateY(-2px); }
.card .nm { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13.5px; min-height: 28px; }
.card .nm span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .nm .ib { width: 32px; height: 32px; margin: -2px -6px -2px 0; color: var(--mute); }
.card.blank .shot { display: grid; place-items: center; color: var(--mute); border: 1.5px dashed var(--line); box-shadow: none; background: none; }

/* ── 편집 화면 ── */
#editor { display: grid; grid-template: "top" auto "stage" 1fr "transport" auto "dock" auto / 100%; padding-top: var(--sat); }
#top { grid-area: top; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 max(8px, var(--sar)) 0 max(6px, var(--sal)); min-width: 0; }
#pname { flex: 1; min-width: 40px; height: 36px; background: none; border: 0; border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: 15px; text-overflow: ellipsis; }
#pname:hover, #pname:focus { background: var(--panel2); outline: none; }
#btnExport { margin-left: 6px; height: 38px; padding: 0 14px; }
@media (max-width: 480px) { #btnMute { display: none; } #top .ib { width: 38px; } }
#left { grid-area: left; display: none; }
#stageWrap { grid-area: stage; position: relative; min-height: 0; min-width: 0; background: var(--stage); overflow: hidden; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.zoomctl { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 2px; background: rgba(19,21,29,.94); border: 1px solid var(--line); border-radius: 12px; padding: 2px; }
.zoomctl .ib { width: 36px; height: 36px; color: var(--mute); }
.zoomctl .zw { display: none; }
#badge { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(19,21,29,.94); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--mute); pointer-events: none; }

#transport { grid-area: transport; display: grid; grid-template: "scrub scrub scrub scrub scrub" auto "restart play seed speed time" auto / auto auto 1fr auto auto; align-items: center; gap: 2px 6px; padding: 2px max(10px, var(--sar)) 6px max(10px, var(--sal)); background: var(--bg); }
#scrub { grid-area: scrub; width: 100%; height: 22px; margin: 0; }
#btnPlay { width: 52px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; }
#btnPlay:active { transform: scale(.96); }
#seedBtn { justify-self: start; height: var(--hit); padding: 0 10px 0 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
#seedBtn:hover { background: var(--panel2); color: var(--fg); } #seedBtn b { font: 600 13px var(--mono); color: var(--fg); }
#speedBtn { height: var(--hit); min-width: 46px; padding: 0 8px; border-radius: 10px; font: 600 13px var(--mono); color: var(--mute); }
#speedBtn:hover { background: var(--panel2); } #speedBtn.on { color: var(--accent); }
#timeLbl { font: 600 13px var(--mono); color: var(--mute); min-width: 86px; text-align: right; }
#timeLbl b { color: var(--fg); font-weight: 600; }

#dock { grid-area: dock; display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid var(--line); min-height: 0; padding-bottom: var(--sab); }
#selbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--line); }
#selbar b { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#panel { overflow-y: auto; height: min(44vh, 400px); padding: 12px max(14px, var(--sar)) 16px max(14px, var(--sal)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#dock:not(.open) #panel { display: none; } #dock.open #selbar { display: none; }
#tabs { display: flex; order: 3; padding: 4px max(6px, var(--sar)) 4px max(6px, var(--sal)); gap: 2px; }
#tabs button { flex: 1; min-width: 0; height: 50px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
#tabs button.on { color: var(--accent); background: var(--panel2); }
#tabs button:not(.on):hover { color: var(--fg); }

/* 넓은 화면: 왼쪽 부품 · 가운데 무대 · 오른쪽 속성 (폭 860 이상, JS wide 와 같은 값) */
@media (min-width: 860px) {
  #editor { grid-template: "top top top" auto "left stage dock" 1fr "left transport dock" auto / 232px minmax(0, 1fr) 344px; }
  #top { padding: 0 12px; height: 54px; border-bottom: 1px solid var(--line); }
  #left { display: block; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 12px 20px; }
  #dock { border-top: 0; border-left: 1px solid var(--line); }
  #dock #panel { display: block !important; height: auto; flex: 1; padding: 14px 16px 24px; }
  #selbar { display: none !important; }
  #tabs { order: -1; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  #tabs button { height: 38px; flex-direction: row; gap: 6px; font-size: 13px; }
  #tabs button[data-tab=add] { display: none; }
  #tabs button .ic { width: 18px; height: 18px; }
  #transport { grid-template: "restart play seed speed scrub time" auto / auto auto auto auto minmax(80px, 1fr) auto; padding: 8px 16px 10px; gap: 8px; border-top: 1px solid var(--line); }
  .zoomctl .zw { display: grid; }
}
/* 폭 860~1099: 옆 칸을 좁혀 무대를 지킨다 */
@media (min-width: 860px) and (max-width: 1099px) {
  #editor { grid-template-columns: 200px minmax(0, 1fr) 300px; }
}
/* 폭 600~859(폴드 펼침 세로·아이패드 세로 등): 왼쪽 무대 · 오른쪽 속성(부품 탭 포함, 늘 열림). JS docked 와 같은 값 */
@media (min-width: 600px) and (max-width: 859px) {
  #editor { grid-template: "top top" auto "stage dock" 1fr "transport dock" auto / minmax(0, 1fr) 320px; }
  #top { padding: 0 12px; height: 54px; border-bottom: 1px solid var(--line); }
  #dock { border-top: 0; border-left: 1px solid var(--line); }
  #dock #panel { display: block !important; height: auto; flex: 1; padding: 14px 16px 24px; }
  #selbar { display: none !important; }
  #tabs { order: -1; padding: 8px 8px; border-bottom: 1px solid var(--line); }
  #transport { padding: 8px 14px 10px; border-top: 1px solid var(--line); }
  .zoomctl .zw { display: grid; }
}
/* 접히는 기기(앱이 html 에 data-fold·--hinge-gap·--pane-l 을 넣어 줄 때): 무대·재생은 왼쪽 화면, 부품·속성은 오른쪽 화면. 힌지 띠에는 아무것도 두지 않는다 */
html[data-fold="flat"][data-fold-orient="vertical"] { --hg: var(--hinge-gap, 0px); --pl: var(--pane-l, calc((100vw - var(--hinge-gap, 0px)) / 2)); }
@media (min-width: 600px) {
  html[data-fold="flat"][data-fold-orient="vertical"] #editor { grid-template: "top top top top" auto "stage gap left dock" 1fr "transport gap left dock" auto / var(--pl) var(--hg) 190px minmax(0, 1fr); }
  html[data-fold="flat"][data-fold-orient="vertical"] #left { display: block; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 12px 20px; }
  html[data-fold="flat"][data-fold-orient="vertical"] #top { display: grid; gap: 0; padding: 0; grid-template-columns: calc(var(--hit) + 6px) calc(var(--pl) - 3 * var(--hit) - 6px) var(--hit) var(--hit) var(--hg) 1fr auto auto; }
  html[data-fold="flat"][data-fold-orient="vertical"] #top #btnBack { grid-column: 1; padding-left: 6px; width: calc(var(--hit) + 6px); }
  html[data-fold="flat"][data-fold-orient="vertical"] #top #pname { grid-column: 2; min-width: 0; }
  html[data-fold="flat"][data-fold-orient="vertical"] #top #btnUndo { grid-column: 3; } html[data-fold="flat"][data-fold-orient="vertical"] #top #btnRedo { grid-column: 4; }
  html[data-fold="flat"][data-fold-orient="vertical"] #top #btnMute { grid-column: 6; justify-self: end; }
  html[data-fold="flat"][data-fold-orient="vertical"] #top #btnMore { grid-column: 7; } html[data-fold="flat"][data-fold-orient="vertical"] #top #btnExport { grid-column: 8; margin-right: 12px; }
  html[data-fold="flat"][data-fold-orient="vertical"] #tabs button[data-tab=add] { display: none; }
  html[data-fold="flat"][data-fold-orient="vertical"] .scrim { right: auto; width: var(--pl); }
  html[data-fold="flat"][data-fold-orient="vertical"] #home .hscroll > div { max-width: calc(var(--pl) - 36px); margin-left: 0; }
}

/* 속성 조절 */
.sec { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; margin: 18px 0 6px; }
.sec:first-child { margin-top: 2px; }
.phead { display: flex; align-items: center; gap: 2px; margin: -4px -6px 6px 0; }
.phead b { flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: var(--hit); }
.row > label, .row > .lb { color: var(--mute); font-size: 13px; line-height: 1.25; }
.row.stack { grid-template-columns: 1fr; gap: 6px; padding: 6px 0; }
.row input[type=number], .row input[type=text] { width: 68px; height: 34px; background: var(--panel2); border: 1px solid transparent; border-radius: 8px; padding: 0 8px; text-align: right; font: 600 13px var(--mono); }
.row input[type=text] { width: 100%; text-align: left; font: 600 14px var(--sans); grid-column: 2 / 4; }
.row input:focus { border-color: var(--accent); outline: none; }
.nbox { position: relative; display: block; }
.row .unit { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 10.5px var(--mono); color: var(--dim); pointer-events: none; }
.row .nbox input[type=number] { width: 78px; }
input[type=number]::-webkit-inner-spin-button { display: none; } input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=range] { -webkit-appearance: none; appearance: none; background: none; height: 30px; margin: 0; min-width: 0; width: 100%; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--panel3) var(--fill, 0%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--panel3); } input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
#scrub::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2 / 4; padding: 4px 0; }
.row.stack .chips { grid-column: auto; }
.chip { height: 34px; padding: 0 13px; border-radius: 17px; background: var(--panel2); font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.chip:hover { color: var(--fg); } .chip.on { background: var(--accent); color: var(--accent-fg); }
.sw { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--panel3); justify-self: end; grid-column: 3; transition: background .15s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw[aria-checked=true] { background: var(--accent); } .sw[aria-checked=true]::after { transform: translateX(18px); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2 / 4; padding: 6px 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); position: relative; flex: none; }
.swatch.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.swatch.custom { background: conic-gradient(#ff4d6d, #ffc93c, #3ddc84, #3d8bff, #c86bff, #ff4d6d); overflow: hidden; }
.swatch.custom input { position: absolute; inset: -8px; width: 200%; height: 200%; opacity: 0; cursor: pointer; }
.pals { display: grid; gap: 6px; grid-column: 2 / 4; padding: 4px 0; }
.pal { display: flex; height: 26px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pal i { flex: 1; } .pal.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
details.more { margin-top: 10px; border-top: 1px solid var(--line); }
details.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; height: var(--hit); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary .ic { transform: rotate(180deg); }
.seedrow { display: flex; gap: 6px; grid-column: 2 / 4; justify-content: flex-end; align-items: center; }

/* 부품 고르기 · 목록 */
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
#left .palette { grid-template-columns: repeat(3, 1fr); }
.pbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 10px; background: var(--panel2); font-size: 12px; font-weight: 600; color: var(--mute); min-width: 0; }
.pbtn:hover { background: var(--panel3); color: var(--fg); } .pbtn:active { transform: scale(.96); }
.pbtn canvas { width: 40px; height: 40px; } .pbtn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers { display: flex; flex-direction: column; gap: 2px; }
.layer { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--mute); text-align: left; }
.layer:hover { background: var(--panel2); color: var(--fg); } .layer.on { background: var(--panel3); color: var(--fg); box-shadow: inset 2px 0 0 var(--accent); }
.layer i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.layer span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 시트 · 메뉴 · 알림 */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4,5,8,.66); display: flex; align-items: flex-end; justify-content: center; animation: fade .16s; }
.sheet { width: 100%; max-width: 520px; max-height: calc(100% - 40px - var(--sat)); background: var(--panel); border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; animation: rise .22s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--sab); }
.sheet > header { display: flex; align-items: center; padding: 8px 8px 4px 18px; font-size: 16px; font-weight: 700; flex: none; }
.sheet > .body { overflow-y: auto; padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) { .scrim { align-items: center; } .sheet { border-radius: 18px; border-bottom: 1px solid var(--line); max-width: 460px; } }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.menu { position: fixed; z-index: 50; min-width: 190px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 5px; box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: fade .12s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: var(--hit); padding: 0 12px; border-radius: 8px; font-weight: 500; text-align: left; }
.menu button:hover { background: var(--panel3); } .menu button.danger { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); transform: translateX(-50%); z-index: 60; background: #f1efe8; color: #15161b; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .2s; }
.exprev { align-self: center; height: min(46vh, 420px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.exprev canvas, .exprev video { width: 100%; height: 100%; display: block; object-fit: contain; }
.bar { height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .12s linear; }
.kv { display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: 13px; min-height: 24px; } .kv b { color: var(--fg); font: 600 13px var(--mono); }
.btnrow { display: flex; gap: 8px; } .btnrow .btn { flex: 1; }
textarea.code { width: 100%; height: 92px; resize: none; background: var(--panel2); border: 1px solid transparent; border-radius: 10px; padding: 10px; font: 12px/1.4 var(--mono); word-break: break-all; }
textarea.code:focus { border-color: var(--accent); outline: none; }
.seedlist { display: flex; flex-direction: column; gap: 4px; max-height: 38vh; overflow-y: auto; }
.seedlist button { display: flex; align-items: center; gap: 12px; height: var(--hit); padding: 0 12px; border-radius: 8px; background: var(--panel2); font: 600 13px var(--mono); flex: none; }
.seedlist button:hover { background: var(--panel3); } .seedlist button i { width: 14px; height: 14px; border-radius: 50%; } .seedlist button span { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
