
:root{--bg:#f0ede8;--surface:#faf8f5;--surface2:#f0ede8;--border:#e2ddd6;--text:#1a1816;--text2:#6b6560;--text3:#9b9590;--accent:#2a9d8f;--warn:#f4a261;--danger:#e63946;--ok:#2a9d8f;--shadow:0 2px 12px rgba(0,0,0,.06);--shadow2:0 8px 32px rgba(0,0,0,.08);}
*{margin:0;padding:0;box-sizing:border-box;}
body{background:var(--bg);color:var(--text);font-family:"DM Sans",sans-serif;min-height:100vh;}
.topbar{
  background:var(--surface);border-bottom:1px solid var(--border);padding:10px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  position:sticky;top:0;z-index:100;
}
/* Ambient status wave — decorative only; params from /ambient/pulse */
.ambient-wave{
  --ambient-period:12s;
  --ambient-opacity:.45;
  position:relative;
  height:28px;
  overflow:hidden;
  pointer-events:none;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  z-index:90;
}
.ambient-wave-layer{
  position:absolute;
  left:0;top:0;
  width:200%;
  height:100%;
  opacity:var(--ambient-opacity);
  background-repeat:repeat-x;
  background-position:0 100%;
  background-size:600px 28px;
  will-change:transform;
  animation:ambient-wave-drift var(--ambient-period) linear infinite;
}
.ambient-wave-layer-a{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath fill='%232a9d8f' d='M0 18 Q75 6 150 18 T300 18 T450 18 T600 18 V28 H0Z'/%3E%3C/svg%3E");
}
.ambient-wave-layer-b{
  opacity:calc(var(--ambient-opacity) * .72);
  animation-duration:calc(var(--ambient-period) * 1.35);
  animation-direction:reverse;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath fill='%231a1816' d='M0 20 Q75 10 150 20 T300 20 T450 20 T600 20 V28 H0Z'/%3E%3C/svg%3E");
}
@keyframes ambient-wave-drift{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion:reduce){
  .ambient-wave-layer{animation:none;}
}

/* Keep below topbar-right so profile/settings menus always cover the widget strip */
.topbar-left{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;flex:1 1 0;position:relative;z-index:1;}
.topbar-left h1{font-size:16px;font-weight:600;}
.topbar-left p{font-size:10px;color:var(--text3);font-family:"DM Mono",monospace;}
.brand{display:flex;align-items:center;gap:9px;}
.brand-logo{display:block;height:32px;width:auto;max-width:min(194px,42vw);object-fit:contain;}
.brand-mark{flex-shrink:0;}
.brand-name{font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1;color:var(--text);}
.brand-name .tld{color:var(--text3);font-weight:600;}
.brand-links{display:flex;gap:14px;margin-top:4px;}
.brand-links a{font-size:11px;color:var(--text2);text-decoration:none;cursor:pointer;}
.brand-links a:hover{color:var(--text);text-decoration:underline;}
/* Right actions always win — menus must paint above the widget strip (esp. mobile 2-row) */
.topbar-right{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
  flex:1 1 0;flex-shrink:0;min-width:max-content;overflow:visible;position:relative;z-index:5;
}
.lang-toggle{display:inline-flex;align-items:stretch;border:1.5px solid var(--text);border-radius:999px;overflow:hidden;font-size:10px;font-weight:700;flex-shrink:0;background:#fff;height:22px;}
.lang-toggle button{background:transparent;border:none;padding:0 7px;height:100%;cursor:pointer;color:var(--text);font-family:"DM Sans",sans-serif;font-weight:700;min-width:26px;line-height:1;}
.lang-toggle button.active{background:var(--text);color:#fff;}
.tb-ico-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:none;background:transparent;border-radius:8px;cursor:pointer;color:var(--text);flex-shrink:0;}
.tb-ico-btn:hover{background:var(--surface2);}
.tb-ico-btn:disabled{opacity:.7;cursor:default;}
.tb-ico{display:block;width:20px;height:20px;background:currentColor;-webkit-mask:var(--tb-ico) center/contain no-repeat;mask:var(--tb-ico) center/contain no-repeat;}
.tb-ico-svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.tb-ico-btn.is-spinning .tb-ico-svg{animation:tb-refresh-spin .7s linear infinite;}
.tb-profile-btn{border-radius:999px;overflow:hidden;}
.tb-profile-btn:hover{background:var(--surface2);}
.tb-profile-face{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;overflow:hidden;background:transparent;flex-shrink:0;}
.tb-profile-face img{width:100%;height:100%;object-fit:cover;display:block;}
.tb-profile-face .tb-profile-fallback{width:20px;height:20px;}
.tb-profile-face.has-photo{background:var(--surface2);border:1px solid var(--border);}
.tb-profile-face .tb-profile-initial{font-size:11px;font-weight:700;color:var(--surface);background:var(--text);width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;}
.tb-ico-btn.is-spinning .tb-ico{animation:tb-refresh-spin .7s linear infinite;}
@keyframes tb-refresh-spin{to{transform:rotate(360deg);}}
.tb-credit{display:inline-flex;flex-direction:column;align-items:stretch;justify-content:center;gap:3px;min-width:58px;height:30px;padding:3px 8px 4px;border:none;background:transparent;cursor:pointer;flex-shrink:0;}
.tb-credit-val{font-size:12px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;line-height:1;text-align:center;}
.tb-credit-bar{display:block;width:100%;height:3px;border-radius:999px;background:rgba(26,24,22,.14);overflow:hidden;}
.tb-credit-bar-fill{display:block;height:100%;width:0;border-radius:inherit;background:var(--text);transition:width .25s ease;}
.tb-credit.warn .tb-credit-val{color:#9a7200;}
.tb-credit.warn .tb-credit-bar-fill{background:#d4a017;}
.tb-credit.danger .tb-credit-val{color:#e63946;}
.tb-credit.danger .tb-credit-bar-fill{background:#e63946;}
.tb-credit.is-loading .tb-credit-val{opacity:.45;}
.tb-credit.is-error .tb-credit-val{color:#e63946;}
.tb-credit.is-error .tb-credit-bar-fill{background:#e63946;width:100% !important;opacity:.35;}
.tb-sync-text{background:none;border:none;padding:0 4px;min-width:28px;height:30px;cursor:pointer;font-size:13px;font-weight:700;letter-spacing:0;color:var(--text);font-family:"DM Sans",sans-serif;flex-shrink:0;font-variant-numeric:tabular-nums;}
.tb-sync-text:hover{opacity:.7;}
.tb-sync-bal{display:inline-block;}
.tb-store-btn .tb-badge{position:absolute;top:0;right:-1px;min-width:14px;height:14px;padding:0 3px;border-radius:999px;background:#e63946;color:#fff;font-size:9px;font-weight:700;line-height:14px;text-align:center;pointer-events:none;}
.settings-wrap{position:relative;display:inline-flex;}
.settings-menu{right:0;}
.profile-menu.settings-panel,
.settings-panel{width:min(340px,92vw)!important;max-height:min(88vh,720px);overflow-x:hidden;overflow-y:auto;padding:14px 14px 10px;}
.profile-menu.settings-panel.sp-card{border-radius:16px;}
.sp-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:4px 4px 14px;border-bottom:1px solid var(--border);margin-bottom:12px;}
.sp-avatar-wrap{position:relative;width:72px;height:72px;margin-bottom:10px;}
.profile-avatar.sp-avatar,.sp-avatar{width:72px;height:72px;font-size:26px;border-radius:50%;background:#cfe3f5;color:var(--text);}
.sp-cam-btn{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;border:2px solid var(--surface);background:var(--text);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.sp-cam-btn:hover{opacity:.9;}
.sp-id-mail{font-size:13px;font-weight:700;color:var(--text);line-height:1.3;word-break:break-all;}
.sp-id-nick{font-size:12px;color:var(--text3);margin-top:3px;line-height:1.3;}
.sp-link{background:none;border:none;padding:0;margin-top:6px;font-size:11px;color:#2f6fed;cursor:pointer;font-family:"DM Sans",sans-serif;}
.sp-link:hover{text-decoration:underline;}
.ub-shop-identity{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.ub-shop-avatar{
  width:48px;height:48px;border-radius:50%;
  background:#cfe3f5;color:var(--text);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;overflow:hidden;flex-shrink:0;
}
.ub-shop-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.ub-shop-identity .ub-plan-badge{margin:0;}
.sp-block{margin-bottom:12px;}
.sp-label{font-size:12px;font-weight:700;color:var(--text);margin-bottom:6px;}
.sp-sec{padding:10px 0 4px;border-top:1px solid var(--border);}
.sp-sec-title{font-size:13px;font-weight:700;color:var(--text);margin:0 0 6px;letter-spacing:-.01em;}
.sp-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:4px 0;}
.sp-row-sub{min-height:30px;padding:0 0 4px;}
.sp-row-label{font-size:12px;color:var(--text);display:inline-flex;align-items:center;gap:6px;min-width:0;}
.sp-row-hint{font-size:11px;color:var(--text3);}
.sp-row-meta{font-size:11px;color:#2f6fed;flex-shrink:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sp-row-btn{width:100%;background:none;border:none;cursor:pointer;font-family:"DM Sans",sans-serif;text-align:left;border-radius:8px;padding:6px 2px;}
.sp-row-btn:hover{background:var(--surface2);}
.sp-lock{display:inline-block;width:12px;height:14px;border:1.5px solid var(--text);border-radius:3px;position:relative;flex-shrink:0;}
.sp-lock::before{content:"";position:absolute;left:2px;right:2px;top:-5px;height:6px;border:1.5px solid var(--text);border-bottom:none;border-radius:6px 6px 0 0;}
.sp-toggle{position:relative;display:inline-flex;align-items:center;cursor:pointer;flex-shrink:0;}
.sp-toggle input{position:absolute;opacity:0;width:0;height:0;}
.sp-toggle-ui{width:40px;height:24px;border-radius:999px;background:#d5d0c9;position:relative;transition:background .18s;}
.sp-toggle-ui::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .18s;}
.sp-toggle input:checked+.sp-toggle-ui{background:#2f6fed;}
.sp-toggle input:checked+.sp-toggle-ui::after{transform:translateX(16px);}
.sp-select{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:4px 8px;font-size:11px;color:var(--text);font-family:"DM Sans",sans-serif;max-width:110px;}
.sp-expand{padding:6px 0 8px;}
.sp-status{font-size:10px;color:var(--text3);margin:-2px 0 4px;}
.sp-details{border:none;}
.sp-details>summary{list-style:none;}
.sp-details>summary::-webkit-details-marker{display:none;}
.sp-chev{width:0;height:0;border-left:5px solid var(--text3);border-top:4px solid transparent;border-bottom:4px solid transparent;flex-shrink:0;transition:transform .15s;}
.sp-details[open] .sp-chev{transform:rotate(90deg);}
.sp-check{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text2);margin-bottom:4px;}
.sp-hint{font-size:10px;color:var(--text3);line-height:1.45;}
.sp-help-pills{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0 6px;}
.sp-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;border:none;background:var(--surface2);color:var(--text2);font-size:11px;font-weight:600;font-family:"DM Sans",sans-serif;cursor:pointer;text-decoration:none;}
.sp-pill:hover{background:var(--border);color:var(--text);}
a.sp-pill{color:var(--text2);}
/* Help modal master/detail — large ub-shell split */
#mo-help .mo-help-box{
  width:min(960px,80vw) !important;
  max-width:80vw !important;
  height:min(720px,78vh) !important;
  max-height:78vh !important;
  display:flex;flex-direction:column;
}
#mo-help .ub-body{padding:0;flex:1;min-height:0;display:flex;flex-direction:column;}
#mo-help .ub-footer{flex-shrink:0;}
.sp-help-search-bar{
  flex-shrink:0;padding:12px 14px 10px;display:flex;flex-direction:column;gap:10px;
  background:#fff;border-bottom:1px solid rgba(60,60,67,.08);
}
.sp-help-search-wrap{
  display:flex;align-items:center;gap:8px;margin:0;
  background:#f2f2f7;border:1px solid rgba(60,60,67,.1);border-radius:14px;
  padding:0 12px;min-height:42px;
}
.sp-help-search-wrap:focus-within{background:#fff;border-color:rgba(28,28,30,.28);}
.sp-help-search-ico{color:#8e8e93;font-size:16px;line-height:1;flex-shrink:0;}
.sp-help-search-inp{
  flex:1;min-width:0;border:none;background:transparent;outline:none;
  font-family:"DM Sans",sans-serif;font-size:13px;font-weight:500;color:#1c1c1e;
  padding:10px 0;
}
.sp-help-search-inp::placeholder{color:#8e8e93;font-weight:500;}
.sp-help-chips{display:flex;flex-wrap:wrap;gap:6px;}
.sp-help-chip{
  border:1px solid rgba(60,60,67,.12);background:#f2f2f7;color:#3a3a3c;
  border-radius:999px;padding:6px 11px;font-size:11px;font-weight:700;
  font-family:"DM Sans",sans-serif;cursor:pointer;line-height:1.2;
}
.sp-help-chip:hover{background:#e8e8ed;color:#1c1c1e;}
.sp-help-chip.is-active{background:#1c1c1e;border-color:#1c1c1e;color:#fff;}
.sp-help-split{
  display:flex;align-items:stretch;gap:0;margin:0;flex:1;min-height:0;
  border-radius:0;overflow:hidden;background:#f2f2f7;
  border:none;border-top:1px solid rgba(60,60,67,.06);
}
.sp-help-nav-item[hidden],
.sp-help-nav-label[hidden]{display:none !important;}
.sp-help-nav-empty{
  margin:18px 8px;padding:18px 14px;border-radius:14px;background:#fff;
  text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.sp-help-nav-empty p{
  margin:0 0 12px;font-size:13px;font-weight:600;color:#636366;line-height:1.4;
}
.sp-help-empty-cta{
  width:100%;border:none;border-radius:999px;padding:12px 16px;
  background:#1c1c1e;color:#fff;font-size:13px;font-weight:700;
  font-family:"DM Sans",sans-serif;cursor:pointer;
}
.sp-help-empty-cta:hover{background:#000;}
.sp-help-footer{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.sp-help-ask-fixed{
  flex:1;min-width:180px;border:none;border-radius:999px;padding:11px 16px;
  background:#f2f2f7;color:#1c1c1e;font-size:12px;font-weight:700;
  font-family:"DM Sans",sans-serif;cursor:pointer;text-align:center;
  border:1px solid rgba(60,60,67,.1);
}
.sp-help-ask-fixed:hover{background:#e8e8ed;}
.sp-help-nav{
  flex:0 0 240px;max-width:260px;display:flex;flex-direction:column;gap:2px;
  background:#ececf0;padding:10px 8px;overflow-y:auto;min-height:0;
}
.sp-help-nav-label{
  font-family:"DM Sans",sans-serif;font-size:10px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:#8e8e93;padding:12px 12px 4px;
}
.sp-help-nav-item{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;border:none;background:transparent;cursor:pointer;
  font-family:"DM Sans",sans-serif;font-size:13px;font-weight:600;color:#3a3a3c;
  text-align:left;padding:11px 12px;border-radius:12px;line-height:1.25;
}
.sp-help-nav-item:hover{background:rgba(255,255,255,.55);color:#1c1c1e;}
.sp-help-nav-item.is-active{background:#fff;color:#1c1c1e;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.sp-help-arrow{color:#8e8e93;font-size:14px;font-weight:500;flex-shrink:0;}
.sp-help-nav-item.is-active .sp-help-arrow{color:#1c1c1e;}
.sp-help-detail{
  flex:1;min-width:0;min-height:0;background:#f7f7fa;padding:14px 14px 14px 12px;
  display:flex;flex-direction:column;overflow:hidden;
}
.sp-help-panel{display:none;flex:1;min-height:0;overflow:hidden;}
.sp-help-panel.is-active{display:flex;flex-direction:column;}
.sp-help-card{
  background:#fff;border-radius:16px;padding:16px 16px 14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 20px rgba(0,0,0,.05);
  display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;
}
.sp-help-card.sp-help-doc{overflow:hidden;}
.sp-help-card-title{margin:0;font-size:17px;font-weight:700;color:#1c1c1e;letter-spacing:-.01em;flex-shrink:0;}
.sp-help-card-desc{margin:0;font-size:13px;line-height:1.55;color:#8e8e93;flex:1;}
.sp-help-body{
  flex:1;min-height:0;overflow-y:auto;padding-right:4px;
  font-size:13px;line-height:1.55;color:#3a3a3c;
}
.sp-help-body p{margin:0 0 10px;color:#636366;}
.sp-help-body ul,.sp-help-body ol{margin:0 0 10px;padding-left:1.15em;}
.sp-help-body li{margin:0 0 7px;}
.sp-help-body li:last-child{margin-bottom:0;}
.sp-help-body .sp-help-subhead{margin:16px 0 8px;font-size:13px;font-weight:700;color:#1c1c1e;}
.sp-help-body .sp-help-subhead:first-child{margin-top:0;}
.sp-help-body code{
  font-family:"DM Mono",ui-monospace,monospace;font-size:11px;font-weight:600;
  background:#f2f2f7;border-radius:6px;padding:1px 6px;color:#1c1c1e;word-break:break-all;
}
.sp-help-tip{
  margin:8px 0 0 !important;padding:10px 12px;border-radius:12px;
  background:#f2f2f7;color:#636366 !important;font-size:12px;
}
.sp-help-subhead{
  margin:14px 0 6px;font-size:13px;font-weight:700;color:#1c1c1e;
}
/* Install panel */
.sp-help-panel[data-help-panel="install"] .sp-help-card.sp-help-install{
  justify-content:flex-start;gap:12px;
}
.sp-help-troubleshoot{gap:8px;}
.sp-help-trouble-lead{
  margin:0;font-size:12px;line-height:1.45;color:#8e8e93;
}
.sp-help-faq{display:flex;flex-direction:column;gap:6px;}
.sp-help-faq-item{
  border:1px solid rgba(60,60,67,.1);border-radius:12px;background:#fafafa;
  padding:0;overflow:hidden;
}
.sp-help-faq-item>summary{
  list-style:none;cursor:pointer;user-select:none;
  font-family:"DM Sans",sans-serif;font-size:12px;font-weight:700;color:#1c1c1e;
  line-height:1.4;padding:11px 12px 11px 34px;position:relative;
}
.sp-help-faq-item>summary::-webkit-details-marker{display:none;}
.sp-help-faq-item>summary::before{
  content:"";position:absolute;left:14px;top:50%;width:7px;height:7px;
  border-right:2px solid #8e8e93;border-bottom:2px solid #8e8e93;
  transform:translateY(-60%) rotate(-45deg);transition:transform .15s ease;
}
.sp-help-faq-item[open]>summary::before{transform:translateY(-40%) rotate(45deg);}
.sp-help-faq-item[open]{background:#fff;}
.sp-help-faq-item[open]>summary{border-bottom:1px solid rgba(60,60,67,.08);}
.sp-help-faq-item>p{
  margin:0;padding:10px 12px 12px;font-size:12px;line-height:1.55;color:#636366;
}
.sp-help-faq-item>p+p{padding-top:0;}
.sp-help-faq-note{color:#8e8e93 !important;font-size:11px !important;}
.sp-help-install .sp-help-lead{
  margin:0 0 12px !important;font-size:13px;line-height:1.45;color:#636366 !important;
}
.sp-help-install-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch;
}
.sp-help-install-col{
  background:#f7f7fa;border-radius:14px;padding:12px 12px 10px;
  border:1px solid rgba(60,60,67,.06);
}
.sp-help-install .sp-help-subhead{
  margin:0 0 8px;font-size:12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.sp-help-compact-ol{
  margin:0 !important;padding-left:1.15em;font-size:12px;line-height:1.4;color:#3a3a3c;
}
.sp-help-compact-ol li{margin:0 0 5px !important;}
.sp-help-compact-ol li:last-child{margin-bottom:0 !important;}
.sp-help-install-update{
  background:linear-gradient(180deg,#fff8e8 0%,#fff3d6 100%);
  border-color:rgba(224,168,0,.35);
}
.sp-help-install-update .sp-help-subhead{color:#7a5a00;}
.sp-help-install-update .sp-help-compact-ol,
.sp-help-install-update .sp-help-compact-ol li{color:#5c4500;}
.sp-help-pill-mini{
  display:inline-block;font-size:9px;font-weight:700;letter-spacing:.03em;
  background:#e0a800;color:#fff;padding:2px 7px;border-radius:999px;line-height:1.3;
}
.sp-help-note{
  margin:8px 0 0 !important;font-size:11px;line-height:1.4;color:#8a6a10 !important;
}
@media (max-width:720px){
  .sp-help-install-grid{grid-template-columns:1fr;}
}
.sp-help-cta{
  display:inline-flex;align-items:center;justify-content:center;align-self:stretch;
  margin-top:4px;border:none;border-radius:999px;padding:12px 18px;flex-shrink:0;
  background:#1c1c1e;color:#fff;font-size:13px;font-weight:700;
  font-family:"DM Sans",sans-serif;cursor:pointer;text-decoration:none;line-height:1.2;
  text-align:center;
}
.sp-help-cta:hover{background:#000;color:#fff;}
.sp-help-label{
  display:block;margin:12px 0 5px;font-size:12px;font-weight:700;color:#1c1c1e;
}
.sp-help-inp{
  width:100%;box-sizing:border-box;border:1px solid rgba(60,60,67,.14);
  border-radius:12px;padding:11px 12px;font-size:13px;font-family:"DM Sans",sans-serif;
  color:#1c1c1e;background:#f7f7fa;outline:none;
}
.sp-help-inp:focus{border-color:rgba(28,28,30,.35);background:#fff;}
.sp-help-textarea{resize:vertical;min-height:110px;line-height:1.5;}
.sp-help-support-msg{margin:8px 0 0;font-size:12px;min-height:1.2em;}
.sp-help-support-history{margin:0 0 4px;}
.sp-help-history-empty{
  font-size:12px;color:#8e8e93;padding:10px 12px;background:#f2f2f7;border-radius:12px;
}
.sp-help-history-item{
  border:1px solid rgba(60,60,67,.1);border-radius:12px;padding:10px 12px;margin-bottom:8px;
  background:#fafafa;
}
.sp-help-history-head{
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start;
}
.sp-help-history-head strong{font-size:12px;color:#1c1c1e;}
.sp-help-history-head span{font-size:10px;color:#8e8e93;white-space:nowrap;}
.sp-help-history-msg{
  font-size:12px;color:#636366;margin-top:6px;white-space:pre-wrap;line-height:1.5;
}
.sp-help-history-reply{
  margin-top:8px;padding:8px 10px;background:#f2f2f7;border-radius:10px;
  font-size:12px;color:#3a3a3c;white-space:pre-wrap;line-height:1.5;
}
@media (max-width:720px){
  #mo-help .mo-help-box{width:min(96vw,96vw) !important;max-width:96vw !important;height:min(86vh,86vh) !important;}
  .sp-help-split{flex-direction:column;}
  .sp-help-nav{
    flex:0 0 auto;max-width:none;flex-direction:row;flex-wrap:nowrap;
    overflow-x:auto;overflow-y:hidden;padding:8px;gap:4px;align-items:center;
  }
  .sp-help-nav-label{display:none;}
  .sp-help-nav-item{white-space:nowrap;padding:10px 12px;flex:0 0 auto;}
  .sp-help-detail{padding:12px;min-height:240px;}
}
.sp-logout{color:var(--danger)!important;font-weight:600;margin-top:2px;}
.acct-referral-url{margin-bottom:0;}
.tb-menu-link{background:none;border:none;padding:0;font-size:11px;color:var(--accent);cursor:pointer;font-family:"DM Sans",sans-serif;text-align:left;}
.tb-menu-link:hover{text-decoration:underline;}
a.profile-menu-item{display:block;width:100%;text-align:left;text-decoration:none;box-sizing:border-box;}
.clock{font-family:"DM Mono",monospace;font-size:13px;color:var(--text2);padding:5px 12px;border-radius:8px;border:1px solid var(--border);}
.timer-box{display:flex;align-items:center;gap:3px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:3px 8px;}
.timer-box select{border:none;background:transparent;font-family:"DM Mono",monospace;font-size:10px;color:var(--text3);cursor:pointer;outline:none;}
.timer-box span{font-family:"DM Mono",monospace;font-size:12px;color:var(--text2);min-width:36px;text-align:center;}
.timer-box button{background:none;border:none;cursor:pointer;font-size:11px;padding:1px 3px;color:var(--text2);}
.top-btn{background:#1a1a1a;color:#fff;border:none;padding:6px 14px;border-radius:8px;cursor:pointer;font-size:11px;font-family:"DM Sans",sans-serif;font-weight:600;transition:all .2s;text-decoration:none;display:inline-flex;align-items:center;}
a.top-btn{color:#fff;}
.top-btn:hover{transform:translateY(-1px);}
.top-btn.sec{background:var(--surface);color:var(--text);border:1px solid var(--border);}
.top-btn.sec:hover{background:var(--surface2);}
/* Logo always viewport-centered in the topbar */
.topbar-center{
  position:absolute;left:50%;transform:translateX(-50%);
  display:flex;justify-content:center;align-items:center;flex-shrink:0;z-index:1;
}
.ext-bar{display:flex;align-items:center;gap:1px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:3px;position:relative;flex-shrink:0;}
.ext-item{position:relative;display:flex;align-items:center;flex-shrink:0;}
.ext-item.ext-dragging{opacity:.45;}
.ext-item[draggable="true"]{cursor:grab;}
.ext-item[draggable="true"]:active{cursor:grabbing;}
.ext-rm{position:absolute;top:-4px;right:-4px;width:14px;height:14px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text3);font-size:8px;line-height:1;padding:0;cursor:pointer;display:none;align-items:center;justify-content:center;z-index:2;}
.ext-item:hover .ext-rm{display:flex;}
.ext-rm:hover{color:var(--danger);border-color:var(--danger);}
.ext-add-pop{position:fixed;z-index:220;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow2);padding:6px;min-width:200px;max-width:340px;overflow:visible;display:grid;grid-template-columns:1fr 1fr;gap:2px;}
.ext-add-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 9px;border:none;background:none;border-radius:7px;cursor:pointer;font-size:11px;color:var(--text2);text-align:left;}
.ext-add-item svg{width:15px;height:15px;flex-shrink:0;}
.ext-add-item:hover{background:var(--surface2);color:var(--text);}
.ext-add-empty{font-size:11px;color:var(--text3);padding:10px 8px;text-align:center;grid-column:1/-1;line-height:1.45;}
.ext-btn{position:relative;display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;width:30px;height:30px;border-radius:7px;color:var(--text2);padding:0;}
.ext-btn svg{width:16px;height:16px;}
.ext-ico{display:inline-block;width:16px;height:16px;flex-shrink:0;background:currentColor;-webkit-mask:var(--ext-ico) center/contain no-repeat;mask:var(--ext-ico) center/contain no-repeat;}
.ext-ico-img{display:block;width:16px;height:16px;flex-shrink:0;object-fit:contain;}
.ext-add-item .ext-ico,.ext-add-item .ext-ico-img{width:15px;height:15px;}
.ext-btn:hover{background:var(--surface);color:var(--text);}
.ext-btn.on{background:var(--surface);color:var(--accent);}
.ext-add{background:none;border:none;color:var(--text3);cursor:pointer;width:26px;height:26px;border-radius:7px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1;}
.ext-add .ext-ico{width:18px;height:18px;}
.ext-add:hover{color:var(--text);background:var(--surface2);}
.ext-tip{position:absolute;top:36px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--surface);font-size:10px;padding:3px 7px;border-radius:5px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:250;}
.ext-btn:hover .ext-tip{opacity:1;}
.ext-panel{display:none;position:fixed;top:54px;z-index:200;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow2);padding:14px;}
.ext-panel h4{font-size:12px;color:var(--text3);margin-bottom:9px;font-weight:600;}
.ext-clock{font-family:"DM Mono",monospace;font-size:30px;color:var(--text);text-align:center;padding:4px 6px;}
.ext-memo{width:240px;height:120px;border:1px solid var(--border);border-radius:8px;padding:8px;font-size:12px;font-family:"DM Sans",sans-serif;resize:vertical;outline:none;background:var(--bg);color:var(--text);}
.ext-sched-in{width:220px;border:1px solid var(--border);border-radius:7px;padding:6px 8px;font-size:12px;outline:none;background:var(--bg);color:var(--text);margin-bottom:8px;}
.ext-sched-li{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text2);padding:4px 0;border-bottom:1px solid var(--border);}
.ext-sched-li button{margin-left:auto;background:none;border:none;color:var(--text3);cursor:pointer;}
.ext-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text2);padding:5px 0;border-bottom:1px solid var(--border);}
.ext-row:last-child{border-bottom:none;}
.ext-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:6px;}
.ext-calc-disp{width:200px;background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:8px;font-family:"DM Mono",monospace;font-size:16px;text-align:right;margin-bottom:6px;color:var(--text);}
.ext-calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;width:200px;}
.ext-calc-grid button{padding:8px 0;border:1px solid var(--border);background:var(--bg);border-radius:6px;font-size:12px;cursor:pointer;color:var(--text);}
.ext-calc-grid button:hover{background:var(--surface2);}
.ext-kbd{font-family:"DM Mono",monospace;font-size:11px;background:var(--surface2);border:1px solid var(--border);border-radius:5px;padding:1px 6px;}
.ext-todo-li{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text2);padding:5px 0;border-bottom:1px solid var(--border);}
.ext-todo-li input[type=checkbox]{accent-color:var(--accent);cursor:pointer;}
.ext-todo-li.done span{text-decoration:line-through;color:var(--text3);}
.ext-todo-li button{margin-left:auto;background:none;border:none;color:var(--text3);cursor:pointer;}
.ext-pomo-phase{font-size:10px;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;text-align:center;}
.ext-pomo-disp{font-family:"DM Mono",monospace;font-size:28px;color:var(--text);text-align:center;padding:2px 0 8px;}
.ext-pomo-btns{display:flex;gap:4px;justify-content:center;}
.ext-pomo-btns button{padding:5px 10px;border:1px solid var(--border);background:var(--bg);border-radius:6px;font-size:11px;cursor:pointer;color:var(--text2);}
.ext-pomo-btns button:hover{background:var(--surface2);}
.ext-mono{font-family:"DM Mono",monospace;font-size:12px;color:var(--text);}
.ext-mini-btn{padding:4px 8px;border:1px solid var(--border);background:var(--bg);border-radius:6px;font-size:10px;cursor:pointer;color:var(--text2);margin-top:6px;}
.ext-mini-btn:hover{background:var(--surface2);}
.ext-color-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.ext-color-swatch{width:36px;height:36px;border-radius:8px;border:1px solid var(--border);cursor:pointer;padding:0;overflow:hidden;}
.ext-color-swatch input{width:48px;height:48px;border:none;padding:0;margin:-6px;cursor:pointer;}
.ext-color-val{font-family:"DM Mono",monospace;font-size:11px;color:var(--text2);line-height:1.5;}
.ext-unit-row{display:flex;gap:6px;align-items:center;margin-bottom:6px;}
.ext-unit-row select,.ext-unit-row input{flex:1;border:1px solid var(--border);border-radius:7px;padding:5px 7px;font-size:11px;background:var(--bg);color:var(--text);outline:none;}
.ext-unit-eq{font-size:11px;color:var(--text3);text-align:center;margin:4px 0;}
.ext-qr-in{width:220px;border:1px solid var(--border);border-radius:7px;padding:6px 8px;font-size:11px;outline:none;background:var(--bg);color:var(--text);resize:vertical;min-height:52px;margin-bottom:8px;}
.ext-qr-img{display:block;margin:0 auto;border:1px solid var(--border);border-radius:8px;background:#fff;padding:6px;}
.ext-pw-out{width:220px;border:1px solid var(--border);border-radius:7px;padding:7px 8px;font-family:"DM Mono",monospace;font-size:11px;background:var(--bg);color:var(--text);word-break:break-all;margin:8px 0;}
.ext-pw-opts{display:flex;flex-wrap:wrap;gap:8px;font-size:10px;color:var(--text2);margin:6px 0;}
.ext-pw-opts label{display:flex;align-items:center;gap:3px;cursor:pointer;}
.ext-wclock-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text2);padding:5px 0;border-bottom:1px solid var(--border);}
.ext-wclock-row span:last-child{font-family:"DM Mono",monospace;color:var(--text);}
.ext-search-row{display:flex;gap:4px;margin-bottom:6px;}
.ext-search-engine{padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);font-size:10px;cursor:pointer;color:var(--text2);}
.ext-search-engine.on{background:var(--accent);color:#fff;border-color:var(--accent);}
.ext-rate-val{font-family:"DM Mono",monospace;font-size:13px;color:var(--text);margin:4px 0;}
.ext-rate-lbl{font-size:10px;color:var(--text3);margin-bottom:2px;}
.tailscale-link{font-size:10px;color:var(--text3);text-decoration:none;display:flex;align-items:center;gap:3px;padding:5px 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface2);}
.main{padding:16px 24px;max-width:1600px;margin:0 auto;}
.sec-lbl{font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--text3);margin-bottom:10px;text-transform:uppercase;}
.ov-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.ov-hdr-btns{display:flex;align-items:center;gap:6px;}
.ov-grid{display:flex;gap:5px;margin-bottom:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;}
.ov-grid .ov-card{flex:0 0 auto;min-width:84px;}
.ov-card{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:7px 10px;}
.ov-card .lbl{font-size:8px;font-weight:600;letter-spacing:.6px;color:var(--text3);text-transform:uppercase;margin-bottom:2px;white-space:nowrap;}
.ov-card .num{font-size:14px;font-weight:600;color:var(--text);font-family:"DM Mono",monospace;white-space:nowrap;}
.ov-card .num.acc{color:var(--accent);}
.avg-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px;}
.avg-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 16px;}
.avg-card .al{font-size:9px;color:var(--text3);font-weight:600;letter-spacing:.8px;text-transform:uppercase;margin-bottom:5px;}
.avg-card .av{font-size:12px;font-weight:600;color:var(--text);margin-bottom:5px;font-family:"DM Mono",monospace;}
.avg-bar{height:3px;background:var(--surface2);border-radius:2px;overflow:hidden;}
.avg-bar-fill{height:100%;border-radius:2px;transition:width .6s;}
.st-bar{display:flex;align-items:center;gap:8px;margin-bottom:10px;}
.st-dot{width:6px;height:6px;border-radius:50%;background:var(--ok);animation:pulse 2s infinite;}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.nd-cnt{font-size:10px;color:var(--text3);background:var(--surface2);padding:2px 8px;border-radius:20px;border:1px solid var(--border);margin-left:auto;}
/* PC / mobile momentum carousels */
.nd-pc-section{display:flex;flex-direction:column;gap:10px;margin-bottom:4px;}
.nd-pc-carousel-row{display:flex;align-items:stretch;gap:8px;min-width:0;}
.nd-grid,
.nd-pc-carousel{
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden; /* do not pair with overflow-y:visible — browsers force overflow-x:auto */
  padding-bottom:6px;
  cursor:grab;
  scrollbar-width:none;
  -ms-overflow-style:none;
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
}
.nd-grid::-webkit-scrollbar,
.nd-pc-carousel::-webkit-scrollbar,
.nd-mobile-carousel::-webkit-scrollbar{display:none;}
.nd-grid.is-dragging,
.nd-pc-carousel.is-dragging,
.nd-mobile-carousel.is-dragging{cursor:grabbing;}
.nd-pc-track,
.nd-mobile-track{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:8px;
  width:max-content;
  min-height:1px;
  will-change:transform;
  backface-visibility:hidden;
}
/* Add cards live inside the track (next to last card) and scroll with it */
.nd-pc-carousel-actions,
.nd-mobile-carousel-actions{display:none !important;}
.nd-pc-track > .nd-add-card,
.nd-pc-track > .nd-add-mobile-slot,
.nd-mobile-track > .nd-add-mobile-slot{
  flex:0 0 168px;
  width:168px;
  min-width:168px;
  max-width:168px;
  min-height:180px;
  align-self:stretch;
  box-sizing:border-box;
}
.nd-pc-track > .nd-add-card{
  padding:10px 11px;
  height:auto;
}
.nd-pc-track > .nd-add-mobile-slot,
.nd-mobile-track > .nd-add-mobile-slot{
  overflow:visible;
}
.nd-pc-track > .nd-add-mobile-slot .nd-add-mobile-face,
.nd-mobile-track > .nd-add-mobile-slot .nd-add-mobile-face{
  width:100%;
  height:100%;
  min-height:180px;
  transform:none !important;
  box-sizing:border-box;
}
.nd-mobile-carousel-row{
  display:flex;
  align-items:stretch;
  gap:8px;
  min-width:0;
}
.nd-card{
  background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 11px;
  transition:box-shadow .2s;width:auto;min-width:0;max-width:100%;box-sizing:border-box;
  position:relative;
}
.nd-card.nd-dragging{opacity:.5;cursor:grabbing;}
.nd-card.nd-drop-before{box-shadow:inset 3px 0 0 var(--accent);}
.nd-card.nd-drop-after{box-shadow:inset -3px 0 0 var(--accent);}
.nd-mobile-card-slot.nd-dragging{opacity:.5;}
.nd-mobile-card-slot.nd-drop-before{box-shadow:inset 3px 0 0 var(--accent);}
.nd-mobile-card-slot.nd-drop-after{box-shadow:inset -3px 0 0 var(--accent);}
.nd-card[draggable="true"]{cursor:grab;}
.nd-card[draggable="true"]:active{cursor:grabbing;}
.nd-card.nd-loading-state{width:100%;}
.nd-card.nd-first-register{
  flex:0 0 auto;
  min-width:min(360px,100%);
  width:min(360px,100%);
  max-width:100%;
  min-height:200px;
  border:1.5px dashed var(--border);
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 20px;
  box-shadow:none;
}
.nd-card.nd-first-register:hover{box-shadow:none;}
.nd-first-register-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  max-width:360px;
}
.nd-first-register-plus{
  width:52px;
  height:52px;
  border-radius:50%;
  border:1.5px dashed var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:500;
  color:var(--text3);
  line-height:1;
  margin-bottom:2px;
}
.nd-first-register-title{
  font-size:16px;
  font-weight:700;
  color:var(--text);
  letter-spacing:-0.02em;
}
.nd-first-register-desc{
  margin:0;
  font-size:12px;
  line-height:1.55;
  color:var(--text2);
}
.nd-first-register-btn{
  margin-top:6px;
  min-width:140px;
  padding:10px 18px;
  font-size:13px;
}
.nd-card:hover{box-shadow:var(--shadow2);}
.nd-card.offline{opacity:.72;border-color:#e63946;border-style:dashed;}
.nd-mobile-card.offline .nd-status-dot.off{background:#e63946;box-shadow:0 0 0 2px rgba(230,57,70,.18);}
.nd-pc-unit.has-offline-phones .nd-mobile-count,
.nd-pc-unit.has-offline-phones .nd-mobile-expand-btn{color:#e63946;}
.nd-add-card,.nd-add-mobile-slot{flex-shrink:0;}
.nd-card.disk-warn{border-color:var(--warn);}
.nd-card.control-node{border-color:#94a3b8;background:linear-gradient(180deg,var(--surface) 0%,#f8fafc 100%);}
.nd-control-badge{display:block;font-size:8px;font-weight:600;line-height:1.3;color:#475569;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:6px;padding:4px 6px;margin-bottom:6px;text-align:center;}
.nd-ext-banner{display:none;font-size:10px;font-weight:600;line-height:1.35;color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:6px;padding:6px 8px;margin-bottom:6px;text-align:left;}
.nd-ext-banner.is-visible{display:block;}
.nd-ext-banner .nd-ext-profiles{display:block;margin-top:4px;font-size:9px;font-weight:500;color:#c2410c;opacity:.95;}
.nd-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;gap:4px;min-height:22px;}
.nd-drag-handle{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:18px;margin:-1px 0 0 -2px;padding:0;
  font-size:11px;line-height:1;letter-spacing:-1px;color:var(--text3);
  cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none;
  border-radius:3px;opacity:.55;
}
.nd-drag-handle:hover{opacity:1;color:var(--text2);background:var(--surface2);}
.nd-drag-handle:active{cursor:grabbing;opacity:1;}
.nd-card.nd-dragging .nd-drag-handle,
.nd-mobile-card-slot.nd-dragging .nd-drag-handle{cursor:grabbing;}
.nd-name{font-size:12px;font-weight:600;font-family:"DM Mono",monospace;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:text;border-radius:4px;padding:1px 2px;margin:-1px 0;}
.nd-name:hover{background:var(--surface2);}
.nd-name-input{font-size:12px;font-weight:600;font-family:"DM Mono",monospace;width:100%;min-width:0;padding:1px 4px;border:1px solid var(--accent);border-radius:4px;background:var(--bg);color:var(--text);outline:none;box-sizing:border-box;}
.nd-actions{display:flex;align-items:center;gap:5px;flex-shrink:0;margin-left:auto;}
.nd-status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;display:inline-block;box-sizing:border-box;}
.nd-status-dot.on{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.2);}
.nd-status-dot.off{background:#e63946;box-shadow:0 0 0 2px rgba(230,57,70,.18);}
button.nd-status-dot.delete{background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,.2);border:none;padding:0;cursor:pointer;transition:background .15s,box-shadow .15s;}
button.nd-status-dot.delete:hover{background:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.35);}
/* PC 카드 상단 액션 점 버튼 (기존 상태점과 동일 8px · gap 5px) */
button.nd-action-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
  display:inline-block;box-sizing:border-box;
  border:none;padding:0;cursor:pointer;
  transition:background .15s,box-shadow .15s,opacity .15s;
}
button.nd-action-dot.red{background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,.2);}
button.nd-action-dot.red:hover{background:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.35);}
button.nd-action-dot.orange{background:#f97316;box-shadow:0 0 0 2px rgba(249,115,22,.2);}
button.nd-action-dot.orange:hover{background:#ea580c;box-shadow:0 0 0 2px rgba(234,88,12,.35);}
button.nd-action-dot.yellow{background:#eab308;box-shadow:0 0 0 2px rgba(234,179,8,.25);}
button.nd-action-dot.yellow:hover:not(:disabled){background:#ca8a04;box-shadow:0 0 0 2px rgba(202,138,4,.35);}
button.nd-action-dot.yellow.mirror-busy{background:#facc15;box-shadow:0 0 0 2px rgba(250,204,21,.45);}
button.nd-action-dot.yellow.mirror-off,
button.nd-action-dot.yellow:disabled{opacity:.45;cursor:not-allowed;}
button.nd-action-dot.green{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.2);}
button.nd-action-dot.green:hover{background:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.35);}
.nd-screen-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
}
.nd-mirror-dot{
  position:absolute;
  top:-2px;
  right:-3px;
  width:7px;
  height:7px;
  border-radius:50%;
  box-sizing:border-box;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.85);
}
/* 미러링 가능(대기) = 진한 노랑 */
.nd-mirror-dot.ready{background:#ca8a04;box-shadow:0 0 0 1px rgba(202,138,4,.35);}
/* 미러링 사용중 = 연한 노랑 */
.nd-mirror-dot.busy{background:#fde68a;box-shadow:0 0 0 1px rgba(253,230,138,.55);}
/* 미러링 불가/비활성 = 아주 연한 노랑·회색빛 */
.nd-mirror-dot.off{background:#fef9c3;box-shadow:0 0 0 1px rgba(254,249,195,.4);opacity:.85;}
.nd-screen-btn{
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text2);
  border-radius:6px;
  padding:1px 5px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  line-height:1.2;
}
.nd-screen-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent);}
.nd-settings-btn{
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text2);
  border-radius:8px;
  padding:2px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  line-height:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;height:26px;
  box-sizing:border-box;
}
.nd-settings-btn:hover{background:#e8e8ed;border-color:#d4d4d8;color:var(--text);}
.nd-settings-btn .nd-settings-ico{display:block;pointer-events:none;}
.nd-settings-summary{
  font-size:10px;
  color:var(--text3);
  padding:2px 2px 6px;
  line-height:1.35;
}
.nd-settings-summary.is-warn{
  color:#b45309;
  font-weight:600;
}
.cs-danger-section{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--border);
}
.cs-danger-btn{
  width:100%;
  border:1px solid rgba(230,57,70,.35);
  background:#fff5f5;
  color:#c62828;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
}
.cs-danger-btn:hover{background:#fee2e2;border-color:#e63946;}
/* PC card settings menu — mockup: icon+label rows only */
.nd-card.is-pc-menu-open{
  overflow:hidden;
  z-index:6;
}
.nd-pc-menu{
  position:absolute;
  top:0;
  right:4px;
  left:auto;
  bottom:auto;
  width:168px;
  max-width:calc(100% - 8px);
  height:auto;
  z-index:30;
  display:flex;
  flex-direction:column;
  padding:4px 0;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  border-radius:16px;
  box-shadow:0 12px 32px rgba(15,23,42,.14);
  overflow:hidden;
  box-sizing:border-box;
}
.nd-pc-menu[hidden]{display:none !important;}
.nd-pc-menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  height:44px;
  min-height:44px;
  max-height:44px;
  padding:0 12px;
  border:none;
  border-radius:0;
  background:transparent;
  color:#111;
  cursor:pointer;
  font:inherit;
  font-size:14px;
  font-weight:400;
  line-height:1.2;
  text-align:left;
  box-sizing:border-box;
}
.nd-pc-menu-item:hover{background:rgba(15,23,42,.04);}
.nd-pc-menu-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex-shrink:0;
  color:#8a8a8e;
}
.nd-pc-menu-svg{display:block;}
.nd-pc-menu-lbl{
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#111;
  font-size:14px;
  font-weight:400;
}
.nd-pc-menu-status{
  flex-shrink:0;
  margin-left:4px;
  font-size:11px;
  font-weight:400;
  color:#8a8a8e;
  white-space:nowrap;
}
.nd-pc-menu-divider{
  height:1px;
  margin:4px 10px;
  background:rgba(15,23,42,.08);
  flex-shrink:0;
  border:none;
}
.nd-pc-menu-item.is-danger,
.nd-pc-menu-item.is-danger .nd-pc-menu-lbl,
.nd-pc-menu-item.is-danger .nd-pc-menu-ico{
  color:#e63946;
}
.nd-pc-menu-item.is-danger:hover{background:rgba(230,57,70,.06);}
#mo-pc-remove .mo-box{max-width:400px;}
#mo-pc-remove .pc-remove-warn{
  font-size:12px;line-height:1.5;color:var(--text2);margin:0 0 12px;
}
#mo-pc-remove .pc-remove-dl{
  width:100%;margin-bottom:12px;
}
#mo-pc-remove .btn-danger-soft{
  background:#fff5f5;color:#c62828;border:1px solid rgba(230,57,70,.35);
}
#mo-pc-remove .btn-danger-soft:hover{background:#fee2e2;}

/* Account deletion — irreversible, so the copy carries the weight, not the chrome */
.sp-row-danger .sp-row-label,
.sp-row-danger .sp-row-meta{color:#c62828;}
.sp-row-danger:hover{background:rgba(230,57,70,.06);}
#mo-account-delete .mo-box{max-width:460px;}
#mo-account-delete .pc-remove-warn{
  font-size:12px;line-height:1.55;color:#c62828;margin:0 0 14px;
  background:#fff5f5;border:1px solid rgba(230,57,70,.25);border-radius:10px;padding:10px 12px;
}
#mo-account-delete .ad-sec{
  border-top:1px solid var(--border);padding:12px 0 2px;
}
#mo-account-delete .ad-sec-title{
  font-size:12px;font-weight:700;color:var(--text);margin-bottom:8px;
}
#mo-account-delete .ad-list{
  list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;
}
#mo-account-delete .ad-list li{
  font-size:12px;color:var(--text2);line-height:1.5;
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
}
#mo-account-delete .ad-list li b{color:var(--text);font-weight:600;}
#mo-account-delete .ad-credit-total{
  font-size:14px;font-weight:700;color:#c62828;margin-bottom:8px;
}
#mo-account-delete .ad-note{
  font-size:11px;line-height:1.55;color:var(--text2);
}
#mo-account-delete .ad-note-warn{
  margin-top:8px;color:#c45c26;background:#fff8f1;border-radius:8px;padding:8px 10px;
}
#mo-account-delete .ad-pc-list{
  display:flex;flex-direction:column;gap:6px;margin-top:8px;
}
#mo-account-delete .ad-pc-row{
  display:flex;align-items:center;gap:8px;justify-content:space-between;
  font-size:12px;color:var(--text2);
}
#mo-account-delete .ad-pc-dl{
  font-size:11px;padding:4px 9px;white-space:nowrap;
}
#mo-account-delete .ad-check{
  display:flex;align-items:flex-start;gap:8px;margin-top:12px;
  font-size:12px;line-height:1.5;color:var(--text);
}
#mo-account-delete .ad-check input{margin-top:2px;flex:0 0 auto;}
#mo-account-delete .fl{margin-top:12px;}
#mo-account-delete .btn-danger-soft{
  background:#fff5f5;color:#c62828;border:1px solid rgba(230,57,70,.35);
}
#mo-account-delete .btn-danger-soft:hover{background:#fee2e2;}
#mo-account-delete .btn-danger-soft:disabled{
  opacity:.5;cursor:not-allowed;background:#fff5f5;
}
/* Mobile/PC card settings — soft / neumorphic-lite */
.cs-uninstall-section{margin-top:4px;padding-top:10px;border-top:1px solid var(--border);}
.cs-uninstall-link{
  display:inline-block;font-size:12px;color:var(--text2);background:none;border:none;padding:0;
  cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:2px;
}
.cs-uninstall-link:hover{color:#c45c26;}
.cs-uninstall-hint{font-size:10px;color:var(--text3);line-height:1.45;margin:6px 0 0;}
#card-settings-body.cs-card-settings{
  gap:16px;
  padding:2px 0;
}
.cs-section-title{
  font-size:11px;
  font-weight:600;
  color:var(--text3);
  margin-bottom:10px;
  letter-spacing:.02em;
}
.cs-soft-panel{
  background:var(--surface2);
  border-radius:18px;
  padding:14px;
  box-shadow:
    inset 2px 2px 5px rgba(163,155,145,.28),
    inset -2px -2px 5px rgba(255,255,255,.75);
}
.cs-seg{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:5px;
  border-radius:999px;
  background:var(--surface2);
  box-shadow:
    inset 2px 2px 5px rgba(163,155,145,.30),
    inset -2px -2px 5px rgba(255,255,255,.80);
}
.cs-seg-opt{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:7px 8px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:var(--text2);
  cursor:pointer;
  font:inherit;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  transition:background .15s,color .15s,box-shadow .15s,transform .12s;
}
.cs-seg-opt:hover{color:var(--text);}
.cs-seg-opt.active{
  background:var(--surface);
  color:#1f6feb;
  box-shadow:
    3px 3px 8px rgba(163,155,145,.35),
    -2px -2px 6px rgba(255,255,255,.9);
}
.cs-net-hint{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:14px;
  font-size:11px;
  line-height:1.45;
  color:var(--text2);
  background:var(--surface);
  box-shadow:
    3px 3px 8px rgba(163,155,145,.22),
    -2px -2px 6px rgba(255,255,255,.85);
}
.cs-net-hint[hidden]{display:none!important;}
.cs-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  background:var(--surface2);
  box-shadow:
    inset 2px 2px 5px rgba(163,155,145,.28),
    inset -2px -2px 5px rgba(255,255,255,.75);
  cursor:pointer;
  user-select:none;
}
.cs-toggle-block .cs-toggle-row{
  border-radius:18px 18px 0 0;
  box-shadow:
    inset 2px 2px 5px rgba(163,155,145,.28),
    inset -2px -2px 5px rgba(255,255,255,.75);
}
.cs-toggle-hint{
  margin:0;
  padding:0 14px 12px;
  border-radius:0 0 18px 18px;
  font-size:10px;
  line-height:1.45;
  color:var(--text3);
  background:var(--surface2);
  box-shadow:
    inset 2px 0 5px rgba(163,155,145,.18),
    inset -2px -2px 5px rgba(255,255,255,.7);
}
.cs-toggle-lbl{
  font-size:12px;
  font-weight:600;
  color:var(--text);
}
.cs-switch{
  position:relative;
  width:46px;
  height:26px;
  flex-shrink:0;
}
.cs-switch input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.cs-switch-ui{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#c9c4bc;
  box-shadow:inset 1px 1px 3px rgba(0,0,0,.12);
  transition:background .18s;
}
.cs-switch-ui::after{
  content:'';
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:1px 1px 3px rgba(0,0,0,.18);
  transition:transform .18s;
}
.cs-switch input:checked + .cs-switch-ui{
  background:#1f6feb;
}
.cs-switch input:checked + .cs-switch-ui::after{
  transform:translateX(20px);
}
.cs-switch input:focus-visible + .cs-switch-ui{
  outline:2px solid rgba(31,111,235,.45);
  outline-offset:2px;
}
.cs-more{
  border-radius:18px;
  background:var(--surface2);
  box-shadow:
    inset 2px 2px 5px rgba(163,155,145,.22),
    inset -2px -2px 5px rgba(255,255,255,.7);
  overflow:hidden;
}
.cs-more>summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  font-size:12px;
  font-weight:600;
  color:var(--text2);
  user-select:none;
}
.cs-more>summary::-webkit-details-marker{display:none;}
.cs-more>summary::after{
  content:'▾';
  float:right;
  color:var(--text3);
}
.cs-more[open]>summary::after{content:'▴';}
.cs-more-body{
  padding:0 14px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cs-bri-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--text3);
}
.cs-bri-row input[type=range]{flex:1;}
.cs-bri-val{min-width:22px;text-align:right;font-variant-numeric:tabular-nums;}
.nd-lock-badge{
  display:inline-block;
  font-size:9px;
  font-weight:700;
  color:#92400e;
  background:#fef3c7;
  border:1px solid #f59e0b;
  border-radius:999px;
  padding:1px 7px;
  margin:0 0 6px 0;
  line-height:1.4;
}
.nd-lock-badge[hidden]{display:none !important;}
.pc-screen-mode{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;flex-shrink:0;}
.pc-screen-mode-btn{border:none;background:var(--surface2);color:var(--text3);padding:4px 10px;font-size:11px;font-weight:600;cursor:pointer;}
.pc-screen-mode-btn.on{background:var(--accent);color:#fff;}
.pc-screen-mode-btn:disabled,
.pc-screen-mode-btn.is-disabled{
  opacity:.4;
  color:var(--text3);
  background:var(--surface2);
  cursor:not-allowed;
  pointer-events:none;
}
.pc-screen-mode-btn.on:disabled,
.pc-screen-mode-btn.on.is-disabled{
  background:var(--surface2);
  color:var(--text3);
}
.pc-screen-element-pop{
  position:absolute;z-index:5;min-width:240px;max-width:min(360px,92%);
  right:10px;bottom:10px;background:rgba(20,24,32,.96);color:#f1f5f9;
  border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 12px;
  box-shadow:0 10px 28px rgba(0,0,0,.45);font-size:11px;line-height:1.45;
}
.pc-screen-element-pop-hd{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.pc-screen-element-pop-hd strong{flex:1;font-size:12px;}
.pc-screen-element-pop-hd button{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:12px;}
.pc-screen-el-loading{color:#fbbf24;margin-bottom:6px;}
.pc-screen-el-body{color:#cbd5e1;word-break:break-word;}
.pc-screen-el-body .el-row{display:flex;gap:6px;margin:3px 0;}
.pc-screen-el-body .el-k{color:#94a3b8;min-width:78px;flex-shrink:0;}
.pc-screen-el-body .el-v{color:#f8fafc;}
.pc-screen-el-actions{margin-top:10px;display:flex;justify-content:flex-end;}
.pc-screen-el-save{border:none;border-radius:7px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:6px 12px;cursor:pointer;}
.pc-screen-el-save:disabled{opacity:.45;cursor:not-allowed;}
.nd-timeline-btn{
  font-size:8px;
  font-weight:600;
  color:#333333;
  background:#f3f3f3;
  border:none;
  border-radius:999px;
  padding:3px 7px;
  cursor:pointer;
  flex:0 1 auto;
  flex-shrink:1;
  max-width:46%;
  min-width:0;
  line-height:1.2;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  box-shadow:
    0 2px 5px rgba(0,0,0,.09),
    0 1px 2px rgba(0,0,0,.05);
  transition:box-shadow .2s ease,background .2s ease,color .2s ease;
}
.nd-timeline-btn:hover:not(:disabled){
  background:#eeeeee;
  color:#222222;
  box-shadow:
    0 3px 7px rgba(0,0,0,.11),
    0 1px 2px rgba(0,0,0,.07);
}
.nd-timeline-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.nd-timeline-btn-inner{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
  transform-origin:center center;
  transition:transform .2s ease;
}
.nd-timeline-btn:hover:not(:disabled) .nd-timeline-btn-inner{
  transform:scale(1.05);
}
.nd-timeline-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:13px;
  height:8px;
  flex:0 0 auto;
  color:#3a3a3a;
}
.nd-timeline-btn-icon .nd-timeline-btn-svg,
.nd-timeline-btn-icon svg{
  width:13px;
  height:8px;
  display:block;
}
.nd-timeline-btn-txt{
  line-height:1.2;
  letter-spacing:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nd-reset-btn{font-size:8px;font-weight:600;color:var(--text2);background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:2px 6px;cursor:pointer;white-space:nowrap;flex-shrink:0;}
.nd-reset-btn:hover{color:var(--danger);border-color:var(--danger);}
.nd-ip-row{display:flex;align-items:center;gap:6px;margin-bottom:7px;min-width:0;}
.nd-ip{font-size:8px;color:var(--text3);font-family:"DM Mono",monospace;flex:1 1 auto;min-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nd-checking{font-size:8px;color:var(--text3);display:inline-flex;align-items:center;gap:3px;flex-shrink:0;}
.app-row{display:flex;gap:3px;margin-bottom:8px;flex-wrap:wrap;}
.app-btn{width:22px;height:22px;border-radius:5px;position:relative;display:flex;align-items:center;justify-content:center;font-size:12px;border:none;cursor:default;overflow:visible;padding:0;appearance:none;-webkit-appearance:none;background:inherit;color:inherit;font:inherit;}
button.app-btn.app-btn-icon-edit{cursor:pointer;}
button.app-btn.app-btn-icon-edit:hover{outline:1.5px solid var(--accent);}
button.app-btn.app-btn-icon-edit:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.app-btn-comp-badge{
  display:flex;
  position:absolute;
  left:-4px;
  top:-4px;
  min-width:14px;
  height:12px;
  padding:0 3px;
  border-radius:4px;
  background:var(--accent);
  color:#fff;
  border:1px solid var(--surface);
  font-size:7px;
  font-weight:800;
  line-height:11px;
  align-items:center;
  justify-content:center;
  z-index:2;
  pointer-events:none;
}
.app-btn-conn-badge{
  display:flex;
  position:absolute;
  right:-5px;
  bottom:-5px;
  min-width:18px;
  height:11px;
  padding:0 3px;
  border-radius:4px;
  font-size:6px;
  font-weight:800;
  line-height:10px;
  align-items:center;
  justify-content:center;
  z-index:2;
  pointer-events:none;
  border:1px solid var(--surface);
}
.app-btn-conn-badge.disc{background:#e9a23b;color:#1a1208;}
.app-btn-conn-badge.ok{background:#2a9d6a;color:#fff;}
.app-btn.conn-disc{box-shadow:0 0 0 1px rgba(233,162,59,.75);}
.conn-probe-thumb{width:100%;max-height:72px;object-fit:contain;border:1px solid var(--border);border-radius:6px;background:var(--bg);margin-bottom:6px;display:block;}
.conn-probe-thumb[hidden]{display:none;}
.app-btn-type-badge{position:absolute;right:-3px;bottom:-3px;min-width:10px;height:10px;padding:0 2px;border-radius:3px;background:var(--surface);color:var(--text3);border:1px solid var(--border);font-size:7px;font-weight:700;line-height:8px;text-align:center;pointer-events:none;z-index:2;}
.prog-ico-img{
  width:16px;height:16px;
  object-fit:contain;display:block;
  image-rendering:auto;
}
/* Minimal Line Pack — force grayscale / ink tones */
body.icon-pack-minimal_line .prog-ico-img,
body.icon-pack-minimal_line .ppm-cat-ico,
body.icon-pack-minimal_line .ppm-row-ico,
body.icon-pack-minimal_line .prog-manage-icon-btn,
body.icon-pack-minimal_line .pc-cmd-icon,
body.icon-pack-minimal_line .fe-cmd-ico{
  filter:grayscale(1) contrast(1.15);
  color:#333;
}
.npm-row-ico .prog-ico-img,.prog-icon-preview .prog-ico-img{width:22px;height:22px;}
.prog-icon-row{display:flex;flex-direction:column;gap:8px;padding:10px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;}
.prog-icon-row-hdr{display:flex;align-items:center;gap:8px;}
.prog-icon-preview{width:36px;height:36px;border-radius:8px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;overflow:hidden;}
.prog-icon-mode{display:flex;gap:10px;font-size:10px;margin:4px 0;}
.prog-icon-guide{font-size:10px;color:var(--text3);line-height:1.45;}
.app-btn.on{background:var(--surface2);}
/* X 꺼짐 — 빨간 배경만 (테두리·흑백 필터 없음, M과 구분) */
.app-btn.off{background:#fecaca;border:none;opacity:1;filter:none;box-shadow:none;}
/* legacy partial class kept inert — status P removed */
.app-btn.partial{background:#fecaca;border:none;opacity:1;filter:none;box-shadow:none;}
/* U 확인 전 — 연한 점선 링 + 탈색 */
.app-btn.unknown{
  background:#fffdfb;
  border:none;
  opacity:.72;
  filter:grayscale(.5) saturate(.4);
  box-shadow:none;
}
.app-btn.unknown::after{
  content:"";
  position:absolute;
  inset:-3px;
  border:2px dashed #fdba74;
  border-radius:8px;
  pointer-events:none;
  opacity:.95;
}
/* S 스캔 필요 — 주황 실선 (U 점선과 구분) */
.app-btn.needs-scan{
  background:#fff7ed;
  border:2px solid #ea580c;
  opacity:.95;
  filter:none;
  box-shadow:none;
}
/* M 미설치 — 회색/흑백 */
.app-btn.missing{
  border:none;
  background:#e2e8f0;
  opacity:.78;
  filter:grayscale(1);
  box-shadow:none;
}
.app-component-pop{position:fixed;z-index:10000;max-width:280px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px;box-shadow:0 8px 28px rgba(0,0,0,.18);font-size:11px;line-height:1.5;}
.app-component-pop-title{font-weight:600;color:var(--text);margin-bottom:6px;}
.app-component-pop-line{color:var(--text2);margin:3px 0;}
.prog-scan-composite-hint{font-size:9px;color:#c8790a;margin-left:6px;}
.prog-scan-group-choice{border:1px solid var(--border);border-radius:8px;padding:10px;margin-bottom:8px;background:var(--surface2);}
.prog-scan-group-choice-title{font-size:12px;font-weight:600;color:var(--text);margin-bottom:6px;}
.prog-scan-group-choice-opt{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--text2);margin:4px 0;cursor:pointer;}
.prog-scan-list{display:flex;flex-direction:column;gap:6px;max-height:280px;overflow-y:auto;}
.prog-manage-list{display:flex;flex-direction:column;gap:6px;max-height:360px;overflow-y:auto;}
.prog-manage-row{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;}
.prog-manage-icon-wrap{position:relative;flex-shrink:0;}
.prog-manage-icon-btn{width:36px;height:36px;border-radius:8px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;padding:0;overflow:hidden;flex-shrink:0;}
.prog-manage-icon-btn:hover{border-color:var(--accent);}
.prog-manage-icon-clear{display:none;position:absolute;top:-5px;right:-5px;width:14px;height:14px;border-radius:50%;background:var(--danger);color:#fff;border:none;font-size:9px;line-height:1;cursor:pointer;padding:0;align-items:center;justify-content:center;}
.prog-manage-icon-wrap.has-image .prog-manage-icon-clear{display:flex;}
.prog-manage-main{flex:1;min-width:0;}
.prog-manage-title{font-size:12px;font-weight:600;color:var(--text);}
.prog-manage-meta{font-size:10px;color:var(--text3);margin-top:2px;}
.prog-manage-identity-btn{margin-left:6px;font-size:9px;padding:1px 6px;border-radius:4px;border:1px solid var(--border);background:var(--surface);color:var(--text2);cursor:pointer;}
.prog-manage-identity-btn:hover{border-color:var(--accent);color:var(--text);}
.prog-manage-identity-lock{margin-left:6px;font-size:9px;color:var(--text3);opacity:.85;}
.ph-identity-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--text2);padding:4px 0 8px;}
.prog-manage-del{padding:4px 10px;font-size:10px;background:var(--danger);color:#fff;border:none;border-radius:6px;cursor:pointer;flex-shrink:0;}
.prog-manage-del:disabled{opacity:.55;cursor:not-allowed;}
.pip-panel{min-height:120px;}
.prog-icon-pack-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:260px;overflow-y:auto;padding:2px;}
.prog-icon-pack-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:1px solid var(--border);border-radius:8px;background:var(--surface2);cursor:pointer;font-size:22px;transition:border-color .15s,background .15s,opacity .15s,filter .15s;}
.prog-icon-pack-item:hover{border-color:var(--accent);background:var(--bg);}
.prog-icon-pack-item.locked,
.prog-icon-pack-item:disabled{
  opacity:.42;filter:grayscale(1);cursor:not-allowed;background:var(--bg);
  pointer-events:none;box-shadow:none;
}
.prog-icon-pack-item.locked:hover,
.prog-icon-pack-item:disabled:hover{border-color:var(--border);background:var(--bg);}
.prog-icon-pack-item span{font-size:9px;color:var(--text3);text-align:center;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.prog-icon-pack-item .prog-icon-pack-used{font-size:8px;color:var(--text3);font-weight:600;}
/* Master icons are 256px; picker shows a clean downscale (not an upscale). */
.prog-icon-pack-thumb{
  width:64px;height:64px;
  border-radius:14px;
  object-fit:contain;
  background:#fff;
  display:block;
  image-rendering:auto;
}
.prog-scan-row{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;cursor:pointer;}
.prog-scan-ico{width:32px;height:32px;border-radius:8px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;overflow:hidden;}
.prog-scan-ico .prog-ico-img{width:28px !important;height:28px !important;min-width:28px;min-height:28px;object-fit:contain;display:block;}
.prog-manage-icon-btn .prog-ico-img{width:24px !important;height:24px !important;object-fit:contain;}
.prog-scan-ico-empty{display:none !important;} /* legacy empty-dot — never show */
.prog-scan-row.sel{border-color:var(--accent);background:#f0f7ff;}
.prog-scan-row.catalog{border-color:#86efac;}
.prog-scan-type{font-size:9px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text3);min-width:52px;padding-top:2px;}
.prog-scan-main{flex:1;min-width:0;}
.prog-scan-title{font-size:12px;font-weight:600;color:var(--text);}
.prog-scan-meta{font-size:10px;color:var(--text3);margin-top:2px;word-break:break-all;}
.app-btn-wrap{position:relative;display:inline-block;}
.app-btn-x{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:var(--danger);color:#fff;border:none;font-size:8px;line-height:1;cursor:pointer;align-items:center;justify-content:center;padding:0;}
.app-btn-wrap:hover .app-btn-x{display:flex;}
.app-btn-wrap:hover .app-btn{outline:1.5px solid var(--text3);}
.app-add-btn{background:transparent;border:1.5px dashed var(--border);color:var(--text3);font-weight:700;cursor:pointer;}
.app-add-btn:hover{border-color:var(--text3);color:var(--text);outline:none;}
.pc-prog-assign-pop{
  position:fixed;z-index:1200;display:none;padding:8px 10px;background:var(--surface);
  border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.16);
  max-width:min(360px,calc(100vw - 24px));
}
.pc-prog-assign-pop.show{display:block;}
.pc-prog-assign-title{font-size:10px;font-weight:600;color:var(--text3);margin:0 0 6px;letter-spacing:.2px;}
.pc-prog-assign-icons{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.pc-prog-assign-item{
  width:32px;height:32px;border-radius:8px;border:1px solid var(--border);background:var(--surface2);
  display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;padding:0;overflow:hidden;
  transition:border-color .12s,background .12s,transform .12s;
}
.pc-prog-assign-item:hover{border-color:var(--accent);background:var(--bg);transform:translateY(-1px);}
.pc-prog-assign-item:disabled{opacity:.45;cursor:default;transform:none;}
.pc-prog-assign-item .prog-ico-img{width:18px;height:18px;}
.pc-prog-assign-add{
  width:32px;height:32px;border-radius:8px;border:1.5px dashed var(--border);background:transparent;
  color:var(--text3);font-size:18px;font-weight:700;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.pc-prog-assign-add:hover{border-color:var(--text);color:var(--text);}
.pc-prog-assign-empty{font-size:10px;color:var(--text3);padding:0 2px;}
/* Layer 3 — shared program panel manage */
.ppm-box{width:min(720px,calc(100vw - 28px));max-height:88vh;padding:18px 18px 14px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;}
.ppm-hdr{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px;flex-shrink:0;}
.ppm-sub{font-size:11px;color:var(--text3);line-height:1.4;}
.ppm-catalog-wrap{position:sticky;top:0;z-index:2;background:var(--surface);padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:10px;flex-shrink:0;}
.ppm-catalog-label{font-size:10px;font-weight:600;color:var(--text3);letter-spacing:.3px;text-transform:uppercase;margin-bottom:6px;}
.ppm-catalog{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding-bottom:4px;min-height:40px;align-items:center;}
.ppm-catalog-empty{font-size:11px;color:var(--text3);}
.ppm-cat-ico{width:36px;height:36px;border-radius:10px;border:1px solid var(--border);background:var(--surface2);display:inline-flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;overflow:hidden;}
.ppm-cat-ico .prog-ico-img{width:22px;height:22px;}
.ppm-nodes{flex:0 1 auto;overflow:visible;display:flex;flex-direction:column;gap:8px;padding-right:2px;min-height:0;}
.ppm-row{border:1px solid var(--border);border-radius:12px;background:var(--bg);overflow:visible;position:relative;}
.ppm-row.open{border-color:var(--accent);}
.ppm-row-main{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:48px;}
.ppm-node-picker{position:relative;flex-shrink:0;min-width:88px;z-index:5;}
.ppm-node-picker-btn{display:inline-flex;align-items:center;gap:4px;max-width:140px;padding:4px 6px;margin:-4px -6px;border:none;border-radius:6px;background:transparent;cursor:pointer;font:inherit;color:inherit;}
.ppm-node-picker-btn:hover{background:var(--surface2);}
.ppm-row-name{font-size:12px;font-weight:700;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ppm-node-picker-caret{font-size:9px;color:var(--text3);flex-shrink:0;line-height:1;}
/* In-flow expand (like scan panel) — no inner max-height clip for ~11 nodes */
.ppm-node-dropdown{
  display:block;
  position:static;
  z-index:auto;
  width:auto;
  min-width:0;
  max-height:none;
  overflow:visible;
  margin:0;
  padding:6px 8px 10px;
  border:none;
  border-top:1px solid var(--border);
  border-radius:0;
  background:var(--surface);
  box-shadow:none;
}
.ppm-node-dropdown[hidden]{display:none!important;}
.ppm-node-dd-item{display:block;width:100%;text-align:left;padding:8px 10px;border:none;border-radius:7px;background:transparent;cursor:pointer;font-size:12px;font-weight:600;color:var(--text);}
.ppm-node-dd-item:hover{background:var(--surface2);}
.ppm-node-dd-item.active{background:var(--bg);color:var(--accent);}
.ppm-row-icons{display:flex;flex-wrap:wrap;gap:5px;align-items:center;flex:1;min-width:0;}
.ppm-row-ico{width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;font-size:14px;overflow:hidden;}
.ppm-row-ico .prog-ico-img{width:16px;height:16px;}
button.ppm-icon-btn{appearance:none;-webkit-appearance:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;}
button.ppm-icon-btn:hover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
button.ppm-icon-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
button.prog-scan-ico.ppm-icon-btn{cursor:pointer;}
label.prog-scan-row button.ppm-icon-btn{pointer-events:auto;}
.ppm-row-empty{font-size:10px;color:var(--text3);}
.ppm-row-acts{display:flex;gap:6px;flex-shrink:0;}
.ppm-row-acts .btn-s,.ppm-row-acts .btn-c{padding:5px 10px;font-size:11px;min-width:52px;}
.ppm-scan-panel{display:none;border-top:1px solid var(--border);padding:10px 12px 12px;background:var(--surface);}
.ppm-row.open .ppm-scan-panel{display:block;}
.ppm-scan-hint{font-size:10px;color:var(--text3);line-height:1.5;margin-bottom:8px;}
.ppm-scan-msg{font-size:11px;min-height:16px;margin-bottom:8px;color:var(--text3);}
.ppm-scan-list{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;}
.ppm-manual{margin-top:10px;border-top:1px solid var(--border);padding-top:8px;flex-shrink:0;}
.ppm-manual-toggle{background:none;border:none;padding:4px 0;font-size:11px;color:var(--accent);font-weight:600;cursor:pointer;}
.ppm-manual-body{margin-top:8px;max-height:280px;overflow-y:auto;}
.stat{margin-bottom:4px;}
.stat-h{display:flex;justify-content:space-between;margin-bottom:2px;}
.stat-k{font-size:8px;color:var(--text3);font-weight:600;text-transform:uppercase;display:inline-flex;align-items:center;gap:3px;}
.stat-k-icon{display:inline-flex;width:12px;height:12px;flex:0 0 auto;}
.stat-k-icon img{width:12px;height:12px;object-fit:contain;display:block;}
.stat-k-txt{line-height:1;}
.stat-v{font-size:8px;color:var(--text2);font-family:"DM Mono",monospace;}
.stat-bar{height:3px;background:var(--surface2);border-radius:2px;overflow:hidden;}
.stat-fill{height:100%;border-radius:2px;transition:width .6s;}
.fill-ok{background:var(--ok);}.fill-warn{background:var(--warn);}.fill-danger{background:var(--danger);}
.off-msg{text-align:center;font-size:10px;color:var(--text3);padding:10px 0;}
/* Modal */
.mo{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999;align-items:center;justify-content:center;}
.mo.show{display:flex;}
.mo-box{background:var(--surface);border-radius:14px;padding:24px;width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2);}
/* Usage · Billing — Apple-style stacked cards */
.mo-box.ub-shell{
  width:min(440px,94vw) !important;
  max-width:94vw !important;
  background:#f2f2f7;
  border-radius:22px;
  padding:18px 16px 16px;
  box-shadow:0 24px 64px rgba(0,0,0,.18);
}
.ub-shell .ub-header{
  display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:0 2px;
}
.ub-shell .ub-title{margin:0;flex:1;font-size:17px;font-weight:700;letter-spacing:-.02em;}
.ub-shell .ub-close{
  width:28px;height:28px;border:none;border-radius:50%;
  background:rgba(60,60,67,.12);color:rgba(60,60,67,.7);
  font-size:13px;cursor:pointer;line-height:1;
}
.ub-shell .ub-close:hover{background:rgba(60,60,67,.18);}
.ub-shell .ub-loading{font-size:12px;color:var(--text3);padding:20px 4px;}
.ub-shell .ub-body{display:flex;flex-direction:column;gap:12px;position:relative;}
.ub-shell .ub-status{
  border-radius:14px;padding:12px 14px;font-size:13px;font-weight:600;line-height:1.45;
}
.ub-shell .ub-status.is-ok{background:#e8f8f4;color:#0f6b5c;border:1px solid rgba(42,157,143,.28);}
.ub-shell .ub-status.is-err{background:#fff0f2;color:#b42318;border:1px solid rgba(230,57,70,.28);}
.ub-shell .ub-status.is-info{background:#eef4ff;color:#1d4ed8;border:1px solid rgba(10,102,255,.22);}
/* IMPORTANT: never set display:flex on the base .ub-busy rule — it overrides
   the HTML `hidden` attribute and shows the upgrade overlay on every open. */
.ub-shell .ub-busy[hidden],
.ub-shell .ub-busy.is-off{
  display:none !important;
}
.ub-shell .ub-busy:not([hidden]){
  position:absolute;inset:0;z-index:5;border-radius:18px;
  background:rgba(242,242,247,.92);backdrop-filter:blur(2px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  text-align:center;padding:24px;
}
.ub-shell .ub-busy-spinner{
  width:28px;height:28px;border-radius:50%;
  border:3px solid rgba(28,28,30,.12);border-top-color:#1c1c1e;
  animation:ub-spin .7s linear infinite;
}
@keyframes ub-spin{to{transform:rotate(360deg);}}
.ub-shell .ub-busy-text{font-size:14px;font-weight:700;color:#1c1c1e;}
.ub-shell .ub-busy-sub{font-size:11px;color:#8e8e93;line-height:1.45;max-width:260px;}
.ub-shell .ub-body.is-busy{pointer-events:none;}
.ub-shell .ub-card{
  background:#fff;border-radius:18px;padding:16px 16px 14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
}
.ub-shell .ub-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.ub-shell .ub-card-title{margin:0;font-size:15px;font-weight:700;color:#1c1c1e;letter-spacing:-.01em;}
.ub-shell .ub-keep-sub-btn{
  display:inline-flex;align-items:center;justify-content:center;
  margin:0 0 6px;padding:5px 12px;border-radius:999px;
  border:1px solid #0a66ff;background:#e8f1ff;color:#0a66ff;
  font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;line-height:1.2;
}
.ub-shell .ub-keep-sub-btn:hover{background:#d6e8ff;}
.ub-shell .ub-keep-sub-btn[hidden]{display:none!important;}
.ub-shell .ub-plan-badge{
  display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;
  background:#e8f1ff;color:#0a66ff;font-size:12px;font-weight:700;margin-bottom:10px;
}
.ub-shell .ub-summary-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;}
.ub-shell .ub-credit-num{
  font-size:34px;font-weight:800;line-height:1.05;color:#1c1c1e;
  font-variant-numeric:tabular-nums;letter-spacing:-.03em;
}
.ub-shell .ub-credit-label{font-size:12px;color:#8e8e93;margin-top:4px;}
.ub-shell .ub-credit-sub{font-size:10px;color:#aeaeb2;margin-top:6px;line-height:1.4;}
.ub-shell .ub-summary-side{text-align:right;flex-shrink:0;padding-bottom:2px;}
.ub-shell .ub-side-label{font-size:11px;color:#8e8e93;}
.ub-shell .ub-side-value{font-size:14px;font-weight:700;color:#1c1c1e;margin-top:3px;}
.ub-shell .ub-hint{font-size:11px;color:#8e8e93;line-height:1.45;margin-top:12px;}
.ub-shell .ub-month-line{
  display:flex;justify-content:space-between;gap:8px;margin-top:12px;
  font-size:11px;color:#8e8e93;font-variant-numeric:tabular-nums;
}
.ub-shell .ub-progress{height:6px;background:#ececf0;border-radius:999px;overflow:hidden;margin-top:6px;}
.ub-shell .ub-progress-fill{height:100%;width:0;background:#1c1c1e;border-radius:999px;transition:width .25s;}
.ub-shell .ub-month-pct{font-size:10px;color:#aeaeb2;margin-top:5px;}
.ub-shell .ub-plan-row{display:flex;gap:8px;align-items:center;}
.ub-shell .ub-select{
  flex:1;min-width:0;appearance:none;-webkit-appearance:none;
  border:none;background:#f2f2f7;border-radius:12px;padding:11px 34px 11px 14px;
  font-size:14px;font-weight:600;color:#1c1c1e;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238e8e93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
}
.ub-shell .ub-pill{
  border:none;border-radius:999px;padding:10px 18px;background:#1c1c1e;color:#fff;
  font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0;
  font-family:inherit;line-height:1.2;
}
.ub-shell .ub-pill:hover{background:#000;}
.ub-shell .ub-pill:disabled{opacity:.4;cursor:default;background:#1c1c1e;}
.ub-shell .ub-pill.ub-pill-muted{background:#e5e5ea;color:#3a3a3c;}
.ub-shell .ub-plan-hint{font-size:11px;color:#8e8e93;line-height:1.45;margin:10px 0 0;}
.ub-shell .ub-portal-link{
  display:inline-block;margin-top:10px;font-size:11px;color:#0a66ff;text-decoration:none;font-weight:500;
}
.ub-shell .ub-portal-link:hover{text-decoration:underline;}
.ub-shell .ub-pack-list{display:flex;flex-direction:column;gap:0;background:#f2f2f7;border-radius:14px;overflow:hidden;}
.ub-shell .ub-pack-row{
  display:flex;align-items:center;gap:10px;padding:12px 12px;border-bottom:1px solid rgba(60,60,67,.08);
}
.ub-shell .ub-pack-row:last-child{border-bottom:none;}
.ub-shell .ub-pack-credits{flex:1;font-size:13px;font-weight:600;color:#1c1c1e;}
.ub-shell .ub-pack-price{font-size:13px;font-weight:600;color:#3a3a3c;min-width:52px;text-align:right;}
.ub-shell .ub-pack-buy{
  border:none;border-radius:999px;padding:6px 14px;background:#1c1c1e;color:#fff;
  font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;
}
.ub-shell .ub-pack-buy:hover{background:#000;}
.ub-shell .ub-card-toggle.is-collapsed .ub-card-body{display:none;}
/* Open-time: no switch/body transition flicker when restoring collapse */
.ub-shell.ub-no-anim .ub-switch-ui,
.ub-shell.ub-no-anim .ub-switch-ui::after{transition:none!important;}
.ub-shell .ub-pager{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;
  margin-top:10px;padding-top:2px;
}
.ub-shell .ub-pager[hidden]{display:none!important;}
.ub-shell .ub-pager-num,
.ub-shell .ub-pager-last{
  border:none;background:#f2f2f7;color:#3a3a3c;border-radius:8px;
  padding:5px 9px;font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;line-height:1.2;
}
.ub-shell .ub-pager-num:hover,
.ub-shell .ub-pager-last:hover{background:#e5e5ea;color:#1c1c1e;}
.ub-shell .ub-pager-num.is-on{background:#1c1c1e;color:#fff;}
.ub-shell .ub-pager-last{margin-left:4px;color:#0a66ff;background:#e8f1ff;}
.ub-shell .ub-pager-last:hover{background:#d6e8ff;}
.ub-shell .ub-chart-head{margin-bottom:6px;align-items:center;}
.ub-shell .ub-chart-tabs{display:flex;gap:2px;align-items:center;flex-shrink:0;}
.ub-shell .ub-chart-tab{
  border:none;background:transparent;padding:4px 8px;border-radius:6px;
  font-size:11px;font-weight:600;color:#8e8e93;cursor:pointer;font-family:inherit;line-height:1.2;
}
.ub-shell .ub-chart-tab:hover{color:#3a3a3c;background:#f2f2f7;}
.ub-shell .ub-chart-tab.is-on{color:#1c1c1e;background:#f2f2f7;}
.ub-shell .ub-chart{
  display:flex;align-items:flex-end;justify-content:space-between;gap:8px;
  height:120px;padding:8px 4px 0;
}
.ub-shell .ub-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;height:100%;}
.ub-shell .ub-bar-track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;}
.ub-shell .ub-bar{
  width:70%;max-width:28px;border-radius:8px 8px 4px 4px;background:#e5e5ea;min-height:4px;
  transition:height .2s;
}
.ub-shell .ub-bar.is-peak{background:#1c1c1e;}
.ub-shell .ub-bar-lbl{font-size:9px;color:#8e8e93;font-weight:600;}
.ub-shell .ub-chart-caption{font-size:11px;color:#8e8e93;margin-top:8px;}
.ub-shell .ub-table-wrap{overflow:auto;margin:0 -4px;}
.ub-shell .ub-table{width:100%;border-collapse:collapse;font-size:12px;}
.ub-shell .ub-table th{
  text-align:left;font-size:11px;font-weight:600;color:#8e8e93;padding:6px 8px 10px;border-bottom:1px solid #ececf0;
}
.ub-shell .ub-table th.ub-num,.ub-shell .ub-table td.ub-num{text-align:right;}
.ub-shell .ub-table td{padding:10px 8px;border-bottom:1px solid #f2f2f7;color:#1c1c1e;vertical-align:top;}
.ub-shell .ub-table tr:last-child td{border-bottom:none;}
.ub-shell .ub-empty{color:#8e8e93 !important;text-align:center;}
.ub-shell .ub-tax-note{font-size:10px;color:#aeaeb2;line-height:1.45;margin:2px 4px 0;}
.ub-shell .ub-footer{display:flex;justify-content:flex-end;margin-top:12px;padding:0 2px;}
/* iOS-like switch */
.ub-shell .ub-switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;}
.ub-shell .ub-switch input{position:absolute;opacity:0;width:0;height:0;}
.ub-shell .ub-switch-ui{
  width:42px;height:26px;border-radius:999px;background:#e5e5ea;position:relative;transition:background .18s;
}
.ub-shell .ub-switch-ui::after{
  content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .18s;
}
.ub-shell .ub-switch input:checked + .ub-switch-ui{background:#0a66ff;}
.ub-shell .ub-switch input:checked + .ub-switch-ui::after{transform:translateX(16px);}
.ub-shell .ub-switch input:disabled{cursor:default;}
.ub-shell .ub-switch input:disabled + .ub-switch-ui{opacity:.95;}
/* Shared extras — Sync / My Shop */
.ub-shell.ub-shell-wide{width:min(480px,94vw) !important;}
.ub-shell .ub-code{
  display:inline-block;font-family:DM Mono,ui-monospace,monospace;font-size:11px;font-weight:600;
  color:#1c1c1e;background:#f2f2f7;border-radius:8px;padding:3px 8px;word-break:break-all;
}
.ub-shell .ub-kv{display:flex;flex-direction:column;gap:10px;margin-top:4px;}
.ub-shell .ub-kv-row{display:flex;flex-direction:column;gap:4px;}
.ub-shell .ub-kv-label{font-size:11px;color:#8e8e93;font-weight:600;}
.ub-shell .ub-pill-block{
  width:100%;border:none;border-radius:999px;padding:12px 18px;background:#1c1c1e;color:#fff;
  font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;line-height:1.2;text-align:center;
}
.ub-shell .ub-pill-block:hover{background:#000;}
.ub-shell .ub-pill-block:disabled{opacity:.4;cursor:default;background:#1c1c1e;}
.ub-shell .ub-pill-block.ub-pill-muted{background:#e5e5ea;color:#3a3a3c;}
.ub-shell .ub-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;}
.ub-shell .ub-pill-row .ub-pill{flex:1;min-width:120px;text-align:center;}
.ub-shell .ub-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.ub-shell .ub-stat-grid.ub-stat-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.ub-shell .ub-stat-grid.ub-stat-4{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:720px){
  .ub-shell .ub-stat-grid.ub-stat-4{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.ub-shell .ub-stat{background:#f2f2f7;border-radius:14px;padding:12px 10px;text-align:center;}
.ub-shell .ub-stat-label{font-size:11px;color:#8e8e93;font-weight:600;}
.ub-shell .ub-stat-value{
  font-size:18px;font-weight:800;color:#1c1c1e;margin-top:6px;line-height:1.1;
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;
}
.ub-shell .ub-stat-value.ub-stat-sm{font-size:15px;}
.ub-shell .ub-subcard{
  background:#f2f2f7;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px;margin-top:10px;
}
.ub-shell .ub-subcard-title{margin:0;font-size:13px;font-weight:700;color:#1c1c1e;}
.ub-shell .ub-subcard-hint{font-size:11px;color:#8e8e93;line-height:1.45;margin:0;}
.ub-shell .ub-input{
  width:100%;box-sizing:border-box;border:none;background:#fff;border-radius:12px;
  padding:11px 14px;font-size:14px;font-weight:600;color:#1c1c1e;font-family:inherit;
}
.ub-shell .ub-label{font-size:11px;color:#8e8e93;font-weight:600;display:flex;flex-direction:column;gap:6px;}
/* My Shop — Instagram-style listing grid */
#mo-my-shop .mo-box.ub-shell{width:min(560px,94vw) !important;max-width:94vw !important;}
#mo-my-shop .ub-shop-listings-card{padding:12px;}
#mo-my-shop .ub-ig-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;
  margin:0 -2px;
}
#mo-my-shop .ub-ig-tile{
  position:relative;aspect-ratio:1;padding:0;border:none;margin:0;
  background:#d8d8dc;cursor:pointer;overflow:hidden;font-family:inherit;
}
#mo-my-shop .ub-ig-tile:focus-visible{outline:2px solid #0a66ff;outline-offset:-2px;z-index:1;}
#mo-my-shop .ub-ig-tile img,
#mo-my-shop .ub-ig-tile .ub-ig-fallback{
  width:100%;height:100%;object-fit:cover;display:block;
}
#mo-my-shop .ub-ig-fallback{
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:22px;color:#1c1c1e;background:#e5e5ea;
}
#mo-my-shop .ub-ig-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:18px 6px 5px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:4px;
  background:linear-gradient(transparent,rgba(0,0,0,.58));
  color:#fff;font-size:10px;font-weight:700;line-height:1.2;pointer-events:none;
}
#mo-my-shop .ub-ig-overlay span{text-shadow:0 1px 2px rgba(0,0,0,.45);}
#mo-my-shop .ub-ig-empty{
  grid-column:1/-1;padding:18px 8px;text-align:center;
  font-size:12px;color:#8e8e93;line-height:1.5;
}
#mo-my-shop .ub-ig-detail-bar{
  display:flex;align-items:center;gap:10px;margin-bottom:10px;
}
#mo-my-shop .ub-ig-back{
  border:none;background:#f2f2f7;border-radius:999px;padding:7px 12px;
  font-size:12px;font-weight:700;cursor:pointer;color:#1c1c1e;font-family:inherit;
}
#mo-my-shop .ub-ig-back:hover{background:#e5e5ea;}
#mo-my-shop .ub-ig-detail-title{
  flex:1;font-size:14px;font-weight:700;color:#1c1c1e;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#mo-my-shop .ub-ig-detail-hero{
  width:100%;aspect-ratio:1;max-height:220px;border-radius:12px;overflow:hidden;
  background:#e5e5ea;margin-bottom:10px;
}
#mo-my-shop .ub-ig-detail-hero img,
#mo-my-shop .ub-ig-detail-hero .ub-ig-fallback{width:100%;height:100%;object-fit:cover;}
#mo-my-shop .ub-ig-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px;
}
#mo-my-shop .ub-ig-stat{
  background:#f2f2f7;border-radius:10px;padding:8px 6px;text-align:center;
}
#mo-my-shop .ub-ig-stat-label{font-size:10px;color:#8e8e93;}
#mo-my-shop .ub-ig-stat-value{font-size:13px;font-weight:700;color:#1c1c1e;margin-top:2px;}
#mo-my-shop .ub-label{
  display:block;margin:8px 0 4px;font-size:11px;font-weight:700;color:#1c1c1e;
}
#mo-my-shop .ub-inp{
  width:100%;box-sizing:border-box;border:1px solid rgba(60,60,67,.14);
  border-radius:10px;padding:10px 11px;font-size:13px;font-family:inherit;
  background:#f7f7fa;color:#1c1c1e;outline:none;
}
#mo-my-shop .ub-inp:focus{background:#fff;border-color:rgba(28,28,30,.35);}
#mo-my-shop .ub-textarea{resize:vertical;min-height:64px;line-height:1.45;}
#mo-my-shop .ub-yt-preview{margin:6px 0 4px;}
#mo-my-shop .ub-ig-detail-actions{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;
}
#mo-my-shop .ub-ig-detail-actions .btn-s,
#mo-my-shop .ub-ig-detail-actions .btn-c{flex:1;min-width:120px;}
#mo-my-shop #ms-msg{margin:8px 0 0;font-size:12px;min-height:1.2em;}
.ub-shell .ub-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.ub-shell .ub-shop-item{
  display:block;width:100%;border:none;background:#f2f2f7;border-radius:14px;padding:10px;
  text-align:left;cursor:pointer;font-family:inherit;color:inherit;
}
.ub-shell .ub-shop-item:hover{background:#ececf0;}
.ub-shell .ub-shop-thumb{
  width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;display:block;background:#e5e5ea;
}
.ub-shell .ub-shop-thumb-fallback{
  width:100%;aspect-ratio:1;border-radius:10px;background:#e5e5ea;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;color:#1c1c1e;
}
.ub-shell .ub-shop-title{font-size:12px;font-weight:700;color:#1c1c1e;margin-top:8px;line-height:1.35;}
.ub-shell .ub-shop-price{font-size:12px;font-weight:700;color:#0a66ff;margin-top:4px;}
.ub-shell .ub-shop-meta{font-size:10px;color:#8e8e93;margin-top:3px;}
.ub-shell .ub-header-link{
  font-size:11px;font-weight:600;color:#0a66ff;text-decoration:none;white-space:nowrap;
}
.ub-shell .ub-header-link:hover{text-decoration:underline;}
.ub-shell .ub-table-wrap.ub-scroll{max-height:240px;}
/* Mobile mirror modal — aspect-fit stage + fullscreen */
.mo-box.mo-mobile-screen-box{
  width:min(440px,96vw);
  max-height:94vh;
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.mob-screen-toolbar{
  display:flex;align-items:center;gap:8px;flex-shrink:0;margin-bottom:6px;
}
.mob-screen-title{font-size:13px;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mob-screen-status{font-size:10px;color:var(--text3);flex-shrink:0;}
.mob-screen-tool-btn{
  background:var(--surface2);border:1px solid var(--border);border-radius:7px;
  padding:4px 9px;cursor:pointer;font-size:11px;color:var(--text2);flex-shrink:0;
}
.mob-screen-tool-btn:hover{background:var(--border);}
.mob-screen-hint{font-size:10px;color:var(--text3);margin-bottom:8px;flex-shrink:0;}
.mob-screen-stage-outer{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0a0a0a;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}
.mob-screen-stage{
  position:relative;
  width:100%;
  max-width:100%;
  max-height:100%;
  aspect-ratio:9 / 19.5;
  background:#000;
  touch-action:none;
  user-select:none;
  cursor:crosshair;
  overflow:hidden;
  flex:0 0 auto;
}
.mob-screen-loading{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:12px;z-index:1;pointer-events:none;
}
.nd-mobile-count{
  font-size:10px;font-weight:700;color:var(--accent);
  background:var(--surface2);border:1px solid var(--border);
  border-radius:7px;padding:2px 7px;flex-shrink:0;
  cursor:inherit;user-select:none;
}
.nd-mobile-expand-btn{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;margin-top:6px;padding:6px 8px;box-sizing:border-box;
  border:1px solid var(--border);border-radius:8px;
  background:var(--surface2);color:var(--text2);
  font-family:inherit;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.nd-mobile-expand-btn:hover{
  background:var(--bg);border-color:var(--accent);color:var(--text);
}
.nd-mobile-expand-btn .nd-mobile-expand-lbl{
  font-size:10px;font-weight:700;letter-spacing:.02em;
}
.nd-mobile-expand-btn .nd-mobile-sep{
  margin:0 2px;opacity:.55;font-weight:700;
}
.nd-mobile-expand-btn .nd-mobile-count{
  margin:0 0 0 auto;background:var(--bg);
}
.nd-pc-unit.is-expanded .nd-mobile-expand-btn,
.nd-pc-unit.is-selected .nd-mobile-expand-btn{
  border-color:var(--accent);color:var(--accent);
}
.mob-screen-img{
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  /* Stage is already sized to the phone AR (outer letterbox). Fill inside stage. */
  object-fit:fill;
  pointer-events:none;
  user-select:none;
}
.mob-screen-canvas{
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
  user-select:none;
}
.mob-screen-footer{
  display:flex;align-items:flex-start;gap:10px;
  margin-top:8px;padding-top:2px;
  flex:0 0 auto;
  min-height:2.6em;
}
.mob-screen-coord-wrap{
  flex:1 1 auto;min-width:0;
  display:flex;flex-direction:column;gap:2px;
}
.mob-screen-coord{
  font-size:11px;color:var(--accent);font-weight:600;
  line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:100%;
}
.mob-screen-meta{font-size:10px;color:var(--text3);line-height:1.3;}
.mob-screen-end-btn{
  flex-shrink:0;padding:5px 12px;
  border:1px solid var(--border);border-radius:7px;
  background:var(--surface2);color:var(--text2);
  font-size:10px;cursor:pointer;
}
.mob-screen-end-btn:hover{background:var(--border);}
/* Browser Fullscreen API target */
#mob-screen-fs-root:fullscreen,
#mob-screen-fs-root:-webkit-full-screen{
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  max-height:none !important;
  border-radius:0 !important;
  padding:10px 12px !important;
  background:#111 !important;
  box-sizing:border-box;
}
#mob-screen-fs-root:fullscreen .mob-screen-stage-outer,
#mob-screen-fs-root:-webkit-full-screen .mob-screen-stage-outer{
  flex:1 1 auto;
  height:100%;
  border-radius:0;
  border-color:#222;
}
#mob-screen-fs-root:fullscreen .mob-screen-stage,
#mob-screen-fs-root:-webkit-full-screen .mob-screen-stage{
  /* JS applyMobScreenAspect sizes stage to fit outer (contain). */
  max-height:100%;
  max-width:100%;
}
.mo-mobile-screen-box.is-fs-fallback{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  max-height:none !important;
  border-radius:0 !important;
  z-index:10000;
  margin:0 !important;
  padding:10px 12px !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  background:#111 !important;
}
.mo-mobile-screen-box.is-fs-fallback .mob-screen-stage-outer{
  flex:1 1 auto;
  min-height:0;
  height:100%;
}#mo-auth .auth-box{width:min(400px,94vw);padding:28px;}
.mo-title{font-size:15px;font-weight:600;margin-bottom:18px;}
#mo-vault-store{z-index:1100;}
#mo-vault-store .vault-store-box.ub-shell,
#mo-vault-store .mo-box.ub-shell.vault-store-box{
  width:min(440px,94vw) !important;
  max-width:94vw !important;
  padding:18px 16px 14px;
  border-radius:22px;
  background:#faf8f5;
  border:1px solid rgba(226,221,214,.9);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 50px rgba(26,24,22,.08);
}
#mo-password .ub-shell{
  width:min(440px,94vw) !important;
  max-width:94vw !important;
}
#mo-password .pw-change-shell{
  position:relative;
  width:min(400px,94vw) !important;
  padding:30px 30px 26px;
  border-radius:28px;
  background:#faf8f5;
  border:1px solid rgba(226,221,214,.9);
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 50px rgba(26,24,22,.08);
}
#mo-password .pw-close{
  position:absolute;top:14px;right:14px;
  background:rgba(26,24,22,.06);color:rgba(26,24,22,.55);
}
#mo-password .pw-close:hover{background:rgba(26,24,22,.12);}
#mo-password .pw-logo{
  display:block;margin:2px auto 18px;width:168px;height:auto;
}
#mo-password .pw-change-shell .ub-title{
  text-align:center;font-size:22px;font-weight:700;letter-spacing:-.03em;
}
#mo-password .pw-change-shell .ub-header{margin-bottom:10px;}
#mo-password .pw-lead{
  text-align:center;font-size:14px;color:#6b6560;line-height:1.55;margin:0 0 22px;
}
#mo-password .pw-field{margin-bottom:16px;}
#mo-password .pw-field label{
  display:block;font-size:13px;font-weight:700;color:#1a1816;margin-bottom:8px;letter-spacing:-.01em;
}
#mo-password .pw-input{
  width:100%;padding:13px 14px;border:1px solid transparent;border-radius:14px;
  font-size:15px;font-family:"DM Sans",sans-serif;background:#f3f0eb;color:#1a1816;
  outline:none;transition:box-shadow .15s,border-color .15s,background .15s;
}
#mo-password .pw-input::placeholder{color:#9b9590;}
#mo-password .pw-input:focus{
  background:#fff;border-color:rgba(17,17,17,.35);box-shadow:0 0 0 3px rgba(17,17,17,.06);
}
#mo-password .pw-input[readonly]{opacity:.85;cursor:default;}
#mo-password .pw-btn{
  display:block;width:100%;margin-top:4px;padding:14px 16px;border:none;border-radius:14px;
  background:#111;color:#fff;font-size:15px;font-weight:700;font-family:"DM Sans",sans-serif;
  cursor:pointer;transition:background .15s;
}
#mo-password .pw-btn:hover{background:#2a2a2a;}
#mo-password .pw-btn:disabled{opacity:.45;cursor:default;}
#mo-password .pw-msg{
  margin:14px 0 0;padding:11px 13px;border-radius:12px;
  font-size:13px;line-height:1.5;text-align:center;
}
#mo-password .pw-msg.is-err{background:#fdecee;border:1px solid rgba(230,57,70,.24);color:#c22b38;}
#mo-password .pw-msg.is-ok{background:#e9f7ef;border:1px solid rgba(42,157,106,.26);color:#237a51;}
#mo-password .pw-step[hidden]{display:none !important;}
#mo-password .ub-input,
#mo-vault-store .ub-input{
  background:#f2f2f7;
  border:1px solid transparent;
}
#mo-password .ub-input:focus,
#mo-vault-store .ub-input:focus{
  background:#fff;
  border-color:rgba(10,102,255,.35);
  outline:none;
  box-shadow:0 0 0 3px rgba(10,102,255,.12);
}
#mo-vault-store .vault-list{
  max-height:240px;overflow-y:auto;margin:0 -4px;padding:0 4px;
}
#mo-vault-store .vault-item{
  display:flex;align-items:center;gap:10px;
  padding:12px 4px;border-bottom:1px solid #f2f2f7;
}
#mo-vault-store .vault-item:last-child{border-bottom:none;}
#mo-vault-store .vault-item-main{flex:1;min-width:0;}
#mo-vault-store .vault-item-title{
  font-size:13px;font-weight:700;color:#1c1c1e;line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#mo-vault-store .vault-item-sub{
  font-size:11px;color:#8e8e93;margin-top:3px;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#mo-vault-store .vault-item-acts{display:flex;gap:6px;flex-shrink:0;}
#mo-vault-store .vault-chip-btn{
  border:none;border-radius:999px;padding:6px 10px;cursor:pointer;
  font-size:11px;font-weight:700;font-family:inherit;line-height:1.2;
  background:#f2f2f7;color:#1c1c1e;
}
#mo-vault-store .vault-chip-btn:hover{background:#e5e5ea;}
#mo-vault-store .vault-chip-btn.is-primary{background:#e8f1ff;color:#0a66ff;}
#mo-vault-store .vault-chip-btn.is-danger{background:#fff0f2;color:#b42318;}
#mo-vault-store .vault-empty{
  text-align:center;padding:18px 8px;font-size:13px;color:#8e8e93;line-height:1.45;
}
#mo-vault-store .vault-banner-btn{
  display:inline-flex;margin-left:8px;border:none;border-radius:999px;
  padding:4px 10px;background:rgba(255,255,255,.7);color:#1d4ed8;
  font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;
}
#mo-vault-store #vault-edit-banner{
  align-items:center;flex-wrap:wrap;gap:4px;
}
.tab-row{display:flex;gap:4px;margin-bottom:18px;background:var(--bg);border-radius:8px;padding:3px;}
.tab-btn{flex:1;padding:7px;border:none;border-radius:6px;cursor:pointer;font-size:11px;font-weight:600;background:transparent;color:var(--text3);}
.tab-btn.active{background:var(--surface);color:var(--text);}
.prog-tab-btn{flex:1;padding:7px;border:none;border-radius:6px;cursor:pointer;font-size:11px;font-weight:600;background:transparent;color:var(--text3);}
.prog-tab-btn.active{background:var(--surface);color:var(--text);}
.nph-box{width:440px;max-width:calc(100vw - 32px);}
.nph-hdr{display:flex;align-items:center;margin-bottom:10px;gap:8px;}
.nph-close{background:var(--surface2);border:1px solid var(--border);border-radius:7px;padding:3px 10px;cursor:pointer;font-size:12px;color:var(--text2);}
.nph-tab-row{display:flex;gap:3px;margin-bottom:12px;background:var(--bg);border-radius:8px;padding:3px;}
.nph-tab-btn{flex:1;padding:7px 4px;border:none;border-radius:6px;cursor:pointer;font-size:10px;font-weight:600;background:transparent;color:var(--text3);white-space:nowrap;}
.nph-tab-btn.active{background:var(--surface);color:var(--text);}
.nph-body{min-height:120px;}
.nph-panel{display:none;}
.nph-panel.active{display:block;}
.nph-scan-node{font-size:11px;color:var(--text2);margin-bottom:10px;padding:8px 10px;background:var(--surface2);border-radius:8px;}
.nph-scan-link{background:none;border:none;padding:0;margin:0;font-size:inherit;color:var(--accent);font-weight:600;cursor:pointer;text-decoration:underline;}
.nph-type-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;}
.nd-ghost-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;text-align:center;padding:16px;line-height:1.5;pointer-events:none;}
.nph-layer-hint{font-size:10px;color:var(--text3);margin-bottom:10px;line-height:1.5;}
.nph-context{font-size:11px;color:var(--text2);background:var(--surface2);border-radius:8px;padding:8px 10px;margin-bottom:10px;}
.programs-hub-list{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow-y:auto;}
.ph-card{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:10px 12px;}
.ph-card-context{border-color:var(--accent);}
.ph-card-hdr{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.ph-card-title{flex:1;font-size:12px;font-weight:700;}
.ph-card-badge{font-size:9px;font-weight:600;color:var(--text3);background:var(--bg);border:1px solid var(--border);border-radius:20px;padding:1px 7px;}
.ph-section{font-size:9px;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.5px;margin:8px 0 4px;}
.ph-components,.ph-nodes{display:flex;flex-direction:column;gap:4px;}
.ph-comp-row,.ph-node-row{display:flex;align-items:center;gap:6px;font-size:11px;padding:4px 6px;background:var(--surface2);border-radius:6px;}
.ph-comp-kw{color:var(--text3);font-size:10px;margin-left:auto;}
.ph-node-row input{margin:0;}
.ph-node-unverified{color:#c05621;font-size:9px;}
.ph-card-actions{display:flex;gap:6px;margin-top:8px;}
.ph-scan-existing{font-size:10px;color:#16a34a;margin-top:4px;}
.ph-scan-combine-row{margin:6px 0 2px;padding:8px 10px;background:#f8fafc;border:1px dashed var(--border);border-radius:8px;font-size:10px;}
.tab-c{display:none;}.tab-c.active{display:block;}
.fl{font-size:9px;font-weight:600;letter-spacing:.8px;color:var(--text3);text-transform:uppercase;display:block;margin-bottom:5px;}
.fi{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:7px;font-family:"DM Mono",monospace;font-size:12px;background:var(--bg);color:var(--text);outline:none;margin-bottom:12px;}
.fi:focus{border-color:var(--accent);}
.type-row{display:flex;gap:6px;margin-bottom:12px;}
.type-btn{flex:1;padding:7px;border:1.5px solid var(--border);border-radius:7px;cursor:pointer;font-size:11px;font-weight:600;background:var(--bg);color:var(--text2);text-align:center;}
.type-btn.sel{border-color:#1a1a1a;background:#1a1a1a;color:#fff;}
.type-list{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;max-height:300px;overflow-y:auto;}
.type-opt{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border:1.5px solid var(--border);border-radius:8px;cursor:pointer;background:var(--bg);}
.type-opt input{position:absolute;opacity:0;pointer-events:none;}
.type-opt.sel{border-color:#1a1a1a;background:var(--surface2);}
.type-opt.soon{cursor:not-allowed;opacity:.55;}
.type-opt-main{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text);}
.type-opt-ico{font-size:14px;}
.type-opt-soon{margin-left:auto;font-size:9px;font-weight:600;color:var(--text3);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:1px 7px;}
.type-opt-ex{font-size:10px;color:var(--text3);padding-left:20px;}
.mo-acts{display:flex;gap:8px;margin-top:4px;}
.btn-c{flex:1;padding:9px;border:1px solid var(--border);border-radius:7px;background:transparent;cursor:pointer;font-size:12px;color:var(--text2);}
.btn-s{flex:1;padding:9px;border:none;border-radius:8px;background:#1a1a1a;color:#fff;cursor:pointer;font-size:12px;font-weight:600;}
.msg{font-size:11px;margin-bottom:10px;min-height:16px;}
.sc-box{background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:9px;font-size:8px;font-family:"DM Mono",monospace;color:var(--text2);white-space:pre-wrap;line-height:1.6;margin-top:8px;}
/* ADB Panel - 뉴모피즘 크림 스타일 */
:root{
  --neu:#E8E4D9;
  --neu-card:#ECEADF;
  --neu-dk:#C9C5BB;
  --neu-lt:#F6F2E8;
  --neu-txt:#2C2A25;
  --neu-txt2:#7A7669;
  --neu-acc:#5C6B4E;
}
.adb-panel{background:var(--neu);border:none;border-radius:20px;margin-bottom:18px;overflow:hidden;box-shadow:6px 6px 16px var(--neu-dk),-6px -6px 16px var(--neu-lt);}
.adb-ph{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid rgba(0,0,0,.06);}
.adb-pt{font-size:11px;font-weight:700;color:var(--neu-txt);}
.adb-badge{background:#e63946;color:#fff;font-size:7px;padding:1px 5px;border-radius:3px;font-family:"DM Mono",monospace;}
.adb-acts{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap;}
.adb-gb{display:flex;overflow-x:auto;gap:5px;padding:8px 12px;background:var(--neu);border-bottom:1px solid rgba(0,0,0,.06);scrollbar-width:none;}
.adb-gb::-webkit-scrollbar{display:none;}
.adb-gt{padding:6px 14px;border:none;border-radius:20px;background:transparent;font-size:10px;font-weight:600;color:var(--neu-txt2);cursor:pointer;white-space:nowrap;font-family:"DM Sans",sans-serif;transition:all .2s;}
.adb-gt.active{background:var(--neu);color:var(--neu-txt);font-weight:700;box-shadow:4px 4px 8px var(--neu-dk),-4px -4px 8px var(--neu-lt);}
.adb-gt:hover:not(.active){color:var(--neu-txt);}
.adb-ca{padding:8px;}
.adb-cg{display:flex;flex-wrap:wrap;gap:6px;}
/* 정사각형 카드 - 단순, 테두리색 없음 */
.adb-cb{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:7px 7px 26px;cursor:default;text-align:left;transition:box-shadow .15s;display:flex;flex-direction:column;gap:2px;width:76px;height:90px;box-sizing:border-box;}
.adb-cb.adb-cb-readonly{padding-bottom:7px;height:auto;min-height:72px;}
.adb-cb:hover{box-shadow:0 2px 8px rgba(0,0,0,.10);}
.cb-all{position:absolute;top:4px;right:4px;background:#e63946;color:#fff;font-size:6px;padding:1px 3px;border-radius:2px;font-family:"DM Mono",monospace;}
.cb-id{font-family:"DM Mono",monospace;font-size:7px;font-weight:600;color:var(--text3);opacity:.7;line-height:1;}
.cb-lbl{font-size:10px;font-weight:700;color:var(--text);line-height:1.25;word-break:keep-all;}
.cb-desc{font-size:7px;color:var(--text3);line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}

/* PC / Mobile 명령 센터 — 개수만 보이고 카드가 안 보이는 문제 방지(아이콘 타일 + 대비) */
#pc-cmd-center,
#mobile-cmd-center{overflow:visible;}
/* Scroll/grid paging owned by dash-v2 .dv2-cmd-box (one row + pagination). */
#pc-cmd-center .adb-ca,
#mobile-cmd-center .adb-ca{
  max-height:none;
  overflow:visible;
  padding:10px 12px 14px;
  background:rgba(255,255,255,.35);
}
#pc-cmd-center .adb-cg,
#mobile-cmd-center .adb-cg{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  overflow:hidden;
}
#pc-cmd-center .adb-cb.dv2-cmd-tile,
#mobile-cmd-center .adb-cb.dv2-cmd-tile{
  width:108px;
  max-width:108px;
  min-width:108px;
  height:auto;
  min-height:138px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.06);
  padding:12px 10px 10px;
  gap:6px;
  align-items:center;
  text-align:center;
  cursor:grab;
  transition:transform .12s,box-shadow .12s,border-color .12s;
}
#pc-cmd-center .adb-cb.dv2-cmd-tile:hover,
#mobile-cmd-center .adb-cb.dv2-cmd-tile:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--cmd-accent,#12b76a) 45%,#d1d5db);
  box-shadow:0 8px 18px rgba(16,24,40,.10);
}
#pc-cmd-center .dv2-cmd-tile .dv2-cmd-ico,
#mobile-cmd-center .dv2-cmd-tile .dv2-cmd-ico{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;font-size:18px;line-height:1;
  background:linear-gradient(145deg,color-mix(in srgb,var(--cmd-accent,#12b76a) 22%,#fff),#fff);
  border:1px solid color-mix(in srgb,var(--cmd-accent,#12b76a) 28%,#e5e7eb);
}
#pc-cmd-center .dv2-cmd-tile .cb-lbl,
#mobile-cmd-center .dv2-cmd-tile .cb-lbl{
  font-size:12px;font-weight:800;color:#111827;line-height:1.25;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#pc-cmd-center .dv2-cmd-tile .cb-id,
#mobile-cmd-center .dv2-cmd-tile .cb-id{
  font-size:9px;font-weight:700;color:#6b7280;opacity:1;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#pc-cmd-center .dv2-cmd-tile .cb-desc,
#mobile-cmd-center .dv2-cmd-tile .cb-desc{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:9px;font-weight:600;color:#6b7280;line-height:1.3;
}
#pc-cmd-center .dv2-cmd-tile .cb-tap-hint,
#mobile-cmd-center .dv2-cmd-tile .cb-tap-hint{display:none;}
#pc-cmd-center .adb-gt .dv2-cmd-cnt,
#mobile-cmd-center .adb-gt .dv2-cmd-cnt{font-size:10px;opacity:.75;font-weight:700;}
/* 하단 버튼 4개가 카드 너비에 꽉 차게 */
.cb-foot{position:absolute;bottom:0;left:0;right:0;display:flex;height:22px;border-top:1px solid var(--border);border-radius:0 0 10px 10px;overflow:hidden;}
.cb-run,.cb-fb{flex:1;height:100%;border:none;border-right:1px solid var(--border);background:var(--surface2);cursor:pointer;font-size:10px;display:flex;align-items:center;justify-content:center;padding:0;transition:background .1s;color:var(--text2);}
.cb-fb:last-child,.cb-run:last-child{border-right:none;}
.cb-sep{display:none;}
.cb-run:hover{background:#e8f5e9;color:#2a7d4f;}
.cb-fb.edit:hover{background:#e8eef8;color:#3a6bc4;}
.cb-fb.dup:hover{background:#f0f8e8;color:#4a7a2a;}
.cb-fb.del:hover{background:#fde8e8;color:#c0392b;}
.cb-run:active,.cb-fb:active{opacity:.7;}
/* 플로우 카드 */
.flow-grid{
  display:flex;flex-wrap:nowrap;gap:10px;align-items:stretch;
  overflow:hidden;padding-bottom:4px;width:100%;
}
.flow-grid .flow-card{flex-shrink:0;box-sizing:border-box;}
/* 플로우 인라인 에디터 슬롯 — PC 타임라인 명령 카드와 동일 톤 */
.fe-slot{width:100px;flex-shrink:0;border:1.5px dashed var(--border);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--text3);cursor:default;transition:all .2s;min-height:64px;position:relative;background:var(--surface);}
.fe-slot.fe-slot-drop{align-items:center;justify-content:center;width:52px;}
.fe-slot.filled,.fe-slot.fe-slot-card{border-style:solid;border-color:var(--accent);background:var(--bg);flex-direction:column;align-items:stretch;justify-content:flex-start;padding:5px 5px 4px;min-height:110px;width:100px;border-radius:9px;overflow:visible;box-sizing:border-box;}
.fe-slot.drag-over{border-color:var(--accent);background:#f0fdf4;}
.fe-slot-draggable{cursor:grab;}
.fe-slot-draggable:active{cursor:grabbing;}
.fe-slot-xn-badge{position:absolute;top:3px;left:3px;z-index:3;font-size:8px;font-weight:800;line-height:1;padding:2px 4px;border-radius:4px;background:var(--accent);color:#fff;pointer-events:none;letter-spacing:-.3px;}
.fe-slot-top{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0;width:100%;height:18px;flex-shrink:0;margin-bottom:2px;}
.fe-slot.is-repeated .fe-slot-ord{padding-left:22px;}
.fe-slot-ord{font-size:9px;font-weight:700;color:var(--accent);min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1;}
.fe-slot-top-acts{display:flex;align-items:center;gap:2px;flex-shrink:0;}
.fe-slot-name{display:block;width:100%;font-size:10px;font-weight:600;color:var(--text);min-width:0;max-width:100%;height:1.25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;line-height:1.25;margin:1px 0 2px;}
.fe-slot-name.fe-slot-clickable{cursor:pointer;border-radius:3px;}
.fe-slot-name.fe-slot-clickable:hover{color:var(--accent);}
.fe-slot-dur{display:block;width:100%;font-size:8px;color:var(--accent);font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2;margin-bottom:2px;}
.fe-slot-hdr{display:none;}
.fe-slot-lbl{font-size:9px;font-weight:600;color:var(--text);text-align:center;line-height:1.25;word-break:keep-all;}
.fe-slot-del{position:static;width:16px;height:16px;border:none;border-radius:3px;background:#fee2e2;color:var(--danger);font-size:9px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;}
.fe-slot-main.fe-slot-clickable,.fe-slot-name.fe-slot-clickable{cursor:pointer;}
.fe-slot-main.fe-slot-clickable:hover{background:var(--surface2);border-radius:4px;}
.fe-slot-param-hint{font-size:8px;color:var(--accent);line-height:1.2;font-weight:600;}
.fe-slot-param-none{font-size:8px;color:var(--text3);line-height:1.2;}
.fe-slot-param-line{display:block;font-size:8px;color:var(--text2);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fe-slot-main{flex:1;min-height:14px;width:100%;padding:1px 0;margin-bottom:2px;}
.fe-slot-gear,.fe-slot-copy{position:static;flex-shrink:0;width:16px;height:16px;border:1px solid var(--border);border-radius:4px;background:var(--surface2);color:var(--text2);font-size:0;line-height:0;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;z-index:2;}
.fe-slot-gear-icon,.fe-slot-copy-icon{display:block;pointer-events:none;width:10px;height:10px;}
.fe-slot-gear:hover,.fe-slot-copy:hover{color:var(--accent);border-color:var(--accent);background:var(--surface);}
.fe-slot-repeat{display:flex;align-items:center;justify-content:flex-start;gap:2px;margin-top:2px;font-size:8px;color:var(--text2);min-width:0;width:100%;height:18px;flex-shrink:0;}
.fe-slot-rep-btn{width:16px;height:16px;padding:0;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:11px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.fe-slot-rep-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent);}
.fe-slot-rep-btn:disabled{opacity:.35;cursor:default;}
.fe-slot-rep-val{font-size:8px;font-weight:700;color:var(--text2);min-width:18px;text-align:center;line-height:1;}
.fe-slot-opts-menu{display:none;position:fixed;min-width:118px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.12);z-index:1200;padding:4px;}
.fe-slot-menu-item{display:block;width:100%;border:none;background:transparent;text-align:left;font-size:9px;color:var(--text);padding:6px 8px;border-radius:5px;cursor:pointer;}
.fe-slot-menu-item:hover{background:var(--surface2);color:var(--accent);}
.fe-slot-repeat-panel{display:none;padding:4px 6px 6px;border-top:1px dashed var(--border);}
.fe-slot-repeat-fields{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;margin-bottom:4px;}
.fe-slot-menu-actions{display:flex;gap:4px;justify-content:flex-end;}
.fe-slot-menu-apply,.fe-slot-menu-clear{border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text2);font-size:8px;padding:2px 6px;cursor:pointer;}
.fe-slot-menu-apply{color:var(--accent);border-color:var(--accent);}
.fe-slot-rep-interval,.fe-slot-rep-count{width:34px;border:1px solid var(--border);border-radius:4px;font-size:8px;text-align:center;padding:2px;background:var(--bg);color:var(--text);}
.fe-slot-rep-unit,.fe-slot-rep-sep{font-size:8px;color:var(--text3);line-height:1.2;}
.fe-slot-before{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:flex-start;gap:4px;padding:1px 0;cursor:pointer;user-select:none;background:transparent;border:none;}
.fe-slot-delay-mode{
  flex-shrink:0;border:1px solid var(--border);border-radius:4px;background:var(--surface2);color:var(--text2);
  font-size:8px;font-weight:700;line-height:1;padding:2px 4px;cursor:pointer;
}
.fe-slot-delay-mode.is-random{border-color:rgba(10,102,255,.45);color:#0a66ff;background:rgba(10,102,255,.08);}
.fe-slot-before-lbl{font-size:8px;color:var(--text2);white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis;max-width:100%;cursor:pointer;}
.fe-slot-before:hover .fe-slot-before-lbl{color:var(--accent);}
.fe-slot-before-inp{width:52px;border:1px solid var(--accent);border-radius:4px;font-size:9px;text-align:center;padding:2px;background:var(--bg);color:var(--text);}
.fe-add-slot{width:52px;flex-shrink:0;border:1.5px dashed var(--border);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--text3);cursor:pointer;min-height:64px;background:transparent;transition:all .15s;}
.fe-add-slot:hover{border-color:var(--accent);color:var(--accent);}
.fe-slot-drop{flex-shrink:0;flex-direction:column;gap:2px;padding:6px 4px;}
.fe-drop-lbl{display:block;line-height:1.2;text-align:center;}
.fe-slot-test-btn{display:block;width:100%;margin-top:4px;padding:3px 0;border:1px solid var(--accent);border-radius:5px;background:var(--surface);color:var(--accent);font-size:9px;font-weight:700;cursor:pointer;line-height:1.2;flex-shrink:0;}
.fe-slot-test-btn:hover:not(:disabled){background:var(--accent);color:#fff;}
.fe-slot-test-btn:disabled{opacity:.55;cursor:wait;}
.fe-slot.is-testing{border-color:#e9a23b;}
.fe-slot-test-result{display:none;width:100%;margin-top:3px;padding:3px 4px;border-radius:5px;background:var(--surface2);font-size:8px;line-height:1.3;color:var(--text2);box-sizing:border-box;word-break:break-word;}
.fe-slot-test-result.is-visible{display:block;}
.fe-slot-test-result.is-running{color:#b45309;background:#fff7ed;}
.fe-slot-test-result.is-success{color:#166534;background:#f0fdf4;}
.fe-slot-test-result.is-failed{color:#b91c1c;background:#fef2f2;}
.fe-slot-test-icon{margin-right:1px;}
.fe-slot-test-err{margin-top:2px;font-size:8px;opacity:.9;max-height:2.6em;overflow:hidden;}
.flow-step-scan-box{border:1px solid var(--border);border-radius:8px;background:var(--surface2);padding:8px;margin-bottom:10px;}
.flow-scan-image-lang-hint{font-size:10px;color:var(--text3);margin-top:6px;line-height:1.45;max-width:42em;}
.flow-step-scan-summary{font-size:11px;color:var(--text);line-height:1.4;margin-bottom:6px;word-break:break-word;}
.flow-step-scan-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:1px solid var(--accent);border-radius:7px;background:var(--surface);color:var(--accent);font-size:11px;font-weight:700;cursor:pointer;}
.flow-step-scan-btn:hover{background:var(--accent);color:#fff;}
.flow-step-scan-hint{margin-top:6px;font-size:9px;color:var(--text3);line-height:1.35;}
.flow-step-scan-thumb{margin:6px 0 8px;}
.flow-step-scan-thumb img{max-width:120px;max-height:72px;border:1px solid var(--border);border-radius:6px;display:block;background:#000;}
.flow-scan-inline{margin-top:8px;}
.flow-scan-radios{display:flex;gap:12px;flex-wrap:wrap;}
.flow-scan-radio{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--text);cursor:pointer;}
.flow-scan-radio input{accent-color:var(--accent);}
.flow-scan-back{margin-top:8px;border:none;background:transparent;color:var(--text3);font-size:11px;cursor:pointer;padding:0;}
.flow-scan-back:hover{color:var(--accent);}
.fe-slot-thumb-wrap{display:block;margin-top:2px;}
.fe-slot-thumb{max-width:100%;max-height:48px;border-radius:4px;border:1px solid var(--border);display:block;background:#111;}
.flow-scan-hint{font-size:11px;color:var(--text2);margin:0 0 10px;line-height:1.4;}
.flow-scan-choices{display:flex;flex-direction:column;gap:8px;}
.flow-scan-choice{
  display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;
  text-align:left;padding:10px 12px;border:1px solid var(--border);border-radius:8px;
  background:var(--surface);color:var(--text);cursor:pointer;
}
.flow-scan-choice:hover:not(:disabled):not(.is-disabled){border-color:var(--accent);background:var(--surface2);}
.flow-scan-choice strong{font-size:12px;font-weight:700;}
.flow-scan-choice span{font-size:10px;color:var(--text3);line-height:1.35;}
.flow-scan-choice:disabled,
.flow-scan-choice.is-disabled{
  opacity:.45;cursor:not-allowed;pointer-events:none;
}
.prog-alias-field{position:relative;margin-bottom:8px;}
/* In-flow list (not absolute) so parent .mo-box overflow does not clip suggestions / hide Apply */
.prog-alias-suggest{position:static;left:auto;right:auto;top:auto;z-index:auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-top:6px;max-height:min(200px,36vh);overflow-y:auto;box-shadow:none;}
.prog-alias-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:none;background:transparent;padding:8px 10px;text-align:left;cursor:pointer;font-size:11px;color:var(--text);}
.prog-alias-item:hover{background:var(--surface2);}
.prog-alias-item-alias{font-weight:600;}
.prog-alias-item-exe{font-family:"DM Mono",monospace;font-size:10px;color:var(--text3);}
/* Flow step param editor: keep footer visible; scroll long schemas / alias lists */
#mo-flow-step-edit{z-index:1100;padding:16px;align-items:center;justify-content:center;box-sizing:border-box;background:rgba(15,23,42,.28);backdrop-filter:blur(2px);}
#mo-flow-step-edit .flow-step-edit-box{
  width:min(400px,calc(100vw - 28px));max-width:96vw;max-height:min(90vh,calc(100dvh - 24px));
  display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;
  background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:20px;
  padding:22px 20px 16px;
  box-shadow:0 18px 50px rgba(15,23,42,.14),0 2px 8px rgba(15,23,42,.06);
  transition:width .18s ease;
}
#mo-flow-step-edit .flow-step-edit-box.is-guide-open{
  width:min(760px,calc(100vw - 28px));
}
@media (max-width:720px){
  #mo-flow-step-edit .flow-step-edit-box.is-guide-open{
    width:min(400px,calc(100vw - 28px));
  }
  .flow-step-edit-body{flex-direction:column;}
  .flow-step-edit-guide{
    flex:0 0 auto;max-height:38vh;border-left:none;border-top:1px solid #e2e8f0;
    padding:12px 0 4px;margin-top:4px;
  }
}
.flow-step-edit-hdr{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px;flex-shrink:0;}
.flow-step-edit-hdr .mo-title{font-size:15px;font-weight:700;letter-spacing:-.01em;color:#0f172a;line-height:1.35;min-width:0;}
.flow-step-edit-hdr .fsp-hdr-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.flow-step-guide-btn{
  flex-shrink:0;align-self:flex-start;margin-top:1px;
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;
  padding:5px 10px;cursor:pointer;font-size:11px;font-weight:700;color:#334155;
  letter-spacing:.01em;line-height:1.2;
}
.flow-step-guide-btn:hover{background:#f1f5f9;border-color:#cbd5e1;}
.flow-step-guide-btn.is-active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;}
.flow-step-edit-close{
  flex-shrink:0;align-self:flex-start;margin-top:1px;
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;
  padding:4px 10px;cursor:pointer;font-size:12px;color:#64748b;
}
.flow-step-edit-close:hover{background:#f1f5f9;color:#0f172a;}
.flow-step-edit-body{display:flex;gap:14px;flex:1 1 auto;min-height:0;overflow:hidden;}
.flow-step-edit-fields{flex:1 1 52%;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding-right:2px;margin-bottom:6px;-webkit-overflow-scrolling:touch;}
.flow-step-edit-guide{
  flex:1 1 48%;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;
  border-left:1px solid #e2e8f0;padding:0 0 4px 14px;margin-bottom:6px;
  -webkit-overflow-scrolling:touch;
}
.flow-step-edit-guide[hidden]{display:none !important;}
.fsg-section{margin:0 0 14px;}
.fsg-section:last-child{margin-bottom:0;}
.fsg-h{
  margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.03em;
  text-transform:uppercase;color:#64748b;
}
.fsg-p{margin:0 0 6px;font-size:12px;line-height:1.55;color:#334155;}
.fsg-p:last-child{margin-bottom:0;}
.fsg-list{margin:0;padding-left:16px;font-size:12px;line-height:1.55;color:#334155;}
.fsg-list li{margin:0 0 4px;}
.fsg-param{
  margin:0 0 8px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;
}
.fsg-param-name{font-size:11px;font-weight:800;color:#0f172a;margin:0 0 4px;}
.fsg-param-key{font-family:"DM Mono",ui-monospace,monospace;font-weight:600;color:#64748b;font-size:10px;}
.fsg-ex{
  display:inline-block;margin-top:4px;padding:2px 6px;border-radius:6px;
  background:#fff;border:1px solid #e2e8f0;font-family:"DM Mono",ui-monospace,monospace;
  font-size:10px;color:#1d4ed8;word-break:break-all;
}

.fsg-legacy-pill{
  display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.02em;vertical-align:middle;
  color:#9a3412;background:#ffedd5;border:1px solid #fb923c;
}
.fsg-empty{font-size:12px;line-height:1.5;color:#64748b;padding:8px 0;}
.fsg-note{font-size:11px;line-height:1.5;color:#64748b;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0;}
.fsp-pill{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:700;letter-spacing:.02em;line-height:1;
  padding:5px 9px;border-radius:999px;white-space:nowrap;
  background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;
}
.fsp-pill-ok{background:#ecfdf5;color:#047857;border-color:#a7f3d0;}
.fsp-pill-bad{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.fsp-pill-path{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}
.fsp-pill-prog{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
.fsp-pill-req{background:#f8fafc;color:#64748b;border-color:#e2e8f0;}
.fsp-icon{
  width:22px;height:22px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;flex-shrink:0;
}
.flow-step-edit-fields .fsp-field{margin:0 0 14px;}
.flow-step-edit-fields .fsp-field-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.flow-step-edit-fields .fl{
  margin:0;font-size:10px;font-weight:700;letter-spacing:.02em;line-height:1;
  padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;
  display:inline-flex;align-items:center;
}
.flow-step-edit-fields .fg-inp,
.flow-step-edit-fields textarea.fg-inp,
.flow-step-edit-fields select.fg-inp{
  margin-bottom:0;width:100%;box-sizing:border-box;
  border-radius:12px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;
  padding:10px 12px;font-size:13px;transition:border-color .15s,box-shadow .15s;
}
.flow-step-edit-fields .fg-inp:focus,
.flow-step-edit-fields textarea.fg-inp:focus{
  outline:none;border-color:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.25);
}
.flow-step-edit-acts{
  flex-shrink:0;margin-top:10px;padding-top:14px;
  border-top:1px solid #f1f5f9;display:flex;gap:8px;justify-content:flex-end;
}
.flow-step-edit-acts .btn-c{
  border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#475569;
  padding:8px 14px;font-weight:600;
}
.flow-step-edit-acts .btn-s{
  border-radius:999px;border:none;background:#0f172a;color:#fff;
  padding:8px 16px;font-weight:700;
}
#mo-flow-step-edit .flow-step-scan-box{
  border-radius:14px;border:1px solid #e2e8f0;background:#f8fafc;padding:12px;margin-bottom:12px;
}
.flow-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px;width:100px;cursor:pointer;transition:box-shadow .15s;position:relative;}
.flow-fav-btn{position:absolute;top:5px;right:5px;background:none;border:none;font-size:13px;color:var(--text3);cursor:pointer;padding:1px;line-height:1;z-index:2;}
.flow-fav-btn.on{color:#f4a261;}
.flow-fav-btn:hover{color:#f4a261;}
.flow-source-badge{font-size:8px;font-weight:700;line-height:1;padding:2px 5px;border-radius:4px;letter-spacing:-.2px;pointer-events:none;white-space:nowrap;}
.flow-source-badges{position:absolute;top:4px;left:4px;z-index:2;display:flex;gap:3px;flex-wrap:wrap;max-width:calc(100% - 36px);}
.flow-source-badge-purchased{background:#1a1a1a;color:#fff;}
.flow-source-badge-ai{background:#0f766e;color:#fff;}
.flow-source-badge-market{background:#ea580c;color:#fff;}
.fe-slots-locked{min-height:64px;display:flex;align-items:center;justify-content:center;padding:12px 16px;border:1px dashed var(--border);border-radius:8px;background:var(--surface2);color:var(--text3);font-size:11px;text-align:center;}
.flow-card.is-purchased .flow-card-id{margin-top:10px;}
.flow-card.is-ai .flow-card-id,.flow-card.has-source-badge .flow-card-id{margin-top:10px;}
.flow-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.1);}
.flow-card-id{font-family:"DM Mono",monospace;font-size:7px;color:var(--text3);margin-bottom:2px;}
.flow-card-name{font-size:10px;font-weight:700;color:var(--text);margin-bottom:3px;line-height:1.2;word-break:keep-all;}
.flow-card-author{font-size:8px;color:var(--text3);margin-bottom:2px;line-height:1.2;word-break:break-all;}
.ss-official-badge{
  display:inline-flex;align-items:center;gap:3px;
  font-size:10px;font-weight:600;letter-spacing:.01em;
  color:#0f4c3a;background:rgba(15,76,58,.08);
  border:1px solid rgba(15,76,58,.18);border-radius:4px;
  padding:1px 6px;line-height:1.35;vertical-align:middle;
  max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ss-official-badge-mark{font-size:9px;opacity:.85;}
.flow-card-author .ss-official-badge{font-size:9px;padding:0 5px;margin-left:2px;}
.ub-shop-identity .ss-official-badge{margin-top:4px;display:inline-flex;}
.flow-card-author .seller-shop-link,
.flow-market-meta .seller-shop-link{
  color:var(--accent);
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}
.flow-card-author .seller-shop-link:hover,
.flow-market-meta .seller-shop-link:hover{text-decoration:underline;}
.flow-card-target{font-size:8px;color:var(--text2);margin-bottom:2px;}
.flow-card-sch{font-size:8px;color:var(--accent);font-weight:600;margin-bottom:4px;}
.pc-tl-palette-card.is-purchased .flow-card-id{margin-top:12px;}
.pc-tl-block .flow-source-badge{font-size:7px;padding:1px 4px;}
.pc-tl-block.is-purchased .pc-tl-block-top{padding-left:0;}
.pc-tl-block.is-purchased .pc-tl-block-time{margin-top:0;display:block;max-width:calc(100% - 20px);}
.pc-tl-block.flow-card{min-width:56px;padding:4px 5px;overflow:hidden!important;}
.flow-status{display:inline-block;font-size:8px;padding:1px 6px;border-radius:10px;font-weight:600;}
.flow-status.running{background:#d1fae5;color:#065f46;}
.flow-status.done{background:#e0f2fe;color:#0369a1;}
.flow-status.error{background:#fee2e2;color:#991b1b;}
.flow-status.idle{background:var(--surface2);color:var(--text3);}
.flow-card-foot{display:flex;gap:4px;margin-top:8px;border-top:1px solid var(--border);padding-top:8px;}
.flow-card-btn{flex:1;padding:4px;border:none;border-radius:6px;font-size:11px;cursor:pointer;background:var(--surface2);color:var(--text2);}
.flow-card-btn.run{color:var(--accent);font-weight:700;}
.flow-card-btn:hover{background:var(--border);}
/* 노드카드 스케줄 요약 */
.nd-flow-bar{border-top:1px dashed var(--border);margin-top:6px;padding-top:5px;}
.nd-flow-toggle{display:flex;align-items:center;gap:4px;cursor:pointer;font-size:9px;color:var(--text3);font-weight:600;padding:2px 0;user-select:none;}
.nd-flow-toggle:hover{color:var(--text2);}
.nd-flow-list{margin-top:4px;display:flex;flex-direction:column;gap:2px;}
.nd-flow-row{display:flex;align-items:center;gap:4px;padding:3px 5px;background:var(--bg);border-radius:5px;cursor:pointer;}
.nd-flow-row:hover{background:var(--surface2);}
.nd-flow-serial{font-family:"DM Mono",monospace;font-size:8px;font-weight:700;color:var(--accent);min-width:32px;}
.nd-flow-info{font-size:8px;color:var(--text3);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nd-flow-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;}
.nd-flow-dot.running{background:#10b981;}
.nd-flow-dot.done{background:#3b82f6;}
.nd-flow-dot.error{background:#ef4444;}
.nd-flow-dot.idle{background:var(--text3);opacity:.4;}
.nd-linked-flows{border-top:1px dashed var(--border);margin-top:8px;padding-top:6px;}
.nd-linked-flows-hdr{font-size:9px;font-weight:700;color:var(--text3);margin-bottom:4px;display:flex;align-items:center;gap:4px;}
.nd-linked-flows-more{margin-left:auto;border:none;background:none;padding:0;font-size:8px;font-weight:600;color:var(--accent);cursor:pointer;text-decoration:underline;text-underline-offset:2px;}
.nd-linked-flows-more:hover{opacity:.85;}
.nd-linked-flows-body{display:flex;flex-direction:column;gap:3px;max-height:52px;overflow:hidden;}
.nd-linked-flows-loading,.nd-linked-flows-empty{font-size:8px;color:var(--text3);}
.nd-linked-flow-row{display:flex;align-items:center;gap:4px;padding:2px 4px;background:var(--bg);border:1px solid var(--border);border-radius:5px;}
.nd-linked-flow-meta{font-size:7px;font-weight:600;color:var(--text3);flex-shrink:0;line-height:1.15;max-width:52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nd-linked-flow-info{flex:1;min-width:0;font-size:9px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nd-linked-flow-steps{font-size:8px;font-weight:500;color:var(--text3);margin-left:4px;}
.nd-linked-flow-run{width:14px;height:14px;min-width:14px;border:1px solid var(--accent);border-radius:3px;background:var(--surface);color:var(--accent);font-size:7px;line-height:1;cursor:pointer;flex-shrink:0;padding:0;display:inline-flex;align-items:center;justify-content:center;}
.nd-linked-flow-run:hover{background:var(--accent);color:#fff;}
.nd-linked-flow-run:disabled{opacity:.5;cursor:default;}
.pc-timeline-tabs{display:none;}
.pc-timeline-count{font-weight:500;color:var(--text3);margin-left:4px;}
.pc-timeline-hint{font-weight:500;color:var(--text3);margin-left:8px;font-size:10px;}
.pc-timeline-flow-table{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto;}
.pc-timeline-flow-row{display:grid;grid-template-columns:minmax(0,1fr) 56px 110px 28px;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg);}
.pc-timeline-flow-name{font-size:12px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.pc-timeline-flow-name .fav{color:#e6a700;margin-right:4px;}
.pc-timeline-flow-meta{font-size:11px;color:var(--text3);text-align:right;}
.pc-timeline-flow-run{width:22px;height:22px;border:1px solid var(--accent);border-radius:6px;background:var(--surface);color:var(--accent);font-size:10px;line-height:1;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;justify-self:end;}
.pc-timeline-flow-run:hover{background:var(--accent);color:#fff;}
.pc-timeline-flow-run:disabled{opacity:.5;cursor:default;}
.pc-timeline-flow-empty{font-size:11px;color:var(--text3);padding:8px 0;}
.pc-timeline-box{width:min(900px,calc(100vw - 24px));max-height:90vh;overflow-y:auto;}
.pc-timeline-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;}
.pc-timeline-title{font-size:15px;font-weight:700;}
.pc-timeline-sub{font-size:11px;color:var(--text3);margin-top:4px;}
.pc-timeline-close{border:1px solid var(--border);background:var(--surface2);border-radius:8px;width:30px;height:30px;cursor:pointer;color:var(--text2);}
.pc-tl-v2.pc-timeline-box{position:relative;}
.pc-tl-v2 > .pc-timeline-close{
  position:absolute;top:12px;right:12px;z-index:6;
  width:34px;height:34px;border-radius:10px;font-size:16px;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--border,#e5e7eb);
  box-shadow:0 1px 3px rgba(16,24,40,.08);
}
.pc-tl-v2 > .pc-timeline-close:hover{background:#f3f4f6;color:var(--text,#111827);}
.pc-tl-v2 .pc-tl-topbar{padding-right:44px;}
.pc-timeline-loading,.pc-timeline-error{font-size:12px;color:var(--text3);padding:12px 0;}
.pc-timeline-error{color:var(--danger);}
.pc-timeline-footer{border-top:1px solid var(--border);margin-top:14px;padding-top:12px;}
.pc-timeline-advanced{display:block;}
.pc-timeline-advanced-label{font-size:10px;font-weight:700;color:var(--text3);letter-spacing:.4px;cursor:pointer;user-select:none;}
.pc-timeline-advanced[open] .pc-timeline-advanced-label{margin-bottom:8px;}
.pc-timeline-advanced-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:5px;}
.pc-timeline-advanced-link{font-size:11px;color:var(--text2);background:none;border:none;padding:0;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:2px;width:fit-content;}
.pc-timeline-advanced-link:hover{color:#c8790a;}
.pc-timeline-advanced-hint{font-size:10px;color:var(--text3);line-height:1.45;margin:0;}
.pc-timeline-section{margin-bottom:16px;}
.pc-timeline-section-title{font-size:11px;font-weight:700;color:var(--text2);margin-bottom:8px;}
.pc-timeline-section-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap;}
.pc-timeline-section-title-row .pc-timeline-section-title{margin-bottom:0;}
.pc-tl-toolbar{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.pc-tl-view-tabs{display:inline-flex;border:1px solid var(--border);border-radius:6px;overflow:hidden;}
.pc-tl-view-tab{border:none;background:var(--surface);color:var(--text3);font-size:10px;font-weight:700;padding:4px 10px;cursor:pointer;}
.pc-tl-view-tab.is-active{background:var(--accent);color:#fff;}
.pc-tl-date-row{display:inline-flex;align-items:center;gap:4px;}
.pc-tl-date-input{border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font-size:11px;padding:3px 6px;}
.pc-tl-recurrence-panel{margin-top:6px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface2);}
.pc-tl-recurrence-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:11px;min-width:0;}
.pc-tl-recurrence-title{font-size:11px;font-weight:700;color:var(--text2);white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;}
.pc-tl-recurrence-title #pc-tl-recurrence-flow-name{font-weight:600;color:var(--text);}
.pc-tl-rec-opt{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;cursor:pointer;color:var(--text2);}
.pc-tl-rec-date{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;color:var(--text3);font-size:10px;}
.pc-tl-rec-date input[type="date"]{border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:2px 4px;max-width:118px;}
.pc-tl-weekday-row{display:inline-flex;flex-wrap:nowrap;gap:4px;font-size:10px;align-items:center;}
.pc-tl-weekday-row label{display:inline-flex;align-items:center;gap:2px;cursor:pointer;color:var(--text2);}
.pc-tl-exclude-list{display:inline-flex;flex-wrap:wrap;gap:3px;align-items:center;min-height:0;margin:0;flex:1 1 auto;min-width:0;}
.pc-tl-exclude-chip{font-size:9px;padding:1px 5px;border-radius:4px;background:var(--bg);border:1px solid var(--border);cursor:pointer;line-height:1.3;}
.pc-tl-recurrence-bar .pc-tl-preset-btn{padding:3px 7px;font-size:10px;margin-left:auto;}
.pc-tl-recurrence-bar #pc-tl-rec-exclude-btn{margin-left:0;min-width:22px;padding:3px 6px;}
.pc-tl-recurrence-row{display:none;}
.pc-tl-recurrence-actions{display:none;}
.pc-tl-month-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:10px;}
.pc-tl-month-label{font-size:13px;font-weight:700;}
.pc-tl-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;}
.pc-tl-month-dow{font-size:9px;color:var(--text3);text-align:center;padding:4px 0;}
.pc-tl-month-cell{min-height:52px;border:1px solid var(--border);border-radius:6px;padding:4px;background:var(--bg);cursor:pointer;display:flex;flex-direction:column;gap:2px;}
.pc-tl-month-cell.is-muted{opacity:.35;cursor:default;}
.pc-tl-month-cell.is-today{outline:1px solid var(--accent);}
.pc-tl-month-cell.has-sched{background:var(--surface);}
.pc-tl-month-daynum{font-size:10px;font-weight:700;color:var(--text2);}
.pc-tl-month-dot{font-size:9px;color:var(--accent);font-weight:700;}
.pc-tl-preset-btn{border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text2);font-size:10px;font-weight:600;padding:4px 8px;cursor:pointer;line-height:1.2;white-space:nowrap;}
.pc-tl-preset-btn:hover{border-color:var(--accent);color:var(--accent);}
.pc-tl-preset-btn.is-primary{background:var(--accent);border-color:var(--accent);color:#fff;}
.pc-tl-preset-btn.is-primary:hover{filter:brightness(1.05);color:#fff;}
.tl-preset-node-list label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text);cursor:pointer;padding:4px 6px;border-radius:6px;}
.tl-preset-node-list label:hover{background:var(--surface2);}
.tl-preset-node-list input{accent-color:var(--accent);}
.pc-tl-zoom{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;}
.pc-tl-zoom-btn{width:24px;height:24px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text2);font-size:14px;line-height:1;cursor:pointer;padding:0;}
.pc-tl-zoom-btn:hover{border-color:var(--accent);color:var(--accent);}
.pc-tl-zoom-slider{width:88px;accent-color:var(--accent);cursor:pointer;}
.pc-tl-zoom-label{font-size:10px;font-weight:700;color:var(--text3);min-width:28px;text-align:right;}
.pc-timeline-track-scroll{overflow-x:auto;overflow-y:hidden;border-radius:10px;-webkit-overflow-scrolling:touch;}
.pc-timeline-track-inner{min-width:100%;position:relative;padding-top:4px;}
.pc-timeline-axis{display:flex;justify-content:space-between;font-size:9px;color:var(--text3);margin-bottom:6px;padding:0 2px;width:100%;box-sizing:border-box;}
.pc-timeline-axis span{flex:0 0 auto;transform:translateX(-50%);position:relative;}
.pc-timeline-axis span:first-child{transform:none;}
.pc-timeline-axis span:last-child{transform:translateX(-100%);}
.pc-timeline-track{position:relative;height:110px;border:1px solid var(--border);border-radius:10px;background:linear-gradient(90deg,var(--bg) 0%,var(--surface) 50%,var(--bg) 100%);box-sizing:border-box;overflow:hidden;}
.pc-timeline-track::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent,transparent calc(100%/8 - 1px),rgba(0,0,0,.04) calc(100%/8 - 1px),rgba(0,0,0,.04) calc(100%/8));pointer-events:none;border-radius:10px;}
.pc-timeline-track.pc-tl-drag-over{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
.pc-tl-track-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--text3);pointer-events:none;}
.pc-tl-block{position:absolute;top:8px;left:0;transform:none;min-width:56px;max-height:120px;z-index:2;cursor:grab;padding:4px 5px;margin:0;box-sizing:border-box;overflow:hidden!important;display:block;max-width:100%;}
.pc-tl-block.flow-card{min-width:56px;padding:4px 5px;overflow:hidden!important;}
.pc-tl-block:active{cursor:grabbing;}
.pc-tl-block.is-selected{outline:2px solid var(--accent);z-index:5;}
.pc-tl-block.is-locked{cursor:default;}
.pc-tl-block.is-stacked{min-height:0;}
.pc-tl-block-top{display:flex;align-items:center;justify-content:space-between;gap:2px;margin-bottom:2px;min-width:0;max-width:100%;height:16px;overflow:hidden;}
.pc-tl-block-time{font-size:9px;font-weight:700;color:var(--accent);min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-tl-lock-btn{border:none;background:transparent;padding:0 2px;cursor:pointer;font-size:12px;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;color:inherit;flex-shrink:0;}
.pc-tl-lock-btn:hover{opacity:.85;}
.pc-tl-block-name,.pc-tl-block .pc-tl-block-name{display:block;width:100%;font-size:10px;font-weight:600;min-width:0;max-width:100%;height:1.25em;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;line-height:1.25;}
.pc-tl-block-dur{display:block;width:100%;font-size:8px;color:var(--text3);margin-top:2px;min-width:0;max-width:100%;height:1.2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;}
.pc-tl-xn-badge{position:absolute;top:3px;left:3px;z-index:3;font-size:8px;font-weight:800;line-height:1;padding:2px 4px;border-radius:4px;background:var(--accent);color:#fff;pointer-events:none;letter-spacing:-.3px;max-width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-tl-block.is-repeated .pc-tl-block-top{padding-left:0;}
.pc-tl-block.is-repeated .pc-tl-block-time{margin-top:0;padding-left:22px;}
.pc-tl-block-repeat{display:flex;align-items:center;justify-content:flex-start;gap:2px;margin-top:3px;font-size:8px;color:var(--text2);min-width:0;max-width:100%;height:18px;flex-wrap:nowrap;overflow:visible;flex-shrink:0;}
.pc-tl-block-repeat.is-disabled{opacity:.55;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-tl-repeat-btn{width:16px;height:16px;padding:0;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:11px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.pc-tl-repeat-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent);}
.pc-tl-repeat-btn:disabled{opacity:.35;cursor:default;}
.pc-tl-repeat-val{min-width:18px;text-align:center;font-weight:700;font-size:9px;color:var(--accent);flex-shrink:0;}
.pc-tl-block.is-locked .pc-tl-repeat-btn{display:none;}
/* compact: keep duration + repeat visible (duration grows with ×N) */
.pc-tl-block.is-compact .pc-tl-block-dur{display:block!important;}
.pc-tl-block.is-compact .pc-tl-block-repeat{display:flex!important;}
.pc-tl-block.is-compact .pc-tl-block-name{font-size:9px;}
.pc-tl-block.is-compact .pc-tl-block-dur{font-size:8px;color:var(--accent);font-weight:600;}
.pc-tl-block.is-compact .pc-tl-xn-badge{font-size:7px;padding:1px 3px;}
.pc-tl-block.is-ultra-compact .pc-tl-block-top{margin-bottom:0;}
.pc-tl-block.is-ultra-compact .pc-tl-block-time{font-size:8px;}
.pc-tl-block.is-ultra-compact .pc-tl-lock-btn{font-size:11px;}
.pc-tl-block.has-badge .pc-tl-block-top{padding-top:2px;}
.pc-tl-block.is-purchased .pc-tl-block-time{margin-top:0;}
.pc-tl-block.min-width-ok{min-width:64px;}
.pc-tl-trash{margin-top:8px;padding:8px 10px;border:1px dashed var(--border);border-radius:8px;font-size:11px;color:var(--text3);text-align:center;background:var(--surface2);}
.pc-tl-trash.pc-tl-drag-over{border-color:var(--danger);color:var(--danger);background:#fee2e2;}
.pc-tl-palette{display:block;max-height:none;overflow:visible;}
.pc-tl-palette-row{display:flex;flex-wrap:wrap;gap:8px;}
.pc-tl-palette-card{cursor:grab;width:140px;flex-shrink:0;}
.pc-tl-palette-card:active{cursor:grabbing;}
.pc-tl-palette-card.is-scheduled{outline:1px solid var(--accent);}
.pc-tl-dragging{opacity:.55;}
/* 가로 탭 + 단일 아코디언 패널 (타임라인 · AI Flow 공용) */
.flow-acc{display:flex;flex-direction:column;gap:0;min-width:0;}
.flow-acc-tabs.adb-gb,.flow-acc-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;gap:5px;padding:6px 8px;background:var(--neu);border:1px solid var(--border);border-radius:8px 8px 0 0;scrollbar-width:thin;-webkit-overflow-scrolling:touch;}
.flow-acc-tabs::-webkit-scrollbar{height:4px;}
.flow-acc-tabs .adb-gt{flex:0 0 auto;white-space:nowrap;}
.flow-acc-cnt{font-size:9px;opacity:.6;}
.flow-acc-panel{border:1px solid var(--border);border-top:none;border-radius:0 0 8px 8px;background:var(--surface);padding:8px 10px;max-height:min(240px,36vh);overflow-x:hidden;overflow-y:auto;}
.pc-tl-flow-acc .flow-acc-panel{max-height:min(180px,28vh);}
.flow-cat-acc{margin-bottom:10px;}
.flow-cat-acc .flow-sub-tabs{margin:0 0 8px;border-radius:6px;padding-left:8px;border-left:3px solid var(--accent);}
.flow-cat-acc .flow-grid{max-height:none;}
.flow-cat-row{margin-bottom:4px;}
.flow-cat-row .adb-gb{margin-bottom:0;border-radius:8px;}
.flow-sub-tabs{margin-bottom:10px;border-radius:8px;padding-left:8px;border-left:3px solid var(--accent);}
.pc-timeline-history{display:flex;flex-direction:column;gap:6px;max-height:160px;overflow-y:auto;}
.pc-timeline-history-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg);font-size:10px;}
.pc-timeline-history-row .icon{font-size:12px;flex-shrink:0;}
.pc-timeline-history-row .name{flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-timeline-history-row .time{font-size:9px;color:var(--text3);white-space:nowrap;}
.pc-timeline-history-empty{font-size:11px;color:var(--text3);}

/* ===== Flow Timeline v2 layout ===== */
.pc-tl-v2{width:min(1120px,calc(100vw - 20px));max-height:92vh;padding:16px 18px 14px;}
.pc-tl-v2 .pc-tl-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;flex-wrap:wrap;}
.pc-tl-v2 .pc-tl-identity{display:flex;align-items:flex-start;gap:12px;min-width:0;}
.pc-tl-v2 .pc-tl-node-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#1e293b,#334155);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;box-shadow:0 4px 12px rgba(15,23,42,.18);}
.pc-tl-v2 .pc-tl-identity-text{min-width:0;}
.pc-tl-v2 .pc-tl-node-name{font-size:12px;font-weight:700;color:var(--text2);letter-spacing:.2px;}
.pc-tl-v2 .pc-tl-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px;}
.pc-tl-v2 .pc-timeline-title{font-size:18px;font-weight:800;color:var(--text);letter-spacing:-.3px;}
.pc-tl-v2 .pc-tl-status-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:#dcfce7;color:#166534;border:1px solid #86efac;}
.pc-tl-v2 .pc-tl-status-badge.is-idle{background:var(--surface2);color:var(--text3);border-color:var(--border);}
.pc-tl-v2 .pc-tl-status-badge.is-running{background:#dcfce7;color:#166534;border-color:#86efac;}
.pc-tl-v2 .pc-tl-meta{font-size:11px;color:var(--text3);font-weight:500;}
.pc-tl-v2 .pc-tl-top-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.pc-tl-v2 .pc-tl-toolbar{gap:6px;}
.pc-tl-v2 .pc-timeline-track{border:none;border-radius:12px;background:
  linear-gradient(180deg,rgba(248,250,252,.95),rgba(241,245,249,.9)),
  repeating-linear-gradient(90deg,transparent,transparent calc(100%/24 - 1px),rgba(148,163,184,.18) calc(100%/24 - 1px),rgba(148,163,184,.18) calc(100%/24));
  box-shadow:inset 0 0 0 1px var(--border);}
.pc-tl-v2 .pc-timeline-track::before{display:none;}
.pc-tl-v2 .pc-timeline-axis{font-size:10px;color:var(--text3);margin-bottom:8px;height:16px;}
.pc-tl-v2 .pc-tl-block{border-radius:10px;border:none;color:#fff;box-shadow:0 6px 16px rgba(15,23,42,.16);padding:8px 10px;}
.pc-tl-v2 .pc-tl-block .pc-tl-block-time,
.pc-tl-v2 .pc-tl-block .pc-tl-block-name,
.pc-tl-v2 .pc-tl-block .pc-tl-block-dur,
.pc-tl-v2 .pc-tl-block .pc-tl-block-sub{color:#fff;opacity:.95;}
.pc-tl-v2 .pc-tl-block .pc-tl-lock-btn{color:#fff;}
.pc-tl-v2 .pc-tl-block .pc-tl-repeat-btn{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff;}
.pc-tl-v2 .pc-tl-block .pc-tl-repeat-val{color:#fff;}
.pc-tl-v2 .pc-tl-block .pc-tl-block-repeat{color:rgba(255,255,255,.9);}
.pc-tl-v2 .pc-tl-block-icon{font-size:14px;line-height:1;margin-bottom:4px;}
.pc-tl-v2 .pc-tl-block-sub{font-size:9px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-tl-v2 .pc-tl-drop-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px;}
.pc-tl-v2 .pc-tl-add-drop{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:12px;border:1.5px dashed #94a3b8;border-radius:12px;background:rgba(248,250,252,.7);color:var(--text3);font-size:12px;font-weight:600;transition:border-color .15s,background .15s,color .15s;}
.pc-tl-v2 .pc-tl-add-drop-icon{width:22px;height:22px;border-radius:50%;border:1px dashed currentColor;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;}
.pc-tl-v2 .pc-tl-add-drop.pc-tl-drag-over{border-color:var(--accent);color:var(--accent);background:rgba(200,121,10,.06);}
.pc-tl-v2 .pc-tl-trash{margin-top:0;min-height:56px;display:flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;white-space:nowrap;}
.pc-tl-v2 .pc-tl-bottom-split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,.9fr);gap:14px;align-items:start;}
.pc-tl-v2 .pc-tl-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.pc-tl-v2 .pc-tl-section-head .pc-timeline-section-title{margin-bottom:0;font-size:13px;font-weight:800;color:var(--text);}
.pc-tl-v2 .pc-tl-lib-search{width:min(220px,42vw);border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:11px;padding:6px 10px;}
.pc-tl-v2 .pc-tl-lib-search:focus{outline:none;border-color:var(--accent);}
.pc-tl-v2 .pc-tl-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
.pc-tl-v2 .pc-tl-chip{border:1px solid var(--border);background:var(--surface);color:var(--text2);border-radius:999px;font-size:10px;font-weight:700;padding:5px 10px;cursor:pointer;line-height:1;}
.pc-tl-v2 .pc-tl-chip.is-active{background:var(--text);color:#fff;border-color:var(--text);}
.pc-tl-v2 .pc-tl-palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:min(280px,32vh);overflow-y:auto;padding:2px;}
.pc-tl-v2 .pc-tl-lib-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);cursor:grab;min-height:132px;box-shadow:0 1px 0 rgba(15,23,42,.03);}
.pc-tl-v2 .pc-tl-lib-card:active{cursor:grabbing;}
.pc-tl-v2 .pc-tl-lib-card.is-scheduled{outline:1px solid var(--accent);}
.pc-tl-v2 .pc-tl-lib-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;}
.pc-tl-v2 .pc-tl-lib-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#fff;}
.pc-tl-v2 .pc-tl-lib-name{font-size:12px;font-weight:700;color:var(--text);line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.pc-tl-v2 .pc-tl-lib-author{font-size:10px;color:var(--text3);}
.pc-tl-v2 .pc-tl-lib-spark{display:flex;align-items:flex-end;gap:2px;height:22px;margin-top:auto;}
.pc-tl-v2 .pc-tl-lib-spark i{display:block;width:4px;border-radius:2px 2px 0 0;background:currentColor;opacity:.55;}
.pc-tl-v2 .pc-tl-lib-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px;}
.pc-tl-v2 .pc-tl-lib-runs{font-size:10px;color:var(--text3);font-weight:600;}
.pc-tl-v2 .pc-tl-lib-run{border:none;background:var(--accent);color:#fff;border-radius:7px;font-size:10px;font-weight:700;padding:5px 10px;cursor:pointer;}
.pc-tl-v2 .pc-tl-lib-run:hover{filter:brightness(1.05);}
.pc-tl-v2 .pc-tl-lib-run:disabled{opacity:.5;cursor:default;}
.pc-tl-v2 .pc-tl-view-all{border:none;background:none;color:var(--accent);font-size:11px;font-weight:700;cursor:pointer;padding:0;}
.pc-tl-v2 .pc-timeline-history{max-height:min(280px,32vh);gap:8px;}
.pc-tl-v2 .pc-timeline-history.is-expanded{max-height:min(520px,55vh);}
.pc-tl-v2 .pc-tl-activity-row{display:grid;grid-template-columns:10px 28px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--bg);}
.pc-tl-v2 .pc-tl-act-dot{width:8px;height:8px;border-radius:50%;}
.pc-tl-v2 .pc-tl-act-dot.ok{background:#22c55e;}
.pc-tl-v2 .pc-tl-act-dot.err{background:#ef4444;}
.pc-tl-v2 .pc-tl-act-dot.run{background:#f59e0b;}
.pc-tl-v2 .pc-tl-act-dot.muted{background:#94a3b8;}
.pc-tl-v2 .pc-tl-act-icon{width:28px;height:28px;border-radius:8px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:13px;}
.pc-tl-v2 .pc-tl-act-body{min-width:0;}
.pc-tl-v2 .pc-tl-act-title{font-size:11px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pc-tl-v2 .pc-tl-act-status{font-size:10px;color:var(--text3);margin-top:2px;}
.pc-tl-v2 .pc-tl-act-meta{text-align:right;font-size:10px;color:var(--text3);white-space:nowrap;}
.pc-tl-v2 .pc-tl-exec-opts{display:flex;flex-direction:column;gap:8px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--border);}
.pc-tl-v2 .pc-tl-exec-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:11px;}
.pc-tl-v2 .pc-tl-exec-label{font-size:10px;font-weight:800;color:var(--text2);min-width:52px;text-transform:uppercase;letter-spacing:.3px;}
.pc-tl-v2 .pc-tl-exec-opts .pc-tl-preset-btn{align-self:flex-start;}
.pc-tl-v2 .pc-tl-settings-btn{border:1px solid var(--border);background:var(--surface);color:var(--text2);border-radius:8px;font-size:11px;font-weight:700;padding:7px 12px;cursor:pointer;flex-shrink:0;}
.pc-tl-v2 .pc-tl-settings-btn:hover{border-color:var(--accent);color:var(--accent);}
@media (max-width:860px){
  .pc-tl-v2 .pc-tl-bottom-split{grid-template-columns:1fr;}
  .pc-tl-v2 .pc-tl-drop-row{grid-template-columns:1fr;}
}
/* 플로우 스텝 편집 */
.flow-step-row{display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:7px 10px;margin-bottom:4px;}
.flow-step-num{font-size:9px;font-weight:700;color:var(--text3);min-width:14px;text-align:center;}
.flow-step-cmd{flex:2;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:4px 7px;font-family:"DM Mono",monospace;}
.flow-step-rep{width:42px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:4px 5px;text-align:center;}
.flow-step-delay{width:52px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:4px 5px;text-align:center;}
.flow-step-del{width:20px;height:20px;background:#fee2e2;border:none;border-radius:4px;cursor:pointer;color:var(--danger);font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
/* Node ADB */
.nd-div{border:none;border-top:1px dashed var(--border);margin:7px 0 6px;}
.ph-sec{background:var(--bg);border-radius:7px;padding:6px 8px;margin-bottom:6px;}
.ph-sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px;}
.ph-row{display:flex;align-items:center;gap:4px;padding:2px 0;border-bottom:1px solid var(--border);}
.ph-row:last-child{border:none;}
.ph-dot{width:5px;height:5px;border-radius:50%;background:var(--ok);flex-shrink:0;}
.ph-dot.off{background:var(--text3);}
.sc-btn{font-size:8px;color:var(--accent);background:none;border:1px solid var(--border);border-radius:4px;cursor:pointer;font-weight:600;padding:1px 5px;}
.nd-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--border);margin-bottom:5px;}
.nd-tabs::-webkit-scrollbar{display:none;}
.nt{padding:3px 8px;border:none;background:transparent;font-size:8px;font-weight:600;color:var(--text3);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;}
.nt.active{color:var(--accent);border-bottom-color:var(--accent);}
.nd-ag{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;max-height:none;}
.nd-ab{background:var(--surface2);border:1.5px solid var(--border);border-radius:5px;padding:4px 2px;cursor:pointer;font-size:9px;font-weight:600;text-align:center;transition:all .12s;display:flex;flex-direction:column;align-items:center;}
.nd-ab:hover{transform:translateY(-1px);}
.nab-id{font-family:"DM Mono",monospace;font-size:7px;opacity:.5;}
/* Cmd Modal */
.cmd-mo{background:var(--surface);border-radius:14px;padding:0;width:640px;max-width:96vw;max-height:92vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.2);}
.cmd-mh{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;flex-shrink:0;}
.cmd-mb{padding:16px 20px;overflow-y:auto;flex:1;}
.cmd-mf{padding:12px 20px;border-top:1px solid var(--border);display:flex;gap:8px;flex-shrink:0;}
.fg{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;}
.fg-lbl{font-size:9px;font-weight:600;color:var(--text3);letter-spacing:.5px;text-transform:uppercase;}
.fg-inp{padding:7px 10px;border:1px solid var(--border);border-radius:7px;font-family:"DM Mono",monospace;font-size:11px;background:var(--bg);color:var(--text);outline:none;width:100%;}
.fg-inp:focus{border-color:var(--accent);}
.bg2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.full{grid-column:1/-1;}
.col-row{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px;}
.col-dot{width:22px;height:22px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:all .15s;}
.col-dot.sel{border-color:var(--text);transform:scale(1.15);}
.tgt-box{background:var(--bg);border:1px solid var(--border);border-radius:9px;padding:11px 13px;margin-bottom:12px;}
.tgt-ph-list{display:flex;flex-direction:column;gap:2px;max-height:120px;overflow-y:auto;margin-bottom:8px;}
.tgt-all-row{display:flex;align-items:center;gap:8px;padding-top:6px;border-top:1px solid var(--border);}
.st-sec{background:var(--bg);border:1px solid var(--border);border-radius:9px;padding:12px;margin-bottom:10px;}
.st-sec-t{font-size:9px;font-weight:600;color:var(--text2);text-transform:uppercase;margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;}
.st-lst{display:flex;flex-direction:column;gap:5px;}
.st-row{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:9px 11px;display:flex;flex-direction:column;gap:7px;}
.st-rt{display:flex;align-items:center;gap:7px;}
.st-num{width:18px;height:18px;border-radius:50%;background:var(--text3);color:#fff;font-size:8px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.st-sel{border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:4px 7px;cursor:pointer;font-family:"DM Mono",monospace;}
.rpt-w{display:flex;align-items:center;gap:3px;margin-left:auto;}
.rpt-l{font-size:8px;color:var(--text3);}
.rpt-i{width:40px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:10px;padding:3px 5px;text-align:center;}
.st-del{background:#fee2e2;border:none;border-radius:4px;width:22px;height:22px;cursor:pointer;color:var(--danger);font-size:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.st-ps{display:grid;gap:5px;}
.st-pr{display:flex;align-items:center;gap:7px;}
.st-pl{font-size:9px;color:var(--text3);min-width:45px;font-weight:600;}
.st-pi{flex:1;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font-size:10px;padding:4px 7px;font-family:"DM Mono",monospace;}
.cap-btn{background:var(--accent);color:#fff;border:none;border-radius:5px;padding:4px 9px;font-size:9px;font-weight:600;cursor:pointer;white-space:nowrap;}
.add-st-btn{width:100%;padding:7px;border:1.5px dashed var(--border);border-radius:7px;background:transparent;cursor:pointer;font-size:10px;color:var(--text3);margin-top:7px;}
.add-st-btn:hover{border-color:var(--accent);color:var(--accent);}
.act-help{background:var(--surface2);border-radius:7px;padding:9px 11px;font-size:9px;color:var(--text3);line-height:1.8;font-family:"DM Mono",monospace;}
/* Result Modal */
.res-mo{background:var(--surface);border-radius:14px;padding:22px;width:620px;max-width:95vw;max-height:88vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2);}
.res-nb{background:var(--bg);border:1px solid var(--border);border-radius:9px;overflow:hidden;margin-bottom:7px;}
.res-nh{padding:7px 12px;font-size:10px;font-family:"DM Mono",monospace;font-weight:600;color:var(--accent);background:var(--surface2);display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--border);}
.res-body{padding:7px 12px;}
.res-step{display:flex;gap:7px;padding:2px 0;font-size:9px;font-family:"DM Mono",monospace;border-bottom:1px solid var(--border);}
.res-step:last-child{border:none;}
.rs-ok{color:var(--ok);}.rs-err{color:var(--danger);}
.rs-a{color:var(--text2);min-width:80px;}
.rs-o{color:var(--text3);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Install Modal */
.inst-mo{background:var(--surface);border-radius:14px;padding:22px;width:480px;max-width:95vw;max-height:88vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2);}
/* USB Modal */
.usb-mo{background:var(--surface);border-radius:14px;padding:24px;width:460px;max-width:95vw;box-shadow:0 20px 60px rgba(0,0,0,.2);}
.usb-steps{display:flex;flex-direction:column;gap:8px;margin:14px 0;}
.usb-step{display:flex;gap:10px;background:var(--bg);border-radius:8px;padding:9px 11px;}
.usb-sn{width:20px;height:20px;border-radius:50%;background:#1a1a1a;color:#fff;font-size:10px;font-weight:700;flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.usb-st{font-size:11px;color:var(--text2);line-height:1.5;}
.spin{display:inline-block;width:13px;height:13px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.toast{position:fixed;bottom:18px;right:18px;z-index:9999;padding:9px 16px;border-radius:9px;font-size:12px;font-weight:600;box-shadow:0 4px 20px rgba(0,0,0,.2);max-width:min(420px,calc(100vw - 36px));line-height:1.45;transition:opacity .3s,transform .3s;}
.dash-load-error{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;border:1px solid #e9a23b;border-radius:9px;background:rgba(233,162,59,.12);}
.dash-load-error[hidden]{display:none;}
.dash-load-error-msg{flex:1;min-width:180px;font-size:12px;line-height:1.5;color:var(--text1);}
.dash-load-retry{padding:5px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text1);font-size:11px;font-weight:700;cursor:pointer;}
.dash-load-retry:hover{border-color:var(--accent);color:var(--accent);}
.toast-register-stack{white-space:pre-line;}
.register-result-panel{background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin-bottom:8px;}
.register-result-line{font-size:12px;line-height:1.55;margin:6px 0;}
.register-result-line:first-child{margin-top:0;}
.register-result-line:last-child{margin-bottom:0;}
.ref-banner{padding:10px 24px 4px;display:flex;align-items:center;justify-content:center;gap:32px;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin:20px 0 0;}
.main > .ref-banner{margin-left:0;margin-right:0;}
.ref-col{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.ref-col-lbl{font-size:11px;color:var(--text3);font-weight:600;white-space:nowrap;flex-shrink:0;}
.ref-divider-v{width:1px;height:28px;background:var(--border);flex-shrink:0;}
.ref-scroll{display:flex;gap:6px;overflow-x:auto;overflow-y:visible;padding:4px 2px 8px;scrollbar-width:thin;}
.ref-scroll::-webkit-scrollbar{height:5px;}
.ref-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px;}
.ref-icon{position:relative;width:46px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;background:#fff;border:1px solid var(--border);padding:5px;}
.ref-icon img{max-width:100%;max-height:100%;object-fit:contain;display:block;}
.ref-icon:hover{border-color:var(--text3);}
.ref-tip-fixed{display:none;position:fixed;z-index:9999;background:var(--text);color:var(--surface);font-size:11px;line-height:1.5;padding:9px 11px;border-radius:8px;width:200px;box-shadow:var(--shadow2);pointer-events:none;}
.ref-tip-fixed b{display:block;font-size:12px;margin-bottom:3px;}
.ref-tip-fixed span{opacity:.75;font-size:10px;}
.ref-sep{width:1px;height:24px;background:var(--border);flex-shrink:0;margin:0 2px;align-self:center;}

.sync-row{display:flex;align-items:center;gap:6px;}
.sync-chip{display:flex;align-items:center;gap:5px;background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:4px 10px 4px 9px;cursor:pointer;white-space:nowrap;transition:border-color .15s;}
.sync-chip:hover{border-color:var(--text3);}
.sync-chip .lbl{font-size:10px;color:var(--text3);font-weight:600;}
.sync-chip .val{font-size:11px;font-weight:700;color:var(--text);}
.sync-chip .val .unit{font-size:9px;color:var(--text3);font-weight:600;margin-left:2px;}
.sync-chip.accent .val{color:var(--accent);}
.sync-chip.main-chip{background:var(--text);border-color:var(--text);}
.sync-chip.main-chip .lbl{color:var(--surface);opacity:.7;}
.sync-chip.main-chip .val{color:var(--surface);}
.sync-chip.main-chip .val .unit{color:var(--surface);opacity:.7;}
.usage-chip{display:inline-flex;align-items:center;gap:5px;background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:4px 10px 4px 9px;cursor:pointer;white-space:nowrap;transition:border-color .15s,background .15s;}
.usage-chip .lbl{font-size:10px;color:var(--text3);font-weight:600;}
.usage-chip .val{font-size:11px;font-weight:700;color:var(--text);}
.usage-chip.warn{border-color:#d4a017;background:#fff8e6;}
.usage-chip.warn .val{color:#9a7200;}
.usage-chip.danger{border-color:#e63946;background:#fff0f2;}
.usage-chip.danger .val{color:#e63946;}
.credit-warning-banner{display:flex;align-items:center;gap:10px;padding:8px 24px;background:#fff8e6;border-bottom:1px solid #e8d48b;font-size:12px;color:#6b5600;z-index:99;}
.credit-warning-banner.warn{background:#fff8e6;border-bottom-color:#e8d48b;color:#6b5600;}
.credit-warning-banner.urgent{background:#fff1e6;border-bottom-color:#e8b48b;color:#7a3e00;}
.credit-warning-banner.critical{background:#fdecea;border-bottom-color:#f0b4ad;color:#7a1f1a;}
.credit-warning-banner-buy{border:none;background:#3b5bfd;color:#fff;font-weight:600;cursor:pointer;font-size:12px;padding:5px 12px;border-radius:7px;flex-shrink:0;}
.credit-warning-banner.critical .credit-warning-banner-buy{background:#c62828;}
.credit-warning-banner-close{margin-left:auto;border:none;background:transparent;font-size:16px;line-height:1;cursor:pointer;color:inherit;padding:0 4px;}
.billing-tax-footnote{font-size:10px;color:var(--text3);line-height:1.5;margin:0 0 12px;max-width:100%;}
.checkout-tax-inline{font-size:9px;font-weight:500;color:var(--text3);white-space:nowrap;}
.checkout-btn{line-height:1.35;}
@media (max-width:760px){.sync-row{display:none;}}
.signup-wrap{position:relative;display:inline-block;}
.signup-badge{position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);font-size:9px;font-weight:500;color:var(--text3);background:transparent;border:none;border-radius:0;padding:0;white-space:nowrap;line-height:1.3;pointer-events:none;}
.acct-referral-url{font-size:12px;font-family:monospace;background:var(--surface2);border-radius:8px;padding:10px 12px;word-break:break-all;cursor:pointer;margin-bottom:12px;border:1px solid transparent;transition:background .15s,border-color .15s,color .15s;user-select:all;}
.acct-referral-url:hover{border-color:var(--border);background:var(--bg);}
.acct-referral-url.is-copied{color:var(--ok);border-color:var(--ok);font-weight:600;}
.profile-wrap{position:relative;display:inline-flex;cursor:pointer;}
.profile-avatar{width:30px;height:30px;border-radius:50%;background:var(--text);color:var(--surface);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;overflow:hidden;flex-shrink:0;}
.profile-avatar.sp-avatar{width:72px;height:72px;font-size:26px;background:#cfe3f5;color:var(--text);}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.profile-menu{display:none;position:absolute;top:38px;right:0;z-index:300;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow2);padding:8px;width:200px;}
.profile-menu.settings-panel{width:min(340px,92vw);max-height:min(88vh,720px);overflow-x:hidden;overflow-y:auto;padding:14px 14px 10px;border-radius:16px;}
.profile-menu.show{display:block;}
.profile-menu-hdr{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px;}
.profile-menu-name{font-size:13px;font-weight:700;color:var(--text);}
.profile-menu-mail{font-size:11px;color:var(--text3);margin-top:2px;}
.profile-menu-item{display:block;width:100%;text-align:left;background:none;border:none;font-size:12px;color:var(--text2);padding:8px 10px;border-radius:7px;cursor:pointer;font-family:"DM Sans",sans-serif;}
.profile-menu-item:hover{background:var(--surface2);color:var(--text);}
.profile-menu-sep{height:1px;background:var(--border);margin:6px 2px;}
#authArea,#userArea{display:inline-flex;align-items:center;gap:8px;}
.user-email-chip{font-size:11px;color:var(--text2);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nd-add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1.5px dashed var(--border);background:transparent;cursor:pointer;transition:border-color .15s,background .15s;min-height:180px;}
.nd-add-card:hover{border-color:var(--text3);background:var(--surface2);}
.nd-add-plus{font-size:22px;color:var(--text3);line-height:1;}
.nd-add-lbl{font-size:11px;color:var(--text3);font-weight:600;}
.mob-pair-precheck{
  margin:0 0 10px;
  padding:9px 11px;
  border-radius:9px;
  border:1px solid #e6c200;
  background:#fff3cd;
  color:#5c4500;
  font-size:11px;
  font-weight:600;
  line-height:1.45;
}
/* Full-size Add Mobile (same footprint as PC / mobile cards) */
.nd-add-mobile-slot{
  overflow:visible;
  flex:0 0 auto;
  position:relative;
  cursor:pointer;
  border:none;
  background:transparent;
  padding:0;
  min-width:0;
  box-sizing:border-box;
}
.nd-add-mobile-face{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1.5px dashed #7a9e8f;
  background:linear-gradient(180deg,#f3faf7 0%,#e8f3ee 100%);
  border-radius:10px;
  box-sizing:border-box;
  transition:border-color .15s,background .15s;
}
.nd-add-mobile-slot:hover .nd-add-mobile-face{
  border-color:#4f7a68;
  background:linear-gradient(180deg,#eaf6f0 0%,#dceee5 100%);
}
.nd-add-mobile-face .nd-add-plus{color:#4f7a68;font-size:22px;line-height:1;}
.nd-add-mobile-lbl{font-size:11px;color:#3d6354;font-weight:600;}
/* PC unit: fixed carousel card width */
.nd-pc-unit{
  position:relative;
  display:flex;
  flex:0 0 168px;
  width:168px;
  min-width:168px;
  max-width:168px;
  align-items:stretch;
  overflow:visible;
  z-index:1;
  box-sizing:border-box;
}
.nd-pc-unit > .nd-card{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.nd-pc-unit.is-expanded,
.nd-pc-unit.is-selected{z-index:2;}
.nd-pc-unit.is-expanded > .nd-card,
.nd-pc-unit.is-selected > .nd-card{
  outline:2px solid color-mix(in srgb, #4f7a68 55%, transparent);
  outline-offset:1px;
  box-shadow:0 0 0 1px rgba(79,122,104,.22);
}
.nd-mobile-carousel-host{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px 12px;
  border-radius:12px;
  border:1px solid rgba(79,122,104,.28);
  background:linear-gradient(180deg,rgba(243,250,247,.98) 0%,rgba(232,243,238,.96) 100%);
  box-shadow:inset 0 1px 0 rgba(79,122,104,.10);
  transform-origin:top center;
}
.nd-mobile-carousel-host[hidden]{display:none !important;}
.nd-mobile-carousel-host.is-animating{
  overflow:hidden;
}
.nd-mobile-carousel-host .nd-mobile-expand-hint,
.nd-mobile-expand-hint{
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#5f7f72;
  margin:0;
  line-height:1.35;
  white-space:nowrap;
}
.nd-mobile-carousel{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  cursor:grab;
  scrollbar-width:none;
  -ms-overflow-style:none;
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
}
.nd-mobile-carousel::-webkit-scrollbar{display:none;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot,
.nd-mobile-carousel-host.is-opening .nd-mobile-empty{
  animation:ndMobCardIn .32s cubic-bezier(0.22,1,0.36,1) both;
}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(1){animation-delay:.02s;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(2){animation-delay:.05s;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(3){animation-delay:.08s;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(4){animation-delay:.11s;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(5){animation-delay:.14s;}
.nd-mobile-carousel-host.is-opening .nd-mobile-card-slot:nth-child(n+6){animation-delay:.16s;}
@keyframes ndMobCardIn{
  from{opacity:0;transform:translateY(12px);}
  to{opacity:1;transform:none;}
}
/* legacy absolute expand row — unused */
.nd-mobile-expand-row{display:none !important;}
.nd-mobile-expand-cards{display:none !important;}
.nd-mobile-card-slot{
  flex:0 0 168px;
  width:168px;
  min-width:168px;
  max-width:168px;
  overflow:visible;
  position:relative;
  pointer-events:auto;
  box-sizing:border-box;
}
.nd-mobile-card-slot > .nd-mobile-card,
.nd-mobile-card-slot > .nd-card.nd-mobile-card{
  width:100%;
  min-width:0;
  max-width:100%;
  height:auto;
  transform:none !important;
}
.nd-mobile-empty{
  flex:0 0 auto;
  min-width:168px;
  max-width:320px;
  padding:14px 16px;
  border-radius:10px;
  border:1px dashed rgba(79,122,104,.35);
  background:rgba(243,250,247,.9);
  color:#5f7f72;
  font-size:12px;
  line-height:1.4;
}
.nd-card.nd-mobile-card{
  border-color:#7a9e8f;
  background:linear-gradient(180deg,#f3faf7 0%,#e8f3ee 100%);
  box-sizing:border-box;
  pointer-events:auto;
  cursor:grab;
}
.nd-card.nd-mobile-card.offline{
  opacity:.72;
  border-color:#e63946;
  border-style:dashed;
  background:linear-gradient(180deg,#fafafa 0%,#f3f4f6 100%);
}
.nd-card.nd-mobile-card .nd-screen-btn,
.nd-card.nd-mobile-card .nd-settings-btn,
.nd-card.nd-mobile-card .nd-actions,
.nd-card.nd-mobile-card .nd-settings-summary,
.nd-card.nd-mobile-card .nd-net-row,
.nd-card.nd-mobile-card .nd-net-select,
.nd-card.nd-mobile-card .nd-usb-disp-row,
.nd-card.nd-mobile-card .nd-name,
.nd-card.nd-mobile-card .nd-name-input,
.nd-card.nd-mobile-card .nd-action-dot{pointer-events:auto;cursor:pointer;}
.nd-card.nd-mobile-card .nd-name,
.nd-card.nd-mobile-card .nd-name-input{cursor:text;}
.nd-card.nd-mobile-card .nd-settings-summary{cursor:default;}
.nd-card.nd-mobile-card .nd-actions{cursor:default;}
.nd-card.nd-mobile-card .nd-actions .nd-settings-btn,
.nd-card.nd-mobile-card .nd-actions .nd-screen-btn,
.nd-card.nd-mobile-card .nd-actions .nd-action-dot{cursor:pointer;}
.nd-card.nd-mobile-card .nd-actions .nd-action-dot:disabled{cursor:not-allowed;}
.nd-net-row{
  display:flex;align-items:center;gap:6px;
  margin:4px 0 6px;padding:0 2px;
  pointer-events:auto;
}
.nd-net-label{
  font-size:9px;font-weight:700;color:#3d6354;
  flex-shrink:0;letter-spacing:.02em;
}
.nd-net-select{
  flex:1;min-width:0;
  font-size:10px;padding:3px 6px;
  border:1px solid #a3c4b6;border-radius:6px;
  background:#edf6f1;color:#2f5d50;
  cursor:pointer;
}
.nd-net-badge{
  flex-shrink:0;
  font-size:9px;font-weight:700;
  padding:2px 6px;border-radius:999px;
  background:#2f5d50;color:#f3faf7;
  max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.nd-card.nd-mobile-card[data-internet-mode="wifi"] .nd-net-badge{background:#0369a1;}
.nd-card.nd-mobile-card[data-internet-mode="mobile_data"] .nd-net-badge{background:#b45309;}
.nd-card.nd-mobile-card[data-internet-mode="pc"] .nd-net-badge{background:#2f5d50;}
.nd-card[data-pc-internet-mode="wifi"] .nd-net-badge{background:#0369a1;}
.nd-card[data-pc-internet-mode="phone_tether"] .nd-net-badge{background:#b45309;}
.nd-card[data-pc-internet-mode="ethernet"] .nd-net-badge{background:#2f5d50;}
.nd-usb-disp-row{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  margin:0 0 6px;padding:0 2px;
  pointer-events:auto;
}
.nd-usb-disp-check{
  display:inline-flex;align-items:center;gap:3px;
  font-size:9px;font-weight:600;color:#3d6354;
  cursor:pointer;user-select:none;
}
.nd-usb-disp-check input{margin:0;accent-color:#2f5d50;}
.nd-usb-bri{
  flex:1;min-width:48px;max-width:90px;height:14px;
  accent-color:#2f5d50;cursor:pointer;
}
.nd-usb-bri:disabled{opacity:.35;cursor:not-allowed;}
.nd-usb-bri-val{
  font-size:9px;font-weight:700;color:#3d6354;min-width:1.6em;
}
.nd-usb-lock-hint{
  font-size:9px;line-height:1.35;color:#5c4500;
  margin:0 2px 6px;padding:4px 6px;
  background:#fff8e6;border-radius:6px;
}
.mob-app-picker{margin:4px 0 8px;}
.mob-app-picker select[size]{font-size:11px;line-height:1.35;}
.nd-card.nd-mobile-card .nd-name,
.nd-card.nd-mobile-card .nd-ip{color:#2f5d50;}
.nd-card.nd-mobile-card .nd-timeline-btn{
  color:#2f5d50;
  background:#edf6f1;
  box-shadow:
    0 2px 5px rgba(47,93,80,.12),
    0 1px 2px rgba(47,93,80,.08);
}
.nd-card.nd-mobile-card .nd-timeline-btn:hover:not(:disabled){
  background:#e4f2eb;
  color:#244a40;
}
.nd-ghost-card{position:relative;border:1.5px dashed var(--border);background:var(--surface);opacity:.55;pointer-events:none;min-height:180px;}
.nd-ghost-card .nd-ghost-text{color:var(--text3);}
.nd-ghost-pill{background:var(--surface2);color:var(--text3);}
.nd-ghost-apps{display:flex;gap:3px;margin-bottom:8px;}
.nd-ghost-app{width:22px;height:22px;border-radius:5px;background:var(--surface2);border:1px dashed var(--border);}
.nd-ghost-stat .nd-ghost-fill{background:var(--border);}
.nd-ghost-ph{font-size:8px;color:var(--text3);padding:6px 0 0;border-top:1px dashed var(--border);margin-top:6px;}
.nd-ghost-cta-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:auto;}
.nd-ghost-cta{padding:8px 14px;font-size:11px;font-weight:700;box-shadow:0 4px 16px rgba(0,0,0,.12);}
.ov-edit-box{
  width:min(400px,calc(100vw - 28px));
  padding:22px 22px 18px;
  border-radius:20px;
  background:#fff;
  box-shadow:0 20px 50px rgba(15,23,42,.16);
}
.ov-edit-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:8px;
}
.ov-edit-title{
  display:flex;align-items:center;gap:8px;
  font-size:17px;font-weight:800;letter-spacing:-.02em;color:#111827;
}
.ov-edit-title-ico{
  width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;
  background:#ecfdf5;color:#0d9488;
}
.ov-edit-close{
  width:32px;height:32px;border-radius:999px;border:none;
  background:#f3f4f6;color:#6b7280;cursor:pointer;font-size:15px;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
}
.ov-edit-close:hover{background:#e5e7eb;color:#111827;}
.ov-edit-hint{
  font-size:12px;font-weight:500;color:#9ca3af;line-height:1.45;margin-bottom:14px;
}
.ov-edit-bulk{display:flex;gap:10px;margin-bottom:12px;}
.ov-edit-bulk-btn{
  flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 12px;border-radius:12px;border:1px solid #e5e7eb;
  background:#fff;color:#374151;font-size:13px;font-weight:700;cursor:pointer;
}
.ov-edit-bulk-btn:hover{background:#f9fafb;border-color:#d1d5db;}
.ov-edit-bulk-ico{
  width:16px;height:16px;border-radius:4px;border:1.5px solid #d1d5db;background:#fff;
  box-sizing:border-box;flex-shrink:0;
}
.ov-edit-bulk-ico.is-on{
  border-color:#14b8a6;background:#14b8a6;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6-6'/%3E%3C/svg%3E");
  background-size:12px 12px;background-position:center;background-repeat:no-repeat;
}
.ov-edit-list{
  max-height:min(360px,48vh);overflow-y:auto;
  display:flex;flex-direction:column;gap:8px;
  margin-bottom:16px;padding-right:2px;
}
.ov-edit-row{
  display:flex;align-items:center;gap:12px;
  padding:12px 12px;border-radius:14px;
  border:1px solid #eef0f3;background:#fff;
  cursor:grab;font-size:13px;font-weight:600;color:#111827;
  user-select:none;transition:border-color .12s,box-shadow .12s,background .12s;
}
.ov-edit-row:hover{border-color:#dbe4ee;background:#fafbfc;}
.ov-edit-row.is-dragging{
  opacity:.92;cursor:grabbing;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
  border-color:#99f6e4;
}
.ov-edit-row.is-drag-over{border-color:#14b8a6;background:#f0fdfa;}
.ov-edit-check{
  width:18px;height:18px;margin:0;accent-color:#14b8a6;cursor:pointer;flex-shrink:0;
}
.ov-edit-ico{
  width:28px;height:28px;border-radius:9px;flex-shrink:0;
  display:grid;place-items:center;font-size:15px;line-height:1;
  background:#f3f4f6;overflow:hidden;
}
.ov-edit-ico img{width:18px;height:18px;object-fit:contain;}
.ov-edit-ico.is-online{background:#ede9fe;color:#7c3aed;}
.ov-edit-ico.is-cpu{background:#dbeafe;color:#2563eb;}
.ov-edit-ico.is-ram{background:#ffedd5;color:#ea580c;}
.ov-edit-ico.is-disk{background:#fef9c3;color:#ca8a04;}
.ov-edit-ico.is-alerts{background:#fee2e2;color:#dc2626;}
.ov-edit-ico.is-status{background:#d1fae5;color:#059669;}
.ov-edit-lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ov-edit-handle{
  color:#c4c9d2;flex-shrink:0;display:inline-flex;padding:4px;
  cursor:grab;
}
.ov-edit-handle svg{display:block;}
.ov-edit-foot{display:flex;gap:10px;}
.ov-edit-btn-cancel,
.ov-edit-btn-save{
  flex:1;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:700;cursor:pointer;
}
.ov-edit-btn-cancel{
  border:1px solid #e5e7eb;background:#fff;color:#6b7280;
}
.ov-edit-btn-cancel:hover{background:#f9fafb;color:#374151;}
.ov-edit-btn-save{
  border:none;background:#14b8a6;color:#fff;
  box-shadow:0 6px 16px rgba(20,184,166,.28);
}
.ov-edit-btn-save:hover{background:#0d9488;}
.ov-edit-empty{
  font-size:12px;color:#9ca3af;padding:18px 8px;text-align:center;line-height:1.45;
}
.npm-row{display:flex;align-items:center;gap:8px;padding:7px 9px;background:var(--surface2);border-radius:8px;}
.npm-row-main{display:flex;align-items:center;gap:8px;flex:1;cursor:pointer;}
.npm-row-main input{accent-color:var(--accent);cursor:pointer;}
.npm-row-ico{font-size:15px;width:20px;text-align:center;}
.npm-row-lbl{font-size:12px;color:var(--text);}
.npm-select-all{margin-bottom:4px;}
.npm-icon-inp{width:42px;margin-bottom:0;text-align:center;font-size:14px;padding:5px;flex-shrink:0;}
.nd-checking{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--text3);white-space:nowrap;}
/* Flow section — Usage·Billing (.ub-shell) tone */
.flow-row-wrap.flow-ub.ub-shell{
  background:#f2f2f7;
  border:none;
  border-radius:22px;
  padding:16px;
  margin-bottom:14px;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:12px;
  width:auto !important;
  max-width:none !important;
}
.flow-ub .flow-ub-search-card{padding:14px 16px;}
.flow-ub .flow-toolbar{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:0;
  min-height:44px;
  flex-wrap:nowrap;
}
.flow-ub .flow-toolbar-start{
  flex:0 0 auto;
  min-width:0;
  z-index:1;
  display:flex;
  justify-content:flex-start;
}
.flow-ub .flow-toolbar-end{
  flex:0 0 auto;
  min-width:0;
  z-index:1;
  display:flex;
  justify-content:flex-end;
  gap:4px;
  align-items:center;
  margin-left:auto;
}
.flow-ub .flow-search-box{
  position:static;
  left:auto;
  top:auto;
  transform:none;
  flex:1 1 auto;
  min-width:160px;
  max-width:none;
  width:auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  background:#f3f4f6;
  border:none;
  border-radius:999px;
  box-shadow:none;
  z-index:1;
}
.flow-ub .flow-search-scope{display:none!important;}
.flow-ub .flow-search-ico{
  display:inline-flex;align-items:center;justify-content:center;
  color:#9ca3af;flex-shrink:0;opacity:1;font-size:0;line-height:0;
}
.flow-ub .flow-search-input{
  border:none;background:transparent;padding:0;font-size:13px;font-weight:500;color:#1c1c1e;width:auto;flex:1;min-width:0;
}
.flow-ub .flow-search-input::placeholder{color:#9ca3af;font-weight:500;}
.flow-ub .flow-search-input:focus{outline:none;border:none;}
.flow-ub .flow-search-btn{display:none!important;}
/* Popular/Latest/Cart/Recent — 미니멀 + Popular 초록 필 */
.flow-ub .list-sort-toggle,
.flow-ub .list-sort-toggle.flow-mk-actions{
  background:transparent;border-radius:0;padding:0;gap:2px;display:inline-flex;align-items:center;
}
.flow-ub .list-sort-toggle .list-sort-btn{
  padding:7px 12px;font-size:12px;border-radius:999px;border:none;background:transparent;color:#6b7280;font-weight:600;
  box-shadow:none;
}
.flow-ub .list-sort-toggle .list-sort-btn.active{
  background:#12b76a;color:#fff;font-weight:700;box-shadow:none;
}
.flow-ub .flow-toolbar-icon.adb-gt,
.flow-ub .flow-toolbar-icon.adb-gt.active{
  padding:7px 10px;border:none;border-radius:999px;background:transparent;color:#6b7280;font-size:12px;font-weight:600;
  box-shadow:none;
}
.flow-ub .flow-toolbar-icon.adb-gt.active{
  background:#12b76a;color:#fff;font-weight:700;
}
.flow-ub .flow-toolbar-icon.adb-gt:hover:not(.active),
.flow-ub .list-sort-toggle .list-sort-btn:hover:not(.active){
  color:#111827;background:transparent;
}
.flow-ub .flow-token-lbl{display:none!important;}
.flow-ub .flow-ub-list-toggle{flex-shrink:0;margin-left:6px;}
/* 토글 스위치: 민트그린 */
.flow-ub .ub-switch-ui{background:#d1d5db;}
.flow-ub .ub-switch input:checked + .ub-switch-ui{background:#12b76a;}
.flow-ub .flow-ub-list-card .ub-card-body{margin:0;padding-top:2px;}
.flow-ub .flow-ub-list-card.is-collapsed{display:none;}
/* PC/Mobile/Sync — 단일 세그먼트, 활성=검정 */
.flow-ub .flow-platform-tabs,
.flow-ub .flow-platform-tabs-sm{
  display:inline-flex;align-items:center;gap:2px;
  background:#f3f4f6;border-radius:999px;padding:3px;
  border:none;box-shadow:none;
}
.flow-ub .flow-plat-btn-sm{
  padding:8px 14px;border:none!important;border-radius:999px;background:transparent;color:#6b7280;
  font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;letter-spacing:-.01em;
  box-shadow:none;
}
.flow-ub .flow-plat-btn-sm.active{
  background:#111827!important;color:#fff!important;border:none!important;
  box-shadow:none;
}
.flow-ub .flow-plat-btn-sm:hover:not(.active){color:#111827;background:rgba(255,255,255,.55);}
/* 분류칩 — 연민트 필 + All 활성 초록 */
.flow-ub .flow-acc-tabs.adb-gb,
.flow-ub .flow-acc-tabs{
  background:transparent!important;border:none!important;border-radius:0;padding:4px 0;gap:8px;margin-bottom:12px;
  box-shadow:none;
  scrollbar-width:none;
}
.flow-ub .flow-acc-tabs::-webkit-scrollbar{display:none;height:0;}
.flow-ub .flow-acc-tabs .adb-gt{
  padding:8px 14px;border-radius:999px;border:none;background:#ecfdf3;color:#027a48;
  font-size:12px;font-weight:600;box-shadow:none;
  display:inline-flex;align-items:center;gap:5px;
}
.flow-ub .flow-acc-tabs .flow-acc-ico{font-size:12px;line-height:1;opacity:.95;}
.flow-ub .flow-acc-tabs .adb-gt.active{
  background:#12b76a!important;color:#fff!important;font-weight:700;box-shadow:none;
}
.flow-ub .flow-acc-tabs .adb-gt:hover:not(.active){background:#d1fadf;color:#027a48;}
.flow-ub .flow-acc-panel{
  border:none;border-radius:14px;background:#f2f2f7;padding:12px;
  max-height:none;overflow-x:hidden;overflow-y:visible;
}
.flow-ub .flow-sub-tabs{
  margin-bottom:10px;border:none;border-radius:12px;background:#fff;padding:6px;border-left:none;
}
.flow-ub .flow-grid{gap:12px;padding-bottom:2px;}

/* Flow cards */
.flow-ub .flow-card,
.flow-grid .flow-card{
  background:#fff;border:none;border-radius:16px;padding:14px 12px 12px;width:128px;box-sizing:border-box;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 16px rgba(0,0,0,.04);
  cursor:pointer;transition:transform .15s,box-shadow .15s;position:relative;
}
.flow-ub .flow-card:hover,
.flow-grid .flow-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.1);transform:translateY(-1px);}
.flow-ub .flow-card.active,
.flow-grid .flow-card.active{outline:2px solid #1c1c1e;outline-offset:0;}
.flow-ub .flow-card-id,
.flow-grid .flow-card-id{font-size:9px;font-weight:600;color:#aeaeb2;margin-bottom:6px;letter-spacing:.02em;}
.flow-ub .flow-card-name,
.flow-grid .flow-card-name{font-size:13px;font-weight:700;color:#1c1c1e;margin-bottom:6px;line-height:1.25;letter-spacing:-.01em;}
.flow-ub .flow-card-author,
.flow-grid .flow-card-author{font-size:10px;color:#8e8e93;margin-bottom:4px;font-weight:500;}
.flow-ub .flow-card-target,
.flow-grid .flow-card-target{font-size:10px;color:#8e8e93;margin-bottom:4px;font-weight:500;}
.flow-ub .flow-card-rating,
.flow-grid .flow-card-rating{font-size:10px;color:#b45309;font-weight:600;margin-top:4px;}
.flow-ub .flow-card-price,
.flow-grid .flow-card-price{font-size:11px;font-weight:700;color:#0a66ff;margin-top:6px;}
.flow-ub .flow-fav-btn{top:8px;right:8px;font-size:14px;color:#aeaeb2;}
.flow-ub .flow-card-del{bottom:8px;right:8px;font-size:12px;color:#aeaeb2;}
.flow-ub .flow-source-badges{top:8px;left:8px;}
.flow-ub .flow-source-badge{border-radius:999px;padding:3px 7px;font-size:9px;}

/* Editor */
.flow-ub .flow-ub-editor{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;border:none;}
.flow-ub .flow-ub-textarea{
  width:100%;margin-bottom:10px;resize:vertical;min-height:72px;border:none;border-radius:14px;
  background:#f2f2f7;padding:12px 14px;font-size:13px;font-weight:500;color:#1c1c1e;box-sizing:border-box;
  display:block;
}
.flow-ub .flow-ub-ai-inner{display:flex;flex-direction:column;gap:0;}
.flow-ub .flow-ub-ai-actions{
  display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap;
}
.flow-ub .flow-ub-ai-actions .ub-pill,
.flow-ub .flow-ub-ai-btn{
  min-width:140px;width:auto;max-width:100%;text-align:center;box-sizing:border-box;flex:0 0 auto;
}
.flow-ub .flow-ub-muted{font-size:11px;color:#8e8e93;line-height:1.45;}
.flow-ub .flow-ub-ai-preview{margin-top:12px;padding-top:12px;border-top:1px solid rgba(60,60,67,.08);}
.flow-ub .flow-ub-ai-preview-name{font-size:14px;font-weight:700;color:#1c1c1e;margin-bottom:6px;}
.flow-ub .flow-ub-ai-preview-desc{font-size:12px;color:#8e8e93;margin-bottom:10px;white-space:pre-line;line-height:1.45;}
.flow-ub .flow-ub-ai-preview-steps{margin:0 0 12px 18px;padding:0;font-size:12px;color:#3a3a3c;line-height:1.5;}
.flow-ub .flow-ub-ai-preview-acts{display:flex;gap:8px;flex-wrap:wrap;}
.flow-ub .flow-ub-ai-preview-acts .ub-pill{flex:1;min-width:140px;text-align:center;}
.flow-ub .flow-ub-editor-toolbar{
  display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px;
}
.flow-ub .flow-ub-toolbar-row{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;
}
.flow-ub .flow-ub-toolbar-row-acts{
  justify-content:flex-end;
}
.flow-ub .flow-ub-toolbar-lbl{font-size:11px;font-weight:700;color:#8e8e93;white-space:nowrap;}
.flow-ub .flow-ub-work-list{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.flow-ub .flow-ub-name-inp{flex:1 1 180px;min-width:140px;max-width:320px;}
.flow-ub .flow-ub-chip-btn{
  padding:7px 12px;border:none;border-radius:999px;background:#f2f2f7;color:#3a3a3c;
  font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0;font-family:inherit;
}
.flow-ub .flow-ub-chip-btn:hover{background:#e5e5ea;color:#1c1c1e;}
.flow-ub .flow-ub-lock-badge{
  font-size:10px;font-weight:700;color:#8e8e93;background:#f2f2f7;border-radius:999px;padding:4px 10px;
}
.flow-ub .flow-ub-name-inp{
  width:160px;margin-bottom:0;padding:8px 12px;border:none;border-radius:12px;background:#f2f2f7;
  font-size:13px;font-weight:600;color:#1c1c1e;
}
.flow-ub .flow-ub-sch-sel{
  width:auto;min-width:64px;margin-bottom:0;padding:7px 10px;border:none;border-radius:12px;background:#f2f2f7;
  font-size:11px;font-weight:600;color:#1c1c1e;
}
.flow-ub .flow-ub-inline-check{
  display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#3a3a3c;
  cursor:pointer;white-space:nowrap;flex-shrink:0;
}
.flow-ub .flow-ub-inline-check input{accent-color:#0a66ff;}
.flow-ub .flow-ub-vsep{width:1px;height:22px;background:rgba(60,60,67,.12);flex-shrink:0;}
.flow-ub .flow-ub-humanik{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.flow-ub .flow-ub-humanik input[type=range]{width:70px;accent-color:#0a66ff;cursor:pointer;}
.flow-ub .flow-ub-humanik-lbl{font-size:11px;font-weight:700;color:#3a3a3c;min-width:36px;white-space:nowrap;}
.flow-ub .flow-ub-relay-opts{align-items:center;gap:6px;}
.flow-ub .flow-ub-toolbar-spacer{flex:1;min-width:8px;}
.flow-ub .flow-ub-editor-toolbar .ub-pill{padding:8px 14px;font-size:12px;}
.flow-ub .flow-ub-market-pill{background:#ea580c;}
.flow-ub .flow-ub-market-pill:hover{background:#c2410c;}
.flow-ub .flow-ub-slots{
  display:flex;align-items:stretch;gap:10px;overflow-x:auto;padding:10px;min-height:78px;
  background:#f2f2f7;border-radius:14px;
}
.flow-ub .flow-ub-soon{text-align:center;color:#8e8e93;font-size:13px;padding:28px 8px;}
.flow-ub .flow-market-box{
  margin-top:12px;background:#f2f2f7;border:none;border-radius:14px;padding:14px;
}
.flow-ub .flow-market-desc{font-size:12px;color:#3a3a3c;line-height:1.55;}
.flow-ub .flow-market-meta{font-size:11px;color:#8e8e93;}
.flow-ub .flow-market-price-tag{font-size:15px;font-weight:800;color:#1c1c1e;}
.flow-ub .flow-market-howto-btn{
  background:#fff;border:none;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:700;color:#3a3a3c;cursor:pointer;
}
.flow-ub #pc-flow-editor-panel,
.flow-ub #mob-flow-editor-panel,
.flow-ub #hotkey-flow-editor-panel,
.flow-ub #soon-flow-editor-panel{margin:0;}

/* Flow detail modal already uses .ub-shell when class applied */
#mo-flow-detail .ub-pill-row{margin-top:4px;}
#mo-flow-detail .ub-pill-row .ub-pill{flex:1;text-align:center;}
#mo-flow-detail .flow-detail-desc{font-size:13px;color:#8e8e93;line-height:1.5;margin-bottom:12px;}
#mo-flow-detail .flow-detail-steps{display:flex;flex-direction:column;gap:8px;}
#mo-flow-detail .flow-detail-step-row{
  font-size:12px;color:#3a3a3c;padding:10px 12px;background:#f2f2f7;border-radius:12px;font-weight:500;
}
#mo-flow-detail .flow-ub-muted{font-size:11px;color:#8e8e93;line-height:1.45;}
.pccmd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;}
.pccmd-card{background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:9px 11px;cursor:pointer;transition:border-color .15s;}
.pccmd-card:hover{border-color:var(--text3);}
.pccmd-card-label{font-size:11px;font-weight:700;color:var(--text);margin-bottom:4px;}
.pccmd-card-script{font-size:9px;color:var(--text3);font-family:"DM Mono",monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.flow-sub-lbl{font-size:9px;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.6px;margin-bottom:6px;}
/* Flow 툴바: [플랫폼탭(왼쪽)] [검색(중앙)] [인기순·최신순·장바구니·최근본(오른쪽)] */
.flow-toolbar{position:relative;display:flex;align-items:center;gap:8px;margin-bottom:6px;min-height:36px;}
.flow-toolbar-start{flex:0 0 auto;min-width:0;z-index:1;}
.flow-toolbar-start .flow-platform-tabs{margin-bottom:0;flex-wrap:nowrap;}
.flow-search-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;display:flex;align-items:center;gap:4px;padding:3px 6px 3px 8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 1px 6px rgba(0,0,0,.06);width:min(240px,42vw);max-width:240px;}
.flow-search-box .flow-search-input{border:none;background:transparent;padding:2px 0;width:auto;flex:1;min-width:0;}
.flow-search-box .flow-search-scope{padding:2px 4px;font-size:9px;max-width:52px;border:none;background:var(--surface2);flex-shrink:0;}
.flow-search-btn{flex-shrink:0;padding:3px 8px;font-size:9px;font-weight:700;border:none;border-radius:6px;background:#1a1a1a;color:#fff;cursor:pointer;white-space:nowrap;}
.flow-search-btn:hover{opacity:.88;}
.flow-search-ico{font-size:11px;line-height:1;opacity:.7;flex-shrink:0;}
.flow-toolbar-end{flex:0 0 auto;display:flex;align-items:center;gap:4px;margin-left:auto;z-index:1;}
.list-sort-toggle{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:20px;background:var(--neu,transparent);}
.list-sort-toggle .list-sort-btn{padding:4px 10px;font-size:9px;border-radius:16px;}
.list-sort-toggle .list-sort-btn.active{font-weight:700;}
.flow-toolbar-icon{min-width:30px;padding:5px 8px;font-size:11px;white-space:nowrap;}
.flow-toolbar-icon.active{font-weight:700;}
.flow-token-lbl{font-size:9px;font-weight:700;color:var(--accent);white-space:nowrap;padding:0 2px;}
.flow-cat-row{margin-bottom:4px;}
.flow-cat-row .adb-gb{margin-bottom:0;border-radius:8px;}
.flow-sub-tabs{margin-bottom:10px;border-radius:8px;padding-left:8px;border-left:3px solid var(--accent);}
.flow-platform-tabs{display:flex;gap:6px;margin-bottom:10px;}
.flow-plat-btn{flex:1;padding:8px;border:1.5px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text2);font-size:12px;font-weight:700;cursor:pointer;}
.flow-top-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap;}
.flow-platform-tabs-sm{display:flex;gap:4px;margin-bottom:0;flex-shrink:0;}
.flow-plat-btn-sm{padding:4px 10px;border:1.5px solid var(--border);border-radius:7px;background:var(--bg);color:var(--text2);font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap;}
.flow-plat-btn-sm.active{background:#1a1a1a;color:#fff;border-color:#1a1a1a;}
.flow-search-wrap{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.flow-search-scope{font-size:10px;border:1px solid var(--border);border-radius:7px;padding:4px 6px;background:var(--surface);color:var(--text2);cursor:pointer;}
.flow-search-input{font-size:10px;border:1px solid var(--border);border-radius:7px;padding:4px 8px;background:var(--surface);color:var(--text);width:120px;}
.flow-search-input:focus{outline:none;border-color:var(--text3);}
.flow-plat-btn.active{background:#1a1a1a;color:#fff;border-color:#1a1a1a;}
.flow-detail-panel{background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-top:10px;}
.flow-detail-hdr{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px;}
.flow-detail-title{font-size:14px;font-weight:700;color:var(--text);flex:1;}
.flow-detail-close{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:3px 9px;cursor:pointer;font-size:11px;color:var(--text2);}
.flow-detail-desc{font-size:12px;color:var(--text2);margin-bottom:10px;line-height:1.5;}
.flow-detail-steps{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;}
.flow-detail-step-row{font-size:11px;color:var(--text2);padding:6px 9px;background:var(--surface);border-radius:7px;}
.flow-detail-acts{display:flex;gap:8px;}
.flow-card-del{position:absolute;bottom:5px;right:5px;background:none;border:none;font-size:11px;color:var(--text3);cursor:pointer;padding:1px;line-height:1;z-index:2;}
.flow-card-del:hover{color:var(--danger);}
.flow-card-rating{font-size:9px;color:#f4a261;font-weight:600;margin-top:2px;}
.flow-card-price{font-size:9px;font-weight:700;color:var(--accent);margin-top:2px;}
.flow-market-box{margin-top:10px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:12px 14px;}
.flow-market-desc{font-size:11px;color:var(--text2);line-height:1.6;margin-bottom:10px;white-space:pre-wrap;}
.flow-market-meta{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:10px;color:var(--text3);flex-wrap:wrap;}
.flow-market-price-tag{font-size:13px;font-weight:700;color:var(--accent);}
.flow-market-howto-btn{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:5px 10px;font-size:10px;cursor:pointer;color:var(--text2);}
.flow-market-howto-box{margin-top:8px;background:var(--bg);border-radius:8px;padding:10px;font-size:10px;color:var(--text2);line-height:1.6;}
.flow-market-reviews{margin-top:10px;border-top:1px solid var(--border);padding-top:10px;}
.flow-market-review-item{font-size:11px;color:var(--text2);padding:8px 0;border-bottom:1px solid var(--border);}
.flow-market-review-item:last-child{border-bottom:none;}
.flow-market-review-head{line-height:1.35;}
.flow-market-review-comment{margin-top:4px;font-size:11px;color:var(--text);line-height:1.45;white-space:pre-wrap;word-break:break-word;}
.flow-market-review-comment-empty{color:var(--text3);font-style:italic;}
.flow-market-review-form{display:flex;gap:6px;margin-top:8px;align-items:center;flex-wrap:wrap;}
.star-select{display:flex;gap:2px;cursor:pointer;align-items:center;}
.star-select span,.star-select .star-btn{
  font-size:18px;color:var(--border);background:none;border:none;padding:0 1px;cursor:pointer;line-height:1;
}
.star-select span.on,.star-select .star-btn.on{color:#f4a261;}
.hk-recent-btn{flex-shrink:0;width:28px;border:1px solid var(--border);border-radius:6px;background:var(--surface2);cursor:pointer;font-size:12px;}
.hk-recent-list{position:absolute;top:100%;left:0;right:0;z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-top:2px;max-height:140px;overflow-y:auto;box-shadow:0 4px 12px rgba(0,0,0,.08);}
.hk-recent-item{padding:6px 10px;font-size:10px;color:var(--text2);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hk-recent-item:hover{background:var(--surface2);}

/* ── HOTKEY 색상 키패드 ─────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   HOTKEY 색상 키패드 — 사각형, 심플, 위젯 왼쪽 배치
   ═══════════════════════════════════════════════════════════ */
.hk-keypad {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  margin-right: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}

.hk-keypad-keys {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* 상단 색상 키 버튼 — 사각형, 둥근 모서리 */
.hk-topbar-key {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  flex-shrink: 0;
}
.hk-topbar-key:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.hk-topbar-key:active {
  transform: translateY(0);
  box-shadow: none;
}
/* 비어있는 키: 연하게 */
.hk-topbar-key.hk-empty {
  opacity: .28;
  box-shadow: none;
}
.hk-topbar-key.hk-empty:hover {
  opacity: .55;
  transform: translateY(-1px);
}
/* 실행 중 강조 */
.hk-topbar-key.hk-running {
  animation: hkPulse .4s ease-out;
}
@keyframes hkPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── 키패드 레이블 (호버시 보이는 툴팁 대신 키 위에 짧은 표시) ── */
.hk-topbar-key::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-weight: 700;
  color: var(--text3);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.hk-topbar-key:hover::after { opacity: 1; }

/* ── FLOW 편집영역 인라인 키피커 ─────────────────────────── */
.hk-key-picker-inline {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.hk-picker-key {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  flex-shrink: 0;
}
.hk-picker-key:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.hk-picker-key.selected {
  transform: translateY(-2px) scale(1.15);
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px currentColor;
}
/* selected 상태에서 currentColor가 안 먹으니 JS에서 인라인으로 처리 */


/* ── 페이지네이션 ───────────────────────────────────────── */
.flow-pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 4px 4px; flex-wrap: wrap;
  width: 100%; box-sizing: border-box;
}
.flow-plat-pane{
  width:100%;
  box-sizing:border-box;
}
.flow-plat-pane[hidden]{
  display:none !important;
}
.flow-mobile-prep-banner{
  width:100%;
  box-sizing:border-box;
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:10px;
  border:1px dashed var(--border);
  background:rgba(95,127,114,.08);
}
.flow-mobile-prep-title{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  margin:0 0 4px;
}
.flow-mobile-prep-desc{
  font-size:11px;
  line-height:1.45;
  color:var(--text3);
}

.pg-btn {
  min-width: 28px; height: 28px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text2);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .12s;
}
.pg-btn:hover:not(.disabled):not(.active) {
  background: var(--surface2); color: var(--text1);
}
.pg-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.pg-btn.disabled {
  opacity: .3; cursor: default;
}
.pg-ellipsis {
  font-size: 11px; color: var(--text3); padding: 0 2px;
}
.pg-info {
  flex: 0 0 100%; text-align: center; margin: 6px 0 0; white-space: nowrap;
  font-size: 9px; color: var(--text3);
}

/* ── 마켓 등록 모달 ─────────────────────────────────────── */
.mkt-price-btn {
  padding: 5px 14px; border: 1.5px solid var(--border);
  border-radius: 7px; background: var(--surface2);
  color: var(--text2); font-size: 10px; font-weight: 600;
  cursor: pointer; transition: all .12s;
}
.mkt-price-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
/* ── 모바일 반응형 (19절: 탭해서 추가) ───────────────────── */
.cb-tap-hint { display: none; }
.fe-slot-move { display: none; }

@media (max-width: 768px) {
  body, html { overflow-x: hidden; }
  .main { padding: 12px; max-width: 100%; overflow-x: hidden; }
  /*
   * Mobile topbar: 2 rows
   *  1) logo (left) + refresh/actions (right)
   *  2) widgets
   */
  .topbar {
    --tb-pad-x: 14px;
    --tb-row-gap: 8px;
    --tb-item-gap: 6px;
    --tb-ico-size: 28px;
    --tb-glyph: 18px;
    --tb-widget: 28px;
    --tb-widget-glyph: 16px;
    padding: 10px var(--tb-pad-x);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--tb-item-gap);
    row-gap: var(--tb-row-gap);
  }
  .topbar-center {
    order: 1;
    position: static;
    left: auto;
    transform: none;
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-self: center;
    z-index: 1;
  }
  .topbar-right {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    gap: var(--tb-item-gap);
    flex-wrap: nowrap;
    z-index: 5; /* above widget row — profile/settings dropdowns must cover icons */
  }
  .topbar-left {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    gap: var(--tb-item-gap);
    padding: 0;
    margin: 0;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-left::-webkit-scrollbar { height: 0; }
  .topbar-center .brand { display: flex; align-items: center; line-height: 0; }
  #authArea, #userArea { gap: var(--tb-item-gap); }
  .hk-keypad { padding: 0; margin: 0; flex-shrink: 0; gap: var(--tb-item-gap); }
  .hk-topbar-key { width: var(--tb-widget); height: var(--tb-widget); border-radius: 7px; }
  .ext-bar {
    flex-shrink: 0;
    max-width: 100%;
    gap: 2px;
    padding: 2px;
    border-radius: 10px;
  }
  .ext-btn {
    width: var(--tb-widget);
    height: var(--tb-widget);
    border-radius: 7px;
  }
  .ext-btn svg,
  .ext-btn .ext-ico,
  .ext-btn .ext-ico-img { width: var(--tb-widget-glyph); height: var(--tb-widget-glyph); }
  .ext-add {
    width: var(--tb-widget);
    height: var(--tb-widget);
    border-radius: 7px;
    flex-shrink: 0;
  }
  .ext-add .ext-ico { width: var(--tb-widget-glyph); height: var(--tb-widget-glyph); }
  .clock, .timer-box { display: none; }
  /* Logo shares the action row (left of refresh) */
  .brand-logo { height: 26px; max-width: min(132px, 36vw); }
  .brand-name { font-size: 16px; }
  .brand-links { flex-wrap: wrap; gap: 8px; }
  /* Top action row — one hit-target height */
  .top-btn { min-height: var(--tb-ico-size); min-width: unset; padding: 5px 10px; font-size: 10px; border-radius: 8px; }
  .sync-chip { height: var(--tb-ico-size); padding: 3px 8px 3px 7px; }
  .sync-chip .lbl { font-size: 9px; }
  .sync-chip .val { font-size: 10px; }
  .profile-avatar:not(.sp-avatar) { width: var(--tb-ico-size); height: var(--tb-ico-size); font-size: 12px; }
  .tb-ico-btn { width: var(--tb-ico-size); height: var(--tb-ico-size); border-radius: 8px; }
  .tb-ico, .tb-ico-svg { width: var(--tb-glyph, 18px); height: var(--tb-glyph, 18px); }
  .tb-profile-face { width: 24px; height: 24px; }
  .tb-profile-face .tb-profile-fallback { width: var(--tb-glyph); height: var(--tb-glyph); }
  .tb-credit { min-width: 52px; width: auto; height: var(--tb-ico-size); padding: 2px 6px 3px; }
  .tb-credit-val { font-size: 11px; }
  .tb-sync-text { min-width: var(--tb-ico-size); height: var(--tb-ico-size); font-size: 11px; padding: 0 4px; }
  .lang-toggle { height: var(--tb-ico-size); font-size: 9px; }
  .lang-toggle button { min-width: 22px; padding: 0 6px; }

  /* 1. 추천 로고 배너 — 세로 스택 + 행별 가로 스크롤 (페이지 하단 legend 위) */
  .ref-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px 6px;
    margin: 16px 0 0;
    max-width: 100%;
    overflow: visible;
  }
  .ref-col {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    gap: 4px;
  }
  .ref-col + .ref-col {
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  .ref-divider-v { display: none; }
  .ref-col-lbl { font-size: 10px; }
  .ref-scroll {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    gap: 5px;
    padding: 0 0 2px;
  }
  .ref-icon {
    width: 42px;
    height: 34px;
    padding: 4px;
    flex-shrink: 0;
  }

  /* 2. Flow 툴바 — 모바일 */
  .flow-row-wrap { padding: 8px 10px; }
  .flow-row-wrap.flow-ub.ub-shell { padding: 12px; border-radius: 18px; gap: 10px; }
  .flow-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    align-items: stretch;
    min-height: unset;
  }
  .flow-toolbar-start {
    flex: 1 1 100%;
    order: 2;
  }
  .flow-toolbar-start .flow-platform-tabs {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }
  .flow-search-box {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    order: 1;
  }
  .flow-ub .flow-search-box { max-width: 100%; width: 100%; flex: 1 1 100%; position: static; transform: none; left: auto; top: auto; }
  .flow-toolbar-end {
    flex: 1 1 auto;
    order: 3;
    margin-left: 0;
    justify-content: flex-end;
    width: 100%;
  }
  .flow-ub .flow-toolbar-start,
  .flow-ub .flow-toolbar-end {
    flex: 1 1 100%;
  }
  .flow-ub .flow-card,
  .flow-grid .flow-card { width: calc(50% - 4px); min-width: 0; max-width: none; padding: 12px 10px 10px; }
  .flow-ub .flow-ub-editor-toolbar .ub-pill { width: 100%; }
  .flow-ub .flow-ub-name-inp { width: min(160px, 100%); }
  .flow-acc-tabs.adb-gb,
  .flow-cat-row .adb-gb,
  .flow-cat-acc .flow-acc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  .flow-acc-tabs.adb-gb::-webkit-scrollbar,
  .flow-cat-row .adb-gb::-webkit-scrollbar { display: none; }
  .flow-plat-btn-sm {
    flex: 1 1 calc(33.333% - 4px);
    min-width: calc(33.333% - 4px);
    min-height: unset;
    padding: 5px 6px;
    font-size: 10px;
    text-align: center;
  }
  #token-balance-lbl { font-size: 9px; }

  .avg-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .ov-grid { flex-wrap: wrap; overflow-x: visible; }
  .nd-grid,
  .nd-pc-carousel,
  .nd-mobile-carousel {
    overflow: hidden;
    /* Vertical page/list scroll. Horizontal flicks stay on the JS carousel. */
    touch-action: pan-y;
  }
  .nd-pc-unit,
  .nd-mobile-card-slot{
    flex-basis:168px;
    width:168px;
    min-width:168px;
    max-width:168px;
  }
  .ov-grid .ov-card { min-width: calc(50% - 4px); }
  .flow-grid { flex-wrap: wrap; overflow: visible; }
  #fe-slots, #pcfe-slots, #hkfe-slot { flex-wrap: wrap !important; overflow-x: visible !important; gap: 8px; align-items: flex-start; }
  .fe-slot {
    width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
    max-width: none;
    min-height: 108px;
    font-size: 9px;
  }
  .fe-slot.filled, .fe-slot.fe-slot-card {
    padding: 6px 6px 4px;
    justify-content: flex-start;
  }
  .fe-slot.fe-slot-drop {
    width: 52px;
    flex: 0 0 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 64px;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
  }
  .fe-slot.fe-slot-drop .fe-drop-lbl { font-size: 0; line-height: 1; }
  .fe-slot.fe-slot-drop .fe-drop-lbl::before { content: '＋'; font-size: 18px; color: var(--text3); }
  .fe-slot-name {
    font-size: 11px;
    height: 1.3em;
  }
  .fe-slot-dur { font-size: 9px; }
  .fe-slot-main { min-height: 16px; padding: 2px 0; }
  .fe-slot-gear, .fe-slot-copy { width: 28px; height: 28px; }
  .fe-slot-gear-icon, .fe-slot-copy-icon { width: 14px; height: 14px; }
  .fe-slot-rep-btn { width: 28px; height: 28px; font-size: 14px; }
  .fe-slot-rep-val { font-size: 10px; min-width: 24px; }
  .fe-slot-del {
    position: static;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 12px;
    border-radius: 6px;
  }
  .adb-ph { flex-wrap: wrap; padding: 8px 10px; gap: 4px; }
  .adb-acts button, .adb-acts .top-btn { min-height: 30px; min-width: unset; padding: 5px 10px; font-size: 10px; }
  .adb-gb { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .adb-gb::-webkit-scrollbar { display: none; }
  .adb-gt { flex: 0 0 auto; min-height: unset; min-width: unset; padding: 5px 12px; font-size: 10px; }
  #flow-shared-tabs { flex: 1 1 auto !important; min-width: 0; }
  .adb-cg {
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .adb-cb {
    width: 100px;
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 100px;
    height: auto;
    min-height: 90px;
    padding: 5px 5px 46px;
    cursor: pointer;
  }
  .adb-cb.adb-cb-readonly {
    padding: 8px 6px;
    min-height: 72px;
  }
  .adb-cb:active { box-shadow: 0 0 0 2px var(--accent); }
  .cb-foot { height: 32px; }
  .cb-run, .cb-fb { min-height: 32px; font-size: 10px; }
  .cb-tap-hint {
    display: block;
    font-size: 8px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
  }
  .fe-slot-move {
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    justify-content: center;
    gap: 8px;
    padding: 4px 8px 8px;
    width: 100%;
    z-index: 1;
  }
  .fe-move-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text2);
  }
  .fe-move-btn:active { background: var(--accent); color: #fff; }
  .fe-slot-rep { min-height: 32px; font-size: 11px; }
  .mo-box { width: calc(100vw - 24px); max-width: 100%; }
  .flow-search-input { width: 100%; max-width: 100%; }
  .pg-btn { min-width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .flow-search-input { width: 100%; }
}

/* Flow market info bottom-sheet overlay (summary in-flow; panel absolute above) */
.flow-market-box{
  position:relative;
  overflow:visible;
}
.flow-market-sheet{
  position:relative;
  overflow:visible;
}
.flow-market-sheet-summary{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
  padding:8px 10px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:var(--text2);
  font:inherit;
  font-size:11px;
  text-align:left;
  cursor:pointer;
}
.flow-market-sheet-summary:hover{background:rgba(0,0,0,.04);}
.flow-market-sheet-summary-author{
  font-weight:700;
  color:var(--text);
  max-width:40%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.flow-market-sheet-summary-rating{color:#c9842a;font-weight:700;white-space:nowrap;}
.flow-market-sheet-summary-price{
  margin-left:auto;
  font-weight:800;
  color:var(--accent);
  white-space:nowrap;
}
.flow-market-sheet-chevron{
  font-size:9px;
  color:var(--text3);
  transition:transform .18s ease;
}
.flow-market-sheet.is-open .flow-market-sheet-chevron{transform:rotate(180deg);}
.flow-market-sheet-scrim{
  display:none !important;
}

.flow-market-box,
.flow-market-sheet{overflow-anchor:none;}
.flow-market-sheet-panel{
  position:absolute;
  left:0;right:0;
  bottom:calc(100% + 6px);
  z-index:40;
  max-height:min(55vh,480px);
  overflow:auto;
  background:var(--surface, #fff);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(15,23,42,.16);
  padding:12px 14px;
}
.flow-market-sheet-panel[hidden],
.flow-market-sheet-scrim[hidden]{display:none !important;}
.flow-market-sheet-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.flow-market-sheet-panel-title{
  font-size:11px;
  font-weight:800;
  color:var(--text3);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.flow-market-sheet-close{
  border:1px solid var(--border);
  background:var(--surface2, #f3f4f6);
  border-radius:8px;
  width:28px;height:28px;
  line-height:1;
  cursor:pointer;
  color:var(--text2);
  font-size:13px;
}
.flow-market-sheet-close:hover{color:var(--text);}
.flow-ub .flow-market-box{
  margin-top:12px;
  padding:6px 8px;
  background:#f2f2f7;
  border:none;
  border-radius:14px;
  position:relative;
  overflow:visible;
}
.flow-ub .flow-market-sheet-summary{border-radius:12px;font-size:12px;}
.flow-ub .flow-market-sheet-summary-price{color:#1c1c1e;}


/* Vault webhook help + howto guide */
.vault-webhook-help{
  margin:0 0 14px;
  padding:12px 12px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface2);
}
.vault-webhook-links{
  margin:0 0 10px;
  padding-left:18px;
  font-size:12px;
  color:var(--text2);
  line-height:1.55;
}
.vault-webhook-links a{
  margin-left:6px;
  color:var(--accent, #2a6df4);
  text-decoration:underline;
}
.vault-webhook-guide-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  border-radius:8px;
  padding:7px 12px;
  font-size:12px;
  cursor:pointer;
}
.vault-webhook-guide-btn:hover{border-color:var(--text3);}
#mo-webhook-howto .webhook-howto-box.ub-shell{width:min(420px,92vw);}
.webhook-howto-tabs{
  display:flex;
  gap:6px;
  margin-bottom:14px;
}
.webhook-howto-tab{
  flex:1;
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text2);
  border-radius:8px;
  padding:8px 10px;
  font-size:13px;
  cursor:pointer;
}
.webhook-howto-tab.is-active{
  background:var(--surface);
  color:var(--text);
  border-color:var(--text3);
  font-weight:600;
}
.webhook-howto-step-num{
  font-size:11px;
  color:var(--text3);
  margin-bottom:6px;
  letter-spacing:0.02em;
}
.webhook-howto-step-title{
  margin:0 0 8px;
  font-size:16px;
  font-weight:650;
  color:var(--text);
}
.webhook-howto-step-body{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--text2);
  min-height:4.5em;
}
.webhook-howto-step-tip{
  margin:12px 0 0;
  padding:8px 10px;
  border-radius:8px;
  background:var(--surface2);
  font-size:12px;
  color:var(--text3);
  line-height:1.45;
}
.webhook-howto-dots{
  display:flex;
  gap:6px;
  justify-content:center;
  margin-top:16px;
}
.webhook-howto-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--border);
  display:inline-block;
}
.webhook-howto-dot.is-active{background:var(--text2);}
.webhook-howto-footer{
  display:flex;
  align-items:center;
  gap:8px;
}
.webhook-howto-footer .webhook-howto-next{
  margin-left:auto;
  width:auto;
  min-width:88px;
  padding:8px 14px;
}
.webhook-howto-official{
  font-size:12px;
  color:var(--accent, #2a6df4);
  text-decoration:underline;
}
.webhook-howto-footer #webhook-howto-prev:disabled{
  opacity:0.45;
  cursor:default;
}

.ub-shell .ub-wallet-rows{display:flex;flex-direction:column;gap:12px;margin-top:14px;}
.ub-shell .ub-wallet-row-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;color:#636366;}
.ub-shell .ub-wallet-row-head span:last-child{color:#1c1c1e;font-variant-numeric:tabular-nums;white-space:nowrap;}
.ub-shell .ub-progress-sub .ub-progress-fill{background:#aeaeb2;}
.ub-shell .ub-progress-sub.is-depleted .ub-progress-fill{background:#c7c7cc;}
.ub-shell .ub-cat-list{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;}
.ub-shell .ub-cat-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#f2f2f7;font-size:11px;color:#3a3a3c;}
.ub-shell .ub-cat-chip strong{font-weight:600;font-variant-numeric:tabular-nums;color:#1c1c1e;}


/* PC Command Center — command search */
.dv2-cmd-search-row{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;
  width:100%;margin-top:6px;
}
.dv2-cmd-search{
  flex:1 1 180px;min-width:140px;max-width:360px;
  height:32px;padding:0 12px;border-radius:999px;
  border:1px solid rgba(0,0,0,.14);background:#fff;
  font-size:12px;font-weight:600;color:#111827;outline:none;
}
.dv2-cmd-search:focus{
  border-color:color-mix(in srgb,#12b76a 55%,#d1d5db);
  box-shadow:0 0 0 3px rgba(18,183,106,.12);
}

/* Richer tile meta removed — keep Command Center tiles compact */
#pc-cmd-center .dv2-cmd-tile .cb-meta,
#pc-cmd-center .dv2-cmd-tile .cb-req,
#mobile-cmd-center .dv2-cmd-tile .cb-meta,
#mobile-cmd-center .dv2-cmd-tile .cb-req{display:none !important;}
#pc-cmd-center .dv2-cmd-tile .cb-meta{
  display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:2px;
}
#pc-cmd-center .dv2-cmd-tile .cb-chip{
  font-size:8px;font-weight:700;line-height:1;padding:3px 5px;border-radius:999px;
  background:#f3f4f6;color:#4b5563;border:1px solid #e5e7eb;
}
#pc-cmd-center .dv2-cmd-tile .cb-chip.plat-pc{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}
#pc-cmd-center .dv2-cmd-tile .cb-chip.plat-mobile{background:#ecfdf5;color:#047857;border-color:#a7f3d0;}
#pc-cmd-center .dv2-cmd-tile .cb-chip.st-published{background:#f0fdf4;color:#15803d;border-color:#bbf7d0;}
#pc-cmd-center .dv2-cmd-tile .cb-chip.st-draft{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
#pc-cmd-center .dv2-cmd-tile .cb-req{
  font-size:8px;font-weight:600;color:#6b7280;line-height:1.25;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
  max-width:100%;
}
#pc-cmd-center .dv2-cmd-tile.is-recent{outline:1px solid rgba(18,183,106,.35);}


.dv2-pcfe-trigger-wrap { display:flex; align-items:center; gap:6px; }
.dv2-pcfe-trigger { min-width:120px; font-size:12px; padding:4px 8px; }
.dv2-pcfe-resource {
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.dv2-pcfe-resource-title { font-size:12px; font-weight:700; margin-bottom:8px; color:var(--text); }
.dv2-pcfe-resource-grid { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; }
.dv2-pcfe-resource-metric { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text2); }
.dv2-pcfe-resource-num { width:64px; padding:3px 6px; font-size:12px; }
