:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --line-soft: #eef2f6;
    --brand: #315efb;
    --brand-2: #6d5dfc;
    --brand-soft: #edf2ff;
    --green: #0f9f6e;
    --green-soft: #eafaf4;
    --amber: #e88c18;
    --amber-soft: #fff6e8;
    --red: #d64545;
    --red-soft: #fff0f0;
    --purple: #7b4dff;
    --sidebar: #111827;
    --sidebar-2: #18212f;
    --shadow: 0 18px 50px rgba(16, 24, 40, .08);
    --shadow-soft: 0 8px 24px rgba(16, 24, 40, .06);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 13px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; fill: currentColor; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    padding: 24px 18px 18px;
    color: #d7deea;
    background:
        radial-gradient(circle at 12% 8%, rgba(75, 93, 255, .23), transparent 26%),
        linear-gradient(180deg, var(--sidebar), #0f1724 70%, #0d1420);
    border-right: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    flex-direction: column;
    z-index: 60;
}
.brand-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
    width: 44px; height: 44px; flex: 0 0 44px;
    display: grid; place-items: center;
    border-radius: 15px;
    color: #fff; font-size: 13px; font-weight: 900; letter-spacing: -.2px;
    background: linear-gradient(135deg, #315efb, #7b4dff);
    box-shadow: 0 10px 24px rgba(49, 94, 251, .28);
}
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { color: #fff; font-size: 15px; letter-spacing: -.2px; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: #8491a5; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.sidebar-close { display: none; border: 0; background: transparent; color: #9aa6b8; font-size: 30px; line-height: 1; cursor: pointer; }
.sidebar-label { margin: 34px 10px 11px; color: #657287; font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.sidebar-label-bottom { margin-top: 28px; }
.sidebar-nav { display: grid; gap: 7px; }
.side-link {
    min-height: 48px; padding: 0 13px;
    display: flex; align-items: center; gap: 12px;
    color: #aeb8c8; text-decoration: none;
    border-radius: 14px;
    font-size: 12px; font-weight: 760;
    transition: .18s ease;
}
.side-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.side-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(49,94,251,.94), rgba(92,81,234,.94));
    box-shadow: 0 12px 24px rgba(41, 72, 185, .25);
}
.side-icon { width: 20px; height: 20px; display: grid; place-items: center; font-size: 19px; }
.side-link em { margin-left: auto; padding: 3px 7px; border-radius: 999px; color: #8c98aa; background: rgba(255,255,255,.05); font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.side-link.soon { opacity: .62; cursor: default; }
.sidebar-quick { display: grid; gap: 8px; }
.quick-link {
    min-height: 42px; padding: 0 12px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    color: #8f9caf; background: rgba(255,255,255,.025);
    font-size: 10px; font-weight: 750;
}
.quick-link span { display: grid; place-items: center; font-size: 17px; }
.sidebar-footer-card {
    margin-top: auto; padding: 13px 14px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #35d29a; box-shadow: 0 0 0 5px rgba(53,210,154,.09); }
.sidebar-footer-card small { display: block; color: #69778b; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.sidebar-footer-card strong { display: block; margin-top: 2px; color: #dbe4ef; font-size: 10px; }
.sidebar-overlay { display: none; }

.app-main { width: calc(100% - 268px); margin-left: 268px; min-height: 100vh; }
.topbar {
    height: 76px; padding: 0 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    background: rgba(255,255,255,.93);
    border-bottom: 1px solid var(--line-soft);
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.page-kicker { color: #98a2b3; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.menu-toggle { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #344054; cursor: pointer; font-size: 20px; }
.active-shop-pill {
    min-width: 176px; padding: 8px 11px;
    display: flex; align-items: center; gap: 9px;
    border: 1px solid #e7ebf2;
    border-radius: 13px;
    background: #fff;
}
.shop-pill-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 17px; }
.shop-pill-copy { min-width: 0; display: flex; flex-direction: column; }
.shop-pill-copy small { color: #98a2b3; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .7px; }
.shop-pill-copy strong { margin-top: 2px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; font-size: 10px; }

.content-wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 48px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.page-title { margin: 7px 0 0; color: #101828; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -1.2px; }
.page-subtitle { margin: 10px 0 0; max-width: 720px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 9px; }

.primary-btn, .ghost-btn, .danger-btn, .soft-btn {
    min-height: 42px; padding: 0 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none; cursor: pointer;
    font-size: 10px; font-weight: 850;
    transition: .18s ease;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(49,94,251,.2); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(49,94,251,.25); }
.primary-btn.compact { min-height: 38px; }
.ghost-btn { color: #475467; background: #fff; border-color: var(--line); }
.ghost-btn:hover { color: var(--brand); border-color: #cfd7ff; background: #f8f9ff; }
.soft-btn { color: var(--brand); background: var(--brand-soft); border-color: #dce4ff; }
.danger-btn { color: var(--red); background: var(--red-soft); border-color: #ffd3d3; }
.icon-btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #667085; cursor: pointer; font-size: 16px; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.card-pad { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.section-note { margin-top: 4px; color: #98a2b3; font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 8px; font-weight: 900; }
.badge-blue { color: var(--brand); background: var(--brand-soft); }
.badge-green { color: var(--green); background: var(--green-soft); }
.badge-amber { color: var(--amber); background: var(--amber-soft); }

.hero-panel {
    min-height: 220px; padding: 30px;
    display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 24px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 24%, rgba(255,255,255,.18), transparent 22%),
        radial-gradient(circle at 73% 90%, rgba(255,255,255,.11), transparent 25%),
        linear-gradient(135deg, #2e58e8 0%, #5547e7 55%, #7659f6 100%);
    box-shadow: 0 20px 40px rgba(68, 75, 210, .18);
    overflow: hidden;
}
.hero-panel h1 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -1.6px; }
.hero-panel p { margin: 0; max-width: 690px; color: rgba(255,255,255,.8); font-size: 11px; line-height: 1.75; }
.hero-kicker { color: rgba(255,255,255,.64); font-size: 9px; font-weight: 900; letter-spacing: 1.35px; }
.hero-action-box { justify-self: end; width: min(300px, 100%); padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.hero-action-box small { display: block; color: rgba(255,255,255,.66); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 850; }
.hero-action-box strong { display: block; margin: 5px 0 14px; font-size: 17px; }
.hero-action-box .ghost-btn { width: 100%; color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.stat-card { min-height: 145px; padding: 18px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -30px; border-radius: 50%; background: var(--bubble, #eef2ff); }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--icon-bg, #edf2ff); color: var(--icon-color, var(--brand)); font-size: 18px; }
.stat-label { margin-top: 15px; color: #98a2b3; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .9px; }
.stat-value { margin-top: 5px; color: #101828; font-size: 23px; font-weight: 900; letter-spacing: -.7px; }
.stat-foot { margin-top: 6px; color: #98a2b3; font-size: 8px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 16px; margin-top: 16px; }
.product-list { display: grid; gap: 9px; }
.product-row { min-height: 76px; padding: 11px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; }
.product-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, #f0f3ff, #f6f7fb); border: 1px solid #edf0f4; }
.product-placeholder { display: grid; place-items: center; color: #9aa8ba; font-size: 17px; }
.product-main { min-width: 0; }
.product-code { color: #98a2b3; font-size: 8px; font-weight: 850; letter-spacing: .3px; }
.product-name { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 820; color: #344054; }
.product-values { display: grid; grid-template-columns: repeat(3, auto); gap: 16px; text-align: right; }
.product-values small { display: block; color: #98a2b3; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.product-values strong { display: block; margin-top: 3px; font-size: 9px; color: #344054; }
.product-values .profit { color: var(--green); }
.empty-state { min-height: 230px; display: grid; place-items: center; text-align: center; color: #98a2b3; }
.empty-state-inner { max-width: 300px; }
.empty-visual { width: 64px; height: 64px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 20px; color: var(--brand); background: var(--brand-soft); font-size: 26px; }
.empty-state strong { display: block; color: #475467; font-size: 12px; }
.empty-state p { margin: 7px 0 0; font-size: 9px; line-height: 1.65; }

.distributor-stack { display: grid; gap: 9px; }
.distributor-card { padding: 12px; border: 1px solid #eee8ff; border-radius: 13px; background: #fbfaff; }
.distributor-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.distributor-card strong { font-size: 10px; color: #3c3458; }
.distributor-card small { display: block; margin-top: 4px; color: #9a92b1; font-size: 8px; }
.distributor-count { padding: 4px 7px; border-radius: 999px; background: #efeaff; color: #7553df; font-size: 7px; font-weight: 900; }
.check-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.check-card { padding: 13px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #ffe3b6; border-radius: 13px; background: #fffaf2; color: #8b621f; font-size: 9px; font-weight: 750; }
.check-card span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #fff1d9; font-size: 15px; }

.store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.store-summary { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 10px; }
.store-summary strong { color: #344054; font-size: 11px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.store-card { padding: 18px; position: relative; overflow: hidden; }
.store-card.active { border-color: #cdd7ff; box-shadow: 0 12px 30px rgba(49,94,251,.1); }
.store-card.active::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.store-icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f1f4ff; color: var(--brand); font-size: 20px; }
.store-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-card h3 { margin: 16px 0 0; font-size: 15px; letter-spacing: -.2px; }
.store-meta { margin-top: 7px; color: #98a2b3; font-size: 9px; }
.store-meta b { color: #475467; }
.store-main-action { margin-top: 18px; width: 100%; }
.store-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.store-card-actions button { width: 100%; }
.locked-btn { opacity: .58; cursor: not-allowed; }

.form-card { padding: 20px; }
.form-grid { display: grid; gap: 14px; }
.form-label { display: block; margin-bottom: 7px; color: #475467; font-size: 9px; font-weight: 850; }
.input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dfe4eb; border-radius: 12px; outline: none; background: #fff; color: #344054; font-size: 10px; transition: .16s ease; }
.input:focus { border-color: #aebdff; box-shadow: 0 0 0 4px rgba(49,94,251,.07); }

.toast-wrap { position: fixed; right: 24px; top: 92px; z-index: 120; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 390px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: .28s ease; }
.toast.hide { opacity: 0; transform: translateY(-8px); }
.toast-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.toast-success .toast-dot { background: var(--green); }
.toast-error .toast-dot { background: var(--red); }
.toast-warning .toast-dot { background: var(--amber); }
.toast-copy { color: #475467; font-size: 9px; font-weight: 760; line-height: 1.45; }

.modal { position: fixed; inset: 0; z-index: 150; padding: 20px; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.5); backdrop-filter: blur(5px); }
.modal.show { display: flex; }
.modal-card { width: min(470px, 100%); padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(15,23,42,.22); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head p { margin: 6px 0 0; color: #98a2b3; font-size: 9px; line-height: 1.55; }
.modal-close { border: 0; background: #f5f7fa; width: 34px; height: 34px; border-radius: 10px; color: #667085; cursor: pointer; font-size: 20px; }
.modal-body { margin-top: 18px; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
body.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .store-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); transition: .22s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.46); z-index: 55; }
    .sidebar-close { display: block; }
    .app-main { width: 100%; margin-left: 0; }
    .menu-toggle { display: grid; }
    .content-wrap { width: min(100% - 28px, 1280px); }
    .topbar { padding: 0 18px; }
    .hero-panel { grid-template-columns: 1fr; }
    .hero-action-box { justify-self: stretch; width: 100%; }
}

@media (max-width: 640px) {
    .topbar { height: 68px; }
    .page-kicker, .ghost-btn { display: none; }
    .active-shop-pill { min-width: 0; max-width: 185px; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .page-actions { width: 100%; }
    .page-actions > * { flex: 1; }
    .stats-grid, .store-grid, .check-strip { grid-template-columns: 1fr; }
    .product-row { grid-template-columns: 48px minmax(0,1fr); }
    .product-values { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); text-align: left; padding-top: 8px; border-top: 1px solid var(--line-soft); }
    .store-card-actions { grid-template-columns: 1fr; }
    .hero-panel { padding: 22px; min-height: 0; }
    .content-wrap { padding-top: 22px; }
    .toast-wrap { left: 14px; right: 14px; top: 80px; }
    .toast { min-width: 0; max-width: none; }
}

/* ========================================================================== 
   STAGE 2 · DISTRIBUTOR HUB
   ========================================================================== */

.quick-link:not(.disabled) {
    color: #dbe5f5;
    text-decoration: none;
    cursor: pointer;
}

.quick-link:not(.disabled):hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.distributor-page-head {
    align-items: flex-end;
}

.distributor-page-head .page-head-copy {
    max-width: 820px;
}

.distributor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.distributor-stat-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.distributor-stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 900;
}

.distributor-stat-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.distributor-stat-icon.blue { color:#315efb; background:#edf2ff; }
.distributor-stat-icon.green { color:#0d9c6b; background:#eafaf4; }
.distributor-stat-icon.purple { color:#7549ea; background:#f1edff; }
.distributor-stat-icon.orange { color:#dc7d0d; background:#fff3e6; }

.distributor-stat-card small {
    display: block;
    margin-bottom: 5px;
    color: var(--muted, #7b8495);
    font-size: 11px;
    font-weight: 750;
}

.distributor-stat-card strong {
    display: block;
    color: var(--ink, #171c27);
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.distributor-section-head {
    margin-bottom: 16px;
}

.distributor-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 210px auto auto;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f7f9fc;
    border: 1px solid #e8edf5;
    border-radius: 16px;
}

.distributor-search-wrap {
    position: relative;
}

.distributor-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8a94a6;
    pointer-events: none;
}

.distributor-search-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.distributor-search-input {
    padding-left: 43px !important;
}

.distributor-status-filter,
.distributor-filter-btn,
.distributor-reset-btn {
    min-height: 46px;
}

.distributor-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.distributor-directory-card {
    position: relative;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.distributor-directory-card:hover {
    transform: translateY(-1px);
    border-color: #cfd9ea;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .075);
}

.distributor-directory-card.is-inactive {
    opacity: .72;
    background: #fafbfc;
}

.distributor-directory-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: #2f57d4;
    background: linear-gradient(145deg, #edf2ff, #e3eaff);
    border: 1px solid #d8e2ff;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 950;
}

.supplier-heading {
    min-width: 0;
    flex: 1;
}

.supplier-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.supplier-title-line h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #171c27;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-category {
    margin-top: 4px;
    color: #7b8495;
    font-size: 10px;
    font-weight: 700;
}

.badge-gray {
    color: #596273;
    background: #eef1f5;
    border: 1px solid #dfe5ed;
}

.supplier-usage-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.supplier-usage-box > div {
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #e8edf5;
    border-radius: 12px;
}

.supplier-usage-box small {
    display: block;
    margin-bottom: 3px;
    color: #8b94a4;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.supplier-usage-box strong {
    color: #242b38;
    font-size: 12px;
    font-weight: 900;
}

.supplier-shop-list {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    padding: 10px 12px;
    color: #4f5b6e;
    background: #fbfcfe;
    border: 1px solid #edf0f5;
    border-radius: 11px;
}

.supplier-shop-list.muted {
    color: #929bad;
}

.supplier-shop-list span {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #5878d8;
}

.supplier-shop-list svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.supplier-shop-list p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 750;
}

.supplier-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.supplier-contact-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}

.supplier-contact-wide {
    grid-column: 1 / -1;
}

.supplier-contact-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    color: #53657d;
    background: #f3f6fa;
    border-radius: 8px;
}

.supplier-contact-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.supplier-contact-item div {
    min-width: 0;
}

.supplier-contact-item small {
    display: block;
    margin-bottom: 2px;
    color: #939cab;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.supplier-contact-item strong {
    display: block;
    overflow: hidden;
    color: #384254;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 800;
    text-overflow: ellipsis;
}

.supplier-note {
    margin-top: 10px;
    padding: 10px 12px;
    color: #5e4c2d;
    background: #fffbf3;
    border: 1px solid #f5ead3;
    border-radius: 11px;
}

.supplier-note span {
    display: block;
    margin-bottom: 3px;
    color: #9a7a40;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.supplier-note p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.supplier-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 13px;
}

.supplier-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.supplier-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.supplier-action.wa {
    color: #057a55;
    background: #eafaf4;
    border: 1px solid #ccefe2;
}

.supplier-action.store {
    color: #bc5a08;
    background: #fff5e9;
    border: 1px solid #fde3c2;
}

.supplier-action.disabled {
    color: #9aa3b1;
    background: #f5f7fa;
    border: 1px solid #e8ecf2;
    cursor: default;
}

.supplier-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f5;
}

.supplier-footer-actions .ghost-btn,
.supplier-footer-actions .danger-btn {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    gap: 5px;
    font-size: 9px;
}

.supplier-footer-actions svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.inline-form {
    display: contents;
}

.warning-btn {
    color: #96631c !important;
    background: #fffaf0 !important;
    border-color: #f4dfb8 !important;
}

.activate-btn {
    color: #087c58 !important;
    background: #edfaf5 !important;
    border-color: #cdeee1 !important;
}

.modal-card-wide {
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 34px);
    overflow: auto;
}

.modal-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: #526dd1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.modal-kicker.danger {
    color: #c54242;
}

.distributor-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    min-width: 0;
}

.form-field-span-2 {
    grid-column: 1 / -1;
}

.form-label b {
    color: #e55353;
}

.textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    padding: 12px 13px;
    color: #242b38;
    background: #fff;
    border: 1px solid #dbe2ec;
    border-radius: 11px;
    outline: none;
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.textarea:focus {
    border-color: #94aaf4;
    box-shadow: 0 0 0 3px rgba(72, 100, 214, .09);
}

.distributor-empty-state {
    min-height: 320px;
}

.distributor-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.distributor-card-link:hover {
    transform: translateY(-1px);
    border-color: #cad6f0;
}

@media (max-width: 1100px) {
    .distributor-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .distributor-toolbar {
        grid-template-columns: minmax(240px, 1fr) 190px auto;
    }

    .distributor-reset-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .distributor-directory-grid {
        grid-template-columns: 1fr;
    }

    .distributor-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .distributor-search-wrap {
        grid-column: 1 / -1;
    }

    .distributor-reset-btn {
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 620px) {
    .distributor-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .distributor-stat-card {
        min-height: 92px;
        gap: 10px;
        padding: 13px;
    }

    .distributor-stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .distributor-stat-card strong {
        font-size: 20px;
    }

    .distributor-toolbar {
        grid-template-columns: 1fr;
    }

    .distributor-search-wrap,
    .distributor-reset-btn {
        grid-column: auto;
    }

    .distributor-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-span-2 {
        grid-column: auto;
    }

    .supplier-contact-list {
        grid-template-columns: 1fr;
    }

    .supplier-contact-wide {
        grid-column: auto;
    }

    .supplier-footer-actions {
        grid-template-columns: 1fr;
    }

    .inline-form {
        display: block;
    }

    .supplier-primary-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== 
   STAGE 3 · PRODUCT WORKSPACE
   ========================================================================== */

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 7px 0 7px;
    color: #151a24;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.04;
    letter-spacing: -1.2px;
}

.page-heading p {
    max-width: 720px;
    margin: 0;
    color: #7c8798;
    font-size: 11px;
    line-height: 1.75;
}

.heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.heading-actions svg,
.primary-btn svg,
.ghost-btn svg,
.danger-btn svg,
.orange-link-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.primary-btn.light {
    color: #2851dd;
    background: #fff;
    box-shadow: none;
}

.ghost-btn.light {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.28);
}

.dashboard-hero-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-row-link {
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.product-row-link:hover {
    transform: translateY(-1px);
    border-color: #cad5f3;
    box-shadow: 0 10px 24px rgba(40,61,110,.07);
}

.select {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 13px;
    color: #344054;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    outline: none;
    font-size: 10px;
    font-weight: 700;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.select:focus {
    border-color: #aebdff;
    box-shadow: 0 0 0 4px rgba(49,94,251,.07);
}

.input-lg {
    height: 50px;
    font-size: 12px;
    font-weight: 700;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.5;
}

.form-stack {
    display: grid;
    gap: 17px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.product-description {
    min-height: 210px;
}

.product-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(330px, .82fr);
    align-items: start;
    gap: 18px;
}

.product-editor-main,
.product-editor-side,
.detail-content-stack {
    display: grid;
    gap: 16px;
}

.product-editor-side {
    position: sticky;
    top: 84px;
}

.editor-card,
.pricing-card,
.fee-card,
.detail-info-card,
.detail-gallery-card,
.photo-manager-upload-card,
.photo-manager-guide,
.photo-library-card {
    padding: 22px;
}

.editor-section-head,
.pricing-head,
.detail-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.editor-section-head > div:nth-child(2),
.pricing-head > div,
.detail-section-title > div {
    min-width: 0;
    flex: 1;
}

.editor-section-head h2,
.pricing-head h2,
.detail-section-title h2 {
    margin: 0;
    color: #202633;
    font-size: 15px;
    line-height: 1.25;
}

.editor-section-head p {
    margin: 4px 0 0;
    color: #98a2b3;
    font-size: 9px;
    line-height: 1.5;
}

.editor-step {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    color: #315efb;
    background: #edf2ff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 950;
}

.locked-field {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    color: #40506a;
    background: #f8faff;
    border: 1px solid #e4eafa;
    border-radius: 13px;
}

.locked-field > span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #315efb;
    background: #eaf0ff;
    border-radius: 10px;
}

.locked-field svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.locked-field strong {
    font-size: 11px;
}

.locked-field small {
    color: #98a2b3;
    font-size: 8px;
}

.upload-zone {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px;
    color: #59667b;
    background: linear-gradient(180deg,#fbfcff,#f7f9ff);
    border: 1.5px dashed #bfcdf7;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    transition: border-color .16s ease, background .16s ease;
}

.upload-zone:hover {
    border-color: #7f9bfa;
    background: #f4f7ff;
}

.upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-zone strong {
    color: #30394a;
    font-size: 12px;
}

.upload-zone p {
    margin: 0;
    color: #98a2b3;
    font-size: 9px;
}

.upload-zone .primary-btn {
    pointer-events: none;
    margin-top: 5px;
}

.upload-zone-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #315efb;
    background: #eaf0ff;
    border-radius: 15px;
}

.upload-zone-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.photo-count-badge {
    margin-left: auto;
    padding: 7px 10px;
    color: #526dd1;
    background: #f0f4ff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1 / 1.08;
    padding: 0;
    overflow: hidden;
    background: #f4f6fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-preview-item.is-cover {
    border-color: #315efb;
    box-shadow: 0 0 0 3px rgba(49,94,251,.09);
}

.photo-preview-item span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    color: #fff;
    background: rgba(28,42,83,.83);
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
}

.pricing-card {
    color: #24304b;
    background: linear-gradient(180deg,#f1f6ff,#edf4ff);
    border-color: #cfe0ff;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #526dd1;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .12em;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 5px 8px;
    color: #087c58;
    background: #e8f8f1;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.live-dot i {
    width: 6px;
    height: 6px;
    background: #13a878;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(19,168,120,.12);
}

.money-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.money-input-wrap > span {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
}

.money-input {
    text-align: right;
    font-size: 13px;
    font-weight: 900;
}

.margin-control {
    margin-top: 18px;
    padding: 17px 0;
    border-top: 1px solid #d5e3fb;
    border-bottom: 1px solid #d5e3fb;
}

.margin-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #46536a;
    font-size: 9px;
    font-weight: 850;
}

.percent-input-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.percent-input-wrap input {
    width: 64px;
    height: 34px;
    padding: 0 9px;
    color: #315efb;
    background: #fff;
    border: 1px solid #aac0ff;
    border-radius: 9px;
    outline: none;
    text-align: right;
    font-size: 11px;
    font-weight: 900;
}

.margin-control input[type=range] {
    width: 100%;
    accent-color: #315efb;
}

.range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    color: #9ba7ba;
    font-size: 7px;
}

.price-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 17px;
}

.price-result {
    min-width: 0;
    padding: 13px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(169,190,239,.55);
    border-radius: 12px;
}

.price-result small {
    display: block;
    margin-bottom: 5px;
    color: #7a879b;
    font-size: 8px;
    font-weight: 800;
}

.price-result strong {
    color: #202a42;
    font-size: 14px;
}

.price-result.gross strong { color: #7b4dff; }
.price-result.selling strong { color: #087c58; }

.fee-card {
    background: linear-gradient(180deg,#fffaf4,#fff8ef);
    border-color: #f5d7b3;
}

.fee-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fee-card-title > div {
    display: grid;
    gap: 3px;
}

.fee-card-title strong {
    color: #9b5416;
    font-size: 12px;
}

.fee-card-title small {
    color: #aa8060;
    font-size: 8px;
}

.fee-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #f36f21;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 950;
}

.fee-options {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.check-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 9px 11px;
    background: rgba(255,255,255,.66);
    border: 1px solid #f1ddc6;
    border-radius: 11px;
    cursor: pointer;
}

.check-option input {
    position: absolute;
    opacity: 0;
}

.fake-check {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d3b89b;
    border-radius: 5px;
}

.check-option input:checked + .fake-check {
    background: #f36f21;
    border-color: #f36f21;
}

.check-option input:checked + .fake-check::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.check-option > span:last-child {
    display: grid;
    gap: 2px;
}

.check-option strong {
    color: #5f4531;
    font-size: 9px;
}

.check-option small {
    color: #d25b40;
    font-size: 8px;
}

.fee-summary {
    display: grid;
    gap: 0;
    margin-top: 14px;
    padding-top: 7px;
    border-top: 1px dashed #e9c8a4;
}

.fee-summary > div {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6e5a49;
    border-bottom: 1px solid #efdcc8;
    font-size: 9px;
}

.fee-summary > div:last-child {
    border-bottom: 0;
}

.fee-summary strong {
    color: #3d342c;
    font-size: 10px;
}

.fee-summary .danger { color: #d94d4d; }
.fee-summary .net-profit-row { min-height: 48px; color: #2f3b4d; font-weight: 900; }
.fee-summary .net-profit-row strong { color: #087c58; font-size: 15px; }
.fee-summary .net-profit-row.is-negative strong { color: #d84d4d; }

.sticky-save-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    background: #171e2d;
    border-radius: 15px;
    box-shadow: 0 18px 36px rgba(18,27,45,.16);
}

.sticky-save-card > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.sticky-save-card small { color: #9aa6b8; font-size: 8px; }
.sticky-save-card strong { color: #fff; font-size: 9px; }
.product-save-btn { flex: 0 0 auto; }

.photo-compact-card { padding-bottom: 18px; }
.mini-photo-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.mini-photo-item { position: relative; aspect-ratio: 1/1; overflow: hidden; border: 1px solid #e2e7ef; border-radius: 10px; }
.mini-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.mini-photo-item.cover { border: 2px solid #315efb; }
.mini-photo-item span { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; color:#fff; background:#315efb; border-radius:5px; font-size:6px; font-weight:900; }
.no-photo-mini { grid-column: 1/-1; min-height: 88px; display:flex; align-items:center; justify-content:center; gap:7px; color:#98a2b3; background:#f8fafc; border:1px dashed #d8dee8; border-radius:12px; font-size:9px; }
.no-photo-mini svg { width:18px; height:18px; fill:currentColor; }

.catalog-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 14px;
}

.catalog-stat {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.catalog-stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 950;
}

.catalog-stat-icon svg { width:19px; height:19px; fill:currentColor; }
.catalog-stat-icon.blue { color:#315efb; background:#edf2ff; }
.catalog-stat-icon.purple { color:#7b4dff; background:#f1edff; }
.catalog-stat-icon.green { color:#087c58; background:#eafaf4; }
.catalog-stat-icon.orange { color:#d57d1c; background:#fff3e6; }
.catalog-stat small { display:block; margin-bottom:4px; color:#98a2b3; font-size:8px; font-weight:800; }
.catalog-stat strong { color:#252c39; font-size:17px; }

.catalog-toolbar-card { padding: 14px; margin-bottom: 16px; }
.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) 150px 170px 175px 120px auto auto;
    gap: 8px;
    align-items: center;
}

.catalog-search {
    height: 44px;
    display: grid;
    grid-template-columns: 18px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
}

.catalog-search svg { width:16px; height:16px; fill:#7f8a9c; }
.catalog-search input { width:100%; border:0; outline:0; color:#344054; background:transparent; font-size:10px; }
.compact-select { min-width: 0; }
.catalog-toolbar-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:11px; padding:10px 4px 0; color:#8b96a7; border-top:1px solid #eef1f5; font-size:8px; }
.catalog-toolbar-foot a { color:#526dd1; font-weight:850; text-decoration:none; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-card-v2 {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 17px;
    box-shadow: 0 9px 24px rgba(32,45,73,.055);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.product-card-v2:hover {
    transform: translateY(-2px);
    border-color: #cad6f4;
    box-shadow: 0 15px 32px rgba(32,45,73,.09);
}

.product-card-v2.archived { opacity: .74; }
.product-card-media { position:relative; display:block; aspect-ratio: 1 / 1.04; overflow:hidden; background:#f3f5f8; text-decoration:none; }
.product-card-media img { width:100%; height:100%; display:block; object-fit:cover; transition: transform .25s ease; }
.product-card-v2:hover .product-card-media img { transform: scale(1.015); }
.product-card-placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#a5aebc; background:linear-gradient(145deg,#f5f7fa,#eef1f5); }
.product-card-placeholder svg { width:34px; height:34px; fill:currentColor; }
.product-card-placeholder span { font-size:8px; font-weight:800; }
.product-code-chip { position:absolute; left:10px; top:10px; z-index:2; padding:6px 8px; color:#fff; background:rgba(25,30,42,.83); border-radius:7px; font-size:7px; font-weight:950; letter-spacing:.04em; }
.product-code-chip.static { position:static; display:inline-flex; }
.photo-count-chip { position:absolute; right:10px; top:10px; display:inline-flex; align-items:center; gap:4px; padding:5px 7px; color:#fff; background:rgba(25,30,42,.6); border-radius:7px; font-size:7px; font-weight:900; }
.photo-count-chip svg { width:10px; height:10px; fill:currentColor; }
.archive-chip { position:absolute; left:10px; bottom:10px; padding:5px 8px; color:#7b4dff; background:#f2edff; border-radius:999px; font-size:7px; font-weight:900; }
.product-card-body { padding: 14px; }
.product-card-title { min-height:34px; display:-webkit-box; overflow:hidden; color:#222936; text-decoration:none; font-size:11px; font-weight:900; line-height:1.45; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.product-money-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:13px; }
.product-money-grid > div { min-width:0; padding:9px 8px; background:#f8fafc; border:1px solid #edf0f4; border-radius:9px; }
.product-money-grid small { display:block; margin-bottom:3px; color:#98a2b3; font-size:6.5px; font-weight:850; text-transform:uppercase; }
.product-money-grid strong { display:block; overflow:hidden; color:#344054; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.blue-text { color:#315efb !important; }
.green-text { color:#087c58 !important; }
.purple-text { color:#7b4dff !important; }
.red-text { color:#d84d4d !important; }
.product-supplier-line { min-height:35px; display:flex; align-items:center; gap:7px; margin-top:8px; padding:8px 9px; color:#7250c7; background:#f8f4ff; border:1px solid #ebe0ff; border-radius:9px; font-size:8px; font-weight:850; }
.product-supplier-line.missing { color:#936821; background:#fffaf0; border-color:#f5e4bf; }
.product-supplier-line svg { width:13px; height:13px; fill:currentColor; flex:0 0 13px; }
.product-supplier-line span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-card-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:9px; }
.product-card-actions a { min-height:34px; display:flex; align-items:center; justify-content:center; gap:5px; color:#50627f; background:#f8fafc; border:1px solid #e4e9f0; border-radius:9px; text-decoration:none; font-size:8px; font-weight:850; }
.product-card-actions a:nth-child(2) { color:#087c58; background:#effaf6; border-color:#d0efe3; }
.product-card-actions a:nth-child(3) { color:#7b4dff; background:#f7f3ff; border-color:#e7ddff; }
.product-card-actions svg { width:12px; height:12px; fill:currentColor; }
.product-card-secondary-actions { display:grid; grid-template-columns:minmax(0,1fr) 36px 36px 36px; gap:6px; margin-top:7px; }
.product-card-secondary-actions > button,
.product-card-secondary-actions form button { width:100%; height:34px; display:flex; align-items:center; justify-content:center; gap:5px; color:#526dd1; background:#f6f8ff; border:1px solid #dfe5fb; border-radius:9px; cursor:pointer; font-size:8px; font-weight:850; }
.product-card-secondary-actions svg { width:12px; height:12px; fill:currentColor; }
.inline-action-form { min-width:0; margin:0; }
.product-card-secondary-actions .danger-icon-btn { color:#c34c4c; background:#fff5f5; border-color:#f3d9d9; }
.product-empty-card { padding:22px; }
.product-empty-state { min-height:330px; }

.pagination-bar { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:10px; margin-top:18px; padding:12px; background:#fff; border:1px solid var(--line-soft); border-radius:14px; box-shadow:var(--shadow-soft); }
.page-btn, .page-number { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:0 11px; color:#52627c; background:#f8fafc; border:1px solid #e3e8ef; border-radius:9px; text-decoration:none; font-size:8px; font-weight:850; }
.page-btn.disabled { pointer-events:none; opacity:.45; }
.page-number-group { display:flex; justify-content:center; gap:5px; }
.page-number { width:36px; padding:0; }
.page-number.active { color:#fff; background:#315efb; border-color:#315efb; }
.page-summary { color:#8a95a6; font-size:8px; font-weight:800; }

.product-detail-grid { display:grid; grid-template-columns:minmax(330px,.85fr) minmax(0,1.15fr); gap:18px; align-items:start; }
.detail-gallery-card { position:sticky; top:84px; }
.detail-cover-wrap { position:relative; overflow:hidden; aspect-ratio:1/1.04; background:#f3f5f8; border-radius:14px; }
.detail-cover { width:100%; height:100%; display:block; object-fit:cover; }
.detail-cover-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#a5aebc; }
.detail-cover-placeholder svg { width:46px; height:46px; fill:currentColor; }
.detail-cover-placeholder span { font-size:9px; font-weight:800; }
.detail-code-chip { position:absolute; left:12px; top:12px; padding:7px 9px; color:#fff; background:rgba(23,30,43,.84); border-radius:8px; font-size:8px; font-weight:950; }
.detail-status-chip { position:absolute; right:12px; top:12px; padding:7px 9px; color:#087c58; background:#eafaf4; border-radius:999px; font-size:7px; font-weight:950; }
.detail-status-chip.archived { color:#7b4dff; background:#f1edff; }
.detail-thumb-strip { display:grid; grid-template-columns:repeat(6,1fr); gap:7px; margin-top:9px; }
.detail-thumb { aspect-ratio:1/1; padding:0; overflow:hidden; background:#f4f5f8; border:2px solid transparent; border-radius:9px; cursor:pointer; }
.detail-thumb.active { border-color:#315efb; }
.detail-thumb img { width:100%; height:100%; object-fit:cover; }
.detail-quick-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:12px; }
.orange-link-btn { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:8px 13px; color:#be641d; background:#fff7ed; border:1px solid #f4d4b1; border-radius:10px; text-decoration:none; font-size:9px; font-weight:850; }
.orange-link-btn.compact { min-height:34px; padding:6px 9px; font-size:8px; }
.detail-price-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.detail-price-grid > div { padding:13px; background:#f8fafc; border:1px solid #e9edf2; border-radius:11px; }
.detail-price-grid small { display:block; margin-bottom:5px; color:#98a2b3; font-size:7px; font-weight:850; text-transform:uppercase; }
.detail-price-grid strong { color:#273044; font-size:12px; }
.fee-breakdown-line { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.fee-breakdown-line span, .fee-breakdown-line strong { padding:6px 8px; background:#fff8ef; border:1px solid #f2dec5; border-radius:999px; color:#916235; font-size:7px; font-weight:800; }
.fee-breakdown-line strong { color:#c24e4e; background:#fff5f5; border-color:#f1d8d8; }
.detail-distributor-card { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:11px; padding:13px; background:#faf7ff; border:1px solid #e8ddff; border-radius:13px; }
.supplier-avatar { width:44px; height:44px; display:grid; place-items:center; color:#7042e6; background:#eee7ff; border-radius:12px; font-size:14px; font-weight:950; }
.supplier-avatar.small { width:36px; height:36px; font-size:11px; }
.detail-distributor-main { min-width:0; display:grid; gap:3px; }
.detail-distributor-main strong { color:#32384a; font-size:11px; }
.detail-distributor-main small { color:#8d76bf; font-size:8px; }
.detail-contact-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; color:#7f8999; font-size:7px; }
.missing-distributor-box { display:grid; grid-template-columns:35px minmax(0,1fr) auto; align-items:center; gap:10px; padding:13px; color:#895f23; background:#fffaf0; border:1px solid #f4e1bd; border-radius:12px; }
.missing-distributor-box > svg { width:22px; height:22px; fill:currentColor; }
.missing-distributor-box > div { display:grid; gap:3px; }
.missing-distributor-box strong { font-size:10px; }
.missing-distributor-box span { color:#a0845f; font-size:8px; }
.product-description-view { min-height:130px; color:#586579; font-size:10px; line-height:1.8; white-space:normal; }
.detail-bottom-actions { display:flex; gap:8px; margin-top:16px; }

.photo-manager-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr); gap:16px; align-items:start; }
.photo-manager-guide { position:sticky; top:84px; }
.photo-manager-guide h2 { margin:5px 0 9px; color:#2c3443; font-size:17px; }
.photo-manager-guide p, .photo-manager-guide li { color:#798698; font-size:9px; line-height:1.7; }
.photo-manager-guide ul { margin:12px 0 0; padding-left:18px; }
.manager-upload-zone { min-height:165px; }
.photo-upload-submit { margin-top:12px; }
.limit-reached-box { min-height:120px; display:flex; align-items:center; gap:12px; padding:18px; color:#087c58; background:#effaf6; border:1px solid #d5eee5; border-radius:13px; }
.limit-reached-box > svg { width:28px; height:28px; fill:currentColor; }
.limit-reached-box > div { display:grid; gap:3px; }
.limit-reached-box strong { font-size:11px; }
.limit-reached-box span { color:#6e9387; font-size:8px; }
.photo-library-card { margin-top:16px; }
.photo-library-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.photo-library-item { overflow:hidden; background:#fff; border:1px solid #e1e6ee; border-radius:14px; }
.photo-library-item.is-cover { border-color:#9fb1fa; box-shadow:0 0 0 3px rgba(49,94,251,.07); }
.photo-library-media { position:relative; aspect-ratio:1/1.06; overflow:hidden; background:#f3f5f8; }
.photo-library-media img { width:100%; height:100%; object-fit:cover; }
.photo-order { position:absolute; left:8px; top:8px; padding:4px 6px; color:#fff; background:rgba(25,30,42,.68); border-radius:6px; font-size:7px; font-weight:850; }
.cover-label { position:absolute; right:8px; bottom:8px; padding:5px 7px; color:#fff; background:#315efb; border-radius:7px; font-size:7px; font-weight:950; }
.photo-library-actions { display:grid; grid-template-columns:1fr auto; gap:6px; padding:9px; }
.photo-library-actions form { margin:0; }
.photo-library-actions button { width:100%; }
.cover-current { min-height:34px; display:flex; align-items:center; padding:0 9px; color:#315efb; background:#edf2ff; border-radius:9px; font-size:8px; font-weight:850; }

.code-search-hero { padding:18px; margin-bottom:16px; }
.code-search-form { display:grid; gap:10px; }
.code-search-input-wrap { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:58px; padding:7px 8px 7px 15px; background:#f8faff; border:1px solid #dfe6f5; border-radius:15px; }
.code-search-input-wrap > span svg { width:18px; height:18px; fill:#6e7d98; }
.code-search-input-wrap input { width:100%; height:42px; border:0; outline:0; color:#263146; background:transparent; font-size:12px; font-weight:750; }
.code-search-hint { display:flex; justify-content:space-between; gap:10px; padding:0 5px; color:#97a1b1; font-size:8px; }
.code-search-empty { padding:20px; }
.order-result-stack { display:grid; gap:12px; }
.order-product-card { display:grid; grid-template-columns:180px minmax(0,1fr); gap:16px; padding:14px; }
.order-product-media { overflow:hidden; aspect-ratio:1/1; background:#f2f4f7; border-radius:12px; }
.order-product-media img { width:100%; height:100%; object-fit:cover; }
.order-product-content { min-width:0; }
.order-product-topline { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.order-product-content h2 { margin:10px 0; color:#252c39; font-size:14px; line-height:1.4; }
.order-money-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.order-money-grid > div { padding:9px 10px; background:#f8fafc; border:1px solid #edf0f4; border-radius:9px; }
.order-money-grid small { display:block; margin-bottom:3px; color:#98a2b3; font-size:7px; font-weight:850; }
.order-money-grid strong { font-size:10px; }
.order-supplier-box { display:grid; grid-template-columns:36px minmax(0,1fr); align-items:center; gap:9px; margin-top:9px; padding:9px; background:#f8f4ff; border:1px solid #e8deff; border-radius:10px; }
.order-supplier-box.missing { background:#fffaf0; border-color:#f5e4bf; }
.order-supplier-box > div { display:grid; gap:2px; }
.order-supplier-box small { color:#9a87bf; font-size:7px; }
.order-supplier-box strong { color:#493c65; font-size:9px; }
.order-supplier-box span { color:#8a94a4; font-size:7px; }
.order-action-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 99999;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 13px;
    color: #fff;
    background: #171e2d;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15,23,42,.2);
    opacity: 0;
    transition: .18s ease;
    font-size: 9px;
    font-weight: 850;
}
.copy-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 1180px) {
    .catalog-toolbar { grid-template-columns: minmax(230px,1.5fr) repeat(3,minmax(130px,1fr)); }
    .catalog-toolbar .compact-select,
    .catalog-toolbar .primary-btn,
    .catalog-toolbar .ghost-btn { grid-row:2; }
    .catalog-toolbar .primary-btn { justify-self:start; }
    .catalog-toolbar .ghost-btn { justify-self:start; }
}

@media (max-width: 1020px) {
    .product-editor { grid-template-columns:1fr; }
    .product-editor-side { position:static; grid-template-columns:1fr 1fr; }
    .sticky-save-card { grid-column:1/-1; }
    .catalog-stats-grid { grid-template-columns:repeat(2,1fr); }
    .catalog-grid { grid-template-columns:repeat(2,1fr); }
    .product-detail-grid { grid-template-columns:1fr; }
    .detail-gallery-card { position:static; }
    .photo-manager-grid { grid-template-columns:1fr; }
    .photo-manager-guide { position:static; }
}

@media (max-width: 760px) {
    .page-heading { align-items:flex-start; flex-direction:column; }
    .heading-actions { width:100%; justify-content:flex-start; }
    .product-editor-side { grid-template-columns:1fr; }
    .sticky-save-card { grid-column:auto; flex-direction:column; align-items:stretch; }
    .product-save-btn { width:100%; }
    .form-grid-2 { grid-template-columns:1fr; }
    .photo-preview-grid { grid-template-columns:repeat(3,1fr); }
    .catalog-toolbar { grid-template-columns:1fr 1fr; }
    .catalog-search { grid-column:1/-1; }
    .catalog-toolbar .compact-select,
    .catalog-toolbar .primary-btn,
    .catalog-toolbar .ghost-btn { grid-row:auto; }
    .catalog-toolbar-foot { align-items:flex-start; flex-direction:column; }
    .detail-price-grid { grid-template-columns:1fr 1fr; }
    .photo-library-grid { grid-template-columns:repeat(2,1fr); }
    .pagination-bar { grid-template-columns:1fr 1fr; }
    .page-number-group { order:3; grid-column:1/-1; }
    .page-summary { text-align:center; }
    .order-product-card { grid-template-columns:120px minmax(0,1fr); }
}

@media (max-width: 560px) {
    .catalog-stats-grid { grid-template-columns:1fr 1fr; gap:8px; }
    .catalog-stat { min-height:78px; padding:11px; gap:8px; }
    .catalog-stat-icon { width:34px; height:34px; flex-basis:34px; }
    .catalog-stat strong { font-size:13px; }
    .catalog-grid { grid-template-columns:1fr; }
    .catalog-toolbar { grid-template-columns:1fr; }
    .catalog-search { grid-column:auto; }
    .photo-preview-grid { grid-template-columns:repeat(2,1fr); }
    .detail-thumb-strip { grid-template-columns:repeat(5,1fr); }
    .detail-distributor-card { grid-template-columns:40px minmax(0,1fr); }
    .detail-distributor-card .orange-link-btn { grid-column:1/-1; }
    .missing-distributor-box { grid-template-columns:32px minmax(0,1fr); }
    .missing-distributor-box .ghost-btn { grid-column:1/-1; }
    .photo-library-grid { grid-template-columns:1fr; }
    .code-search-input-wrap { grid-template-columns:20px minmax(0,1fr); }
    .code-search-input-wrap .primary-btn { grid-column:1/-1; }
    .code-search-hint { flex-direction:column; }
    .order-product-card { grid-template-columns:1fr; }
    .order-product-media { max-height:260px; }
    .product-money-grid, .order-money-grid { grid-template-columns:repeat(3,1fr); }
}

/* ==========================================================
   STAGE 3.1 · MANUAL PRICING + AI PRODUCT OPTIMIZER
   ========================================================== */
.pricing-edit-note {
    margin-top: 14px;
    padding: 9px 10px;
    color: #5e6b82;
    background: rgba(255,255,255,.58);
    border: 1px dashed #bfd0ef;
    border-radius: 10px;
    font-size: 8px;
    line-height: 1.55;
}

.editable-prices .price-result {
    cursor: text;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.editable-prices .price-result:focus-within {
    background: #fff;
    border-color: #7fa0ff;
    box-shadow: 0 0 0 3px rgba(49,94,251,.08);
}

.editable-money {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 5px;
}

.editable-money > span {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 900;
}

.editable-money input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    outline: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 950;
}

.price-result.gross .editable-money input { color: #7b4dff; }
.price-result.selling .editable-money input { color: #087c58; }

.pricing-live-warning {
    margin-top: 12px;
    padding: 9px 10px;
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 850;
    line-height: 1.45;
}

.ai-product-card {
    margin-top: 10px;
    padding: 13px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px 14px;
    background: linear-gradient(135deg,#f7f4ff,#eef4ff);
    border: 1px solid #ded5ff;
    border-radius: 13px;
}

.ai-product-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-spark,
.ai-orb {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,#6d45f5,#315efb);
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(86,70,220,.18);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
}

.ai-product-copy > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ai-product-copy strong {
    color: #342a68;
    font-size: 10px;
}

.ai-product-copy small {
    color: #786f9b;
    font-size: 8px;
    line-height: 1.5;
}

.ai-product-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ai-btn {
    min-height: 34px;
    padding: 8px 11px;
    color: #fff;
    background: linear-gradient(135deg,#7650f6,#315efb);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 8px 16px rgba(80,69,220,.16);
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}

.ai-btn:hover { filter: brightness(.97); }
.ai-btn:disabled { opacity: .58; cursor: wait; }

.ai-product-status {
    grid-column: 1 / -1;
    padding-top: 8px;
    color: #7c739c;
    border-top: 1px solid rgba(135,118,201,.16);
    font-size: 8px;
    line-height: 1.5;
}
.ai-product-status.loading { color: #315efb; }
.ai-product-status.success { color: #087c58; }
.ai-product-status.error { color: #b42318; }

.seo-keyword-input {
    min-height: 72px !important;
}

.keyword-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.keyword-chip-list span {
    padding: 7px 9px;
    color: #5d3fc0;
    background: #f5f1ff;
    border: 1px solid #e3d8ff;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
}

.empty-keyword-box {
    padding: 13px;
    color: #7b8495;
    background: #f8fafc;
    border: 1px dashed #d8dee9;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.55;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
    gap: 16px;
    align-items: start;
}

.settings-card,
.ai-guide-card {
    padding: 20px;
}

.settings-card-head {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.settings-card-head > div:nth-child(2) { min-width: 0; }
.settings-card-head h2,
.ai-guide-card h2 {
    margin: 0;
    color: #26314a;
    font-size: 16px;
}
.settings-card-head p {
    margin: 5px 0 0;
    color: #8791a3;
    font-size: 8px;
    line-height: 1.55;
}

.ai-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}
.ai-status.ready { color: #087c58; background: #e9f9f2; }
.ai-status.off { color: #9a5b1b; background: #fff4e6; }

.settings-remove-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
}

.ai-guide-card {
    background: linear-gradient(180deg,#fbfaff,#f7f8ff);
    border-color: #e4e2f7;
}

.ai-guide-list {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.ai-guide-list > div {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    background: rgba(255,255,255,.72);
    border: 1px solid #e8e8f2;
    border-radius: 10px;
}
.ai-guide-list b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #5f45cc;
    background: #eee9ff;
    border-radius: 8px;
    font-size: 8px;
}
.ai-guide-list span { display: grid; gap: 3px; }
.ai-guide-list strong { color: #30384a; font-size: 9px; }
.ai-guide-list small { color: #858ea0; font-size: 8px; line-height: 1.45; }

.ai-disclaimer {
    margin-top: 13px;
    padding: 11px;
    color: #7c633d;
    background: #fff9e9;
    border: 1px solid #f5e3ae;
    border-radius: 10px;
    font-size: 8px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ai-product-card { grid-template-columns: 1fr; }
    .ai-product-actions { justify-content: flex-start; flex-wrap: wrap; }
    .ai-product-status { grid-column: auto; }
    .settings-card-head { grid-template-columns: auto minmax(0,1fr); }
    .settings-card-head .ai-status { grid-column: 1 / -1; justify-self: start; }
}

/* ==========================================================
   STAGE 3.2 — KATEGORI SHOPEE + AI SEO
   ========================================================== */
.category-picker {
    padding: 16px;
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.category-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.category-picker-head small {
    display: block;
    margin-top: 4px;
    color: #7b8aa5;
    font-size: 11px;
    line-height: 1.45;
}

.category-path-badge {
    max-width: 55%;
    padding: 7px 10px;
    color: #315ee8;
    background: #eef4ff;
    border: 1px solid #d6e3ff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
}

.category-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.form-label.subtle {
    color: #6b7892;
    font-size: 10px;
}

.ai-seo-output {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(120, 98, 255, .16);
}

.ai-seo-output[hidden] {
    display: none !important;
}

.ai-seo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #55627b;
    background: #fff;
    border: 1px solid #e4e8f5;
    border-radius: 10px;
    font-size: 10px;
}

.ai-seo-row strong {
    color: #6557e8;
    font-size: 11px;
}

.ai-seo-alt-wrap > span {
    display: block;
    margin-bottom: 7px;
    color: #4f5d78;
    font-size: 10px;
    font-weight: 800;
}

.ai-seo-alt-wrap > small {
    display: block;
    margin-top: 6px;
    color: #8a96ab;
    font-size: 9px;
}

.ai-title-alternatives {
    display: grid;
    gap: 7px;
}

.ai-title-choice {
    width: 100%;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px;
    color: #24324c;
    background: #fff;
    border: 1px solid #e0e6f3;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
}

.ai-title-choice:hover {
    border-color: #879cff;
    background: #f7f9ff;
}

.ai-title-choice > span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4d61e8;
    background: #eef2ff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 900;
}

.ai-title-choice strong {
    font-size: 10px;
    line-height: 1.45;
}

.product-category-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 0;
    padding: 7px 9px;
    color: #5a56c9;
    background: #f7f5ff;
    border: 1px solid #e8e3ff;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
}

.product-category-line.missing {
    color: #b45309;
    background: #fffaf0;
    border-color: #fde7bc;
}

.detail-category-path {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.detail-category-path span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    color: #4452c7;
    background: #f4f6ff;
    border: 1px solid #e1e6ff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
}

.primary-keyword-box {
    margin-bottom: 12px;
    padding: 11px 12px;
    color: #4855c9;
    background: #f5f7ff;
    border: 1px solid #e1e6ff;
    border-radius: 10px;
    font-size: 10px;
}

.primary-keyword-box strong {
    display: block;
    margin-top: 3px;
    color: #2e3eb8;
    font-size: 12px;
}

.saved-title-alternatives {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.saved-title-alternatives div {
    padding: 9px 10px;
    color: #536079;
    background: #fafbff;
    border: 1px solid #e8ebf3;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .category-picker-grid {
        grid-template-columns: 1fr;
    }

    .category-picker-head {
        flex-direction: column;
    }

    .category-path-badge {
        max-width: 100%;
        text-align: left;
    }
}

.ai-research-toggle {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 10px;
    color: #536079;
    background: rgba(255,255,255,.72);
    border: 1px solid #e4e8f5;
    border-radius: 10px;
    cursor: pointer;
}

.ai-research-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-research-toggle > span {
    width: 28px;
    height: 16px;
    position: relative;
    display: inline-block;
    background: #d9deea;
    border-radius: 999px;
    transition: .2s ease;
}

.ai-research-toggle > span::after {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: .2s ease;
}

.ai-research-toggle input:checked + span {
    background: #5968f1;
}

.ai-research-toggle input:checked + span::after {
    transform: translateX(12px);
}

.ai-research-toggle strong {
    display: block;
    color: #3d4961;
    font-size: 10px;
}

.ai-research-toggle small {
    display: block;
    margin-top: 2px;
    color: #8a95a9;
    font-size: 9px;
    line-height: 1.35;
}

/* ========================================================================== 
   STAGE 4 · SHOPEE ADS WORKSPACE
   ========================================================================== */
.ads-source-note {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin-bottom:14px;
    padding:14px 16px;
    color:#4b5565;
    background:linear-gradient(135deg,#fff8f3,#fffdf9);
    border:1px solid #ffd9bf;
    border-radius:16px;
}
.ads-source-icon {
    width:42px;height:42px;display:grid;place-items:center;
    color:#fff;background:#f46624;border-radius:13px;font-weight:950;
    box-shadow:0 8px 20px rgba(244,102,36,.2);
}
.ads-source-note strong { display:block;color:#2f3542;font-size:11px; }
.ads-source-note p { margin:4px 0 0;color:#7f8898;font-size:9px;line-height:1.55; }
.ads-sync-badge { padding:7px 9px;color:#d85c1c;background:#fff;border:1px solid #ffd5bb;border-radius:999px;font-size:8px;font-weight:900; }

.ads-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:14px 16px; }
.ads-toolbar small { display:block;margin-bottom:8px;color:#98a2b3;font-size:8px;font-weight:900;letter-spacing:.8px; }
.ads-range-switch { display:flex;flex-wrap:wrap;gap:6px; }
.ads-range-switch a { padding:7px 10px;color:#667085;background:#f7f8fb;border:1px solid #e8ebf1;border-radius:9px;font-size:9px;font-weight:850;text-decoration:none; }
.ads-range-switch a.active { color:#fff;background:#315efb;border-color:#315efb; }
.ads-toolbar-info { display:flex;align-items:center;gap:8px;color:#8993a4;font-size:9px; }
.ads-toolbar-info strong { padding:7px 10px;color:#344054;background:#f7f8fb;border-radius:9px; }

.ads-kpi-grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px; }
.ads-kpi-card { min-height:108px;padding:15px;background:#fff;border:1px solid #e6eaf0;border-radius:16px;box-shadow:0 8px 22px rgba(15,23,42,.04); }
.ads-kpi-card small { display:block;color:#8d98aa;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.55px; }
.ads-kpi-card strong { display:block;margin-top:12px;color:#222a39;font-size:19px;line-height:1;letter-spacing:-.4px; }
.ads-kpi-card span { display:block;margin-top:8px;color:#99a2b1;font-size:8px; }
.ads-kpi-card.emphasis { color:#fff;background:linear-gradient(135deg,#315efb,#6c55ed);border-color:transparent; }
.ads-kpi-card.emphasis small,.ads-kpi-card.emphasis strong,.ads-kpi-card.emphasis span { color:#fff; }
.ads-kpi-card.emphasis span { opacity:.78; }

.ads-learning-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px; }
.ads-guide-card { display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px;background:#fff;border:1px solid #e6eaf0;border-radius:15px; }
.ads-guide-card > span { width:34px;height:34px;display:grid;place-items:center;border-radius:11px;font-size:9px;font-weight:950; }
.ads-guide-card strong { display:block;color:#303847;font-size:10px; }
.ads-guide-card p { margin:4px 0 0;color:#8a95a7;font-size:8px;line-height:1.55; }
.ads-guide-card.blue > span { color:#315efb;background:#eef2ff; }
.ads-guide-card.purple > span { color:#7c4ce0;background:#f5efff; }
.ads-guide-card.orange > span { color:#ee6a27;background:#fff1e8; }

.ads-campaign-card { padding:18px; }
.ads-panel-head h2,.ads-official-notes h2 { margin:4px 0 0;font-size:16px; }
.ads-panel-head p { max-width:720px;margin:5px 0 0;color:#929dad;font-size:9px;line-height:1.55; }
.ads-campaign-list { display:grid;gap:10px;margin-top:14px; }
.ads-campaign-row { display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(420px,2fr) minmax(145px,.75fr) auto;gap:14px;align-items:center;padding:14px;background:#fff;border:1px solid #e5e9ef;border-radius:15px; }
.ads-status-line { display:flex;align-items:center;flex-wrap:wrap;gap:6px; }
.ads-status { padding:5px 7px;border-radius:999px;font-size:7px;font-weight:950;letter-spacing:.4px; }
.ads-status.active { color:#067647;background:#ecfdf3; }
.ads-status.paused { color:#a15c00;background:#fff7e6; }
.ads-status.ended { color:#667085;background:#f2f4f7; }
.ads-status.draft { color:#4b5ed7;background:#eef2ff; }
.ads-learning-badge { padding:5px 7px;color:#7c4ce0;background:#f5efff;border-radius:999px;font-size:7px;font-weight:900; }
.ads-campaign-main h3 { margin:8px 0 4px;color:#242b39;font-size:12px; }
.ads-campaign-main p { margin:0;color:#8e98a8;font-size:8px;line-height:1.4; }
.ads-mode-tags { display:flex;flex-wrap:wrap;gap:5px;margin-top:9px; }
.ads-mode-tags span { padding:5px 7px;color:#596579;background:#f7f8fb;border:1px solid #eaedf2;border-radius:7px;font-size:7px;font-weight:800; }
.ads-performance-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px; }
.ads-performance-grid > div { padding:8px;background:#f8fafc;border:1px solid #edf0f4;border-radius:9px; }
.ads-performance-grid small { display:block;color:#98a2b3;font-size:7px;font-weight:850;text-transform:uppercase; }
.ads-performance-grid strong { display:block;margin-top:4px;color:#344054;font-size:9px; }
.ads-performance-grid .good strong { color:#039855; }
.ads-performance-grid .bad strong { color:#d92d20; }
.ads-break-even-box { padding:10px;background:#f8fafc;border:1px solid #e9edf2;border-radius:11px; }
.ads-break-even-box small { display:block;color:#98a2b3;font-size:7px;font-weight:900; }
.ads-break-even-box strong { display:block;margin-top:5px;color:#344054;font-size:11px; }
.ads-break-even-box span,.ads-break-even-box em { display:block;margin-top:4px;color:#8b95a5;font-size:7px;font-style:normal; }
.ads-break-even-box.good { background:#f0fdf4;border-color:#ccebd7; }
.ads-break-even-box.good strong,.ads-break-even-box.good em { color:#039855; }
.ads-break-even-box.bad { background:#fff5f4;border-color:#ffd3cf; }
.ads-break-even-box.bad strong,.ads-break-even-box.bad em { color:#d92d20; }
.ads-campaign-actions { display:flex;flex-direction:column;gap:5px; }
.ads-campaign-actions form { margin:0; }
.mini-action { width:100%;padding:7px 9px;color:#4f5d73;background:#fff;border:1px solid #dde3eb;border-radius:8px;font-size:8px;font-weight:850;cursor:pointer; }
.mini-action:hover { border-color:#bfc9da;background:#f8fafc; }
.mini-action.danger { color:#d92d20;border-color:#ffd0cc;background:#fff8f7; }
.ads-empty { min-height:260px; }

.ads-official-notes { margin-top:14px;padding:18px; }
.ads-note-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px; }
.ads-note-grid > div { padding:12px;background:#f8fafc;border:1px solid #edf0f4;border-radius:11px; }
.ads-note-grid strong { display:block;color:#344054;font-size:9px; }
.ads-note-grid p { margin:5px 0 0;color:#8d98aa;font-size:8px;line-height:1.5; }

.modal-shell[hidden] { display:none !important; }
.modal-shell { position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:18px; }
.modal-backdrop { position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(5px); }
.ads-modal-card { position:relative;z-index:1;width:min(760px,100%);max-height:92vh;overflow:auto;padding:0;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(15,23,42,.28); }
.ads-modal-card.compact-modal { width:min(650px,100%); }
.ads-modal-card > header { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #edf0f4; }
.ads-modal-card > header small { color:#8a95a7;font-size:8px;font-weight:900;letter-spacing:.7px; }
.ads-modal-card > header h2 { margin:4px 0 0;font-size:18px; }
.ads-modal-card > header p { margin:4px 0 0;color:#8b95a5;font-size:8px; }
.ads-modal-card > header > button { width:34px;height:34px;border:0;border-radius:10px;background:#f4f6f9;color:#667085;font-size:20px;cursor:pointer; }
.ads-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 20px 20px; }
.ads-form-grid .span-2 { grid-column:1/-1; }
.field { display:block; }
.field > span { display:block;margin-bottom:6px;color:#475467;font-size:8px;font-weight:850; }
.textarea { width:100%;padding:11px 12px;color:#344054;background:#fff;border:1px solid #dfe4eb;border-radius:12px;outline:none;font:inherit;font-size:10px;resize:vertical; }
.textarea:focus { border-color:#aebdff;box-shadow:0 0 0 4px rgba(49,94,251,.07); }
.check-line { display:flex;align-items:flex-start;gap:10px;padding:11px 12px;background:#f8fafc;border:1px solid #edf0f4;border-radius:11px; }
.check-line input { margin-top:2px; }
.check-line strong { display:block;color:#344054;font-size:9px; }
.check-line small { display:block;margin-top:3px;color:#8f99aa;font-size:8px;line-height:1.45; }

@media (max-width:1180px) {
    .ads-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .ads-campaign-row { grid-template-columns:1fr; }
    .ads-campaign-actions { flex-direction:row; }
    .ads-campaign-actions form { flex:1; }
}
@media (max-width:820px) {
    .ads-learning-grid,.ads-note-grid { grid-template-columns:1fr 1fr; }
    .ads-source-note { grid-template-columns:auto minmax(0,1fr); }
    .ads-sync-badge { grid-column:1/-1;justify-self:start; }
}
@media (max-width:640px) {
    .ads-kpi-grid,.ads-learning-grid,.ads-note-grid { grid-template-columns:1fr 1fr; }
    .ads-toolbar { align-items:flex-start;flex-direction:column; }
    .ads-form-grid { grid-template-columns:1fr; }
    .ads-form-grid .span-2 { grid-column:auto; }
    .ads-performance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* =========================================================
   STAGE 4B · AI ADS ROUTINE + SCHEDULE
   ========================================================= */
.ads-ai-routine{margin-bottom:14px;padding:18px;background:linear-gradient(135deg,#111827,#182238);border:1px solid #26334d;color:#fff;box-shadow:0 14px 34px rgba(15,23,42,.14)}
.ads-ai-routine-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center}
.ads-ai-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(135deg,#4f46e5,#315efb);font-size:12px;font-weight:950;box-shadow:0 8px 20px rgba(49,94,251,.3)}
.ads-ai-routine-head small{display:block;color:#93a4c3;font-size:8px;font-weight:950;letter-spacing:.8px}
.ads-ai-routine-head h2{margin:4px 0 0;color:#fff;font-size:16px}
.ads-ai-routine-head p{max-width:780px;margin:5px 0 0;color:#aebbd1;font-size:9px;line-height:1.6}
.ads-ai-status{padding:7px 10px;border-radius:999px;font-size:8px;font-weight:950;white-space:nowrap}
.ads-ai-status.ready{color:#7ef5be;background:rgba(5,150,105,.16);border:1px solid rgba(52,211,153,.24)}
.ads-ai-status.off{color:#fda4af;background:rgba(225,29,72,.12);border:1px solid rgba(251,113,133,.2)}
.ads-routine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.ads-routine-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);border-radius:13px}
.ads-routine-item.due{background:rgba(245,158,11,.11);border-color:rgba(251,191,36,.35)}
.ads-routine-item.done{background:rgba(16,185,129,.08);border-color:rgba(52,211,153,.2)}
.ads-routine-time{display:flex;flex-direction:column;min-width:106px}.ads-routine-time>span{font-size:14px}.ads-routine-time strong{margin-top:4px;color:#fff;font-size:10px}.ads-routine-time small{margin-top:3px;color:#aebbd1;font-size:7px}
.ads-routine-item.due .ads-routine-time strong{color:#fbbf24}.ads-routine-item.done .ads-routine-time strong{color:#6ee7b7}
.ads-routine-name strong{display:block;color:#f8fafc;font-size:9px}.ads-routine-name span{display:block;margin-top:4px;color:#8797b4;font-size:7px;line-height:1.45}
.ads-routine-actions{display:flex;gap:5px}.ads-routine-actions .mini-action{color:#dbe7ff;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12)}
.ads-routine-empty{margin-top:13px;padding:13px;color:#aebbd1;background:rgba(255,255,255,.05);border-radius:11px;font-size:9px}
.ads-schedule-badge{padding:5px 7px;border-radius:999px;font-size:7px;font-weight:900}.ads-schedule-badge.due{color:#b54708;background:#fff4e5}.ads-schedule-badge.upcoming{color:#315efb;background:#eef2ff}.ads-schedule-badge.done{color:#067647;background:#ecfdf3}
.mini-action.attention{color:#b54708!important;background:#fff4e5!important;border-color:#fedf89!important;box-shadow:0 0 0 2px rgba(245,158,11,.08)}
.ads-ai-insight{grid-column:1/-1;margin-top:1px;padding:13px 14px;background:#f8fafc;border:1px solid #e8edf4;border-radius:13px}
.ads-ai-insight.good{background:#f0fdf4;border-color:#ccebd7}.ads-ai-insight.warning{background:#fffbeb;border-color:#fde68a}.ads-ai-insight.critical{background:#fff5f4;border-color:#ffd3cf}.ads-ai-insight.learning{background:#f5f3ff;border-color:#ddd6fe}.ads-ai-insight.insufficient{background:#f8fafc;border-color:#e5e7eb}
.ads-ai-insight-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ads-ai-insight-head>div{display:flex;align-items:center;gap:9px}.ads-ai-mini{width:28px;height:28px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#4f46e5,#315efb);border-radius:9px;font-size:8px;font-weight:950}.ads-ai-insight-head small{display:block;color:#8b95a5;font-size:7px;font-weight:900;letter-spacing:.5px}.ads-ai-insight-head strong{display:block;margin-top:2px;color:#242b39;font-size:10px}.ads-ai-insight h4{margin:10px 0 4px;color:#222a39;font-size:12px}.ads-ai-insight>p{margin:0;color:#697586;font-size:9px;line-height:1.6}
.ads-ai-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.ads-ai-action-grid>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:start;padding:9px;background:rgba(255,255,255,.72);border:1px solid rgba(226,232,240,.9);border-radius:9px}.ads-ai-action-grid b{width:20px;height:20px;display:grid;place-items:center;color:#315efb;background:#eef2ff;border-radius:6px;font-size:7px}.ads-ai-action-grid span{color:#475467;font-size:8px;line-height:1.5}
.ads-ai-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.ads-ai-meta span{padding:5px 7px;color:#667085;background:rgba(255,255,255,.72);border:1px solid #e7eaf0;border-radius:7px;font-size:7px;font-weight:800}
.ads-time-inputs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:7px}.ads-time-inputs label small{display:block;margin-bottom:5px;color:#98a2b3;font-size:7px;font-weight:800}
.ads-auto-ai-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;padding:10px;color:#4b4e83;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:10px}.ads-auto-ai-note>span{width:30px;height:30px;display:grid;place-items:center;color:#fff;background:#5b55ee;border-radius:9px;font-size:8px;font-weight:950}.ads-auto-ai-note strong{display:block;font-size:9px}.ads-auto-ai-note small{display:block;margin-top:3px;color:#7a79a5;font-size:7px;line-height:1.45}
.ads-ai-processing{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.54);backdrop-filter:blur(5px)}.ads-ai-processing[hidden]{display:none!important}.ads-ai-processing-card{width:min(420px,94vw);padding:24px;text-align:center;background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.28)}.ads-ai-processing-card strong{display:block;margin-top:12px;color:#20293a;font-size:14px}.ads-ai-processing-card span{display:block;margin-top:6px;color:#8490a3;font-size:9px;line-height:1.55}.ads-ai-spinner{width:38px;height:38px;margin:0 auto;border:4px solid #e7ebf4;border-top-color:#315efb;border-radius:50%;animation:ads-spin .8s linear infinite}@keyframes ads-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.ads-routine-grid{grid-template-columns:1fr 1fr}.ads-ai-action-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.ads-ai-routine-head{grid-template-columns:auto 1fr}.ads-ai-status{grid-column:1/-1;width:max-content}.ads-routine-grid{grid-template-columns:1fr}.ads-routine-item{grid-template-columns:1fr}.ads-routine-actions{justify-content:flex-start}.ads-time-inputs,.ads-ai-action-grid{grid-template-columns:1fr}.ads-ai-insight-head{align-items:flex-start;flex-direction:column}}

/* Stage 4C - Upload Laporan CSV Shopee */
.ads-csv-drop{position:relative;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px;border:1.5px dashed #9fb3ff;border-radius:18px;background:linear-gradient(180deg,#f8faff 0%,#f3f6ff 100%);text-align:center;cursor:pointer;transition:.2s ease}
.ads-csv-drop:hover{border-color:#5366ff;background:#eef2ff;transform:translateY(-1px)}
.ads-csv-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ads-csv-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(135deg,#4b5cff,#6947ff);font-size:12px;font-weight:950;letter-spacing:.4px;box-shadow:0 10px 24px rgba(80,78,255,.22)}
.ads-csv-drop strong{font-size:14px;color:#111827}.ads-csv-drop small{max-width:520px;color:#8490a6;font-size:10px;line-height:1.45}.ads-csv-drop b{margin-top:4px;padding:9px 15px;border-radius:10px;color:#fff;background:#5366ff;font-size:11px}
.ads-csv-drop.has-file{border-style:solid;border-color:#34d399;background:#f0fdf8}.ads-csv-drop.has-file .ads-csv-icon{background:linear-gradient(135deg,#0fba78,#00a56b)}.ads-csv-drop.has-file b{background:#0ea56d}
.ads-csv-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ads-csv-info>div{display:flex;gap:9px;padding:12px;border:1px solid #e5eaf3;border-radius:12px;background:#fafbfe}.ads-csv-info>div>span{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:9px;background:#edf2ff;color:#5366ff;font-size:9px;font-weight:950}.ads-csv-info p{margin:0}.ads-csv-info strong{display:block;font-size:10px;color:#172033}.ads-csv-info small{display:block;margin-top:3px;color:#7d8798;font-size:9px;line-height:1.45}
@media(max-width:760px){.ads-csv-info{grid-template-columns:1fr}.ads-csv-drop{min-height:150px}}

/* =========================================================
   STAGE 4D · AI ADS INTELLIGENCE + LISTING AUDIT
   ========================================================= */
.ads-intel-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:14px;overflow:hidden;padding:0}
.ads-intel-summary>div{min-height:92px;padding:16px 18px;border-right:1px solid #edf0f4;background:linear-gradient(180deg,#fff,#fbfcff)}
.ads-intel-summary>div:last-child{border-right:0}.ads-intel-summary small{display:block;color:#98a2b3;font-size:7px;font-weight:950;letter-spacing:.55px}.ads-intel-summary strong{display:block;margin-top:10px;color:#202838;font-size:18px}.ads-intel-summary strong.positive{color:#039855}.ads-intel-summary strong.negative{color:#d92d20}.ads-intel-summary span{display:block;margin-top:6px;color:#8b95a6;font-size:7px;line-height:1.45}
.mini-action.audit{color:#6840d8;border-color:#ddd0ff;background:#faf7ff}.mini-action.audit:hover{background:#f3edff;border-color:#c7b5fb}
.ads-listing-audit{grid-column:1/-1;margin-top:1px;padding:13px 14px;background:linear-gradient(180deg,#fbfaff,#f8f7ff);border:1px solid #e7e0ff;border-radius:13px}
.ads-listing-audit.empty{background:#fafbfc;border-color:#e7ebf0}.ads-listing-audit.siap_scale_bertahap{background:#f2fdf7;border-color:#cdeedc}.ads-listing-audit.belum_siap{background:#fff8f5;border-color:#ffd9ca}
.ads-listing-audit-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ads-listing-audit-head>div{display:flex;align-items:center;gap:9px}.ads-audit-icon{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#7047ee,#4f64ff);border-radius:10px;font-size:7px;font-weight:950}.ads-listing-audit-head small{display:block;color:#8f83bd;font-size:7px;font-weight:950;letter-spacing:.55px}.ads-listing-audit-head strong{display:block;margin-top:2px;color:#27293a;font-size:10px}.ads-listing-audit>p{margin:10px 0 0;color:#697386;font-size:8.5px;line-height:1.58}
.ads-audit-score-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:10px}.ads-audit-score-grid>div{padding:8px 9px;text-align:center;background:rgba(255,255,255,.82);border:1px solid #e8e7f1;border-radius:9px}.ads-audit-score-grid small{display:block;color:#98a2b3;font-size:6.5px;font-weight:900;text-transform:uppercase}.ads-audit-score-grid strong{display:block;margin-top:4px;color:#413c75;font-size:12px}
.ads-audit-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}.ads-audit-actions>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;align-items:start;padding:8px;background:rgba(255,255,255,.8);border:1px solid #ebe9f2;border-radius:9px}.ads-audit-actions b{width:18px;height:18px;display:grid;place-items:center;color:#6146dd;background:#f0ebff;border-radius:5px;font-size:6.5px}.ads-audit-actions span{color:#566074;font-size:7.5px;line-height:1.45}
.ads-audit-suggestion{margin-top:9px;padding:9px 10px;background:#fff;border:1px solid #e8e5f4;border-radius:9px}.ads-audit-suggestion small{display:block;color:#927fc4;font-size:6.5px;font-weight:900;text-transform:uppercase}.ads-audit-suggestion strong{display:block;margin-top:4px;color:#2d3142;font-size:8.5px;line-height:1.45}.ads-listing-audit .ads-ai-meta a{padding:5px 7px;color:#4f46e5;background:#fff;border:1px solid #ddd6fe;border-radius:7px;font-size:7px;font-weight:800;text-decoration:none}
.ads-audit-upload{position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px;border:1.5px dashed #b8a7f4;border-radius:16px;background:linear-gradient(180deg,#fbfaff,#f6f4ff);text-align:center;cursor:pointer}.ads-audit-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ads-audit-upload>span{width:44px;height:44px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#7554ef,#5366ff);border-radius:13px;font-size:9px;font-weight:950}.ads-audit-upload strong{color:#262c3a;font-size:11px}.ads-audit-upload small{max-width:520px;color:#8791a4;font-size:8px;line-height:1.45}.ads-audit-upload b{margin-top:2px;padding:8px 12px;color:#fff;background:#6258ed;border-radius:9px;font-size:9px}
@media(max-width:1000px){.ads-intel-summary{grid-template-columns:1fr 1fr}.ads-audit-score-grid{grid-template-columns:repeat(3,1fr)}.ads-audit-actions{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.ads-intel-summary{grid-template-columns:1fr}.ads-intel-summary>div{border-right:0;border-bottom:1px solid #edf0f4}.ads-audit-score-grid,.ads-audit-actions{grid-template-columns:1fr 1fr}.ads-listing-audit-head{align-items:flex-start;flex-direction:column}}

/* ========================================================================== 
   STAGE 4E · DASHBOARD CONTROL CENTER
   ========================================================================== */
.home-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:18px;padding:28px;margin-bottom:18px;color:#fff;background:linear-gradient(135deg,#101827 0%,#172554 48%,#1d4ed8 100%);border-radius:24px;box-shadow:0 22px 55px rgba(15,23,42,.18)}
.home-hero:before{content:"";position:absolute;width:440px;height:440px;right:-170px;top:-250px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.20),rgba(255,255,255,0) 68%)}
.home-hero:after{content:"";position:absolute;width:240px;height:240px;left:45%;bottom:-185px;border-radius:50%;background:rgba(59,130,246,.28);filter:blur(2px)}
.home-hero-copy,.home-hero-status{position:relative;z-index:1}.home-hero .hero-kicker{color:#bfdbfe}.home-hero h1{max-width:720px;margin:8px 0 10px;font-size:clamp(27px,3vw,42px);line-height:1.08;letter-spacing:-.035em;font-weight:950}.home-hero p{max-width:720px;margin:0;color:#dbeafe;font-size:13px;line-height:1.7}.home-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.home-hero-actions .primary-btn{background:#fff;color:#1d4ed8;border-color:#fff}.home-hero-actions .primary-btn svg,.home-dark-btn svg{width:16px;height:16px;fill:currentColor}.home-dark-btn{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 15px;color:#fff;background:rgba(15,23,42,.32);border:1px solid rgba(255,255,255,.18);border-radius:10px;text-decoration:none;font-size:11px;font-weight:900}.home-hero-status{align-self:stretch;padding:19px;background:rgba(15,23,42,.34);border:1px solid rgba(255,255,255,.16);border-radius:18px;backdrop-filter:blur(12px)}.home-status-top{display:flex;align-items:center;gap:8px;margin-bottom:15px}.home-status-top small{font-size:9px;letter-spacing:.11em;font-weight:950;color:#bfdbfe}.home-live-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.13)}.home-hero-status>strong{display:block;font-size:19px;line-height:1.3}.home-hero-status>p{margin:8px 0 14px;font-size:11px;line-height:1.55;color:#cbd5e1}.home-hero-status>a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px solid rgba(255,255,255,.13);color:#fff;text-decoration:none;font-size:11px;font-weight:900}.home-hero-status>a svg{width:16px;height:16px;fill:currentColor}
.home-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.home-kpi-card{position:relative;overflow:hidden;min-height:137px;padding:18px;background:#fff;border:1px solid #e4e9f2;border-radius:17px;box-shadow:0 10px 28px rgba(15,23,42,.055)}.home-kpi-card:after{content:"";position:absolute;width:92px;height:92px;right:-32px;bottom:-38px;border-radius:50%;background:var(--home-soft,#eef2ff)}.home-kpi-card.blue{--home-accent:#315efb;--home-soft:#edf2ff}.home-kpi-card.violet{--home-accent:#7c3aed;--home-soft:#f3efff}.home-kpi-card.orange{--home-accent:#ea580c;--home-soft:#fff1e7}.home-kpi-card.green{--home-accent:#059669;--home-soft:#eafaf4}.home-kpi-head{display:flex;align-items:center;gap:9px}.home-kpi-head>span{display:grid;place-items:center;width:34px;height:34px;color:var(--home-accent);background:var(--home-soft);border-radius:10px;font-size:11px;font-weight:950}.home-kpi-head svg{width:17px;height:17px;fill:currentColor}.home-kpi-head small{font-size:9px;letter-spacing:.075em;color:#64748b;font-weight:950}.home-kpi-card>strong{position:relative;z-index:1;display:block;margin-top:15px;font-size:24px;letter-spacing:-.035em;color:#0f172a;font-weight:950}.home-kpi-card>strong.negative{color:#dc2626}.home-kpi-card>p{position:relative;z-index:1;margin:7px 0 0;color:#64748b;font-size:10px;line-height:1.4}
.home-alert-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px;margin:0 0 14px}.home-alert{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:13px;text-decoration:none;border:1px solid #e2e8f0;background:#fff}.home-alert>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;font-size:10px;font-weight:950}.home-alert svg{width:16px;height:16px;fill:currentColor}.home-alert div{min-width:0}.home-alert strong{display:block;color:#0f172a;font-size:11px}.home-alert small{display:block;margin-top:3px;color:#64748b;font-size:9px;line-height:1.35}.home-alert.urgent{border-color:#fecaca;background:#fff7f7}.home-alert.urgent>span{color:#b91c1c;background:#fee2e2}.home-alert.warning{border-color:#fed7aa;background:#fffaf5}.home-alert.warning>span{color:#c2410c;background:#ffedd5}.home-alert.soft>span{color:#475569;background:#f1f5f9}
.home-ads-command{padding:20px;margin-bottom:14px}.home-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}.home-section-head.compact{margin-bottom:14px}.home-section-head h2{margin:4px 0 4px;color:#0f172a;font-size:18px;letter-spacing:-.02em}.home-section-head p{max-width:720px;margin:0;color:#64748b;font-size:10px;line-height:1.55}.home-section-actions{display:flex;flex-wrap:wrap;gap:7px}.home-ads-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.home-ads-metrics>div{padding:13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px}.home-ads-metrics>div.home-metric-primary{color:#fff;background:linear-gradient(135deg,#1d4ed8,#3b82f6);border-color:transparent}.home-ads-metrics small,.home-ads-metrics span{display:block}.home-ads-metrics small{font-size:8px;text-transform:uppercase;letter-spacing:.075em;color:#64748b;font-weight:950}.home-ads-metrics strong{display:block;margin:8px 0 5px;font-size:17px;color:#0f172a;font-weight:950}.home-ads-metrics span{font-size:8px;color:#94a3b8}.home-metric-primary small,.home-metric-primary strong,.home-metric-primary span{color:#fff}.home-metric-primary span{opacity:.8}.home-funnel{margin-top:10px;padding:13px 14px;background:#fbfdff;border:1px solid #e2e8f0;border-radius:13px}.home-funnel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.home-funnel-title strong{font-size:10px}.home-funnel-title span{font-size:8px;color:#94a3b8}.home-funnel-track{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:8px}.home-funnel-track>div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:9px;background:#fff;border:1px solid #e5eaf2;border-radius:10px}.home-funnel-track>div>span{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#eff6ff;color:#2563eb;font-size:8px;font-weight:950}.home-funnel-track strong{font-size:12px}.home-funnel-track small{font-size:8px;color:#94a3b8}.home-funnel-track>i{font-style:normal;color:#cbd5e1;font-size:14px}
.home-two-col{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);gap:14px;margin-bottom:14px}.home-panel{padding:19px}.home-count-badge{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;color:#2563eb;background:#eff6ff;border-radius:999px;font-size:11px;font-weight:950}.home-count-badge.danger{color:#b91c1c;background:#fee2e2}.home-small-link{color:#2563eb;text-decoration:none;font-size:9px;font-weight:950}.home-ai-list,.home-schedule-list{display:grid;gap:8px}.home-ai-item{display:grid;grid-template-columns:38px 1fr 26px;align-items:center;gap:10px;padding:11px;border:1px solid #e2e8f0;border-radius:12px;text-decoration:none;background:#fff}.home-ai-item:hover{border-color:#bfdbfe;background:#fbfdff}.home-ai-state{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff7ed;color:#c2410c}.home-ai-item.critical .home-ai-state{color:#b91c1c;background:#fee2e2}.home-ai-item.good .home-ai-state{color:#047857;background:#d1fae5}.home-ai-state span{font-size:9px;font-weight:950}.home-ai-copy{min-width:0}.home-ai-copy small{display:block;color:#64748b;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-ai-copy strong{display:block;margin:3px 0;color:#0f172a;font-size:10px}.home-ai-copy p{margin:0;color:#64748b;font-size:8px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-ai-arrow{display:grid;place-items:center;color:#94a3b8}.home-ai-arrow svg{width:15px;height:15px;fill:currentColor}.home-schedule-item{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:10px;padding:11px;border:1px solid #e2e8f0;border-radius:11px;text-decoration:none;background:#fff}.home-schedule-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.home-schedule-item.due{border-color:#fecaca;background:#fffafa}.home-schedule-item.due .home-schedule-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.10)}.home-schedule-item.upcoming .home-schedule-dot{background:#f59e0b}.home-schedule-item.done .home-schedule-dot{background:#10b981}.home-schedule-item div{min-width:0}.home-schedule-item strong{display:block;color:#0f172a;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-schedule-item small{display:block;margin-top:3px;color:#64748b;font-size:8px}.home-schedule-item>b{font-size:8px;color:#475569;white-space:nowrap}.home-schedule-item.due>b{color:#b91c1c}
.home-campaign-panel{padding:19px;margin-bottom:14px}.home-campaign-table{overflow:hidden;border:1px solid #e2e8f0;border-radius:13px}.home-campaign-head,.home-campaign-row{display:grid;grid-template-columns:minmax(280px,1.65fr) repeat(5,minmax(95px,.62fr));align-items:center;gap:8px}.home-campaign-head{padding:9px 12px;background:#f8fafc;color:#64748b;font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.home-campaign-row{padding:10px 12px;border-top:1px solid #edf0f5;color:#0f172a;text-decoration:none;background:#fff}.home-campaign-row:hover{background:#fbfdff}.home-campaign-product{display:flex;align-items:center;gap:10px;min-width:0}.home-campaign-product>img,.home-campaign-product>i{width:42px;height:42px;flex:0 0 42px;border-radius:10px;object-fit:cover;background:#f1f5f9;border:1px solid #e2e8f0}.home-campaign-product>i{display:grid;place-items:center;color:#64748b}.home-campaign-product>i svg{width:18px;height:18px;fill:currentColor}.home-campaign-product>span{min-width:0}.home-campaign-product strong{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-campaign-product small{display:block;margin-top:4px;color:#94a3b8;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-campaign-row>span:not(.home-campaign-product)>strong{display:block;font-size:9px}.home-campaign-row>span:not(.home-campaign-product)>small{display:block;margin-top:3px;color:#94a3b8;font-size:7px}.home-roas.good{color:#059669}.home-roas.bad{color:#dc2626}.home-ai-decision{display:inline-flex!important;padding:5px 7px;border-radius:7px;background:#f1f5f9;color:#475569;font-size:7px!important}.home-ai-decision.good{color:#047857;background:#d1fae5}.home-ai-decision.warning,.home-ai-decision.learning{color:#92400e;background:#fef3c7}.home-ai-decision.critical{color:#b91c1c;background:#fee2e2}.home-ai-decision.insufficient{color:#6b7280;background:#f3f4f6}
.home-bottom-grid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}.home-product-list{display:grid;gap:8px}.home-product-item{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:10px;padding:8px;border:1px solid #e8edf4;border-radius:11px;text-decoration:none;background:#fff}.home-product-item:hover{background:#fbfdff;border-color:#bfdbfe}.home-product-item img,.home-product-placeholder{width:48px;height:48px;border-radius:10px;object-fit:cover;background:#f1f5f9;border:1px solid #e2e8f0}.home-product-placeholder{display:grid;place-items:center;color:#64748b}.home-product-placeholder svg{width:18px;height:18px;fill:currentColor}.home-product-item div{min-width:0}.home-product-item small,.home-product-item strong,.home-product-item div>span{display:block}.home-product-item small{color:#94a3b8;font-size:7px}.home-product-item strong{margin:3px 0;color:#0f172a;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-product-item div>span{color:#64748b;font-size:8px}.home-distributor-list{display:grid;gap:8px}.home-distributor-list>a{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:9px;border:1px solid #e8edf4;border-radius:11px;text-decoration:none;background:#fff}.home-distributor-list>a>span{display:grid;place-items:center;width:34px;height:34px;color:#7c3aed;background:#f3efff;border-radius:9px}.home-distributor-list svg{width:16px;height:16px;fill:currentColor}.home-distributor-list div{min-width:0}.home-distributor-list strong{display:block;color:#0f172a;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-distributor-list small{display:block;margin-top:3px;color:#94a3b8;font-size:7px}.home-distributor-list b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;color:#7c3aed;background:#f3efff;font-size:8px}.home-empty{min-height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#64748b}.home-empty.wide{min-height:210px}.home-empty>span{display:grid;place-items:center;width:48px;height:48px;margin-bottom:10px;color:#2563eb;background:#eff6ff;border-radius:14px;font-size:12px;font-weight:950}.home-empty>span svg{width:21px;height:21px;fill:currentColor}.home-empty strong{color:#0f172a;font-size:11px}.home-empty p{max-width:400px;margin:6px 0 0;font-size:9px;line-height:1.5}.home-empty .primary-btn{margin-top:12px}.home-dashboard-note{margin:0 0 28px;padding:11px 14px;color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:11px;font-size:9px;line-height:1.5}
@media(max-width:1180px){.home-ads-metrics{grid-template-columns:repeat(3,1fr)}.home-campaign-head,.home-campaign-row{grid-template-columns:minmax(240px,1.4fr) repeat(5,minmax(86px,.62fr))}}
@media(max-width:960px){.home-hero{grid-template-columns:1fr}.home-kpi-grid{grid-template-columns:repeat(2,1fr)}.home-two-col,.home-bottom-grid{grid-template-columns:1fr}.home-funnel-track{grid-template-columns:1fr 1fr}.home-funnel-track>i{display:none}.home-campaign-head{display:none}.home-campaign-table{border:0;display:grid;gap:9px}.home-campaign-row{grid-template-columns:1fr 1fr 1fr;border:1px solid #e2e8f0;border-radius:12px;gap:10px}.home-campaign-product{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid #eef2f6}.home-campaign-row>span:not(.home-campaign-product):before{content:attr(data-label);display:block;margin-bottom:4px;color:#94a3b8;font-size:7px;text-transform:uppercase;font-weight:950}}
@media(max-width:640px){.home-hero{padding:21px;border-radius:19px}.home-hero h1{font-size:28px}.home-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.home-kpi-card{min-height:126px;padding:14px}.home-kpi-card>strong{font-size:18px}.home-ads-command,.home-panel,.home-campaign-panel{padding:14px}.home-section-head{flex-direction:column}.home-section-actions{width:100%}.home-section-actions>a{flex:1}.home-ads-metrics{grid-template-columns:1fr 1fr}.home-funnel-track{grid-template-columns:1fr 1fr}.home-campaign-row{grid-template-columns:1fr 1fr}.home-campaign-product{grid-column:1/-1}.home-hero-actions{display:grid;grid-template-columns:1fr 1fr}.home-hero-actions>a{justify-content:center}.home-schedule-item{grid-template-columns:9px 1fr}.home-schedule-item>b{grid-column:2}.home-alert-strip{grid-template-columns:1fr}}
