/* ==========================================================================
   Pixaform — WordPress client requirements intake
   ========================================================================== */

:root {
    /* Palette: warm neutrals, near-black ink, pastel accents (lavender, sage, peach, lime). */
    --ink: #141414;
    --lavender: #dcd8f4;
    --sage: #d7e6c5;
    --peach: #f4c6a1;
    --lime: #e3f47b;
    --mist: #cfd0db;
    --primary: #141414;
    --primary-hover: #000000;
    --primary-50: #f1effb;
    --primary-100: #e4e1f7;
    --primary-200: #cbc6ee;
    --bg: #e8e8e5;
    --surface: #f6f6f3;
    --surface-soft: #eeeeea;
    --text: #141414;
    --text-2: #3b3b3b;
    --muted: #76767a;
    --subtle: #a5a5a8;
    --border: #e1e1dc;
    --success: #4a6a12;
    --success-bg: #e3f47b;
    --success-strong: #2f4708;
    --warning: #8a4512;
    --warning-bg: #f7d6bb;
    --danger: #b42318;
    --danger-bg: #fbe4e1;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(20, 20, 20, .03);
    --shadow: 0 1px 2px rgba(20, 20, 20, .03);
    --shadow-lg: 0 30px 60px -24px rgba(20, 20, 20, .28);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --actionbar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.has-actionbar { padding-bottom: calc(var(--actionbar-h) + 8px); }
body.modal-open { overflow: hidden; }
main { flex: 1; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.015em; color: var(--text); font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary-200); outline-offset: 2px; }

/* --- Icons ---------------------------------------------------------------- */
.icon, svg.lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }
.icon-sm, svg.icon-sm { width: 15px; height: 15px; }
.icon-xs, svg.icon-xs { width: 12px; height: 12px; stroke-width: 2.6; }
i.icon { display: inline-block; }

/* --- Text utilities ------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.center { text-align: center; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.push-right { margin-left: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.display { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin: 18px 0 12px; letter-spacing: -.025em; }
.title { font-size: clamp(22px, 2.4vw, 27px); font-weight: 600; line-height: 1.25; margin: 12px 0 6px; letter-spacing: -.02em; }
.lead { font-size: 15.5px; color: var(--muted); max-width: 680px; margin: 0 auto; }
.lead-left { margin: 0; }
.h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
.h2-serif { font-family: var(--font); font-size: 20px; letter-spacing: -.01em; margin-top: 4px; }
.sep { color: var(--subtle); margin: 0 4px; }

/* --- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; }
.container-mid { max-width: 920px; }
.container-narrow { max-width: 1040px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-center { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* --- Top bar ------------------------------------------------------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-tag { margin-left: 8px; }
.mainnav { display: flex; gap: 2px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.mainnav a:hover { background: var(--surface-soft); color: var(--text); }
.mainnav a.is-active { background: var(--primary-100); color: var(--primary); font-weight: 600; }
.mainnav a.is-disabled { color: var(--subtle); pointer-events: none; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.workspace { display: flex; align-items: center; gap: 12px; }
.workspace-text { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.workspace-text strong { font-weight: 600; font-size: 13px; }
.workspace-text span { font-size: 12px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; position: relative; flex-shrink: 0; }
.avatar-initials { background: var(--primary-100); color: var(--primary); font-weight: 600; font-size: 13px; }
.avatar-sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar .online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #1fbf75; border: 2px solid #fff; }

/* --- Pills, chips, badges ----------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill-soft { background: var(--primary-50); color: var(--text-2); border: 1px solid var(--primary-100); font-size: 12px; padding: 4px 12px; }
.pill-primary { background: var(--primary-100); color: var(--primary); font-weight: 600; }
.pill-success { background: #fff; color: var(--success); font-weight: 600; box-shadow: var(--shadow); }
.pill-white { background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--border); font-weight: 600; }
.pill-lg { padding: 10px 20px; font-size: 13.5px; }
.pill-caps { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.pill-help { background: var(--surface-soft); color: var(--text-2); border: 1px solid var(--border); padding: 9px 16px; }
.pill-help:hover { background: var(--primary-50); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; display: inline-block; }
.dot-soft { opacity: .25; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 3px rgba(31, 191, 117, .18); }
.step-dots { margin-left: auto; gap: 6px; }
.step-dots .dot { color: var(--primary); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-soft); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; font-family: var(--font); letter-spacing: 0; }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.chip-white { background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.chip-primary { background: var(--primary-100); color: var(--primary); }
.chip-file { background: var(--primary-50); border: 1px solid var(--primary-100); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.chip-file:hover { background: var(--primary-100); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; font-family: var(--font); letter-spacing: 0; }
.badge .dot { width: 6px; height: 6px; }
.badge-sm { padding: 1px 8px; font-size: 11px; margin-left: 4px; }
.badge-lg { padding: 6px 14px; font-size: 13px; }
.badge-added { background: var(--success-bg); color: var(--success-strong); }
.badge-in_progress { background: var(--primary-100); color: var(--primary); }
.badge-later { background: var(--warning-bg); color: var(--warning); }
.badge-not_started { background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-primary { background: var(--primary-100); color: var(--primary); }

/* --- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s, color .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(59, 47, 214, .6); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft { background: var(--primary-50); color: var(--text); border-color: var(--primary-100); }
.btn-soft:hover { background: var(--primary-100); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-white { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-white:hover { border-color: var(--primary-200); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 11px 20px; font-size: 13.5px; }
.btn-xl { padding: 13px 28px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--primary); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13.5px; }
.link:hover { text-decoration: underline; }
.link-danger { color: var(--danger); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-soft); color: var(--text); }

/* --- Cards & tiles ------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-pad { padding: 28px 32px; }
.card-flush { overflow: hidden; }
.card-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 32px; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.card-band h2 { font-size: 16px; }
.icon-tile { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--primary-100); }
.icon-tile-lg { width: 54px; height: 54px; border-radius: 14px; }
.icon-tile-lg .icon, .icon-tile-lg svg { width: 22px; height: 22px; }
.icon-tile-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.icon-tile-solid { background: var(--primary); color: #fff; border-color: transparent; }
.icon-circle { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); flex-shrink: 0; box-shadow: var(--shadow); }
.icon-circle-soft { background: var(--primary-50); box-shadow: none; }
.icon-circle-white { background: #fff; }

/* --- Notes --------------------------------------------------------------- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); font-size: 13px; line-height: 1.55; }
.note > .icon, .note > svg { margin-top: 2px; }
.note-primary { background: var(--primary-50); color: var(--text-2); border: 1px solid var(--primary-100); }
.note-primary > svg { color: var(--primary); }
.note-success { background: var(--success-bg); color: var(--success-strong); margin-bottom: 20px; }
.note-danger { background: var(--danger-bg); color: var(--danger); }
.note-left { text-align: left; max-width: 760px; margin: 0 auto; }
.note-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.note-card strong { display: block; font-family: var(--font-display); font-size: 15.5px; margin-bottom: 4px; }
.note-card .muted { font-size: 14px; }

/* --- Progress ------------------------------------------------------------ */
.progress { display: block; height: 6px; background: var(--primary-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s ease; }
.progress-lg { height: 10px; }
.progress-wide { width: 100%; max-width: 260px; }
.progress-success > span { background: var(--success-strong); }

/* --- Step bar & action bar ---------------------------------------------- */
.stepbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.stepbar-inner { max-width: 1440px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stepbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepbar-progress { display: flex; flex-direction: column; gap: 6px; min-width: 260px; font-size: 13px; }
.stepbar-progress strong { color: var(--text); }
.save-state { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 500; font-size: 13px; }
[data-save-state][data-state="saving"] { color: var(--muted); }
[data-save-state][data-state="error"] { color: var(--danger); }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(30, 26, 100, .3); }
.actionbar-inner { max-width: 1440px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--actionbar-h); }
.actionbar-mid { max-width: 920px; padding-left: 24px; padding-right: 24px; }
.actionbar-info { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.actionbar-info > span { display: flex; flex-direction: column; line-height: 1.35; }
.actionbar-info strong { display: inline-flex; align-items: center; gap: 6px; }
.actionbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.count-bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }

/* --- Footer -------------------------------------------------------------- */
.sitefooter { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }
.sitefooter-right { display: flex; gap: 22px; }
.sitefooter-right span { display: inline-flex; align-items: center; gap: 6px; }

/* --- Overview ------------------------------------------------------------ */
.overview { padding-top: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 32px; }
.step-card { position: relative; display: flex; flex-direction: column; overflow: visible; }
.step-tag { position: absolute; top: -13px; right: 28px; background: var(--primary-50); border: 1px solid var(--primary-100); padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.step-card-body { padding: 32px 32px 26px; }
.step-card-icons { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.step-num { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--primary-200); }
.step-card h2 { font-size: 20px; margin-bottom: 4px; }
.step-card-body .muted { font-size: 15px; }
.step-card-foot { flex: 1; background: var(--surface-soft); padding: 22px 32px 28px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; flex-direction: column; gap: 14px; }
.step-card-foot .chip-dot { background: #fff; border: 1px solid var(--border); padding: 6px 12px; }
.check-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; }
.kv { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.resume-info { display: flex; align-items: center; gap: 14px; }
.resume-info strong { display: block; }
.cta-block { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0 48px; }
.inline-form { margin: 0; }
.info-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 24px; border-radius: var(--radius-lg); background: var(--primary-50); border: 1px solid var(--primary-100); }
.info-strip-main { display: flex; gap: 16px; align-items: center; }
.info-strip-main strong, .info-strip-main span { display: block; }
.info-strip-chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Pages (sitemap) ----------------------------------------------------- */
.page-intro { margin-bottom: 28px; }
.crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.blueprint { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.blueprint-text { flex: 1; min-width: 240px; }
.blueprint-text strong { display: block; font-family: var(--font-display); font-size: 15px; }
.blueprint-actions { display: flex; gap: 8px; }
.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.page-card { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px 24px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); user-select: none; text-align: left; }
.page-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow); }
.page-card.is-selected { border-color: var(--primary-200); box-shadow: 0 0 0 3px var(--primary-50), var(--shadow); }
.page-card:not(.is-selected) h3, .page-card:not(.is-selected) p { color: var(--muted); }
.page-card:not(.is-selected) .icon-tile { background: var(--surface-soft); color: var(--muted); border-color: var(--border); }
.page-card.is-essential { cursor: default; }
.page-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.page-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; margin-bottom: 6px; }
.page-card p { color: var(--text-2); font-size: 13.5px; }
.checkbox { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--primary-100); background: var(--primary-50); display: grid; place-items: center; color: transparent; transition: background .15s; }
.is-selected .checkbox { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-card-remove { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--subtle); display: grid; place-items: center; cursor: pointer; }
.page-card-remove:hover { background: var(--danger-bg); color: var(--danger); }
.page-card-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--surface-soft); border-style: dashed; border-color: var(--primary-200); min-height: 190px; font: inherit; }
.page-card-add strong { font-family: var(--font-display); font-size: 16px; margin-top: 8px; }
.page-card-add:hover { background: var(--primary-50); }
.hint-card { display: flex; align-items: center; gap: 18px; padding: 22px 28px; flex-wrap: wrap; }
.hint-card > div { flex: 1; min-width: 260px; }
.hint-card strong { display: block; font-family: var(--font-display); font-size: 15.5px; }
.hint-card-pm { display: flex; align-items: center; gap: 10px; }
.copy-field { display: flex; gap: 8px; margin: 18px 0 4px; }
.copy-field input { flex: 1; min-width: 0; }

/* --- Forms --------------------------------------------------------------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=time], textarea, select {
    width: 100%; font: inherit; color: var(--text); background: var(--surface-soft);
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
::placeholder { color: var(--subtle); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 13.5px; }
.field-error { color: var(--danger); font-size: 12.5px; min-height: 0; }
.field-error:empty { display: none; }
.input-icon { position: relative; display: block; }
.input-icon > svg, .input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 42px; font-size: 13.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.field-full { grid-column: 1 / -1; }

/* --- Modal --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(40, 42, 80, .42); backdrop-filter: blur(6px); animation: fade .15s ease; }
.modal-dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 24px; padding: 32px 40px 36px; box-shadow: var(--shadow-lg); animation: pop .18s ease; outline: 0; }
.modal-wide { max-width: 820px; }
.modal-accent { border-top: 8px solid var(--primary); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-x { margin-left: auto; }
.modal-dialog h2 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.modal-dialog > .muted { font-size: 15px; margin-bottom: 26px; }
.modal-dialog > .note, .modal-dialog > p.small { margin-top: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.modal-actions-split { justify-content: space-between; align-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* --- Toasts -------------------------------------------------------------- */
.toast-stack { position: fixed; right: 24px; bottom: calc(var(--actionbar-h) + 20px); z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 48px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--shadow-lg); font-size: 13px; animation: pop .2s ease; transition: opacity .3s, transform .3s; }
.toast-success svg { color: #5ee6a8; }
.toast-error { background: var(--danger); }
.toast-info svg { color: #a9a4ff; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }

/* --- Intake layout ------------------------------------------------------- */
.intake { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1440px; }
.intake-side { display: flex; flex-direction: column; gap: 20px; }
.intake-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.side-pages { padding: 22px 20px; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.side-head h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.side-pages > .muted { margin-bottom: 14px; }
.side-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .15s; position: relative; }
.side-item:hover { background: var(--surface-soft); }
.side-item.is-current { background: var(--primary-100); }
.side-item.is-current::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--primary); }
.side-status { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--primary-200); background: #fff; }
.status-added .side-status { background: var(--success-strong); border-color: var(--success-strong); color: #fff; }
.status-in_progress .side-status { border-color: var(--primary); box-shadow: inset 0 0 0 4px #fff; background: var(--primary); }
.status-later .side-status { border-color: #e6b35a; border-style: dashed; }
.side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-text strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-text span { font-size: 11.5px; color: var(--muted); }
.status-added .side-text span { color: var(--success); font-weight: 500; }
.is-current .side-text strong, .is-current .side-text span { color: var(--primary); }
.side-chevron { color: var(--subtle); opacity: 0; transition: opacity .15s; }
.side-item:hover .side-chevron, .is-current .side-chevron { opacity: 1; }
.pm-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pm-head { display: flex; gap: 12px; align-items: center; }
.pm-head strong, .pm-head .small { display: block; }
.pm-card > .muted { font-size: 13px; }

.intake-header { padding: 28px 36px 30px; }
.intake-header-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.intake-header .lead { font-size: 15px; max-width: 820px; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.option-card { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.option-card h3 { font-size: 20px; margin-top: 18px; }
.option-card > .muted { font-size: 14px; }
.option-card .btn { margin-top: auto; }
.option-card > .chip { margin-bottom: 24px; }
.option-grid-compact .option-card { padding: 22px; }
.option-grid-compact .option-card h3 { font-size: 16px; margin-top: 10px; }
.option-grid-compact .option-card > .muted { font-size: 13.5px; margin-bottom: 8px; }
.option-grid-compact .link { margin-top: auto; }
.reassure { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 13.5px; }

.empty-state { padding: 52px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-icon { width: 76px; height: 76px; border-radius: 20px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px var(--primary-50); margin-bottom: 14px; }
.empty-icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: 24px; color: var(--text-2); }
.empty-state > .muted { font-size: 15.5px; max-width: 560px; }
.empty-state .note { margin: 14px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head .small { display: block; margin-top: 2px; }

/* summary */
.summary { padding: 28px 36px; display: flex; flex-direction: column; gap: 20px; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.summary-block { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.summary-block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary-block-head h3 { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; font-style: italic; font-size: 14px; color: var(--text-2); }
.quote-plain { font-style: normal; }

/* form sections */
.form-section { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.form-section > .note { margin: 0; }

/* editor */
.editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.editor:focus-within { border-color: var(--primary-200); box-shadow: 0 0 0 4px var(--primary-50); }
.editor-toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--primary-50); border-bottom: 1px solid var(--primary-100); flex-wrap: wrap; position: sticky; top: 0; }
.editor-toolbar button { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.editor-toolbar button:hover { background: #fff; color: var(--primary); }
.editor-toolbar button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.editor-toolbar select { width: auto; padding: 6px 30px 6px 10px; background-color: transparent; border-color: transparent; font-size: 13px; font-weight: 500; cursor: pointer; }
.editor-toolbar .sep { width: 1px; height: 22px; background: var(--primary-200); margin: 0 6px; }
.editor-toolbar .spacer { flex: 1; }
.editor-body { min-height: 260px; max-height: 60vh; overflow: auto; padding: 22px 26px; font-size: 14px; line-height: 1.7; outline: 0; }
.editor-body.is-empty::before { content: attr(data-placeholder); color: var(--subtle); pointer-events: none; position: absolute; }
.editor-body > :first-child { margin-top: 0; }
.editor-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: var(--primary-50); border-top: 1px solid var(--primary-100); }
.prose h2, .editor-body h2 { font-size: 20px; margin: 1.2em 0 .5em; }
.prose h3, .editor-body h3 { font-size: 16px; margin: 1.1em 0 .4em; }
.prose p, .editor-body p { margin: 0 0 .9em; }
.prose ul, .prose ol, .editor-body ul, .editor-body ol { margin: 0 0 .9em; padding-left: 1.4em; }
.prose a, .editor-body a { color: var(--primary); text-decoration: underline; }
.prose blockquote, .editor-body blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--primary-200); color: var(--text-2); }
.preview-body { margin-top: 18px; font-size: 14px; line-height: 1.7; }

/* dropzones */
.dropzone { position: relative; border: 2px dashed var(--primary-200); background: var(--surface-soft); border-radius: var(--radius-lg); padding: 30px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer; transition: background .15s, border-color .15s; overflow: hidden; }
.dropzone:hover, .dropzone.is-dragover { background: var(--primary-50); border-color: var(--primary); }
.dropzone.is-uploading { cursor: progress; opacity: .85; }
.dropzone > strong { font-family: var(--font-display); font-size: 16px; margin-top: 6px; }
.dropzone-row { flex-direction: row; text-align: left; padding: 20px 24px; gap: 16px; }
.dropzone-text { flex: 1; display: flex; flex-direction: column; }
.dropzone-text strong { font-size: 14px; }
.dropzone-lg { padding: 44px 24px; background: var(--primary-50); }
.dropzone-lg .h3 { font-size: 18px; margin-top: 12px; }
.upload-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--primary-100); }
.upload-progress > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* files */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.file-grid:empty { display: none; }
.file-item { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); min-width: 0; }
.file-thumb { position: relative; width: 80px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-soft); display: grid; place-items: center; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb-doc { background: var(--primary-50); color: var(--primary); }
.file-thumb-doc.ext-pdf { background: #fde8e8; color: #c0262d; }
.file-thumb-doc.ext-doc, .file-thumb-doc.ext-docx { background: #e3edfd; color: #1f5fd1; }
.file-thumb-doc.ext-ppt, .file-thumb-doc.ext-pptx { background: #fdeee3; color: #c25416; }
.file-thumb-doc svg { width: 26px; height: 26px; margin-top: -10px; }
.file-ext { position: absolute; bottom: 5px; right: 5px; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: rgba(18, 20, 43, .72); color: #fff; letter-spacing: .03em; }
.file-thumb-doc .file-ext { left: 0; right: 0; bottom: 8px; background: none; color: inherit; text-align: center; }
.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.file-meta strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-actions { display: flex; gap: 14px; margin-top: 4px; }
.file-actions a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 500; }

/* image-first pages (Products, Gallery) */
.option-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.option-grid-4 .option-card { padding: 22px; }
.option-grid-4 .option-card > .chip { white-space: normal; }
.option-grid-4 .option-card h3 { font-size: 17px; }
.option-card-featured { border-color: var(--primary-200); box-shadow: 0 0 0 3px var(--primary-50), var(--shadow); }
.option-card-featured .icon-tile { background: var(--primary); color: #fff; border-color: transparent; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.image-grid:empty { display: none; }
.image-tile { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.image-tile-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-soft); }
.image-tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 0; }
.image-tile-input { min-height: 0; padding: 9px 11px; font-size: 13px; border-radius: 10px; resize: vertical; }
.image-tile-input.is-saving { border-color: var(--primary-200); }
.image-tile-caption { font-size: 13px; }
.image-tile-foot { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.image-tile-foot strong { font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-tile .file-actions { margin-top: 0; font-size: 12.5px; }
.section-head h2 > svg { margin-right: 2px; }

/* --- Review -------------------------------------------------------------- */
.progress-card { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.progress-card-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.progress-card-row > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 240px; }
.progress-card-row .block { width: 100%; }
.review-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 16px; }
.review-item { display: flex; gap: 18px; padding: 24px 26px; align-items: center; position: relative; }
.review-item.is-pending { box-shadow: inset 4px 0 0 var(--primary), var(--shadow); }
.review-num { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); flex-shrink: 0; align-self: flex-start; }
.review-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.review-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-title h3 { font-size: 15.5px; }
.review-files { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.mini-thumb { width: 58px; height: 42px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-soft); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.help-row { display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: var(--primary-50); border-color: var(--primary-100); box-shadow: none; }
.help-row > .muted { flex: 1; }

/* --- Submit & success ---------------------------------------------------- */
.submit-page, .success-page { display: flex; flex-direction: column; gap: 24px; max-width: 960px; }
.submit-page .lead, .success-page .lead { margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font); font-size: 22px; font-weight: 600; }
.stat-value small { font-family: var(--font); font-size: 13.5px; font-weight: 400; color: var(--muted); margin-right: auto; }
.stat-grid-tall { margin: 26px 0; }
.stat-grid-tall .stat-value { font-size: 20px; justify-content: flex-start; }
.confirm-box { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; }
.confirm-box input { position: absolute; opacity: 0; pointer-events: none; }
.confirm-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--primary-200); display: grid; place-items: center; color: transparent; flex-shrink: 0; margin-top: 2px; transition: background .15s; }
.confirm-box input:checked + .confirm-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.confirm-box input:focus-visible + .confirm-check { outline: 3px solid var(--primary-200); outline-offset: 2px; }
.confirm-box strong { font-family: var(--font); font-size: 16px; line-height: 1.4; display: block; margin-bottom: 6px; }
.confirm-box.has-error { border-color: var(--danger); }
.card-pad > h2.with-icon { font-size: 17px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 22px; }
.timeline li { display: flex; gap: 16px; position: relative; }
.timeline li > div { display: flex; flex-direction: column; gap: 3px; }
.timeline strong { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; position: relative; z-index: 1; }
.timeline-line li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -22px; width: 2px; background: var(--primary-100); }
.timeline li.is-active .tl-num { background: var(--primary); color: #fff; }
.timeline-head { align-items: flex-start; gap: 18px; }
.timeline-head h2 { font-size: 18px; }
.trust-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding: 18px 22px; background: var(--primary-50); border-radius: var(--radius-lg); }
.success-mark { position: relative; display: inline-grid; place-items: center; width: 116px; height: 116px; border-radius: 26px; background: #c9f3e2; margin-top: 12px; }
.success-mark > span:first-child { width: 80px; height: 80px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--success-strong); box-shadow: var(--shadow); }
.success-mark > span:first-child svg { width: 40px; height: 40px; stroke-width: 3; }
.success-badge { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--success-strong); box-shadow: var(--shadow); }
.success-page .display { letter-spacing: -.025em; }
.readiness { display: flex; flex-direction: column; gap: 10px; }

/* --- Smart import ----------------------------------------------------------- */
.import-page { display: flex; flex-direction: column; gap: 20px; }
.import-page .page-intro { margin-bottom: 4px; }
.import-upload { display: flex; flex-direction: column; gap: 22px; }
.import-pages { display: flex; flex-direction: column; gap: 12px; }
.import-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.import-tips > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.import-tips svg { margin-top: 3px; }
.import-processing { display: flex; flex-direction: column; gap: 14px; }
.import-processing .title { margin: 6px 0 0; }
.proc-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.proc-steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--subtle); position: relative; }
.proc-steps li > div { display: flex; flex-direction: column; }
.proc-steps li strong { font-weight: 600; font-size: 14px; }
.proc-steps li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: -16px; width: 2px; background: var(--primary-100); }
.proc-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--primary-100); background: #fff; flex-shrink: 0; position: relative; z-index: 1; }
.proc-steps li.is-active { color: var(--text); }
.proc-steps li.is-active .proc-dot { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-steps li.is-done { color: var(--text); }
.proc-steps li.is-done .proc-dot { background: var(--success-strong); border-color: var(--success-strong); }
.proc-steps li.is-done .proc-dot::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.proc-steps li.is-done:not(:last-child)::before { background: var(--success-strong); }
.empty-icon-success { background: var(--success-strong); box-shadow: 0 0 0 12px var(--success-bg); }
.import-summary { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.import-page-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.import-page-counts .chip strong { color: var(--primary); margin-left: 2px; }
.import-page-counts .chip.is-empty { opacity: .55; }
.import-mode { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--warning-bg); color: var(--text-2); font-size: 13px; }
.import-mode > span { flex-basis: 100%; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.radio input { accent-color: var(--primary); width: 16px; height: 16px; }
.import-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.import-item { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, opacity .15s; }
.import-item.is-unassigned { box-shadow: inset 4px 0 0 #e6b35a, var(--shadow); }
.import-item.is-skipped { opacity: .55; }
.import-item-head { display: flex; align-items: center; gap: 14px; }
.import-item-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.import-item-title h3 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.import-target { display: flex; flex-direction: column; gap: 4px; min-width: 230px; }
.import-target select { padding: 9px 12px; font-weight: 600; background-color: #fff; }
.is-unassigned .import-target select { border-color: #e6b35a; }
.import-reason { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-none { background: #fdf1df; color: var(--warning); }
.import-preview { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 13px; }
.import-preview details { margin-top: 6px; }
.import-preview summary { list-style: none; cursor: pointer; }
.import-preview summary::-webkit-details-marker { display: none; }
.import-full { margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; font-size: 13.5px; }
.smart-import-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 28px; flex-wrap: wrap; background: linear-gradient(120deg, var(--primary-50), #fff); border-color: var(--primary-100); }
.smart-import-card > div { flex: 1; min-width: 240px; }
.smart-import-card strong { display: block; font-family: var(--font-display); font-size: 15px; }
.side-import { margin-top: 8px; }

/* --- Overview: ways to add content ------------------------------------------ */
.resume-info > div { display: flex; flex-direction: column; gap: 6px; }
.resume-info .progress { margin-top: 4px; }
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-new-project { border-color: var(--primary-200); color: var(--primary); }
.btn-new-project:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.path-head { margin: 40px 0 16px; align-items: baseline; }
.path-head h2 { font-size: 18px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card { position: relative; padding: 30px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.path-card h3 { font-size: 19px; margin-top: 10px; }
.path-card > .muted { font-size: 14px; }
.path-card .btn { margin-top: auto; }
.path-points { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.path-points li { display: flex; align-items: center; gap: 8px; }
.path-card-smart { background: linear-gradient(150deg, var(--primary) 0%, #5a4ff0 100%); border-color: transparent; color: #fff; box-shadow: 0 18px 40px -18px rgba(59, 47, 214, .65); }
.path-card-smart h3 { color: #fff; }
.path-card-smart > .muted, .path-card-smart .path-points { color: rgba(255, 255, 255, .85); }
.path-card-smart .path-points svg { color: #7ff0c0; }
.path-card-smart .icon-tile-solid { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.path-card-smart .btn-white { border-color: transparent; color: var(--primary); }
.path-card-smart .btn-white:hover { background: var(--primary-50); }
.path-badge { position: absolute; top: 22px; right: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #7ff0c0; color: #0b4f33; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cta-note { display: flex; justify-content: center; margin: 18px 0 32px; }
.steps-head { margin-top: 16px; align-items: baseline; }
.steps-head h2 { font-size: 18px; }
.steps-head + .steps-grid { margin-top: 30px; }

/* --- Design step --------------------------------------------------------- */
.steps-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps-grid .step-card-body { padding: 28px 24px 22px; }
.steps-grid .step-card-foot { padding: 20px 24px 24px; }
.steps-grid .step-card h2 { font-size: 17px; }
.steps-grid .step-card-body .muted { font-size: 14px; }
.design-page { display: flex; flex-direction: column; gap: 22px; }
.design-page .page-intro { margin-bottom: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; text-align: left; cursor: pointer; font: inherit; border: 1.5px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.choice-card:hover { border-color: var(--primary-200); }
.choice-card strong { font-family: var(--font-display); font-size: 16px; margin-top: 10px; color: var(--text); }
.choice-card .muted { font-size: 13px; }
.choice-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50), var(--shadow); }
.choice-card.is-selected .icon-tile { background: var(--primary); color: #fff; border-color: transparent; }
.choice-check { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--primary-100); display: grid; place-items: center; color: transparent; }
.is-selected .choice-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; border: 2px dashed var(--primary-100); border-radius: var(--radius-lg); }
.design-panel { display: flex; flex-direction: column; gap: 18px; }
.chip-btn { border: 1px solid var(--border); background: #fff; color: var(--text-2); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip-btn:hover { border-color: var(--primary-200); color: var(--primary); }
.chip-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-btn-lg { padding: 9px 18px; font-size: 13.5px; }
.style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tpl-card { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: left; cursor: pointer; font: inherit; border: 1.5px solid var(--border); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tpl-card:hover { border-color: var(--primary-200); transform: translateY(-2px); }
.tpl-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50), var(--shadow); }
.tpl-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.tpl-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-title strong { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tpl-meta .small { display: inline-flex; align-items: center; gap: 4px; }
.tpl-best { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 500; }
.swatches { display: inline-flex; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; box-shadow: 0 0 0 1px var(--border); }
.swatches i:first-child { margin-left: 0; }
.tpl-selected { position: absolute; top: 12px; right: 12px; display: none; align-items: center; gap: 4px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.tpl-card.is-selected .tpl-selected { display: inline-flex; }

/* mini template preview, drawn from each template's palette */
.tpl-preview { aspect-ratio: 16 / 10; background: var(--tb); padding: 8% 7% 0; display: flex; flex-direction: column; gap: 8%; overflow: hidden; border-bottom: 1px solid var(--border); }
.tpl-nav { display: flex; align-items: center; gap: 6%; }
.tpl-logo { width: 14%; height: 7px; border-radius: 3px; background: var(--tp); }
.tpl-links { display: flex; gap: 6px; margin-left: auto; }
.tpl-links i { width: 18px; height: 4px; border-radius: 2px; background: var(--tt); opacity: .35; }
.tpl-cta { width: 12%; height: 9px; border-radius: 5px; background: var(--ta); }
.tpl-hero { display: flex; gap: 6%; align-items: center; flex: 1; }
.tpl-hero-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tpl-hero-text b { display: block; height: 9px; border-radius: 3px; background: var(--tt); width: 90%; }
.tpl-hero-text b.short { width: 60%; }
.tpl-hero-text s { display: block; height: 4px; border-radius: 2px; background: var(--tt); opacity: .3; width: 85%; }
.tpl-hero-text s.short { width: 55%; }
.tpl-btn { display: block; width: 32%; height: 11px; border-radius: 6px; background: var(--tp); margin-top: 4px; }
.tpl-hero-media { width: 42%; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, var(--tp), var(--ta)); opacity: .85; }
.tpl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 18%; }
.tpl-cards span { border-radius: 6px 6px 0 0; background: var(--tt); opacity: .08; }
.tpl-layout-dark { background: var(--tp); }
.tpl-layout-dark .tpl-logo, .tpl-layout-dark .tpl-hero-text b, .tpl-layout-dark .tpl-links i, .tpl-layout-dark .tpl-hero-text s, .tpl-layout-dark .tpl-cards span { background: #fff; }
.tpl-layout-dark .tpl-btn { background: var(--ta); }
.tpl-layout-gradient { background: linear-gradient(135deg, var(--tp), var(--ta)); }
.tpl-layout-gradient .tpl-logo, .tpl-layout-gradient .tpl-hero-text b, .tpl-layout-gradient .tpl-btn, .tpl-layout-gradient .tpl-links i, .tpl-layout-gradient .tpl-hero-text s, .tpl-layout-gradient .tpl-cards span { background: #fff; }
.tpl-layout-gradient .tpl-hero-media { background: rgba(255, 255, 255, .25); }
.tpl-layout-centered .tpl-hero { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.tpl-layout-centered .tpl-hero-text { align-items: center; width: 100%; }
.tpl-layout-centered .tpl-hero-media { display: none; }
.tpl-preview.tpl-layout-grid .tpl-hero { flex: 0 0 auto; }
.tpl-preview.tpl-layout-grid .tpl-hero-media { display: none; }
.tpl-preview.tpl-layout-grid .tpl-cards { height: 42%; }
.tpl-preview.tpl-layout-grid .tpl-cards span { opacity: .14; border-radius: 4px; }
.tpl-layout-image .tpl-hero { background: linear-gradient(135deg, var(--tp), var(--ta)); border-radius: 8px; padding: 6%; }
.tpl-layout-image .tpl-hero-text b, .tpl-layout-image .tpl-hero-text s, .tpl-layout-image .tpl-btn { background: #fff; }
.tpl-layout-image .tpl-hero-media { display: none; }

.color-field { display: flex; gap: 10px; }
.color-field input[type=color], .color-chip input[type=color] { width: 52px; height: 48px; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; flex-shrink: 0; }
.color-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.color-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.color-chip input[type=color] { border: 0; }
.check-line { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check-line input { accent-color: var(--primary); width: 17px; height: 17px; }
.url-list { display: flex; flex-direction: column; gap: 10px; }
.url-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; }
.add-url { align-self: flex-start; }
.design-locked { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.design-locked > div:nth-child(2) { flex: 1; min-width: 220px; }
.design-locked-preview { width: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.design-review { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 22px; flex-wrap: wrap; }
.design-review.is-pending { box-shadow: inset 4px 0 0 #e6b35a, var(--shadow); }
.design-review-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.design-review-preview { width: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.icon-tile-warn { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.design-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-soft); border: 1px solid var(--border); margin-bottom: 14px; font-size: 13px; }
.design-line.is-pending { background: var(--warning-bg); border-color: transparent; }

/* --- Website type pop-up ---------------------------------------------------- */
.type-modal { max-width: 880px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.type-card:hover { border-color: var(--primary-200); background: var(--surface-soft); }
.type-card.is-selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-50); }
.type-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.type-card.is-selected .type-icon { background: var(--primary); color: #fff; }
.type-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.type-text strong { font-size: 14px; color: var(--text); }
.type-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--primary-100); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.type-card.is-selected .type-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.type-modal .modal-actions { position: sticky; bottom: -36px; z-index: 1; margin: 16px -40px -36px; padding: 16px 40px 24px; background: #fff; border-top: 1px solid var(--border); }
.type-hint { margin-top: 14px; min-height: 22px; align-items: flex-start; }
.type-hint svg { margin-top: 2px; flex-shrink: 0; }
.chip-btn-type { border: 1px dashed var(--primary-200); background: #fff; cursor: pointer; font: inherit; font-size: 12px; color: var(--text-2); }
.chip-btn-type:hover { border-style: solid; color: var(--primary); }
.chip-btn-type strong { color: var(--primary); }
.tpl-recommended { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #7ff0c0; color: #0b4f33; font-size: 11.5px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* --- Page groups (by website type) ------------------------------------------ */
.page-groups { display: flex; flex-direction: column; gap: 32px; margin-bottom: 28px; }
.page-groups .page-grid { margin-bottom: 0; }
.page-group { display: flex; flex-direction: column; gap: 16px; }
.page-group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-group-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; flex-wrap: wrap; }
.page-group-head .small { display: block; margin-top: 2px; }
.page-group[data-group=priority] { padding: 22px; margin: 0 -22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--primary-50), transparent 85%); border: 1px solid var(--primary-100); }
.page-group[data-group=more] .page-card:not(.is-selected):not(.page-card-add) { box-shadow: none; background: rgba(255, 255, 255, .7); }

/* --- Template groups (by website type) --------------------------------------- */
.tpl-group { display: flex; flex-direction: column; gap: 16px; }
.tpl-group[data-tpl-group=priority] { padding: 22px; margin: 0 -22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--primary-50), transparent 85%); border: 1px solid var(--primary-100); }
.tpl-group[data-tpl-group=priority] .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tpl-group[data-tpl-group=more] { margin-top: 10px; }
.tpl-group[data-tpl-group=more] .tpl-card:not(.is-selected) { box-shadow: none; }
.tpl-empty { padding: 24px; }

/* --- Workspace header & project bar ------------------------------------------ */
.mainnav a { display: inline-flex; align-items: center; gap: 7px; }
.workspace { color: inherit; border-radius: 12px; padding: 2px 4px 2px 10px; }
.workspace:hover { background: var(--surface-soft); }
.projectbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.projectbar-inner { max-width: 1440px; margin: 0 auto; padding: 12px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.projectbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; padding: 4px 8px 4px 4px; border-radius: 8px; }
.back-link:hover { color: var(--primary); background: var(--primary-50); }
.projectbar-sep { color: var(--subtle); }
.projectbar-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.projectbar-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projectnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.projectnav::-webkit-scrollbar { display: none; }
.projectnav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.projectnav a:hover { color: var(--text); }
.projectnav a.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* --- Dashboard --------------------------------------------------------------- */
.dashboard { display: flex; flex-direction: column; gap: 24px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-head .title { margin-top: 14px; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-claim { align-items: center; flex-wrap: wrap; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px; }
.dash-stats .stat { background: #fff; padding: 14px 18px; gap: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.project-card { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.project-card.is-submitted { background: linear-gradient(180deg, #f3fdf8, #fff 40%); }
.project-card-head { display: flex; align-items: flex-start; gap: 12px; }
.project-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--primary-100); }
.is-submitted .project-icon { background: var(--success-bg); color: var(--success-strong); border-color: transparent; }
.project-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.project-card-title h2 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-menu { position: relative; margin: -6px -8px 0 0; }
.project-menu-list { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.project-menu-list a, .project-menu-list button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; }
.project-menu-list a:hover, .project-menu-list button:hover { background: var(--surface-soft); }
.project-menu-list .link-danger { color: var(--danger); }
.project-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.project-step { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--subtle); font-weight: 500; line-height: 1.25; }
.project-step i { display: block; height: 5px; border-radius: 3px; background: var(--primary-100); }
.project-step.is-done { color: var(--success-strong); }
.project-step.is-done i { background: var(--success-strong); }
.project-step.is-current { color: var(--primary); font-weight: 600; }
.project-step.is-current i { background: var(--primary); }
.project-meta { display: grid; grid-template-columns: 1.3fr 1.3fr .6fr; gap: 12px; padding: 14px 16px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; }
.project-meta > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.project-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-meta .progress { margin-top: 4px; height: 5px; }
.project-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.project-card-new { border: 2px dashed var(--primary-200); background: var(--surface-soft); border-radius: var(--radius-lg); align-items: center; justify-content: center; text-align: center; cursor: pointer; font: inherit; min-height: 260px; gap: 8px; box-shadow: none; }
.project-card-new:hover { background: var(--primary-50); border-color: var(--primary); }
.project-card-new strong { font-family: var(--font-display); font-size: 16px; margin-top: 6px; }
.project-card-new .muted { max-width: 280px; }
.dash-empty { padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dash-empty h2 { font-size: 24px; }
.dash-empty > .muted { font-size: 15px; max-width: 560px; }
.dash-empty-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.dash-empty-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.dash-empty-steps b { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11.5px; }

/* --- Live theme previews ------------------------------------------------------ */
.tpl-card { cursor: pointer; }
.tpl-card:focus-visible { outline: 3px solid var(--primary-200); outline-offset: 2px; }
.tpl-live-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); background: #fff; }
.tpl-live-thumb .tpl-preview { position: absolute; inset: 0; border: 0; }
.tpl-live-thumb iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--thumb-scale, .22)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: #fff; }
.tpl-live-thumb iframe.is-loaded { opacity: 1; }
.tpl-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 18, 40, .78); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tpl-live-thumb .tpl-live-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; }
.tpl-preview-btn { align-self: flex-start; margin-top: 4px; }

.live-modal { padding: 16px; }
.live-dialog { position: relative; width: 100%; max-width: 1480px; height: calc(100vh - 32px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; outline: 0; }
.live-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.live-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-title strong { font-family: var(--font-display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-devices { display: inline-flex; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.live-devices button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.live-devices button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.live-actions { display: flex; align-items: center; gap: 8px; }
.live-stage { flex: 1; min-height: 0; background: #e9eaf3; display: flex; justify-content: center; padding: 16px; overflow: auto; }
.live-frame-wrap { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px -12px rgba(20, 20, 60, .35); transition: width .3s ease; }
.live-frame-wrap[data-device="tablet"] { width: 820px; max-width: 100%; }
.live-frame-wrap[data-device="mobile"] { width: 390px; max-width: 100%; border-radius: 24px; }
.live-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-weight: 500; background: #fff; z-index: 1; transition: opacity .3s; }
.live-frame-wrap.is-loaded .live-loading { opacity: 0; pointer-events: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--primary-100); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.live-note { display: flex; align-items: center; gap: 6px; padding: 8px 16px 10px; border-top: 1px solid var(--border); margin: 0; }

/* --- Sub-pages (sub-menu items) ---------------------------------------------- */
.sub-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.page-card:not(.is-selected) .sub-pages { opacity: .6; }
.sub-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 8px; border-radius: 8px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--text-2); font-size: 11.5px; font-weight: 500; cursor: default; }
.sub-chip svg { color: var(--primary); }
.sub-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.sub-chip button:hover { background: var(--danger-bg); color: var(--danger); }
.sub-add { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; border: 1px dashed var(--primary-200); background: #fff; color: var(--primary); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.sub-add:hover { background: var(--primary-50); border-style: solid; }
.page-card-remove { bottom: auto; top: 62px; }
.sub-suggestions { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.side-sub .side-item { padding-left: 28px; }
.side-sub .side-item::after { content: ''; position: absolute; left: 22px; top: 50%; width: 8px; height: 1.5px; background: var(--primary-200); }
.side-sub .side-status { width: 18px; height: 18px; }
.side-sub .side-text strong { font-size: 13px; font-weight: 500; }
.review-item.is-sub { margin-left: 36px; padding: 18px 22px; }
.review-item.is-sub .review-num { font-size: 11.5px; }

/* --- Ways to add content bar --------------------------------------------------- */
.content-options { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.content-options-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.content-options-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.content-options-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.content-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s, transform .1s; }
.content-option:hover { border-color: var(--primary-200); background: var(--primary-50); }
.content-option:active { transform: translateY(1px); }
.content-option-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.content-option.is-done .content-option-icon { background: var(--success-strong); color: #fff; }
.content-option-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.content-option-text strong { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.content-option-text span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-option.is-done .content-option-text span { color: var(--success); font-weight: 500; }
.content-option-later { border-style: dashed; }
.content-option-later .content-option-icon { background: var(--warning-bg); color: var(--warning); }
.intake-main .form-section { scroll-margin-top: 90px; }
.form-section.is-highlight { animation: section-flash 1.4s ease; }
@keyframes section-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--primary-200), var(--shadow); } 100% { box-shadow: var(--shadow); } }

/* --- Brand & business info step ---------------------------------------------- */
.brand-page { display: flex; flex-direction: column; gap: 20px; }
.brand-page .page-intro { margin-bottom: 0; }
.brand-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.brand-fields .form-section { scroll-margin-top: 90px; }
.brand-fields .section-head h2 svg { margin-right: 2px; }
.brand-progress { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 74px; z-index: 5; }
.brand-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-chip { color: var(--muted); border: 1px solid var(--border); background: #fff; }
.brand-chip svg { opacity: .25; }
.brand-chip.is-done { background: var(--success-bg); color: var(--success-strong); border-color: transparent; }
.brand-chip.is-done svg { opacity: 1; }
.brand-files { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-file { display: flex; gap: 16px; align-items: center; padding: 16px; border: 2px dashed var(--primary-200); border-radius: var(--radius); background: var(--surface-soft); transition: background .15s, border-color .15s; }
.brand-file.has-file { border-style: solid; border-color: var(--border); background: #fff; }
.brand-file.is-dragover { background: var(--primary-50); border-color: var(--primary); }
.brand-file.is-uploading { opacity: .6; pointer-events: none; }
.brand-file-preview { width: 120px; height: 84px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--subtle); flex-shrink: 0; overflow: hidden; background-image: linear-gradient(45deg, #f3f3f8 25%, transparent 25%), linear-gradient(-45deg, #f3f3f8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f3f3f8 75%), linear-gradient(-45deg, transparent 75%, #f3f3f8 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.brand-file-preview.is-favicon { width: 84px; }
.brand-file-preview img { max-width: 88%; max-height: 80%; object-fit: contain; }
.icon-lg, svg.icon-lg { width: 30px; height: 30px; }
.brand-file-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-file-body [data-file-name] { overflow: hidden; text-overflow: ellipsis; }
.brand-file-actions { margin-top: 6px; gap: 10px; }
.brand-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.font-pairs .chip-btn strong { color: inherit; }
.brand-preview { --bp-primary: #3b2fd6; --bp-secondary: #111827; --bp-accent: #f59e0b; --bp-heading: inherit; --bp-body: inherit; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.brand-preview-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.brand-preview-logo { font-family: var(--bp-heading); font-weight: 600; color: var(--bp-primary); font-size: 15px; }
.brand-preview-links { display: flex; gap: 8px; margin-left: auto; }
.brand-preview-links i { width: 34px; height: 5px; border-radius: 3px; background: var(--bp-secondary); opacity: .25; }
.brand-preview-btn { padding: 5px 12px; border-radius: 8px; background: var(--bp-accent); color: #fff; font-size: 11.5px; font-weight: 600; font-family: var(--bp-body); }
.brand-preview h3 { font-family: var(--bp-heading); color: var(--bp-secondary); font-size: 22px; letter-spacing: -.01em; }
.brand-preview p { font-family: var(--bp-body); color: var(--text-2); font-size: 14px; max-width: 560px; }
.brand-preview-cta { align-self: flex-start; padding: 9px 18px; border-radius: 10px; background: var(--bp-primary); color: #fff; font-weight: 600; font-family: var(--bp-body); font-size: 13px; }
.hours-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hours-row { display: grid; grid-template-columns: 130px 120px 130px 24px 130px; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.hours-row:last-child { border-bottom: 0; }
.hours-row input[type=time] { padding: 8px 10px; }
.hours-row.is-closed { background: var(--surface-soft); }
.hours-row.is-closed input[type=time], .hours-row.is-closed > .muted { opacity: .35; pointer-events: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--primary-100); position: relative; transition: background .15s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + span { background: var(--success-strong); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid var(--primary-200); outline-offset: 2px; }
.switch em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.brand-review-logo { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; background: #fff; flex-shrink: 0; }
.brand-review-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.brand-review .swatches { margin-top: 6px; }
.project-steps { grid-template-columns: repeat(5, 1fr); }
.project-step.is-skipped { color: var(--warning); }
.project-step.is-skipped i { background: repeating-linear-gradient(90deg, #e6b35a 0 4px, transparent 4px 7px); }
.steps-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps-grid .step-card-body { padding: 26px 20px 20px; }
.steps-grid .step-card-foot { padding: 18px 20px 22px; }
.steps-grid .step-card h2 { font-size: 16px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1440px) {
    .brand-tag { display: none; }
}
@media (max-width: 1200px) {
    .brand-tag, .workspace-text { display: none; }
    .intake { grid-template-columns: 290px minmax(0, 1fr); gap: 24px; }
    .option-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .topbar-inner { flex-wrap: wrap; padding: 12px 20px; gap: 12px; }
    .mainnav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
    .pill-help span:last-child { display: none; }
    .topbar-right { margin-left: auto; }
    .steps-grid, .option-grid, .page-grid { grid-template-columns: repeat(2, 1fr); }
    .intake { grid-template-columns: 1fr; }
    .intake-side { position: static; order: 2; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .import-tips { grid-template-columns: 1fr; }
    .path-grid { grid-template-columns: 1fr; }
    .choice-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .url-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 680px) {
    body { font-size: 13px; }
    .container { padding: 24px 16px 40px; }
    .steps-grid, .option-grid, .option-grid-4, .page-grid, .form-grid { grid-template-columns: 1fr; }
    .image-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card-pad, .summary, .form-section, .intake-header { padding: 22px 18px; }
    .card-band { padding: 16px 18px; }
    .modal-dialog { padding: 24px 20px; border-radius: 18px; }
    .modal-dialog h2 { font-size: 20px; }
    .actionbar-inner { padding: 12px 16px; flex-wrap: wrap; }
    .actionbar-info { display: none; }
    .actionbar-actions { width: 100%; }
    .actionbar-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
    .stepbar-inner { padding: 10px 16px; }
    .stepbar-progress { min-width: 0; width: 100%; }
    .review-item { flex-wrap: wrap; padding: 20px 18px; }
    .review-item > .btn { width: 100%; }
    .dropzone-row { flex-direction: column; text-align: center; }
    .file-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sitefooter { padding: 20px 16px; }
    .row-between { flex-wrap: wrap; }
    .btn-xl { padding: 16px 28px; font-size: 14px; }
    .step-dots { margin-left: 0; }
    .import-item-head { flex-wrap: wrap; }
    .path-card { padding: 24px 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .type-grid { grid-template-columns: 1fr; }
    .brand-files, .brand-colors { grid-template-columns: 1fr; }
    .hours-row { grid-template-columns: 1fr auto; row-gap: 8px; }
    .hours-row input[type=time] { grid-column: span 1; }
    .hours-row > .muted { display: none; }
    .brand-progress { position: static; }
    .content-options-list { grid-template-columns: 1fr 1fr; }
    .review-item.is-sub { margin-left: 16px; }
    .live-modal { padding: 0; }
    .live-dialog { height: 100vh; border-radius: 0; }
    .live-devices span, .live-actions .btn-white { display: none; }
    .live-stage { padding: 8px; }
    .projectbar-inner { padding: 10px 16px 0; }
    .projectbar-sep, .projectbar-title .chip { display: none; }
    .projectbar-name { max-width: 60vw; }
    .project-grid { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: repeat(3, 1fr); }
    .dash-head-actions, .dash-head-actions .btn { width: 100%; }
    .project-steps { font-size: 10px; }
    .page-group[data-group=priority], .tpl-group[data-tpl-group=priority] { margin: 0 -8px; padding: 16px 8px; }
    .tpl-group[data-tpl-group=priority] .tpl-grid { grid-template-columns: 1fr; }
    .type-modal .modal-actions { bottom: -24px; margin: 14px -20px -24px; padding: 14px 20px 18px; }
    .resume-actions, .resume-actions .btn, .resume-actions form { width: 100%; }
    .import-target { min-width: 0; width: 100%; }
    .stat-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==========================================================================
   Palette theme: warm neutrals + ink + pastels (applied over the base styles)
   ========================================================================== */
.card { border-color: transparent; box-shadow: none; }
.topbar, .projectbar { background: var(--surface); }
.projectbar { border-bottom-color: var(--border); }
.stepbar { background: transparent; border-bottom: 0; }
.actionbar { background: rgba(246, 246, 243, .96); border-top-color: var(--border); box-shadow: none; }
.sitefooter { border-top-color: var(--border); }

/* Buttons: pill-shaped, ink primary */
.btn { border-radius: 999px; }
.btn-primary { background: var(--ink); box-shadow: none; }
.btn-primary:hover { background: #000; }
.btn-soft { background: #fff; border-color: var(--border); }
.btn-soft:hover { background: var(--surface-soft); border-color: var(--border); }
.btn-white:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 20, 20, .05); }

/* Navigation */
.mainnav a { border-radius: 999px; }
.mainnav a.is-active { background: var(--ink); color: #fff; }
.projectnav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.pill-help { background: #fff; }
.brand-mark, .avatar { background: var(--ink); }
.avatar-initials { background: var(--lavender); color: var(--ink); }

/* Chips & pills: outlined pills like the reference tags */
.pill-primary { background: var(--lavender); color: var(--ink); }
.pill-soft { background: #fff; border-color: var(--border); }
.pill-white, .chip-white { border-color: var(--ink); box-shadow: none; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.chip-primary { background: var(--lavender); border-color: transparent; color: var(--ink); }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); }
.badge-in_progress, .badge-primary { background: var(--lavender); color: var(--ink); }
.badge-later, .badge-none { background: var(--peach); color: #6b3410; }
.badge-added { background: var(--lime); color: var(--ink); }

/* Tiles & icons */
.icon-tile { background: #fff; border-color: transparent; color: var(--ink); }
.icon-tile-solid { background: var(--ink); color: #fff; }
.icon-tile-success { background: var(--lime); color: var(--ink); }
.icon-circle-soft { background: var(--lavender); }
.empty-icon { background: var(--ink); box-shadow: 0 0 0 12px var(--lavender); }
.empty-icon-success { background: var(--ink); box-shadow: 0 0 0 12px var(--lime); }
.count-bubble { background: var(--ink); }
.step-num { color: var(--subtle); }

/* Pastel highlight panels */
.note-primary { background: var(--primary-50); border-color: transparent; }
.note-success { background: var(--sage); color: var(--ink); }
.note-card { background: var(--sage); border-color: transparent; }
.info-strip, .trust-row, .help-row { background: var(--surface); border-color: transparent; }
.smart-import-card { background: var(--lavender); border-color: transparent; }
.page-group[data-group=priority], .tpl-group[data-tpl-group=priority] { background: var(--lavender); border-color: transparent; }
.page-group[data-group=legal] { padding: 22px; margin: 0 -22px; border-radius: var(--radius-lg); background: var(--surface-soft); }
.modal-accent { border-top-color: var(--ink); }
.modal-backdrop { background: rgba(30, 30, 30, .35); }

/* Smart Import path card: lime highlight tile with ink contrast */
.path-card-smart { background: var(--lime); color: var(--ink); box-shadow: none; }
.path-card-smart h3 { color: var(--ink); }
.path-card-smart > .muted, .path-card-smart .path-points { color: var(--text-2); }
.path-card-smart .path-points svg { color: var(--ink); }
.path-card-smart .icon-tile-solid { background: var(--ink); border-color: transparent; color: var(--lime); }
.path-card-smart .btn-white { background: var(--ink); color: #fff; border-color: var(--ink); }
.path-card-smart .btn-white:hover { background: #000; color: #fff; }
.path-badge, .tpl-recommended { background: var(--ink); color: var(--lime); }

/* Selection states */
.page-card, .choice-card, .tpl-card, .type-card, .project-card { border-color: transparent; box-shadow: none; }
.page-card:hover, .choice-card:hover, .tpl-card:hover, .type-card:hover { border-color: var(--subtle); }
.page-card.is-selected { border-color: transparent; box-shadow: none; }
.page-card.is-selected:hover { border-color: var(--subtle); }
.choice-card.is-selected, .tpl-card.is-selected { border-color: var(--ink); box-shadow: none; }
.page-card:not(.is-selected) .icon-tile { background: var(--surface-soft); }
.page-group[data-group=more] .page-card:not(.is-selected):not(.page-card-add) { background: rgba(246, 246, 243, .6); }
.page-card-add, .project-card-new { background: transparent; border-color: var(--subtle); }
.page-card-add:hover, .project-card-new:hover { background: var(--surface); border-color: var(--ink); }
.checkbox { background: #fff; border-color: var(--border); }
.is-selected .checkbox, .is-selected .choice-check, .type-card.is-selected .type-check { background: var(--ink); border-color: var(--ink); }
.choice-card.is-selected .icon-tile, .type-card.is-selected .type-icon { background: var(--ink); color: #fff; }
.type-card { background: var(--surface); }
.type-card.is-selected { background: var(--lavender); border-color: var(--ink); box-shadow: none; }
.type-icon { background: #fff; color: var(--ink); }
.tpl-selected { background: var(--ink); }
.confirm-box input:checked + .confirm-check { background: var(--ink); border-color: var(--ink); }
.switch span { background: var(--mist); }
.switch input:checked + span { background: var(--ink); }
.sub-chip { background: var(--lavender); border-color: transparent; }
.sub-chip svg { color: var(--ink); }
.sub-add { color: var(--ink); border-color: var(--subtle); }
.content-option { border-color: transparent; }
.content-option-icon { background: var(--surface-soft); color: var(--ink); }
.content-option.is-done .content-option-icon { background: var(--ink); color: var(--lime); }
.content-option.is-done .content-option-text span { color: var(--success); }
.content-option:hover { background: var(--lavender); border-color: transparent; }

/* Progress */
.progress { background: rgba(20, 20, 20, .08); }
.progress > span { background: var(--ink); }
.progress-success > span { background: var(--success-strong); }
.project-step i { background: rgba(20, 20, 20, .1); }
.project-step.is-done { color: var(--text-2); }
.project-step.is-done i { background: var(--sage); }
.project-step.is-current { color: var(--ink); }
.project-step.is-current i { background: var(--ink); }
.project-step.is-skipped { color: #8a4512; }
.project-step.is-skipped i { background: repeating-linear-gradient(90deg, var(--peach) 0 4px, transparent 4px 7px); }
.proc-steps li.is-done .proc-dot, .proc-steps li.is-done:not(:last-child)::before { background: var(--ink); border-color: var(--ink); }
.proc-steps li.is-active .proc-dot { border-color: var(--ink); border-top-color: transparent; }
.side-item.is-current { background: var(--lavender); }
.side-item.is-current::before { background: var(--ink); }
.status-added .side-status, .status-in_progress .side-status { background: var(--ink); border-color: var(--ink); }
.status-later .side-status { border-color: #d59a6a; }
.brand-chip.is-done { background: var(--lime); color: var(--ink); }

/* Dashboard & stats */
.stat, .dash-stats .stat { background: var(--surface); border-color: transparent; }
.project-icon { background: #fff; border-color: transparent; color: var(--ink); }
.project-card.is-submitted { background: var(--sage); }
.is-submitted .project-icon { background: #fff; color: var(--ink); }
.project-meta, .summary-block, .content-options, .import-preview { background: var(--surface-soft); border-color: transparent; }
.content-options { background: var(--surface); }
.content-option { background: var(--surface-soft); }
.project-card-new .icon-circle { background: var(--ink); color: #fff; }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=time], textarea, select { background: #fff; border-color: var(--border); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.editor:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.editor-toolbar, .editor-foot { background: var(--surface-soft); border-color: var(--border); }
.editor-toolbar button:hover, .editor-toolbar button.is-active { color: var(--ink); }
.dropzone { background: var(--surface-soft); border-color: var(--subtle); }
.dropzone:hover, .dropzone.is-dragover { background: var(--lavender); border-color: var(--ink); }
.upload-progress > span { background: var(--ink); }
.file-item { background: #fff; border-color: transparent; }
.form-section.is-highlight { animation: section-flash-ink 1.4s ease; }
@keyframes section-flash-ink { 0%, 30% { box-shadow: 0 0 0 3px var(--ink); } 100% { box-shadow: none; } }

/* Smart Import: add a missing page right from the review */
.import-reason .import-quick-add { margin-left: auto; }

/* --- Smart Import: two upload boxes (content + images) ------------------------ */
.import-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.import-box { position: relative; padding: 30px 22px 22px; justify-content: flex-start; min-height: 290px; }
.import-box .h3 { margin-top: 8px; }
.import-box.has-files { border-style: solid; border-color: var(--ink); background: #fff; }
.import-box-step { position: absolute; top: 14px; left: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.import-box-files { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; max-height: 180px; overflow: auto; }
.import-box-files:empty { display: none; }
.import-picked { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--surface-soft); text-align: left; font-size: 12.5px; cursor: default; }
.import-picked span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.import-picked em { font-style: normal; color: var(--muted); flex-shrink: 0; }
.import-picked button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.import-picked button:hover { background: var(--danger-bg); color: var(--danger); }
.import-start { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Review: images */
.import-images { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.import-images-all { min-width: 220px; }
.import-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.import-image { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface-soft); overflow: hidden; transition: opacity .15s, box-shadow .15s; }
.import-image.is-unassigned { box-shadow: inset 0 0 0 2px var(--peach); }
.import-image.is-skipped { opacity: .5; }
.import-image-thumb { display: block; aspect-ratio: 4 / 3; background: #fff; }
.import-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.import-image-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; min-width: 0; }
.import-image-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-image-body select { padding: 7px 10px; font-size: 12.5px; }
@media (max-width: 680px) {
    .import-boxes { grid-template-columns: 1fr; }
    .import-box { min-height: 0; }
    .import-start .btn { width: 100%; }
}

/* --- Review: add page button beside the heading, remove (bin) per page ------- */
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.review-head .title { margin-bottom: 0; }
.review-head + .lead { margin-top: 6px; }
.review-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.review-remove { width: 34px; height: 34px; }
.review-remove:hover { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 720px) {
    .review-actions { width: 100%; }
    .review-actions .btn { flex: 1; }
}

/* ==========================================================================
   Logins, account menu, build progress and the developer portal
   ========================================================================== */

/* --- Login --------------------------------------------------------------- */
.auth-body { background: radial-gradient(1200px 600px at 50% -10%, var(--lavender), transparent 60%), var(--bg); }
.auth { width: 100%; max-width: 560px; margin: 0 auto; padding: 36px 20px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-brand { margin-bottom: 4px; }
.auth-intro { text-align: center; }
.auth-intro .display { margin: 14px 0 8px; }
.auth-intro .lead { font-size: 14.5px; }
.auth-card { width: 100%; padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-soft); border: 1px solid var(--border); }
.auth-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs a.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.auth-head h2 { font-size: 19px; margin-bottom: 4px; }
.auth-switch { text-align: center; font-size: 13px; }
.auth-foot { display: inline-flex; align-items: center; gap: 6px; text-align: center; }

/* --- Account menu (topbar) ------------------------------------------------ */
.account { position: relative; }
.account > summary { list-style: none; cursor: pointer; border-radius: 12px; padding: 4px 4px 4px 10px; }
.account > summary::-webkit-details-marker { display: none; }
.account > summary:hover { background: var(--surface-soft); }
.account .avatar { font-size: 12.5px; font-weight: 600; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.account-menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 500; text-align: left; }
.account-menu-item:hover { background: var(--danger-bg); color: var(--danger); }
.workspace-text span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Client build progress ---------------------------------------------- */
.build-progress { display: flex; flex-direction: column; gap: 18px; }
.build-progress-meter { display: flex; flex-direction: column; align-items: flex-end; }
.build-progress-meter strong { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.build-links { display: flex; gap: 10px; flex-wrap: wrap; }
.build-stages { margin-top: 4px; }
.timeline li.is-done .tl-num { background: var(--success-bg); color: var(--success-strong); }
.timeline li:not(.is-done):not(.is-active) strong { color: var(--muted); }
.timeline-line li.is-done:not(:last-child)::before { background: var(--success-bg); }
.update-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.update-list li { display: flex; gap: 12px; }
.update-list li > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.update-list p { color: var(--text-2); }
.update-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lavender); border: 2px solid var(--ink); margin-top: 6px; flex-shrink: 0; }
.update-list-compact { margin-top: 6px; gap: 12px; }
.update-list-compact li > div { gap: 3px; }

/* --- Developer portal ----------------------------------------------------- */
.pill-dev { background: var(--ink); color: var(--lime); border: 0; }
.topbar-dev { background: #fff; }
.dev-flash { padding-top: 18px; padding-bottom: 0; }
.dev-page .dash-stats { margin-bottom: 20px; }
.dev-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.seg-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg-tabs a:hover { background: var(--surface-soft); color: var(--text); }
.seg-tabs a.is-active { background: var(--ink); color: #fff; }
.dev-search { min-width: 280px; }
.dev-search input { background: #fff; }

.dev-table { display: flex; flex-direction: column; }
.dev-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(170px, 1.4fr) minmax(120px, 1fr) 130px minmax(170px, 1.2fr) 28px; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--border); transition: background .15s; }
.dev-row:first-child { border-top: 0; }
a.dev-row:hover { background: #fff; }
.dev-row-head { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; background: var(--surface-soft); }
.dev-project { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dev-project > span:last-child, .dev-client { display: flex; flex-direction: column; min-width: 0; }
.dev-project strong, .dev-client strong, .dev-client .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-content { display: flex; flex-direction: column; gap: 6px; }
.dev-open { color: var(--muted); display: grid; place-items: center; }
.dev-team-table .dev-row { grid-template-columns: minmax(220px, 2fr) 140px 100px 110px 90px; }
.dev-team-table select { padding: 6px 10px; font-size: 12.5px; }
.dev-team-actions { gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.dev-pw { position: relative; }
.dev-pw > summary { list-style: none; }
.dev-pw > summary::-webkit-details-marker { display: none; }
.dev-pw-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); width: 280px; }

.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.dev-side { position: sticky; top: 84px; }
.dev-project-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.dev-project-head .title { margin: 10px 0 4px; }
.dev-project-head p.muted { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.build-kit { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; background: var(--ink); color: #fff; border-color: var(--ink); }
.build-kit h2 { color: #fff; font-size: 20px; margin: 4px 0 4px; }
.build-kit .eyebrow { color: var(--lime); }
.build-kit .muted { color: #b9b9bd; }
.build-kit-head { display: flex; gap: 16px; align-items: flex-start; }
.build-kit-icon { background: var(--lime); color: var(--ink); }
.build-kit-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.build-kit-stats span { padding: 6px 12px; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 12.5px; color: #d8d8dc; }
.build-kit-stats strong { color: #fff; }
.build-kit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.build-kit .btn-primary { background: var(--lime); color: var(--ink); box-shadow: none; }
.build-kit .btn-primary:hover { background: #d6ea5c; }
.build-kit .note { color: var(--text); }
.prompt-preview > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #d8d8dc; font-weight: 500; }
.prompt-preview > summary:hover { color: #fff; }
.prompt-preview textarea { margin-top: 12px; min-height: 360px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; background: #1f1f1f; color: #ecece8; border-color: #333; }
.dev-anchors { align-self: flex-start; }

.dev-page-card { padding: 0; overflow: hidden; }
.dev-page-card.is-sub { margin-left: 32px; }
.dev-page-card > details > summary { list-style: none; }
.dev-page-card > details > summary::-webkit-details-marker { display: none; }
.dev-page-summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.dev-page-summary:hover { background: #fff; }
.dev-page-summary .review-num { align-self: center; }
.dev-page-title { display: flex; flex-direction: column; min-width: 0; }
.dev-chevron { color: var(--muted); transition: transform .15s; }
details[open] > .dev-page-summary .dev-chevron { transform: rotate(180deg); }
.dev-page-body { padding: 4px 20px 20px 70px; display: flex; flex-direction: column; gap: 14px; }
.dev-prose { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; max-height: 460px; overflow: auto; font-size: 13.5px; }
.dev-prose > :first-child { margin-top: 0; }
.dev-empty { display: flex; align-items: center; gap: 8px; }
.dev-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dev-images figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dev-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dev-images figcaption { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; font-size: 12px; }
.dev-images figcaption span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-images .icon-btn { width: 30px; height: 30px; }
.dev-doc-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--muted); background: var(--surface-soft); }

.dev-template { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.dev-template-preview .tpl-preview, .dev-tpl-preview .tpl-preview { border-radius: 12px; }
.dev-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.dev-kv dt { color: var(--muted); font-size: 12.5px; }
.dev-kv dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.dev-links { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dev-links a { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.dev-brand-files { display: flex; gap: 12px; flex-wrap: wrap; }
.dev-brand-files figure { margin: 0; width: 160px; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dev-brand-thumb { display: grid; place-items: center; height: 100px; padding: 14px; background: repeating-conic-gradient(#f1f1ee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.dev-brand-thumb img { max-height: 72px; width: auto; object-fit: contain; }
.dev-brand-files figcaption { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; font-size: 12.5px; font-weight: 500; }

.dev-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dev-tpl { overflow: hidden; display: flex; flex-direction: column; }
.dev-tpl-preview { padding: 16px 16px 0; }
.dev-tpl-body { padding: 16px 18px 18px; }
.dev-tpl-file { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 10px; background: var(--success-bg); color: var(--success-strong); }
.dev-tpl-file > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dev-tpl-file strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-tpl-file .icon-btn { width: 32px; height: 32px; color: var(--success-strong); }
.dev-tpl-upload label { cursor: pointer; }
.dev-tpl-more > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 2px 0 8px; }
.dev-tpl-more textarea { min-height: 70px; }
label.is-loading { opacity: .6; pointer-events: none; }

@media (max-width: 1100px) {
    .dev-grid { grid-template-columns: 1fr; }
    .dev-side { position: static; }
    .dev-row { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1.4fr) 120px minmax(150px, 1fr) 24px; }
    .dev-row > :nth-child(3) { display: none; }
    .dev-team-table .dev-row > :nth-child(3) { display: block; }
}
@media (max-width: 720px) {
    .dev-row, .dev-team-table .dev-row { grid-template-columns: 1fr; gap: 8px; }
    .dev-row-head { display: none; }
    .dev-open { display: none; }
    .dev-template { grid-template-columns: 1fr; }
    .dev-page-body { padding-left: 20px; }
    .dev-page-card.is-sub { margin-left: 14px; }
    .dev-kv { grid-template-columns: 1fr; gap: 2px 0; }
    .dev-kv dd { margin-bottom: 8px; }
    .dev-search { min-width: 0; width: 100%; }
    .auth-card { padding: 20px 18px; }
    .account .workspace-text { display: none; }
}

.project-build { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); }

/* --- Developer handoff tabs, report, activity ------------------------------ */
.handoff { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.handoff-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.handoff-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; }
.handoff-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; font-weight: 500; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.handoff-tabs button:hover { background: #fff; color: var(--text); }
.handoff-tabs button.is-active { background: var(--ink); color: #fff; }
.handoff-doc { min-height: 380px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; background: #1f1f1f; color: #ecece8; border-color: #333; }
.handoff-doc:focus { background: #1f1f1f; }

.dev-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-bottom: 22px; }
.pipeline { display: flex; flex-direction: column; gap: 12px; }
.pipeline-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-soft); }
.pipeline-bar span { display: block; height: 100%; }
.pipeline-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.pipeline-legend span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pipeline-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.pipeline-legend strong { margin-left: auto; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.activity li { display: flex; gap: 10px; font-size: 12.5px; }
.activity .icon-circle { width: 30px; height: 30px; flex-shrink: 0; }
.activity li > div { display: flex; flex-direction: column; min-width: 0; }
.activity a { font-weight: 600; }
@media (max-width: 1100px) { .dev-dash { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pipeline-legend { grid-template-columns: 1fr 1fr; } }

/* Printable requirements report */
.report-body { background: #e9e9e6; }
.report { max-width: 860px; margin: 24px auto; background: #fff; padding: 44px 52px; border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 12.5px; }
.report-tools { max-width: 860px; margin: 20px auto 0; display: flex; justify-content: flex-end; gap: 8px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.report-head h1 { font-size: 22px; margin: 6px 0 4px; }
.report h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.report th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.report-grid div { display: flex; gap: 10px; }
.report-grid dt { color: var(--muted); min-width: 120px; }
.report-grid dd { margin: 0; font-weight: 500; }
.report ul { margin: 0; padding-left: 18px; }
.report-sign { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
@media print {
    @page { size: A4; margin: 14mm; }
    .report-body { background: #fff; }
    .report-tools, .sitefooter, .toast-stack { display: none !important; }
    .report { box-shadow: none; margin: 0; padding: 0; max-width: none; }
}
.dev-page .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .dev-page .dash-stats { grid-template-columns: 1fr 1fr; } }

/* Show / hide password */
.input-icon .password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.input-icon .password-toggle:hover { background: var(--surface-soft); color: var(--text); }
.input-icon .password-toggle > svg { position: static; transform: none; }
.input-icon:has(.password-toggle) input { padding-right: 44px; }

/* Forgot / reset password */
.auth-title-gap { margin-top: 14px; }
.auth-tabs-sm a { padding: 8px 10px; font-size: 12.5px; }
.reset-local a { display: inline-block; margin-top: 4px; font-weight: 600; }
.field-label .link { font-size: 12px; font-weight: 500; }
