/* Standalone Studio presentation. Components are implemented by this application. */
:root {
  color-scheme: dark;
  --bg: #151922;
  --surface: #121820;
  --raised: #171e28;
  --line: #ffffff14;
  --line-strong: #ffffff28;
  --text: #e8ecf2;
  --muted: #8b939f;
  --accent: #f0b24c;
  --accent-2: #6fd4cc;
  --danger: #ff9daa;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", var(--font);
  --node-radius: 12px;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, .button { border: 1px solid var(--line-strong); border-radius: 8px; background: #ffffff06; padding: 7px 13px; font-size: 12px; }
button:hover, .button:hover { background: #ffffff0c; border-color: #ffffff4a; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
input, select, textarea { border: 1px solid var(--line); border-radius: 8px; background: #11161e; padding: 8px 10px; min-width: 0; }
textarea { resize: vertical; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .brand, .wordmark { font-family: var(--display); }
h1 { font-size: 32px; }
h2 { font-size: 18px; }
h3 { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.error-text, .danger-text { color: var(--danger); }
.text-button, .ghost { border-color: transparent; background: none; box-shadow: none; }
.primary, .cook { background: var(--accent); color: #251b0c; border-color: var(--accent); font-weight: 700; }
.primary:hover, .cook:hover { background: #ffc766; }
.danger { color: #ffd4d8; background: #82273855; border-color: #f0718544; }
.loading { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--accent-2); }
.matrix-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap !important; pointer-events: none !important; }

/* Application shell and project navigation. */
#app.app-shell { height: 100dvh; display: grid; grid-template-rows: 40px minmax(0, 1fr); overflow: hidden; background:radial-gradient(1200px 600px at 10% -10%,#f0b24c24,transparent 55%),radial-gradient(900px 500px at 90% 0%,#6fd4cc1f,transparent 50%),#151922; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #13171f; border-bottom: 1px solid var(--line); min-width: 0; }
.brand { font-size: 14px; font-weight: 800; letter-spacing: .025em; }
#studio-controls { display: contents; }
.topbar button, .billing-pill { padding: 3px 10px; min-height: 24px; border-radius: 99px; font-size: 10px; white-space: nowrap; }
.billing-pill { display: inline-flex; align-items: center; border: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.user-menu-anchor, .project-menu-anchor { position: relative; }
.topbar .user-avatar-btn { width: 22px; height: 22px; min-height: 22px; padding: 0; background: #ffffff09; font-size: 9px; color: #bac2ce; }
.user-menu { position: absolute; z-index: 130; top: calc(100% + 12px); left: 0; width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 14px 36px #0007; }
.user-menu-name { padding: 9px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.user-menu .user-menu-logout { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; background: none; padding: 9px 10px; }
.project-menu { position: absolute; z-index: 120; top: calc(100% + 12px); left: 0; width: 320px; max-height: calc(100dvh - 65px); overflow: auto; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 38px #0007; }
.project-menu-search { width: 100%; font-size: 12px; }
.project-menu-list { list-style: none; margin: 8px 0; padding: 0; max-height: 44dvh; overflow: auto; }
.project-menu-item { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 8px; overflow-wrap: anywhere; }
.project-menu-item.selected { color: var(--accent); background: #f0b24c12; }
.project-menu-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.topbar .project-menu-actions button { border-radius: 7px; font-size: 11px; }
.project-menu-note { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.workspace-title strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.save-state { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.save-state.dirty { color: var(--accent); }
.sidebar-empty { color: var(--muted); font-size: 12px; padding: 12px 0; }

/* The canvas has a dedicated coordinate layer; the inspector never scales. */
.workspace-full, .canvas-stage { position: relative; display: flex; min-height: 0; min-width: 0; height: 100%; }
.canvas-stage { flex: 1; width: 100%; overflow: hidden; background:radial-gradient(ellipse at center,#28324166,transparent 65%),repeating-linear-gradient(0deg,transparent,transparent 21px,#ffffff07 22px),#171c26; }
.canvas-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.canvas-shell { position: absolute; inset: 0; }
.canvas-root { position: absolute; inset: 0; overflow: hidden; touch-action: none; outline: none; background-image: radial-gradient(circle, #ffffff0b .6px, transparent .7px); background-size:22px 22px; }
.canvas-empty, .workspace-empty { display: grid; place-content: center; min-height: 100%; text-align: center; color: var(--muted); padding: 30px; }
.matrix-canvas-transform { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; overflow: visible; }
.connections, .connections-reconnect { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.connections { z-index: 1; }
.connections-reconnect { z-index: 4; }
.connections path { fill: none; stroke: #c8d0dcb8; stroke-width: 2; }
.connections .wire-visible { pointer-events: none; }
.connections .wire-visible.is-selected { stroke: var(--accent); }
.connections .wire-hit { stroke: transparent; stroke-width: 28; pointer-events: stroke; cursor: pointer; }
.connections .connection-preview { stroke: #f5f8ff; pointer-events: none; }
.wire-reconnect { fill: transparent; stroke: none; pointer-events: all; cursor: crosshair; }
.graph-node { position: absolute; z-index: 2; padding: 0; border: 0; background: none; overflow: visible; touch-action: none; }
.studio-node-root, .studio-node-frame-wrap { position: relative; width: 100%; height: 100%; }
.studio-node-exterior-head { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); display: flex; gap: 10px; align-items: baseline; user-select: none; cursor: grab; pointer-events: none; }
.studio-node-name { min-width: 0; font-size: .72rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; cursor: text; pointer-events: auto; color: #e2e6ed; }
.studio-node-name-input { min-width: 40px; width: 100%; padding: 0 3px; border-radius: 3px; font-size: .72rem; line-height: 1.35; background: #11161e; pointer-events: auto; }
.studio-node-exterior-badge { margin-left: auto; flex-shrink: 0; color: #7d8494; font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.5; white-space: nowrap; pointer-events: none; }
.studio-node-frame { position: relative; height: 100%; width: 100%; border: 2px solid #ffffff20; border-radius: var(--node-radius); background: #141820; box-shadow: inset 0 0 0 1px #ffffff0a,0 6px 20px #00000052; }
.studio-node-root.is-read-text .studio-node-frame { background: #131318; border-color: #ffffff18; }
.studio-node-root.is-read-image .studio-node-frame { background: #141416; border-color: #ffffff16; }
.studio-node-root.is-text .studio-node-frame, .studio-node-root.is-read-text .studio-node-frame { background: #15171c; border-color: #ffffff1a; }
.studio-node-root.is-t2t .studio-node-frame { background: #15141c; border-color: #8b6fd633; box-shadow: 0 0 0 1px #8b6fd610; }
.studio-node-root.is-gen-image .studio-node-frame { background: #28483459; border-color: #64b47852; }
.studio-node-root.is-gen-video .studio-node-frame { background: #5c303459; border-color: #c86e6e59; }
.studio-node-root.is-gen-audio .studio-node-frame { background: #2c385859; border-color: #6e8cd252; }
.studio-node-root.is-t2t .studio-node-frame { background: #242030; border-color: #8c6ec873; }
.studio-node-view-dock { position:absolute; top:calc(100% + 6px); left:0; width:100%; box-sizing:border-box; padding:.35rem .45rem .45rem; background:#161a20f5; border:1px solid #f0b24c59; border-radius:6px; box-shadow:0 12px 30px #0005; cursor:default; }
.studio-node-view-dock[hidden] { display:none; }
.parm-label { position:relative; }
.studio-mention-menu { position:absolute; left:0; top:100%; z-index:50; max-height:220px; overflow:auto; min-width:100%; border:1px solid #ffffff30; border-radius:6px; padding:4px; background:#1c2028; box-shadow:0 8px 24px #0008; }
.studio-mention-menu[hidden] { display:none; }
.studio-mention-opt { display:block; width:100%; text-align:left; padding:6px 8px; font-size:12px; white-space:nowrap; }
.studio-mention-hint { font-size:10px; color:#9299a8; }
.studio-bp-body { height:100%; display:flex; flex-direction:column; gap:8px; padding:6px 8px 10px; }
.studio-bp-status { font-size:12px; color:#aeb4c0; text-align:center; opacity:.65; }
.studio-bp-status.is-ok { color:#6dd99a; }
.studio-bp-status.is-failed { color:#ff7777; }
.studio-seedance-duration-row { display:flex; align-items:center; gap:8px; min-width:0; }
.studio-seedance-duration-row input[type="range"] { min-width:0; width:100%; flex:1; padding:0; }
.studio-seedance-duration-val { flex:none; min-width:3em; text-align:right; font-size:12px; color:#b9c0ce; }
.studio-bp-group { font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#aeb4c0; }
.studio-seedance-view-dock { max-height:min(42vh,280px); overflow:auto; display:flex; flex-wrap:wrap; gap:8px; }
.studio-seedance-dock-head { grid-column:1 / -1; margin:0; color:#c3bdcc; font-size:11px; }
.studio-seedance-view-dock .parm-label { margin:0; min-width:0; font-size:10px; }
.studio-seedance-view-dock input,.studio-seedance-view-dock select { max-width:100%; min-width:0; padding:4px; }
.studio-media-audio { width:100%; min-width:0; max-height:36px; }
.studio-media-video { width:100%; height:100%; object-fit:contain; }
.project-overview .studio-node-media-fill { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:18px; cursor:pointer; }
.project-overview .project-node-label { max-width:100%; overflow-wrap:anywhere; font-size:19px; color:var(--text); }
.project-overview .studio-node-media-fill>span { color:var(--muted); font-size:12px; }
.project-overview .studio-node-frame { border-color:#b39ae8; background:linear-gradient(135deg,#30233c,#1c202c); box-shadow:0 10px 28px #0003; }
.project-overview-tab { position:fixed; z-index:130; min-width:170px; padding:6px; background:var(--surface); border:1px solid var(--line-strong); border-radius:9px; }
#studio-project-usage { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.portal-account .user-menu { left:auto; right:0; top:calc(100% + 12px); }
.studio-qwen-suno-draft-preview { height:100%; display:flex; flex-direction:column; gap:5px; padding:8px; box-sizing:border-box; overflow:auto; }
.studio-suno-draft-label { font-size:9px; color:#aaa2b5; text-transform:uppercase; }
.studio-suno-draft-field { white-space:pre-wrap; font-size:11px; color:#ddd5e7; }
.studio-asset-stack { position:relative; height:140px; flex-shrink:0; }
.studio-asset-stack>.studio-media-wrap { position:absolute; top:0; left:14%; width:72%; height:120px; max-height:120px; border-radius:6px; overflow:hidden; z-index:3; }
.studio-asset-stack>.studio-media-wrap:nth-child(2) { top:10px; transform:scale(.92); opacity:.85; z-index:2; }
.studio-asset-stack>.studio-media-wrap:nth-child(n+3) { top:20px; transform:scale(.84); opacity:.7; z-index:1; }
.parm-media-path { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.parm-media-path>span:first-child { width:100%; }
.execution-log-actions { display:flex; justify-content:flex-end; gap:6px; }
.studio-node-t2t-body .studio-t2t-output.is-empty { font-style:italic; color:#ffffff59; padding:8px; }
.is-t2t .studio-node-t2t-body { background:#1c1925; }
.is-gen-image .studio-node-media-empty.is-idle,.is-gen-video .studio-node-media-empty.is-idle,.is-gen-audio .studio-node-media-empty.is-idle { background:#ffffff0a; }
.is-read-image .studio-node-frame,.is-read-text .studio-node-frame,.is-read-audio .studio-node-frame,.is-read-video .studio-node-frame { background:#16191e; }
.graph-node[data-type-id="studio.suno_extend"] .studio-node-frame,.is-vendor-asset .studio-node-frame { background:#1c2027; border-color:#ffffff20; }
.studio-suno-audio-stack { display:flex; flex-direction:column; justify-content:center; gap:.45rem; height:100%; padding:8px; }
.studio-suno-audio-row { display:flex; align-items:center; gap:.35rem; min-width:0; }
.studio-suno-track-label { width:1.25rem; flex:none; font-size:.65rem; font-weight:700; color:#f0b24ce6; }
.studio-suno-audio-row audio { flex:1; min-width:0; min-height:32px; }
.studio-extend-body { display:flex; flex-direction:column; gap:.4rem; height:100%; padding:.35rem .55rem .5rem; box-sizing:border-box; overflow:auto; }
.studio-extend-body>.studio-node-media-empty,.studio-extend-body>.studio-media-wrap { flex:1; min-height:24px; height:auto; background:#ffffff04; }
.studio-extend-words { display:flex; justify-content:space-between; color:#a0a5b0; font-size:.62rem; }
.studio-extend-rail { height:6px; border-radius:3px; overflow:hidden; display:flex; flex:none; background:#805b50; }
.studio-extend-keep { background:#509a88; flex:none; }.studio-extend-recreate { flex:1; }
.studio-extend-body input[type=range] { width:100%; padding:0; margin:0; height:10px; flex:none; }
.studio-extend-source-hint { margin:0; color:#888b94; text-align:center; font-size:.72rem; }
.studio-extend-time { font-size:.72rem; font-family:monospace; text-align:center; }
.studio-extend-prompt { width:100%; font-size:.78rem; line-height:1.35; min-height:3.5rem; padding:4px; resize:vertical; background:#3a3a3a; border-radius:0; }
.is-text .studio-node-frame { background: #15171c; border-color: #ffffff1a; }
.studio-node-frame.is-cook-fresh { border-color: #6ca98e; }
.studio-node-frame.is-cook-fail { border-color: #de7586; }
.studio-node-root.is-selected:not(.is-bypass) .studio-node-frame { border-color: var(--accent); box-shadow: 0 0 0 1px #f0b24c28; }
.studio-node-root.is-bypass { opacity: .65; }
.studio-node-root.is-bypass .studio-node-frame { border-style: dashed; border-color: #a0b4d273; }
.studio-node-frame.is-connect-target { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.studio-node-media-fill { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--node-radius) - 2px); cursor: grab; }
.graph-node.dragging .studio-node-media-fill { cursor: grabbing; }
.studio-node-media-slot, .studio-node-media-empty, .studio-node-t2t-body, .studio-media-wrap { width: 100%; height: 100%; }
.studio-node-media-empty.is-idle { background: transparent; color: #6f7682; font-size: 11px; display: grid; place-items: center; text-align: center; padding: 8px; }
.studio-node-root.is-read-image .studio-node-media-empty.is-idle { color: #5c6068; }
.studio-vendor-unconfigured, .studio-vendor-reserved, .studio-vendor-blocked, .studio-upres-hint { font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.studio-vendor-unconfigured, .studio-vendor-blocked { background: #3a1f1f; color: #ffb4b4; border: 1px solid #6b3030; }
.studio-vendor-reserved { background: #2a2a32; color: #c8c4d8; border: 1px dashed #5a5668; }
.studio-ref-url-wrap, .studio-ref-url-host { width: 100%; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.studio-ref-empty { display: block; flex: none; width: 100%; height: auto; padding: 10px; text-align: left; font-size: 11px; line-height: 1.35; color: #9aa8be; }
.studio-ref-empty.is-video { border: 1px dashed #ffffff38; border-radius: 6px; background: #ffffff0a; }
.studio-ref-url-frame, .studio-ref-url-media { width: 100%; flex: 1; min-height: 80px; border: 0; background: #0e0f12; border-radius: 6px; }
.studio-ref-url-caption { font-size: 10px; color: #7a808a; padding: 4px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-suno-quad-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; }
.studio-suno-quad-cell { font-size: 10px; color: #9aa0aa; border: 1px solid #333842; border-radius: 6px; display: grid; place-items: center; text-transform: uppercase; }
.studio-suno-extend-controls .studio-audio-range-slider { width: 100%; margin-top: 6px; }
.studio-inspector-section-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b919c; margin-bottom: 6px; }
.studio-vendor-preview-tag { font-size: 11px; color: #8b919c; display: grid; place-items: center; height: 100%; }
.studio-vendor-purpose, .studio-vendor-port-summary { font-size: 12px; margin: 0 0 8px; }
.studio-media-img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; }
.studio-media-img:fullscreen { object-fit: contain; background: #07090d; }
.studio-t2t-output { width: 100%; height: 100%; padding: 9px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; user-select: text; }
.studio-t2t-output.is-empty { color: #b3a8c75c; font-style: italic; }
.studio-node-media-loading { position: absolute; inset: 0; overflow: hidden; background: #151a22; }
.studio-node-media-shimmer { width: 100%; height: 100%; background: linear-gradient(115deg, transparent 20%, #a9c3eb12 48%, transparent 75%); animation: studio-loading 1.8s linear infinite; }
@keyframes studio-loading { from { transform: translateX(-80%); } to { transform: translateX(80%); } }
.studio-port-float { position: absolute; inset-block: 0; width: 0; pointer-events: none; }
.studio-port-float.is-in { left: 0; }
.studio-port-float.is-out { right: 0; }
.studio-port-label-col { position: absolute; inset-block: 0; width: 72px; }
.studio-port-label-col.is-in { right: 8px; text-align: right; }
.studio-port-label-col.is-out { left: 8px; text-align: left; }
.studio-port-label-slot { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: flex-start; transform: translateY(-50%); line-height: 1.1; pointer-events: none; }
.studio-port-name { display: block; width: max-content; white-space: nowrap; pointer-events: auto; font-size: 10px; font-weight: 600; color: #d3dbe7; }
.studio-port-type { display: block; width: max-content; white-space: nowrap; pointer-events: auto; font-size: 8px; margin-top: 2px; letter-spacing: .04em; color: #9aa8be; }
.studio-port-label-col.is-in .studio-port-label-slot { align-items: flex-end; }
.studio-handle { position: absolute; z-index: 5; width: 10px; height: 10px; min-height: 0; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid #12161ef2; background: #becfe4; touch-action: none; cursor: crosshair; }
.studio-handle.is-in { left: 0; transform: translate(calc(-100% - 5px),-50%); }
.studio-handle.is-out { right: 0; background:#e4ecf8fa; transform: translate(calc(100% + 5px), -50%); }
.studio-handle:hover { background: var(--accent); border-color: #ffe5b5; }
.port-dot { display: block; width: 100%; height: 100%; }
.selection-box { position: absolute; border: 1px solid #f0b24cb3; background: #f0b24c14; pointer-events: none; z-index: 10; }
.canvas-group { position: absolute; z-index: 0; touch-action: none; }
.studio-node-group { width: 100%; height: 100%; border: 2px dashed #9cacc466; border-radius: 14px; background: #7894be09; overflow: hidden; }
.studio-node-group.is-selected { border-style: solid; border-color: var(--accent); }
.studio-node-group-head { min-height: 34px; padding: 8px 11px; background: #0f141bbb; cursor: grab; }
.studio-node-group-head .studio-node-name { font-size: 14px; }
.studio-node-group-body { min-height: 0; }
.matrix-resize { position: absolute; display: none; z-index: 50; background: transparent; opacity: 0; touch-action: none; }
.graph-node.selected>.matrix-resize,.canvas-group.selected>.matrix-resize { display: block; }
.resize-n, .resize-s { height: 4px; left: 0; right: 0; cursor: ns-resize; }
.resize-n { top: -2px; } .resize-s { bottom: -2px; }
.resize-w, .resize-e { width: 4px; top: 0; bottom: 0; cursor: ew-resize; }
.resize-w { left: -2px; } .resize-e { right: -2px; }
.resize-nw, .resize-ne, .resize-sw, .resize-se { width: 10px; height: 10px; }
.resize-nw { left: -5px; top: -5px; cursor: nwse-resize; }
.resize-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.resize-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.resize-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.canvas-group.selected>.studio-group-resize-handle { opacity: .42; background: #f0b24c73; border: 1px solid #1a120880; border-radius: 2px; }
.canvas-group.selected>.resize-n, .canvas-group.selected>.resize-s, .canvas-group.selected>.resize-w, .canvas-group.selected>.resize-e { opacity: 0; }
.matrix-minimap { position: absolute; right: 15px; bottom: 15px; width: 128px; height: 88px; background: #1c222e8c; border: 1px solid #ffffff2e; border-radius: 3px; box-shadow: 0 4px 12px #0006; z-index: 5; touch-action: none; cursor: crosshair; }
.map-surface { fill: transparent; pointer-events: all; }
.map-node { fill: #5a6e86; stroke: #ffffff26; stroke-width: 1; }
.map-group { fill: #6478911f; stroke: #d2dcf080; stroke-width: 2; }
.map-viewport { fill: none; stroke: #f0b24cb3; stroke-width: 1.5; pointer-events: none; }
.matrix-flow-controls { position: absolute; bottom: 15px; left: 15px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 5; }
.matrix-flow-controls button { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: #252d3b; font-size: 16px; }
.matrix-flow-controls button:last-child { border-bottom: 0; }
.hotkey-legend { position: absolute; right: 12px; top: 60px; pointer-events: none; text-align: right; color: #d6deea66; font-size: 9px; line-height: 1.55; }
.hotkey-legend kbd { font: inherit; }
.studio-media-fs-hint { position: fixed; z-index: 10000; bottom: 32px; left: 50%; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 30px; background: #111820dd; padding: 10px 20px; }

/* Parameter inspector. */
.studio-inspector { width: min(360px,34vw); flex: 0 0 min(360px,34vw); min-width:260px; max-width:420px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: #1c232e; overflow: hidden; }
.studio-inspector-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.studio-inspector-titles { min-width: 0; }
.studio-inspector-title { font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.studio-inspector-hint { font-size: 10px; color: var(--muted); margin-top: 3px; }
.studio-inspector-close { padding: 4px 10px; border-radius: 5px; background: #ffffff0b; font-size: 11px; font-weight: 700; }
.studio-inspector-body { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.studio-inspector-body>p, .studio-inspector-body>ul { font-size: 12px; }
.parameter-form { display: block; }
.parm-label { display: grid; gap: 7px; margin-bottom: 15px; font-size: 11px; color: #c4cdda; }
.parameter-form input, .parameter-form select, .parameter-form textarea { font-size: 12px; }
.parm-label>input, .parm-label>select, .parm-label>textarea { width: 100%; }
.parm-label textarea { min-height: 100px; line-height: 1.5; font-size: 13px; }
.parm-label-toggle { display: flex; align-items: center; justify-content: space-between; }
.parm-label-toggle input { width: 14px; height: 14px; accent-color: var(--accent); }
.parm-label input[type=number] { font-variant-numeric: tabular-nums; }
.parm-length { font-size: 10px; color: var(--muted); }
.parm-length.error-text { color: var(--danger); }
.studio-inspector-reply { padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.studio-inspector-reply-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.studio-inspector-reply-copy { padding: 3px 8px; border-radius: 20px; background: #ffffff0b; font-size: 10px; }
.studio-inspector-reply-text { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.5 var(--font); color: #aab6c8; }
.studio-inspector-cook { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid var(--line); flex-shrink: 0; }
.studio-inspector-cook-meta { font-size: 10px; }
.studio-inspector-cook-actions { display: flex; gap: 8px; }
.studio-inspector-go { min-width: 86px; padding: 7px 13px; background: var(--accent); color: #261c0e; border-color: var(--accent); border-radius: 8px; font-size: 11px; line-height: 1.2; font-weight: 700; }
.studio-inspector-go:hover { background: #ffca6c; }
.studio-inspector-go-all { border-color: #f0b24c88; background: #f0b24c22; color: #ffe0a8; font-weight: 700; font-size: 11px; }
.studio-inspector-empty { padding: 15px 0; font-size: 13px; color: var(--muted); }

/* Cursor-local node catalogue and wire editor menus. */
.tab-menu-root { position: fixed; inset: 0; z-index: 150; }
.tab-menu-flyout-wrap { position: absolute; }
.tab-menu, .tab-menu-flyout { border: 1px solid var(--line-strong); background: #1e2633f5; border-radius: 10px; padding: 7px; box-shadow: 0 12px 30px #0008; }
.tab-menu-search { width: 100%; padding: 7px 9px; font-size: 12px; background: #121820; }
.tab-menu-list { list-style: none; margin: 5px 0; padding: 0; max-height: 55dvh; overflow: auto; }
.tab-menu-cat, .tab-menu-item { width: 100%; border: 0; background: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px; border-radius: 6px; text-align: left; }
.tab-menu-item { align-items: flex-start; flex-direction: column; gap: 3px; }
.tab-menu-item.is-active, .tab-menu-cat.is-active, .tab-menu-cat:hover, .tab-menu-item:hover { background: #6fd4cc12; }
.tab-menu-type { color: var(--muted); font-size: 9px; }
.tab-menu-foot, .tab-menu-empty { padding: 8px; font-size: 10px; color: var(--muted); }
.tab-menu-flyout { position: absolute; left: calc(100% + 2px); width: 260px; }
.tab-menu-bridge { position: absolute; left: -8px; top: 0; width: 8px; height: 100%; }
#studio-bar-actions { margin-left:auto; display:flex; align-items:center; gap:8px; min-width:0; }
.project-cr-usage { font-size:11px; white-space:nowrap; color:#b9c1cf; }
.project-cr-reset.is-refreshing { animation:studio-upload-spin 1s linear infinite; }
.canvas-top-bar { display:flex; align-items:center; gap:8px; pointer-events:auto; }
.studio-node-upload { height:100%; display:flex; align-items:center; justify-content:center; padding:16px; color:#c5ccda; font-size:12px; cursor:grab; }
.studio-node-upload:not(.is-failed)::before { content:''; width:14px; height:14px; margin-right:8px; border:2px solid #ffffff25; border-top-color:#c5ccda; border-radius:50%; animation:studio-upload-spin 1s linear infinite; }
.studio-node-upload.is-failed { color:#ff9999; }
@keyframes studio-upload-spin { to { transform:rotate(360deg); } }
@media (max-width:600px) {
  .topbar { gap:4px; padding-inline:8px; }
  .topbar .brand { display:none; }
  .topbar button { padding-inline:7px; }
  .project-cr-usage { font-size:10px; }
  #studio-bar-actions,.canvas-top-bar { gap:4px; }
}
.studio-float-panel { position: fixed; z-index: 160; width: min(520px, calc(100vw - 24px)); max-height: min(78dvh, 720px); padding: 14px 16px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #232a36f5; box-shadow: 0 18px 50px #0009; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.studio-float-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: grab; user-select: none; }
.studio-float-head strong { font-size: 14px; }
.studio-float-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.studio-float-panel .job-list, .studio-float-panel .execution-log { overflow: auto; min-height: 0; flex: 1; }
.studio-node-root.is-read-image .studio-node-frame, .studio-node-root.is-gen-image .studio-node-frame { min-height: 120px; }
.studio-node-root.is-read-text .studio-node-text-preview, .studio-node-root.is-text .studio-node-text-preview { min-height: 72px; max-height: 160px; overflow: auto; white-space: pre-wrap; font-size: 11px; padding: 8px; color: #c8ced8; }
.execution-log-list { list-style: none; padding: 0; margin: 8px 0; max-height: 60dvh; overflow: auto; }
.execution-log-item { width: 100%; text-align: left; margin: 4px 0; }
.execution-log-line { margin: 0; padding: 6px 2px; font-size: 12px; line-height: 1.45; color: #c9d0da; border-bottom: 1px solid #ffffff0a; }
.execution-log-line.is-strong { color: #e8ecf2; }

/* Dialogs, durable status and asset library. */
#dialog { color: var(--text); background: #232a36; width: min(720px, calc(100vw - 30px)); max-height: 88dvh; padding: 20px; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 22px 70px #0008; }
#dialog::backdrop { background: #050a1499; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-heading h2 { margin: 0; font: 700 16px var(--font); }
.icon-button { padding: 4px 10px; font-size: 18px; border-radius: 6px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#dialog form label { display: grid; gap: 8px; font-size: 12px; }
.plan-step { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.plan-step strong { margin-left: auto; }
.plan-decision { min-width: 36px; color: var(--accent-2); }
.quote-total { padding: 15px 0; display: flex; justify-content: space-between; gap: 20px; }
.run-state { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; color: var(--accent-2); font-size: 17px; }
.pending-panel { position: absolute; z-index: 20; left: 14px; bottom: 58px; max-width: min(500px, calc(100vw - 28px)); border: 1px solid #f0b24c44; border-radius: 10px; padding: 10px; background: #1b2431ef; font-size: 12px; }
.pending-panel h3 { margin: 0 0 5px; font-size: 12px; }
.pending-item { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 5px 0; }
.pending-item button { padding: 2px 5px; font-size: 11px; }
.history-view { max-height: 65dvh; overflow: auto; }
.history-view .project-menu-list { max-height: none; }
.history-view .project-menu-list button { text-align: left; width: 100%; margin-bottom: 6px; }
.job-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-bottom: 12px; }
.job-card-top { display: flex; align-items: center; justify-content: space-between; }
.job-card .muted { font-size: 11px; margin-top: 5px; }
.result-image { max-width: 100%; max-height: 50dvh; display: block; margin: 10px 0; object-fit: contain; }
.result-text, .snapshot-view { background: #111720; padding: 12px; border-radius: 7px; font: 12px/1.6 var(--font); white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; max-height: 50dvh; }
.node-menu-item { display: block; width: 100%; margin: 5px 0; text-align: left; }
.library-popover { position: absolute; z-index: 125; left: 14px; top: 55px; width: min(360px, calc(100vw - 28px)); padding: 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 36px #0007; max-height: calc(100dvh - 72px); overflow: auto; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sidebar-heading h2 { margin: 0; font-size: 16px; }
.library-filters { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.library-filters select { min-width: 0; flex: 1; font-size: 12px; }
.library-drop { padding: 10px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 12px; }
.library-drop p { margin-bottom: 8px; }
.library-drop.is-dragover { background: #f0b24c14; border-color: var(--accent); }
.library-file-input { width: 100%; padding: 0; border: 0; background: none; font-size: 11px; }
.library-item { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 12px; }
.library-item small { color: var(--muted); }
.library-thumb { width: 100%; height: 96px; object-fit: contain; border-radius: 5px; background: #0002; }
.library-assets, .library-uploads { display: grid; gap: 7px; }
.library-name { flex: 1; min-width: 100px; }
.status-warning { font-size: 12px; }
#notifications { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: min(450px, calc(100vw - 36px)); }
.toast { padding: 12px 16px; background: #2a3544ef; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; box-shadow: 0 7px 20px #0004; }
.toast.error { border-color: #ff9daa66; color: #ffd2d9; }

/* Portal, authentication and account pages use the same local assets. */
.site-nav { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #13171f; }
.wordmark { color: var(--text); font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.dev-badge { font: 10px var(--font); color: var(--accent-2); border: 1px solid #6fd4cc44; padding: 2px 5px; border-radius: 4px; }
.site-nav nav { display: flex; gap: 10px; flex: 1; }
.nav-link { border-color: transparent; }
.nav-link.active { color: var(--accent); background: #f0b24c12; }
.page { max-width: 1080px; padding: 40px 28px; margin: auto; }
.page.narrow { max-width: 680px; }
.page h1 { margin: 14px 0 28px; }
.panel, .balance-card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
.avatar { display: grid; place-items: center; border-radius: 12px; background: #6fd4cc16; color: var(--accent-2); width: 38px; height: 38px; }
.avatar.large { width: 54px; height: 54px; margin-bottom: 16px; font-size: 23px; }
.balance-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.balance-number { font-family: var(--display); font-size: 46px; color: var(--accent-2); }
.balance-number small { margin-left: 8px; font: 10px var(--font); color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 11px; }
.price-card strong { font-size: 16px; color: var(--accent); }
.login-scene { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; color-scheme: light; }
.login-scene-bg, .login-scene-vignette { position: absolute; inset: 0; z-index: -1; }
.login-scene-bg { background: url('/assets/brand/login-hero.png') center/cover no-repeat; }
.login-scene-vignette { background: linear-gradient(90deg, #fbf8ffed, #f4edffb8 35%, #f4edff3b 65%, #ffffff0a); }
.login-scene-inner { min-height: 100dvh; display: flex; align-items: center; padding: 5vh clamp(24px, 2.75vw, 56px); }
.login-gate { width: 420px; max-width: 100%; padding: 32px; color: #2a2147; border: 1px solid #ffffff9c; border-radius: 24px; background: #ffffffb0; box-shadow: 0 18px 70px #34214b2b; backdrop-filter: blur(24px); }
.login-kicker { margin: 0 0 12px; color: #7c68a1; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 600; }
.login-gate h1 { font-size: 34px; line-height: 1.2; margin-bottom: 9px; background: linear-gradient(110deg, #492668, #9b6ac5, #598eb3); background-clip: text; -webkit-text-fill-color: transparent; }
.login-blurb { font-size: 15px; line-height: 1.8; color: #75698c; margin-bottom: 14px; }
.login-form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 6px; color: #6b6288; font-size: 13px; }
.login-field input { width: 100%; font-size: 16px; color: #291f45; background: #ffffff76; border: 1px solid #7b61ff33; padding: 11px 13px; border-radius: 10px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-toggle { position: absolute; top: 1px; right: 2px; min-height: 44px; padding: 5px 10px; color: #6b6288; background: none; border: 0; font-size: 12px; }
.login-google-btn { display: block; width: 100%; padding: 10px 18px; margin: 16px 0 10px; color: white; background: linear-gradient(115deg, #25ca70, #18bd5c); border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: 0 10px 26px #20c86b24; }
.login-google-btn:hover { background: #17b75a; }
.login-google-auth-btn { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; margin:24px 0 12px; padding:12px; border:1px solid #747775; border-radius:12px; background:#fff; color:#1f1f1f; text-decoration:none; font-size:15px; font-weight:500; }
.login-google-auth-btn:hover { background:#f8faff; box-shadow:0 1px 5px #3c404326; }
.login-google-auth-btn:focus-visible { outline:3px solid #a8c7fa; outline-offset:3px; }
.login-google-auth-btn img { flex:none; width:20px; height:20px; object-fit:contain; }
.login-switch-btn { display: block; width: 100%; color: #74648f; border: 1px solid #7b61ff26; border-radius: 10px; background: transparent; padding: 8px; font-size: 12px; }
.login-account-card { padding: 16px 16px 6px; margin: 18px 0 14px; border: 1px solid #7b61ff33; border-radius: 18px; background: #ffffff66; text-align: center; }
.login-account-label { margin-bottom: 5px; font-size: 13px; color: #8d7caa; font-weight: 600; }
.login-account-name { margin-bottom: 0; color: #49335f; font-weight: 600; font-size: 18px; }
.login-dev-hint { font-size: 12px; color: #8b7e9e; margin: 15px 0 4px; }
.login-status-pill, .login-oauth-missing { color: #76628e; font-size: 12px; }
.login-status-pill.error-text { color: #a12d48; }

@media (max-width: 1000px) { .hotkey-legend { display: none; } }
@media (max-width: 760px) {
  #app.app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .topbar { min-height: 46px; flex-wrap: wrap; gap: 6px; padding-block: 7px; }
  .topbar button, .billing-pill { font-size: 11px; padding-inline: 9px; }
  .studio-inspector { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -8px 0 28px #0005; }
  .site-nav { padding: 8px 12px; gap: 10px; height: auto; flex-wrap: wrap; }
  .site-nav nav { gap: 5px; }
  .price-grid { grid-template-columns: 1fr; }
  .balance-card { align-items: flex-start; flex-direction: column; }
  .page { padding: 28px 18px; }
  .login-scene-inner { justify-content: center; padding: 24px 16px; }
  .login-gate { padding: 28px; }
  .login-gate h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* MixtorAI is a separate public entrance; Studio keeps its own workspace. */
.portal-page{min-height:100dvh;background:#0b0d13;color:#f5f3ff;display:flex;flex-direction:column;overflow-x:clip;background-image:radial-gradient(ellipse at 70% 40%,#35266038,transparent 55%)}
.portal-header{max-width:1280px;width:100%;margin:auto;box-sizing:border-box;padding:30px 48px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-wordmark{color:#f7f5ff;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:-1px;display:flex;align-items:center;gap:11px}
.portal-symbol{width:32px;height:32px;border-radius:10px;background:#bba6ff;color:#171222;font-size:27px;line-height:27px;text-align:center;letter-spacing:-3px;padding-right:3px;box-sizing:border-box}
.portal-header nav,.portal-account{display:flex;align-items:center;gap:22px}.portal-text-link{color:#b8b6c8;text-decoration:none;font-size:14px}.portal-text-link:hover{color:white}
.portal-login-button,.portal-secondary-button{min-height:44px;border:1px solid #45414f;background:transparent;border-radius:10px;color:#e4dff3;padding:0 21px;cursor:pointer;font:inherit;font-size:14px}
.portal-login-button:hover,.portal-secondary-button:hover{background:#ffffff0c;border-color:#a49ab9}.portal-login-button{min-height:40px}
.portal-account{gap:12px;font-size:13px;color:#c9c2db;max-width:420px}.portal-account>span:nth-child(2){max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#302740;color:#dfd3ff}
.portal-text-button{border:0;background:none;color:#d4c6f8;font:inherit;min-height:44px;cursor:pointer;padding:0 4px;white-space:nowrap}
.portal-main{width:100%;max-width:1280px;box-sizing:border-box;display:grid;grid-template-columns:1.04fr 1fr;gap:64px;padding:80px 48px 100px;margin:auto;align-items:center;flex:1}
.portal-kicker{font-size:11px!important;font-weight:650;letter-spacing:2px;color:#b5a0df!important;text-transform:uppercase;margin:0 0 24px!important}
.portal-hero h1{font-size:clamp(48px,5.6vw,78px);line-height:1.17;letter-spacing:-3px;margin:0 0 28px;font-weight:650;color:#f4f0fc}
.portal-hero h1>span{background:linear-gradient(105deg,#e1c6ff,#aea7ff 85%);color:transparent;background-clip:text;-webkit-background-clip:text}
.portal-description{color:#aaa4b8;font-size:16px;line-height:1.9;max-width:420px;margin:0 0 34px}
.portal-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.portal-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;background:#d3bdff;color:#211430;text-decoration:none;font-size:14px;font-weight:650;border-radius:10px;padding:0 22px;min-height:48px;box-sizing:border-box;transition:background .15s,transform .15s}
.portal-cta:hover{background:#e1d2ff;transform:translateY(-1px)}.portal-cta>span{font-size:21px}.portal-secondary-button{min-height:48px}
.portal-login-note{font-size:12px;color:#8f899d;margin:18px 0 0;line-height:1.7}
.portal-product{display:block;overflow:hidden;text-decoration:none;border:1px solid #3f3650;border-radius:24px;background:linear-gradient(135deg,#252032,#16141d);box-shadow:0 35px 80px #0005;color:#f5edff;transition:border-color .15s}
.portal-product:hover{border-color:#b5a0df}.portal-sketch{height:310px;position:relative;overflow:hidden;background-image:radial-gradient(#b5a0df30 1px,transparent 1px),radial-gradient(ellipse at 50% 60%,#674a9345,transparent 70%);background-size:20px 20px,100% 100%;border-bottom:1px solid #3b3146}
.portal-sketch-line{position:absolute;top:43%;left:10%;width:82%;height:70px;border:1px solid #ad83e38c;border-radius:50%;transform:rotate(-20deg)}
.portal-node{position:absolute;background:#221d2d;border:1px solid #5a476a;border-radius:12px;padding:14px 18px;box-shadow:0 14px 35px #0006;display:flex;flex-direction:column;gap:9px;font-size:13px;box-sizing:border-box}
.portal-node>span{font-size:8px;letter-spacing:1.6px;color:#baa0d3}.portal-node>strong{font-weight:500;color:#e2d8ed}.portal-node-input{left:7%;top:26%;width:112px;transform:rotate(-6deg)}
.portal-node-model{left:34%;top:18%;width:155px;height:193px;border-color:#c697e9;background:linear-gradient(150deg,#30213c,#18141e);z-index:1;transform:rotate(4deg)}
.portal-node-model i{display:block;border-radius:9px;height:95px;margin-top:3px;background:radial-gradient(ellipse at 35% 65%,#e2b2ff 0,transparent 38%),radial-gradient(ellipse at 65% 35%,#8d95ff,transparent 50%),linear-gradient(40deg,#3b275e,#121322);box-shadow:inset 0 0 25px #ffffff10}
.portal-node-output{right:5%;top:56%;width:112px;transform:rotate(-5deg)}
.portal-product-copy{padding:28px 30px 32px;display:flex;gap:12px;align-items:center;justify-content:space-between}.portal-product-copy .portal-kicker{margin-bottom:10px!important;font-size:10px!important}
.portal-product-copy h2{font-size:31px;margin:0 0 9px;font-weight:600;letter-spacing:-1px}.portal-product-copy p:last-child{font-size:13px;line-height:1.8;color:#aaa0b7;margin:0}.portal-product-arrow{font-size:30px;color:#c4afd9}
.portal-footer{max-width:1280px;width:100%;box-sizing:border-box;padding:25px 48px;margin:auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;border-top:1px solid #25212e;font-size:11px;color:#8b839a}
.portal-legal{display:flex;gap:16px;flex-wrap:wrap}.portal-legal a{color:#b6aec4;text-decoration:none}.portal-legal a:hover{color:#fff}
.portal-company{flex-basis:100%;color:#6f6880}
.portal-page a:focus-visible,.portal-page button:focus-visible{outline:2px solid #c8a3ff;outline-offset:5px}
@media(max-width:900px){.portal-main{gap:35px;padding-top:55px;padding-bottom:65px}.portal-header{padding:24px 28px}.portal-main{padding-left:28px;padding-right:28px}.portal-hero h1{font-size:54px}.portal-sketch{height:280px}.portal-node-model{left:28%;width:140px}.portal-node-input{left:5%;width:95px}.portal-node-output{right:2%;width:95px}.portal-footer{padding-left:28px;padding-right:28px}}
@media(max-width:680px){.portal-header{padding:22px;gap:12px}.portal-wordmark{font-size:21px}.portal-header nav{gap:12px}.portal-account>span:nth-child(2),.portal-header nav>.portal-text-link{display:none}.portal-account{gap:8px}.portal-main{grid-template-columns:1fr;gap:45px;padding:45px 22px 48px}.portal-hero h1{font-size:57px;letter-spacing:-2px}.portal-description{font-size:15px;max-width:430px}.portal-sketch{height:270px}.portal-node-model{left:35%;width:145px;top:16%;height:185px}.portal-node-input{left:8%;top:27%;width:108px}.portal-node-output{right:5%;width:108px}.portal-product{max-width:500px;width:100%;margin:auto;border-radius:20px}.portal-product-copy{padding:24px}.portal-footer{padding:22px;flex-wrap:wrap}.portal-login-button{padding:0 17px}.portal-symbol{width:29px;height:29px;font-size:25px;line-height:25px}}
@media(prefers-reduced-motion:reduce){.portal-cta,.portal-product{transition:none}.portal-cta:hover{transform:none}}
