/* Console v4 — editorial layout aligned with site-home */

.site-console {
    --con-primary: #1D1D1F;
    --con-accent: #2997FF;
    --con-text: #1D1D1F;
    --con-muted: #4B4B50;
    --con-border: #E8E8ED;
}

/* ── Anti-flash ── */
#console-dashboard { display: none; }
#console-auth-wall { display: none; }
html.site-auth-logged-in #console-dashboard { display: block; }
html.site-auth-guest #console-auth-wall { display: block; }
html:not(.console-ui-ready) #console-shell { opacity: 0; }
html.console-ui-ready #console-shell { opacity: 1; transition: opacity 0.2s ease; }

.con-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 1024px) {
    .con-shell { padding: 0 2rem; }
}

/* ── Buttons / badges / forms ── */
.site-console .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.62rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.18s, background 0.18s;
    font-family: inherit;
    white-space: nowrap;
}

.site-console .btn-primary,
.site-console .btn-ocean {
    background: #1D1D1F;
    color: #fff;
}

.site-console .btn-primary:hover,
.site-console .btn-ocean:hover {
    background: #000;
    transform: translateY(-1px);
}

.site-console .btn-accent,
.site-console .btn-secondary,
.site-console .btn-ghost {
    background: #fff;
    color: #1D1D1F;
    border: 1px solid var(--con-border);
}

.site-console .btn-ghost {
    background: rgba(29, 29, 31, 0.04);
}

.site-console .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-console .badge-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.site-console .badge-orange { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.site-console .badge-primary { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.site-console .badge-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.site-console .badge-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.site-console .form-group { margin-bottom: 1.1rem; text-align: left; }
.site-console .form-label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--con-text); margin-bottom: 0.45rem; }
.site-console .form-select,
.site-console .form-input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    background: #F5F5F7;
    border: 1px solid var(--con-border);
    border-radius: 0.85rem;
    color: var(--con-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
}
.site-console .form-select:focus,
.site-console .form-input:focus {
    border-color: #1D1D1F;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.site-console .form-error { color: #ef4444; font-size: 0.84rem; font-weight: 600; display: none; }
.site-console .form-error.is-visible { display: block; }
.site-console .form-row-code { display: flex; gap: 0.55rem; }
.site-console .form-row-code .form-input { flex: 1; min-width: 0; }

/* ── Modals ── */
.site-console .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.site-console .modal-overlay.is-open { display: flex; }

.site-console .modal-card,
.site-console .card.modal-card {
    background: #fff;
    border-radius: 1.75rem;
    padding: 1.75rem;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--con-border);
    box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.2);
    animation: conModalIn 0.28s ease forwards;
}
.site-console .modal-card.modal-wide { max-width: 580px; }
.site-console .modal-card.modal-xl { max-width: 760px; }

.site-console .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: #F5F5F7;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.site-console .modal-title {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--con-text);
    margin-bottom: 0.4rem;
}
.site-console .modal-subtitle { color: var(--con-muted); font-size: 0.88rem; font-weight: 400; margin-bottom: 1.1rem; }

@keyframes conModalIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   AUTH WALL
   ══════════════════════════════════════ */
.console-auth-wall { padding-bottom: 0; }
.console-auth-wall .reveal-up { opacity: 1; transform: none; }
.con-auth-wrap { padding-bottom: 2rem; }
.con-auth-masthead { border-bottom: none; margin-bottom: 0; padding-bottom: 2rem; }

.con-auth-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.75rem;
    margin-top: 0.5rem;
    margin-left: auto;
    background: #1D1D1F;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    transition: transform 0.2s, background 0.2s;
}
.con-auth-cta-primary:hover { background: #000; transform: scale(1.03); color: #fff; }

@media (max-width: 1023px) {
    .con-auth-cta-primary { margin-left: 0; width: 100%; justify-content: center; }
}

.con-auth-bento { margin-bottom: 3rem; }
.con-auth-icon { display: block; font-size: 1.75rem; color: #F5F5F7; margin-bottom: 1.25rem; }
.con-auth-icon--dark { color: #1D1D1F; }

.con-auth-band-inline { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) {
    .con-auth-band-inline { flex-direction: row; align-items: center; justify-content: space-between; }
}

.con-auth-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid #E8E8ED;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #1D1D1F;
    background: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}
.con-auth-cta-secondary:hover { background: #F5F5F7; color: #1D1D1F; }

.con-auth-band {
    margin-top: 1rem;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.con-auth-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.con-auth-band-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3.5rem;
    padding: 0 1.75rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}
.con-auth-band-btn:hover { transform: scale(1.03); }
.con-auth-band-btn--light { background: #fff; color: #1D1D1F; }
.con-auth-band-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.con-auth-band-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ══════════════════════════════════════
   DASHBOARD — editorial
   ══════════════════════════════════════ */
.con-dash { padding-bottom: 4rem; }

.con-dash-wrap {
    padding-left: 0;
    padding-right: 0;
}

.con-dash-masthead {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}

.con-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

@media (min-width: 1024px) {
    .con-dash-actions { justify-content: flex-end; }
}

.con-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 2.75rem;
    padding: 0 1.35rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.con-dash-btn:hover { transform: scale(1.03); }

.con-dash-btn--primary {
    background: #1D1D1F;
    color: #fff;
}

.con-dash-btn--primary:hover {
    background: #000;
    color: #fff;
}

.con-dash-btn--ghost {
    background: #fff;
    color: #1D1D1F;
    border-color: #E8E8ED;
}

.con-dash-btn--ghost:hover {
    background: #F5F5F7;
    color: #1D1D1F;
}

.con-dash-btn--sm {
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 12px;
}

.con-dash-stats {
    margin-bottom: 4rem;
}

.con-dash-stats .site-stat-val {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* ── Workbench: sidebar + workspace ── */
.con-workbench {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .con-workbench {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
}

.con-sidebar {
    background: #fff;
    border: 1px solid #E8E8ED;
    border-radius: 1.75rem;
    padding: 1.25rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .con-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.con-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #E8E8ED;
}

.con-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
    letter-spacing: -0.01em;
}

.con-sidebar-title i { font-size: 1.15rem; color: #6A6A6F; }

.con-sidebar-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid #E8E8ED;
    color: #1D1D1F;
    background: #F5F5F7;
    transition: background 0.2s, transform 0.2s;
}

.con-sidebar-add:hover {
    background: #1D1D1F;
    color: #fff;
    transform: scale(1.05);
}

.con-node-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 28rem;
    overflow-y: auto;
}

.con-node-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.con-node-item:hover {
    background: #F5F5F7;
}

.con-node-item.active {
    background: #1D1D1F;
    color: #fff;
    border-color: #1D1D1F;
}

.con-node-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    grid-row: span 2;
    align-self: center;
}

.con-node-item.active .con-node-dot {
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.con-node-name {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1D1D1F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.con-node-item.active .con-node-name { color: #fff; }

.con-node-meta {
    grid-column: 2;
    font-size: 0.72rem;
    font-weight: 400;
    color: #4B4B50;
}

.con-node-item.active .con-node-meta { color: #D1D1D6; }

.con-node-item .badge {
    grid-column: 3;
    grid-row: span 2;
    align-self: center;
    font-size: 0.55rem;
    padding: 0.18rem 0.45rem;
}

.con-node-item.active .badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #F5F5F7 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.con-node-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 0.35rem;
    border-radius: 1rem;
    border: 1px dashed #D2D2D7;
    background: #F5F5F7;
    color: #4B4B50;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.con-node-add:hover {
    background: #fff;
    border-color: #1D1D1F;
    color: #1D1D1F;
}

.con-node-add i { font-size: 1rem; }

/* ── Workspace / detail ── */
.con-workspace {
    background: linear-gradient(145deg, #fff, #F5F5F7);
    border: 1px solid #fff;
    border-radius: 1.75rem;
    padding: 1.75rem;
    min-height: 22rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.con-workspace-loading,
.console-empty-devices {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 18rem;
    color: var(--con-muted);
    font-weight: 500;
    text-align: center;
    gap: 0.75rem;
}

.con-workspace-loading i,
.console-empty-devices i {
    font-size: 2rem;
    color: #D2D2D7;
}

.console-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E8E8ED;
}

.console-detail-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.console-detail-title-row h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--con-text);
}

.console-period-tag {
    font-size: 0.64rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #F5F5F7;
    color: #424245;
    border: 1px solid #E8E8ED;
}

.console-detail-desc,
.console-detail-expiry {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--con-muted);
    line-height: 1.6;
}

.console-action-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.console-action-btn {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.78rem !important;
}

.console-action-btn.danger {
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.con-workspace-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .con-workspace-body { grid-template-columns: 1fr 1.1fr; }
}

.con-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.con-spec-item {
    padding: 1rem 0.85rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #E8E8ED;
}

.con-spec-item strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #636366;
    margin-bottom: 0.35rem;
}

.con-spec-item .stat-val {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1D1D1F;
}

.con-connect-panel {
    background: #1D1D1F;
    border-radius: 1.5rem;
    padding: 1.35rem;
    color: #fff;
}

.con-connect-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D1D1D6;
    margin-bottom: 1rem;
}

.con-connect-head i { font-size: 1rem; }

.con-connect-stack { display: flex; flex-direction: column; gap: 1rem; }

.terminal-block {
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
    border-radius: 1rem;
    font-family: ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: #F2F2F7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.6;
}

.console-block-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: #C7C7CC;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
    font-family: inherit;
}

.console-kv-grid { display: grid; gap: 0.4rem; margin-bottom: 0.65rem; }
.console-kv-grid > div { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.kv-label { color: #C7C7CC; font-size: 0.62rem; font-weight: 600; font-family: inherit; }
.kv-val { color: #F0F0F5; flex: 1; word-break: break-all; }

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E5E5EA;
    font-size: 0.56rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    cursor: pointer;
    font-family: inherit;
}
.copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }

.console-ssh-cmd {
    color: #4ade80;
    font-size: 0.72rem;
    word-break: break-all;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.console-vnc-hint {
    color: #C7C7CC;
    font-size: 0.66rem;
    margin-top: 0.5rem;
    font-family: inherit;
    font-weight: 400;
}

/* ── Ops bento ── */
.con-ops-bento {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .con-ops-bento .con-ops-cell--orders { grid-column: span 6; }
    .con-ops-bento .con-ops-cell--tickets { grid-column: span 6; }
}

.con-ops-cell {
    display: flex;
    flex-direction: column;
    min-height: 22rem;
    padding: 1.75rem !important;
}

.con-ops-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.con-ops-index {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #8A8A8F;
    margin-bottom: 0.35rem;
}

.con-ops-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1D1D1F;
    margin: 0;
}

.con-ops-title i { font-size: 1.35rem; color: #6A6A6F; }

.con-ops-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.con-ops-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.con-ops-pill {
    flex: 1 1 calc(33.333% - 0.35rem);
    min-width: min(100%, 5.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.85rem 0.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #E8E8ED;
    text-align: center;
}

.con-ops-cell--orders .con-ops-pill,
.con-ops-cell--tickets .con-ops-pill {
    background: rgba(255, 255, 255, 0.7);
}

.con-ops-pill-val {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1D1D1F;
    line-height: 1;
}

.con-ops-pill-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #4B4B50;
    margin-top: 0.35rem;
}

.con-ops-pill.pending .con-ops-pill-val { color: #d97706; }
.con-ops-pill.shipped .con-ops-pill-val { color: #059669; }
.con-ops-pill.activated .con-ops-pill-val { color: #2997FF; }
.con-ops-pill.processing .con-ops-pill-val { color: #2997FF; }
.con-ops-pill.resolved .con-ops-pill-val { color: #059669; }

/* ── Record lists ── */
.con-record-zone,
.con-table-zone,
.console-orders-table-wrap {
    overflow: hidden;
    border: 1px solid #E8E8ED;
    border-radius: 1rem;
    background: #fff;
    margin-top: auto;
    flex: 1;
}

.con-record-zone { display: flex; flex-direction: column; }

.con-record {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-bottom: 1px solid #E8E8ED;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.con-record:last-child { border-bottom: none; }

.con-record:hover,
.con-record:focus-visible {
    background: #F5F5F7;
    outline: none;
}

.con-record-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.con-record-top-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.con-record-id {
    font-family: "Outfit", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--con-text);
    letter-spacing: -0.01em;
    word-break: break-all;
}

.con-record-amount {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--con-text);
    white-space: nowrap;
}

.con-record-title {
    font-size: 0.86rem;
    font-weight: 500;
    color: #38383A;
    line-height: 1.45;
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.con-record-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.con-record-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #F5F5F7;
    border: 1px solid #E8E8ED;
    font-size: 0.7rem;
    font-weight: 500;
    color: #4B4B50;
    line-height: 1.35;
    word-break: break-word;
}

.con-record-tag--muted {
    background: transparent;
    border-color: #E8E8ED;
    color: var(--con-muted);
}

.con-record-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--con-muted);
}

/* ── Modal detail blocks ── */
.console-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.console-orders-table th {
    padding: 0.7rem 0.85rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6A6A6F;
    background: #F5F5F7;
    border-bottom: 1px solid var(--con-border);
    white-space: nowrap;
}

.console-orders-table-wrap { overflow-x: auto; }

.console-orders-table td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #E8E8ED;
    font-weight: 500;
    color: #38383A;
}

.console-orders-table tr:last-child td { border-bottom: none; }
.console-orders-table tr.clickable-row { cursor: pointer; }
.console-orders-table tr.clickable-row:hover td { background: #F5F5F7; }
.console-table-empty { text-align: center !important; color: var(--con-muted) !important; padding: 2rem !important; }

.ticket-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1rem; }
.ticket-detail-meta dt { font-size: 0.64rem; font-weight: 700; color: var(--con-muted); text-transform: uppercase; margin-bottom: 0.2rem; }
.ticket-detail-meta dd { font-size: 0.86rem; font-weight: 600; color: var(--con-text); margin: 0; }
.ticket-desc-box { background: #F5F5F7; border: 1px solid var(--con-border); border-radius: 0.85rem; padding: 0.9rem; font-size: 0.86rem; font-weight: 500; line-height: 1.6; white-space: pre-wrap; margin-bottom: 1rem; }
.ticket-replies { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; max-height: 16rem; overflow-y: auto; }
.ticket-reply-item { background: #F5F5F7; border: 1px solid var(--con-border); border-radius: 0.85rem; padding: 0.8rem; }
.ticket-reply-item.is-admin { background: #fff; border-color: #E8E8ED; }
.ticket-reply-head { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.ticket-reply-author { font-size: 0.8rem; font-weight: 700; }
.ticket-reply-time { font-size: 0.68rem; color: var(--con-muted); font-weight: 500; }
.ticket-reply-body { font-size: 0.84rem; font-weight: 500; line-height: 1.55; white-space: pre-wrap; }
.ticket-reply-form { border-top: 1px solid var(--con-border); padding-top: 0.9rem; }

.order-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-detail-rows { margin-bottom: 1rem; }
.order-detail-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--con-border); font-size: 0.86rem; font-weight: 600; }
.order-detail-row dt { color: var(--con-muted); font-weight: 500; }
.order-detail-row dd { margin: 0; color: var(--con-text); text-align: right; }
.order-items-box { background: #F5F5F7; border: 1px solid var(--con-border); border-radius: 0.85rem; padding: 0.9rem; margin-bottom: 0.85rem; }
.order-items-title { font-weight: 700; margin-bottom: 0.6rem; }
.order-item-main, .order-item-sub { display: flex; justify-content: space-between; gap: 0.65rem; font-weight: 600; }
.order-item-sub { font-size: 0.76rem; color: var(--con-muted); font-weight: 500; }
.order-addons-box { background: #F5F5F7; border: 1px solid #E8E8ED; border-radius: 0.85rem; padding: 0.9rem; margin-bottom: 0.85rem; }
.order-addons-title { font-weight: 700; color: #1D1D1F; margin-bottom: 0.6rem; }
.order-addon-item { font-size: 0.84rem; font-weight: 600; padding: 0.15rem 0; }
.order-detail-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
.order-detail-total-label { font-weight: 700; }
.order-detail-total-value {
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--con-primary);
}

.site-console .payment-gateway-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid var(--con-border);
    cursor: pointer;
}
.site-console .payment-gateway-item:hover { border-color: #1D1D1F; }
.site-console .payment-gateway-item.is-selected { border-color: #1D1D1F; background: rgba(29, 29, 31, 0.03); }

/* Legacy aliases */
.node-item { }
.stat-grid.console-spec-grid { display: contents; }
.console-connect-grid { display: contents; }
.console-overview { display: none; }
.console-layout { display: contents; }
.sidebar { display: contents; }
.console-main { display: contents; }
.console-card { border: none; box-shadow: none; background: transparent; padding: 0; }
.console-section { display: contents; }
.console-section-gap { display: contents; }

@media (max-width: 768px) {
    .console-orders-table .hide-sm,
    .console-orders-table .hide-md { display: none; }
    .con-dash-actions { width: 100%; }
    .con-dash-actions .con-dash-btn { flex: 1; }
}

@media (max-width: 640px) {
    .con-ops-pill { flex: 1 1 100%; }
    .con-workspace { padding: 1.25rem; }
    .con-ops-cell { padding: 1.35rem !important; min-height: auto; }
}

@media (max-width: 480px) {
    .con-dash-stats .site-stat { padding: 1.5rem 1rem; }
}
