/* Program Bay GEO App — light / dark shell */
:root,
html[data-theme="light"]{
  --g-font:"Pretendard",system-ui,sans-serif;
  --g-side:#1c1f24;
  --g-side-text:#c8c9d1;
  --g-side-muted:#8b919a;
  --g-side-active:#2a2f36;
  --g-side-border:rgba(255,255,255,.08);
  --g-bg:#eef1f5;
  --g-panel:#ffffff;
  --g-ink:#15202b;
  --g-muted:#667788;
  --g-line:#e2e8f0;
  --g-soft:#f4f7fa;
  --g-accent:#0d7a6f;
  --g-accent-2:#0a5f57;
  --g-accent-soft:#e7f5f3;
  --g-ok:#16a34a;
  --g-ok-soft:#e8f8ee;
  --g-warn:#a16207;
  --g-shadow:0 8px 24px rgba(15,23,42,.06);
  --g-top:#ffffff;
  --g-hero-grad:linear-gradient(135deg,#f8fafc 0%,#eef6f4 55%,#e8eef8 100%);
  --g-banner-bg:#f1f5f9;
  --g-banner-ink:#475569;
  --g-input-bg:#fff;
  --g-chip:#fff;
}

html[data-theme="dark"]{
  --g-side:#14161a;
  --g-side-text:#c9ced6;
  --g-side-muted:#7e8693;
  --g-side-active:#22262d;
  --g-side-border:rgba(255,255,255,.07);
  --g-bg:#0f1115;
  --g-panel:#1a1d24;
  --g-ink:#e8edf4;
  --g-muted:#9aa5b5;
  --g-line:#2a303a;
  --g-soft:#22262e;
  --g-accent:#2bb5a5;
  --g-accent-2:#1f8f82;
  --g-accent-soft:rgba(43,181,165,.14);
  --g-ok:#34d399;
  --g-ok-soft:rgba(52,211,153,.12);
  --g-warn:#fbbf24;
  --g-shadow:0 10px 28px rgba(0,0,0,.35);
  --g-top:#161920;
  --g-hero-grad:linear-gradient(135deg,#1a1f28 0%,#17241f 50%,#1a2030 100%);
  --g-banner-bg:#1e2430;
  --g-banner-ink:#a8b3c4;
  --g-input-bg:#12151b;
  --g-chip:#22262e;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body.geo-app{
  font-family:var(--g-font);
  color:var(--g-ink);
  background:var(--g-bg);
  overflow:hidden;
}

.geo-shell{
  display:grid;
  grid-template-columns:260px 1fr;
  height:100%;
  min-height:0;
}

/* ---- Sidebar ---- */
.geo-side{
  background:var(--g-side);
  color:var(--g-side-text);
  display:flex;flex-direction:column;
  min-height:0;border-right:1px solid var(--g-side-border);
}
.geo-brand{
  display:flex;align-items:center;gap:10px;
  padding:18px 16px 12px;
  flex-shrink:0;
}
.geo-brand-mark{
  width:34px;height:34px;border-radius:10px;
  background:
    conic-gradient(from 210deg,#5b8def,#34d399,#f59e0b,#ec4899,#5b8def);
  position:relative;
  box-shadow:0 0 0 2px rgba(255,255,255,.12);
}
.geo-brand-mark::after{
  content:"";position:absolute;inset:6px;border-radius:6px;background:var(--g-side);
}
.geo-brand-name{
  font-size:16px;font-weight:800;letter-spacing:-.03em;color:#fff;
  text-decoration:none;
}
a.geo-brand-name:hover{color:#fff;opacity:.92}
.geo-site-switcher{
  margin:0 12px 10px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--g-side-border);
  flex-shrink:0;
}
.geo-site-switcher-row{display:flex;flex-direction:column;gap:4px}
.geo-site-switcher-label{
  font-size:10px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--g-side-muted);
}
.geo-site-select-wrap{
  position:relative;
  display:block;
}
.geo-site-select{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background:rgba(0,0,0,.22);
  color:#e8eefc;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:8px 32px 8px 10px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  line-height:1.35;
}
.geo-site-select::-ms-expand{display:none}
.geo-site-select:focus{
  outline:2px solid rgba(94,212,198,.4);
  outline-offset:1px;
  border-color:rgba(94,212,198,.45);
}
.geo-site-remain{
  margin-top:6px;
  font-size:11px;
  font-weight:600;
  line-height:1.4;
  color:var(--g-side-muted);
  text-align:right;
  word-break:keep-all;
}
.geo-site-chev{
  pointer-events:none;
  position:absolute;
  right:11px;
  top:50%;
  width:8px;
  height:8px;
  margin-top:-5px;
  border-right:2px solid rgba(232,238,252,.85);
  border-bottom:2px solid rgba(232,238,252,.85);
  transform:rotate(45deg);
  transition:transform .15s ease, margin-top .15s ease;
}
.geo-site-select-wrap.is-open .geo-site-chev,
.geo-site-select-wrap:focus-within .geo-site-chev{
  margin-top:1px;
  transform:rotate(-135deg);
}
.geo-site-add{
  margin-top:10px;
  width:100%;
  border:0;
  background:transparent;
  color:#9ae5db;
  font-size:12px;
  font-weight:700;
  text-align:left;
  padding:2px 0;
  cursor:pointer;
}
.geo-site-add:hover{text-decoration:underline}
.geo-user-card{
  margin:0 12px 12px;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--g-side-border);
  flex-shrink:0;
}
.geo-user-row{display:flex;align-items:center;gap:10px}
.geo-avatar{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#64748b,#94a3b8);
  display:grid;place-items:center;color:#fff;font-size:13px;font-weight:700;
}
.geo-user-meta{min-width:0;flex:1}
.geo-user-card .geo-user-name,
.geo-side .geo-user-meta .geo-user-name{
  font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.geo-user-badge{
  display:inline-flex;margin-top:3px;padding:2px 7px;border-radius:999px;
  font-size:10px;font-weight:700;background:rgba(43,181,165,.18);color:#7dd3c7;
}
.geo-user-badge.is-paid{background:rgba(34,197,94,.18);color:#86efac}
.geo-user-badge.is-trial{background:rgba(148,163,184,.2);color:#cbd5e1}
.geo-quota{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;
}
.geo-quota-item{
  padding:7px 8px;border-radius:8px;background:rgba(0,0,0,.18);
  font-size:10px;color:var(--g-side-muted);line-height:1.35;
}
.geo-quota-item b{display:block;color:#e8edf4;font-size:11px;margin-bottom:2px}
.geo-quota-item [data-geo-quota-val]{color:var(--g-side-muted)}
.geo-quota-btn{
  grid-column:1 / -1;
  margin-top:2px;height:30px;border-radius:8px;
  border:1px solid var(--g-side-border);background:rgba(255,255,255,.04);
  color:#d7dde6;font:inherit;font-size:11px;font-weight:700;cursor:pointer;
}
.geo-quota-btn:hover{background:rgba(255,255,255,.08)}

.geo-nav{
  flex:1;min-height:0;overflow:auto;padding:4px 10px 12px;
  -webkit-overflow-scrolling:touch;
}
.geo-nav-group{margin-bottom:8px}
.geo-nav-group-btn{
  width:100%;display:flex;align-items:center;gap:8px;
  padding:9px 10px;border:0;border-radius:10px;
  background:transparent;color:var(--g-side-text);
  font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left;
}
.geo-nav-group-btn:hover{background:rgba(255,255,255,.05)}
.geo-nav-group.is-open > .geo-nav-group-btn{background:rgba(255,255,255,.06);color:#fff}
.geo-nav-ico{
  width:18px;height:18px;border-radius:5px;flex-shrink:0;
  background:rgba(255,255,255,.12);
  display:grid;place-items:center;font-size:10px;
}
.geo-nav-chev{margin-left:auto;opacity:.5;font-size:10px;transition:transform .18s}
.geo-nav-group.is-open .geo-nav-chev{transform:rotate(90deg)}
.geo-nav-sub{display:none;padding:2px 0 6px 8px}
.geo-nav-group.is-open .geo-nav-sub{display:block}
.geo-nav-cluster{
  margin:0;padding:0;
}
.geo-nav-cluster-core{
  padding:0;
  background:transparent;
  border:0;
}
.geo-nav-cluster-da,
.geo-nav-cluster-report{
  margin-top:4px;
  padding-top:6px;
  border-top:1px dashed rgba(255,255,255,.14);
  border-radius:0;
  background:transparent;
}
.geo-nav-cluster .geo-nav-link{padding-left:28px}
.geo-nav-link{
  display:flex;align-items:center;gap:8px;
  width:100%;padding:8px 10px 8px 28px;border:0;border-radius:8px;
  background:transparent;color:var(--g-side-muted);
  font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;text-align:left;
  text-decoration:none;
}
.geo-nav-link:hover{background:rgba(255,255,255,.05);color:#e8edf4}
.geo-nav-link.is-active{
  background:var(--g-side-active);color:#fff;
  box-shadow:inset 3px 0 0 var(--g-accent);
}
.geo-nav-link .lock{
  margin-left:auto;font-size:10px;opacity:.55;
}
.geo-nav-link.is-locked,
.geo-nav-link.is-locked:hover{
  opacity:.48;cursor:not-allowed;color:var(--g-side-muted);
  background:transparent;box-shadow:none;
}
.geo-nav-locked [data-geo-mypage-link].is-locked,
.geo-nav-locked [data-geo-plan-chip].is-locked{
  opacity:.45;pointer-events:auto;cursor:not-allowed;
}
.geo-nav-link .soon{
  margin-left:auto;font-size:9px;font-weight:700;padding:1px 6px;border-radius:999px;
  background:rgba(255,255,255,.08);color:var(--g-side-muted);
}

.geo-side-foot{
  flex-shrink:0;padding:12px 12px 14px;border-top:1px solid var(--g-side-border);
  display:flex;flex-direction:column;gap:10px;
}
.geo-side-theme{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 10px;border-radius:10px;
  background:rgba(255,255,255,.04);border:1px solid var(--g-side-border);
}
.geo-side-theme-label{
  font-size:12px;font-weight:700;color:var(--g-side-muted);letter-spacing:.02em;
}
.geo-side-theme .geo-theme-switch{width:96px;height:32px}
.geo-side-theme .geo-theme-switch-knob{width:28px;height:28px;top:2px;left:calc(100% - 30px)}
html[data-theme="dark"] .geo-side-theme .geo-theme-switch-knob{left:2px}
.geo-side-info{padding:2px 4px 0}
.geo-side-info-title{
  font-size:12px;font-weight:800;color:#e8edf4;letter-spacing:-.02em;
}
.geo-side-info-desc{
  margin:4px 0 0;font-size:11px;line-height:1.45;color:var(--g-side-muted);
}
.geo-side-info-link{
  display:inline-block;margin-top:6px;
  font-size:11px;font-weight:700;color:#7dd3c7;text-decoration:none;
}
.geo-side-info-link:hover{text-decoration:underline;color:#9ae5db}

/* ---- Main ---- */
.geo-main{
  display:flex;flex-direction:column;min-width:0;min-height:0;
}
.geo-top{
  flex-shrink:0;height:52px;display:flex;align-items:center;gap:12px;
  padding:0 18px;background:var(--g-top);border-bottom:1px solid var(--g-line);
}
.geo-menu-btn{
  display:none;width:36px;height:36px;border:0;border-radius:9px;
  background:var(--g-soft);cursor:pointer;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;
}
.geo-menu-btn span{display:block;width:16px;height:2px;background:var(--g-ink);border-radius:2px}
.geo-banner{
  flex:0 1 auto;width:max-content;max-width:min(100%, 360px);
  height:32px;display:flex;align-items:center;padding:0 14px;border-radius:9px;
  background:var(--g-banner-bg);color:var(--g-banner-ink);
  font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.geo-top-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.geo-plan-chip{
  height:34px;padding:0 12px;border-radius:999px;
  border:1px solid var(--g-line);background:var(--g-panel);color:var(--g-muted);
  font:inherit;font-size:12px;font-weight:700;text-decoration:none;
  display:inline-flex;align-items:center;white-space:nowrap;max-width:min(46vw,220px);
  overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;
}
.geo-plan-chip:hover{background:var(--g-soft);border-color:var(--g-line);color:var(--g-ink)}
.geo-plan-chip.is-paid{
  border-color:var(--g-line);
  background:var(--g-panel);
  color:var(--g-muted);
}
.geo-plan-chip.is-trial{
  border-color:var(--g-line);
  color:var(--g-muted);
}
.geo-icon-btn{
  height:34px;padding:0 12px;border-radius:9px;
  border:1px solid var(--g-line);background:var(--g-panel);color:var(--g-ink);
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;text-decoration:none;
}
.geo-icon-btn:hover{background:var(--g-soft)}
.geo-theme-btn{
  height:34px;padding:0 12px;border-radius:9px;
  border:1px solid var(--g-line);background:var(--g-panel);color:var(--g-ink);
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;
}
/* Neumorphic light/dark switch */
.geo-theme-switch{
  width:96px;height:34px;padding:0;border:0;background:transparent;cursor:pointer;
  flex-shrink:0;font:inherit;
}
.geo-theme-switch-rail{
  position:relative;display:block;width:100%;height:100%;border-radius:999px;
  background:#e8ecf1;
  box-shadow:inset 2px 2px 5px rgba(0,0,0,.12), inset -2px -2px 5px rgba(255,255,255,.85);
}
html[data-theme="dark"] .geo-theme-switch-rail{
  background:#1b2330;
  box-shadow:inset 3px 3px 7px rgba(0,0,0,.55), inset -1px -1px 4px rgba(255,255,255,.04);
}
.geo-theme-switch-text{
  position:absolute;top:50%;transform:translateY(-50%);
  font-size:9px;font-weight:800;letter-spacing:.04em;line-height:1;
  pointer-events:none;transition:opacity .2s;
}
.geo-theme-switch-text-light{left:8px;color:#6b7280}
.geo-theme-switch-text-dark{right:8px;color:#9aa3b2;opacity:0}
html[data-theme="dark"] .geo-theme-switch-text-light{opacity:0}
html[data-theme="dark"] .geo-theme-switch-text-dark{opacity:1}
.geo-theme-switch-knob{
  position:absolute;top:2px;left:calc(100% - 32px);width:30px;height:30px;border-radius:50%;
  background:#fff;display:grid;place-items:center;
  box-shadow:2px 2px 6px rgba(0,0,0,.16), -1px -1px 3px rgba(255,255,255,.7);
  transition:left .25s ease;
}
html[data-theme="dark"] .geo-theme-switch-knob{left:2px}
.geo-theme-switch-knob svg{display:block}
.geo-theme-switch-knob .ico-sun{color:#f59e0b}
.geo-theme-switch-knob .ico-moon{color:#7dd3fc;display:none}
html[data-theme="dark"] .geo-theme-switch-knob .ico-sun{display:none}
html[data-theme="dark"] .geo-theme-switch-knob .ico-moon{display:block}

/* Shared AISearcher tab bar (aisearcher + briefing-check) */
.as-tabs{
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;
  padding:6px;border-radius:12px;background:var(--g-panel);border:1px solid var(--g-line);
}
.as-tab{
  height:36px;padding:0 14px;border-radius:9px;border:0;
  background:transparent;color:var(--g-muted);font:inherit;font-size:13px;font-weight:700;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;
}
a.as-tab{color:var(--g-muted)}
.as-tab.is-active{background:var(--g-accent);color:#fff}
.as-tab:hover:not(.is-active){background:var(--g-soft);color:var(--g-ink)}
.geo-user-chip{
  height:34px;padding:0 10px 0 6px;border-radius:999px;
  border:1px solid var(--g-line);background:var(--g-panel);
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;color:var(--g-ink);
}
.geo-user-chip .dot{
  width:22px;height:22px;border-radius:50%;background:var(--g-accent-soft);color:var(--g-accent-2);
  display:grid;place-items:center;font-size:10px;
}

/* Profile menu (Korea Biz Map style) */
.geo-user-menu{position:relative;flex-shrink:0}
.geo-user-btn{
  height:34px;padding:0 10px 0 4px;border-radius:999px;
  border:1px solid var(--g-line) !important;background:var(--g-panel);color:var(--g-ink);
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
  box-sizing:border-box;
}
.geo-user-btn:hover{background:var(--g-soft);border-color:var(--g-accent)}
.geo-user-btn[aria-expanded="true"]{border-color:var(--g-accent);background:var(--g-soft)}
.geo-user-avatar{
  width:26px;height:26px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--g-accent),var(--g-accent-2,#0d9488));
  color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;
}
.geo-user-btn .geo-user-name,
.geo-top-actions .geo-user-name{
  max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px;font-weight:700;color:var(--g-ink);
}
.geo-user-chevron{opacity:.45;flex-shrink:0;transition:transform .15s ease}
.geo-user-btn[aria-expanded="true"] .geo-user-chevron{transform:rotate(180deg)}
.geo-user-dropdown{
  position:absolute;top:calc(100% + 8px);right:0;z-index:1200;
  min-width:220px;padding:8px;
  border-radius:12px;border:1px solid var(--g-line);
  background:var(--g-panel);box-shadow:0 12px 32px rgba(0,0,0,.18);
  animation:geoUserDrop .15s ease;
}
@keyframes geoUserDrop{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}
.geo-user-dropdown[hidden]{display:none!important}
.geo-user-dropdown-head{padding:10px 12px}
.geo-user-dropdown-name{font-size:14px;font-weight:800;color:var(--g-ink);line-height:1.3}
.geo-user-dropdown-meta{margin-top:3px;font-size:11px;font-weight:600;color:var(--g-muted)}
.geo-user-dropdown-divider{height:1px;background:var(--g-line);margin:4px 0}
.geo-user-dropdown-item{
  display:flex;align-items:center;gap:8px;width:100%;
  padding:10px 12px;border:0;border-radius:8px;
  background:transparent;color:var(--g-ink);
  font:inherit;font-size:13px;font-weight:600;
  text-decoration:none;text-align:left;cursor:pointer;
}
.geo-user-dropdown-item:hover{background:var(--g-soft);color:var(--g-ink)}
.geo-user-dropdown-item svg{flex-shrink:0;opacity:.55}
.geo-user-dropdown-item.is-danger{color:#e74c3c}
.geo-user-dropdown-item.is-danger:hover{background:rgba(231,76,60,.1);color:#e74c3c}
@media (max-width:720px){
  .geo-user-name{display:none}
}

.geo-content{
  flex:1;min-height:0;overflow:auto;padding:18px 20px 28px;
  -webkit-overflow-scrolling:touch;
}
.geo-view{display:none;max-width:1280px;margin:0 auto}
.geo-view.is-active{display:block}

.geo-hero{
  display:grid;grid-template-columns:1.4fr .9fr;gap:18px;align-items:center;
  padding:22px 24px;border-radius:16px;background:var(--g-hero-grad);
  border:1px solid var(--g-line);box-shadow:var(--g-shadow);margin-bottom:14px;
}
.geo-hero h1{
  margin:0;font-size:26px;font-weight:800;letter-spacing:-.04em;line-height:1.35;
}
.geo-hero p{margin:10px 0 0;font-size:14px;color:var(--g-muted);line-height:1.55;max-width:52ch}
.geo-logos{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;
}
.geo-logo-pill{
  width:42px;height:42px;border-radius:12px;
  background:var(--g-chip);border:1px solid var(--g-line);
  display:grid;place-items:center;font-size:11px;font-weight:800;color:var(--g-muted);
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.geo-flow{
  display:grid;grid-template-columns:1.2fr .8fr;gap:16px;
  padding:18px 20px;border-radius:16px;background:var(--g-panel);
  border:1px solid var(--g-line);box-shadow:var(--g-shadow);margin-bottom:14px;
}
.geo-flow h2{margin:0 0 12px;font-size:15px;font-weight:800}
.geo-flow ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.geo-flow li{
  display:flex;gap:10px;align-items:flex-start;
  font-size:13px;line-height:1.45;color:var(--g-muted);
}
.geo-flow .n{
  width:22px;height:22px;border-radius:50%;flex-shrink:0;
  background:var(--g-accent);color:#fff;font-size:11px;font-weight:800;
  display:grid;place-items:center;
}
.geo-flow li b{color:var(--g-ink);font-weight:700}
.geo-flow-art{
  border-radius:14px;background:var(--g-soft);border:1px solid var(--g-line);
  min-height:140px;display:grid;place-items:center;position:relative;overflow:hidden;
}
.geo-flow-art .orb{
  width:88px;height:88px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#7dd3c7,#0d7a6f 70%);
  box-shadow:0 0 0 18px rgba(13,122,111,.12),0 0 0 36px rgba(13,122,111,.06);
}
.geo-flow-art .node{
  position:absolute;width:10px;height:10px;border-radius:50%;background:var(--g-accent);
  opacity:.7;
}

.geo-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:14px;align-items:stretch;
}
.geo-card{
  background:var(--g-panel);border:1px solid var(--g-line);border-radius:16px;
  box-shadow:var(--g-shadow);padding:16px 18px;
}
#brandCard{
  display:flex;flex-direction:column;min-height:100%;height:100%;
}
#brandCard .geo-card-head{
  margin-bottom:14px;flex:none;
}
#brandCard .geo-card-head h3{
  font-size:22px;font-weight:800;letter-spacing:-.04em;line-height:1.25;
  display:inline-block;padding-bottom:8px;
  border-bottom:2.5px solid var(--g-accent);
  color:var(--g-ink);
}
#brandCard .geo-form{
  flex:1;display:flex;flex-direction:column;gap:12px;min-height:0;
}
#brandCard .geo-form-actions{
  margin-top:auto;padding-top:14px;
  border-top:1px solid color-mix(in srgb,var(--g-line) 85%,transparent);
  flex:none;
}
/* 저장 상태: 우측 높이에 맞춘 뒤 안쪽을 프로필 카드처럼 정리 */
#brandCard .geo-form.is-readonly{
  gap:8px;
  justify-content:flex-start;
}
#brandCard .geo-form.is-readonly .geo-field{
  padding:11px 13px;
  border-radius:12px;
  background:color-mix(in srgb,var(--g-soft) 88%,transparent);
  border:1px solid color-mix(in srgb,var(--g-line) 75%,transparent);
}
#brandCard .geo-form.is-readonly .geo-row-2{
  gap:8px;align-items:stretch;
}
#brandCard .geo-form.is-readonly .geo-row-2 .geo-field{
  height:100%;
}
#brandCard .geo-form.is-readonly .geo-field label,
#brandCard .geo-form.is-readonly .geo-field-head{
  margin:0 0 5px;
}
#brandCard .geo-form.is-readonly .geo-field label{
  font-size:11px;font-weight:750;letter-spacing:.02em;
  text-transform:none;color:var(--g-muted);
}
#brandCard .geo-form.is-readonly .geo-field-view{
  font-size:14.5px;font-weight:650;line-height:1.5;
  letter-spacing:-.015em;color:var(--g-ink);
}
#brandCard .geo-form.is-readonly .geo-field-view.is-empty{
  color:var(--g-muted);font-weight:600;
}
#brandCard .geo-form.is-readonly .geo-subhead,
#brandCard .geo-form .geo-subhead.brand-section-title{
  margin:8px 2px 2px;padding:0;
  font-size:14.5px;font-weight:800;letter-spacing:-.01em;
  color:color-mix(in srgb,var(--g-ink) 88%,var(--g-muted));
}
#brandCard .geo-form .geo-subhead.brand-section-title:first-child{
  margin-top:0;
}
#brandCard .geo-form.is-readonly .geo-nosite-toggle{
  height:24px;padding:0 9px;font-size:11px;border-radius:999px;
}
.brand-meta-panel{
  display:none;
  flex:1 1 auto;
  min-height:36px;
  margin-top:2px;
  align-items:flex-end;
  justify-content:flex-end;
}
#brandCard .geo-form.is-readonly .brand-meta-panel{
  display:flex;
}
.brand-meta-dates{
  text-align:right;
  padding:4px 2px 2px;
}
.brand-meta-row{
  display:flex;align-items:baseline;justify-content:flex-end;gap:8px;
  font-size:11.5px;line-height:1.55;
}
.brand-meta-row .k{
  color:var(--g-muted);font-weight:700;letter-spacing:.01em;
}
.brand-meta-row .v{
  color:color-mix(in srgb,var(--g-ink) 78%,var(--g-muted));
  font-weight:650;font-variant-numeric:tabular-nums;
  min-width:9.5em;
}
#brandCard .geo-form.is-readonly .geo-form-actions{
  margin-top:8px;padding-top:12px;
}
html[data-theme="dark"] #brandCard .geo-form.is-readonly .geo-field{
  background:color-mix(in srgb,var(--g-soft) 70%,transparent);
}
.geo-needs-onboarding .geo-hero,
.geo-needs-onboarding .geo-flow,
.geo-needs-onboarding #autopilotPanel,
.geo-needs-onboarding .geo-diag-stack{
  display:none;
}
.geo-needs-onboarding .geo-grid{
  display:block;max-width:760px;margin:28px auto 0;
}
.geo-needs-onboarding #brandCard{
  min-height:0;height:auto;padding:24px;
  border-color:color-mix(in srgb,var(--g-accent) 45%,var(--g-line));
  position:relative;z-index:1;
}
.geo-needs-onboarding #brandCard .geo-card-head h3{
  font-size:20px;
}
/* 온보딩 배경: 은은한 글로우 + 격자 (카드 뒤 장식) */
.geo-needs-onboarding #view-home{
  position:relative;overflow:hidden;
  padding-bottom:56px;
}
.geo-needs-onboarding #view-home::before,
.geo-needs-onboarding #view-home::after{
  content:"";position:absolute;pointer-events:none;z-index:0;
}
.geo-needs-onboarding #view-home::before{
  inset:-10% -14% auto -14%;height:520px;
  background:
    radial-gradient(46% 60% at 24% 12%,color-mix(in srgb,var(--g-accent) 18%,transparent),transparent 70%),
    radial-gradient(40% 52% at 82% 4%,color-mix(in srgb,var(--g-accent) 12%,transparent),transparent 72%);
  filter:blur(6px);
}
.geo-needs-onboarding #view-home::after{
  inset:0;
  background-image:
    linear-gradient(to right,color-mix(in srgb,var(--g-line) 55%,transparent) 1px,transparent 1px),
    linear-gradient(to bottom,color-mix(in srgb,var(--g-line) 55%,transparent) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(68% 58% at 50% 34%,#000 0%,transparent 78%);
  -webkit-mask-image:radial-gradient(68% 58% at 50% 34%,#000 0%,transparent 78%);
  opacity:.5;
}
.geo-onboard-intro{
  display:none;position:relative;z-index:1;
  max-width:760px;margin:34px auto 0;text-align:center;
}
body.geo-setup .geo-onboard-intro{display:block}
body.geo-setup .geo-onboard-steps{display:grid}
.geo-needs-onboarding .geo-onboard-intro{display:block}
/* 상단 인트로가 안내를 대신하므로 카드 내 중복 문구는 숨김 */
.geo-needs-onboarding #brandOnboardingGuide{display:none}
.geo-onboard-badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 12px;border-radius:999px;
  border:1px solid color-mix(in srgb,var(--g-accent) 34%,var(--g-line));
  background:color-mix(in srgb,var(--g-accent) 10%,var(--g-panel));
  color:var(--g-accent-2,#0a5f57);
  font-size:11.5px;font-weight:800;letter-spacing:.02em;
}
html[data-theme="dark"] .geo-onboard-badge{color:#7dd3c7}
.geo-onboard-badge::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:var(--g-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--g-accent) 22%,transparent);
}
.geo-onboard-intro h2{
  margin:14px 0 6px;font-size:24px;font-weight:800;letter-spacing:-.02em;
  color:var(--g-ink);
}
.geo-onboard-intro p{
  margin:0;font-size:13.5px;line-height:1.6;color:var(--g-muted);
}
.geo-needs-onboarding .geo-grid{margin-top:18px}
.geo-onboard-steps{
  position:relative;z-index:1;
  display:none;max-width:760px;margin:16px auto 0;
  grid-template-columns:repeat(3,1fr);gap:10px;
}
.geo-needs-onboarding .geo-onboard-steps{display:grid}
.geo-onboard-step{
  display:flex;align-items:center;gap:9px;
  padding:11px 13px;border-radius:12px;
  border:1px solid var(--g-line);background:var(--g-panel);
  font-size:12px;font-weight:700;color:var(--g-muted);
}
a.geo-onboard-step.is-link{
  text-decoration:none;cursor:pointer;
  transition:border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
a.geo-onboard-step.is-link:hover{
  border-color:var(--g-accent);color:var(--g-ink);
  box-shadow:0 0 0 2px rgba(13,122,111,.12);
}
.geo-onboard-step b{
  display:grid;place-items:center;flex-shrink:0;
  width:20px;height:20px;border-radius:50%;
  background:color-mix(in srgb,var(--g-accent) 14%,var(--g-soft));
  color:var(--g-accent-2,#0a5f57);font-size:11px;font-weight:800;
}
html[data-theme="dark"] .geo-onboard-step b{color:#7dd3c7}
@media (max-width:820px){
  .geo-onboard-steps{grid-template-columns:1fr}
  .geo-onboard-intro h2{font-size:20px}
}
@media (prefers-reduced-motion:reduce){
  .geo-needs-onboarding #view-home::before{filter:none}
}
.geo-diag-stack{
  display:flex;flex-direction:column;gap:12px;min-height:100%;height:100%;
}
.geo-diag-stack > .geo-card:last-child{
  flex:1;
}
.geo-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:14px;
}
.geo-card-head h3{margin:0;font-size:15px;font-weight:800;letter-spacing:-.02em}
.geo-card-head .meta{font-size:11px;color:var(--g-muted);font-weight:600}
.geo-btn{
  height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--g-line);
  background:var(--g-soft);color:var(--g-ink);font:inherit;font-size:12px;font-weight:700;
  cursor:pointer;display:inline-flex;align-items:center;gap:6px;
}
.geo-btn:hover{filter:brightness(.97)}
.geo-btn.primary{background:var(--g-accent);border-color:var(--g-accent);color:#fff}
.geo-btn.primary:hover{background:var(--g-accent-2)}
.geo-btn.ghost{background:transparent}
.geo-btn.blog-cta{
  background:var(--g-accent);
  border-color:var(--g-accent);
  color:#fff;
  font-weight:800;
  box-shadow:0 0 0 1px rgba(13,122,111,.25), 0 6px 16px rgba(13,122,111,.28);
  letter-spacing:-.01em;
}
.geo-btn.blog-cta:hover{
  background:var(--g-accent-2);
  border-color:var(--g-accent-2);
  filter:none;
  transform:translateY(-1px);
}
html[data-theme="dark"] .geo-btn.blog-cta{
  box-shadow:0 0 0 1px rgba(125,211,199,.2), 0 8px 20px rgba(0,0,0,.35);
}
.geo-user-dropdown-item.is-blog{
  color:var(--g-accent);
  font-weight:800;
  background:var(--g-accent-soft);
}
.geo-user-dropdown-item.is-blog:hover{
  background:rgba(13,122,111,.18);
  color:var(--g-accent-2);
}
.geo-user-dropdown-item.is-blog svg{opacity:.9;color:var(--g-accent)}
html[data-theme="dark"] .geo-user-dropdown-item.is-blog{
  background:rgba(125,211,199,.12);
  color:#7dd3c7;
}
html[data-theme="dark"] .geo-user-dropdown-item.is-blog:hover{
  background:rgba(125,211,199,.2);
  color:#a7ebe3;
}
.geo-user-dropdown-item[hidden]{display:none!important}

.geo-form-actions{
  display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:4px;flex-wrap:wrap;
}
.geo-form.is-readonly .geo-form-actions{justify-content:space-between}
.geo-solution-bar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin-top:14px;padding:14px 16px;border-radius:14px;
  background:linear-gradient(135deg,rgba(220,38,38,.08),rgba(13,122,111,.08));
  border:1px solid rgba(220,38,38,.25);
}
.geo-solution-bar[hidden]{display:none!important}
.geo-solution-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.geo-solution-copy strong{font-size:13px;font-weight:800}
.geo-solution-copy span{font-size:12px;color:var(--g-muted);line-height:1.4}

.geo-modal[hidden]{display:none!important}
.geo-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px}
.geo-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.geo-modal-panel{
  position:relative;z-index:1;width:min(720px,100%);max-height:min(84vh,820px);
  overflow:auto;border-radius:16px;background:var(--g-panel);border:1px solid var(--g-line);
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}
/* 비로그인 필수 게이트 */
.geo-login-gate{z-index:200}
/* 1단계: 안내 모달 — 다크 테마 유지, 중앙 정렬·여백 정리 */
.geo-login-notice-panel{
  width:min(400px,100%);
  max-height:none;
  overflow:visible;
  border-radius:16px;
  padding:0;
}
.geo-login-notice-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:32px 28px 28px;
  gap:0;
}
.geo-login-notice-icon{
  width:56px;height:56px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  margin:0 0 18px;
  color:var(--g-accent,#0d7a6f);
  background:rgba(13,122,111,.14);
  border:1px solid rgba(13,122,111,.22);
}
html[data-theme="dark"] .geo-login-notice-icon{
  background:rgba(45,212,191,.12);
  border-color:rgba(45,212,191,.22);
  color:#2dd4bf;
}
.geo-login-notice-title{
  margin:0 0 12px;
  font-size:18px;font-weight:800;letter-spacing:-0.02em;
  color:var(--g-ink,#0f172a);line-height:1.3;
}
html[data-theme="dark"] .geo-login-notice-title{color:#f1f5f9}
.geo-login-lead{
  margin:0 0 8px;
  font-size:14px;line-height:1.65;
  color:var(--g-ink,#334155);font-weight:500;
}
html[data-theme="dark"] .geo-login-lead{color:#e2e8f0}
.geo-login-sub{
  margin:0 0 22px;
  font-size:12.5px;line-height:1.55;
  color:var(--g-muted,#64748b);
}
.geo-login-actions{
  display:flex;width:100%;justify-content:center;
}
.geo-login-notice-btn{
  width:100%;
  min-width:0 !important;
  height:44px !important;
  border-radius:10px !important;
  font-size:14px !important;
  font-weight:700 !important;
  letter-spacing:-0.01em;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  box-shadow:0 6px 16px rgba(13,122,111,.28);
  transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.geo-login-notice-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:0 8px 20px rgba(13,122,111,.34);
}
.geo-login-notice-btn:active{transform:translateY(0)}
@keyframes geoLoginNoticeIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:none}
}
.geo-login-gate:not([hidden]) .geo-login-notice-panel:not([hidden]){
  animation:geoLoginNoticeIn .28s ease both;
}
/* 2단계: 프로그램베이 로그인 폼 */
.geo-login-gate .geo-login-panel{
  width:min(440px,100%);max-height:none;overflow:visible;
  padding:0;background:transparent;border:0;box-shadow:none;
}
.geo-login-card{
  background:#fff;color:#222;border-radius:10px;
  box-shadow:0 18px 48px rgba(0,0,0,.35);
  padding:22px 24px 20px;
}
.geo-login-card-head{text-align:center;margin:0 0 16px}
.geo-login-card-head h3{
  margin:0;font-size:20px;font-weight:800;letter-spacing:-0.02em;color:#111;
}
.geo-login-form{margin:0}
.geo-login-row{display:flex;align-items:stretch;gap:8px}
.geo-login-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.geo-login-fields input{
  width:100%;height:40px;box-sizing:border-box;
  border:1px solid #d0d5dd !important;border-radius:4px;
  padding:0 12px;font-size:14px;color:#111 !important;
  background:#fff !important;
  box-shadow:none !important;
}
.geo-login-fields input:focus{
  outline:none;border-color:#5b6cff;box-shadow:0 0 0 3px rgba(91,108,255,.15);
}
.geo-login-submit{
  flex:0 0 88px;width:88px;min-height:88px;
  border:0;border-radius:6px;cursor:pointer;
  color:#fff;font-size:15px;font-weight:800;
  background:linear-gradient(180deg,#5b8def 0%,#6b5ce6 100%);
  box-shadow:0 2px 8px rgba(91,108,255,.35);
}
.geo-login-submit:hover{filter:brightness(1.05)}
.geo-login-submit.is-busy,.geo-login-submit:disabled{opacity:.7;cursor:wait}
.geo-login-status{
  margin:10px 0 0;min-height:1.3em;font-size:12px;line-height:1.4;color:#667085;
}
.geo-login-status.is-error{color:#d92d20}
.geo-login-foot{
  margin-top:14px;display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap;
}
.geo-login-save{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:#444;cursor:pointer;user-select:none;
}
.geo-login-save input{margin:0}
.geo-login-links{display:flex;gap:8px;flex-wrap:wrap}
.geo-login-links a{
  display:inline-flex;align-items:center;justify-content:center;
  height:30px;padding:0 10px;border:1px solid #e4e7ec;border-radius:4px;
  font-size:12px;color:#555;text-decoration:none;background:#fafafa;
}
.geo-login-links a:hover{background:#f2f4f7;color:#111}
html[data-theme="dark"] .geo-login-card{background:#fff;color:#222}
body.geo-login-required .geo-shell,
body.geo-login-required .geo-side,
body.geo-login-required .geo-main,
body.geo-login-required .geo-top,
body.geo-login-required .pb-top,
body.geo-login-required .geo-content,
body.geo-login-required .main,
body.geo-login-required .geo-backdrop,
body.geo-login-required #jobDock,
body.geo-login-required .job-dock{
  pointer-events:none !important;
  user-select:none !important;
}
body.geo-login-required #geoLoginGate{
  pointer-events:auto !important;
}
.geo-modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px;border-bottom:1px solid var(--g-line);position:sticky;top:0;background:var(--g-panel);z-index:1;
}
.geo-modal-head h3{margin:0;font-size:16px;font-weight:800}
.geo-modal-body{padding:16px 18px 22px}
.geo-sol-summary{margin:0 0 16px;font-size:14px;line-height:1.55;color:var(--g-ink)}
.geo-sol-sec{margin:0 0 18px}
.geo-sol-sec h4{margin:0 0 10px;font-size:13px;font-weight:800}
.geo-sol-item{
  padding:12px 12px;border-radius:12px;background:var(--g-soft);border:1px solid var(--g-line);margin-bottom:8px;
}
.geo-sol-item .pri{
  display:inline-block;font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;margin-bottom:6px;
  background:rgba(161,98,7,.15);color:#a16207;
}
.geo-sol-item .pri.is-high{background:rgba(220,38,38,.12);color:#dc2626}
.geo-sol-item .pri.is-low{background:rgba(13,122,111,.12);color:var(--g-accent)}
.geo-sol-item .t{font-size:13px;font-weight:800;margin-bottom:4px}
.geo-sol-item .d{font-size:12px;line-height:1.45;color:var(--g-muted)}
.geo-sol-item a.geo-btn{margin-top:10px}
.geo-form{display:flex;flex-direction:column;gap:12px}
.geo-field label{
  display:block;margin:0 0 6px;font-size:12px;font-weight:700;color:var(--g-muted);
}
.geo-label-hint{font-weight:500;opacity:.85;font-size:11px}
.geo-field-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;
}
.geo-field-head label{margin:0}
.geo-nosite-toggle{
  flex:none;height:28px;padding:0 10px;font-size:12px;border-radius:8px;
}
.geo-nosite-toggle.is-active{
  background:color-mix(in srgb,var(--g-accent) 16%,transparent);
  border-color:color-mix(in srgb,var(--g-accent) 55%,var(--g-line));
  color:var(--g-accent);font-weight:700;
}
#siteUrl:disabled{
  opacity:.55;cursor:not-allowed;background:color-mix(in srgb,var(--g-muted) 8%,var(--g-card));
}
.geo-no-site #brandAutoFill{opacity:.45;cursor:not-allowed}
.geo-no-site .geo-diag-stack{opacity:.55;pointer-events:none;filter:grayscale(.15)}
.geo-field input,.geo-field textarea{
  width:100%;border:1px solid var(--g-line);border-radius:10px;
  background:var(--g-input-bg);color:var(--g-ink);font:inherit;font-size:13px;
  padding:10px 12px;
}
.geo-field input{height:40px}
.geo-field textarea{min-height:72px;resize:vertical;line-height:1.45}
.geo-field input:focus,.geo-field textarea:focus{
  outline:2px solid rgba(13,122,111,.22);border-color:var(--g-accent);
}
/* 저장(읽기) 상태: 입력창 대신 상태 텍스트 */
.geo-field-view{
  display:none;
  font-size:14px;font-weight:650;color:var(--g-ink);
  line-height:1.55;letter-spacing:-.01em;
  white-space:pre-wrap;word-break:break-word;
}
.geo-field-view.is-empty{color:var(--g-muted);font-weight:600}
.geo-form.is-readonly .geo-field input,
.geo-form.is-readonly .geo-field textarea{
  display:none!important;
}
.geo-form.is-readonly .geo-field-view{display:block}
.geo-form.is-readonly .geo-nosite-toggle{
  pointer-events:none;cursor:default;
}
.geo-form.is-readonly .geo-nosite-toggle:not(.is-active){display:none}
.geo-form.is-readonly .geo-subhead .geo-btn{display:none}
/* 잠금 안내 배지 */
.geo-lock-note{
  display:none;align-items:center;gap:6px;
  font-size:11.5px;font-weight:700;color:var(--g-muted);
  padding:5px 10px;border-radius:999px;
  background:var(--g-soft);border:1px solid var(--g-line);
}
.geo-form.is-readonly .geo-lock-note{display:inline-flex}
.geo-lock-note::before{
  content:"";width:12px;height:12px;flex:0 0 auto;opacity:.65;
  background-color:currentColor;
  -webkit-mask:var(--geo-lock-note-ico) center/12px 12px no-repeat;
  mask:var(--geo-lock-note-ico) center/12px 12px no-repeat;
}
.geo-lock-note{--geo-lock-note-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
/* 잠긴 필드 클릭 시 살짝 강조 */
@keyframes geoLockNudge{
  0%,100%{transform:translateX(0)}
  22%{transform:translateX(-3px)}
  55%{transform:translateX(3px)}
  80%{transform:translateX(-1.5px)}
}
.geo-field-view.is-lock-nudge{
  animation:geoLockNudge .32s ease;
  color:var(--g-accent);
}
@media (prefers-reduced-motion:reduce){
  .geo-field-view.is-lock-nudge{animation:none}
}
.geo-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.geo-subhead{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:4px 0 2px;font-size:13px;font-weight:800;
}

/* 카테고리 하이브리드(직접입력 + 업종 검색) */
.cat-combo{position:relative}
.cat-combo input#category{width:100%}
.cat-path{
  margin-top:5px;font-size:11px;font-weight:600;line-height:1.35;
  color:var(--g-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cat-dropdown{
  position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;
  max-height:220px;overflow-y:auto;
  border:1px solid var(--g-line);border-radius:12px;
  background:var(--g-panel);box-shadow:0 12px 28px rgba(0,0,0,.28);
}
.cat-dropdown[hidden]{display:none!important}
.cat-item{
  padding:10px 12px;cursor:pointer;
  border-bottom:1px solid color-mix(in srgb,var(--g-line) 70%,transparent);
}
.cat-item:last-child{border-bottom:none}
.cat-item:hover,
.cat-item.is-active{
  background:color-mix(in srgb,var(--g-accent) 14%,transparent);
}
.cat-item.is-active{border-left:3px solid var(--g-accent)}
.cat-item-name{font-size:13px;font-weight:700;color:var(--g-ink);line-height:1.3}
.cat-item-path{margin-top:2px;font-size:11px;font-weight:600;color:var(--g-muted);line-height:1.35}
.geo-form.is-readonly .cat-path,
.geo-form.is-readonly .cat-dropdown{display:none!important}

.geo-status-grid,
.geo-metric-grid{
  display:grid;gap:6px;
}
.geo-metric-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.geo-metric-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.geo-status,
.geo-metric{
  padding:8px 10px;border-radius:10px;background:var(--g-soft);border:1px solid var(--g-line);
  min-width:0;display:flex;flex-direction:column;gap:2px;
}
.geo-metric-k,
.geo-status .t{font-size:11px;font-weight:700;color:var(--g-muted);letter-spacing:-.01em}
.geo-metric-v,
.geo-status .s{
  display:inline-flex;align-items:center;gap:5px;
  font-size:12px;font-weight:700;color:var(--g-ok);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.geo-metric-v::before,
.geo-status .s::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--g-ok);flex-shrink:0;
}
.geo-metric-d{
  font-size:10px;color:var(--g-muted);line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.geo-metric-d:empty{display:none}
.geo-metric.is-bad .geo-metric-v,
.geo-status.is-bad .s{color:#dc2626}
.geo-metric.is-bad .geo-metric-v::before,
.geo-status.is-bad .s::before{background:#dc2626}
.geo-metric.is-warn .geo-metric-v,
.geo-status.is-warn .s{color:#a16207}
.geo-metric.is-warn .geo-metric-v::before,
.geo-status.is-warn .s::before{background:#a16207}
.geo-metric.is-skip .geo-metric-v,
.geo-status.is-skip .s{color:var(--g-muted)}
.geo-metric.is-skip .geo-metric-v::before,
.geo-status.is-skip .s::before{background:var(--g-muted)}

.geo-diag-block{margin-top:10px}
.geo-diag-block:first-of-type{margin-top:0}
.geo-diag-block-label{
  display:flex;align-items:center;gap:8px;
  margin:0 0 6px;font-size:11px;font-weight:800;color:var(--g-muted);
  letter-spacing:.02em;text-transform:uppercase;
}
.geo-diag-block-label em{
  font-style:normal;font-weight:700;font-size:10px;
  padding:2px 7px;border-radius:999px;
  background:var(--g-accent-soft);color:var(--g-accent-2);
  text-transform:none;letter-spacing:0;
}

.geo-rec-list{
  list-style:none;margin:0;padding:0;
  border:1px solid var(--g-line);border-radius:12px;overflow:hidden;
  background:var(--g-soft);
}
.geo-rec{
  display:grid;grid-template-columns:92px minmax(72px,auto) 1fr;gap:8px;align-items:center;
  padding:8px 12px;border-bottom:1px solid var(--g-line);
  font-size:12px;
}
.geo-rec:last-child{border-bottom:0}
.geo-rec-name{font-weight:800;color:var(--g-ink)}
.geo-rec-val{
  display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--g-ok);
  white-space:nowrap;
}
.geo-rec-val::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--g-ok);flex-shrink:0;
}
.geo-rec-detail{
  color:var(--g-muted);font-size:11px;text-align:right;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.geo-rec-detail:empty{visibility:hidden}
.geo-rec.is-bad .geo-rec-val{color:#dc2626}
.geo-rec.is-bad .geo-rec-val::before{background:#dc2626}
.geo-rec.is-warn .geo-rec-val{color:#a16207}
.geo-rec.is-warn .geo-rec-val::before{background:#a16207}
.geo-rec.is-skip .geo-rec-val{color:var(--g-muted)}
.geo-rec.is-skip .geo-rec-val::before{background:var(--g-muted)}

.geo-ai-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:6px;
}
.geo-ai-item{
  padding:8px 6px;border-radius:10px;text-align:center;
  background:var(--g-soft);border:1px solid var(--g-line);
}
.geo-ai-item img{
  width:20px;height:20px;object-fit:contain;display:block;margin:0 auto 4px;
}
html[data-theme="dark"] .geo-ai-item img[data-invert="1"]{
  filter:brightness(0) invert(1);
}
.geo-ai-item .name{font-size:10px;font-weight:700;margin-bottom:2px}
.geo-ai-item .ok{font-size:10px;font-weight:700;color:var(--g-ok)}
.geo-ai-item.is-bad .ok{color:#dc2626}
.geo-ai-item.is-warn .ok{color:#a16207}
.geo-ai-item.is-skip .ok{color:var(--g-muted)}

/* legacy tech cards — keep harmless if referenced */
.geo-tech-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.geo-tech{
  padding:12px 10px;border-radius:12px;background:var(--g-soft);border:1px solid var(--g-line);
}
.geo-tech .k{font-size:11px;font-weight:800}
.geo-tech .v{margin-top:4px;font-size:11px;font-weight:700;color:var(--g-ok)}
.geo-tech .d{margin-top:3px;font-size:10px;color:var(--g-muted);line-height:1.35}
.geo-tech.is-bad .v{color:#dc2626}
.geo-tech.is-warn .v{color:#a16207}
.geo-tech.is-skip .v{color:var(--g-muted)}
.geo-btn.is-busy,.geo-btn:disabled{opacity:.7;pointer-events:none;cursor:not-allowed}

.geo-standby{
  max-width:560px;margin:60px auto;text-align:center;
  padding:36px 28px;border-radius:16px;background:var(--g-panel);
  border:1px solid var(--g-line);box-shadow:var(--g-shadow);
}
.geo-standby h2{margin:0 0 8px;font-size:20px;font-weight:800}
.geo-standby p{margin:0;color:var(--g-muted);font-size:14px;line-height:1.5}
.geo-toast{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);
  background:#15202b;color:#fff;padding:10px 16px;border-radius:10px;
  font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;z-index:50;
}
.geo-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.geo-backdrop{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:30;
}

@media (max-width:980px){
  .geo-shell{grid-template-columns:1fr}
  .geo-side{
    position:fixed;inset:0 auto 0 0;width:min(280px,86vw);z-index:40;
    transform:translateX(-105%);transition:transform .22s;
  }
  body.geo-nav-open .geo-side{transform:none}
  body.geo-nav-open .geo-backdrop{display:block}
  .geo-menu-btn{display:inline-flex}
  .geo-hero,.geo-flow,.geo-grid{grid-template-columns:1fr}
  .geo-logos{justify-content:flex-start}
  .geo-ai-grid{grid-template-columns:repeat(2,1fr)}
  .geo-metric-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .geo-metric-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .geo-rec{grid-template-columns:80px minmax(64px,auto) 1fr}
  .geo-tech-grid{grid-template-columns:repeat(2,1fr)}
  .geo-row-2{grid-template-columns:1fr}
  .geo-content{padding:12px}
  .geo-hero h1{font-size:20px}
}

/* ---- Brand logos ---- */
.geo-logos{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}
.geo-logo-pill{
  width:48px;height:48px;border-radius:14px;padding:10px;
  background:var(--g-chip);border:1px solid var(--g-line);
  display:grid;place-items:center;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.geo-logo-pill img{
  width:100%;height:100%;object-fit:contain;display:block;
}
html[data-theme="dark"] .geo-logo-pill{
  background:#22262e;
}
html[data-theme="dark"] .geo-logo-pill img[data-invert="1"]{
  filter:brightness(0) invert(1);
}

/* ---- Unified legacy pages (briefing / mypage / aisearcher) ---- */
body.geo-unified{
  overflow:hidden;
}
/* Prefer dashboard geo-shell layout when present */
body.geo-unified .geo-shell{
  height:100%;
  background:var(--g-bg);
}
body.geo-unified .geo-content.main,
body.geo-unified main.geo-content{
  flex:1;min-height:0;min-width:0;
  background:var(--g-bg);color:var(--g-ink);
  -webkit-overflow-scrolling:touch;
  font-family:var(--g-font);
}
/* Legacy shell (top full-width) — keep as fallback */
body.geo-unified .shell{
  height:100%;display:grid;grid-template-columns:260px 1fr;grid-template-rows:52px 1fr;
  overflow:hidden;background:var(--g-bg);
}
body.geo-unified .shell > aside.geo-side,
body.geo-unified .shell > aside.side{
  grid-row:1 / -1;grid-column:1;
}
body.geo-unified .shell > header.geo-top,
body.geo-unified .shell > .geo-top,
body.geo-unified .shell > .pb-top{
  grid-row:1;grid-column:2;
}
body.geo-unified .shell > .app{
  grid-row:2;grid-column:2;
  display:block;min-height:0;overflow:hidden;background:var(--g-bg);
}
body.geo-unified .shell > .app > aside{display:none}
body.geo-unified .pb-top,
body.geo-unified header.geo-top,
body.geo-unified .geo-top{
  flex-shrink:0;height:52px;display:flex;align-items:center;gap:12px;
  padding:0 18px;background:var(--g-top);border-bottom:1px solid var(--g-line);
  position:relative;z-index:25;
}
body.geo-unified .pb-top-brand{display:none !important}
body.geo-unified .pb-top-user{display:none !important}
body.geo-unified .pb-top-links,
body.geo-unified .geo-top-actions-host,
body.geo-unified .geo-top-actions{
  margin-left:auto;display:flex;align-items:center;gap:8px;
}
body.geo-unified .pb-top-links .ghost,
body.geo-unified .pb-top-links .solid{display:none}
body.geo-unified .geo-top .geo-banner{
  flex:0 1 auto;width:max-content;max-width:min(100%, 360px);
}
body.geo-unified .geo-top .geo-menu-btn{display:none}
@media (max-width:980px){
  body.geo-unified .geo-top .geo-menu-btn{display:flex}
}

body.geo-unified .app{
  flex:1;min-height:0;
  display:grid;grid-template-columns:260px 1fr;
  overflow:hidden;
  background:var(--g-bg);
}
body.geo-unified aside.side.geo-side,
body.geo-unified aside.geo-side{
  width:auto;padding:0;border-right:1px solid var(--g-side-border);
  background:var(--g-side);overflow:hidden;
}
body.geo-unified .main{
  min-width:0;min-height:0;overflow:auto;
  background:var(--g-bg);
  color:var(--g-ink);
}

/* Map legacy tokens → GEO theme */
html[data-theme="light"] body.geo-unified,
html[data-theme="light"]{
  --pb-bg:var(--g-bg);
  --pb-side:var(--g-side);
  --pb-side-text:var(--g-side-text);
  --pb-side-border:var(--g-side-border);
  --pb-accent:var(--g-accent);
  --pb-accent-2:var(--g-accent-2);
  --pb-accent-light:var(--g-accent-soft);
  --pb-text:var(--g-ink);
  --pb-text-dark:var(--g-ink);
  --pb-muted:var(--g-muted);
  --pb-line:var(--g-line);
  --pb-line-soft:var(--g-soft);
  --pb-card:var(--g-panel);
  --pb-header-bg:var(--g-soft);
  --pb-ok:var(--g-ok);
  --side-w:260px;
  --top-h:52px;
}
html[data-theme="dark"]{
  --pb-bg:var(--g-bg);
  --pb-side:var(--g-side);
  --pb-side-text:var(--g-side-text);
  --pb-side-border:#2a303a;
  --pb-accent:var(--g-accent);
  --pb-accent-2:var(--g-accent-2);
  --pb-accent-light:var(--g-accent-soft);
  --pb-text:var(--g-ink);
  --pb-text-dark:var(--g-ink);
  --pb-muted:var(--g-muted);
  --pb-line:var(--g-line);
  --pb-line-soft:var(--g-soft);
  --pb-card:var(--g-panel);
  --pb-header-bg:var(--g-soft);
  --pb-ok:var(--g-ok);
  --pb-dark:var(--g-ink);
  --side-w:260px;
  --top-h:52px;
}

html[data-theme="dark"] body.geo-unified .main,
html[data-theme="dark"] body.geo-unified .panel,
html[data-theme="dark"] body.geo-unified .card,
html[data-theme="dark"] body.geo-unified .topbar,
html[data-theme="dark"] body.geo-unified .wrap,
html[data-theme="dark"] body.geo-unified .drawer,
html[data-theme="dark"] body.geo-unified .modal,
html[data-theme="dark"] body.geo-unified .workspace-top,
html[data-theme="dark"] body.geo-unified .workspace-bottom,
html[data-theme="dark"] body.geo-unified .input-panel,
html[data-theme="dark"] body.geo-unified .result-panel,
html[data-theme="dark"] body.geo-unified .tab-panels,
html[data-theme="dark"] body.geo-unified .tab-panel,
html[data-theme="dark"] body.geo-unified .table-wrap,
html[data-theme="dark"] body.geo-unified .side-card,
html[data-theme="dark"] body.geo-unified .snapshot-bar{
  background:var(--g-panel) !important;
  color:var(--g-ink) !important;
  border-color:var(--g-line) !important;
}
html[data-theme="dark"] body.geo-unified .kw-group{
  background:transparent !important;
  border-color:transparent !important;
}
html[data-theme="dark"] body.geo-unified .kw-group-label{
  background:transparent !important;
  color:var(--g-muted) !important;
}
html[data-theme="dark"] body.geo-unified .kw-group-label .tag{
  background:var(--g-soft) !important;
  color:var(--g-muted) !important;
  border:1px solid var(--g-line);
}
html[data-theme="dark"] body.geo-unified .kw-editor,
html[data-theme="dark"] body.geo-unified .kw-chips,
html[data-theme="dark"] body.geo-unified .url-box{
  background:var(--g-soft) !important;
  color:var(--g-ink) !important;
  border-color:var(--g-line) !important;
}
html[data-theme="dark"] body.geo-unified input,
html[data-theme="dark"] body.geo-unified select,
html[data-theme="dark"] body.geo-unified textarea,
html[data-theme="dark"] body.geo-unified .btn.light,
html[data-theme="dark"] body.geo-unified .btn:not(.primary):not(.green),
html[data-theme="dark"] body.geo-unified .tab,
html[data-theme="dark"] body.geo-unified .channel-item,
html[data-theme="dark"] body.geo-unified .match-box,
html[data-theme="dark"] body.geo-unified .check{
  background:var(--g-input-bg) !important;
  color:var(--g-ink) !important;
  border-color:var(--g-line) !important;
}
html[data-theme="dark"] body.geo-unified .check.paid{
  border-color:#3d6b64 !important;
  background:rgba(43,181,165,.12) !important;
}
html[data-theme="dark"] body.geo-unified .pb-divider{
  background:var(--g-line) !important;
}
html[data-theme="dark"] body.geo-unified .tab.active,
html[data-theme="dark"] body.geo-unified .tab.is-active{
  background:var(--g-accent) !important;
  color:#fff !important;
  border-color:var(--g-accent) !important;
}
html[data-theme="dark"] body.geo-unified .btn.primary{
  background:var(--g-accent) !important;border-color:var(--g-accent) !important;color:#fff !important;
}
html[data-theme="dark"] body.geo-unified .sub-right,
html[data-theme="dark"] body.geo-unified .panel-head,
html[data-theme="dark"] body.geo-unified .metric,
html[data-theme="dark"] body.geo-unified .kpi,
html[data-theme="dark"] body.geo-unified .summary-grid > *,
html[data-theme="dark"] body.geo-unified .result-head,
html[data-theme="dark"] body.geo-unified thead th,
html[data-theme="dark"] body.geo-unified tr:nth-child(even) td{
  background:var(--g-soft) !important;
  border-color:var(--g-line) !important;
  color:var(--g-ink) !important;
}
html[data-theme="dark"] body.geo-unified table,
html[data-theme="dark"] body.geo-unified td,
html[data-theme="dark"] body.geo-unified th{
  border-color:var(--g-line) !important;
  color:var(--g-ink) !important;
}
html[data-theme="dark"] body.geo-unified .muted,
html[data-theme="dark"] body.geo-unified .hint,
html[data-theme="dark"] body.geo-unified .topbar p{
  color:var(--g-muted) !important;
}
html[data-theme="dark"] body.geo-unified ::-webkit-scrollbar-thumb{background:#3a4452}

body.geo-unified .btn.primary,
body.geo-unified .btn.green{
  background:var(--g-accent) !important;
  border-color:var(--g-accent) !important;
  color:#fff !important;
}
body.geo-unified .btn.light{
  background:var(--g-accent-soft);
  border-color:#b9ddd8;
  color:var(--g-accent-2);
}

@media (max-width:980px){
  body.geo-unified .app{grid-template-columns:1fr}
  body.geo-unified .shell{grid-template-columns:1fr;grid-template-rows:52px 1fr}
  body.geo-unified .shell > aside.geo-side,
  body.geo-unified .shell > aside.side{
    grid-row:auto;grid-column:auto;
  }
  body.geo-unified .shell > header.geo-top,
  body.geo-unified .shell > .geo-top,
  body.geo-unified .shell > .pb-top{
    grid-row:1;grid-column:1;
  }
  body.geo-unified .shell > .app{
    grid-row:2;grid-column:1;
  }
  body.geo-unified aside.side.geo-side,
  body.geo-unified aside.geo-side{
    position:fixed;inset:0 auto 0 0;width:min(280px,86vw);z-index:40;
    transform:translateX(-105%);transition:transform .22s;
    display:flex !important;
  }
  body.geo-nav-open aside.side.geo-side,
  body.geo-nav-open aside.geo-side{transform:none}
  body.geo-unified .geo-menu-btn{display:inline-flex}
}

/* Shared content enter (Prompt/SoV/… + page loads) */
@keyframes geoEnterIn{
  from{opacity:0;transform:translateY(14px) scale(.985);filter:blur(3px)}
  to{opacity:1;transform:none;filter:none}
}
.geo-enter-target{
  animation:geoEnterIn .48s cubic-bezier(.16,1,.3,1) both;
}
@media (prefers-reduced-motion:reduce){
  .geo-enter-target{animation:none !important;filter:none !important}
}

/* GEO Autopilot home panel */
.geo-autopilot{margin:0 0 18px}
.ap-chart-wrap{position:relative;height:220px;margin:14px 0 8px;padding:8px 4px;border:1px solid var(--g-line,#e2e8f0);border-radius:12px;background:var(--g-soft,rgba(0,0,0,.03))}
.ap-chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;font-size:13px;color:var(--g-muted,#64748b)}
.ap-chart-empty[hidden]{display:none !important}
.ap-inbox{margin-top:12px}
.ap-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ap-inbox-head .geo-subhead{margin:0}
.ap-inbox-list{display:flex;flex-direction:column;gap:8px}
.ap-inbox-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--g-line,#e2e8f0);border-radius:10px;padding:10px 12px;background:var(--g-panel,#fff)}
.ap-inbox-item .t{font-size:13px;font-weight:700}
.ap-inbox-item .m{font-size:11px;color:var(--g-muted,#64748b);margin-top:4px}
.ap-inbox-item .acts{display:flex;gap:6px;flex-wrap:wrap}
.ap-auto-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;font-size:12px;font-weight:700;color:var(--g-ink,#0f172a)}
.ap-auto-toggle input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.ap-auto-track{width:40px;height:22px;border-radius:999px;background:#cbd5e1;position:relative;transition:background .2s ease;flex:0 0 auto}
.ap-auto-track::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s ease}
.ap-auto-toggle input:checked + .ap-auto-track{background:#0d9488}
.ap-auto-toggle input:checked + .ap-auto-track::after{transform:translateX(18px)}
.ap-auto-toggle input:focus-visible + .ap-auto-track{outline:2px solid #0d9488;outline-offset:2px}
.ap-draft-panel{width:min(860px,100%);display:flex;flex-direction:column;max-height:min(88vh,900px);overflow:hidden}
.ap-draft-body{flex:1;overflow:auto;line-height:1.65;font-size:14px;color:var(--g-ink)}
.ap-draft-body h1,.ap-draft-body h2,.ap-draft-body h3{margin:1.1em 0 .45em;line-height:1.35}
.ap-draft-body p,.ap-draft-body ul,.ap-draft-body ol,.ap-draft-body table{margin:0 0 .85em}
.ap-draft-body ul,.ap-draft-body ol{padding-left:1.25em}
.ap-draft-body table{width:100%;border-collapse:collapse;font-size:13px}
.ap-draft-body th,.ap-draft-body td{border:1px solid var(--g-line);padding:6px 8px;text-align:left}
.ap-draft-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 18px 16px;border-top:1px solid var(--g-line);background:var(--g-panel);position:sticky;bottom:0}

/* ── GEO 노출 목표 설정 (geo-setup.html) ── */
.geo-onboard-step.is-done{opacity:.6}
.geo-onboard-step.is-current{border-color:var(--g-accent);box-shadow:0 0 0 2px rgba(13,122,111,.14)}
.gs-fixed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.gs-fixed{padding:10px 12px;border-radius:10px;background:var(--g-soft);border:1px solid var(--g-line);min-width:0}
.gs-fixed .k{display:block;font-size:11px;font-weight:700;color:var(--g-muted);margin-bottom:4px}
.gs-fixed .v{display:block;font-size:13px;font-weight:700;color:var(--g-ink);word-break:break-all}
.gs-fixed .v em{display:block;font-style:normal;font-size:11px;font-weight:600;color:var(--g-muted);margin-top:3px}
.gs-channels{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 6px}
.gs-channel{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;border:1px solid var(--g-line)}
.gs-channel.is-on{background:rgba(13,122,111,.12);border-color:rgba(13,122,111,.4);color:var(--g-accent)}
.gs-channel.is-off{background:var(--g-soft);color:var(--g-muted);opacity:.7}
.gs-channel em{font-style:normal;font-size:10px;font-weight:800;padding:1px 5px;border-radius:999px;background:rgba(161,98,7,.16);color:#a16207}
.gs-add-row{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.gs-add-row input{flex:1;min-width:0;height:40px;border:1px solid var(--g-line);border-radius:10px;background:var(--g-input-bg);color:var(--g-ink);font:inherit;font-size:13px;padding:10px 12px}
.gs-add-row input:focus{outline:2px solid rgba(13,122,111,.22);border-color:var(--g-accent)}
.gs-chips{display:flex;flex-wrap:wrap;gap:6px}
.gs-chips-empty{font-size:12px;color:var(--g-muted);padding:8px 2px}
.gs-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-size:12.5px;font-weight:700;padding:6px 8px 6px 11px;border-radius:999px;background:var(--g-soft);border:1px solid var(--g-line);color:var(--g-ink)}
.gs-chip .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(46ch,60vw)}
.gs-chip .x{flex:0 0 auto;width:18px;height:18px;border:0;border-radius:50%;background:rgba(120,120,120,.18);color:var(--g-muted);font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.gs-chip .x:hover{background:rgba(220,38,38,.16);color:#dc2626}
.gs-suggest{display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding-top:10px;border-top:1px dashed var(--g-line);flex-wrap:wrap}
.gs-suggest[hidden]{display:none!important}
.gs-suggest-list{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.gs-suggest-item{font-size:12px;font-weight:600;padding:5px 10px;border-radius:999px;border:1px dashed var(--g-line);background:transparent;color:var(--g-muted);cursor:pointer}
.gs-suggest-item:hover{border-style:solid;border-color:var(--g-accent);color:var(--g-accent);background:rgba(13,122,111,.08)}
.gs-run-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding:14px 16px;border-radius:14px;background:var(--g-panel);border:1px solid var(--g-line);box-shadow:0 -6px 24px rgba(0,0,0,.08)}
.gs-run-count{font-size:14px;font-weight:800;color:var(--g-ink)}
.gs-run-actions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:560px){
  .gs-add-row{flex-wrap:wrap}
  .gs-add-row .geo-btn{width:100%}
  .gs-run-bar{flex-direction:column;align-items:stretch}
  .gs-run-actions .geo-btn{flex:1}
}

/* ── Autopilot 진단 카드 · 그래프 탭 ── */
.ap-diag{margin:12px 0 4px;padding:12px 14px;border-radius:12px;border:1px solid var(--g-line);background:var(--g-soft)}
.ap-diag[hidden]{display:none!important}
.ap-diag-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ap-diag-head strong{font-size:13.5px;font-weight:800;color:var(--g-ink)}
.ap-diag-badge{flex:0 0 auto;font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:999px;background:rgba(100,116,139,.16);color:var(--g-muted)}
.ap-diag[data-level="good"]{border-color:rgba(13,122,111,.38);background:rgba(13,122,111,.07)}
.ap-diag[data-level="good"] .ap-diag-badge{background:rgba(13,122,111,.16);color:var(--g-accent)}
.ap-diag[data-level="warn"]{border-color:rgba(217,119,6,.38);background:rgba(217,119,6,.07)}
.ap-diag[data-level="warn"] .ap-diag-badge{background:rgba(217,119,6,.18);color:#b45309}
.ap-diag[data-level="bad"]{border-color:rgba(220,38,38,.36);background:rgba(220,38,38,.06)}
.ap-diag[data-level="bad"] .ap-diag-badge{background:rgba(220,38,38,.16);color:#dc2626}
.ap-diag-detail{margin:7px 0 0;font-size:12.5px;line-height:1.55;color:var(--g-muted)}
.ap-diag-weak{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px dashed var(--g-line)}
.ap-diag-weak[hidden]{display:none!important}
.ap-diag-weak-k{font-size:11px;font-weight:800;color:var(--g-muted)}
.ap-diag-weak-item{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:999px;background:var(--g-panel);border:1px solid var(--g-line);color:var(--g-ink)}
.ap-diag-weak-item em{font-style:normal;font-size:10px;font-weight:800;color:var(--g-muted)}
.ap-diag-weak-item b{color:#dc2626}
.ap-chart-tabs{display:flex;gap:6px;margin:14px 0 0;flex-wrap:wrap}
.ap-chart-tab{font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px;border:1px solid var(--g-line);background:transparent;color:var(--g-muted);cursor:pointer}
.ap-chart-tab:hover{border-color:var(--g-accent);color:var(--g-accent)}
.ap-chart-tab.is-active{background:rgba(13,122,111,.12);border-color:rgba(13,122,111,.42);color:var(--g-accent)}
.ap-chart-note{margin:6px 0 0;font-size:11px}

/* ── Autopilot 첫 측정 로딩 오버레이 ── */
.geo-autopilot{position:relative}
.ap-boot-overlay{
  position:absolute;inset:0;z-index:8;
  display:flex;align-items:center;justify-content:center;
  padding:28px 18px;border-radius:inherit;
  background:rgba(15,17,21,.72);
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
}
html:not([data-theme="dark"]) .ap-boot-overlay{background:rgba(238,241,245,.82)}
.ap-boot-overlay[hidden]{display:none!important}
.ap-boot-card{
  width:min(420px,100%);text-align:center;
  padding:28px 24px 24px;border-radius:18px;
  background:var(--g-panel);border:1px solid var(--g-line);
  box-shadow:0 18px 48px rgba(0,0,0,.22);
}
.ap-boot-ring{
  position:relative;
  width:84px;height:84px;margin:0 auto 16px;
  display:grid;place-items:center;
}
.ap-boot-spinner{
  position:absolute;inset:0;border-radius:50%;
  border:3px solid color-mix(in srgb,var(--g-muted) 28%,transparent);
  border-top-color:var(--g-accent);
  border-right-color:color-mix(in srgb,var(--g-accent) 45%,transparent);
  animation:apBootSpin .85s linear infinite;
  box-sizing:border-box;
}
.ap-boot-pct{
  position:relative;z-index:1;
  display:flex;align-items:center;justify-content:center;
  min-width:2.4em;text-align:center;
  font-size:18px;font-weight:800;line-height:1;
  letter-spacing:-.03em;color:var(--g-accent);
  font-variant-numeric:tabular-nums;
}
.ap-boot-msg{display:block;font-size:16px;font-weight:800;color:var(--g-ink);line-height:1.4}
.ap-boot-sub{margin:8px 0 16px;font-size:12.5px;line-height:1.5;color:var(--g-muted)}
.ap-boot-bar{height:6px;border-radius:999px;background:rgba(120,120,120,.18);overflow:hidden}
.ap-boot-bar i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#0d7a6f,#14b8a6);transition:width .45s ease}
@keyframes apBootSpin{to{transform:rotate(360deg)}}
.geo-autopilot.is-booting .ap-inbox,
.geo-autopilot.is-booting .ap-chart-tabs,
.geo-autopilot.is-booting .ap-chart-wrap,
.geo-autopilot.is-booting .ap-chart-note,
.geo-autopilot.is-booting .ap-diag,
.geo-autopilot.is-booting #apKpiGrid{filter:blur(1.5px);opacity:.35;pointer-events:none}

/* ---- In-shell payment view ---- */
.geo-pay{max-width:1100px;margin:0 auto;padding:8px 0 48px}
.geo-pay-header{text-align:center;margin-bottom:36px}
.geo-pay-badge{
  display:inline-block;background:linear-gradient(135deg,var(--g-accent),#0a5f57);
  color:#fff;font-size:12px;font-weight:700;padding:5px 14px;border-radius:100px;
  letter-spacing:.06em;margin-bottom:14px
}
.geo-pay-title{
  font-size:30px;font-weight:800;color:var(--g-ink);margin:0 0 10px;
  letter-spacing:-.03em;line-height:1.25;word-break:keep-all
}
.geo-pay-sub{
  font-size:15px;color:var(--g-muted);margin:0 auto;max-width:560px;
  line-height:1.55;word-break:keep-all
}
.geo-pay-msg{
  margin:14px auto 0;max-width:520px;padding:10px 14px;border-radius:10px;
  font-size:13px;font-weight:600;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe
}
.geo-pay-msg.is-ok{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.geo-pay-msg.is-bad{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
html[data-theme="dark"] .geo-pay-msg{background:rgba(59,130,246,.12);color:#93c5fd;border-color:rgba(59,130,246,.28)}
html[data-theme="dark"] .geo-pay-msg.is-ok{background:rgba(52,211,153,.12);color:#6ee7b7;border-color:rgba(52,211,153,.28)}
html[data-theme="dark"] .geo-pay-msg.is-bad{background:rgba(248,113,113,.12);color:#fca5a5;border-color:rgba(248,113,113,.28)}
.geo-pay-loading{text-align:center;color:var(--g-muted);padding:40px 0;font-size:14px}
.geo-pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:48px}
@media(max-width:720px){
  .geo-pay-grid{grid-template-columns:1fr}
  .geo-pay-title{font-size:24px}
}
.geo-pay-card{
  position:relative;display:flex;flex-direction:column;gap:12px;
  background:var(--g-card,var(--card-solid,#fff));
  border:1px solid var(--g-line,rgba(0,0,0,.08));
  border-radius:18px;padding:26px 22px 22px;
  box-shadow:0 8px 28px rgba(0,0,0,.06)
}
html[data-theme="dark"] .geo-pay-card{
  background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08);
  box-shadow:none
}
.geo-pay-card.is-popular{border-color:color-mix(in srgb,var(--g-accent) 55%,transparent)}
.geo-pay-popular{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  background:linear-gradient(135deg,var(--g-accent),#0a5f57);color:#fff;
  font-size:11px;font-weight:800;padding:4px 12px;border-radius:999px
}
.geo-pay-name{font-size:18px;font-weight:800;color:var(--g-ink);margin:4px 0 0}
.geo-pay-plan-badge{
  display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;
  padding:3px 8px;border-radius:6px;background:rgba(13,122,111,.12);color:var(--g-accent)
}
.geo-pay-price-row{display:flex;align-items:baseline;gap:4px;margin:4px 0}
.geo-pay-currency{font-size:16px;font-weight:700;color:var(--g-ink)}
.geo-pay-price{font-size:32px;font-weight:800;color:var(--g-ink);letter-spacing:-.03em}
.geo-pay-period{font-size:14px;color:var(--g-muted);font-weight:600}
.geo-pay-desc{font-size:13px;color:var(--g-muted);line-height:1.5;margin:0;word-break:keep-all}
.geo-pay-features{list-style:none;margin:4px 0 8px;padding:0;flex:1}
.geo-pay-features li{
  display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--g-ink);
  padding:8px 0;border-bottom:1px solid var(--g-line,rgba(0,0,0,.06));line-height:1.45;word-break:keep-all
}
.geo-pay-features li:last-child{border-bottom:0}
.geo-pay-check{color:var(--g-accent);font-weight:800;flex-shrink:0}
.geo-pay-cta{
  display:block;width:100%;text-align:center;padding:13px;border-radius:12px;
  font-size:14px;font-weight:700;margin-top:auto;cursor:pointer;
  background:var(--g-soft,#f1f5f9);color:var(--g-ink);border:1px solid var(--g-line,rgba(0,0,0,.08))
}
.geo-pay-cta.is-primary{
  background:linear-gradient(135deg,var(--g-accent),#0a5f57);color:#fff;border:0
}
.geo-pay-cta:disabled{opacity:.55;cursor:not-allowed}
.geo-pay-faq{max-width:760px;margin:0 auto 36px}
.geo-pay-faq-title{text-align:center;font-size:22px;font-weight:800;color:var(--g-ink);margin:0 0 20px}
.geo-pay-faq-grid{display:grid;gap:12px}
.geo-pay-faq-item{
  background:rgba(0,0,0,.03);border:1px solid var(--g-line,rgba(0,0,0,.06));
  border-radius:14px;padding:16px 18px
}
html[data-theme="dark"] .geo-pay-faq-item{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08)}
.geo-pay-faq-item h3{font-size:14px;font-weight:700;color:var(--g-ink);margin:0 0 6px;word-break:keep-all}
.geo-pay-faq-item p{font-size:13px;color:var(--g-muted);margin:0;line-height:1.6;word-break:keep-all}
.geo-pay-foot{text-align:center}
