@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Neutrals — cool enterprise slate */
    --bg: #f5f6f8;
    --bg-tint: #eef1f6;
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --surface-3: #f7f9fc;
    --text: #0b1220;
    --muted: #5b6472;
    --faint: #8a93a2;
    --line: #e4e8ef;
    --line-soft: #eef1f6;

    /* Brand — refined green */
    --primary: #12805b;
    --primary-strong: #0b5e43;
    --primary-soft: #e7f4ee;
    --ink: #0b1220;

    /* Semantic */
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --danger-line: #fbc9c4;
    --warning: #b54708;
    --warning-soft: #fff8ef;
    --good: #087443;
    --info: #175cd3;
    --info-soft: #eff5ff;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
    --shadow: 0 1px 3px rgba(11, 18, 32, 0.06), 0 12px 28px -14px rgba(11, 18, 32, 0.16);
    --shadow-lg: 0 28px 56px -20px rgba(11, 18, 32, 0.22);
    --shadow-focus: 0 0 0 3px rgba(18, 128, 91, 0.16);

    /* Geometry */
    --r-sm: 8px;
    --r: 11px;
    --r-lg: 16px;
    --r-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(18, 128, 91, 0.05), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(23, 92, 211, 0.04), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.006em;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

button,
input {
    font: inherit;
    letter-spacing: inherit;
}

/* Tabular numerals wherever numbers must align */
.data-table,
.details dd,
.status-strip strong,
.summary-item strong,
.product-meta strong,
.mono {
    font-variant-numeric: tabular-nums;
}

/* ---------- Topbar ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

.topbar > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Layout ---------- */

.workspace {
    width: min(1180px, calc(100vw - 40px));
    margin: 30px auto 64px;
}

.product-home {
    width: min(1040px, calc(100vw - 40px));
}

.eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- Page intro ---------- */

.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--surface)),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.page-intro h2 {
    margin-top: 6px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.compact-intro {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
}

.intro-copy {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Product cards ---------- */

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

.product-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #cfd6e2;
    box-shadow: var(--shadow-lg);
}

.product-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(160deg, #1c2637, var(--ink));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.product-main strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.product-main small,
.product-meta span,
.product-foot span {
    color: var(--muted);
    font-size: 13px;
}

.product-main small {
    overflow-wrap: anywhere;
}

.product-meta {
    display: grid;
    gap: 5px;
    min-width: 86px;
    padding-left: 20px;
    border-left: 1px solid var(--line-soft);
}

.product-meta span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-meta strong {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
}

.product-foot {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.product-foot span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-foot strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
}

.product-foot strong::after {
    content: "→";
    transition: transform 180ms ease;
}

.product-card:hover .product-foot strong::after {
    transform: translateX(3px);
}

/* ---------- Status strip ---------- */

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--line);
    box-shadow: var(--shadow-sm);
}

.status-strip > div {
    min-width: 0;
    padding: 16px 18px;
    background: var(--surface);
}

.status-strip span,
.meta,
.muted {
    color: var(--muted);
}

.status-strip span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-strip strong {
    display: block;
    margin-top: 7px;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ---------- Panels ---------- */

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 20px;
}

.panel,
.login-modal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.panel {
    padding: 24px;
}

.grid-two + .panel,
.panel + .panel,
.grid-two + .grid-two,
.panel + .table-grid,
.grid-two + .table-grid,
.panel + section {
    margin-top: 20px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-header h2 {
    margin-top: 3px;
}

.meta {
    font-size: 13px;
}

.meta strong {
    color: var(--text);
    text-transform: capitalize;
}

/* ---------- Upload ---------- */

.upload-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.file-input {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--muted);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.file-input span {
    flex: 0 0 auto;
    margin-right: 10px;
    font-weight: 600;
    color: var(--text);
}

.file-input input {
    min-width: 0;
    color: var(--muted);
}

.file-input input::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Buttons ---------- */

.button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.button:hover:not(:disabled) {
    border-color: #cfd6e2;
    background: var(--surface-3);
}

.button:active:not(:disabled) {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(180deg, #16916a, var(--primary));
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--primary);
    border-radius: var(--r-sm);
}

.file-input:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-focus);
}

.user-chip {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 12px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Progress ---------- */

.progress {
    height: 8px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: var(--r-pill);
    background: var(--bg-tint);
}

.progress div {
    width: 0;
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--primary), #1fa574);
    transition: width 220ms ease;
}

#upload-message {
    margin-top: 12px;
    font-size: 13px;
}

/* ---------- Details ---------- */

.details {
    display: grid;
    gap: 14px;
    margin: 0;
}

.details div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

/* ---------- Tables ---------- */

.table-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.table-panel {
    padding: 0;
    overflow: hidden;
}

.table-panel .panel-header {
    margin: 0;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line-soft);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}

.data-table th {
    position: sticky;
    top: 0;
    color: var(--muted);
    background: var(--surface-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    color: var(--text);
}

.data-table tbody tr {
    transition: background 120ms ease;
}

.data-table tbody tr:hover td {
    background: var(--surface-2);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Clickable rows -> per-domain detail */
.data-table tbody tr[data-href] {
    cursor: pointer;
}

.data-table tbody tr[data-href]:hover td {
    background: var(--surface-3);
}

.col-go {
    width: 28px;
    padding-left: 0 !important;
    text-align: right;
}

.col-go .chev {
    color: var(--faint);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.data-table tbody tr[data-href]:hover .chev {
    color: var(--primary);
    opacity: 1;
    transform: translateX(0);
}

/* Inline SVG icon baseline */
.ico {
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
}

/* Key chip + copy icon-button */
.key-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 4px 3px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
}

.key-text {
    font-size: 12.5px;
    color: var(--text);
    letter-spacing: 0;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.copy-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.copy-btn.is-copied {
    color: var(--good);
}

/* Detail page: license actions */
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

/* Detail page: version compare band */
.version-compare {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface-2);
}

.vc-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--faint);
}

.vc-col strong {
    font-size: 17px;
    font-weight: 700;
}

.vc-arrow {
    color: var(--faint);
}

.version-compare .status-pill {
    margin-left: auto;
}

/* Detail page: stat tiles */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--faint);
}

.stat-sub {
    font-size: 12px;
}

/* Detail page: empty installed-site panel */
.empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--r);
    background: var(--surface-2);
    text-align: center;
}

.empty-panel .ico {
    color: var(--faint);
}

.empty-panel p {
    max-width: 46ch;
    line-height: 1.55;
}

/* Keyboard focus + motion */
.copy-btn:focus-visible,
.button:focus-visible,
.data-table tbody tr[data-href]:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

@media (prefers-reduced-motion: reduce) {
    .col-go .chev,
    .copy-btn,
    .data-table tbody tr {
        transition: none;
    }
}

.empty-cell {
    height: 88px;
    color: var(--faint) !important;
    text-align: center !important;
    font-style: italic;
}

/* ---------- Pills / badges ---------- */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-width: 64px;
    height: 24px;
    padding: 0 11px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-clean,
.status-active {
    background: var(--primary-soft);
    color: var(--good);
}

.status-revoked {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-suspended {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-installed {
    background: var(--bg-tint);
    color: var(--muted);
}

.status-expired {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-pending {
    background: var(--info-soft);
    color: var(--info);
}

.status-update {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-stale {
    background: var(--bg-tint);
    color: var(--faint);
}

.status-unknown {
    background: var(--bg-tint);
    color: var(--muted);
}

.table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--muted);
}

.table-summary strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
}

/* ---------- Notices ---------- */

.notice {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.notice-danger {
    border: 1px solid var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}

.notice-good {
    border: 1px solid #a6e3c4;
    background: var(--primary-soft);
    color: var(--good);
}

.notice code {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(8, 116, 67, 0.1);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.notice-danger code {
    background: rgba(180, 35, 24, 0.08);
}

.text-good {
    color: var(--good);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.hidden {
    display: none;
}

/* ---------- Scan result ---------- */

#scan-result {
    margin-top: 20px;
    scroll-margin-top: 90px;
}

.scan-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-item {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.summary-item span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-item strong {
    display: block;
    margin-top: 7px;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.findings {
    display: grid;
    gap: 10px;
}

.findings .table-wrap {
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
}

.scan-table td:nth-child(3),
.scan-table td:nth-child(4) {
    min-width: 220px;
}

.finding {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.severity {
    width: 76px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.severity-high {
    background: var(--danger-soft);
    color: var(--danger);
}

.severity-medium {
    background: var(--warning-soft);
    color: var(--warning);
}

.severity-low {
    background: var(--info-soft);
    color: var(--info);
}

.finding-path {
    margin-top: 4px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* ---------- Licensing ---------- */

.panel h3 {
    margin: 26px 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.panel h3:first-of-type {
    margin-top: 4px;
}

.license-form {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 18px;
    margin-bottom: 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    background: var(--surface-2);
}

.license-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    width: 100%;
}

.license-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}

.license-form-grid input,
.stack input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.inline-form + .inline-form {
    margin-left: 8px;
}

/* Compact action buttons inside data rows keep rows from getting tall */
.data-table .button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

/* ---------- Login ---------- */

.login-screen {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(18, 128, 91, 0.1), transparent 60%),
        radial-gradient(700px 400px at 90% 100%, rgba(23, 92, 211, 0.06), transparent 55%),
        var(--bg);
}

.login-shell {
    width: min(420px, 100%);
}

.login-modal {
    padding: 32px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.login-modal h1 {
    margin-top: 4px;
    font-size: 24px;
}

.stack {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.stack label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.stack .button {
    margin-top: 6px;
    height: 46px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .topbar,
    .upload-box,
    .grid-two,
    .status-strip,
    .scan-summary,
    .page-intro,
    .compact-intro,
    .product-card {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
        gap: 14px;
        padding: 16px 20px;
    }

    .topbar form {
        flex-wrap: wrap;
    }

    .workspace {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
    }

    .page-intro,
    .panel {
        padding: 20px;
    }

    .details div,
    .finding {
        grid-template-columns: 1fr;
    }

    .product-card {
        gap: 14px;
    }

    .product-meta {
        padding-left: 0;
        border-left: 0;
    }

    .product-foot {
        grid-column: 1;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
