h3c-studio / static /style.css
Janishar's picture
Upload folder using huggingface_hub
8bf001a verified
Raw History Blame Contribute Delete
34.8 kB
/* h3 studio โ€” neutral surround so nothing biases how frames read.
One accent, amber, and only for "the GPU is busy". */
:root {
--bg: #0b0e14;
--pane: #0f131a;
--raised: #151a22;
--raised-2:#1b2430;
--line: #1c2433;
--line-hi: #344153;
--ink: #bfbdb6;
--ink-2: #9da5b4;
--ink-3: #626a73;
--amber: #ffb454;
--amber-d: #8b5f28;
--bad: #f07178;
--ok: #aad94c;
--term-bg: #080b0e;
--term-border: #1b2520;
--term-text: #9fcea0;
--term-prompt: #d7ba7d;
--r: 8px;
--mono: ui-monospace, "SF Mono", Menlo, monospace;
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
color-scheme: dark;
}
/* Light theme โ€” applied when the system prefers light and no explicit
choice was made, or when the user explicitly picks "light". */
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]):not([data-theme="light"]) {
--bg: #f4f3ef;
--pane: #ffffff;
--raised: #f0efe9;
--raised-2:#e7e4dc;
--line: #ddd8cd;
--line-hi: #c8c0b0;
--ink: #262319;
--ink-2: #55503f;
--ink-3: #837b68;
--amber: #b5721a;
--amber-d: #e0b57c;
--bad: #c8404c;
--ok: #5c8a22;
--term-bg: #fbfaf7;
--term-border: #ddd8cd;
--term-text: #2f5d33;
--term-prompt: #96660a;
color-scheme: light;
}
}
:root[data-theme="light"] {
--bg: #f4f3ef;
--pane: #ffffff;
--raised: #f0efe9;
--raised-2:#e7e4dc;
--line: #ddd8cd;
--line-hi: #c8c0b0;
--ink: #262319;
--ink-2: #55503f;
--ink-3: #837b68;
--amber: #b5721a;
--amber-d: #e0b57c;
--bad: #c8404c;
--ok: #5c8a22;
--term-bg: #fbfaf7;
--term-border: #ddd8cd;
--term-text: #2f5d33;
--term-prompt: #96660a;
color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html, body, #app { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
html:focus, body:focus, #app:focus { outline: none !important; }
html, body {
margin: 0; height: 100%; border: 0; outline: 0; box-shadow: none;
background: var(--bg);
color: var(--ink);
font: 400 13px/1.5 var(--sans);
-webkit-font-smoothing: antialiased;
}
h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
code { font: 400 11px var(--mono); color: var(--ink-2); }
/* โ”€โ”€ bar โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.bar {
display: flex; align-items: center; gap: 20px;
height: 58px; padding: 0 20px;
background: var(--bg); border-bottom: 1px solid var(--line);
backdrop-filter: blur(14px);
position: relative;
z-index: 4000;
}
.mark { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mark span { color: var(--ink-3); font-weight: 400; }
.sessionbar { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11px; }
.sessionbar select { width: 150px; padding: 5px 8px; }
.sessionbar .sm { white-space: nowrap; }
.pathbuttons { display: flex; gap: 6px; margin-left: auto; }
.pathbutton { padding: 5px 10px; font-size: 11px; background: rgba(191,189,182,.04); color: var(--ink-2); }
.pathbutton.on { background: var(--raised); color: var(--ink); }
.pathpanel { position: fixed; top: 58px; right: 52px; z-index: 5000; min-width: 420px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line-hi); border-radius: var(--r); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.pathpanel div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 3px 0; }
.pathpanel b { color: var(--ink-2); font-size: 11px; font-weight: 500; }
.pathpanel code { overflow-wrap: anywhere; color: var(--ink); }
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(0,0,0,.58); }
.modal[hidden] { display: none; }
.modalcard { width: min(360px, calc(100vw - 32px)); padding: 18px; background: var(--raised); border: 1px solid var(--line-hi); border-radius: var(--r); box-shadow: 0 16px 42px rgba(0,0,0,.5); }
.modalcard h2 { margin-bottom: 14px; }
.modalcard label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 11px; }
.modalactions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modalactions .go { flex: 0 0 auto; padding: 7px 16px; }
.themeswitch button { padding: 4px 8px; font-size: 12px; line-height: 1; }
.lamp { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.lamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-hi); }
.lamp.busy i { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,84,.16); }
.lamp.busy span { color: var(--amber); }
/* โ”€โ”€ layout โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.grid {
display: grid;
grid-template-columns: 495px minmax(0, 1fr) 348px;
height: calc(100% - 58px);
}
.pane { overflow-y: auto; min-width: 0; }
.setup { background: var(--pane); border-right: 1px solid var(--line); padding: 4px 0 40px; }
.stage { display: flex; flex-direction: column; padding: 16px; flex: 1; min-height: 0; }
.viewer { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.viewer video { width: 100%; height: 100%; object-fit: contain; }
.takes { background: var(--pane); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: hidden; padding: 0; }
.takes-half, .timeline-half { flex: 1 1 50%; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.takes-half { border-bottom: 1px solid var(--line); }
.block { padding: 16px; border-bottom: 1px solid var(--line); }
details.block > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::after { content: "+"; color: var(--ink-3); }
details.block[open] > summary::after { content: "โ€“"; }
details.block > *:not(summary) { margin-top: 12px; }
.blockhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.fpsbadge { padding: 3px 7px; border: 1px solid var(--line-hi); border-radius: 999px; color: var(--amber); font: 400 10px var(--mono); }
.blockhead.sticky { position: sticky; top: 0; background: var(--pane); padding: 14px 16px; border-bottom: 1px solid var(--line); z-index: 2; margin: 0; }
.block > h2 { margin-bottom: 11px; }
.hint { margin: 8px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.prompt-editor { min-height: 154px; max-height: 340px; overflow-y: auto; margin-bottom: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font: 400 12px/1.7 var(--mono); white-space: pre-wrap; outline: none; transition: border-color .16s, box-shadow .16s; }
.prompt-editor:empty::before { content: attr(data-placeholder); color: var(--ink-3); white-space: pre-line; pointer-events: none; }
.prompt-editor:hover { border-color: var(--line-hi); }
.prompt-editor:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,84,.12); }
.prompt-actions { display: flex; align-items: center; gap: 8px; }
.mention-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 1px 5px; border: 1px solid var(--line-hi); border-radius: 999px; background: var(--raised-2); color: var(--ink); font: 400 11px var(--sans); user-select: all; }
.mention-chip.invalid { border-color: var(--bad); color: var(--bad); }
.mention-menu { position: fixed; z-index: 6000; min-width: 230px; max-height: 220px; overflow: auto; padding: 4px; background: var(--raised); border: 1px solid var(--line-hi); border-radius: var(--r); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.mention-menu[hidden] { display: none; }
.mention-option { display: grid; grid-template-columns: 30px 1fr; gap: 7px; width: 100%; padding: 6px; text-align: left; background: transparent; border: 0; border-radius: 4px; }
.mention-option:hover, .mention-option.on { background: var(--raised-2); }
.mention-option small { display: block; color: var(--ink-3); font: 400 10px var(--mono); }
.mention-preview { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; overflow: hidden; border-radius: 4px; background: var(--line); color: var(--ink-2); font-size: 14px; }
.mention-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mention-group { padding: 5px 7px 2px; color: var(--ink-3); font: 600 9px var(--mono); text-transform: uppercase; }
.warn { margin: 9px 0 0; font-size: 11px; color: var(--amber); }
.errors { margin: 10px 0 0; font-size: 12px; color: var(--bad); white-space: pre-line; }
/* โ”€โ”€ controls โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
input[type=text], input[type=number], textarea, select {
width: 100%; padding: 8px 10px;
background: var(--bg); color: var(--ink);
border: 1px solid var(--line); border-radius: var(--r);
font: 400 12px var(--sans);
}
textarea { font: 400 12px/1.6 var(--mono); resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,84,.12); }
input[type=number] { font-family: var(--mono); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.fields label, .labelfield { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-3); }
.resolution-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 10px; }
.size-select { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; color: var(--ink-3); }
.resolution-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink-3); font-size: 11px; }
.resolution-stat input[type=range] {
width: 100%; height: 16px; margin: 7px 0 2px; padding: 0;
background: transparent; border: 0; border-radius: 0;
box-shadow: none; accent-color: var(--amber);
}
.resolution-stat input[type=range]:focus { border: 0; box-shadow: none; outline: none; }
.resolution-stat output { color: var(--ink-2); font: 400 11px var(--mono); }
.canvas-readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 10px; margin-top: 12px; color: var(--ink-3); font-size: 10px; }
.canvas-readout b { color: var(--ink-2); font: 400 11px var(--mono); }
.native-canvas { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; color: var(--ink-3); font-size: 10px; }
.native-canvas span { flex-basis: 100%; }
.native-canvas button { padding: 5px 7px; font-size: 10px; }
.seedrow { display: flex; gap: 5px; }
.seedrow input { flex: 1; }
.check { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.check input { margin: 0; accent-color: var(--amber); }
.check em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.radio-group { margin-left: 22px; padding-left: 8px; border-left: 1px solid var(--line); }
.radio-group.disabled { opacity: .4; pointer-events: none; }
.radio-group .check { margin-top: 6px; }
button { font: 500 12px var(--sans); border-radius: var(--r); cursor: pointer; border: 1px solid var(--line-hi); background: var(--raised); color: var(--ink); padding: 7px 12px; transition: background .16s, border-color .16s, transform .16s; }
button:hover { border-color: #596b7f; }
button:hover { background: var(--raised-2); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.ghost { background: transparent; color: var(--ink-2); }
.sm { padding: 3px 8px; font-size: 11px; }
.danger { color: color-mix(in srgb, var(--bad) 70%, var(--ink-2)); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-hi)); }
.danger:hover { background: color-mix(in srgb, var(--bad) 16%, transparent); border-color: color-mix(in srgb, var(--bad) 65%, var(--line-hi)); color: var(--bad); }
.go { flex: 1; background: linear-gradient(135deg, #ffd580, var(--amber)); border-color: var(--amber); color: #1f1b14; font-weight: 600; padding: 9px; box-shadow: 0 6px 18px rgba(255,180,84,.16); }
.go:hover { background: #ffc766; }
.go:disabled { background: var(--amber-d); border-color: var(--amber-d); color: #b99a68; cursor: not-allowed; }
.actions { display: flex; gap: 8px; margin-top: 11px; }
.render-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.render-actions .runmode { grid-column: 1 / -1; }
.runmode { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 11px; }
.runmode select { flex: 1; min-width: 0; padding: 6px 8px; }
.cmd { position: relative; margin-top: 10px; }
.cmd summary {
display: inline-block; cursor: pointer; list-style: none;
padding: 4px 8px; border: 1px solid var(--line-hi);
border-radius: var(--r); color: var(--ink-2); font-size: 11px;
}
.cmd summary::-webkit-details-marker { display: none; }
.cmd summary::after { content: " +"; color: var(--ink-3); }
.cmd[open] summary::after { content: " โ€“"; }
.cmd pre {
position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 10;
width: min(620px, calc(100vw - 32px)); max-height: 260px;
margin: 0; padding: 12px; overflow: auto;
background: var(--raised); border: 1px solid var(--line-hi);
border-radius: var(--r); box-shadow: 0 14px 35px rgba(0,0,0,.42);
color: var(--ink-2); font: 400 11px/1.55 var(--mono);
white-space: pre-wrap; overflow-wrap: anywhere;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button { padding: 4px 9px; font-size: 11px; background: transparent; color: var(--ink-2); }
.chips button.on { background: var(--raised); color: var(--ink); border-color: var(--line-hi); }
.modeswitch { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.modeswitch button { border: 0; border-radius: 0; background: transparent; color: var(--ink-3); padding: 3px 9px; font-size: 11px; }
.modeswitch button.on { background: var(--raised); color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--amber); }
input[type=range]:focus { outline: none; border: 0; box-shadow: none; }
.duration-slider { position: relative; margin-top: 24px; padding-bottom: 18px; }
.duration-slider input[type=range] { position: relative; z-index: 1; }
.duration-markers { position: absolute; inset: 0 0 0; pointer-events: none; }
.duration-markers span { position: absolute; z-index: 2; top: -15px; height: 31px; border: 0; color: var(--ink-3); background: transparent; font: 400 9px var(--mono); transform: translateX(-50%); padding: 0 3px; line-height: 12px; }
.duration-markers span::after { content: ""; position: absolute; left: 50%; top: 15px; height: 16px; border-left: 1px solid var(--ink-3); }
.duration-markers span:last-child { transform: translateX(-100%); }
.duration-markers span:last-child::after { left: auto; right: 0; }
.readout { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; font: 400 12px var(--mono); color: var(--ink-2); }
.readout b { font-size: 15px; font-weight: 500; color: var(--ink); }
.readout span { margin-left: auto; color: var(--ink-3); }
/* โ”€โ”€ references โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.drop { border: 1px dashed var(--line-hi); border-radius: var(--r); padding: 16px; text-align: center; background: rgba(191,189,182,.015); }
.drop.over { border-color: var(--amber); background: rgba(255,180,84,.06); }
.drop p { margin: 0 0 7px; font-size: 12px; color: var(--ink-3); }
.reflist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.reflist li { display: flex; align-items: center; gap: 8px; padding: 5px 7px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); cursor: grab; }
.reflist li.dragging { opacity: .4; }
.reflist li img { width: 30px; height: 30px; object-fit: cover; border-radius: 3px; background: var(--raised); }
.reflist li .n { font: 400 10px var(--mono); color: var(--amber); min-width: 58px; padding: 1px 0; text-align: left; }
.reflist li .duration { color: var(--ink-3); font: 400 10px var(--mono); }
.reflist li .refmode { width: auto; padding: 3px 5px; font-size: 10px; }
.reflist li .nm { flex: 1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reflist li button { padding: 1px 6px; font-size: 12px; line-height: 1; background: transparent; border-color: transparent; color: var(--ink-3); }
.anchorpair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.anchor { padding: 9px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); text-align: center; cursor: pointer; }
.anchor.set { border-color: var(--amber); }
.anchor span { display: block; font-size: 11px; color: var(--ink-3); }
.anchor em { font-style: normal; font-size: 11px; color: var(--ink-2); word-break: break-all; }
.library { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 11px; }
.library figure { margin: 0; cursor: pointer; position: relative; }
.library .delete-file { position: absolute; top: 2px; right: 2px; padding: 0 5px; line-height: 17px; background: rgba(11,14,20,.85); border-color: var(--line-hi); color: var(--ink-2); }
.library .delete-file:hover { color: var(--bad); border-color: var(--bad); }
.library img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.library .nonimg { display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px 5px; aspect-ratio: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; font: 400 9px var(--mono); color: var(--ink-3); }
.library video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); display: block; pointer-events: none; }
.library figure:hover img, .library figure:hover .nonimg, .library figure:hover video { border-color: var(--amber); }
.library .play-input {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
width: 26px; height: 26px; padding: 0; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
background: rgba(11,14,20,.75); border-color: var(--line-hi); color: var(--ink);
font-size: 10px; line-height: 1;
}
.library .play-input:hover { background: var(--amber); color: #1f1b14; border-color: var(--amber); }
/* โ”€โ”€ stage โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.stage .viewer { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.viewer video { max-width: 100%; max-height: 58vh; display: none; }
.viewer video.on { display: block; }
.empty { text-align: center; color: var(--ink-3); }
/* โ”€โ”€ live preview badge โ”€โ”€ */
.preview-badge {
position: absolute;
top: 8px;
left: 8px;
padding: 3px 9px;
background: rgba(255, 180, 84, .9);
color: #1f1b14;
border-radius: 4px;
font: 600 11px var(--mono);
z-index: 5;
pointer-events: none;
transition: opacity .2s;
}
.preview-img { display: none; width: 100%; height: 100%; max-width: 100%; max-height: 40vh; object-fit: contain; }
.preview-img.on { display: block; }
.empty p { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.empty span { font-size: 12px; }
.running { background: var(--pane); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; }
.phase { display: flex; justify-content: baseline; gap: 8px; font-size: 12px; color: var(--ink-2); }
.phase b { margin-left: auto; font: 400 12px var(--mono); color: var(--amber); }
.track { height: 2px; background: var(--line); border-radius: 2px; margin: 9px 0 7px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s; }
.elapsed { font: 400 11px var(--mono); color: var(--ink-3); }
.running button { margin-top: 9px; }
.console { flex: 0 0 auto; display: flex; flex-direction: column; height: 300px; background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--r); position: relative; transition: height 0.16s ease; margin-top: 14px; }
.conhead { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--term-border); gap: 8px; }
.conhead .resize-hint { font-size: 10px; color: var(--ink-3); opacity: 0; transition: opacity .16s; }
.console:hover .resize-hint { opacity: 0.5; }
.resize-btn { padding: 4px 8px; font-size: 11px; cursor: ns-resize; transition: background .16s; }
.resize-btn:hover { background: var(--raised-2); }
.tabs { display: flex; gap: 4px; }
.tabs button { padding: 2px 9px; font-size: 11px; background: transparent; border-color: transparent; color: var(--ink-3); }
.tabs button.on { background: var(--raised); border-color: var(--line-hi); color: var(--ink); }
#terminalOutput { flex: 1; margin: 0; padding: 11px 13px; overflow: auto; font: 400 11px/1.65 var(--mono); color: var(--term-text); white-space: pre-wrap; }
.resize-handle { height: 8px; background: transparent; cursor: ns-resize; border-top: 1px solid transparent; border-bottom: 1px solid transparent; transition: background .16s; display: flex; align-items: center; justify-content: center; position: relative; }
.resize-handle::before { content: "โ‹ฎโ‹ฎ"; font-size: 10px; color: var(--ink-3); opacity: 0.5; }
.resize-handle:hover { background: var(--amber); }
.resize-handle:hover::before { color: #1f1b14; opacity: 1; }
.resize-handle.resizing { background: var(--amber); }
.resize-handle.resizing::before { color: #1f1b14; opacity: 1; }
.terminalform { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--term-border); }
.terminalprompt { color: var(--term-prompt); font: 400 12px var(--mono); }
.terminalform input { flex: 1; min-width: 0; border: 0; padding: 4px 0; background: transparent; color: var(--term-text); font: 400 11px var(--mono); }
.terminalform input:focus { box-shadow: none; }
.group-divider {
display: flex; align-items: center; gap: 8px; margin-top: 13px;
color: var(--ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
}
.group-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.interactiveform { border-top: 1px solid var(--line); }
.interactive-actions {
margin-top: 8px; gap: 0;
border: 1px solid var(--line-hi); border-radius: var(--r); overflow: hidden;
}
.interactive-actions button {
flex: 1; border: 0; border-radius: 0; background: var(--raised);
}
.interactive-actions button:hover { border: 0; }
.interactive-actions button:first-child { border-right: 1px solid var(--line-hi); }
.interactive-actions button:disabled { background: transparent; color: var(--ink-3); cursor: not-allowed; }
#profile { width: 100%; border-collapse: collapse; font: 400 11px var(--mono); }
#profile td { padding: 6px 13px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
#profile td:last-child { text-align: right; color: var(--ink); }
.queue { background: var(--pane); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; margin-top: 12px; }
.queue ul { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.queue li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); }
.queue li button { margin-left: auto; }
/* โ”€โ”€ takes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.count { font: 400 11px var(--mono); color: var(--ink-3); }
.takelist { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.takelist li { padding: 9px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; position: relative; }
.takelist li:hover { border-color: var(--line-hi); }
.takelist li.on { border-color: var(--amber); }
.takelist .row { display: flex; gap: 8px; align-items: flex-start; }
.takelist .thumb { flex: 0 0 auto; width: 64px; aspect-ratio: 16/9; overflow: hidden; border-radius: 3px; background: #000; border: 1px solid var(--line); }
.takelist .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.takelist .info { flex: 1 1 auto; min-width: 0; }
.takelist .nm { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.takelist .meta { margin-top: 4px; font: 400 10px var(--mono); color: var(--ink-3); }
.takelist .ops { display: flex; gap: 4px; margin-top: 8px; }
.takelist .ops button { padding: 2px 7px; font-size: 10px; }
.takelist .take-menu { position: absolute; right: 10px; top: 10px; background: var(--raised-2); border: 1px solid var(--line-hi); border-radius: var(--r); padding: 4px; display: flex; flex-direction: column; gap: 2px; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.takelist .take-menu .menu-item { width: 100%; padding: 5px 10px; text-align: left; font-size: 11px; background: transparent; border: none; color: var(--ink-2); cursor: pointer; border-radius: 3px; }
.takelist .take-menu .menu-item:hover { background: var(--amber); color: #000; }
.takelist .take-menu .menu-item:active { background: var(--line-hi); }
/* โ”€โ”€โ”€ timeline sidebar list โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.timelist { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.timelist li { padding: 9px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; position: relative; }
.timelist li:hover { border-color: var(--line-hi); }
.timelist li.on { border-color: var(--amber); }
.timelist .row { display: flex; gap: 8px; align-items: flex-start; }
.timelist .thumb { flex: 0 0 auto; width: 64px; aspect-ratio: 16/9; overflow: hidden; border-radius: 3px; background: #000; border: 1px solid var(--line); }
.timelist .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.timelist .info { flex: 1 1 auto; min-width: 0; }
.timelist .nm { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timelist .meta { margin-top: 4px; font: 400 10px var(--mono); color: var(--ink-3); }
.timelist .ops { display: flex; gap: 4px; margin-top: 8px; }
.timelist .ops button { padding: 2px 7px; font-size: 10px; }
.timelist-empty { padding: 16px; color: var(--ink-3); font-size: 11px; }
/* โ”€โ”€โ”€ timeline editor (full-screen dialog) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.modal.fullscreen { padding: 16px; background: rgba(4,6,9,.86); z-index: 4500; }
.timeline-editor {
width: min(1400px, 100%);
max-height: 92vh;
display: flex; flex-direction: column;
background: var(--pane);
border: 1px solid var(--line-hi);
border-radius: var(--r);
box-shadow: 0 24px 64px rgba(0,0,0,.5);
overflow: hidden;
}
.timeline-header { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.timeline-header h2 { margin: 0; font-size: 13px; }
.timeline-headcrumb { flex: 1; min-width: 0; font: 400 11px var(--mono); color: var(--ink-3); overflow-x: auto; white-space: nowrap; }
.timeline-headcrumb button { background: transparent; border: 0; color: var(--ink-2); font: 400 11px var(--mono); cursor: pointer; padding: 2px 4px; }
.timeline-headcrumb button:hover { color: var(--amber); }
.timeline-headcrumb span.sep { color: var(--line-hi); margin: 0 2px; }
.timeline-back { padding: 5px 12px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.timeline-editor-body { flex: 0 1 auto; height: min(620px, 72vh); display: grid; grid-template-columns: minmax(0, 1fr) 300px 340px; gap: 0; }
.timeline-browser { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow: hidden; }
.timeline-dropzone { margin: 16px; padding: 14px 16px; border: 2px dashed var(--line-hi); border-radius: var(--r); text-align: center; background: rgba(191,189,182,.02); }
.timeline-dropzone p { margin: 0; color: var(--ink-2); font-size: 12px; }
.timeline-browser-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.browse-dir, .browse-file {
display: flex; flex-direction: column; gap: 6px; padding: 8px; cursor: pointer;
background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .16s;
}
.browse-dir:hover, .browse-file:hover { border-color: var(--amber); }
.browse-file.selected { border-color: var(--amber); background: rgba(255,180,84,.08); }
.browse-dir .icon { font-size: 26px; text-align: center; color: var(--ink-2); padding: 10px 0; }
.browse-file .thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 3px; background: #000; }
.browse-file .thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.browse-dir .nm, .browse-file .nm { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse-file .meta { font: 400 10px var(--mono); color: var(--ink-3); }
.browse-file .pickcount {
position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
background: var(--amber); color: #000; font: 600 10px var(--mono); display: flex; align-items: center; justify-content: center;
}
.browse-file { position: relative; }
.browser-empty { padding: 24px; color: var(--ink-3); font-size: 12px; grid-column: 1 / -1; text-align: center; }
.timeline-queue { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); }
.timeline-queue-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 16px 8px; }
.timeline-queue-head h3 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.timeline-queue-head button { padding: 3px 9px; }
.timeline-preview { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 16px 16px; }
.timeline-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 20px; }
.timeline-placeholder[hidden] { display: none; }
.timeline-track { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow-y: auto; }
.timeline-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .16s, opacity .16s, transform .16s; cursor: grab; }
.timeline-item:hover { border-color: var(--line-hi); }
.timeline-item:active { cursor: grabbing; }
.timeline-item.dragging { opacity: .35; }
.timeline-item.drag-over { border-color: var(--amber); box-shadow: 0 -2px 0 var(--amber) inset; }
.timeline-item .drag-handle { flex: 0 0 auto; width: 10px; text-align: center; color: var(--ink-3); font-size: 12px; letter-spacing: -1px; user-select: none; }
.timeline-item .seq { flex: 0 0 auto; width: 16px; text-align: center; font: 600 11px var(--mono); color: var(--ink-3); }
.timeline-item video { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; background: #000; flex: 0 0 auto; pointer-events: none; }
.timeline-item .info { flex: 1; min-width: 0; }
.timeline-item .nm { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-item .meta { font: 400 10px var(--mono); color: var(--ink-3); }
.timeline-item .remove { padding: 4px 8px; font-size: 11px; background: transparent; border: 1px solid var(--line-hi); color: var(--ink-3); cursor: pointer; border-radius: 3px; flex: 0 0 auto; }
.timeline-item .remove:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.timeline-add-slot {
flex: 0 0 auto; padding: 14px; text-align: center; color: var(--ink-3); font-size: 11px;
border: 2px dashed var(--line); border-radius: var(--r);
}
.timeline-review { min-width: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 16px; gap: 10px; }
.timeline-review h3 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.timeline-review-player { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: 0 0 auto; }
.timeline-review-player video { width: 100%; height: 100%; object-fit: contain; display: block; }
.timeline-review-player video:not(.on) { display: none; }
.timeline-review-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ink-3); font-size: 11px; }
.timeline-review-empty[hidden] { display: none; }
.timeline-actions { display: flex; align-items: flex-end; gap: 8px; }
.timeline-name { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-2); flex: 1; min-width: 0; }
.timeline-name input { width: 100%; }
.timeline-actions .go { flex: 0 0 auto; min-width: 0; }
.timeline-review .hint { font-size: 11px; color: var(--ink-3); }
@media (max-width: 1100px) {
.grid { grid-template-columns: 1fr; height: auto; }
.pane { overflow: visible; }
.setup, .takes { border: 0; border-bottom: 1px solid var(--line); }
.timeline-editor-body { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) minmax(0,1fr) auto; }
.timeline-browser, .timeline-queue { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }