:root { --ink: #e3eaf1; --muted: #93a1af; --dim: #66737f; --panel: #12171d; --chrome: #0b0f13; --accent: #22d3ee; --accent-2: #0ea5c6; --warm: #ffb020; --green: #3ddc84; --brand: #a78bfa; --danger: #ff5c7a; --bp: #123d6e;
  --glow: 0 0 0 1px rgba(34,211,238,.55), 0 0 14px rgba(34,211,238,.18); --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; --mono: Consolas, "Cascadia Mono", monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font: 13.5px/1.4 var(--sans); color: var(--ink); background: var(--chrome); }
*, *::before, *::after { box-sizing: border-box; }
button { font: inherit; color: var(--ink); background: linear-gradient(#1c232b, #171d24); border: 1px solid #2c3640; border-radius: 7px; padding: 6px 12px; cursor: pointer; }
button:hover:not(:disabled) { background: linear-gradient(#222b35, #1b222a); border-color: #3c4855; color: #fff; }
button:disabled { color: #4c5864; border-color: #222a32; background: #141a20; cursor: default; }
button.primary { background: linear-gradient(#2fe0f8, #12b8d6); border-color: #0aa6c2; color: #04222a; font-weight: 650; }
button.primary:hover:not(:disabled) { background: linear-gradient(#5ce8fb, #22c8e4); color: #04222a; box-shadow: 0 0 16px rgba(34,211,238,.35); }
button.primary:disabled { background: #173a42; color: #4b7681; border-color: #1d4650; }
input, select, textarea { font: inherit; color: var(--ink); background: #0d1217; border: 1px solid #2c3640; border-radius: 7px; padding: 6px 8px; color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(34,211,238,.18); }
textarea { resize: none; width: 100%; }
kbd { font: 11px var(--mono); border: 1px solid #2c3640; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: #0d1217; }
.spacer { flex: 1; } .dim { color: var(--dim); } .muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; }
::-webkit-scrollbar { width: 9px; } ::-webkit-scrollbar-thumb { background: #27313b; border-radius: 6px; border: 2px solid var(--panel); }

#titlebar { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: linear-gradient(#141a21, #10151b); border-bottom: 1px solid #222b34; }
.tb-name { font-weight: 650; font-size: 15px; color: #fff; }
.tb-name::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); margin-right: 8px; vertical-align: 2px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 12px; border: 1px solid #2a343e; color: var(--muted); white-space: nowrap; }
.pill:empty { display: none; }
.pill.cost { color: #b9f3d2; border-color: rgba(61,220,132,.35); font-family: var(--mono); }
#layout { display: grid; grid-template-columns: 380px minmax(0, 1fr) 300px; height: calc(100vh - 46px); min-height: 0; }
@media (max-width: 1350px) { #layout { grid-template-columns: 330px minmax(0, 1fr) 270px; } }
body.hosted #layout { grid-template-columns: 340px minmax(0, 1fr); } body.hosted #panel { display: none; }
body.hosted.nopanel #layout { grid-template-columns: 0 minmax(0, 1fr); } body.hosted.nopanel #left { visibility: hidden; }
@media (max-width: 1350px) { body.hosted #layout { grid-template-columns: 300px minmax(0, 1fr); } }
#host { flex: 1; min-height: 0; } #host[hidden] { display: none; }
.sheets { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); } .sheets[hidden] { display: none; }
.sheets button { padding: 3px 10px; font-size: 12px; border-radius: 12px; } .sheets button.on { color: var(--accent); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
#btn-panel.on { color: #d6c9ff; border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.1); }
#left { background: var(--panel); border-right: 1px solid #222b34; display: flex; flex-direction: column; min-height: 0; }
#setup { overflow-y: auto; padding: 14px; flex: 1; }
#setup:empty { display: none; }
#chat { display: none; flex-direction: column; flex: 1; min-height: 0; }
body.chatting #chat { display: flex; } body.chatting #setup { display: none; }
#thread { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; line-height: 1.5; white-space: normal; }
.msg.claude { background: #161e26; border: 1px solid #232d37; align-self: flex-start; border-top-left-radius: 4px; }
.msg.user { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); align-self: flex-end; border-top-right-radius: 4px; }
.msg.sys { align-self: center; font-size: 12px; color: var(--muted); background: none; padding: 2px 8px; }
.msg.err { background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.45); color: #ffb3c0; align-self: stretch; }
.msg ul { margin: 6px 0; padding-left: 18px; }
.who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 3px; }
.ask { align-self: stretch; background: linear-gradient(180deg, #171f27, #121920); border: 1px solid #26313b; border-radius: 12px; padding: 12px; }
.ask .q { font-size: 15.5px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.ask .opts { display: flex; flex-direction: column; gap: 6px; }
.ask .opts button { text-align: left; padding: 9px 12px; border-radius: 9px; }
.ask .opts button:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--glow); }
.ask .opts button.chosen { border-color: var(--accent); color: var(--accent); background: rgba(34,211,238,.08); }
.ask .hint { margin-top: 8px; font-size: 12px; color: var(--dim); }
.typing { align-self: flex-start; color: var(--muted); font-size: 12.5px; padding: 4px 2px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--green); animation: b 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes b { 50% { opacity: .2; } }
#composer { border-top: 1px solid #222b34; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
#composer .row { flex-wrap: wrap; }
@media (max-height: 700px) { #input { height: 54px; } #composer { padding: 8px 10px 10px; gap: 6px; } #titlebar { height: 42px; } #layout { height: calc(100vh - 42px); } .wz-q { font-size: 17px; } .wz-opt { padding: 8px 11px; } }
#dictate-tip { font-size: 12.5px; color: #ffd890; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.4); border-radius: 8px; padding: 6px 9px; }
#btn-speak.on { color: var(--green); border-color: rgba(61,220,132,.5); }

/* setup cards (same feel as the Basic modes) */
.wz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wz-progress { flex: 1; } #wz-count { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-bar { height: 4px; border-radius: 3px; background: #1d252e; margin-top: 5px; overflow: hidden; } .wz-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .25s; }
.wz-card { background: linear-gradient(180deg, #171f27, #121920); border: 1px solid #26313b; border-radius: 12px; padding: 16px; }
.wz-q { font-size: 19px; font-weight: 650; color: #fff; line-height: 1.3; }
.wz-help { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 2px; }
.wz-help a { color: var(--accent); cursor: pointer; }
.wz-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; } .wz-opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.wz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 11px 13px; border-radius: 10px; }
.wz-opt .o-main { font-size: 15px; font-weight: 600; color: #fff; } .wz-opt .o-sub { font-size: 12px; color: var(--muted); }
.wz-opt:hover:not(:disabled) { border-color: var(--accent); box-shadow: var(--glow); }
.wz-opt.primary-opt { background: linear-gradient(#25d9f3, #10b5d3); border-color: #0aa6c2; } .wz-opt.primary-opt .o-main { color: #04222a; } .wz-opt.primary-opt .o-sub { color: #0b4552; }
.wz-opt.on { border-color: var(--accent); box-shadow: var(--glow); }
.wz-note { margin-top: 10px; font-size: 13px; color: #c3cdd6; background: #0d1217; border: 1px solid #1f2830; border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.wz-note.warn { border-color: rgba(255,176,32,.45); color: #ffd890; } .wz-note.bad { border-color: rgba(255,92,122,.5); color: #ffb3c0; } .wz-note.ok { border-color: rgba(61,220,132,.35); color: #b9f3d2; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.fields input, .fields select { font-family: var(--mono); font-size: 14px; }
.piece { border: 1px solid #26313b; border-radius: 10px; padding: 10px; margin-top: 10px; background: #0f151b; }
.piece .fields { margin-top: 4px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.piece .seg { display: flex; gap: 6px; margin-top: 8px; } .piece .seg button { flex: 1; padding: 6px; font-size: 12.5px; } .piece .seg button.on { color: var(--accent); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
.piece .x { float: right; padding: 0 8px; color: var(--dim); background: none; border: 0; }

/* viewer */
#viewer { display: flex; flex-direction: column; min-width: 0; background: #0a0e12; }
#vbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #222b34; background: #0f1419; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; } .tabs button { padding: 5px 11px; font-size: 12.5px; background: none; border-color: transparent; color: var(--muted); }
.tabs button.on { color: var(--accent); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.08); }
#issues { margin: 10px 12px 0; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(255,176,32,.5); background: rgba(255,176,32,.07); color: #ffd890; font-size: 13px; }
#view { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
#vbar { flex-wrap: wrap; }
#view svg { display: block; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-height: 100%; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 15px; text-align: center; }
.mark { width: 22px; height: 22px; border: 3px solid var(--green); border-radius: 50%; position: relative; display: inline-block; }
.mark::after { content: ""; position: absolute; left: 50%; top: -7px; bottom: -7px; border-left: 3px dashed var(--green); transform: translateX(-1.5px); }
.mark.big { transform: scale(2); margin-bottom: 18px; opacity: .7; }
.doc { max-width: 900px; margin: 0 auto; background: var(--bp); border-radius: 10px; padding: 22px 26px; color: #eaf4ff; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 20px 20px; }
.doc h2 { margin: 0 0 4px; font-size: 20px; } .doc h3 { margin: 18px 0 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #ffd36b; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; } .doc td, .doc th { border-bottom: 1px solid rgba(255,255,255,.18); padding: 5px 6px; text-align: left; } .doc th { color: #bfe3ff; font-weight: 600; }
.doc td.n { font-family: var(--mono); } .doc ol { padding-left: 20px; line-height: 1.6; }

#vbar2 { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; border: 1px solid rgba(61,220,132,.4); background: rgba(61,220,132,.07); color: #b9f3d2; font-size: 13.5px; }
#vbar2[hidden] { display: none; }
.vdot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
#vbar2.hearing .vdot { animation: b .6s infinite; background: #ff5c7a; box-shadow: 0 0 12px #ff5c7a; }
#vbar2.hearing { border-color: rgba(255,92,122,.5); color: #ffd0d8; background: rgba(255,92,122,.07); }
#vbar2.busy { border-color: rgba(34,211,238,.4); color: #bff3fb; background: rgba(34,211,238,.06); } #vbar2.busy .vdot { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: b 1s infinite; }
#vbar2.err { border-color: rgba(255,176,32,.5); color: #ffd890; background: rgba(255,176,32,.07); } #vbar2.err .vdot { background: var(--warm); box-shadow: none; }
.vmeter { width: 70px; height: 6px; border-radius: 4px; background: #1d252e; overflow: hidden; } .vmeter i { display: block; height: 100%; width: 0; background: var(--green); transition: width .08s; }
#btn-mic.on { color: #052814; background: linear-gradient(#4ae896, #22c070); border-color: #1aa45e; font-weight: 650; }

/* pictures */
#attach { display: flex; gap: 8px; flex-wrap: wrap; }
#attach .th { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid #2b3642; background: #0b0f13; }
#attach .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
#attach .th button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border-radius: 10px; font-size: 12px; line-height: 18px; background: rgba(0,0,0,.7); border: 0; color: #fff; }
.msg .pics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.msg .pics img { max-width: 180px; max-height: 140px; border-radius: 8px; display: block; cursor: zoom-in; }
#left.dropping { outline: 2px dashed #3ddc97; outline-offset: -6px; }
#zoom { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; }
#zoom img { max-width: 94vw; max-height: 94vh; border-radius: 6px; }

.wz-opt.hub { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "m g" "s g"; align-items: center; text-align: left; }
.wz-opt.hub .o-main { grid-area: m; } .wz-opt.hub .o-sub { grid-area: s; } .wz-opt.hub .o-go { grid-area: g; color: #3ddc97; font-size: 13px; padding-left: 12px; }

/* ---- Cutline Integrate */
#steps { display: flex; gap: 2px; padding: 3px; border: 1px solid #222b34; border-radius: 9px; background: #0d1217; margin-left: 8px; }
#steps button { border: 0; background: none; color: var(--muted); padding: 5px 14px; border-radius: 7px; }
#steps button b { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: #1d252e; color: var(--muted); font-size: 11px; text-align: center; margin-right: 5px; }
#steps button.on { background: rgba(34,211,238,.1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(34,211,238,.45); }
#steps button.on b { background: var(--accent); color: #04222a; }
#steps button.done b { background: rgba(61,220,132,.25); color: var(--green); }
.pill.mach { cursor: pointer; } .pill.mach.ok { color: #b9f3d2; border-color: rgba(61,220,132,.45); } .pill.mach.warn { color: #ffd890; border-color: rgba(255,176,32,.5); } .pill.mach.bad { color: #ffb3c0; border-color: rgba(255,92,122,.5); } .pill.mach.run { color: #bff3fb; border-color: rgba(34,211,238,.6); }
button.estop { background: linear-gradient(#ff6b86, #e2405f); border-color: #c2304d; color: #fff; font-weight: 750; letter-spacing: .06em; padding: 6px 18px; }
button.estop:hover:not(:disabled) { background: linear-gradient(#ff8199, #f04d6c); color: #fff; }
#stage { position: relative; min-width: 0; min-height: 0; background: #0a0e12; display: flex; flex-direction: column; }
#design-view, #canvas-view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
#design-view[hidden], #canvas-view[hidden] { display: none; }
#cbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #222b34; background: #0f1419; flex-wrap: wrap; }
#legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); } #legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 5px; }
#cv { flex: 1; min-height: 0; width: 100%; display: block; }
#empty2 { position: absolute; inset: 44px 0 0 0; }
#jobbar { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(15,20,25,.92); border: 1px solid #26313b; }
#jobbar[hidden] { display: none; }
.badge { font-size: 11px; font-weight: 750; letter-spacing: .08em; padding: 3px 9px; border-radius: 9px; background: #1d252e; color: var(--muted); }
.badge.run { background: rgba(61,220,132,.2); color: var(--green); } .badge.hold { background: rgba(255,176,32,.2); color: var(--warm); } .badge.bad { background: rgba(255,92,122,.2); color: var(--danger); }
.prog { flex: 1; height: 6px; border-radius: 4px; background: #1d252e; overflow: hidden; } .prog i { display: block; height: 100%; width: 0; background: var(--green); }
.mono { font-family: var(--mono); }
#panel { background: var(--panel); border-left: 1px solid #222b34; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.card { background: linear-gradient(180deg, #171f27, #121920); border: 1px solid #26313b; border-radius: 12px; padding: 12px; }
.card h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.card h4 .spacer { flex: 1; }
.card p { margin: 6px 0; color: #c3cdd6; font-size: 13px; line-height: 1.45; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12.5px; } .kv span:nth-child(odd) { color: var(--muted); } .kv span:nth-child(even) { text-align: right; font-family: var(--mono); color: #e3eaf1; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; } .btns.three { grid-template-columns: 1fr 1fr 1fr; } .btns .wide { grid-column: 1 / -1; }
.btns button { padding: 7px 8px; }
.seg2 { display: flex; gap: 4px; flex-wrap: wrap; } .seg2 button { flex: 1; padding: 5px 6px; font-size: 12.5px; } .seg2 button.on { color: var(--accent); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; font-size: 12.5px; color: var(--muted); }
.field input, .field select { width: 120px; font-family: var(--mono); }
.note { font-size: 12.5px; line-height: 1.45; padding: 7px 9px; border-radius: 8px; border: 1px solid #1f2830; background: #0d1217; color: #c3cdd6; margin-top: 8px; }
.note.warn { border-color: rgba(255,176,32,.45); color: #ffd890; } .note.bad { border-color: rgba(255,92,122,.5); color: #ffb3c0; } .note.ok { border-color: rgba(61,220,132,.35); color: #b9f3d2; }
.dro { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px 8px; }
.dro .ax { font-weight: 750; color: var(--accent); font-size: 16px; } .dro .v { font: 600 22px/1.1 var(--mono); text-align: right; color: #fff; } .dro button { padding: 3px 9px; font-size: 12px; }
.jog { display: grid; grid-template-columns: repeat(3, 44px) 12px 44px; grid-template-rows: repeat(3, 40px); gap: 5px; justify-content: center; margin-top: 4px; }
.jog button { padding: 0; font-weight: 700; } .jog .z { grid-column: 5; }
.go { width: 100%; padding: 10px; font-size: 14.5px; font-weight: 700; }
.go.green { background: linear-gradient(#4ae896, #22c070); border-color: #1aa45e; color: #052814; }
.go.amber { background: linear-gradient(#ffc84d, #f0a020); border-color: #c98512; color: #2a1800; }
.go.red { background: linear-gradient(#ff6b86, #e2405f); border-color: #c2304d; color: #fff; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; } .chips button { padding: 4px 10px; font-size: 12.5px; border-radius: 14px; } .chips button.on { color: var(--accent); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 4px; } .suggest button { font-size: 12px; padding: 4px 10px; border-radius: 14px; color: #c9b8ff; border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.06); }
.confirm { align-self: stretch; border: 1px solid rgba(255,176,32,.55); background: rgba(255,176,32,.06); border-radius: 12px; padding: 12px; }
.confirm .q { font-weight: 650; color: #fff; margin-bottom: 4px; } .confirm .why { color: #ffd890; font-size: 13px; margin-bottom: 8px; }
.confirm .row button { flex: 1; } .confirm .ok { background: linear-gradient(#ffc84d, #f0a020); border-color: #c98512; color: #2a1800; font-weight: 700; }
.confirm.done { opacity: .6; } .confirm .res { font-size: 12.5px; margin-top: 6px; color: var(--muted); }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 40; }
#modal[hidden] { display: none; }
#modal .box { width: min(520px, 92vw); background: #141a21; border: 1px solid #2c3640; border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#modal h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
#modal label.chk { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; color: #dbe3ea; border-bottom: 1px solid #1f2830; cursor: pointer; }
#modal label.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: #3ddc84; }
#status { height: 26px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 12px; color: var(--muted); background: #0d1217; border-top: 1px solid #1c242c; }
#status .ok { color: var(--green); } #status .bad { color: var(--danger); }
.alarm { border: 1px solid rgba(255,92,122,.55); background: rgba(255,92,122,.08); border-radius: 12px; padding: 10px 12px; color: #ffc3ce; font-size: 13px; }
.alarm b { color: #fff; }
#empty2[hidden] { display: none; }
.go:disabled, .go:disabled:hover { opacity: .35; filter: grayscale(.6); cursor: not-allowed; box-shadow: none; }
pre.code { margin: 0; max-height: 260px; overflow: auto; font: 11.5px/1.45 var(--mono); color: #b9c6d2; background: #0b0f13; border: 1px solid #1f2830; border-radius: 8px; padding: 8px; white-space: pre; }
.card h4 input[type=checkbox] { width: 15px; height: 15px; accent-color: #22d3ee; margin: 0 4px 0 0; }
.kv.set { grid-template-columns: 1fr 90px; align-items: center; max-height: 280px; overflow-y: auto; } .kv.set span { text-align: left !important; font-family: var(--sans) !important; color: var(--muted) !important; font-size: 12px; }
.kv.set input.sv { width: 90px; padding: 3px 6px; font-family: var(--mono); font-size: 12px; }
.card .wz-q { font-size: 17px; margin-top: 2px; } .card label.chk { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 13.5px; color: #dbe3ea; border-bottom: 1px solid #1f2830; cursor: pointer; } .card label.chk input { margin-top: 3px; accent-color: #3ddc84; }
.card .go { margin-top: 10px; }
button.askc { margin-top: 12px; width: 100%; font-size: 12.5px; color: #c9b8ff; border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.06); }
#levels { display: flex; gap: 2px; padding: 3px; border: 1px solid #222b34; border-radius: 9px; background: #0d1217; }
#levels button { border: 0; background: none; color: var(--muted); padding: 5px 11px; border-radius: 7px; font-size: 12.5px; }
#levels button.on { background: rgba(167,139,250,.14); color: #d6c9ff; box-shadow: inset 0 0 0 1px rgba(167,139,250,.5); }
@media (max-width: 1250px) { #mach-pill { display: none; } #steps button { padding: 5px 9px; } #btn-new { display: none; } }

.mform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 12px; }
.mform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.mform label small { font-size: 11px; color: var(--dim); }
.mform input, .mform select { font-size: 13.5px; }
.wz-opt .o-go { cursor: pointer; }
#setup .mform { grid-template-columns: 1fr; }

.wz-sec { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; padding-top: 12px; border-top: 1px solid #222b34; }
.wz-sec b { font-size: 14.5px; color: #fff; } .wz-sec span { font-size: 12px; color: var(--muted); }
.wz-sec { flex-direction: column; align-items: flex-start; gap: 2px; }
.fields input, .fields select { width: 100%; min-width: 0; }

.wz-opt.danger { border-color: rgba(255,92,122,.6); } .wz-opt.danger .o-main { color: #ffb3c0; }

#issues { flex-shrink: 0; max-height: 34vh; display: flex; flex-direction: column; }
#issues[hidden] { display: none; }
#issues .iss-head { display: flex; align-items: center; gap: 8px; } #issues .iss-head b { flex-shrink: 0; }
#issues .iss-toggle { margin-left: auto; flex-shrink: 0; padding: 3px 10px; font-size: 12px; }
#issues .iss-list { overflow: auto; margin-top: 6px; line-height: 1.45; min-height: 0; } #issues .iss-list > div { margin: 3px 0; } #issues .iss-list[hidden] { display: none; }
#btn-send.stop { background: #ff5c7a; border-color: #ff5c7a; color: #fff; }

/* ---- Cutline Studio: licence, help, agreement */
.pill.lic { cursor: pointer; } .pill.lic.ok { color: #b9f3d2; border-color: rgba(61,220,132,.35); } .pill.lic.warn { color: #ffd890; border-color: rgba(255,176,32,.5); }
#btn-help { min-width: 34px; font-weight: 700; }
#modal .lic-info { font-size: 14px; line-height: 1.5; color: #dbe3ea; margin: 6px 0 12px; } #modal code { background: #0b0f13; padding: 1px 6px; border-radius: 5px; }
#modal .lic-row { display: flex; gap: 8px; margin: 8px 0; } #modal .lic-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
#modal .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } #modal .btns.col { flex-direction: column; } #modal .btns.col button { text-align: left; }
#modal .note { margin: 8px 0; } #modal button.wide { width: 100%; margin-top: 4px; }
#modal button.danger, button.danger { border-color: #ff5c7a; color: #ffb3c0; }
.eula { max-height: 46vh; overflow: auto; background: #0b0f13; border: 1px solid #222b34; border-radius: 10px; padding: 4px 14px; font-size: 13px; line-height: 1.5; color: #c9d3dc; margin: 8px 0; }
.eula h4 { color: #fff; margin: 10px 0 6px; } .eula p { margin: 7px 0; }
#modal .box:has(.eula) { width: min(760px, 94vw); }
#setup label.chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; color: #dbe3ea; cursor: pointer; } #setup label.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: #3ddc84; }
.tb-name::before { background: linear-gradient(90deg, #3ddc84 50%, #ff8a2a 50%); box-shadow: 0 0 8px rgba(255,138,42,.6); }
.pill.upd { cursor: pointer; color: #bff3fb; border-color: rgba(34,211,238,.45); } .pill.upd.ok { color: #b9f3d2; border-color: rgba(61,220,132,.5); background: rgba(61,220,132,.08); }
body.locked #steps, body.locked #btn-new, body.locked #btn-workshop, body.locked #btn-panel { pointer-events: none; opacity: .35; }
.pill.cost.warn { color: #ffd890; border-color: rgba(255,176,32,.5); }
.card.soon { border-color: rgba(34,211,238,.35); background: linear-gradient(180deg, rgba(34,211,238,.06), transparent); } .card.soon h4 { color: #bff3fb; } #modal .note.soon { margin-top: 12px; color: #bff3fb; border-color: rgba(34,211,238,.35); }

.empty .plans-link { margin-top: 10px; background: none; border: 1px solid currentColor; color: var(--accent); font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.empty .plans-link:hover { background: rgba(34,211,238,.08); }
/* trial reminder signup and end-of-trial survey */
.trial-ask { margin: 12px 0 4px; padding: 12px; border: 1px solid rgba(34,211,238,.35); border-radius: 8px; background: rgba(34,211,238,.04); display: flex; flex-direction: column; gap: 8px; }
.trial-ask .wz-q { font-size: 14px; margin: 0; }
.trial-ask textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.trial-ask > button.primary { align-self: flex-start; }
.chips button.chosen { color: var(--accent); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.12); }
button.linkish { background: none; border: 0; color: var(--muted, #9aa8b5); text-decoration: underline; padding: 0; align-self: flex-start; cursor: pointer; font-size: 12.5px; }
.note.ok { color: #3ddc84; }
/* joint fit test */
.fit-status { margin-top: 10px; font-size: 13px; line-height: 1.45; color: #c3cdd6; background: #0d1217; border: 1px solid #1f2830; border-left: 3px solid var(--warm); border-radius: 8px; padding: 9px 11px; }
.fit-status.ok { border-left-color: var(--green); }
.wz-q.fit-sub { font-size: 16px; margin-top: 16px; }
.fit-pic { margin-top: 10px; background: #0d1217; border: 1px solid #1f2830; border-radius: 8px; padding: 10px; color: var(--muted); }
.fit-svg { display: block; width: 100%; height: auto; --wood: #c9a46b; --bg: #0d1217; }
.fit-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.fit-num { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 8px; }
.fit-num b { font-size: 17px; color: #fff; } .fit-num span { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.fit-num.now { border-color: rgba(255,176,32,.55); }
.fit-num:hover { border-color: var(--accent); box-shadow: var(--glow); }
.fit-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; font-family: var(--mono); color: #c3cdd6; }
.fit-table th { text-align: left; font-family: var(--sans); font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid #1f2830; }
.fit-table td { padding: 3px 6px; border-bottom: 1px solid #161d24; } .fit-table tr.now td { color: var(--warm); }
.fit-list { margin-top: 14px; } .fit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #c3cdd6; padding: 6px 0; border-bottom: 1px solid #161d24; }
.fit-row button { font-size: 12px; padding: 3px 9px; }
.note.fit-nudge .linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; box-shadow: none; }
/* clone */
#clone-view { display: none; position: absolute; inset: 0; overflow: auto; padding: 28px; background: var(--panel, #12171d); }
body.clonepage #clone-view { display: block; }
body.clonepage #design-view, body.clonepage #host { visibility: hidden; }
#stage { position: relative; }
#steps button.clone-step b { font-size: 13px; }
body.clonepage #steps button.clone-step, body.cloning #steps button.clone-step { color: var(--accent); }
.clone-card { max-width: 760px; margin: 0 auto; }
.clone-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.clone-card h2 { font-size: 26px; margin: 6px 0 8px; color: #fff; font-weight: 650; }
.clone-lede { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; max-width: 64ch; }
.clone-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; border: 1.5px dashed #2c3843; border-radius: 12px; background: #0d1217; cursor: pointer; padding: 18px; text-align: center; }
.clone-drop:hover, .clone-drop.over { border-color: var(--accent); box-shadow: var(--glow); }
.clone-drop .cd-main { font-size: 15px; font-weight: 600; color: #fff; } .clone-drop .cd-sub { font-size: 12px; color: var(--muted); }
.clone-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.clone-thumb { position: relative; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid #1f2830; background: #0d1217; }
.clone-thumb img { width: 100%; height: 100%; object-fit: cover; }
.clone-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border-radius: 12px; line-height: 1; }
.clone-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.clone-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.clone-fields label.wide { grid-column: 1 / -1; }
.clone-meta { margin-top: 12px; font-size: 12px; color: var(--dim); }
.clone-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.clone-actions .primary { padding: 10px 18px; font-size: 15px; }
.clone-msg { margin-top: 10px; color: #ffd890; font-size: 13px; }
#ref-pip { position: absolute; right: 18px; top: 58px; z-index: 5; width: 210px; background: #0d1217; border: 1px solid #2c3843; border-radius: 10px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
#ref-pip .pip-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#ref-pip img { display: block; width: 100%; border-radius: 6px; margin-top: 4px; cursor: zoom-in; }
#design-view { position: relative; }
/* 3D model */
#view.is3d { display: flex; flex-direction: column; }
.m3d { flex: 1; min-height: 300px; position: relative; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1d2731 0%, #0d1217 75%); }
.m3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.m3d canvas:active { cursor: grabbing; }
.m3d-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 2px 2px; }
.m3d-bar button { font-size: 12px; padding: 5px 11px; } .m3d-bar button.on { border-color: var(--accent); color: var(--accent); }
.m3d-hint { margin-left: auto; font-size: 12px; color: var(--dim); }
/* design rules */
.rule-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; background: #0d1217; border: 1px solid #1f2830; border-radius: 8px; padding: 9px 10px; font-size: 13px; color: #c3cdd6; line-height: 1.45; }
.rule-n { color: var(--accent); font-weight: 700; } .rule-row button { font-size: 12px; padding: 3px 9px; }
.card.clone-promo { border-color: rgba(34,211,238,.35); }
@media (max-width: 760px) { .clone-fields { grid-template-columns: 1fr; } #ref-pip { width: 130px; } }
#ref-pip .pip-head { display: flex; align-items: center; justify-content: space-between; }
#ref-pip .pip-hide { font-size: 11px; padding: 2px 8px; letter-spacing: 0; text-transform: none; }
#ref-pip.hidden { width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
#ref-pip .pip-show { font-size: 12px; padding: 5px 11px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
