:root {
    --bg: #12081f;
    --panel: rgba(23, 16, 47, 0.88);
    --panel-strong: rgba(34, 24, 68, 0.95);
    --ink: #f7f3ff;
    --muted: #c8bbef;
    --yellow: #ffe066;
    --blue: #28c7ff;
    --green: #6fff8f;
    --red: #ff5f87;
    --brown: #8f7cff;
    --line: rgba(108, 240, 255, 0.35);
    --shadow: 0 14px 30px rgba(5, 2, 15, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Press Start 2P", "VT323", "Lucida Console", "Courier New", monospace;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 56, 146, 0.32), transparent 24%),
        radial-gradient(circle at top right, rgba(40, 199, 255, 0.28), transparent 24%),
        radial-gradient(circle at bottom center, rgba(111, 255, 143, 0.12), transparent 28%),
        linear-gradient(180deg, #1d0b34 0%, #0a0820 100%);
    image-rendering: pixelated;
}

body.boot-active {
    overflow: hidden;
}

.auth-body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "header header"
        "topnav topnav"
        "main detail"
        "footer footer";
    gap: 16px;
    padding: 16px;
}

.app-shell.no-detail-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "topnav"
        "main"
        "footer";
}

.app-shell.no-detail-panel .detail-panel {
    display: none;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(680px, 100%);
    padding: 28px;
}

.app-header,
.top-nav-panel,
.main-workspace,
.detail-panel,
.app-footer {
    border: 2px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel-card,
.job-note,
.inventory-card,
.board-toolbar,
.auth-card {
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.panel-card::before,
.inventory-card::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
    pointer-events: none;
}

.config-sections {
    display: grid;
    gap: 18px;
}

.config-section {
    overflow: hidden;
}

.config-section-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.config-section-summary::-webkit-details-marker {
    display: none;
}

.config-section-summary::before {
    content: "+";
    order: 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--yellow);
    background: rgba(10, 8, 28, 0.45);
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.config-section[open] .config-section-summary::before {
    content: "-";
}

.config-section-summary .eyebrow {
    margin-bottom: 6px;
}

.config-section-summary h2 {
    margin-bottom: 0;
}

.config-section-body {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(108, 240, 255, 0.16);
}

.config-inner-card {
    padding: 18px;
}

.config-grid-gap,
.config-top-gap {
    margin-top: 18px;
}

.app-header {
    grid-area: header;
    background:
        linear-gradient(135deg, rgba(255, 95, 135, 0.95), rgba(111, 85, 255, 0.92)),
        linear-gradient(135deg, #fff6d6, #f5e8ba);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.header-logo-slot {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 2px solid rgba(44, 42, 39, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    flex: 0 0 auto;
}

.auth-logo-slot {
    width: 92px;
    height: 92px;
}

.header-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.header-logo-placeholder {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.6);
}

.eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--muted);
}

.app-header h1,
.board-toolbar h2,
.panel-card h2,
.inventory-card h3,
.auth-card h1 {
    margin-top: 0;
    text-shadow: 3px 3px 0 rgba(12, 6, 28, 0.45);
}

.app-header h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.welcome-pill,
.header-link,
.nav-link,
.mini-chip,
.status-badge,
.warning-pill {
    border: 2px solid rgba(44, 42, 39, 0.15);
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.welcome-pill {
    background: rgba(20, 14, 44, 0.72);
}

.header-link {
    background: rgba(20, 14, 44, 0.9);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24), 0 4px 0 rgba(0, 0, 0, 0.2);
}

.top-nav-panel {
    grid-area: topnav;
    background: linear-gradient(180deg, rgba(20, 15, 46, 0.95), rgba(14, 10, 34, 0.95));
    padding: 16px 18px;
}

.top-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24), 0 4px 0 rgba(0, 0, 0, 0.2);
}

.nav-link-icon {
    min-width: 44px;
    padding-inline: 0;
    font-size: 1rem;
    font-weight: 900;
}

.nav-link.is-active {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.95), rgba(40, 199, 255, 0.8));
    color: #160a27;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.main-workspace {
    grid-area: main;
    background: rgba(17, 12, 38, 0.76);
    padding: 18px;
}

.detail-panel {
    grid-area: detail;
    background: rgba(23, 16, 47, 0.92);
    padding: 18px;
}

.app-footer {
    grid-area: footer;
    background: rgba(17, 12, 38, 0.92);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--muted);
}

.tcg-builder-card {
    padding: 18px;
}

.tcg-builder-embed-shell {
    margin-top: 18px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 8, 32, 0.92);
    min-height: 78vh;
    overflow: hidden;
}

.tcg-builder-embed {
    display: block;
    width: 100%;
    min-height: 78vh;
    border: 0;
    background: #0b0d15;
}

.tcg-builder-setup-grid {
    margin-top: 18px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.flash-message {
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(44, 42, 39, 0.1);
    background: rgba(22, 16, 42, 0.92);
}

.flash-error {
    background: #fde6e3;
    color: #260c16;
}

.flash-success {
    background: #e8f5df;
    color: #082314;
}

.board-toolbar {
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    align-items: start;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.kanban-column {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.kanban-header {
    padding: 14px;
    background: var(--panel-strong);
    border: 2px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.kanban-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kanban-header h3 {
    margin: 0;
    min-width: 0;
}

.kanban-header .mini-chip {
    flex: 0 0 auto;
}

.kanban-dropzone {
    min-height: 58vh;
    padding: 10px;
    border-radius: 16px;
    border: 2px dashed rgba(108, 240, 255, 0.22);
    background: rgba(10, 8, 28, 0.28);
    display: grid;
    gap: 12px;
    align-content: start;
}

.kanban-dropzone.is-over {
    background: rgba(40, 199, 255, 0.12);
    border-color: rgba(255, 224, 102, 0.65);
}

.empty-lane {
    padding: 18px 14px;
    border: 1px dashed rgba(108, 240, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.board-priority {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.board-priority.detail-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "topnav"
        "main"
        "footer";
}

.board-priority .top-nav-panel {
    gap: 10px;
}

.board-priority .main-workspace {
    padding: 14px;
}

.board-priority .detail-panel {
    padding: 14px;
}

.board-priority.detail-collapsed .detail-panel {
    display: none;
}

.board-priority .board-toolbar {
    margin-bottom: 12px;
}

.board-priority .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.board-priority .kanban-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.board-priority.detail-collapsed .kanban-dropzone {
    min-height: 64vh;
}

.board-priority .detail-panel .panel-card {
    position: sticky;
    top: 0;
}

.job-note {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 16px;
    min-height: 190px;
    transform: rotate(-1deg);
    cursor: pointer;
}

.job-note:nth-child(2n) {
    transform: rotate(1.2deg);
}

.job-note:nth-child(3n) {
    transform: rotate(-0.6deg);
}

.job-note.is-selected {
    border-width: 3px;
    outline: 3px solid rgba(78, 165, 217, 0.18);
}

.job-note.is-dragging {
    opacity: 0.58;
    transform: rotate(0deg) scale(0.98);
}

.job-timer-panel {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    padding: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
}

.job-timer-display {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.job-estimate-text {
    margin: 0;
    font-size: 0.72rem;
}

.job-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.job-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7f29, #f0c533, #bf2f2f);
}

.job-timer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.job-timer-button {
    width: 100%;
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.72rem;
}

body.modal-open {
    overflow: hidden;
}

.report-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 11, 24, 0.58);
}

.report-modal-shell[hidden],
.report-wizard-card[hidden],
[data-report-step][hidden] {
    display: none !important;
}

.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #000000;
    color: #9eff9e;
    transition: opacity 220ms ease;
}

.boot-overlay[hidden] {
    display: none !important;
}

.boot-overlay.is-fading {
    opacity: 0;
}

.boot-screen {
    width: min(620px, 100%);
    padding: 24px;
    border: 2px solid #9eff9e;
    background: #000000;
    font-family: "Lucida Console", "Courier New", monospace;
    box-shadow: 0 0 0 3px #000000;
}

.boot-brand,
.boot-line,
.boot-status {
    margin: 0 0 12px;
}

.boot-brand {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.boot-progress {
    height: 18px;
    margin: 18px 0 12px;
    border: 2px solid #9eff9e;
    background: #001100;
}

.boot-progress-bar {
    width: 0;
    height: 100%;
    background: #9eff9e;
    transition: width 280ms ease;
}

.desktop-body {
    min-height: 100vh;
    overflow: hidden;
}

.desktop-shell {
    min-height: calc(100vh - 44px);
    padding: 24px 24px 72px;
    position: relative;
    overflow: hidden;
}

.desktop-icon-grid {
    position: relative;
    min-height: calc(100vh - 140px);
}

.desktop-icon {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    width: 120px;
    touch-action: none;
    user-select: none;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: 1px dotted #ffffff;
}

.desktop-icon-art {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.desktop-icon-image {
    width: 40px;
    height: 40px;
    display: block;
    image-rendering: pixelated;
}

.desktop-icon-label {
    font-size: 0.85rem;
    text-shadow: 1px 1px 0 #000000;
}

.desktop-icon-meta {
    display: none;
}

.desktop-icon.is-dragging {
    z-index: 15;
}

.desktop-welcome-window {
    width: min(520px, calc(100vw - 72px));
    position: absolute;
    top: 68px;
    right: 24px;
    z-index: 20;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.desktop-welcome-window[hidden] {
    display: none !important;
}

.desktop-help-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 18;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.desktop-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    font-weight: 700;
    font-size: 0.82rem;
}

.desktop-window-body {
    padding: 18px;
    min-width: 0;
    overflow: auto;
}

.desktop-window-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.desktop-welcome-window .eyebrow {
    font-size: 0.68rem;
}

.desktop-welcome-window h1 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.15;
}

.desktop-welcome-window .muted-text {
    font-size: 0.82rem;
    line-height: 1.35;
}

.desktop-welcome-window .desktop-window-actions {
    gap: 8px;
}

.desktop-welcome-window .desktop-window-actions > * {
    min-width: 0;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.desktop-window-close {
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.desktop-background-window {
    top: 68px;
    width: min(420px, calc(100vw - 72px));
    max-height: calc(100vh - 140px);
}

.desktop-background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.desktop-background-option {
    display: grid;
    gap: 8px;
    cursor: pointer;
}

.desktop-background-option input {
    margin: 0;
}

.desktop-background-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid #808080;
}

@media (max-width: 720px) {
    .desktop-shell {
        padding: 20px 20px 72px;
    }

    .desktop-icon-grid {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
        gap: 18px 12px;
        padding-right: 54px;
    }

    .desktop-icon {
        position: static;
        width: auto;
        min-width: 0;
        justify-self: center;
        touch-action: auto;
    }

    .desktop-welcome-window,
    .desktop-background-window {
        width: min(420px, calc(100vw - 40px));
        right: 20px;
        max-height: calc(100vh - 108px);
        top: 58px;
    }
}

@media (max-width: 520px) {
    .desktop-shell {
        padding: 16px 16px 72px;
    }

    .desktop-icon-grid {
        grid-template-columns: repeat(2, minmax(96px, 1fr));
        gap: 14px 10px;
        padding-right: 44px;
    }

    .desktop-help-toggle {
        top: 16px;
        right: 16px;
    }

    .desktop-welcome-window,
    .desktop-background-window {
        top: 58px;
        right: 16px;
        width: min(360px, calc(100vw - 32px));
        max-height: calc(100vh - 100px);
    }

    .desktop-window-body {
        padding: 14px;
    }

    .desktop-window-actions {
        gap: 8px;
    }
}

.desktop-taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    height: 44px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-button,
.taskbar-brand-slot,
.taskbar-clock {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
}

.start-button {
    min-width: 58px;
    padding: 0 8px;
    justify-content: center;
    font-weight: 700;
    font-size: 0.76rem;
}

.taskbar-brand-slot {
    min-width: 0;
    flex: 1;
    justify-content: center;
    padding: 0 8px;
}

.taskbar-clock {
    min-width: 74px;
    justify-content: center;
    padding: 0 8px;
}

.taskbar-brand-logo {
    max-height: 22px;
    width: auto;
    display: block;
}

.taskbar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.start-menu {
    position: fixed;
    left: 8px;
    bottom: 48px;
    z-index: 130;
    width: min(280px, calc(100vw - 16px));
}

.start-menu[hidden] {
    display: none !important;
}

.start-menu-banner {
    padding: 12px 10px;
    font-weight: 700;
}

.start-menu-items {
    display: grid;
}

.start-menu-items a {
    padding: 10px 12px;
    text-decoration: none;
}

.report-modal-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 18px;
    background: var(--panel-bg);
    border: 1px solid rgba(108, 240, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.report-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(108, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.report-wizard-card h3 {
    margin-top: 0;
}

.job-note.note-yellow {
    background: linear-gradient(135deg, #ffe066, #ffb84d);
    color: #251319;
}

.job-note.note-blue {
    background: linear-gradient(135deg, #28c7ff, #6f9bff);
}

.job-note.note-green {
    background: linear-gradient(135deg, #6fff8f, #4fe0b7);
    color: #08231a;
}

.job-note.note-red {
    background: linear-gradient(135deg, #ff5f87, #ff8b5f);
}

.job-note h3,
.inventory-card h3 {
    margin: 0 0 8px;
}

.note-meta,
.muted-text {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-helper-text {
    margin: 4px 0 0;
    color: var(--cyan);
    font-size: 0.82rem;
}

.status-badge {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.3);
}

.detail-panel .panel-card,
.panel-card {
    padding: 16px;
}

.detail-grid {
    display: grid;
    gap: 12px;
}

.detail-block {
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px dashed var(--line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.detail-block h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chunky-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.95), rgba(255, 95, 135, 0.9));
    border: 2px solid var(--brown);
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 700;
    color: #180d2c;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24), 0 4px 0 rgba(0, 0, 0, 0.2);
}

.inventory-layout {
    display: grid;
    gap: 18px;
}

.inventory-section {
    display: grid;
    gap: 14px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.inventory-table-panel {
    display: grid;
    gap: 12px;
}

.inventory-banner {
    background: linear-gradient(135deg, rgba(40, 199, 255, 0.14), rgba(255, 224, 102, 0.12));
}

.inventory-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.inventory-banner-text {
    margin: 0;
    color: rgba(231, 243, 255, 0.96);
    font-weight: 700;
}

.inventory-table-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inventory-tabs {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-tab {
    width: auto;
    min-width: 92px;
    padding: 8px 14px;
    border-radius: 10px;
}

.inventory-tab.is-active {
    background: rgba(108, 240, 255, 0.18);
    color: var(--cyan);
    border-color: rgba(108, 240, 255, 0.42);
}

.inventory-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(108, 240, 255, 0.16);
    border-radius: 12px;
    background: rgba(8, 11, 27, 0.42);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 0.9rem;
}

.inventory-table th,
.inventory-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(108, 240, 255, 0.12);
    vertical-align: middle;
}

.inventory-table th {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 34, 0.94);
    color: var(--cyan);
    text-align: left;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.inventory-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.inventory-table td {
    color: rgba(231, 243, 255, 0.92);
}

.inventory-table td:last-child {
    white-space: nowrap;
}

.inventory-table td:nth-child(9) {
    min-width: 180px;
}

.purchase-line-wrap {
    overflow-x: auto;
    margin: 14px 0;
}

.purchase-line-table {
    min-width: 820px;
}

.purchase-line-table.is-compact {
    min-width: 640px;
}

.purchase-order-grid {
    display: grid;
    gap: 16px;
}

.purchase-order-card {
    display: grid;
    gap: 14px;
}

.purchase-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.purchase-order-total {
    text-align: right;
    display: grid;
    gap: 4px;
}

.purchase-order-meta {
    display: flex;
    gap: 10px 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.purchase-order-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.assistant-shell {
    padding: 18px;
}

.assistant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 18px;
}

.assistant-chat-card,
.assistant-side-panel {
    display: grid;
    gap: 14px;
}

.assistant-chat-log {
    min-height: 420px;
    max-height: 62vh;
    overflow: auto;
    border: 1px solid rgba(108, 240, 255, 0.16);
    border-radius: 12px;
    padding: 12px;
    background: rgba(8, 11, 27, 0.42);
    display: grid;
    gap: 10px;
}

.assistant-message {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.assistant-message-user {
    background: rgba(40, 199, 255, 0.12);
}

.assistant-message-assistant {
    background: rgba(255, 224, 102, 0.12);
}

.assistant-message-role {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.assistant-message-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
}

.assistant-form {
    display: grid;
    gap: 12px;
}

.assistant-command-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assistant-command-chip {
    width: auto;
    min-width: 0;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.inventory-empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 22px 16px;
}

.inventory-admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.finance-grid-shell {
    display: grid;
    gap: 16px;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.finance-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(108, 240, 255, 0.18);
    background: rgba(6, 11, 31, 0.46);
}

.finance-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.finance-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 190px;
}

.finance-bar-group {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.finance-bar {
    width: 100%;
    min-height: 8px;
    border-radius: 10px 10px 2px 2px;
    background: linear-gradient(180deg, rgba(40, 199, 255, 0.95), rgba(83, 113, 255, 0.9));
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.finance-bars.is-alt .finance-bar {
    background: linear-gradient(180deg, rgba(120, 255, 170, 0.95), rgba(44, 189, 146, 0.88));
}

.finance-bars.is-warm .finance-bar {
    background: linear-gradient(180deg, rgba(255, 210, 92, 0.95), rgba(255, 141, 77, 0.9));
}

.finance-bars.is-neutral .finance-bar {
    background: linear-gradient(180deg, rgba(255, 118, 190, 0.95), rgba(172, 84, 255, 0.9));
}

.finance-bars.is-jobs .finance-bar {
    background: linear-gradient(180deg, rgba(255, 246, 128, 0.95), rgba(255, 170, 69, 0.9));
}

.finance-bar-label,
.finance-bar-value {
    font-size: 0.72rem;
    text-align: center;
}

.finance-bar-label {
    color: var(--muted);
}

.finance-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.finance-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.finance-preset-button {
    width: auto;
    min-width: 110px;
    padding: 8px 14px;
}

.sales-shell {
    display: grid;
}

.sales-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.sales-pos {
    display: grid;
    gap: 18px;
}

.sales-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sales-mode-tab {
    width: auto;
    min-width: 120px;
}

.sales-mode-tab.is-active {
    filter: brightness(1.08);
}

.sales-tab-panel {
    display: grid;
    gap: 16px;
}

.sales-tab-panel[hidden] {
    display: none !important;
}

.sales-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sales-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.sales-customer-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 12px;
}

.sales-customer-list,
.sales-jobs-panel,
.sales-repair-sections {
    display: grid;
    gap: 12px;
}

.sales-customer-button {
    width: 100%;
    text-align: left;
    justify-items: start;
    gap: 4px;
    padding: 10px 12px;
    min-height: 0;
}

.sales-customer-button.is-active {
    filter: brightness(1.08);
}

.sales-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.sales-item-button {
    display: grid;
    gap: 6px;
    justify-items: center;
    align-content: start;
    text-align: center;
    min-height: 118px;
    padding: 10px 10px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(240, 240, 240, 0.95), rgba(189, 189, 189, 0.95));
    border: 2px solid #f7f7f7;
    border-right-color: #4a4a4a;
    border-bottom-color: #222222;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18),
        0 4px 0 rgba(0, 0, 0, 0.35);
    color: #111111;
}

.sales-item-button[hidden] {
    display: none !important;
}

.sales-repair-button,
.sales-service-button {
    min-height: 106px;
}

.sales-item-art {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 2px solid rgba(108, 240, 255, 0.22);
    background-size: cover;
    background-position: center;
    background-color: rgba(9, 16, 38, 0.85);
}

.sales-item-art-fallback {
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
}

.sales-item-name {
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.3;
}

.sales-item-meta {
    font-size: 0.7rem;
    line-height: 1.35;
    color: #2e2e2e;
}

.sales-custom-card,
.sales-cart-card {
    padding: 16px;
}

.sales-quote-builder-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.sales-console-grid,
.sales-quote-builder-layout {
    display: grid;
    gap: 12px;
}

.sales-console-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sales-quote-builder-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.sales-quote-builder-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(108, 240, 255, 0.12);
    align-content: start;
}

.sales-quote-console-list,
.sales-quote-console-items {
    display: grid;
    gap: 10px;
}

.sales-quote-console-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(108, 240, 255, 0.12);
}

.sales-quote-console-card.is-active {
    border-color: rgba(255, 224, 102, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 224, 102, 0.18);
}

.sales-quote-console-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-quote-console-select {
    width: auto;
    min-width: 0;
    flex: 1;
}

.sales-line-discount-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px 12px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(108, 240, 255, 0.14);
}

.sales-line-discount-panel button {
    align-self: end;
}

.sales-adjustment-block {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(108, 240, 255, 0.18);
}

.sales-adjustment-block h3,
.sales-adjustment-block .eyebrow {
    margin: 0;
}

.sales-cart-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.sales-cart-list {
    display: grid;
    gap: 10px;
}

.sales-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(108, 240, 255, 0.12);
}

.sales-remove {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
}

.sales-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.sales-recent {
    display: grid;
    gap: 8px;
}

.sales-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.button-link,
.inventory-edit-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 700;
}

.job-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.job-action-form {
    margin: 0;
}

.job-action-button,
.job-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 5px 10px;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
}

.button-link:hover,
.inventory-edit-link:hover {
    text-decoration: underline;
}

.finance-total-row td {
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
}

.inventory-card {
    padding: 16px;
}

.service-card-grid {
    align-items: stretch;
}

.service-console-panel-header,
.service-console-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.service-console-panel-header {
    margin-bottom: 18px;
}

.service-console-panel-actions {
    justify-content: flex-end;
}

.service-console-panel-actions .service-stat-grid {
    min-width: min(320px, 100%);
}

.service-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.service-note-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #171717;
}

.service-note-swatch.note-yellow {
    background: #f6e37a;
}

.service-note-swatch.note-blue {
    background: #94d7ff;
}

.service-note-swatch.note-green {
    background: #9fe4a8;
}

.service-note-swatch.note-pink {
    background: #f7abc8;
}

.service-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-stat {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(108, 240, 255, 0.12);
}

.service-stat-label,
.service-summary-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.service-summary-block {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(108, 240, 255, 0.18);
}

.service-summary-block p {
    margin: 0;
}

.service-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.service-card-actions form {
    margin: 0;
}

.service-edit-modal {
    z-index: 70;
}

.service-edit-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.service-edit-card h2 {
    margin-top: 0;
}

.inventory-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.warning-pill {
    display: inline-block;
    margin-top: 10px;
    background: #fde6e3;
    border: 2px solid rgba(217, 83, 79, 0.25);
    font-weight: 700;
    color: #260c16;
}

.mini-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.config-text-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 10px;
}

.field-group {
    display: grid;
    gap: 6px;
}

.config-logo-preview {
    margin: 10px 0 14px;
    padding: 12px;
    width: min(220px, 100%);
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    background: #ffffff;
}

.config-logo-preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.config-checkbox-field {
    align-content: end;
}

.config-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.field-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stack-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 12, 38, 0.96), rgba(12, 8, 28, 0.92));
    border: 1px solid rgba(108, 240, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.stack-form + form {
    margin-top: 10px;
}

.parts-editor {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(108, 240, 255, 0.2);
}

.parts-editor label {
    font-size: 0.82rem;
    color: var(--muted);
}

.parts-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.parts-editor-row button {
    width: auto;
    min-width: 130px;
}

.parts-chip-list,
.parts-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.parts-chip,
.parts-chip.is-readonly {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 2px solid rgba(108, 240, 255, 0.26);
    background: linear-gradient(135deg, rgba(40, 199, 255, 0.18), rgba(111, 85, 255, 0.2));
    color: var(--ink);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.parts-chip {
    cursor: default;
    justify-content: flex-start;
}

.parts-chip > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.parts-chip-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(6, 13, 38, 0.45);
    font-size: 0.72rem;
    color: var(--muted);
}

.parts-chip-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--cyan);
}

.parts-chip-remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--yellow);
    cursor: pointer;
    border-radius: 999px;
    line-height: 1;
    font-size: 0.9rem;
    font-weight: 700;
}

.parts-empty {
    color: var(--muted);
    font-size: 0.82rem;
}

.parts-warning {
    margin: 0;
    color: var(--red);
    font-size: 0.78rem;
}

.parts-warning.is-low-stock {
    color: var(--yellow);
}

.parts-suggestion-list {
    display: grid;
    gap: 8px;
}

.parts-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    background: linear-gradient(180deg, rgba(18, 14, 42, 0.98), rgba(28, 20, 58, 0.94));
    color: var(--ink);
}

.parts-suggestion.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.parts-suggestion-main {
    flex: 1;
    padding-right: 12px;
}

.parts-suggestion-meta {
    font-size: 0.72rem;
    white-space: nowrap;
}

.parts-suggestion-meta.is-in-stock {
    color: var(--green);
}

.parts-suggestion-meta.is-low {
    color: var(--yellow);
}

.parts-suggestion-meta.is-out {
    color: var(--red);
}

.parts-suggestion-meta.is-unknown {
    color: var(--blue);
}

input,
select,
textarea,
button {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 10, 32, 0.98), rgba(23, 16, 47, 0.94));
    color: var(--ink);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

select,
option {
    color: #0f2f8f;
}

button {
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.95), rgba(40, 199, 255, 0.9));
    color: #160a27;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24), 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 120ms ease, filter 120ms ease;
}

button:hover,
.chunky-button:hover,
.nav-link:hover,
.header-link:hover {
    filter: brightness(1.08);
}

button:active,
.chunky-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.18);
}

form[action*="/delete"] button {
    background: linear-gradient(135deg, rgba(255, 95, 135, 0.95), rgba(255, 139, 95, 0.92));
    color: #240b16;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "topnav"
            "main"
            "detail"
            "footer";
    }

    .kanban-board,
    .board-priority .kanban-board {
        grid-template-columns: 1fr;
    }

    .parts-editor-row {
        grid-template-columns: 1fr;
    }

    .sales-layout,
    .sales-customer-layout,
    .sales-quote-builder-layout {
        grid-template-columns: 1fr;
    }
}

.win95-page {
    background: #008080;
    color: #000000;
}

.win95-page body {
    color: #000000;
}

.win95-page .app-header,
.win95-page .top-nav-panel,
.win95-page .main-workspace,
.win95-page .detail-panel,
.win95-page .app-footer,
.win95-page .auth-card {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
    box-shadow: none;
    color: #000000;
}

.win95-page .app-header h1,
.win95-page .panel-card h2,
.win95-page .inventory-card h3,
.win95-page .auth-card h1,
.win95-page .detail-panel h2,
.win95-page .board-toolbar h2,
.win95-page .kanban-header h3 {
    color: #000000;
    text-shadow: none;
}

.win95-page .top-nav-panel,
.win95-page .main-workspace,
.win95-page .detail-panel {
    padding: 12px;
}

.win95-page .nav-link,
.win95-page .header-link,
.win95-page button,
.win95-page .chunky-button,
.win95-page .mini-chip,
.win95-page .status-badge,
.win95-page .warning-pill,
.win95-page .button-link {
    background: #c0c0c0;
    color: #000000;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
}

.win95-page .nav-link.is-active {
    background: #d4d0c8;
    color: #000000;
}

.win95-page button:hover,
.win95-page .chunky-button:hover,
.win95-page .nav-link:hover,
.win95-page .header-link:hover {
    filter: none;
}

.win95-page button:active,
.win95-page .chunky-button:active,
.win95-page .nav-link:active,
.win95-page .header-link:active {
    border-color: #404040;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    transform: none;
    box-shadow: none;
}

.win95-page .panel-card,
.win95-page .inventory-card,
.win95-page .board-toolbar,
.win95-page .kanban-header,
.win95-page .detail-panel .panel-card,
.win95-page .job-note,
.win95-page .sales-item-button,
.win95-page .sales-cart-item {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
    box-shadow: none;
    color: #000000;
}

.win95-page .panel-card::before,
.win95-page .inventory-card::before,
.win95-page .board-toolbar::before,
.win95-page .detail-panel .panel-card::before,
.win95-page .job-note::before {
    display: none;
}

.win95-page .stack-form {
    background: #c0c0c0;
    border: 1px solid #808080;
    border-radius: 0;
    padding: 10px;
}

.win95-page .service-note-swatch {
    background: #d4d0c8;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
    color: #000000;
}

.win95-page .service-stat,
.win95-page .service-summary-block {
    background: #d4d0c8;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
}

.win95-page .service-edit-card {
    border: 2px solid #000000;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.win95-page input,
.win95-page select,
.win95-page textarea {
    background: #ffffff;
    color: #000000;
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 10px;
}

.win95-page .field-label,
.win95-page .muted-text,
.win95-page .inventory-kicker,
.win95-page .eyebrow,
.win95-page .app-footer,
.win95-page .welcome-pill,
.win95-page .note-meta,
.win95-page .finance-bar-label,
.win95-page .finance-bar-value,
.win95-page .inventory-banner-text {
    color: #000000;
}

.win95-page .welcome-pill {
    background: #c0c0c0;
}

.win95-page .detail-block h3 {
    color: #000080;
}

.win95-page .header-logo-slot {
    background: #ffffff;
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
}

.win95-page .header-logo-placeholder {
    color: #000000;
}

.win95-page .page-summary-row {
    margin-bottom: 12px;
}

.win95-page .kanban-dropzone {
    background: #9f9f9f;
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
}

.win95-page .kanban-dropzone.is-over {
    background: #b9d7f6;
    border-color: #000080;
}

.win95-page .empty-lane {
    background: #c0c0c0;
    border: 1px solid #808080;
    border-radius: 0;
}

.win95-page .job-note,
.win95-page .job-note:nth-child(2n),
.win95-page .job-note:nth-child(3n),
.win95-page .job-note.is-dragging {
    transform: none;
    color: #000000;
}

.win95-page .job-note.note-yellow,
.win95-page .job-note.note-blue,
.win95-page .job-note.note-green,
.win95-page .job-note.note-pink {
    background: #ffffcc;
}

.win95-page .job-timer-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #808080;
    border-radius: 0;
}

.win95-page .job-timer-display {
    color: #000080;
}

.win95-page .job-estimate-text {
    color: #000000;
}

.win95-page .job-progress-track {
    background: #ffffff;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
}

.win95-page .job-progress-fill {
    border-radius: 0;
    background: #000080;
}

.win95-page .report-modal-shell {
    background: rgba(0, 0, 0, 0.28);
}

.win95-page .report-modal-card {
    background: #c0c0c0;
    border: 2px solid #000000;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.win95-page .report-check {
    background: #d4d0c8;
    color: #000000;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.win95-page .parts-chip,
.win95-page .parts-chip.is-readonly,
.win95-page .parts-chip-toggle {
    background: #d4d0c8;
    color: #000000;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

.win95-page .parts-chip-remove,
.win95-page .sales-remove {
    background: #c0c0c0;
    color: #000000;
    border: 1px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
    box-shadow: none;
}

.win95-page .inventory-table,
.win95-page .inventory-table th,
.win95-page .inventory-table td {
    color: #000000;
    border-color: #808080;
}

.win95-page .inventory-table th {
    background: #d4d0c8;
}

.win95-page .inventory-banner {
    background: #ffffe1;
}

.win95-page .purchase-order-meta {
    color: #202020;
}

.win95-page .purchase-order-total {
    color: #000000;
}

.win95-page .job-action-button,
.win95-page .job-action-link {
    padding: 4px 8px;
    font-size: 0.74rem;
}

.win95-page .assistant-chat-log {
    background: #ffffff;
    border: 2px solid #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #ffffff;
}

.win95-page .assistant-message {
    border-radius: 0;
    border: 1px solid #808080;
    color: #000000;
}

.win95-page .assistant-message-user {
    background: #d9ecff;
}

.win95-page .assistant-message-assistant {
    background: #ffffe1;
}

.win95-page .assistant-command-chip {
    padding: 4px 8px;
    font-size: 0.74rem;
}

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

.win95-page .finance-card,
.win95-page .sales-custom-card,
.win95-page .sales-cart-card,
.win95-page .sales-quote-builder-card,
.win95-page .sales-quote-builder-panel,
.win95-page .sales-quote-console-card,
.win95-page .sales-line-discount-panel {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    border-radius: 0;
    box-shadow: none;
    color: #000000;
}

.win95-page .finance-bars,
.win95-page .finance-bars.is-warm,
.win95-page .finance-bars.is-alt,
.win95-page .finance-bars.is-neutral,
.win95-page .finance-bars.is-jobs {
    background: #ffffff;
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 0;
}

.win95-page .finance-bar {
    background: #000080;
    border-radius: 0;
}

.win95-page .sales-item-button {
    padding: 8px 8px 10px;
    border-radius: 0;
    background: linear-gradient(180deg, #efefef, #bebebe);
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #202020;
    box-shadow:
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #7a7a7a,
        0 3px 0 rgba(0, 0, 0, 0.28);
    color: #000000;
}

.win95-page .sales-item-button:active,
.win95-page .sales-customer-button:active,
.win95-page .sales-mode-tab:active {
    border-color: #404040;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    box-shadow: inset 1px 1px 0 #7a7a7a;
}

.win95-page .sales-mode-tab.is-active,
.win95-page .sales-customer-button.is-active {
    background: #d4d0c8;
    filter: none;
}

.win95-page .sales-item-name,
.win95-page .sales-item-meta {
    color: #000000;
}

.win95-page .sales-item-art,
.win95-page .sales-item-art-fallback {
    border-radius: 0;
}

.win95-page .flash-message {
    border-radius: 0;
    box-shadow: none;
}

.win95-page .auth-shell {
    background: #008080;
}

.win95-page .boot-overlay {
    background: #000000;
    color: #c0ffc0;
}

.win95-page .boot-screen {
    border: 2px solid #c0ffc0;
    background: #000000;
    color: #c0ffc0;
    box-shadow: none;
}

.win95-page .boot-progress {
    background: #101010;
    border: 1px solid #c0ffc0;
}

.win95-page .boot-progress-bar {
    background: #c0ffc0;
}

.win95-page .desktop-icon-art {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.win95-page .desktop-welcome-window,
.win95-page .desktop-taskbar,
.win95-page .taskbar-brand-slot,
.win95-page .taskbar-clock,
.win95-page .start-menu,
.win95-page .start-menu-banner,
.win95-page .start-menu-items a,
.win95-page .desktop-help-toggle,
.win95-page .desktop-window-close {
    background: #c0c0c0;
    color: #000000;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: none;
}

.win95-page .desktop-taskbar {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.win95-page .taskbar-brand-logo {
    image-rendering: pixelated;
}

.win95-page .start-button {
    background: #c0c0c0;
    color: #000000;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: none;
}

.win95-page .start-button.is-active,
.win95-page .start-button:active,
.win95-page .desktop-help-toggle.is-active,
.win95-page .desktop-help-toggle:active,
.win95-page .desktop-window-close:active {
    border-color: #404040;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.win95-page .start-menu {
    border-top: 0;
}

.win95-page .start-menu-banner {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    font-weight: 700;
}

.win95-page .start-menu-items a {
    border-top: 0;
    display: block;
}

.win95-page .start-menu-items a:hover {
    background: #000080;
    color: #ffffff;
}

.win95-page .desktop-background-option {
    background: #d4d0c8;
    color: #000000;
    border: 1px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    padding: 8px;
}

.win95-page .desktop-background-preview {
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.win95-page .desktop-popup-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
}

.win95-page .win95-window {
    padding-top: 0 !important;
}

.win95-page .win95-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: -18px -18px 12px;
    padding: 6px 8px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
}

.win95-page .desktop-window-close {
    color: #000000;
    font-weight: 900;
}

.repair-rpg-page {
    height: 100vh;
    color: #000000;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 75%, transparent),
        linear-gradient(180deg, #6a8bb8 0%, #4e6e9d 100%);
    background-size: 20px 20px, auto;
    overflow: hidden;
}

.repair-rpg-page-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    font-size: 12px;
    line-height: 1.35;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.repair-rpg-frame {
    position: relative;
    overflow: hidden;
    border: 2px solid #dfe8f6;
    border-right-color: #2f4566;
    border-bottom-color: #2f4566;
    border-radius: 0;
    background: #c7d3e3;
    box-shadow:
        inset 1px 1px 0 #f7fbff,
        inset -1px -1px 0 #7f93af,
        0 8px 18px rgba(20, 32, 49, 0.22);
}

.repair-rpg-frame::before {
    display: none;
}

.repair-rpg-frame.is-soft {
    background: #d7e0ed;
    border-color: #edf4ff;
    border-right-color: #6c7f99;
    border-bottom-color: #6c7f99;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #9eb0c7;
}

.repair-rpg-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.repair-rpg-topbar h1 {
    margin: 0 0 4px;
    font-size: clamp(1.45rem, 2.2vw, 2.3rem);
    line-height: 1;
    letter-spacing: 0.03em;
    color: #13233f;
    text-shadow: none;
}

.repair-rpg-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.repair-rpg-brand {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.repair-rpg-kicker {
    margin: 0 0 4px;
    color: #294976;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.58rem;
}

.repair-rpg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 2px solid #f8fbff;
    border-right-color: #3a5275;
    border-bottom-color: #3a5275;
    border-radius: 0;
    background: #d3dce8;
    color: #000000;
    text-decoration: none;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #8da0bb;
    font-size: 0.72rem;
}

.repair-rpg-link.is-secondary {
    background: #c1d2e8;
}

.repair-rpg-link:active {
    border-color: #3a5275;
    border-right-color: #f8fbff;
    border-bottom-color: #f8fbff;
    box-shadow: inset 1px 1px 0 #8da0bb;
}

.repair-rpg-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.repair-rpg-utility-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.repair-rpg-utility-panel {
    padding: 0;
    overflow: hidden;
}

.repair-rpg-utility-panel summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 10px 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #102443;
}

.repair-rpg-utility-panel summary::-webkit-details-marker {
    display: none;
}

.repair-rpg-utility-panel summary::before {
    content: "+";
    display: inline-block;
    width: 14px;
    margin-right: 6px;
    color: #294976;
}

.repair-rpg-utility-panel[open] summary::before {
    content: "-";
}

.repair-rpg-utility-body {
    padding: 0 8px 8px;
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}

.repair-rpg-summary-card {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
}

.repair-rpg-summary-card strong {
    font-size: 0.78rem;
    color: #102443;
}

.repair-rpg-summary-card.is-holiday {
    background: #e2d8a8;
    border-color: #fff6d1;
    border-right-color: #7b6f39;
    border-bottom-color: #7b6f39;
}

.repair-rpg-summary-label {
    color: #294976;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.54rem;
}

.repair-rpg-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
    gap: 10px;
    align-items: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.repair-rpg-main-column,
.repair-rpg-side-column {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: auto;
}

.repair-rpg-shell,
.repair-rpg-journal-panel,
.repair-rpg-side-card {
    padding: 10px;
    min-height: 0;
}

.repair-rpg-hero {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.repair-rpg-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.repair-rpg-copy {
    color: #16253d;
    line-height: 1.35;
    position: relative;
    z-index: 1;
    font-size: 0.74rem;
    margin: 0;
}

.repair-rpg-event-copy h2,
.repair-rpg-side-card h2,
.repair-rpg-journal-panel h2 {
    position: relative;
    z-index: 1;
    color: #102443;
}

.repair-rpg-event-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.repair-rpg-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    align-content: start;
    overflow: auto;
    min-height: 0;
    padding-right: 2px;
}

.repair-rpg-choice-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.repair-rpg-choice-card:hover {
    transform: translateY(-2px);
    background: #dce5f0;
}

.repair-rpg-choice-card h3,
.repair-rpg-journal-entry h3 {
    margin: 0;
    color: #102443;
    font-size: 0.82rem;
    line-height: 1.2;
}

.repair-rpg-reset-form {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.repair-rpg-holiday-banner {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 0;
    background: #efe7b8;
    border: 2px solid #fff9da;
    border-right-color: #7e7340;
    border-bottom-color: #7e7340;
    color: #2c2714;
}

.repair-rpg-journal-list,
.repair-rpg-stat-list,
.repair-rpg-inventory-list {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.repair-rpg-consumable-form {
    margin-bottom: 8px;
}

.repair-rpg-journal-entry,
.repair-rpg-loot {
    padding: 8px 9px;
    position: relative;
    z-index: 1;
}

.repair-rpg-journal-list {
    overflow: auto;
    min-height: 0;
}

.repair-rpg-journal-day {
    display: inline-block;
    margin-bottom: 3px;
    color: #6b4d00;
    font-size: 0.62rem;
}

.repair-rpg-journal-entry p,
.repair-rpg-mini-card p {
    color: #16253d;
}

.repair-rpg-stat-row,
.repair-rpg-loot-head,
.repair-rpg-loot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.repair-rpg-loot {
    flex-direction: column;
    align-items: stretch;
}

.repair-rpg-stat-card {
    padding: 7px 8px;
}

.repair-rpg-meter {
    height: 8px;
    border-radius: 0;
    overflow: hidden;
    background: #edf3fb;
    border: 2px solid #7d90aa;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.repair-rpg-meter span {
    display: block;
    height: 100%;
    border-radius: 0;
    background: #355d94;
}

.repair-rpg-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.repair-rpg-mini-card {
    padding: 8px;
    color: #102443;
}

.repair-rpg-loot p {
    margin: 0;
    color: #16253d;
    font-size: 0.68rem;
}

.repair-rpg-loot-rule {
    font-size: 0.62rem;
}

.repair-rpg-loot-status {
    font-weight: 700;
    font-size: 0.66rem;
}

.repair-rpg-loot-status.is-ready {
    color: #184f2e;
}

.repair-rpg-loot-status.is-locked {
    color: #7a2d23;
}

.repair-rpg-loot.is-disabled {
    background: #ccd5e1;
}

.repair-rpg-shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.64rem;
}

.repair-rpg-rarity {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1px solid #6c7f99;
    background: #e8eef7;
}

.repair-rpg-rarity-common {
    color: #204065;
}

.repair-rpg-rarity-uncommon {
    color: #27511c;
    background: #dcebd3;
}

.repair-rpg-rarity-rare {
    color: #6a3f11;
    background: #f0debe;
}

.repair-rpg-page button,
.repair-rpg-page .flash-message {
    border-radius: 0;
}

.repair-rpg-page button {
    background: #d3dce8;
    color: #000000;
    border: 2px solid #f8fbff;
    border-right-color: #3a5275;
    border-bottom-color: #3a5275;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #8da0bb;
    font-size: 0.7rem;
    padding: 4px 8px;
    min-height: 28px;
}

.repair-rpg-page button:active {
    border-color: #3a5275;
    border-right-color: #f8fbff;
    border-bottom-color: #f8fbff;
    box-shadow: inset 1px 1px 0 #8da0bb;
}

.repair-rpg-topbar,
.repair-rpg-shell,
.repair-rpg-journal-panel,
.repair-rpg-side-card {
    padding-top: 0;
}

.repair-rpg-topbar::after,
.repair-rpg-shell::after,
.repair-rpg-journal-panel::after,
.repair-rpg-side-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 20px;
    background: linear-gradient(90deg, #294976, #6b8fbe);
}

.repair-rpg-topbar > *,
.repair-rpg-shell > *,
.repair-rpg-journal-panel > *,
.repair-rpg-side-card > * {
    position: relative;
    z-index: 1;
}

.repair-rpg-brand,
.repair-rpg-reset-form,
.repair-rpg-journal-panel .repair-rpg-kicker,
.repair-rpg-side-card .repair-rpg-kicker {
    margin-top: 12px;
}

.repair-rpg-journal-panel,
.repair-rpg-side-card {
    display: grid;
    align-content: start;
    overflow: auto;
}

.repair-rpg-side-column {
    grid-template-rows: auto;
    align-content: start;
}

.repair-rpg-page .stack-form {
    padding: 6px;
}

.repair-rpg-page .field-group {
    margin-bottom: 6px;
}

.repair-rpg-page .field-label {
    font-size: 0.62rem;
    margin-bottom: 3px;
}

.repair-rpg-page select {
    min-height: 28px;
    font-size: 0.68rem;
}

.repair-rpg-side-card h2,
.repair-rpg-journal-panel h2 {
    margin: 0 0 6px;
    font-size: 0.92rem;
}

.repair-rpg-mini-card h3 {
    margin: 0 0 2px;
    font-size: 0.7rem;
}

.repair-rpg-mini-card p,
.repair-rpg-stat-row span,
.repair-rpg-stat-row strong {
    font-size: 0.7rem;
}

.repair-rpg-page .flash-stack {
    margin: 0;
}

.repair-rpg-page .flash-message {
    padding: 6px 8px;
    font-size: 0.68rem;
}

@media (max-width: 780px) {
    .repair-rpg-topbar,
    .repair-rpg-hero {
        flex-direction: column;
    }

    .repair-rpg-main-grid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .repair-rpg-utility-row {
        grid-template-columns: 1fr;
    }

    .repair-rpg-topbar h1 {
        font-size: 1.5rem;
    }

    .repair-rpg-page {
        height: auto;
        overflow: auto;
    }

    .repair-rpg-page-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .repair-rpg-side-column {
        grid-template-rows: none;
    }
}

.repair-rpg-page-table {
    background: #6f89b8;
    overflow: auto;
}

.repair-rpg-page-table .repair-rpg-desktop {
    width: min(1160px, calc(100% - 16px));
    margin: 8px auto;
    display: grid;
    gap: 4px;
    position: relative;
}

.repair-rpg-page-table .repair-rpg-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px;
    background: linear-gradient(90deg, #294976, #6b8fbe);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    font-size: 0.76rem;
    font-weight: 700;
}

.repair-rpg-page-table .repair-rpg-titlelinks {
    display: flex;
    gap: 6px;
}

.repair-rpg-page-table .repair-rpg-titlelinks a {
    color: #000000;
    background: #d4d0c8;
    text-decoration: none;
    padding: 2px 8px;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
}

.repair-rpg-page-table .repair-rpg-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 50;
}

.repair-rpg-page-table .repair-rpg-modal-window {
    width: min(520px, 100%);
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.repair-rpg-page-table .repair-rpg-market-modal {
    width: min(760px, 100%);
}

.repair-rpg-page-table .repair-rpg-modal-window .repair-rpg-action-form {
    gap: 4px;
}

.repair-rpg-page-table .repair-rpg-modal-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.repair-rpg-page-table .repair-rpg-modal-close {
    color: #000000;
    background: #d4d0c8;
    text-decoration: none;
    padding: 1px 8px;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
}

.repair-rpg-page-table .repair-rpg-window {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: none;
    overflow: visible;
}

.repair-rpg-page-table .repair-rpg-window::before,
.repair-rpg-page-table .repair-rpg-window::after {
    display: none;
}

.repair-rpg-page-table .repair-rpg-window-title {
    padding: 2px 8px;
    background: #d4d0c8;
    border-bottom: 1px solid #808080;
    font-size: 0.72rem;
    color: #000000;
}

.repair-rpg-page-table .repair-rpg-window-body {
    padding: 6px;
}

.repair-rpg-page-table .repair-rpg-flash-list {
    display: grid;
    gap: 4px;
}

.repair-rpg-page-table .repair-rpg-flash {
    padding: 4px 6px;
    font-size: 0.72rem;
    border: 1px solid #808080;
    background: #ffffff;
    color: #000000;
}

.repair-rpg-page-table .repair-rpg-flash-success {
    color: #0f5c1d;
}

.repair-rpg-page-table .repair-rpg-flash-error {
    color: #7a1d1d;
}

.repair-rpg-page-table .repair-rpg-info-head {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: flex-start;
}

.repair-rpg-page-table .repair-rpg-event-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0e3f06;
    margin-bottom: 6px;
}

.repair-rpg-page-table .repair-rpg-info-copy {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #000000;
}

.repair-rpg-page-table .repair-rpg-goal-copy {
    margin-top: 6px;
    color: #2e2e2e;
}

.repair-rpg-page-table .repair-rpg-info-note {
    margin-top: 4px;
    padding: 4px 6px;
    font-size: 0.7rem;
    border: 1px solid #808080;
    background: #f5f0c8;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.repair-rpg-page-table .repair-rpg-rumour-note {
    background: #f7f3dc;
    border-color: #8b8154;
    margin-top: 6px;
}

.repair-rpg-page-table .repair-rpg-inline-form,
.repair-rpg-page-table .repair-rpg-action-form {
    display: grid;
    gap: 3px;
}

.repair-rpg-page-table .repair-rpg-reset-stack {
    display: grid;
    gap: 3px;
}

.repair-rpg-page-table .repair-rpg-board {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) 104px minmax(340px, 1.45fr);
    grid-template-rows: auto;
    grid-template-areas:
        "left actions right";
    gap: 4px;
    min-height: 0;
    align-items: start;
}

.repair-rpg-page-table .repair-rpg-left-stack { grid-area: left; }
.repair-rpg-page-table .repair-rpg-actions-window { grid-area: actions; }
.repair-rpg-page-table .repair-rpg-right-stack { grid-area: right; }

.repair-rpg-page-table .repair-rpg-left-stack {
    display: grid;
    gap: 0;
    align-self: start;
}

.repair-rpg-page-table .repair-rpg-left-stack .repair-rpg-window {
    margin: 0;
}

.repair-rpg-page-table .repair-rpg-left-stack .repair-rpg-shop-window,
.repair-rpg-page-table .repair-rpg-left-stack .repair-rpg-journal-window {
    border-top: 0;
}

.repair-rpg-page-table .repair-rpg-actions-window .repair-rpg-window-body {
    display: grid;
    gap: 4px;
    padding: 4px;
    align-content: start;
}

.repair-rpg-page-table .repair-rpg-action-link {
    display: block;
    text-align: center;
    color: #000000;
    text-decoration: none;
    background: #d4d0c8;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    padding: 3px 4px;
    font-size: 0.68rem;
}

.repair-rpg-page-table .repair-rpg-choices-window .repair-rpg-window-body {
    padding: 4px;
}

.repair-rpg-page-table .repair-rpg-choices-window .repair-rpg-table {
    font-size: 0.69rem;
}

.repair-rpg-page-table .repair-rpg-choices-window .repair-rpg-table th,
.repair-rpg-page-table .repair-rpg-choices-window .repair-rpg-table td {
    padding: 2px 4px;
}

.repair-rpg-page-table .repair-rpg-action-form {
    gap: 2px;
    padding: 0;
}

.repair-rpg-page-table .repair-rpg-actions-window label {
    font-size: 0.62rem;
    line-height: 1.1;
}

.repair-rpg-page-table .repair-rpg-actions-window select,
.repair-rpg-page-table .repair-rpg-actions-window button {
    width: 100%;
    min-height: 22px;
    font-size: 0.68rem;
}

.repair-rpg-page-table .repair-rpg-actions-window button {
    padding: 1px 4px;
}

.repair-rpg-page-table .repair-rpg-right-stack {
    display: grid;
    gap: 0;
    align-self: start;
}

.repair-rpg-page-table .repair-rpg-right-stack .repair-rpg-window {
    margin: 0;
}

.repair-rpg-page-table .repair-rpg-right-stack .repair-rpg-status-window {
    border-top: 0;
}

.repair-rpg-page-table .repair-rpg-choices-window,
.repair-rpg-page-table .repair-rpg-actions-window,
.repair-rpg-page-table .repair-rpg-journal-window,
.repair-rpg-page-table .repair-rpg-shop-window,
.repair-rpg-page-table .repair-rpg-left-stack,
.repair-rpg-page-table .repair-rpg-right-stack,
.repair-rpg-page-table .repair-rpg-inventory-window,
.repair-rpg-page-table .repair-rpg-status-window {
    align-self: start;
}

.repair-rpg-page-table .repair-rpg-shop-window .repair-rpg-window-body,
.repair-rpg-page-table .repair-rpg-journal-window .repair-rpg-window-body,
.repair-rpg-page-table .repair-rpg-inventory-window .repair-rpg-window-body {
    max-height: 300px;
    overflow: auto;
}

.repair-rpg-page-table .repair-rpg-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #000000;
    font-size: 0.72rem;
}

.repair-rpg-page-table .repair-rpg-table th,
.repair-rpg-page-table .repair-rpg-table td {
    border: 1px solid #808080;
    padding: 3px 5px;
    text-align: left;
    vertical-align: top;
}

.repair-rpg-page-table .repair-rpg-table th {
    background: #d4d0c8;
    font-weight: 700;
}

.repair-rpg-page-table .repair-rpg-table .is-tight {
    width: 1%;
    white-space: nowrap;
}

.repair-rpg-page-table .repair-rpg-cart-table {
    margin-bottom: 6px;
}

.repair-rpg-page-table .repair-rpg-qty-input {
    width: 52px;
    min-height: 22px;
    padding: 1px 3px;
    font-size: 0.68rem;
}

.repair-rpg-page-table .repair-rpg-cell-strong {
    font-weight: 700;
}

.repair-rpg-page-table .repair-rpg-subline {
    margin-top: 3px;
    color: #333333;
    line-height: 1.3;
}

.repair-rpg-page-table .repair-rpg-preview-line {
    color: #0e4a7a;
    font-weight: 700;
}

.repair-rpg-page-table tr.is-muted td {
    color: #666666;
    background: #efefef;
}

.repair-rpg-page-table .repair-rpg-status-body {
    display: grid;
    gap: 2px;
    background: #000000;
    color: #e6e6e6;
    padding: 4px;
    margin-bottom: 6px;
}

.repair-rpg-page-table .repair-rpg-status-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 6px;
    border: 1px solid #555555;
    font-size: 0.72rem;
}

.repair-rpg-page-table .repair-rpg-status-row strong {
    color: #38d638;
}

.repair-rpg-page-table .repair-rpg-alignment-meter {
    background: #111111;
    border: 1px solid #555555;
    padding: 4px 6px 6px;
}

.repair-rpg-page-table .repair-rpg-alignment-labels {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: #e6e6e6;
    font-size: 0.66rem;
    margin-bottom: 4px;
}

.repair-rpg-page-table .repair-rpg-alignment-track {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, #6a2d2d 0 50%, #1d4a2e 50% 100%);
    border: 1px solid #808080;
}

.repair-rpg-page-table .repair-rpg-alignment-center {
    position: absolute;
    left: 50%;
    top: -1px;
    bottom: -1px;
    width: 1px;
    background: #f2f2f2;
}

.repair-rpg-page-table .repair-rpg-alignment-marker {
    position: absolute;
    top: -2px;
    width: 6px;
    height: 14px;
    margin-left: -3px;
    background: #f5f5f5;
    border: 1px solid #000000;
}

.repair-rpg-page-table .repair-rpg-status-table {
    font-size: 0.68rem;
}

.repair-rpg-page-table .repair-rpg-status-table td {
    line-height: 1.25;
}

.repair-rpg-page-table .repair-rpg-status-table .repair-rpg-subline {
    margin-top: 2px;
    font-size: 0.66rem;
}

.repair-rpg-page-table .repair-rpg-secondary-table {
    margin-top: 6px;
}

.repair-rpg-page-table .repair-rpg-market-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.repair-rpg-page-table .repair-rpg-market-tabs a {
    color: #000000;
    text-decoration: none;
    background: #d4d0c8;
    border: 2px solid #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.repair-rpg-page-table .repair-rpg-market-tabs a.is-active {
    background: #f1f1f1;
}

.repair-rpg-page-table label {
    font-size: 0.68rem;
    color: #000000;
}

.repair-rpg-page-table select {
    min-height: 26px;
    padding: 2px 4px;
}

.repair-rpg-page-table button {
    min-height: 26px;
    padding: 2px 8px;
    font-size: 0.72rem;
}

.repair-rpg-page-table .repair-rpg-frame.is-soft,
.repair-rpg-page-table .repair-rpg-loot,
.repair-rpg-page-table .repair-rpg-stat-card,
.repair-rpg-page-table .repair-rpg-mini-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 980px) {
    .repair-rpg-page-table .repair-rpg-board {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "actions"
            "right";
    }

    .repair-rpg-page-table .repair-rpg-shop-window { grid-area: shop; }
}

body.public-site {
    --public-bg: #041108;
    --public-panel: rgba(7, 24, 11, 0.9);
    --public-panel-strong: rgba(8, 32, 14, 0.96);
    --public-ink: #d8ffd2;
    --public-muted: #8eb48c;
    --public-accent: #8cff8c;
    --public-accent-strong: #4dff73;
    --public-line: rgba(140, 255, 140, 0.28);
    --public-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    min-height: 100vh;
    margin: 0;
    color: var(--public-ink);
    font-family: "IBM Plex Mono", "VT323", "Courier New", monospace;
    background:
        radial-gradient(circle at top left, rgba(76, 255, 113, 0.14), transparent 26%),
        radial-gradient(circle at right center, rgba(103, 255, 156, 0.08), transparent 20%),
        linear-gradient(180deg, #07190b 0%, #020904 100%);
    image-rendering: auto;
}

.public-hidden-login {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 48px;
    height: 48px;
    opacity: 0;
}

.public-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
}

.public-header,
.public-section-card,
.public-page-banner,
.public-terminal-card,
.public-stat-card,
.public-info-card,
.public-side-panel,
.public-footer,
.public-flash {
    border: 1px solid var(--public-line);
    box-shadow: var(--public-shadow);
}

.public-header,
.public-section-card,
.public-page-banner,
.public-terminal-card,
.public-stat-card,
.public-info-card,
.public-side-panel,
.public-footer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
        var(--public-panel);
    backdrop-filter: blur(8px);
}

.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 22px;
    margin-bottom: 18px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.public-brand > div {
    min-width: 0;
}

.public-brand h1,
.public-hero h2,
.public-page-banner h2,
.public-section-heading h3,
.public-story-copy h3,
.public-section-card h2,
.public-info-card h3,
.public-info-card h4 {
    margin: 0;
    color: #f3fff0;
    text-shadow: 0 0 16px rgba(77, 255, 115, 0.18);
}

.public-brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(140, 255, 140, 0.3);
    background: linear-gradient(180deg, rgba(140, 255, 140, 0.08), rgba(0, 0, 0, 0.24));
    font-size: 1.5rem;
    font-weight: 700;
}

.public-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-nav a,
.public-button,
.public-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #031107;
    text-decoration: none;
    background: linear-gradient(180deg, var(--public-accent), var(--public-accent-strong));
    border: 1px solid rgba(180, 255, 180, 0.42);
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 42px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(77, 255, 115, 0.16);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.public-nav a:last-child {
    background: transparent;
    color: var(--public-ink);
}

.public-nav a:hover,
.public-button:hover,
.public-inline-button:hover,
.public-text-link:hover {
    filter: brightness(1.06);
}

.public-main {
    display: grid;
    gap: 20px;
}

.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: stretch;
}

.public-hero-copy,
.public-page-banner,
.public-section-card,
.public-terminal-card,
.public-hero-image-card,
.public-side-panel,
.public-footer {
    border-radius: 24px;
}

.public-hero-copy,
.public-page-banner,
.public-section-card {
    padding: 28px;
}

.public-lead,
.public-card-meta,
.public-card-copy,
.public-footer p {
    color: var(--public-muted);
    line-height: 1.6;
}

.public-kicker,
.public-service-tag,
.public-stat-label {
    margin: 0 0 8px;
    color: var(--public-accent);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-cta-row,
.public-card-status-row,
.public-section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.public-section-heading h3 {
    padding-bottom: 10px;
}

.public-button.is-secondary {
    background: transparent;
    color: var(--public-ink);
}

.public-cta-row .public-button,
.public-contact-card .public-inline-button,
.public-form .public-button {
    align-self: flex-start;
}

.public-hero-image-card {
    overflow: hidden;
    min-height: 340px;
}

.public-hero-image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.04);
}

.public-terminal-card {
    padding: 0;
    overflow: hidden;
}

.public-terminal-top {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(140, 255, 140, 0.08);
    color: var(--public-accent);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.public-terminal-body {
    padding: 22px 18px;
    min-height: 100%;
    background-image:
        linear-gradient(rgba(140, 255, 140, 0.06) 1px, transparent 1px);
    background-size: 100% 22px;
}

.public-terminal-body p {
    margin: 0 0 10px;
}

.public-stats-grid,
.public-card-grid {
    display: grid;
    gap: 16px;
}

.public-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.public-story-copy {
    display: grid;
    gap: 12px;
}

.public-story-copy h3,
.public-story-highlight h4 {
    margin: 0;
}

.public-story-copy .public-card-copy,
.public-story-highlight .public-card-meta {
    margin: 0;
}

.public-story-highlight {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(140, 255, 140, 0.18);
    background: linear-gradient(180deg, rgba(140, 255, 140, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-contact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 12px;
}

.public-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 255, 140, 0.24);
    background: rgba(140, 255, 140, 0.08);
    color: var(--public-ink);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.public-social-link:hover {
    background: rgba(140, 255, 140, 0.14);
}

.public-social-link.is-muted {
    background: rgba(255, 255, 255, 0.03);
    color: var(--public-muted);
    border-color: rgba(140, 255, 140, 0.12);
}

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

.public-photo-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--public-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
        var(--public-panel);
    box-shadow: var(--public-shadow);
}

.public-photo-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.public-photo-copy {
    padding: 18px;
}

.public-info-card .public-service-tag {
    margin-bottom: 14px;
}

.public-info-card h3,
.public-info-card h4 {
    margin-top: 4px;
}

.config-gallery-preview {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(108, 240, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.config-gallery-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.public-stat-card,
.public-info-card,
.public-contact-card {
    border-radius: 20px;
    padding: 20px;
}

.public-info-card.is-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.public-info-card.is-service .public-inline-button {
    align-self: flex-start;
    margin-top: auto;
}

.public-stat-card strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #f4fff2;
}

.public-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.public-stock-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.72rem;
    border: 1px solid rgba(140, 255, 140, 0.2);
}

.public-stock-badge.is-in {
    color: #dfffe1;
    background: rgba(68, 255, 118, 0.12);
}

.public-stock-badge.is-low {
    color: #f3ffbf;
    background: rgba(198, 255, 104, 0.12);
}

.public-stock-badge.is-out {
    color: #ffd7d7;
    background: rgba(255, 114, 114, 0.14);
}

.public-text-link {
    color: var(--public-accent);
    text-decoration: none;
}

.public-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 20px;
}

.public-side-panel {
    padding: 18px;
    display: grid;
    gap: 16px;
    align-self: start;
}

.public-form {
    margin-top: 18px;
}

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

.public-form-grid label {
    display: grid;
    gap: 8px;
    color: var(--public-ink);
    font-size: 0.84rem;
}

.public-form-grid label.is-full {
    grid-column: 1 / -1;
}

.public-form-grid input,
.public-form-grid select,
.public-form-grid textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(140, 255, 140, 0.22);
    background: rgba(2, 11, 5, 0.9);
    color: var(--public-ink);
    padding: 12px 14px;
    font: inherit;
}

.public-form-grid textarea {
    resize: vertical;
}

.public-footer {
    margin-top: 20px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.public-flash {
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(7, 24, 11, 0.94);
}

.public-flash-success {
    color: #d9ffd8;
}

.public-flash-error {
    color: #ffd6d6;
}

@media (max-width: 980px) {
    .public-hero,
    .public-story-grid,
    .public-booking-layout,
    .public-contact-strip,
    .public-photo-grid,
    .public-footer,
    .public-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .public-shell {
        width: min(100% - 20px, 1240px);
        padding-top: 10px;
    }

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

    .public-brand {
        align-items: flex-start;
    }

    .public-brand-mark {
        width: 56px;
        height: 56px;
    }

    .public-brand h1 {
        font-size: 1.15rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .public-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .public-nav a {
        width: 100%;
        min-width: 0;
        text-align: center;
        white-space: normal;
    }

    .public-header,
    .public-hero-copy,
    .public-page-banner,
    .public-section-card,
    .public-stat-card,
    .public-info-card,
    .public-contact-card,
    .public-footer {
        padding: 18px;
    }

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

@media (max-width: 520px) {
    .public-nav {
        grid-template-columns: 1fr;
    }
}

.appointment-grid {
    align-items: start;
}

.appointment-card {
    padding: 18px;
}

.appointment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.appointment-history-list {
    display: grid;
    gap: 10px;
}

.appointment-history-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(108, 240, 255, 0.18);
}

.appointment-history-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.appointment-status-pending {
    background: rgba(255, 224, 102, 0.16);
    color: #ffe066;
}

.appointment-status-confirmed {
    background: rgba(111, 255, 143, 0.14);
    color: #6fff8f;
}

.appointment-status-completed {
    background: rgba(40, 199, 255, 0.14);
    color: #28c7ff;
}

.appointment-status-cancelled,
.appointment-status-no_show {
    background: rgba(255, 95, 135, 0.14);
    color: #ff8fb1;
}
