/* ─── Admin shell tokens ─────────────────────────── */
:root {
    --adm-nav-hover: rgba(255,255,255,.04);
    --adm-nav-active: rgba(var(--sp-primary-rgb, 114, 230, 193), .09);
}

/* ─── Shell ──────────────────────────────────────── */
.adm {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at 26% -10%, rgba(var(--sp-primary-rgb, 114, 230, 193), .08), transparent 30%),
        radial-gradient(circle at 90% 0, rgba(96, 165, 250, .07), transparent 26%),
        var(--sp-bg);
}

/* ─── Sidebar ────────────────────────────────────── */
.adm-sidebar {
    position: sticky;
    top: 0;
    width: 236px; flex-shrink: 0;
    height: 100vh;
    background: var(--adm-sidebar);
    border-right: 1px solid var(--sp-border);
    display: flex; flex-direction: column;
}

/* Brand */
.adm-brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--sp-border);
}
.adm-brand-mark {
    width: 28px; height: 28px; border-radius: 7px;
    background: var(--sp-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.adm-brand-mark img { width: 100%; height: 100%; object-fit: contain; background: var(--sp-surface); }
.adm-brand-name {
    font-size: .875rem; font-weight: 700; color: var(--sp-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Nav */
.adm-nav { flex: 1; padding: .4rem .65rem; overflow-y: auto; }
.nav-sep {
    display: block;
    font-size: .63rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--adm-nav-text);
    padding: .9rem .55rem .2rem;
}
.adm-nav a {
    display: flex; align-items: center; gap: .55rem;
    padding: .42rem .65rem; border-radius: 7px;
    text-decoration: none;
    color: var(--adm-nav-text); font-size: .845rem; font-weight: 500;
    transition: background .12s, color .12s;
}
.adm-nav a svg { flex-shrink: 0; }
.adm-nav a:hover { background: var(--adm-nav-hover); color: var(--sp-text); }
.adm-nav a.active { background: var(--adm-nav-active); color: var(--sp-primary); }
.adm-nav a.nav-child {
    margin-left: 1.35rem;
    padding-left: .5rem;
    font-size: .8rem;
}
.nav-child-dot {
    width: .35rem;
    height: .35rem;
    border-radius: 999px;
    background: currentColor;
    opacity: .65;
    flex-shrink: 0;
}

/* User row */
.adm-userrow {
    padding: .75rem .9rem;
    border-top: 1px solid var(--sp-border);
    display: flex; align-items: center; gap: .55rem;
}
.adm-avatar {
    width: 27px; height: 27px; border-radius: 50%;
    background: var(--sp-primary); color: #06100d;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.adm-uname {
    flex: 1; font-size: .8rem; font-weight: 600; color: var(--sp-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-signout {
    background: none; border: none; cursor: pointer;
    color: var(--adm-nav-text); padding: 4px; border-radius: 5px;
    display: flex; align-items: center;
    transition: color .12s;
}
.adm-signout:hover { color: #f87171; }

/* ─── Content area ───────────────────────────────── */
.adm-main {
    flex: 1;
    min-width: 0;
}

.adm-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    padding: clamp(1.4rem, 2.4vw, 2.75rem);
}

.adm-content > h1:first-child,
.product-bundles-header h1 {
    margin-bottom: .35rem;
}

.adm-content > h1:first-child {
    padding-bottom: 1.1rem;
}

.adm-content > h1:first-child + .toolbar,
.adm-content > h1:first-child + p,
.adm-content > h1:first-child + .alert,
.adm-content > h1:first-child + .stat-grid,
.adm-content > h1:first-child + table,
.adm-content > h1:first-child + .tbl-wrap {
    margin-top: .25rem;
}

/* ─── Typography ─────────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.75rem; color: var(--sp-text); }
h2 {
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--adm-nav-text); margin: 0 0 .75rem;
}

/* ─── Alert banners ──────────────────────────────── */
.alert { padding: .6rem .85rem; border-radius: 8px; font-size: .84rem; margin-bottom: 1rem; }
.alert-ok   { background: rgba(110,231,183,.08); color: #6ee7b7; border: 1px solid rgba(110,231,183,.2); }
.alert-err  { background: rgba(248,113,113,.08); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
.alert-warn { background: rgba(251,191,36,.08);  color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }

/* ─── Generic card ───────────────────────────────── */
.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)),
        var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 48px rgba(0,0,0,.12);
}

/* ─── Stat cards ─────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .8rem; margin-bottom: 2rem;
}
.stat-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)),
        var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius); padding: 1.1rem 1.2rem;
    transition: border-color .15s;
}
.stat-card:hover { border-color: rgba(var(--sp-primary-rgb, 114, 230, 193), .3); }
.stat-icon {
    width: 30px; height: 30px; border-radius: 7px;
    background: rgba(var(--sp-primary-rgb, 114, 230, 193), .08);
    display: flex; align-items: center; justify-content: center;
    color: var(--sp-primary); margin-bottom: .65rem;
}
.stat-val { font-size: 1.7rem; font-weight: 700; color: var(--sp-text); line-height: 1; }
.stat-label { font-size: .76rem; color: var(--adm-nav-text); margin-top: .28rem; }

/* ─── Theme management ───────────────────────────── */
.theme-page {
    display: grid;
    gap: 1rem;
}

.theme-header,
.theme-import-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-header h1 {
    margin-bottom: .4rem;
}

.theme-header p,
.theme-muted {
    color: var(--sp-muted);
    line-height: 1.5;
    margin: 0;
}

.theme-actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.theme-card {
    display: grid;
    gap: 1rem;
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .75rem;
}

.theme-preset {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .25rem .75rem;
    align-items: center;
    width: 100%;
    padding: .85rem;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: rgba(255,255,255,.025);
    color: var(--sp-text);
    text-align: left;
    cursor: pointer;
}

.theme-preset:hover,
.theme-preset.selected {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 1px rgba(var(--sp-primary-rgb, 114, 230, 193), .18);
}

.theme-preset-swatch {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
}

.theme-preset small {
    color: var(--sp-muted);
    line-height: 1.35;
}

.theme-editor-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
    gap: 1rem;
}

.theme-token-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.theme-token-grid .field {
    margin: 0;
}

.theme-token-grid .field input[type="color"] {
    height: 2.35rem;
    padding: .15rem;
}

.theme-token-grid .field input[type="color"] + input {
    margin-top: .35rem;
}

.theme-field-help {
    display: block;
    color: var(--sp-muted);
    font-size: .74rem;
    line-height: 1.35;
    margin-top: .35rem;
}

.theme-token-grid .field-wide {
    grid-column: 1 / -1;
}

.theme-preview {
    min-height: 360px;
    display: grid;
    grid-template-columns: 170px 1fr;
    overflow: hidden;
    border: 1px solid var(--preview-border);
    border-radius: var(--preview-radius);
    background: var(--preview-bg);
    color: var(--preview-text);
    font-family: var(--preview-font);
}

.theme-preview aside {
    padding: .9rem;
    background: var(--preview-sidebar);
    border-right: 1px solid var(--preview-border);
}

.theme-preview main {
    padding: 1rem;
    display: grid;
    align-items: center;
}

.theme-preview-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.theme-preview-brand span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--preview-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-preview-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--preview-surface);
}

.theme-preview-nav {
    color: var(--preview-nav);
    border-radius: calc(var(--preview-radius) * .7);
    padding: .45rem .55rem;
    margin-bottom: .25rem;
    font-size: .82rem;
}

.theme-preview-nav.active {
    color: var(--preview-primary);
    background: rgba(255,255,255,.06);
}

.theme-preview-card {
    background: var(--preview-surface);
    border: 1px solid var(--preview-border);
    border-radius: var(--preview-radius);
    padding: 1.1rem;
}

.theme-preview-card small {
    color: var(--preview-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: .45rem;
}

.theme-preview-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: .35rem;
}

.theme-preview-card p {
    color: var(--preview-muted);
    line-height: 1.45;
}

.theme-preview-button {
    border: none;
    border-radius: calc(var(--preview-radius) * .65);
    background: var(--preview-primary);
    color: #06100d;
    padding: .45rem .8rem;
    font-weight: 700;
}

.theme-json {
    min-height: 10rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre;
}

@media (max-width: 1050px) {
    .theme-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .theme-token-grid,
    .theme-preview {
        grid-template-columns: 1fr;
    }
}

/* ─── Shortcut grid ──────────────────────────────── */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .8rem;
}
.shortcut-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)),
        var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius); padding: .95rem 1.1rem;
    text-decoration: none; color: var(--sp-text);
    display: block; transition: border-color .15s;
}
.shortcut-card:hover { border-color: var(--sp-primary); color: var(--sp-text); }
.shortcut-title { font-size: .875rem; font-weight: 600; margin-bottom: .22rem; }
.shortcut-desc { font-size: .775rem; color: var(--adm-nav-text); line-height: 1.4; }

/* ─── Badges ─────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .12rem .48rem; border-radius: 20px;
    font-size: .72rem; font-weight: 600;
}
.badge-ok   { background: rgba(110,231,183,.1); color: #6ee7b7; }
.badge-warn { background: rgba(251,191,36,.1);  color: #fbbf24; }
.badge-err  { background: rgba(248,113,113,.1); color: #f87171; }
.badge-off  { background: rgba(148,163,184,.08); color: var(--adm-nav-text); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .37rem .82rem; border-radius: 7px;
    border: 1px solid var(--sp-border);
    background: var(--sp-surface); color: var(--sp-text);
    cursor: pointer; font-size: .84rem; font-weight: 500;
    transition: border-color .12s, color .12s;
    text-decoration: none; line-height: 1.4;
}
.btn:hover { border-color: var(--sp-primary); color: var(--sp-primary); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
    background: var(--sp-primary); border-color: var(--sp-primary);
    color: #06100d; font-weight: 600;
}
.btn-primary:hover { opacity: .88; color: #06100d; }
.btn-danger { border-color: rgba(248,113,113,.4); color: #f87171; }
.btn-danger:hover { background: rgba(248,113,113,.08); }

/* ─── Tables ─────────────────────────────────────── */
.tbl-wrap {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)),
        var(--sp-surface);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.adm-content > table {
    display: table;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)),
        var(--sp-surface);
}

thead tr { background: rgba(255,255,255,.022); }
th {
    text-align: left; padding: .6rem .95rem;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--adm-nav-text);
    border-bottom: 1px solid var(--sp-border);
}
td { padding: .7rem .95rem; font-size: .875rem; border-bottom: 1px solid var(--sp-border); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.018); }

/* ─── Toolbar ────────────────────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* ─── Log entries ────────────────────────────────── */
.log-entry {
    display: grid;
    grid-template-columns: 72px 92px minmax(180px, 280px) minmax(0, 1fr);
    gap: .75rem;
    align-items: baseline;
    padding: .42rem 0; border-bottom: 1px solid var(--sp-border);
    font-size: .84rem;
}
.log-time { color: var(--adm-nav-text); font-size: .76rem; white-space: nowrap; font-family: monospace; }
.log-level-warn { color: #fbbf24; }
.log-level-error, .log-level-critical { color: #f87171; }

/* ─── Empty state ────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--adm-nav-text);
    font-size: .875rem;
    border: 1px dashed rgba(148,163,184,.22);
    border-radius: var(--sp-radius);
    background: rgba(15,23,42,.18);
}

/* ─── Form fields ────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; color: var(--adm-nav-text); margin-bottom: .35rem; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; padding: .55rem .8rem;
    background: var(--sp-bg); border: 1px solid var(--sp-border);
    border-radius: 7px; color: var(--sp-text); font-size: .875rem;
    font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--sp-primary); border-color: transparent;
}

.admin-form-shell {
    width: min(100%, 1320px);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-form-grid .field {
    margin-bottom: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.product-bundles-page {
    max-width: none;
}

.product-bundles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-bundles-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-bundles-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.product-editor-grid {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) minmax(320px, 390px);
    gap: 1.25rem;
    align-items: start;
}

.product-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1rem;
}

.product-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: .85rem;
}

.product-plugin-tree {
    display: grid;
    gap: .75rem;
}

.product-plugin-folder {
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    background: rgba(255,255,255,.012);
}

.product-plugin-folder[open] {
    padding-bottom: .75rem;
}

.product-plugin-folder-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    cursor: pointer;
    color: var(--adm-text);
    font-size: .86rem;
    font-weight: 700;
}

.product-plugin-folder-name {
    overflow-wrap: anywhere;
}

.product-plugin-folder-children {
    display: grid;
    gap: .65rem;
    margin-left: .85rem;
    padding: .1rem .85rem 0 .75rem;
    border-left: 1px solid var(--sp-border);
}

.product-plugin-card {
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    padding: .85rem;
    min-width: 0;
    background: rgba(255,255,255,.015);
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: .65rem;
}

.product-list-button {
    justify-content: flex-start;
    min-height: 72px;
    text-align: left;
    width: 100%;
}

.product-list-button-active {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 1px var(--sp-primary);
    background: rgba(114,230,193,.045);
}

.product-plugin-card code,
.product-bundles-page code {
    overflow-wrap: anywhere;
}

.product-wizard-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(3, 7, 18, .72);
    backdrop-filter: blur(5px);
}

.product-wizard-dialog {
    width: min(1080px, calc(100vw - 3rem));
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sp-surface);
    border: 1px solid rgba(114,230,193,.28);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.product-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--sp-border);
}

.product-wizard-steps {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem 0;
}

.product-wizard-body {
    overflow: auto;
    padding: 1rem 1.5rem;
}

.product-wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sp-border);
    background: rgba(255,255,255,.015);
}

.product-wizard-plugin-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.mini-stat {
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 12px;
    padding: .9rem 1rem;
    background:
        linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
        rgba(15, 23, 42, .28);
    min-width: 0;
}

.mini-stat > div {
    color: var(--adm-nav-text);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.mini-stat > strong {
    display: block;
    color: var(--sp-text);
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.product-analysis-page {
    max-width: none;
}

.product-analysis-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0 0, rgba(94, 234, 212, .08), transparent 34%),
        rgba(15, 23, 42, .42);
}

.product-analysis-layout-toolbar label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    color: #93a4c7;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-analysis-layout-toolbar input[type="range"] {
    width: min(280px, 42vw);
    accent-color: var(--sp-accent);
}

.product-analysis-layout-toolbar span {
    min-width: 4.6rem;
    color: var(--sp-text);
    font-size: .78rem;
    text-transform: none;
}

.product-analysis-grid {
    display: grid;
    grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.product-analysis-side-stack {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.product-analysis-card {
    min-width: 0;
    min-height: 94px;
    max-height: calc(100vh - 10rem);
    overflow: auto;
    resize: vertical;
}

.product-analysis-card-setup {
    resize: both;
}

.product-analysis-card.collapsed {
    resize: none;
    min-height: auto;
    overflow: visible;
}

.product-analysis-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-analysis-card-header h2 {
    margin: .15rem 0 0;
}

.product-analysis-card-eyebrow {
    margin-bottom: .45rem;
    color: var(--adm-nav-text);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-analysis-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.product-analysis-card-body {
    min-width: 0;
}

.product-analysis-output {
    min-height: 320px;
    max-height: 560px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
    padding: 1rem;
    color: var(--sp-text);
    background: rgba(3, 7, 18, .45);
    border: 1px solid var(--sp-border);
    border-radius: 10px;
}

.product-analysis-progress {
    margin: .5rem 0;
}

.product-analysis-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    overflow: hidden;
}

.product-analysis-progress-fill {
    height: 100%;
    background: var(--sp-primary);
    border-radius: 999px;
    transition: width .3s ease;
}

.product-analysis-progress-fill.indeterminate {
    width: 30% !important;
    animation: product-analysis-progress-slide 1.2s ease-in-out infinite;
}

.product-analysis-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--adm-nav-text);
    margin-top: .3rem;
}

@keyframes product-analysis-progress-slide {
    0% { margin-left: -30%; }
    100% { margin-left: 100%; }
}

.product-analysis-checks-field {
    min-width: 0;
}

.product-analysis-check-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 .75rem;
    color: var(--sp-muted);
    font-size: .78rem;
}

.product-analysis-check-toolbar > div {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.product-analysis-quick-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    margin: 0 0 .75rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(94, 234, 212, .22);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, .10), rgba(56, 189, 248, .05)),
        rgba(15, 23, 42, .28);
}

.product-analysis-quick-select > div {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.product-analysis-quick-select strong {
    color: var(--sp-text);
    font-size: .84rem;
}

.product-analysis-quick-select span {
    color: var(--sp-muted);
    font-size: .76rem;
}

.product-analysis-mini-btn {
    padding: .35rem .6rem;
    font-size: .78rem;
}

.product-analysis-check-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
    margin-bottom: .75rem;
}

.product-analysis-check-filter input {
    width: 100%;
    min-width: 0;
    padding: .72rem .85rem;
    color: var(--sp-text);
    background: rgba(3, 7, 18, .45);
    border: 1px solid rgba(96, 165, 250, .26);
    border-radius: 12px;
}

.product-analysis-check-filter input:focus {
    border-color: rgba(94, 234, 212, .7);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .12);
}

.product-analysis-check-list {
    display: grid;
    gap: .85rem;
    max-height: 430px;
    overflow: auto;
    padding: .75rem;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 0, rgba(94, 234, 212, .06), transparent 32%),
        rgba(3, 7, 18, .24);
    scrollbar-color: rgba(94, 234, 212, .55) rgba(15, 23, 42, .75);
}

.product-analysis-check-group {
    display: grid;
    gap: 0;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(15, 23, 42, .34);
    overflow: hidden;
}

.product-analysis-check-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .75rem;
    color: #93a4c7;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    user-select: none;
}

.product-analysis-tree-toggle {
    appearance: none;
    border: 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    color: #06100d;
    background: var(--sp-accent);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
}

.product-analysis-tree-toggle::before {
    content: "+";
}

.product-analysis-check-group.expanded .product-analysis-tree-toggle::before {
    content: "-";
}

.product-analysis-tree-toggle:focus-visible {
    outline: 2px solid rgba(94, 234, 212, .78);
    outline-offset: 2px;
}

.product-analysis-check-group-body {
    display: grid;
    gap: .45rem;
    padding: 0 .75rem .75rem;
}

.product-analysis-check-group-title > div:first-child {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.product-analysis-check-group-title span {
    overflow-wrap: anywhere;
}

.product-analysis-check-group-title small {
    flex: none;
    color: #64748b;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: none;
}

.product-analysis-check-group-actions {
    display: flex;
    gap: .35rem;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-analysis-check-group-actions .product-analysis-mini-btn {
    padding: .28rem .5rem;
    font-size: .72rem;
}

.product-analysis-check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    min-width: 0;
    padding: .7rem .75rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    color: #dbe7ff;
    background: rgba(15, 23, 42, .58);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.product-analysis-check-row:hover {
    border-color: rgba(94, 234, 212, .42);
    background: rgba(15, 23, 42, .82);
    transform: translateY(-1px);
}

.product-analysis-check-row.selected {
    border-color: rgba(94, 234, 212, .65);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(59, 130, 246, .08)),
        rgba(15, 23, 42, .8);
}

.product-analysis-check-row input {
    width: 1rem;
    height: 1rem;
    margin-top: .15rem;
    accent-color: var(--sp-accent);
}

.product-analysis-check-copy {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.product-analysis-check-copy strong {
    color: #f8fbff;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.product-analysis-check-copy small {
    color: #93a4c7;
    font-size: .74rem;
    line-height: 1.35;
}

.product-analysis-empty-checks {
    padding: 1rem;
    color: #93a4c7;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, .24);
    border-radius: 12px;
    background: rgba(15, 23, 42, .34);
}

.product-analysis-help {
    margin-top: .45rem;
    color: #93a4c7;
    font-size: .75rem;
    line-height: 1.4;
}

.product-analysis-selection-summary {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .85rem;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 14px;
    background: rgba(3, 7, 18, .22);
}

.product-analysis-selection-summary > div {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.product-analysis-selection-summary span {
    color: #93a4c7;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-analysis-selection-summary strong,
.product-analysis-selection-summary code {
    color: #f8fbff;
    font-size: .82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-analysis-selection-summary code,
.product-analysis-help code {
    color: var(--sp-accent);
}

.product-analysis-test-project-summary {
    display: grid;
    gap: .85rem;
    margin-top: .85rem;
    padding: 1rem;
    border: 1px solid rgba(94, 234, 212, .24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0 0, rgba(94, 234, 212, .08), transparent 36%),
        rgba(3, 7, 18, .28);
}

.product-analysis-test-project-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.product-analysis-test-project-summary-head h3 {
    margin: .1rem 0 0;
    color: #f8fbff;
    font-size: 1.05rem;
}

.product-analysis-test-project-summary-head p {
    margin: .35rem 0 0;
    color: #93a4c7;
    font-size: .8rem;
    line-height: 1.45;
}

.product-analysis-test-project-facts,
.product-analysis-test-project-datasources {
    display: grid;
    gap: .65rem;
}

.product-analysis-test-project-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-analysis-test-project-datasources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-analysis-test-project-facts > div,
.product-analysis-test-project-datasources > div {
    display: grid;
    gap: .25rem;
    min-width: 0;
    padding: .75rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    background: rgba(15, 23, 42, .48);
}

.product-analysis-test-project-facts span,
.product-analysis-test-project-datasources span {
    color: #93a4c7;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-analysis-test-project-facts strong,
.product-analysis-test-project-datasources strong {
    color: #f8fbff;
    font-size: .84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-analysis-test-project-checks {
    display: grid;
    gap: .65rem;
}

.product-analysis-test-project-checks section {
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 14px;
    background: rgba(15, 23, 42, .36);
    overflow: hidden;
}

.product-analysis-test-project-checks section > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.product-analysis-test-project-checks section > div strong {
    color: #f8fbff;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.product-analysis-test-project-checks section > div span {
    flex: 0 0 auto;
    color: #93a4c7;
    font-size: .72rem;
}

.product-analysis-test-project-checks ul {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: .7rem .85rem .8rem 1.65rem;
    color: #dbe7ff;
    font-size: .78rem;
    line-height: 1.35;
}

.product-analysis-test-project-warning {
    display: grid;
    gap: .35rem;
    margin: 0;
}

.product-analysis-test-project-warning code {
    color: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-analysis-run-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.product-analysis-prep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.product-analysis-prep-option {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .8rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(15, 23, 42, .46);
    color: #dbe7ff;
}

.product-analysis-prep-option input {
    margin-top: .18rem;
}

.product-analysis-prep-option span {
    display: grid;
    gap: .25rem;
}

.product-analysis-prep-option small {
    color: #93a4c7;
    line-height: 1.35;
}

.product-analysis-seed-card {
    border: 1px solid rgba(96, 165, 250, .20);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0)),
        rgba(3, 7, 18, .26);
    margin: 1rem 0;
    padding: 1rem;
}

.product-analysis-seed-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-analysis-seed-card-head h3 {
    color: #f8fbff;
    margin: .15rem 0 .25rem;
}

.product-analysis-seed-card-head p {
    color: #93a4c7;
    margin: 0;
}

.product-analysis-seed-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.product-analysis-seed-capabilities {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: .85rem 0 1rem;
}

.product-analysis-seed-capability {
    align-items: flex-start;
    background: rgba(15, 23, 42, .46);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 14px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .85rem;
}

.product-analysis-seed-capability.available {
    border-color: rgba(94, 234, 212, .28);
}

.product-analysis-seed-capability.unavailable {
    background: rgba(15, 23, 42, .24);
    opacity: .72;
}

.product-analysis-seed-capability strong,
.product-analysis-seed-capability small {
    display: block;
}

.product-analysis-seed-capability strong {
    color: #f8fbff;
}

.product-analysis-seed-capability small {
    color: #93a4c7;
    line-height: 1.35;
    margin-top: .2rem;
}

.product-analysis-seed-file {
    grid-column: span 2;
}

.product-analysis-file-picker {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .45rem;
}

.product-analysis-file-picker input[type="file"] {
    background: rgba(3, 7, 18, .28);
    border: 1px dashed rgba(94, 234, 212, .28);
    border-radius: 10px;
    color: #93a4c7;
    font-size: .82rem;
    max-width: 100%;
    padding: .45rem;
}

.product-analysis-file-picker small {
    color: #93a4c7;
}

.product-analysis-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.product-analysis-run-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
}

.product-analysis-runner-card {
    margin-bottom: 1rem;
}

.product-analysis-runner-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-analysis-runner-summary {
    margin-top: .85rem;
}

.product-analysis-plan-grid td small {
    color: var(--sp-muted);
    display: block;
    margin-top: .2rem;
}

.product-analysis-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
}

.product-analysis-confirm-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.product-analysis-confirm-row input {
    max-width: 320px;
}

.product-analysis-modal-backdrop {
    align-items: center;
    background: rgba(2, 6, 23, .72);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 4000;
}

.product-analysis-wizard-dialog {
    background: var(--sp-surface, #0f172a);
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, .32);
    color: var(--sp-text, #dbe7ff);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
    max-width: 1180px;
    overflow: hidden;
    width: min(1180px, 100%);
}

.product-analysis-run-plan-dialog {
    max-width: 1080px;
    width: min(1080px, 100%);
}

.product-analysis-run-plan-dialog .product-analysis-wizard-header,
.product-analysis-run-plan-dialog .product-analysis-wizard-footer {
    background: rgba(15, 23, 42, .42);
}

.product-analysis-wizard-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
}

.product-analysis-wizard-header h2 {
    margin: .1rem 0;
}

.product-analysis-wizard-header p {
    color: var(--sp-muted);
    margin: .15rem 0 0;
}

.product-analysis-wizard-steps {
    background: rgba(15, 23, 42, .34);
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .85rem 1.25rem;
}

.product-analysis-wizard-step {
    align-items: center;
    background: rgba(15, 23, 42, .46);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    color: #93a4c7;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: .45rem;
    padding: .5rem .75rem;
    text-align: left;
}

.product-analysis-wizard-step span {
    align-items: center;
    background: rgba(94, 234, 212, .10);
    border-radius: 999px;
    color: var(--sp-accent);
    display: inline-flex;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.product-analysis-wizard-step.active {
    border-color: rgba(94, 234, 212, .45);
    color: #f8fbff;
    box-shadow: 0 10px 26px rgba(45, 212, 191, .10);
}

.product-analysis-wizard-step.active span,
.product-analysis-wizard-step.complete span {
    background: var(--sp-accent);
    color: #06100d;
}

.product-analysis-wizard-body {
    overflow: auto;
    padding: 1.25rem;
}

.product-analysis-run-plan-body {
    display: grid;
    flex: 1 1 auto;
    gap: 1rem;
    min-height: 0;
    overflow: auto;
    padding: 1.25rem;
}

.product-analysis-run-plan-list {
    display: grid;
    gap: .65rem;
}

.product-analysis-run-plan-controls {
    display: grid;
    gap: .8rem;
    grid-template-columns: 1fr;
}

.product-analysis-run-plan-controls section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, 0)),
        rgba(3, 7, 18, .26);
    border: 1px solid rgba(96, 165, 250, .20);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
    padding: .9rem;
}

.product-analysis-run-plan-controls h3,
.product-analysis-run-plan-subtitle {
    color: #dbe7ff;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0;
    text-transform: uppercase;
}

.product-analysis-run-plan-controls p {
    color: var(--sp-muted);
    line-height: 1.35;
    margin: .2rem 0 0;
}

.product-analysis-run-plan-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: .5rem;
}

.product-analysis-run-plan-check,
.product-analysis-run-plan-task label {
    align-items: flex-start;
    color: #dbe7ff;
    display: flex;
    gap: .55rem;
    margin: 0;
}

.product-analysis-run-plan-check input,
.product-analysis-run-plan-task input,
.product-analysis-run-plan-check-cell input {
    accent-color: var(--sp-accent);
    flex: 0 0 auto;
    margin-top: .18rem;
}

.product-analysis-run-plan-check input:disabled,
.product-analysis-run-plan-task input:disabled,
.product-analysis-run-plan-check-cell input:disabled {
    opacity: .58;
}

.product-analysis-run-plan-check span,
.product-analysis-run-plan-task span {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.product-analysis-run-plan-check small,
.product-analysis-run-plan-task small {
    color: var(--sp-muted);
    line-height: 1.3;
}

.product-analysis-run-plan-task-list {
    display: grid;
    gap: .55rem;
}

.product-analysis-run-plan-task {
    background: rgba(15, 23, 42, .46);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .7rem;
}

.product-analysis-run-plan-task-actions {
    align-items: center;
    display: flex;
    gap: .35rem;
}

.product-analysis-run-plan-subtitle {
    margin-top: .25rem;
}

.product-analysis-run-plan-table {
    background: rgba(2, 6, 23, .24);
    border: 1px solid rgba(148, 163, 184, .18);
    border-collapse: separate;
    border-radius: 12px;
    border-spacing: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.product-analysis-run-plan-table th,
.product-analysis-run-plan-table td {
    background: rgba(15, 23, 42, .36);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    color: #dbe7ff;
    padding: .65rem .75rem;
    text-align: left;
    vertical-align: middle;
}

.product-analysis-run-plan-table th {
    background: rgba(30, 41, 59, .68);
    color: #93a4c7;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-analysis-run-plan-table tr:last-child td {
    border-bottom: 0;
}

.product-analysis-run-plan-table th:first-child,
.product-analysis-run-plan-table td:first-child {
    text-align: center;
    width: 56px;
}

.product-analysis-run-plan-table th:last-child,
.product-analysis-run-plan-table td:last-child {
    width: 160px;
}

.product-analysis-run-plan-table tbody tr:hover td {
    background: rgba(30, 41, 59, .46);
}

.product-analysis-run-plan-table strong {
    color: #f8fbff;
    font-weight: 750;
}

.product-analysis-run-plan-table small {
    color: #93a4c7;
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-analysis-run-plan-table .badge {
    background: rgba(94, 234, 212, .10);
    border: 1px solid rgba(94, 234, 212, .18);
    color: #99f6e4;
    white-space: nowrap;
}

.product-analysis-run-plan-table .badge-err {
    background: rgba(248, 113, 113, .10);
    border-color: rgba(248, 113, 113, .26);
    color: #fca5a5;
}

.product-analysis-run-plan-check-cell input {
    margin: 0;
}

.product-analysis-run-plan-warning-row td {
    background: rgba(127, 29, 29, .16);
}

.product-analysis-run-plan-warning-row:hover td {
    background: rgba(127, 29, 29, .22);
}

.product-analysis-run-plan-step {
    align-items: flex-start;
    background: rgba(15, 23, 42, .46);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 14px;
    display: grid;
    gap: .75rem;
    grid-template-columns: auto 1fr;
    padding: .85rem;
}

.product-analysis-run-plan-step > span {
    align-items: center;
    background: rgba(94, 234, 212, .12);
    border-radius: 999px;
    color: var(--sp-accent);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.product-analysis-run-plan-step strong {
    color: #f8fbff;
    display: block;
    margin-bottom: .2rem;
}

.product-analysis-run-plan-step p {
    color: #93a4c7;
    line-height: 1.4;
    margin: 0;
}

.product-analysis-run-plan-step.skipped {
    background: rgba(15, 23, 42, .22);
    opacity: .68;
}

.product-analysis-run-plan-step.skipped > span {
    background: rgba(100, 116, 139, .16);
    color: #94a3b8;
}

.product-analysis-run-plan-step.destructive {
    border-color: rgba(239, 68, 68, .28);
}

.product-analysis-run-plan-step.destructive > span {
    background: rgba(248, 113, 113, .12);
    color: #fca5a5;
}

.product-analysis-run-plan-note {
    margin: 0;
}

.product-analysis-wizard-section {
    background: rgba(3, 7, 18, .20);
    border: 1px solid rgba(96, 165, 250, .20);
    border-radius: 16px;
    padding: 1rem;
}

.product-analysis-wizard-section h3 {
    color: #f8fbff;
    margin: 0 0 .25rem;
}

.product-analysis-wizard-section > p {
    color: #93a4c7;
    margin: 0 0 .9rem;
}

.product-analysis-datasource-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-analysis-wizard-check-list {
    max-height: 440px;
}

.product-analysis-wizard-footer {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .28);
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    justify-content: space-between;
    padding: .95rem 1.25rem;
}

.product-analysis-wizard-validation {
    color: #fbbf24;
    font-weight: 700;
}

@media (max-width: 980px) {
    .product-analysis-run-grid,
    .product-analysis-runner-grid,
    .product-analysis-datasource-grid,
    .product-analysis-wizard-steps {
        grid-template-columns: 1fr;
    }

    .product-analysis-run-plan-task {
        grid-template-columns: 1fr;
    }

    .product-analysis-run-plan-task-actions {
        justify-content: flex-end;
    }

    .product-analysis-modal-backdrop {
        align-items: stretch;
        padding: .75rem;
    }
}

.product-analysis-seed-enabled label {
    align-items: center;
    display: flex;
    gap: .45rem;
    margin-top: 1.65rem;
}

.product-analysis-seed-grid {
    margin-top: .85rem;
}

.product-analysis-test-project-seeds {
    display: grid;
    gap: .5rem;
    margin: .85rem 0;
}

.product-analysis-test-project-seeds > div {
    align-items: center;
    background: rgba(15, 23, 42, .46);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    display: grid;
    gap: .3rem;
    grid-template-columns: auto 1fr;
    padding: .65rem .75rem;
}

.product-analysis-test-project-seeds small {
    color: #93a4c7;
    grid-column: 2;
}

.product-runtime-actions {
    display: flex;
    align-items: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-runtime-port-field {
    flex: 1 1 240px;
    margin-bottom: 0;
}

.product-runtime-port-field input {
    max-width: 280px;
}

@media (max-width: 1250px) {
    .product-editor-grid {
        grid-template-columns: 1fr;
    }

    .product-analysis-grid {
        grid-template-columns: 1fr;
    }

    .product-analysis-card,
    .product-analysis-card-setup {
        resize: vertical;
    }

    .product-analysis-test-project-facts,
    .product-analysis-test-project-datasources {
        grid-template-columns: 1fr;
    }

    .product-analysis-test-project-summary-head {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .adm {
        display: block;
    }

    .adm-sidebar {
        position: relative;
        width: auto;
        height: auto;
        min-height: 0;
    }

    .adm-nav {
        display: flex;
        gap: .35rem;
        overflow-x: auto;
        padding: .7rem;
    }

    .nav-sep,
    .adm-userrow {
        display: none;
    }

    .adm-nav a {
        flex: none;
    }

    .log-entry {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .product-bundles-header {
        align-items: stretch;
        flex-direction: column;
    }

    .product-bundles-actions {
        justify-content: flex-start;
    }

    .product-plugin-grid {
        grid-template-columns: 1fr;
    }

    .product-wizard-backdrop {
        padding: .75rem;
    }

    .product-wizard-dialog {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
    }

    .product-wizard-header,
    .product-wizard-footer {
        align-items: stretch;
        flex-direction: column;
    }
}
