:root{
--bg:#080e17;--panel:#111927;--panel2:#162133;--panel3:#0c1421;--line:#25344b;
--text:#eef4fb;--muted:#91a2ba;--accent:#7898ff;--accent2:#9bb0ff;
--good:#39d98a;--warn:#ffc45f;--danger:#ff7180;--shadow:0 12px 34px rgba(0,0,0,.18)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
body.nav-open{overflow:hidden}
a{color:#b8c8ff;text-decoration:none}
button,input,select,textarea{font:inherit}
.shell{display:flex;min-height:100vh}

.mobile-bar{display:none}
.sidebar{width:238px;background:#0d1522;border-right:1px solid var(--line);padding:22px 16px;position:fixed;z-index:70;top:0;bottom:0;overflow-y:auto}
.brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.brand{font-size:29px;font-weight:850;color:var(--text)}.brand span,.mobile-brand span{color:var(--accent)}
.sidebar-close{display:none;background:none;border:0;color:var(--text);font-size:28px;cursor:pointer}
.main-nav,.site-nav{display:grid;gap:5px}
.main-nav a,.site-nav a{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:10px;color:var(--text);transition:.18s}
.main-nav a:hover,.site-nav a:hover,.main-nav a.active,.site-nav a.active{background:var(--panel2);color:white}
.main-nav a.active,.site-nav a.active{box-shadow:inset 3px 0 0 var(--accent)}
.nav-section-title{margin:24px 10px 9px;color:#657792;font-size:10px;letter-spacing:.14em;font-weight:800}
.current-site-card{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:11px;margin-bottom:8px}
.current-site-card span:last-child{display:grid;min-width:0}.current-site-card strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.current-site-card small{color:var(--muted)}
.sidebar-foot{margin-top:28px;border-top:1px solid var(--line);padding:14px 8px 4px;display:grid;gap:4px}
.sidebar-backdrop{display:none}

.main{margin-left:238px;width:calc(100% - 238px);padding:26px 30px 48px;max-width:1700px}
.main.full{margin-left:0;width:100%;max-width:900px;margin-inline:auto}
.page-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.back-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-weight:650}
.breadcrumbs{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--muted);font-size:12px;min-width:0;overflow:hidden;white-space:nowrap}
.breadcrumbs a{color:#aebfe0}.crumb-sep{color:#53627a}

.topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:22px}
.topbar h1{margin:3px 0 0;font-size:clamp(24px,3vw,31px);line-height:1.12}
.eyebrow{font-size:10px;letter-spacing:.14em;color:#8396b2;font-weight:700}
.pill{border:1px solid var(--line);padding:6px 10px;border-radius:999px;color:var(--muted);white-space:nowrap}

.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:linear-gradient(180deg,var(--panel),#0f1724);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}
.card h3{margin:0 0 7px}.card h2{margin-top:0}
.metric{font-size:30px;font-weight:800}.muted{color:var(--muted)}
.stat-label{color:#9bb0cc;font-size:12px}.stat-value{font-size:28px;font-weight:800;margin-top:2px}
.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:13px}
.table{width:100%;border-collapse:collapse;background:transparent;min-width:620px}
.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.table tr:last-child td{border-bottom:0}.table th{color:var(--muted);font-weight:650;font-size:12px}
.tag{display:inline-block;padding:4px 8px;border-radius:999px;background:#1c2941}.tag.good{color:var(--good)}.tag.warn{color:var(--warn)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--accent);color:white;border:0;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;min-height:40px}
.btn:hover{filter:brightness(1.06)}.btn.secondary{background:var(--panel2);border:1px solid var(--line)}.btn.danger{background:#682b39}.btn.ghost{background:transparent;border:1px solid var(--line)}
form.stack{display:grid;gap:14px;max-width:820px}.field{display:grid;gap:6px}.field label{color:var(--muted);font-weight:650}
input,select,textarea{width:100%;background:#0b1320;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:11px 12px;min-height:42px}
input[type=color]{padding:5px;height:42px}textarea{min-height:150px;resize:vertical}
.actions{display:flex;gap:9px;flex-wrap:wrap}.flash{padding:12px 14px;border-radius:10px;margin:0 0 16px;border:1px solid var(--line);background:var(--panel)}.flash.success{border-color:#245d43}.flash.error{border-color:#6d2c37}
.site-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 auto}
.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:14px}
.login-card{max-width:460px;margin:7vh auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px}

.dashboard-sites{display:grid;gap:10px}.dashboard-site{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel3)}
.dashboard-site-main{display:flex;align-items:center;gap:10px;min-width:0}.dashboard-site-text{min-width:0}.dashboard-site-text strong,.dashboard-site-text small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-site-text small{color:var(--muted)}
.site-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1180px}
.site-card{overflow:hidden;padding:0}.site-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 17px 11px}
.site-card-title{display:flex;gap:10px;align-items:center;min-width:0}.site-card-title h3{margin:0}.site-card-title .muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-preview{height:150px;background:#09111d;border-block:1px solid var(--line);overflow:hidden;position:relative}
.site-preview iframe{width:200%;height:300px;border:0;transform:scale(.5);transform-origin:0 0;pointer-events:none;background:white}
.site-preview-empty{display:grid;place-items:center;height:100%;color:var(--muted);font-size:12px}
.site-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 17px}
.meta-box{background:#0c1421;border:1px solid #202f45;border-radius:10px;padding:9px}.meta-box small{display:block;color:var(--muted)}
.site-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 17px 17px}
.add-site-details{border:0}.add-site-details>summary{list-style:none;cursor:pointer}.add-site-details>summary::-webkit-details-marker{display:none}
.add-site-panel{margin-top:14px}

.workspace-hero{display:grid;grid-template-columns:1.3fr .7fr;gap:14px;margin-bottom:16px}
.workspace-title-card{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.workspace-domain{word-break:break-all}
.workspace-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.module-card{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--text);min-height:112px}
.module-card:hover{border-color:#40557a;background:#141e2e}.module-card strong{font-size:15px}.module-card small{color:var(--muted);line-height:1.4}
.module-icon{font-size:18px;color:var(--accent2)}
.setup-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #5f4c27;background:#211b10;border-radius:13px;padding:12px 14px;margin-bottom:14px}
.system-list{display:grid;gap:9px}.system-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.system-row:last-child{border-bottom:0}


/* V2.3 — compact multi-site cards + workspace notes/help */
.site-workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
.site-workspace-main{display:flex;align-items:flex-start;gap:14px;min-width:0}
.site-workspace-main h2{font-size:28px;margin:.12em 0}.workspace-dot{width:18px;height:18px;margin-top:7px}
.site-workspace-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.workspace-info-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:14px}
.card-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.card-heading-row h3{margin:0}.card-heading-row p{margin:.3em 0 0}
.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.overview-cell{padding:11px 12px;background:#0b1421;border:1px solid #223249;border-radius:11px;min-width:0}
.overview-cell small{display:block;color:var(--muted);margin-bottom:3px}.overview-cell strong,.overview-cell code{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-cell-wide{grid-column:1/-1}

.sticky-note-card{background:linear-gradient(180deg,#2a2310,#1b180d);border-color:#665425;box-shadow:0 12px 34px rgba(0,0,0,.16)}
.sticky-note-head{display:flex;gap:10px}.sticky-note-head h3{margin:0;color:#fff3ba}.sticky-note-head p{margin:.25em 0 .7em;color:#d7ca92}.sticky-pin{font-size:20px}
.sticky-note-form{display:grid;gap:9px}.sticky-note-form textarea{min-height:145px;background:#151308;border-color:#6b5928;color:#fff8d5}.sticky-save{background:#d5ad45;color:#17130a}

.module-card{position:relative}.module-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.info-tip-wrap{position:relative;display:inline-flex;z-index:3}.info-tip{width:25px;height:25px;border:1px solid #40547a;border-radius:999px;background:#121e31;color:#aebfff;font-weight:850;cursor:pointer;padding:0;line-height:23px}
.info-tip:hover,.info-tip:focus{background:#203253;color:white;outline:none}
.info-tip-panel{position:absolute;right:0;top:32px;width:min(330px,72vw);padding:11px 12px;border:1px solid #40547a;border-radius:11px;background:#07101d;color:#eef4fb;font-size:12px;line-height:1.55;box-shadow:0 16px 45px rgba(0,0,0,.4);opacity:0;visibility:hidden;transform:translateY(-4px);transition:.16s;pointer-events:none}
.info-tip-wrap:hover .info-tip-panel,.info-tip-wrap:focus-within .info-tip-panel,.info-tip-wrap.open .info-tip-panel{opacity:1;visibility:visible;transform:none}

.saved-notes-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:14px}
.saved-note-list{display:grid;gap:9px;margin-top:14px}.saved-note-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px;border:1px solid var(--line);border-radius:11px;background:#0b1421}
.saved-note-copy{min-width:0}.saved-note-copy strong{display:block}.saved-note-copy p{margin:.4em 0;color:#c9d4e3;white-space:normal}.saved-note-copy small{color:var(--muted)}
.note-delete{width:30px;height:30px;border-radius:8px;border:1px solid #603540;background:#2a141b;color:#ff8794;font-size:20px;cursor:pointer;flex:0 0 auto}
.empty-note-state{margin-top:14px;padding:18px;border:1px dashed #33455f;border-radius:11px;color:var(--muted)}
.add-note-card textarea{min-height:170px}

@media(max-width:1180px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-modules{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .workspace-info-grid,.saved-notes-grid{grid-template-columns:1fr}
  .sidebar{width:210px}.main{margin-left:210px;width:calc(100% - 210px);padding:22px}
  .split,.workspace-hero{grid-template-columns:1fr}.workspace-modules{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .site-cards{grid-template-columns:1fr;max-width:none}
  .site-workspace-bar{flex-direction:column;align-items:stretch}.site-workspace-actions{justify-content:flex-start}.site-workspace-actions .btn{flex:1 1 auto}
  .overview-grid{grid-template-columns:1fr 1fr}.workspace-info-grid{display:flex;flex-direction:column}.sticky-note-card{order:-1}
  .info-tip-panel{position:fixed;left:12px;right:12px;top:auto;bottom:74px;width:auto;max-width:none}
  .mobile-bar{display:flex;position:sticky;top:0;z-index:60;height:56px;background:rgba(8,14,23,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);align-items:center;padding:0 12px;gap:10px}
  .icon-btn{width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:20px}
  .mobile-brand{font-weight:850;font-size:20px}.mobile-back{margin-left:auto;max-width:56vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text);font-size:12px}
  .sidebar{width:min(86vw,310px);transform:translateX(-105%);transition:.22s;box-shadow:20px 0 50px rgba(0,0,0,.35)}
  .sidebar.open{transform:translateX(0)}.sidebar-close{display:block}
  .sidebar-backdrop{display:block;position:fixed;z-index:65;inset:0;background:rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:.2s}.sidebar-backdrop.open{opacity:1;visibility:visible}
  .main{margin-left:0;width:100%;padding:17px 13px 38px}.main.full{padding-inline:13px}
  .page-tools{display:none}.topbar{align-items:flex-start;margin-bottom:16px}.pill{display:none}
  .topbar h1{font-size:24px}.eyebrow{font-size:9px}
  .grid,.grid.two{grid-template-columns:1fr 1fr;gap:9px}.card{padding:14px;border-radius:13px}
  .metric,.stat-value{font-size:23px}.workspace-modules{grid-template-columns:1fr 1fr;gap:9px}.module-card{padding:13px;min-height:100px}
  .site-cards{grid-template-columns:1fr}.site-preview{height:130px}
  .site-card-meta{grid-template-columns:1fr 1fr}
  .table{min-width:560px}.actions .btn{flex:1 1 auto}
}
@media(max-width:460px){
  .overview-grid{grid-template-columns:1fr}.overview-cell-wide{grid-column:auto}
  .grid,.grid.two{grid-template-columns:1fr}.workspace-modules{grid-template-columns:1fr}
  .site-card-meta{grid-template-columns:1fr}.workspace-title-card,.setup-alert{flex-direction:column;align-items:stretch}
  .btn{width:100%}.actions{display:grid;grid-template-columns:1fr}
}


/* V2.4 — Structured Import Center */
.import-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.import-hero h2{margin:.2em 0}.import-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.import-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr));gap:10px;margin:16px 0}.import-summary-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02)}.import-summary-grid small{display:block;color:var(--muted);margin-bottom:3px}.import-summary-grid strong{font-size:15px}
.import-record-list{display:grid;gap:9px}.import-record{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02);cursor:pointer}.import-record input{margin-top:5px}.import-record strong,.import-record small{display:block}.import-record small{color:var(--muted);margin-top:2px}.import-record p{margin:6px 0 0;color:var(--muted)}.import-record.is-existing{opacity:.68}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:900px){.import-summary-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.import-hero{flex-direction:column}.import-badges{justify-content:flex-start}.import-summary-grid{grid-template-columns:repeat(2,1fr)}.import-record{grid-template-columns:auto 1fr}.import-record>.tag{grid-column:2;justify-self:start}}

/* V2.6 — Prompt Copy System */
.prompt-panel{border:1px solid #33496b;background:linear-gradient(180deg,#101b2c,#0d1624);border-radius:14px;padding:15px;margin:14px 0}
.prompt-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.prompt-panel-head h3,.prompt-panel-head h4{margin:0}.prompt-panel-head p{margin:.25em 0 0}
.prompt-preview{min-height:150px;max-height:320px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.55;background:#09111d}
.copy-prompt-btn{white-space:nowrap}.copy-prompt-btn.copy-ok{background:#1f6d4a;border-color:#2f9667;color:#fff}
.prompt-actions{display:flex;gap:8px;flex-wrap:wrap}.prompt-mini{font-size:11px;color:var(--muted);margin-top:7px}
.category-prompt-cell{min-width:150px}.category-prompt-cell .btn{padding:7px 9px;font-size:12px}
@media(max-width:720px){.prompt-panel-head{flex-direction:column}.copy-prompt-btn{width:100%}.prompt-actions{display:grid;grid-template-columns:1fr}.category-prompt-cell{min-width:130px}}

/* Guided Content Workflow V2.7 */
.workflow-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.workflow-hero h2{margin:6px 0 8px}
.workflow-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.workflow-step-pill{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line,#24344b);border-radius:14px;background:var(--panel,#111b2a);color:inherit;text-decoration:none;min-width:0}
.workflow-step-pill b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#22314a;flex:0 0 auto}
.workflow-step-pill span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px}
.workflow-step-pill.done b{background:#164936;color:#79f0bd}
.workflow-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:18px;scroll-margin-top:16px}
.workflow-number{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#1d2d47;color:#83a2ff;font-size:20px;font-weight:900}
.workflow-main{min-width:0}
.workflow-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.workflow-facts span{padding:12px;border:1px solid var(--line,#24344b);border-radius:12px;background:rgba(255,255,255,.015);min-width:0}
.workflow-facts small{display:block;color:#8fa1bd;margin-bottom:4px}
.workflow-facts strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow-inline-select{display:grid;grid-template-columns:120px minmax(220px,520px);align-items:center;gap:12px;margin:14px 0}
.workflow-inline-select label{font-weight:700;color:#aebbd0}
.workflow-prompt{min-height:220px;margin-top:10px}
.workflow-empty{padding:18px;border:1px dashed #33445f;border-radius:12px;color:#91a3bf;margin:12px 0;background:rgba(255,255,255,.01)}
.workflow-advanced summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}
.workflow-advanced summary::-webkit-details-marker{display:none}
@media(max-width:1000px){.workflow-steps{grid-template-columns:repeat(3,1fr)}.workflow-facts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.workflow-hero{display:block}.workflow-hero>.tag{display:inline-flex;margin-top:12px}.workflow-steps{grid-template-columns:repeat(2,1fr)}.workflow-card{grid-template-columns:1fr}.workflow-number{width:36px;height:36px}.workflow-facts{grid-template-columns:1fr}.workflow-inline-select{grid-template-columns:1fr}.workflow-prompt{min-height:180px}}


/* V3.8.1 — Global responsive hardening */
html,body{max-width:100%;overflow-x:hidden}
.main,.main>*{min-width:0}
.card,.split>* ,.grid>* ,.workspace-modules>* ,.overview-grid>*{min-width:0;max-width:100%}
img,video,iframe{max-width:100%}
code,.mono{overflow-wrap:anywhere}
input,select,textarea,button{max-width:100%}

@media(max-width:720px){
  .topbar{flex-wrap:wrap}
  .card-heading-row{flex-direction:column;align-items:stretch}
  .card-heading-row>.tag{align-self:flex-start}
  .split{grid-template-columns:1fr!important}
  .card{max-width:100%;overflow:hidden}
  .card table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .actions{max-width:100%}
  .actions .btn{min-width:0}
  .field,.field input,.field select,.field textarea{min-width:0}
  .breadcrumbs{display:none}
}
@media(max-width:460px){
  .main{padding-left:10px;padding-right:10px}
  .card{padding:12px}
  .topbar h1{font-size:22px}
  .overview-grid{gap:8px}
}

/* V6.4 — Site Setup & Brand professional responsive redesign */
.profile-page{max-width:1280px;margin:0 auto}.profile-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,rgba(111,140,255,.08),rgba(255,255,255,.015) 42%,rgba(200,155,60,.05));box-shadow:0 12px 28px rgba(0,0,0,.12)}
.profile-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#8fa8d5;font-weight:850}.profile-hero h2{margin:5px 0 5px;font-size:24px;line-height:1.12}.profile-hero p{margin:0;color:var(--muted);max-width:760px;font-size:13px;line-height:1.55}.profile-hero-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.profile-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);gap:14px;align-items:start}.profile-main,.profile-side{display:grid;gap:14px;min-width:0}.profile-side{position:sticky;top:16px}
.profile-panel{border:1px solid var(--line);border-radius:15px;background:linear-gradient(180deg,rgba(18,29,45,.98),rgba(13,23,36,.98));padding:17px;box-shadow:0 10px 22px rgba(0,0,0,.09);min-width:0}.profile-panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.profile-panel-head>div{min-width:0}.profile-panel-head h3{display:inline-block;margin:0 0 3px 8px;font-size:16px;vertical-align:middle}.profile-panel-head p{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.45}.profile-panel-head.compact{margin-bottom:11px}.profile-step{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:24px;padding:0 8px;border-radius:999px;background:#1b2a41;border:1px solid #2f4668;color:#9eb7df;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.profile-readonly-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.profile-readonly-grid>div{padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#0b1421}.profile-readonly-grid span{display:block;color:var(--muted);font-size:10px;margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em}.profile-readonly-grid strong{font-size:13px;overflow-wrap:anywhere}
.profile-fields{display:grid;gap:10px}.profile-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-fields.four{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-panel .field{margin-bottom:10px}.profile-panel .field:last-child{margin-bottom:0}.profile-panel label{font-size:11px;font-weight:750;color:#c9d5e7;margin-bottom:5px}.profile-panel input:not([type=color]),.profile-panel textarea,.profile-panel select{background:#0a1320;border-color:#263851;border-radius:10px;padding:9px 10px;font-size:12px;line-height:1.45}.profile-panel textarea{resize:vertical;min-height:0}.profile-panel small.muted{font-size:10px;line-height:1.4;display:block;margin-top:4px}.profile-panel input[type=color]{width:100%;height:38px;border-radius:9px;padding:3px;background:#0a1320;border:1px solid #263851}
.brand-panel{overflow:hidden}.brand-logo-stage{width:100%;min-height:132px;border-radius:13px;border:1px solid #31445f;background:linear-gradient(135deg,#f8fafc 0 50%,#0b1320 50%);display:grid;place-items:center;padding:18px;margin-bottom:10px;overflow:hidden;position:relative}.brand-logo-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 49.7%,rgba(255,255,255,.18) 50%,transparent 50.3%);pointer-events:none}.brand-logo-stage img{position:relative;z-index:1;display:block;width:min(100%,300px);height:88px;object-fit:contain}.brand-logo-placeholder{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#53627a;background:rgba(255,255,255,.9);padding:12px 18px;border-radius:10px}.brand-logo-placeholder strong{font-size:13px;color:#253044}.brand-logo-placeholder span{font-size:10px;margin-top:3px}
.logo-upload-box{border:1px dashed #365071;border-radius:12px;padding:10px;background:#0a1422;margin-bottom:10px}.logo-file-picker{display:flex!important;align-items:center;gap:10px;padding:9px 10px;border:1px solid #2b405d;border-radius:10px;background:#101c2d;cursor:pointer;margin:0!important}.logo-file-picker:hover{border-color:#5579b0}.logo-file-picker>span:last-child{display:flex;flex-direction:column;gap:2px}.logo-file-picker strong{font-size:12px;color:#e7edf7}.logo-file-picker small{font-size:9.5px;color:var(--muted);font-weight:500}.logo-file-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#1d3150;color:#b9c9ff;font-size:17px;font-weight:900}.logo-file-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}.logo-file-name{padding:7px 2px 2px;color:#9eacc0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-action-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.profile-action-row .btn{padding:8px 10px;font-size:11px}
.brand-preview-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.brand-preview{height:76px;border-radius:10px;border:1px solid #2b3b52;display:flex;align-items:center;justify-content:center;padding:10px;position:relative;overflow:hidden}.brand-preview span{position:absolute;left:8px;top:6px;font-size:8px;text-transform:uppercase;letter-spacing:.06em;opacity:.55}.brand-preview.light{background:#fff;color:#111827}.brand-preview.dark{background:#070d16;color:#e9eef7}.brand-preview img{max-width:100%;max-height:38px;object-fit:contain}.compact-field{margin-top:8px!important}.logo-studio{margin-top:10px;border:1px solid #2b405d;border-radius:11px;background:#0b1523;overflow:hidden}.logo-studio summary{cursor:pointer;display:flex;justify-content:space-between;gap:8px;padding:10px 11px;list-style:none}.logo-studio summary::-webkit-details-marker{display:none}.logo-studio summary span{font-size:11px;font-weight:800}.logo-studio summary small{font-size:9px;color:var(--muted)}.logo-studio-body{border-top:1px solid #23354d;padding:10px}.logo-studio textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.5;margin-bottom:8px}
.compact-panel{padding-bottom:8px}.profile-jump{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px}.profile-jump a{font-size:10px;color:#9fb0c8;text-decoration:none;border:1px solid #2a3a52;border-radius:999px;padding:6px 9px;background:#0b1421}.profile-jump a:hover{color:#fff;border-color:#4b6283}
.profile-advanced{border:1px solid #2a3b53;border-radius:10px;background:#0b1421;margin-top:8px;overflow:hidden}.profile-advanced summary{cursor:pointer;padding:9px 11px;font-size:11px;font-weight:750;list-style:none}.profile-advanced summary::-webkit-details-marker{display:none}.profile-advanced-body{padding:0 11px 10px;border-top:1px solid #223149}.profile-savebar{position:sticky;bottom:10px;z-index:25;margin-top:14px;border:1px solid #314763;border-radius:14px;background:rgba(10,18,29,.94);backdrop-filter:blur(12px);box-shadow:0 16px 40px rgba(0,0,0,.28);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-savebar>div:first-child{display:flex;flex-direction:column;gap:2px}.profile-savebar strong{font-size:11px}.profile-savebar span{font-size:9.5px;color:var(--muted)}
@media(max-width:1080px){.profile-layout{grid-template-columns:1fr}.profile-side{position:static;grid-template-columns:1fr 1fr}.brand-panel{grid-column:1/-1}.profile-jump{grid-column:1/-1}.profile-fields.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.profile-page{max-width:none}.profile-hero{padding:14px;flex-direction:column}.profile-hero h2{font-size:21px}.profile-hero-actions{width:100%}.profile-hero-actions .btn{flex:1}.profile-panel{padding:13px;border-radius:13px}.profile-fields.two,.profile-fields.four,.profile-readonly-grid,.profile-side{grid-template-columns:1fr}.profile-panel-head h3{font-size:15px}.brand-logo-stage{min-height:112px}.brand-logo-stage img{height:70px}.brand-preview-pair{grid-template-columns:1fr 1fr}.profile-savebar{bottom:6px;flex-direction:column;align-items:stretch}.profile-savebar .profile-action-row{display:grid;grid-template-columns:1fr 1fr}.profile-savebar .btn{width:100%}}
@media(max-width:430px){.brand-preview-pair{grid-template-columns:1fr}.profile-hero-actions{display:grid;grid-template-columns:1fr}.profile-action-row{display:grid;grid-template-columns:1fr}.profile-action-row .btn{width:100%}}


/* Rebuild V1: ordered site workflow */
.site-nav-advanced{margin:10px 14px 0;border-top:1px solid var(--line,#273147);padding-top:8px}
.site-nav-advanced summary{cursor:pointer;color:var(--muted,#9aa6bf);font-size:12px;font-weight:700;padding:9px 8px;list-style:none}
.site-nav-advanced summary::-webkit-details-marker{display:none}
.site-nav-advanced .site-nav{padding:0;margin-top:4px}
.site-nav-advanced .site-nav a{font-size:13px;padding:8px 10px}
.workflow-home-card{overflow:hidden}
.workspace-build-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.workspace-build-path a{display:flex;gap:10px;align-items:flex-start;text-decoration:none;border:1px solid var(--line,#273147);border-radius:14px;padding:14px;background:rgba(255,255,255,.015);color:inherit}
.workspace-build-path a:hover{border-color:var(--accent,#7c9cff);transform:translateY(-1px)}
.workspace-build-path b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:rgba(124,156,255,.14);color:var(--accent,#9cb3ff)}
.workspace-build-path span{display:grid;gap:3px}.workspace-build-path small{color:var(--muted,#9aa6bf);line-height:1.35}
.workspace-focus-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px}
.design-separate-card{align-self:start}.design-separate-card h3{margin:6px 0 8px}
.workflow-after-content{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:10px 12px;border:1px dashed var(--line,#273147);border-radius:12px}
.workflow-after-content span,.workflow-after-content em{color:var(--muted,#9aa6bf);font-size:12px}
.workflow-after-content a{font-size:12px;text-decoration:none;border:1px solid var(--line,#273147);border-radius:999px;padding:6px 9px;color:inherit}
@media(max-width:900px){.workspace-build-path{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-focus-grid{grid-template-columns:1fr}}
@media(max-width:600px){.workspace-build-path{grid-template-columns:1fr}.workflow-home-card .card-heading-row{align-items:flex-start}.workflow-home-card .card-heading-row .btn{width:100%;text-align:center}.workflow-after-content{align-items:stretch}.workflow-after-content a{display:block;text-align:center}}

/* Rebuild V2: child-simple guided site builder */
.site-nav-simple a{display:flex;align-items:center;gap:9px}.site-nav-simple a span{width:18px;text-align:center;opacity:.72}
.workflow-guide-v2{margin-bottom:12px;background:linear-gradient(145deg,rgba(20,32,50,.98),rgba(11,20,33,.98))}
.workflow-guide-head-v2{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.workflow-guide-head-v2 h2{margin:4px 0 5px;font-size:24px}.workflow-guide-head-v2 p{margin:0;max-width:760px}
.workflow-current-v2{display:flex;gap:10px;align-items:center;margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#0a1421}.workflow-current-v2 span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.workflow-current-v2 strong{font-size:13px}
.workflow-steps-v2{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important}.workflow-steps-v2 .workflow-step-pill{min-width:0!important;padding:10px!important}.workflow-steps-v2 .workflow-step-pill b{width:27px;height:27px;min-width:27px}.workflow-steps-v2 .workflow-step-pill span{min-width:0}.workflow-steps-v2 .workflow-step-pill small{white-space:normal}.workflow-steps-v2 .workflow-step-pill.current{outline:2px solid rgba(124,156,255,.45);outline-offset:0}.workflow-steps-v2 .workflow-step-pill.done b{background:#123629;color:#72e4b3}
.workflow-simple-note-v2{margin:0 0 14px;padding:10px 12px;border:1px dashed #344761;border-radius:11px;color:var(--muted);font-size:12px}.workflow-simple-note-v2 strong,.workflow-simple-note-v2 b{color:#e6edf7}
.workflow-simple-panel-v2{max-width:1100px;margin-inline:auto}.simple-step-head-v2{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.simple-step-head-v2 h3{margin:3px 0 4px;font-size:20px}.simple-step-head-v2 p{margin:0}.simple-job-v2{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:12px;background:#0a1421}.simple-job-number-v2{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#1b2a41;color:#c7d4ff;font-weight:900}.simple-job-v2 strong{display:block;margin-bottom:3px}.simple-job-v2 p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.simple-success-v2,.simple-warning-v2,.simple-rule-v2{margin-top:12px;padding:11px 12px;border-radius:10px;font-size:12px;line-height:1.5}.simple-success-v2{border:1px solid #245d43;background:#0d241b;color:#b8efd5}.simple-warning-v2{border:1px solid #5d4b2b;background:#251e10;color:#efd89c}.simple-rule-v2{border:1px dashed #3a4b64;color:var(--muted)}
.subcategory-review-v2{display:grid;gap:10px}.subcategory-parent-v2{border:1px solid var(--line);border-radius:12px;background:#0a1421;padding:12px}.subcategory-parent-head-v2{display:flex;justify-content:space-between;gap:12px;align-items:center}.subcategory-parent-head-v2 strong,.subcategory-parent-head-v2 small{display:block}.subcategory-parent-head-v2 small{margin-top:3px;color:var(--muted);font-size:10px}.subcategory-chips-v2{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.subcategory-chips-v2 span{padding:6px 9px;border:1px solid #30445f;border-radius:999px;background:#111e30;font-size:11px}.subcategory-none-v2{margin-top:9px;color:var(--muted);font-size:11px;line-height:1.45}.simple-checklist-v2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.simple-checklist-v2 span{padding:12px;border:1px solid var(--line);border-radius:10px;background:#0a1421;text-align:center;font-size:12px;font-weight:750}.simple-publish-actions-v2{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.simple-site-home-v2{display:grid;gap:16px}.simple-site-home-top-v2{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.simple-site-home-top-v2 h2{margin:3px 0 4px;font-size:25px}.simple-site-home-top-v2 p{margin:0}.simple-next-v2{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:18px;border:1px solid #324866;border-radius:15px;background:linear-gradient(135deg,#0d1928,#101d2f)}.simple-next-number-v2{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#1c3150;color:#d0dbff;font-size:20px;font-weight:900}.simple-next-copy-v2 small{display:block;color:#8fa2bf;font-size:9px;font-weight:850;letter-spacing:.1em}.simple-next-copy-v2 h3{margin:3px 0;font-size:19px}.simple-next-copy-v2 p{margin:0;color:var(--muted);font-size:12px}.simple-next-btn-v2{min-width:130px;text-align:center}.simple-progress-v2{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.simple-progress-v2 a{display:flex;gap:8px;align-items:center;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit;background:#0b1421}.simple-progress-v2 a b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#1a273a;color:#9dafc9;font-size:10px}.simple-progress-v2 a span{min-width:0;font-size:10.5px;font-weight:750}.simple-progress-v2 a.done{border-color:#245d43}.simple-progress-v2 a.done b{background:#123629;color:#72e4b3}.simple-secondary-row-v2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.simple-secondary-v2{text-decoration:none;color:inherit;display:grid;gap:4px;padding:14px}.simple-secondary-v2 strong{font-size:13px}.simple-secondary-v2 span{font-size:10.5px;color:var(--muted);line-height:1.4}
@media(max-width:1050px){.workflow-steps-v2,.simple-progress-v2{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:760px){.workflow-guide-head-v2,.simple-site-home-top-v2,.simple-step-head-v2{flex-direction:column}.workflow-steps-v2,.simple-progress-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.simple-next-v2{grid-template-columns:auto 1fr}.simple-next-btn-v2{grid-column:1/-1;width:100%}.simple-secondary-row-v2{grid-template-columns:1fr}.simple-checklist-v2{grid-template-columns:1fr 1fr}.workflow-tab-footer{flex-direction:column!important}.workflow-tab-footer .btn{width:100%;text-align:center}}
@media(max-width:420px){.workflow-steps-v2,.simple-progress-v2{grid-template-columns:1fr!important}.simple-checklist-v2{grid-template-columns:1fr}.simple-next-v2{grid-template-columns:1fr;text-align:center}.simple-next-number-v2{margin:auto}}

/* Site delete patch: keep dashboard site actions clear without making the full row destructive. */
.dashboard-site-actions{margin-left:auto;flex-wrap:nowrap}
.dashboard-site-actions form{margin:0}
.dashboard-site-main{min-width:0;flex:1;text-decoration:none;color:inherit}
@media(max-width:760px){
  .dashboard-site{align-items:flex-start;flex-wrap:wrap}
  .dashboard-site-actions{width:100%;margin-left:0}
  .dashboard-site-actions .btn{flex:1;text-align:center}
}
