/* THE PICTURE · FRVR Club brand v3 — chrome · black · red · white */
:root {
  --void: #050506; --black: #0A0A0B; --panel: #121214; --panel-2: #0E0E10; --panel-3: #17171A;
  --line: #242428; --line-2: #2F2F34; --line-soft: rgba(244, 243, 240, 0.08);
  --red: #D42A2A; --red-bright: #FF3B30; --crimson: #8E1212;
  --red-glow: rgba(212, 42, 42, 0.38); --red-soft: rgba(212, 42, 42, 0.12);
  --white: #F4F3F0; --dim: #A0A0A6; --ash: #6E6E74; --ok: #4CC97A;
  --chrome-hi: #ECEEF2; --chrome-mid: #9AA0A8; --chrome-lo: #565A60;
  --chrome-grad: linear-gradient(178deg, var(--chrome-hi) 8%, var(--chrome-mid) 42%, var(--chrome-lo) 55%, var(--chrome-hi) 92%);
  --font-display: 'Anton', 'Arial Narrow', sans-serif; --font-body: 'Inter', system-ui, sans-serif; --font-mono: 'Space Mono', ui-monospace, monospace;
  --top: 54px; --rail: 214px; --side: 264px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--void); color: var(--white); font-family: var(--font-body); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: var(--red); color: var(--void); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); } .red { color: var(--red-bright); } .dim { color: var(--dim); } .ash { color: var(--ash); } .ok { color: var(--ok); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #26262b; border-radius: 10px; border: 2px solid var(--void); } ::-webkit-scrollbar-track { background: transparent; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes sweep { 100% { background-position: 300% 0 } }

/* gate */
#gate { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(142, 18, 18, .28), transparent 70%), var(--void); }
#gate .bfly { width: 132px; filter: grayscale(1) contrast(1.25) brightness(1.15); margin-bottom: 18px; opacity: .92; }
#gate .gk { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: var(--red); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
#gate .gk i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.8s infinite; }
#gate h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 10vw, 112px); line-height: .86; text-transform: uppercase; letter-spacing: .01em; }
#gate h1 span, .brand b span { background: var(--chrome-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 9s linear infinite; }
#gate p { color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; margin: 16px 0 26px; text-transform: uppercase; }
#gate .row { display: flex; gap: 10px; }
#gcode { background: var(--panel); border: 1px solid var(--line); padding: 14px 18px; border-radius: 3px; width: 220px; text-align: center; font-family: var(--font-mono); letter-spacing: .3em; text-transform: uppercase; outline: none; }
#gcode:focus { border-color: var(--red); }
#gerr { color: var(--red-bright); font-family: var(--font-mono); font-size: 12px; margin-top: 12px; height: 16px; opacity: 0; transition: opacity .2s; }

/* buttons + fields */
.btn { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; border-radius: 3px; border: 1px solid var(--line); color: var(--white); background: var(--panel); transition: all .16s; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--chrome-lo); background: var(--panel-3); }
.btn.sm { padding: 7px 11px; font-size: 9.5px; } .btn.xs { padding: 4px 8px; font-size: 9px; letter-spacing: .08em; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--void); } .btn-red:hover { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 22px var(--red-glow); }
.btn-ghost { background: transparent; }
.btn-chrome { background: var(--chrome-grad); background-size: 300% 100%; color: var(--void); border-color: var(--chrome-mid); } .btn-chrome:hover { animation: sweep 3s linear infinite; }
.btn:disabled { opacity: .4; pointer-events: none; }
.ibtn { width: 32px; height: 32px; border-radius: 3px; border: 1px solid var(--line); color: var(--dim); display: inline-grid; place-items: center; font-size: 15px; transition: all .15s; } .ibtn:hover { color: var(--white); border-color: var(--chrome-lo); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 8px; }
.field > span, .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.in, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 7px 9px; outline: none; font-size: 12.5px; min-width: 0; }
textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--red); width: 100%; }
input[type=date] { color-scheme: dark; }
select option { background: var(--panel); }
.w3 { width: 52px !important; } .w4 { width: 64px !important; } .w5 { width: 84px !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; } .row.end { justify-content: flex-end; margin-top: 16px; } .row.wrap { flex-wrap: wrap; }
.hint, small.hint { color: var(--dim); font-size: 11.5px; line-height: 1.45; display: block; margin-top: 4px; }
.chk { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 12px; margin: 4px 12px 4px 0; cursor: pointer; } .chk input { accent-color: var(--red); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; color: var(--dim); } .chip input { display: none; } .chip.on { border-color: var(--red); color: var(--white); background: var(--red-soft); }

/* app frame */
.app { display: grid; grid-template-columns: var(--rail) 1fr var(--side); grid-template-rows: var(--top) 1fr; height: 100vh; height: 100dvh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--black); }
.brand { display: flex; align-items: center; gap: 10px; } .brand img { width: 30px; filter: grayscale(1) brightness(1.2); } .brand b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .02em; line-height: 1; display: block; } .brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.top .sp { flex: 1; } .top select { width: auto; max-width: 220px; padding: 6px 8px; }
.rail { border-right: 1px solid var(--line); background: var(--black); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.rm { position: relative; text-align: left; padding: 9px 10px 10px 34px; border-radius: 3px; border: 1px solid transparent; color: var(--dim); transition: all .15s; overflow: hidden; }
.rm i { position: absolute; left: 10px; top: 10px; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--ash); }
.rm b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .04em; color: var(--white); line-height: 1.1; } .rm small { font-size: 10px; color: var(--ash); display: block; }
.rm .pc { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--red); transition: width .3s; }
.rm:hover { border-color: var(--line); background: var(--panel); } .rm.on { background: var(--panel); border-color: var(--line-2); } .rm.on b { color: var(--red-bright); }
.main { overflow-y: auto; padding: 18px 22px 60px; animation: rise .25s; }
.side { border-left: 1px solid var(--line); background: var(--black); overflow-y: auto; padding: 10px; }
.sd { padding: 8px 8px 10px; border-bottom: 1px solid var(--line); } .sd span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); display: block; } .sd b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .02em; display: block; line-height: 1.1; } .sd.big b { font-size: 30px; color: var(--red-bright); } .sd small { color: var(--dim); font-size: 10.5px; display: block; }
.sd .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ash); margin: 4px 3px 0 0; } .sd .dot.on { background: var(--ok); border-color: var(--ok); }
.sd.gates small { display: block; font-family: var(--font-mono); font-size: 10px; } .sd.gates .ok { color: var(--ok); } .sd.gates .no { color: var(--ash); }
.meter { position: relative; height: 6px; background: var(--panel-3); border-radius: 3px; margin-top: 6px; overflow: visible; } .meter i { display: block; height: 100%; background: var(--red); border-radius: 3px; } .meter b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--white); }

/* rooms */
.room-head { margin-bottom: 14px; } .room-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: .02em; line-height: 1; } .room-head p { color: var(--dim); max-width: 900px; margin-top: 6px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin-bottom: 12px; min-width: 0; } .card h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; } .card h4 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin: 12px 0 6px; }
.tierbox { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 10px 12px; margin: 6px 0 10px; } .tierbox b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .03em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; } .tbl th { text-align: left; font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); padding: 6px 6px; border-bottom: 1px solid var(--line-2); } .tbl td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td input, .tbl td select { padding: 4px 6px; font-size: 11.5px; } .tbl.kv td:last-child { text-align: right; white-space: nowrap; } .tbl tr.tot td { border-top: 1px solid var(--line-2); font-weight: 700; color: var(--white); } .tbl tr.tot td:last-child { color: var(--red-bright); font-size: 14px; }
.tbl.law tr.ok td:first-child { color: var(--ok); } .tbl.law tr.no td:first-child { color: var(--ash); } .tbl.law td:first-child { width: 20px; font-size: 14px; }
.tblwrap { overflow-x: auto; } .tbl.shots { min-width: 1100px; } .tbl.shots td select { width: auto; max-width: 150px; margin: 1px 0; } .tbl.shots tr.hero td:first-child { color: var(--red-bright); font-weight: 700; }
.tbl.shots tr.real { box-shadow: inset 3px 0 var(--ok); } .tbl.shots tr.hybrid { box-shadow: inset 3px 0 var(--chrome-mid); } .tbl.shots tr.ai_t2v { box-shadow: inset 3px 0 var(--crimson); }
.tbl.shots tr.prow td { background: var(--panel-2); }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; } .stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 8px 14px; min-width: 96px; } .stats b { font-family: var(--font-display); font-weight: 400; font-size: 24px; display: block; line-height: 1; } .stats span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); } .stats .wide { min-width: 240px; flex: 1; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--line-2); margin: 2px 4px 2px 0; } .tag.real { border-color: var(--ok); color: var(--ok); } .tag.hybrid { border-color: var(--chrome-mid); color: var(--chrome-hi); } .tag.ai_i2v { color: var(--dim); } .tag.ai_t2v { border-color: var(--crimson); color: var(--red-bright); } .tag.st { color: var(--red-bright); border-color: var(--crimson); }
.tag select { width: auto; padding: 1px 4px; font-size: 10px; margin-left: 4px; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .look { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: var(--panel-2); } .look input { display: none; } .look.on { border-color: var(--red); background: var(--red-soft); } .look .sw { display: flex; gap: 3px; margin-bottom: 6px; } .look .sw i { width: 22px; height: 12px; border-radius: 2px; border: 1px solid var(--line-2); } .look b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .03em; } .look small { color: var(--dim); font-size: 10.5px; line-height: 1.35; display: block; }
.act { border: 1px solid var(--line); border-radius: 3px; padding: 10px; margin-bottom: 8px; background: var(--panel-2); }
.steps { padding-left: 18px; } .steps li { margin-bottom: 6px; color: var(--dim); } .steps li b { color: var(--white); }
.kfs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .kf { border: 1px solid var(--line); border-radius: 3px; padding: 10px; background: var(--panel-2); } .kf.approved { border-color: var(--ok); } .kf.generated { border-color: var(--chrome-lo); } .kf-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .kf-head b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .03em; } .kf-head select { width: auto; padding: 3px 6px; font-size: 10.5px; }
.gate-box { border: 1px solid var(--crimson); background: var(--red-soft); border-radius: 3px; padding: 14px 16px; font-size: 13px; max-width: 720px; } .gate-box b { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--red-bright); margin-right: 10px; }
.lot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .lotcat h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--red); margin: 6px 0; } .lotrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 8px; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 4px; background: var(--panel); } .lotrow.real { border-color: var(--red); } .lotrow.ai { border-color: var(--chrome-mid); } .lotrow .ln b { display: block; font-size: 12px; } .lotrow .ln small { display: block; font-size: 10px; } .lotrow .lm { display: flex; gap: 4px; align-items: center; flex-shrink: 0; } .lotrow .lm input { padding: 3px 5px; font-size: 11px; }
.batch { border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; margin-bottom: 6px; background: var(--panel-2); } .batch > b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .03em; margin-right: 8px; } .batch > .mono { float: right; color: var(--red-bright); } .bshots { margin-top: 6px; }
.fmts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; } .fmt { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: var(--panel-2); } .fmt input { display: none; } .fmt.on { border-color: var(--red); background: var(--red-soft); } .fmt b { display: block; font-size: 12px; } .fmt small { display: block; color: var(--ash); font-size: 10px; } .fmt span { display: block; color: var(--dim); font-size: 11px; }
.flowwrap { overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: radial-gradient(circle, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, var(--panel-2); margin-bottom: 12px; }
.flowwrap svg { display: block; } .edge { fill: none; stroke: var(--line-2); stroke-width: 2; } .edge.done { stroke: var(--red); }
.node rect { fill: var(--panel); stroke: var(--line-2); } .node:hover rect { stroke: var(--chrome-mid); } .node.ext rect { stroke-dasharray: 4 3; } .node .bar { fill: var(--red); stroke: none; } .node { cursor: pointer; }
.node .nn { font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; fill: var(--white); } .node .np { font-family: var(--font-mono); font-size: 10px; fill: var(--red-bright); } .node .no { font-family: var(--font-body); font-size: 10.5px; fill: var(--dim); } .node .ng { font-family: var(--font-mono); font-size: 9px; fill: var(--ash); } .node .port { fill: var(--void); stroke: var(--chrome-mid); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 20px); background: var(--white); color: var(--void); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; border-radius: 3px; opacity: 0; transition: all .2s; pointer-events: none; z-index: 3000; } #toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog { background: var(--panel); color: var(--white); border: 1px solid var(--line-2); border-radius: 4px; padding: 18px; width: min(520px, 92vw); } dialog::backdrop { background: rgba(0, 0, 0, .7); } dialog h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }

/* responsive */
@media (max-width: 1100px) { .app { grid-template-columns: var(--rail) 1fr; } .side { position: fixed; right: 0; top: var(--top); bottom: 0; width: var(--side); transform: translateX(100%); transition: transform .2s; z-index: 50; } .side.open { transform: none; } .cols, .lot, .kfs, .fmts { grid-template-columns: 1fr; } .looks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .top { overflow-x: auto; gap: 6px; scrollbar-width: none; } .top::-webkit-scrollbar { display: none; } .ibtn { width: 28px; height: 28px; flex-shrink: 0; } .top select { flex-shrink: 0; } .rail { position: fixed; left: 0; top: var(--top); bottom: 0; width: var(--rail); transform: translateX(-100%); transition: transform .2s; z-index: 50; } .rail.open { transform: none; } .main { padding: 14px 16px 60px; } .grid2, .grid3, .looks { grid-template-columns: 1fr; } .top .sp { flex: 1; } .top select { max-width: 130px; } .room-head h2 { font-size: 28px; } .brand small { display: none; } }
