/* Toss-style tokens: white surfaces, grey scale, one blue accent, rounded cards, no heavy borders */
:root{
  --grey50:#f9fafb;--grey100:#f2f4f6;--grey200:#e5e8eb;--grey300:#d1d6db;--grey400:#b0b8c1;--grey500:#8b95a1;--grey600:#6b7684;--grey700:#4e5968;--grey800:#333d4b;--grey900:#191f28;
  --blue:#3182f6;--blue-strong:#1b64da;--blue-weak:#e8f3ff;--red:#f04452;--red-weak:#ffeeee;--green:#03b26c;--green-weak:#e5fff4;--orange:#fe9800;--orange-weak:#fff3e0;
  --radius:16px;--radius-s:10px;--shadow:0 2px 12px rgba(0,27,55,.06);
  --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--grey100);color:var(--grey900);font:14px/1.5 var(--font);letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
h2{font-size:20px;font-weight:700;margin:4px 0 4px;letter-spacing:-.02em}
h3{font-size:13px;font-weight:600;color:var(--grey600);margin:22px 0 8px}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 14px;border:0;border-radius:var(--radius-s);background:var(--grey100);color:var(--grey700);font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s}
.btn:hover{background:var(--grey200)}
.btn.primary{background:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-strong)}
.btn.weak{background:var(--blue-weak);color:var(--blue)}.btn.weak:hover{background:#d6e9ff}
.btn.ghost{background:transparent;color:var(--grey700)}.btn.ghost:hover{background:var(--grey100)}
.btn.text{background:none;color:var(--grey600);height:32px}.btn.text:hover{color:var(--grey900);background:none}
.btn.small{height:32px;padding:0 10px;font-size:13px}
.btn.block{width:100%}
.btn.danger{background:var(--red-weak);color:var(--red)}
.btn.icon-only{width:38px;padding:0}
.btn:disabled{opacity:.45;cursor:default}
button:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* segmented control */
.segmented{display:inline-flex;padding:3px;background:var(--grey100);border-radius:12px;gap:2px}
.segmented button{border:0;background:transparent;height:32px;padding:0 12px;border-radius:9px;color:var(--grey600);font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}
.segmented button.active{background:#fff;color:var(--grey900);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.chip{border:0;height:32px;padding:0 12px;border-radius:999px;background:#fff;color:var(--grey700);font-weight:600;font-size:13px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.chip.active{background:var(--blue-weak);color:var(--blue)}

/* top bar */
.topbar{height:60px;display:flex;align-items:center;gap:20px;padding:0 20px;background:#fff;border-bottom:1px solid var(--grey200)}
.brand{font-size:17px;font-weight:700;letter-spacing:-.02em;min-width:150px}
.project{flex:1;min-width:0}
.project input{border:0;background:transparent;font-size:15px;font-weight:600;padding:2px 6px;margin-left:-6px;border-radius:6px;width:min(360px,100%)}
.project input:hover{background:var(--grey100)}
.project span{display:block;font-size:12px;color:var(--grey500)}
.header-actions{display:flex;align-items:center;gap:4px}
.divider{width:1px;height:20px;background:var(--grey200);margin:0 6px}

/* layout: side panels are closed by default; 공정 시간 opens the left one, 배치 편집 / a selection / 설정 open the right one */
.workspace{display:grid;grid-template-columns:minmax(0,1fr);height:calc(100vh - 60px)}
body.drawer-open .workspace{grid-template-columns:340px minmax(0,1fr)}
body.right-open .workspace{grid-template-columns:minmax(0,1fr) 340px}
body.drawer-open.right-open .workspace{grid-template-columns:340px minmax(0,1fr) 340px}
.side{background:#fff;overflow:auto;padding:20px}
.side.left{border-right:1px solid var(--grey200);display:none}
body.drawer-open .side.left{display:block}
.side.right{border-left:1px solid var(--grey200);display:none}
body.right-open .side.right{display:block}
.side-page{animation:sheet .22s cubic-bezier(.2,.8,.2,1)}
@keyframes sheet{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
.side.left .side-page{animation-name:sheetL}
@keyframes sheetL{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.back{margin:-6px 0 4px -8px;padding:0 8px;gap:2px;color:var(--grey600)}
.back svg{width:16px;height:16px}

/* 배치 편집: category chips + items */
.cat-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.cat-tabs button{height:34px;padding:0 13px;border:0;border-radius:999px;background:var(--grey100);color:var(--grey700);font-weight:600;font-size:13px;cursor:pointer;transition:background .15s,color .15s}
.cat-tabs button:hover{background:var(--grey200)}
.cat-tabs button.active{background:var(--grey900);color:#fff}
.cat-list{display:flex;flex-direction:column;gap:6px}
.cat-item{display:flex;align-items:center;gap:12px;width:100%;padding:8px;border:0;background:#fff;border-radius:14px;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px var(--grey100);transition:background .15s,box-shadow .15s}
.cat-item:hover{background:var(--grey50)}
.cat-item.active{background:var(--blue-weak);box-shadow:inset 0 0 0 2px var(--blue)}
.cat-item .pic{width:64px;height:48px;flex-shrink:0;border-radius:10px;background:var(--grey100);color:var(--grey700);display:grid;place-items:center;overflow:hidden}
.cat-item .pic img{width:100%;height:100%;object-fit:cover}
.cat-item .pic svg{width:22px;height:22px}
.cat-item .txt{display:flex;flex-direction:column;min-width:0;gap:1px}
.cat-item b{font-weight:600;font-size:14px;line-height:1.35}
.cat-item small{color:var(--grey500);font-size:12px;line-height:1.35}
.badge{align-self:flex-start;margin-top:3px;padding:1px 6px;border-radius:6px;background:var(--grey100);color:var(--grey600);font-size:11px;font-weight:600;font-style:normal}
.badge.blue{background:var(--blue-weak);color:var(--blue)}
.cat-list .note{margin-top:8px}
/* header mode buttons */
.modes{display:flex;gap:4px}
.mode-btn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:0;border-radius:var(--radius-s);background:transparent;color:var(--grey700);font-weight:600;cursor:pointer}
.mode-btn:hover{background:var(--grey100)}
.mode-btn.active{background:var(--grey900);color:#fff}
/* edit tools only while 배치 편집 is open */
.vp-head .tools{display:none}
body.mode-edit .vp-head .tools{display:inline-flex}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.panel-head h2{margin-top:6px;word-break:keep-all}
.side-tabs{display:flex;margin-bottom:18px}.side-tabs button{flex:1}
.desc{color:var(--grey600);font-size:13px;margin:0 0 16px}
.meta{color:var(--grey500);font-size:12px;margin:12px 0}
.stack{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:16px;gap:12px}

/* lists (library, examples) */
.list{display:flex;flex-direction:column;gap:2px}
.list-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;border:0;background:none;border-radius:12px;text-align:left;cursor:pointer}
.list-row:hover{background:var(--grey50)}
.list-row.active{background:var(--blue-weak)}
.list-row .ico{width:40px;height:40px;border-radius:12px;background:var(--grey100);color:var(--grey700);display:grid;place-items:center}
.list-row .ico.blue{background:var(--blue-weak);color:var(--blue)}
.list-row .txt{display:flex;flex-direction:column;min-width:0}
.list-row b{font-weight:600;font-size:15px}
.list-row small{color:var(--grey500);font-size:12px}
.list-group{font-size:12px;font-weight:600;color:var(--grey500);margin:14px 8px 4px}
.narin-opts{margin-top:10px}

/* process time list */
.time-list{display:flex;flex-direction:column;margin:8px 0 4px}
.time-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;column-gap:10px;row-gap:8px;padding:12px 0;border-bottom:1px solid var(--grey100)}
.time-row:last-child{border-bottom:0}
.time-row.sel .name{color:var(--blue)}
.time-row .no{width:24px;height:24px;border-radius:8px;background:var(--grey100);color:var(--grey600);font-size:12px;font-weight:700;display:grid;place-items:center}
.time-row.src .no{background:var(--blue-weak);color:var(--blue)}
.time-row .name{font-weight:600;font-size:14px;line-height:1.35;cursor:pointer}
.time-row .name small{display:block;font-weight:500;color:var(--grey500);font-size:12px;margin-top:2px}
.time-row .name .tag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:6px;background:var(--orange-weak);color:#c26a00;font-size:11px;font-weight:600;vertical-align:1px}
.time-row .name .tag.ok{background:var(--green-weak);color:#008a52}
.unit-input{position:relative}
.unit-input input{width:100%;height:40px;border:0;border-radius:10px;background:var(--grey100);padding:0 34px 0 12px;font-weight:600;font-size:15px;text-align:right;font-variant-numeric:tabular-nums}
.unit-input input:focus{background:#fff;box-shadow:inset 0 0 0 2px var(--blue);outline:0}
.unit-input span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--grey500);font-size:13px;pointer-events:none}
.time-inputs{grid-column:2;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 64px;gap:6px}
.time-inputs label{font-size:12px;color:var(--grey500);display:flex;flex-direction:column;gap:4px;min-width:0}
.time-inputs .unit-input input{height:38px;padding:0 24px 0 6px;font-size:14px;-moz-appearance:textfield}
.time-inputs .unit-input input::-webkit-inner-spin-button,.time-inputs .unit-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.time-inputs .unit-input span{right:8px;font-size:12px}
.time-inputs label:first-child{color:var(--grey700);font-weight:600}
.time-inputs label:first-child input{font-size:15px}

/* fields (inspector) */
.field{display:block;margin:14px 0;font-size:13px;color:var(--grey600);font-weight:500}
.field.compact{margin:0 0 10px}
.field input:not([type=checkbox]),.field select,.field textarea,#cadSearch{display:block;width:100%;margin-top:6px;height:40px;border:0;border-radius:10px;background:var(--grey100);padding:0 12px;color:var(--grey900);font-weight:500}
.field textarea{height:auto;min-height:96px;padding:10px 12px;resize:vertical;line-height:1.55}
.field input:focus,.field select:focus,.field textarea:focus{background:#fff;box-shadow:inset 0 0 0 2px var(--blue);outline:0}
.check{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:14px;color:var(--grey800);cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--blue)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.note{font-size:13px;line-height:1.6;color:var(--grey600);padding:12px 14px;background:var(--grey50);border-radius:12px;margin:10px 0}
.action-row{display:flex;gap:8px;margin-top:16px}.action-row .btn{flex:1}
.link-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--grey700);padding:8px 0;border-bottom:1px solid var(--grey100)}
.muted{color:var(--grey500);font-size:13px}
.danger{color:var(--red)}

/* viewport card: tool bar above the 3D view so nothing covers the line */
.vp-card{flex:1 0 480px;min-height:480px;display:flex;flex-direction:column;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.vp-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;flex-wrap:wrap}
.vp-right{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.vp-head .chip{box-shadow:none;background:var(--grey100)}
.vp-head .chip.active{background:var(--blue-weak)}
.viewport{position:relative;flex:1;min-height:0;background:#e9ecef}
canvas{width:100%;height:100%;display:block;touch-action:none}
.vp-status{display:none}
.vp-status .dot{width:8px;height:8px;border-radius:50%;background:var(--grey400)}
.vp-status #sceneTitle{display:none}
body.running .vp-status .dot{background:var(--green)}
#modeLabel{background:rgba(255,255,255,.9);padding:3px 8px;border-radius:999px;font-weight:600}
#hint{position:absolute;left:14px;bottom:72px;font-size:12px;color:var(--grey700);background:rgba(255,255,255,.85);padding:4px 10px;border-radius:999px;pointer-events:none}
.legend{position:absolute;right:14px;bottom:72px;font-size:12px;color:var(--grey700);background:rgba(255,255,255,.85);padding:4px 10px;border-radius:999px;pointer-events:none}
.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin:0 4px 0 8px}
.legend i:first-child{margin-left:0}
.working{background:var(--blue)}.waiting{background:var(--grey400)}.blocked{background:var(--red)}
.player{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px 8px;background:#fff;border-radius:999px;box-shadow:0 4px 16px rgba(0,27,55,.12)}
.play{height:40px;min-width:84px;padding:0 18px;border:0;border-radius:999px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer}
.play:hover{background:var(--blue-strong)}
#clock{font:600 16px/1 var(--font);font-variant-numeric:tabular-nums;padding:0 8px;color:var(--grey800)}
#speed{height:32px;border:0;border-radius:999px;background:var(--grey100);padding:0 10px;font-weight:600;font-size:13px;color:var(--grey700)}

/* metrics */
.metrics-wrap{position:relative;flex-shrink:0}
.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.metric{background:#fff;border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow);min-width:0;border:0;text-align:left;color:inherit}
.metric small{display:flex;align-items:center;gap:4px;color:var(--grey600);font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric b{display:block;font-size:22px;font-weight:700;margin-top:2px;font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap}
.metric em{font-style:normal;font-size:13px;font-weight:500;color:var(--grey500);margin-left:3px}
.metric.good b{color:var(--blue)}
.metric.clickable{cursor:pointer;transition:background .15s,box-shadow .15s}
.metric.clickable:hover{background:var(--grey50)}
.metric.clickable small svg{width:15px;height:15px;color:var(--grey500);transition:transform .25s}
.metric.clickable.open{box-shadow:inset 0 0 0 2px var(--blue),var(--shadow)}
.metric.clickable.open small svg{transform:rotate(180deg)}
/* idle stations: a sheet that rises from the card */
.idle-pop{position:absolute;bottom:calc(100% + 8px);z-index:20;max-height:min(440px,60vh);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 12px 40px rgba(0,27,55,.18),0 0 0 1px rgba(0,27,55,.04);padding:16px 8px 8px;transform-origin:50% 100%}
.idle-pop.opening{animation:rise .34s cubic-bezier(.2,.9,.25,1.05)}
@keyframes rise{from{opacity:0;transform:translateY(16px) scaleY(.4)}to{opacity:1;transform:none}}
.idle-pop.opening li{animation:row .38s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 32ms + 60ms)}
@keyframes row{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.idle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:0 8px 8px}
.idle-head b{display:block;font-size:16px;font-weight:700}
.idle-head small{display:block;color:var(--grey500);font-size:12px;margin-top:2px}
.idle-pop ul{list-style:none;margin:0;padding:0}
.idle-pop li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border-radius:12px;cursor:pointer}
.idle-pop li:hover{background:var(--grey50)}
.idle-pop li>i{width:8px;height:8px;border-radius:50%}
.idle-pop .nm{font-weight:600;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.idle-pop .nm small{display:block;font-weight:500;color:var(--grey500);font-size:12px}
.idle-pop .sec{text-align:right;white-space:nowrap}
.idle-pop .sec b{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.idle-pop .sec small{display:block;color:var(--grey500);font-size:11px}
.idle-pop .muted{padding:8px}

/* results */
.results{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:8px 18px 14px;flex-shrink:0}
.results-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--grey100)}
.tabs{display:flex;gap:18px}
.tabs button{border:0;background:none;height:44px;padding:0;font-weight:600;font-size:15px;color:var(--grey500);cursor:pointer;border-bottom:2px solid transparent}
.tabs button.active{color:var(--grey900);border-bottom-color:var(--grey900)}
#issueCount:not(:empty){display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;line-height:18px;text-align:center}
.results-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.target{font-size:13px;color:var(--grey600);margin-right:6px}
.target input{width:58px;height:30px;border:0;border-radius:8px;background:var(--grey100);text-align:right;padding:0 8px;font-weight:600}
#resultBody{max-height:260px;overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
th{text-align:left;color:var(--grey500);font-weight:500;font-size:13px;padding:12px 8px 8px;position:sticky;top:0;background:#fff}
td{padding:11px 8px;border-top:1px solid var(--grey100);color:var(--grey800)}
td:first-child{font-weight:600;color:var(--grey900)}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--grey100);color:var(--grey600)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.work{background:var(--blue-weak);color:var(--blue)}.pill.block{background:var(--red-weak);color:var(--red)}.pill.wait{background:var(--orange-weak);color:#c26a00}
.bar{display:inline-block;width:56px;height:6px;border-radius:3px;background:var(--grey100);margin-right:8px;vertical-align:1px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--blue);border-radius:3px}
#resultBody p{margin:14px 4px}

/* toast + dialog */
#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:rgba(25,31,40,.92);color:#fff;padding:12px 20px;border-radius:14px;z-index:50;display:none;max-width:min(560px,90vw);font-weight:500}
dialog{width:min(900px,92vw);max-height:90vh;border:0;border-radius:20px;padding:24px;color:var(--grey900);box-shadow:0 20px 60px rgba(0,0,0,.2)}
dialog::backdrop{background:rgba(0,0,0,.35)}
.dialog-head{display:flex;justify-content:space-between;align-items:center}
dialog p{color:var(--grey600);line-height:1.7}
dialog img{width:100%;border-radius:12px;background:var(--grey50)}
#cadList{max-height:260px;overflow:auto;margin-top:12px}
#cadList div{padding:9px 4px;border-bottom:1px solid var(--grey100);font-size:13px}

/* presentation: only the line */
.present .side{display:none!important}
.present .workspace{grid-template-columns:minmax(0,1fr)!important}
.present .modes{display:none}
.present .header-actions>*:not(#presentation){display:none}
.present .results{display:none}

@media (max-width:1400px){body.drawer-open .workspace{grid-template-columns:300px minmax(0,1fr)}body.right-open .workspace{grid-template-columns:minmax(0,1fr) 310px}body.drawer-open.right-open .workspace{grid-template-columns:300px minmax(0,1fr) 310px}.brand{min-width:auto}.metric small{font-size:12px}.metric b{font-size:20px}.metric{padding:12px 14px}}
@media (max-width:760px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1180px){.vp-head .tools button:nth-child(n+4){display:none}.mode-btn svg{display:none}}
@media (max-width:1000px){
  .workspace,body.drawer-open .workspace,body.right-open .workspace,body.drawer-open.right-open .workspace{grid-template-columns:minmax(0,1fr);height:auto}
  .side.left{order:2;border:0}.side.right{order:3;border:0}main{order:1}
  .vp-card{min-height:70vh}
  .header-actions .btn:not(.icon-only):not(#presentation){display:none}
  body.mode-edit .vp-head .tools{display:none}
  #hint,.legend{display:none}
}
@media (max-width:560px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 12px;gap:10px}.brand{display:none}.player{left:12px;right:12px;transform:none;justify-content:space-between}#runHour{display:none}}

/* 개선안 tab */
.tabs .solve-tab{color:var(--blue)}
.tabs .solve-tab.active{color:var(--grey900)}
#resultBody.tall{max-height:520px}
.solve{padding:6px 0 4px}
.solve-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:26px 16px 22px}
.solve-empty .ico{width:48px;height:48px;border-radius:16px;background:var(--blue-weak);color:var(--blue);display:grid;place-items:center}
.solve-empty .ico svg{width:24px;height:24px}
.solve-empty b{font-size:17px}
.solve-empty p{margin:0 0 6px!important;max-width:520px;color:var(--grey600);font-size:14px;line-height:1.6}
.solve-run{display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 16px}
.solve-run b{font-size:16px}
.solve-run small{color:var(--grey500);font-size:13px;min-height:18px}
.solve-bar{width:min(420px,90%);height:8px;border-radius:4px;background:var(--grey100);overflow:hidden}
.solve-bar i{display:block;height:100%;background:var(--blue);border-radius:4px;transition:width .25s}
.solve-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--grey50);border-radius:14px;margin:10px 0 4px}
.solve-head b{font-size:17px}
.solve-head small{display:block;color:var(--grey600);font-size:13px;margin-top:2px}
.solve-head small b{font-size:13px;color:var(--grey900)}
.solve-note,.solve-ok{font-size:13px;line-height:1.6;color:var(--grey700);padding:10px 14px;border-radius:12px;background:var(--orange-weak);margin:8px 0!important}
.solve-ok{background:var(--green-weak);color:#00754a}
.solve h4{font-size:13px;font-weight:600;color:var(--grey600);margin:18px 4px 6px}
.solve-list{list-style:none;margin:0;padding:0}
.solve-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 6px;border-top:1px solid var(--grey100)}
.solve-list li:first-child{border-top:0}
.solve-list .num{width:26px;height:26px;border-radius:9px;background:var(--blue);color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}
.solve-list .num.dot{background:none;width:26px}
.solve-list .num.dot::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--grey300)}
.solve-list .what{min-width:0;display:flex;flex-direction:column;gap:2px}
.solve-list .what b{font-size:15px;font-weight:600}
.solve-list .what small{color:var(--grey500);font-size:12px}
.solve-list .badge{margin:0}
.badge.green{background:var(--green-weak);color:#00754a}
.gain{white-space:nowrap;font-size:13px;color:var(--grey600);font-variant-numeric:tabular-nums}
.gain b{font-size:16px;color:var(--grey900)}
.gain em{font-style:normal;font-weight:700;margin-left:6px}
.gain em.up{color:var(--blue)}.gain em.down{color:var(--red)}
@media (max-width:760px){.solve-list li{grid-template-columns:28px minmax(0,1fr)}.solve-list .gain,.solve-list li>.btn{grid-column:2}}

/* Company wordmark: nanoultrasonic */
.brand{display:flex;flex-direction:column;justify-content:center;gap:1px;flex-shrink:0;min-width:214px;line-height:1.2}.brand-name{color:#20518d;font-size:23px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand-name>span{font-weight:500;letter-spacing:-.8px}.brand-subtitle{font-size:10px;letter-spacing:.1px;color:#6b7684;font-weight:500}
@media(max-width:900px){.topbar{gap:12px}.brand{min-width:176px}.brand-name{font-size:20px}.brand-subtitle{font-size:9px}}
@media(max-width:560px){.brand{display:flex;min-width:126px}.brand-name{font-size:16px;letter-spacing:-.6px}.brand-name>span{letter-spacing:-.6px}.brand-subtitle{font-size:8px}.topbar .project{min-width:30px}.topbar .modes{gap:3px}.mode-btn{padding:0 8px}.header-actions{gap:2px}}

/* Restored NANO sign logo */
.brand{position:relative;padding-left:76px}.brand-logo{position:absolute;left:0;top:50%;transform:translateY(-50%);width:66px;height:32px;object-fit:contain}
@media(max-width:900px){.brand{padding-left:62px}.brand-logo{width:54px;height:28px}}
@media(max-width:560px){.brand{padding-left:0}.brand-logo{display:none}}

.brand-logo{object-fit:cover;object-position:center}
#cloudDialog{border:0;border-radius:20px;width:min(850px,94vw);max-height:85vh;padding:28px;color:var(--grey800);box-shadow:0 20px 90px #0004}#cloudDialog::backdrop{background:#15263d66}.cloud-head{display:flex;justify-content:space-between;gap:20px}.cloud-head h2{margin:0}.cloud-notice{font-size:12px;color:var(--grey600);background:var(--grey100);padding:12px;border-radius:10px;line-height:1.7}.cloud-actions{display:flex;gap:8px;flex-wrap:wrap}.cloud-revision{display:flex;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--grey200)}.cloud-revision>div{flex:1}.cloud-revision small{display:block;color:var(--grey500);font-size:11px;margin-top:4px}.cloud-revision p{font-size:12px;color:var(--grey700);line-height:1.7;margin:6px 0 0}#cloudMessage{line-height:1.8;font-size:13px}#cloudDialog .field input{width:100%}
#cloudDialog .cloud-block{padding:14px 0;border-top:1px solid var(--grey100)}
#cloudDialog h3{margin:0 0 10px}
#cloudDialog .cloud-actions .btn{font-size:13px}
.cloud-lines{display:flex;flex-direction:column;margin-top:10px;max-height:300px;overflow:auto}
.cloud-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 10px;border-radius:12px}
.cloud-line:hover{background:var(--grey50)}
.cloud-line.current{background:var(--blue-weak)}
.cloud-line b{display:block;font-size:15px;font-weight:600}
.cloud-line small{color:var(--grey500);font-size:12px}
.cloud-line-actions{display:flex;gap:6px;flex-shrink:0}
#cloudHistoryList h3{margin:14px 0 6px}
#cloudLogout{margin-top:12px}@media(max-width:700px){#cloudOpen{font-size:11px;padding:0 8px}.cloud-revision{align-items:flex-start}.cloud-actions .btn{font-size:12px}}
