/**
 * TheNeedohPlug Ace Needoh Monitor
 * Version: 1.0.38
 * Updated: 2026-05-07 08:16 PM ET
 * File: assets/style.css
 * Purpose: Public home page and private dashboard styling.
 */

:root {
    --bg: #08090b;
    --panel: #12141a;
    --panel2: #181b22;
    --text: #f5f7fb;
    --muted: #a7afbf;
    --line: #2a2f3a;
    --border: #2a2f3a;
    --good: #2bd576;
    --warn: #ffd166;
    --bad: #ff5a5f;
    --error: #ff8f3f;
    --unknown: #9aa3b2;
    --accent: #8b5cf6;
    --accent-2: #ff4fc3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}
a { color: inherit; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 26px;
    background: #0d0f14;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.subbrand { color: var(--muted); font-size: 13px; margin-top: 2px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
}
.nav a.active, .nav a:hover { color: var(--text); border-color: var(--accent); }
.container { max-width: 1260px; margin: 0 auto; padding: 26px; }
.footer {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 26px 40px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
h1 { margin: 0 0 6px; font-size: 30px; }
h2 { margin: 0 0 16px; font-size: 20px; }
p { color: var(--muted); margin: 0 0 14px; }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: linear-gradient(180deg, var(--panel), #101218);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.metric { font-size: 34px; font-weight: 800; margin-top: 6px; }
.metric-label { color: var(--muted); font-size: 13px; }
.toolbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
    flex-wrap: wrap;
}
.btn, button, input[type="submit"] {
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    display: inline-block;
}
.btn.primary, button.primary, input[type="submit"].primary { background: var(--accent); border-color: var(--accent); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 13px; background: #11131a; }
tr:last-child td { border-bottom: none; }
.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}
.status-good { background: rgba(43,213,118,.13); color: var(--good); }
.status-warn { background: rgba(255,209,102,.13); color: var(--warn); }
.status-bad { background: rgba(255,90,95,.13); color: var(--bad); }
.status-error { background: rgba(255,143,63,.13); color: var(--error); }
.status-unknown { background: rgba(154,163,178,.13); color: var(--unknown); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { color: var(--muted); font-size: 13px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="number"], input[type="url"], textarea, select {
    width: 100%;
    background: #0c0e13;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
}
textarea { min-height: 94px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.notice {
    background: rgba(139,92,246,.15);
    border: 1px solid rgba(139,92,246,.45);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 18px;
}
.error-box {
    background: rgba(255,90,95,.12);
    border: 1px solid rgba(255,90,95,.45);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 18px;
}
.small-muted { color: var(--muted); font-size: 12px; }
.nowrap { white-space: nowrap; }
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card { width: 100%; max-width: 420px; }
.code {
    font-family: Consolas, Monaco, monospace;
    background: #08090b;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    overflow-x: auto;
    color: #d7def0;
}
@media (max-width: 900px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .nav { justify-content: flex-start; }
    .grid.cards, .grid.two, .form-grid { grid-template-columns: 1fr; }
    .container { padding: 18px; }
}

.pre-wrap { white-space: pre-wrap; max-height: 420px; overflow: auto; }


/* Version 1.0.15 responsive cleanup */
.topbar {
    flex-wrap: wrap;
    align-items: flex-start;
}
.topbar > div:first-child {
    flex: 0 0 auto;
}
.nav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}
.nav a {
    white-space: nowrap;
}
.container,
.footer {
    width: 100%;
}
.inventory-toolbar {
    align-items: flex-start;
}
.inventory-toolbar > div {
    max-width: 840px;
}
.filter-card {
    overflow: visible;
}
.inventory-filter-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}
.filter-button-field button {
    width: 100%;
}
.inventory-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.inventory-table {
    min-width: 1320px;
    table-layout: fixed;
}
.inventory-table th,
.inventory-table td {
    overflow-wrap: anywhere;
    word-break: normal;
}
.inventory-table .col-product { width: 180px; }
.inventory-table .col-store { width: 145px; }
.inventory-table .col-status { width: 170px; }
.inventory-table .col-qty { width: 64px; }
.inventory-table .col-price { width: 90px; }
.inventory-table .col-date { width: 150px; }
.inventory-table .col-message { width: 230px; }
.inventory-table .col-links { width: 130px; }
.product-cell,
.store-cell {
    font-weight: 700;
}
.message-cell {
    line-height: 1.45;
}
.links-cell a {
    display: inline-block;
    margin-bottom: 3px;
}
.small-cell-text {
    font-size: 13px;
}
@media (max-width: 1180px) {
    .topbar {
        flex-direction: column;
    }
    .nav {
        justify-content: flex-start;
    }
}
@media (max-width: 720px) {
    .inventory-filter-grid {
        grid-template-columns: 1fr;
    }
    .inventory-table {
        min-width: 1180px;
    }
    .inventory-table .col-message { width: 200px; }
}

/* Version 1.0.16 compact inventory and discovery cleanup */
.inventory-table-wrap {
    overflow-x: auto;
}
.inventory-table {
    min-width: 1420px;
    table-layout: fixed;
    font-size: 12px;
}
.inventory-table th,
.inventory-table td {
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.inventory-table .col-product { width: 210px; }
.inventory-table .col-store { width: 160px; }
.inventory-table .col-status { width: 155px; }
.inventory-table .col-qty { width: 58px; text-align: center; }
.inventory-table .col-price { width: 82px; }
.inventory-table .col-date { width: 140px; }
.inventory-table .col-message { width: 330px; }
.inventory-table .col-links { width: 180px; }
.inventory-table .product-cell,
.inventory-table .store-cell {
    font-weight: 700;
}
.inventory-table .status-pill {
    padding: 5px 8px;
    font-size: 11px;
}
.inventory-table .message-cell {
    max-width: 330px;
    line-height: 1.25;
}
.inventory-table .links-cell {
    display: table-cell;
}
.inventory-table .links-cell a {
    display: inline;
    margin: 0 6px 0 0;
    font-size: 12px;
}
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compact-table {
    font-size: 13px;
    min-width: 1050px;
}
.compact-table th,
.compact-table td {
    padding: 9px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.inline-form {
    display: inline-block;
    margin: 0 4px 0 0;
}
.inline-form button.small,
button.small {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.actions-cell {
    overflow: visible !important;
}
.discovery-run-grid {
    grid-template-columns: minmax(220px, 1fr) 160px minmax(220px, 1fr);
    align-items: end;
}
.discovery-filter-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}
.discovery-table th:nth-child(1) { width: 350px; }
.discovery-table th:nth-child(2) { width: 95px; }
.discovery-table th:nth-child(3) { width: 90px; }
.discovery-table th:nth-child(4) { width: 115px; }
.discovery-table th:nth-child(5) { width: 150px; }
.discovery-table th:nth-child(6) { width: 160px; }
.discovery-table th:nth-child(7) { width: 260px; }
.small-metric {
    font-size: 18px;
    line-height: 1.25;
    word-break: break-word;
}
@media (max-width: 900px) {
    .discovery-run-grid,
    .discovery-filter-grid {
        grid-template-columns: 1fr;
    }
}


/* Version 1.0.17 inventory polish */
.inventory-table {
    min-width: 1260px;
    font-size: 11.5px;
}
.inventory-table th,
.inventory-table td {
    padding: 7px 9px;
    line-height: 1.2;
}
.inventory-table .col-product { width: 205px; }
.inventory-table .col-store { width: 120px; }
.inventory-table .col-status { width: 100px; }
.inventory-table .col-qty { width: 52px; }
.inventory-table .col-price { width: 74px; }
.inventory-table .col-date { width: 128px; }
.inventory-table .col-message { width: 320px; }
.inventory-table .col-links { width: 155px; }
.inventory-table .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}
.store-map-link {
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(245, 247, 251, .45);
}
.store-map-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
@media (max-width: 720px) {
    .inventory-table {
        min-width: 1180px;
    }
}

/* Version 1.0.19 persistent inventory message visibility */
.inventory-options-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 12px 0 0;
}
.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    user-select: none;
}
.toggle-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}
.inventory-table.messages-hidden .col-message,
.inventory-table.messages-hidden .message-cell {
    display: none;
}
.inventory-table.messages-hidden {
    min-width: 950px;
}
.inventory-table.messages-hidden .col-product { width: 230px; }
.inventory-table.messages-hidden .col-store { width: 130px; }
.inventory-table.messages-hidden .col-status { width: 100px; }
.inventory-table.messages-hidden .col-qty { width: 52px; }
.inventory-table.messages-hidden .col-price { width: 74px; }
.inventory-table.messages-hidden .col-date { width: 130px; }
.inventory-table.messages-hidden .col-links { width: 165px; }


/* Version 1.0.20 tighter inventory columns with readable product names */
.inventory-table-wrap {
    overflow-x: auto;
}
.inventory-table,
.inventory-table.messages-hidden {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    font-size: 11px;
}
.inventory-table th,
.inventory-table td,
.inventory-table.messages-hidden th,
.inventory-table.messages-hidden td {
    padding: 7px 8px;
    line-height: 1.25;
}
.inventory-table .col-product,
.inventory-table.messages-hidden .col-product {
    width: 390px;
}
.inventory-table .product-cell,
.inventory-table.messages-hidden .product-cell {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    max-width: 390px;
}
.inventory-table .col-store,
.inventory-table.messages-hidden .col-store {
    width: 110px;
}
.inventory-table .store-cell,
.inventory-table.messages-hidden .store-cell {
    max-width: 110px;
}
.inventory-table .col-status,
.inventory-table.messages-hidden .col-status {
    width: 86px;
}
.inventory-table .status-cell,
.inventory-table.messages-hidden .status-cell {
    max-width: 86px;
}
.inventory-table .status-pill,
.inventory-table.messages-hidden .status-pill {
    padding: 4px 8px;
    font-size: 10.5px;
}
.inventory-table .col-qty,
.inventory-table.messages-hidden .col-qty {
    width: 42px;
}
.inventory-table .col-price,
.inventory-table.messages-hidden .col-price {
    width: 66px;
}
.inventory-table .col-date,
.inventory-table.messages-hidden .col-date {
    width: 108px;
}
.inventory-table .date-cell,
.inventory-table.messages-hidden .date-cell {
    font-size: 10.5px;
}
.inventory-table .col-message {
    width: 280px;
}
.inventory-table .message-cell {
    max-width: 280px;
}
.inventory-table .col-links,
.inventory-table.messages-hidden .col-links {
    width: 118px;
}
.inventory-table .links-cell,
.inventory-table.messages-hidden .links-cell {
    max-width: 118px;
}
.inventory-table .links-cell a,
.inventory-table.messages-hidden .links-cell a {
    margin-right: 7px;
    font-size: 11px;
}
.inventory-table td.product-cell {
    height: auto;
}
.inventory-table th:nth-child(3),
.inventory-table td:nth-child(3),
.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4) {
    text-align: left;
}
@media (max-width: 900px) {
    .inventory-table,
    .inventory-table.messages-hidden {
        min-width: 1050px;
    }
}

/* Version 1.0.21 inventory spacing refinement */
.inventory-table,
.inventory-table.messages-hidden {
    font-size: 10.8px;
}
.inventory-table th,
.inventory-table td,
.inventory-table.messages-hidden th,
.inventory-table.messages-hidden td {
    padding: 6px 6px;
    vertical-align: middle;
}
.inventory-table .col-product,
.inventory-table.messages-hidden .col-product {
    width: 310px;
}
.inventory-table .product-cell,
.inventory-table.messages-hidden .product-cell {
    max-width: 310px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    font-weight: 700;
}
.inventory-table .col-store,
.inventory-table.messages-hidden .col-store {
    width: 94px;
}
.inventory-table .store-cell,
.inventory-table.messages-hidden .store-cell {
    max-width: 94px;
    padding-left: 2px;
}
.inventory-table .col-status,
.inventory-table.messages-hidden .col-status {
    width: 82px;
}
.inventory-table .status-cell,
.inventory-table.messages-hidden .status-cell {
    max-width: 82px;
    padding-left: 2px;
}
.inventory-table .status-pill,
.inventory-table.messages-hidden .status-pill {
    padding: 3px 7px;
    font-size: 10.2px;
}
.inventory-table .col-qty,
.inventory-table.messages-hidden .col-qty {
    width: 36px;
    text-align: center;
}
.inventory-table .col-price,
.inventory-table.messages-hidden .col-price {
    width: 62px;
}
.inventory-table .col-date,
.inventory-table.messages-hidden .col-date {
    width: 106px;
}
.inventory-table .col-links,
.inventory-table.messages-hidden .col-links {
    width: 208px;
}
.inventory-table .links-cell,
.inventory-table.messages-hidden .links-cell {
    max-width: none;
    white-space: nowrap;
}
.inventory-table .links-cell a,
.inventory-table.messages-hidden .links-cell a {
    display: inline-block;
    margin-right: 10px;
    font-size: 10.8px;
}
.inventory-table .links-cell a:last-child,
.inventory-table.messages-hidden .links-cell a:last-child {
    margin-right: 0;
}
.inventory-table.messages-hidden {
    min-width: 1000px;
}
@media (max-width: 900px) {
    .inventory-table,
    .inventory-table.messages-hidden {
        min-width: 1020px;
    }
}



/* Version 1.0.22 centered compact inventory table */
.inventory-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.inventory-table,
.inventory-table.messages-hidden {
    width: max-content;
    min-width: unset;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}
.inventory-table.messages-hidden {
    min-width: 1004px;
}
.inventory-table:not(.messages-hidden) {
    min-width: 1284px;
}
.inventory-table .col-product,
.inventory-table.messages-hidden .col-product {
    width: 320px;
}
.inventory-table .product-cell,
.inventory-table.messages-hidden .product-cell {
    max-width: 320px;
}
.inventory-table .col-store,
.inventory-table.messages-hidden .col-store {
    width: 96px;
}
.inventory-table .store-cell,
.inventory-table.messages-hidden .store-cell {
    max-width: 96px;
}
.inventory-table .col-status,
.inventory-table.messages-hidden .col-status {
    width: 82px;
}
.inventory-table .col-qty,
.inventory-table.messages-hidden .col-qty {
    width: 36px;
}
.inventory-table .col-price,
.inventory-table.messages-hidden .col-price {
    width: 62px;
}
.inventory-table .col-date,
.inventory-table.messages-hidden .col-date {
    width: 106px;
}
.inventory-table .col-links,
.inventory-table.messages-hidden .col-links {
    width: 202px;
}
.inventory-table .links-cell,
.inventory-table.messages-hidden .links-cell {
    max-width: 202px;
}
@media (max-width: 1100px) {
    .inventory-table,
    .inventory-table.messages-hidden {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Version 1.0.23 inventory font bump */
.inventory-table,
.inventory-table.messages-hidden {
    font-size: 12.8px;
}
.inventory-table th,
.inventory-table td,
.inventory-table.messages-hidden th,
.inventory-table.messages-hidden td {
    padding-top: 7px;
    padding-bottom: 7px;
}
.inventory-table .product-cell,
.inventory-table.messages-hidden .product-cell,
.inventory-table .store-cell,
.inventory-table.messages-hidden .store-cell {
    line-height: 1.22;
}
.inventory-table .status-pill,
.inventory-table.messages-hidden .status-pill {
    font-size: 11.8px;
    padding: 4px 8px;
}
.inventory-table .date-cell,
.inventory-table.messages-hidden .date-cell {
    font-size: 12px;
}
.inventory-table .links-cell a,
.inventory-table.messages-hidden .links-cell a {
    font-size: 12.5px;
}

/* Version 1.0.24 dashboard inventory-style tables */
.dashboard-table-card .table-wrap {
    margin-top: 10px;
}
.dashboard-inventory-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard-inventory-table,
.dashboard-inventory-table.messages-hidden {
    width: max-content;
    min-width: 860px;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
    font-size: 12.8px;
}
.dashboard-inventory-table .col-product { width: 320px; }
.dashboard-inventory-table .col-store { width: 96px; }
.dashboard-inventory-table .col-status { width: 82px; }
.dashboard-inventory-table .col-qty { width: 36px; }
.dashboard-inventory-table .col-price { width: 62px; }
.dashboard-inventory-table .col-date { width: 106px; }
.dashboard-inventory-table .col-links { width: 120px; }
.dashboard-inventory-table th,
.dashboard-inventory-table td {
    padding: 7px 6px;
    line-height: 1.22;
    vertical-align: middle;
}
.dashboard-inventory-table .product-cell {
    max-width: 320px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 700;
}
.dashboard-inventory-table .store-cell {
    max-width: 96px;
    padding-left: 2px;
    font-weight: 700;
}
.dashboard-inventory-table .status-cell {
    max-width: 82px;
    padding-left: 2px;
}
.dashboard-inventory-table .status-pill {
    font-size: 11.8px;
    padding: 4px 8px;
}
.dashboard-inventory-table .date-cell {
    font-size: 12px;
}
.dashboard-inventory-table .links-cell {
    max-width: 120px;
    white-space: nowrap;
}
.dashboard-inventory-table .links-cell a {
    display: inline-block;
    margin-right: 10px;
    font-size: 12.5px;
}
.dashboard-inventory-table .links-cell a:last-child {
    margin-right: 0;
}
@media (max-width: 1100px) {
    .dashboard-inventory-table,
    .dashboard-inventory-table.messages-hidden {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Version 1.0.25 dashboard Recent Changes spacing refinement */
.dashboard-table-card {
    padding: 18px 20px 22px;
}
.dashboard-table-card .table-wrap {
    width: 100%;
}
.dashboard-inventory-table,
.dashboard-inventory-table.messages-hidden {
    width: 100%;
    min-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}
.dashboard-inventory-table .col-product { width: 390px; }
.dashboard-inventory-table .col-store { width: 135px; }
.dashboard-inventory-table .col-status { width: 108px; }
.dashboard-inventory-table .col-qty { width: 48px; }
.dashboard-inventory-table .col-price { width: 70px; }
.dashboard-inventory-table .col-date { width: 132px; }
.dashboard-inventory-table .col-links { width: 140px; }
.dashboard-inventory-table th,
.dashboard-inventory-table td {
    padding-left: 8px;
    padding-right: 8px;
}
.dashboard-inventory-table .product-cell {
    max-width: 390px;
    white-space: normal;
    line-height: 1.22;
}
.dashboard-inventory-table .store-cell {
    max-width: 135px;
    padding-left: 8px;
    padding-right: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-inventory-table .status-cell {
    max-width: 108px;
    padding-left: 12px;
}
.dashboard-inventory-table .links-cell {
    max-width: 140px;
    white-space: nowrap;
}
.dashboard-inventory-table .links-cell a {
    margin-right: 14px;
}
.dashboard-inventory-table .links-cell a:last-child {
    margin-right: 0;
}
@media (max-width: 1180px) {
    .dashboard-inventory-table,
    .dashboard-inventory-table.messages-hidden {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Version 1.0.26 inventory column balance fix */
.inventory-table-wrap {
    padding-left: 0;
    padding-right: 0;
}
.inventory-table,
.inventory-table.messages-hidden {
    width: 100%;
    min-width: 1180px;
    margin-left: 0;
    margin-right: 0;
    table-layout: fixed;
}
.inventory-table:not(.messages-hidden) {
    min-width: 1460px;
}
.inventory-table .col-product,
.inventory-table.messages-hidden .col-product {
    width: 330px;
}
.inventory-table .product-cell,
.inventory-table.messages-hidden .product-cell {
    max-width: 330px;
    padding-left: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}
.inventory-table .col-store,
.inventory-table.messages-hidden .col-store {
    width: 138px;
}
.inventory-table .store-cell,
.inventory-table.messages-hidden .store-cell {
    max-width: 138px;
    padding-left: 10px;
    padding-right: 18px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.inventory-table .store-cell.truncate,
.inventory-table.messages-hidden .store-cell.truncate {
    overflow: visible;
    text-overflow: clip;
}
.inventory-table .col-status,
.inventory-table.messages-hidden .col-status {
    width: 112px;
}
.inventory-table .status-cell,
.inventory-table.messages-hidden .status-cell {
    max-width: 112px;
    padding-left: 18px;
}
.inventory-table .col-qty,
.inventory-table.messages-hidden .col-qty {
    width: 50px;
}
.inventory-table .col-price,
.inventory-table.messages-hidden .col-price {
    width: 72px;
}
.inventory-table .col-date,
.inventory-table.messages-hidden .col-date {
    width: 128px;
}
.inventory-table .col-links,
.inventory-table.messages-hidden .col-links {
    width: 192px;
}
.inventory-table .links-cell,
.inventory-table.messages-hidden .links-cell {
    max-width: 192px;
}
.inventory-table .links-cell a,
.inventory-table.messages-hidden .links-cell a {
    margin-right: 13px;
}
.inventory-table .links-cell a:last-child,
.inventory-table.messages-hidden .links-cell a:last-child {
    margin-right: 0;
}

/* Version 1.0.27 dashboard/discovery cron status boxes */
.dashboard-status-card,
.discovery-status-card {
    padding: 18px 20px 20px;
}
.dashboard-status-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.dashboard-status-header h2,
.discovery-status-card h2 {
    margin-bottom: 4px;
}
.dashboard-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.status-mini-card {
    padding: 14px;
    min-height: 112px;
}
.status-mini-card .metric {
    font-size: 22px;
    line-height: 1.1;
}
.status-mini-card .small-metric {
    font-size: 16px;
    line-height: 1.25;
    word-break: normal;
}
.status-mini-card .small-muted {
    margin-top: 8px;
    margin-bottom: 0;
}
.dashboard-status-error {
    margin-top: 14px;
}
@media (max-width: 1050px) {
    .dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .dashboard-status-grid {
        grid-template-columns: 1fr;
    }
}


/* Version 1.0.33 dashboard monitor cleanup + neon available alert */
.available-alert-card {
    border-color: rgba(43, 213, 118, .95) !important;
    background: radial-gradient(circle at 22% 18%, rgba(43, 213, 118, .34), rgba(18, 20, 26, .92) 54%) !important;
    box-shadow: 0 0 0 1px rgba(43, 213, 118, .55), 0 0 28px rgba(43, 213, 118, .38), 0 14px 40px rgba(0, 0, 0, .28) !important;
}
.available-alert-card .metric-label,
.available-alert-card .metric {
    color: #64ff9b !important;
    text-shadow: 0 0 14px rgba(43, 213, 118, .8);
}
.available-alert-card .metric {
    font-size: 40px;
}
.status-mini-card {
    min-height: 132px;
}
.status-mini-card p.small-muted {
    line-height: 1.2;
}
.dashboard-table-card:first-of-type {
    margin-top: 0;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
}

.inline-check input {
    width: auto;
    accent-color: var(--accent);
}

.check-field {
    justify-content: end;
}


/* Version 1.0.36 dashboard auto-refresh indicator */
.dashboard-status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auto-refresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--muted);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.auto-refresh-pill strong {
    color: var(--accent-2);
    font-weight: 900;
}

@media (max-width: 620px) {
    .dashboard-status-actions {
        justify-content: flex-start;
    }
}

/* Version 1.0.38 public home page */
.public-home-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 5%, rgba(255, 61, 172, .22), transparent 32%),
        radial-gradient(circle at 80% 12%, rgba(99, 255, 46, .18), transparent 30%),
        #050507;
}

.public-home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.public-hero-card {
    width: min(1180px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: rgba(10, 11, 15, .92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .44);
}

.public-hero-banner {
    display: block;
    width: 100%;
    height: auto;
}

.public-home-content {
    padding: 34px;
    text-align: center;
}

.public-kicker {
    margin: 0 0 10px;
    color: #99ff31;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.public-home-content h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 8vw, 84px);
    line-height: .92;
    letter-spacing: -.05em;
    color: #fff;
    text-shadow: 0 0 28px rgba(255, 61, 172, .52);
}

.public-lead {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #d8dce8;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.42;
}

.public-social-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.public-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.public-social-btn.instagram {
    background: linear-gradient(135deg, #ff2fa2, #8b5cf6);
}

.public-social-btn.facebook {
    background: #1877f2;
}

.public-social-btn.secondary {
    background: rgba(255, 255, 255, .08);
}

.public-social-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.public-note {
    margin: 0;
    color: #aeb5c7;
    font-size: 15px;
}

@media (max-width: 720px) {
    .public-home {
        padding: 14px;
        align-items: flex-start;
    }

    .public-hero-card {
        border-radius: 18px;
    }

    .public-home-content {
        padding: 24px 18px 28px;
    }

    .public-social-btn {
        width: 100%;
    }
}
