/* =========================================================================
   StoneyAI — App / Panel layer (dashboard chrome)
   ========================================================================= */

.app-body { background: var(--paper-2); }

.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* ----------------------------------------------------------- Sidebar */
.app-sidebar {
  background: var(--ink); color: #AEB8CC; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px;
  border-right: 1px solid var(--ink-line);
}
.app-sidebar .logo { padding: 8px 8px 14px; }
.side-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #5C6680; font-weight: 700; padding: 16px 12px 8px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: #AEB8CC; font-weight: 550; font-size: .94rem; transition: background .15s, color .15s; position: relative;
}
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.active { background: rgba(201,162,39,.14); color: #fff; }
.side-link.active::before { content:""; position:absolute; left:-14px; top:9px; bottom:9px; width:3px; border-radius:0 3px 3px 0; background: var(--gold-2); }
.side-link .tag { margin-left: auto; font-size: .68rem; font-weight: 700; background: var(--gold); color: #2A2204; padding: 2px 7px; border-radius: 99px; }
.side-link .count { margin-left: auto; font-size: .72rem; color: #7C8699; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.side-usage { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.side-usage .su-top { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 8px; }
.side-usage .su-top b { color: #fff; }
.side-usage .su-top span { color: #7C8699; }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.side-user { display: flex; align-items: center; gap: 11px; padding: 10px 8px; margin-top: 10px; border-radius: 11px; transition: background .15s; }
.side-user:hover { background: rgba(255,255,255,.05); }
.side-user .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.side-user .nm { font-size: .88rem; color: #fff; font-weight: 600; line-height: 1.2; }
.side-user .rl { font-size: .76rem; color: #7C8699; }
.side-user svg { margin-left: auto; width: 16px; height: 16px; color: #7C8699; }

/* ----------------------------------------------------------- Main */
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  height: 66px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
}
.app-topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-mute); }
.app-topbar .crumbs b { color: var(--text); font-weight: 650; }
.app-topbar .crumbs svg { width: 15px; height: 15px; }
.app-search { margin-left: 8px; flex: 1; max-width: 380px; height: 40px; border-radius: var(--r-full); background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 9px; padding: 0 16px; color: var(--text-mute); }
.app-search svg { width: 17px; height: 17px; }
.app-search input { border: none; background: none; flex: 1; outline: none; font-size: .92rem; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--text-soft); transition: all .15s; position: relative; }
.icon-btn:hover { border-color: var(--line-2); color: var(--text); box-shadow: var(--sh-xs); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .ping { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }

.app-content { padding: 28px; flex: 1; }
.app-content.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.85rem; letter-spacing: -.03em; }
.page-head p { margin-top: 6px; }
.page-head .ph-actions { display: flex; gap: 10px; }

/* ----------------------------------------------------------- Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; }
.tile .t-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-3); }
.tile .t-ico svg { width: 20px; height: 20px; }
.tile .t-ico.i { background: rgba(91,99,245,.1); color: var(--indigo); }
.tile .t-ico.g { background: var(--success-bg); color: var(--success); }
.tile .delta { font-size: .8rem; font-weight: 700; }
.tile .delta.up { color: var(--success); }
.tile .delta.down { color: var(--danger); }
.tile .n { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; margin-top: 16px; }
.tile .l { color: var(--text-mute); font-size: .88rem; margin-top: 2px; }

/* ----------------------------------------------------------- Project cards */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; cursor: pointer; }
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.proj-thumb { height: 132px; position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.proj-thumb .badge { position: absolute; top: 12px; right: 12px; }
.proj-body { padding: 16px 18px; }
.proj-body .pc-top { display: flex; align-items: center; gap: 11px; }
.proj-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem; flex: none; }
.proj-body h4 { font-size: 1.02rem; }
.proj-body .ind { font-size: .82rem; color: var(--text-mute); }
.proj-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-mute); }
.proj-meta span { display: inline-flex; align-items: center; gap: 5px; }
.proj-meta svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------- Generic panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 1.08rem; }
.panel-head .sub { font-size: .85rem; color: var(--text-mute); }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }

/* List rows */
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: background .12s; }
.lrow:last-child { border-bottom: none; }
.lrow:hover { background: var(--stone-50); }
.lrow .av { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; flex: none; }
.lrow .grow { flex: 1; min-width: 0; }
.lrow .grow b { font-size: .94rem; display: block; }
.lrow .grow span { font-size: .82rem; color: var(--text-mute); }
.lrow .time { font-size: .8rem; color: var(--text-mute); white-space: nowrap; }

/* ----------------------------------------------------------- Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 16px; font-weight: 600; font-size: .92rem; color: var(--text-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 11px; gap: 3px; }
.seg button { padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .86rem; color: var(--text-soft); transition: all .15s; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }

/* ----------------------------------------------------------- Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field .hint { font-size: .82rem; color: var(--text-mute); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff;
  padding: 11px 14px; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(91,99,245,.12); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input-group { position: relative; }
.input-group .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-mute); font-size: .92rem; }
.input-group .input { padding-left: 38px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice {
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; transition: all .15s; background: #fff; position: relative;
}
.choice:hover { border-color: var(--stone-400); }
.choice.sel { border-color: var(--ink); background: var(--stone-50); box-shadow: 0 0 0 3px rgba(11,18,32,.06); }
.choice.sel::after { content:"✓"; position:absolute; top:10px; right:12px; width:20px;height:20px; border-radius:50%; background:var(--ink); color:#fff; font-size:12px; display:grid; place-items:center; }
.choice .c-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); }
.choice .c-ico svg { width: 20px; height: 20px; }
.choice b { font-size: .95rem; }
.choice span { font-size: .8rem; color: var(--text-mute); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-toggle { padding: 8px 15px; border-radius: var(--r-full); border: 1.5px solid var(--line-2); background: #fff; font-size: .88rem; font-weight: 550; cursor: pointer; transition: all .15s; }
.chip-toggle:hover { border-color: var(--stone-400); }
.chip-toggle.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-3); font-weight: 650; }

.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; box-shadow: var(--sh-xs); position: relative; }
.swatch.sel { border-color: var(--ink); }
.swatch.sel::after { content:"✓"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:14px; text-shadow:0 1px 2px rgba(0,0,0,.4); }

/* Upload */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-md); padding: 28px; text-align: center; color: var(--text-mute); transition: all .15s; cursor: pointer; }
.dropzone:hover { border-color: var(--indigo); background: rgba(91,99,245,.03); }
.dropzone svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--stone-400); }

/* Wizard steps */
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.wstep { display: flex; align-items: center; gap: 11px; }
.wstep .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: #fff; border: 1.5px solid var(--line-2); color: var(--text-mute); flex: none; }
.wstep .lb { font-size: .9rem; font-weight: 600; color: var(--text-mute); }
.wstep.done .num { background: var(--success); border-color: var(--success); color: #fff; }
.wstep.active .num { background: var(--ink); border-color: var(--ink); color: #fff; }
.wstep.active .lb { color: var(--ink); }
.wstep-line { flex: 1; height: 1.5px; background: var(--line-2); margin: 0 14px; min-width: 24px; }
.wstep.done + .wstep-line { background: var(--success); }

/* =========================================================== EDITOR */
.editor-shell { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 66px); }
.editor-left { border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.editor-tabs { display: flex; padding: 6px; gap: 4px; border-bottom: 1px solid var(--line); }
.editor-tabs .et { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--text-mute); cursor: pointer; transition: all .15s; }
.editor-tabs .et.active { background: var(--ink); color: #fff; }
.editor-pane { flex: 1; overflow-y: auto; min-height: 0; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-stream { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg .av { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; }
.msg .bubble { padding: 11px 14px; border-radius: 13px; font-size: .9rem; line-height: 1.5; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.user .av { background: linear-gradient(135deg,#5B63F5,#8A8FFB); }
.msg.ai .bubble { background: var(--paper-2); color: var(--text); border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.msg.ai .av { background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.msg .bubble .act { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-mute); display: flex; align-items: center; gap: 7px; }
.msg .bubble .act svg { width: 14px; height: 14px; color: var(--success); }
.msg .bubble .commit { font-family: var(--font-mono); font-size: .78rem; background: var(--ink); color: var(--gold-2); padding: 1px 7px; border-radius: 5px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--stone-400); animation: blink 1.2s infinite both; }
.typing span:nth-child(2){ animation-delay:.2s } .typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }

.chat-input { padding: 14px; border-top: 1px solid var(--line); }
.chat-suggest { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-suggest button { font-size: .8rem; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--text-soft); cursor: pointer; transition: all .15s; }
.chat-suggest button:hover { border-color: var(--ink); color: var(--ink); }
.chat-box { display: flex; align-items: flex-end; gap: 8px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 8px 8px 8px 14px; transition: border-color .15s; }
.chat-box:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(91,99,245,.1); }
.chat-box textarea { flex: 1; border: none; outline: none; resize: none; font-size: .92rem; max-height: 120px; line-height: 1.5; padding: 6px 0; }
.chat-send { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s; }
.chat-send:hover { background: var(--ink-3); }
.chat-send svg { width: 18px; height: 18px; }

/* Section list */
.sec-list { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.sec-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: grab; transition: all .15s; }
.sec-item:hover { border-color: var(--stone-400); box-shadow: var(--sh-xs); }
.sec-item.active { border-color: var(--ink); background: var(--stone-50); }
.sec-item .drag { color: var(--stone-300); }
.sec-item .drag svg { width: 16px; height: 16px; }
.sec-item .s-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.sec-item .s-ico svg { width: 17px; height: 17px; }
.sec-item .grow b { font-size: .9rem; display: block; }
.sec-item .grow span { font-size: .76rem; color: var(--text-mute); }
.sec-item .eye { color: var(--text-mute); opacity: 0; transition: opacity .15s; }
.sec-item:hover .eye { opacity: 1; }
.sec-item .eye svg { width: 16px; height: 16px; }

/* Editor canvas */
.editor-canvas { background: var(--stone-100); display: flex; flex-direction: column; min-width: 0; }
.canvas-bar { height: 54px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.canvas-bar .device { display: inline-flex; gap: 2px; }
.canvas-bar .grow { flex: 1; }
.viewport { flex: 1; overflow-y: auto; padding: 24px; display: grid; place-items: start center; }
.viewport-frame { width: 100%; max-width: 1000px; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-lg); overflow: hidden; transition: max-width .3s var(--ease); }
.viewport.mobile .viewport-frame { max-width: 390px; }

/* live preview website (richer than miniweb) */
.live { color: #1d2433; font-size: 13px; }
.live .l-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 30px; }
.live .l-brand { font-weight: 800; font-size: 17px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.live .l-brand .lm { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.live .l-links { display: flex; gap: 20px; color: #6b7385; font-weight: 500; font-size: 13px; }
.live .l-cta { padding: 9px 18px; border-radius: 99px; color: #fff; font-weight: 600; font-size: 12px; }
.live .l-hero { padding: 40px 30px 46px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.live .l-hero .chip { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:5px 11px; border-radius:99px; margin-bottom:14px; }
.live .l-hero h2 { font-size: 34px; line-height: 1.08; letter-spacing: -.03em; color: #141a26; }
.live .l-hero p { font-size: 14px; color: #5a6276; margin-top: 12px; }
.live .l-hero .row { display: flex; gap: 10px; margin-top: 20px; }
.live .l-hero .b1 { padding: 11px 20px; border-radius: 99px; color: #fff; font-weight: 600; font-size: 13px; }
.live .l-hero .b2 { padding: 11px 20px; border-radius: 99px; border: 1px solid #dcd7cb; font-weight: 600; font-size: 13px; }
.live .l-himg { aspect-ratio: 4/5; border-radius: 16px; }
.live .l-serv { padding: 16px 30px 44px; }
.live .l-serv h3 { text-align: center; font-size: 22px; letter-spacing: -.02em; margin-bottom: 22px; color:#141a26; }
.live .l-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live .l-card { border: 1px solid #ececec; border-radius: 14px; padding: 20px; }
.live .l-card .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.live .l-card b { font-size: 14px; }
.live .l-card p { font-size: 12px; color: #6b7385; margin-top: 6px; }
.section-highlight { outline: 2px solid var(--indigo); outline-offset: -2px; position: relative; }

/* ----------------------------------------------------------- Version timeline */
.commits { position: relative; padding-left: 8px; }
.commit { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-bottom: 6px; position: relative; }
.commit::before { content:""; position:absolute; left: 19px; top: 38px; bottom: -6px; width: 2px; background: var(--line-2); }
.commit:last-child::before { display: none; }
.commit .c-dot { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; z-index: 1; background: #fff; border: 1.5px solid var(--line-2); color: var(--text-soft); }
.commit.pub .c-dot { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.commit.cur .c-dot { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.commit .c-dot svg { width: 18px; height: 18px; }
.commit .c-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; margin-bottom: 16px; }
.commit .c-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.commit .c-top b { font-size: .95rem; }
.commit .hash { font-family: var(--font-mono); font-size: .78rem; color: var(--text-mute); background: var(--paper-2); padding: 1px 7px; border-radius: 5px; }
.commit .c-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: .82rem; color: var(--text-mute); }
.commit .c-meta .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 700; }
.commit .c-actions { display: flex; gap: 8px; margin-top: 12px; }

.diff { font-family: var(--font-mono); font-size: .82rem; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.diff .dl { padding: 3px 12px; display: flex; gap: 10px; }
.diff .dl.add { background: #E9F6EE; color: #1c7a4a; }
.diff .dl.del { background: #FBECEC; color: #b13b3b; }
.diff .dl .sign { width: 12px; opacity: .6; }

/* ----------------------------------------------------------- Review / comments */
.review-split { display: grid; grid-template-columns: 1fr 360px; gap: 0; height: calc(100vh - 66px); }
.review-preview { background: var(--stone-100); overflow-y: auto; padding: 24px; }
.review-side { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.comment { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.comment .c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment .c-head .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .74rem; }
.comment .c-head b { font-size: .88rem; }
.comment .c-head .time { margin-left: auto; font-size: .76rem; color: var(--text-mute); }
.comment .pin { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--indigo); font-weight: 600; margin-bottom: 6px; }
.comment p { font-size: .9rem; color: var(--text); }
.comment .c-foot { display: flex; gap: 14px; margin-top: 9px; font-size: .8rem; color: var(--text-mute); }
.comment .c-foot button { color: var(--text-mute); font-size: .8rem; }
.comment .c-foot button:hover { color: var(--ink); }

/* Approve box */
.approve-box { padding: 18px 20px; border-top: 1px solid var(--line); margin-top: auto; background: var(--paper); }

/* ----------------------------------------------------------- Publish */
.publish-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.checklist { display: grid; gap: 2px; }
.check-item { display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: none; }
.check-item .ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-item .ck.ok { background: var(--success-bg); color: var(--success); }
.check-item .ck.warn { background: var(--warn-bg); color: var(--warn); }
.check-item .ck svg { width: 15px; height: 15px; }
.check-item .grow b { font-size: .93rem; display: block; }
.check-item .grow span { font-size: .82rem; color: var(--text-mute); }

.domain-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--stone-50); }
.domain-row .glob { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--indigo); }
.domain-row .grow b { font-family: var(--font-mono); font-size: .92rem; }

.deploy-globe { aspect-ratio: 16/9; border-radius: var(--r-md); background:
  radial-gradient(40% 60% at 30% 30%, rgba(201,162,39,.25), transparent 60%),
  radial-gradient(50% 70% at 75% 70%, rgba(91,99,245,.3), transparent 60%), var(--ink);
  display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }

/* ----------------------------------------------------------- Billing */
.usage-card { background:#fff; border:1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.usage-card .u-top { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.usage-card .u-top b { font-size: .95rem; }
.usage-card .u-top span { font-size: .85rem; color: var(--text-mute); }
.invoice-row { display:flex; align-items:center; gap:14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.invoice-row:last-child { border-bottom: none; }
.invoice-row .ir-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); display:grid; place-items:center; color: var(--text-soft); }

/* ----------------------------------------------------------- Empty / auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { padding: 48px; display: flex; flex-direction: column; }
.auth-form { margin: auto; width: 100%; max-width: 400px; }
.auth-right { background: var(--ink); position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.auth-right::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 50% at 70% 20%, rgba(201,162,39,.22), transparent 60%), radial-gradient(50% 50% at 20% 90%, rgba(91,99,245,.22), transparent 60%); }
.auth-right > * { position: relative; z-index: 1; }
.social-btn { display:flex; align-items:center; justify-content:center; gap:10px; height:48px; border-radius:var(--r-full); border:1.5px solid var(--line-2); background:#fff; font-weight:600; transition: all .15s; width:100%; }
.social-btn:hover { border-color: var(--stone-400); box-shadow: var(--sh-xs); }
.or-sep { display:flex; align-items:center; gap:14px; color: var(--text-mute); font-size:.85rem; margin: 20px 0; }
.or-sep::before, .or-sep::after { content:""; flex:1; height:1px; background: var(--line); }

/* mobile app */
.app-mobile-bar { display: none; }
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-shell, .review-split { grid-template-columns: 1fr; height: auto; }
  .editor-left { border-right: none; border-bottom: 1px solid var(--line); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
}
@media (max-width: 640px) {
  .tiles, .proj-grid { grid-template-columns: 1fr; }
  .app-content { padding: 18px; }
  .wizard-steps .wstep .lb { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
}
