/* ==========================================================================
   Items Manager — Responsive Stylesheet
   Mobile-first: base → tablet (768px) → desktop (1024px)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --c-bg: #f5f7fa;
    --c-surface: #ffffff;
    --c-border: #e5e7eb;
    --c-border-light: #f0f0f0;
    --c-text: #1a1a1a;
    --c-text-secondary: #374151;
    --c-text-muted: #6b7280;
    --c-text-faint: #9ca3af;
    --c-primary: #3b82f6;
    --c-primary-hover: #2563eb;
    --c-primary-active: #1d4ed8;
    --c-primary-light: #dbeafe;
    --c-primary-border: #bfdbfe;
    --c-primary-text: #1e40af;
    --c-success-bg: #d1fae5;
    --c-success-border: #a7f3d0;
    --c-success-text: #065f46;
    --c-error-bg: #fee2e2;
    --c-error-border: #fecaca;
    --c-error-text: #991b1b;
    --c-warn-bg: #fef3c7;
    --c-warn-border: #fde68a;
    --c-warn-text: #92400e;
    --c-info-bg: #e0e7ff;
    --c-info-border: #c7d2fe;
    --c-info-text: #3730a3;
    --c-input-border: #d1d5db;
    --c-input-focus: #3b82f6;
    --c-input-bg: #ffffff;
    --c-section-bg: #f9fafb;

    /* Spacing */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 20px;
    --sp-xl: 24px;

    /* Sizing */
    --radius: 8px;
    --radius-sm: 6px;
    --tap-min: 44px;
    --input-font: 16px; /* iOS anti-zoom */
    --container-max: 960px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base --- */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--sp-md);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Toast Container --- */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--sp-md);
    gap: var(--sp-sm);
}

.toast {
    pointer-events: auto;
    width: 100%;
    max-width: var(--container-max);
    padding: 12px var(--sp-md);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.25s ease-out;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.toast.toast-success {
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-border);
}

.toast.toast-error {
    background: var(--c-error-bg);
    color: var(--c-error-text);
    border: 1px solid var(--c-error-border);
}

.toast.toast-info {
    background: var(--c-info-bg);
    color: var(--c-info-text);
    border: 1px solid var(--c-info-border);
}

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

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* --- Header --- */
.header {
    background: var(--c-surface);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: var(--sp-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-md);
}

.header-left h1 {
    color: var(--c-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.subtitle {
    color: var(--c-text-muted);
    font-size: 12px;
}

/* --- Upload Section (main card) --- */
.upload-section {
    background: var(--c-surface);
    padding: var(--sp-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.upload-section > h2 {
    color: var(--c-text);
    margin-bottom: var(--sp-xl);
    font-size: 17px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}

/* --- Form Sections (fieldset) --- */
.form-section {
    border: none;
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-xl);
    border-bottom: 1px solid var(--c-border-light);
    min-width: 0; /* Prevent fieldset min-width bug */
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section legend {
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-md);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 0;
}

/* Conditional sections (tile/seed) */
.form-section--conditional {
    background: var(--c-section-bg);
    padding: var(--sp-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
}

.form-section--conditional legend {
    padding: 0 var(--sp-xs);
    margin-bottom: var(--sp-sm);
}

/* --- Form Rows --- */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Form Groups --- */
.form-group {
    margin-bottom: var(--sp-md);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--c-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.required {
    color: var(--c-error-text);
}

.optional {
    color: var(--c-text-faint);
    font-weight: 400;
    font-size: 12px;
}

/* --- Inputs --- */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-input-border);
    border-radius: var(--radius-sm);
    font-size: var(--input-font); /* 16px — prevents iOS zoom */
    font-family: inherit;
    line-height: 1.4;
    background: var(--c-input-bg);
    color: var(--c-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* Select arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--c-error-text);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--c-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.section-hint {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* --- File Drop Zones --- */
.file-drop {
    position: relative;
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    touch-action: manipulation;
}

.file-drop__label {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 14px var(--sp-md);
    border: 2px dashed var(--c-input-border);
    border-radius: var(--radius-sm);
    background: var(--c-section-bg);
    min-height: var(--tap-min);
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
    font-size: 14px;
    color: var(--c-text-muted);
}

.file-drop:hover .file-drop__label,
.file-drop input:focus + .file-drop__label {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
}

.file-drop__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.file-drop__text {
    flex: 1;
}

.file-drop__name {
    color: var(--c-primary-text);
    font-weight: 500;
    font-size: 13px;
    word-break: break-all;
}

.file-drop input:valid + .file-drop__label {
    border-style: solid;
    border-color: var(--c-success-border);
    background: var(--c-success-bg);
}

/* --- Collapsible Sections --- */
.collapse-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    cursor: pointer;
    padding: 12px 0;
    min-height: var(--tap-min);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: color 0.15s ease;
    color: var(--c-text-muted) !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
}

.collapse-toggle:hover,
.collapse-toggle:focus-visible {
    color: var(--c-text-secondary) !important;
    outline: none;
}

.collapse-toggle:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.collapse-toggle__arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.collapse-toggle__arrow--open {
    transform: rotate(0deg);
}

.collapse-body {
    padding-top: var(--sp-sm);
}

/* Collapsible inner panels */
.collapse-body .form-row {
    background: var(--c-section-bg);
    padding: var(--sp-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-sm);
}

/* --- Flags Grid --- */
.flags-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.flag-checkbox {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background 0.1s ease;
    min-height: var(--tap-min);
    touch-action: manipulation;
}

.flag-checkbox:hover {
    background: var(--c-section-bg);
}

.flag-checkbox:active {
    background: var(--c-primary-light);
}

.flag-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--c-primary);
    touch-action: manipulation;
}

.flag-checkbox__name {
    font-weight: 500;
    color: var(--c-text-secondary);
    white-space: nowrap;
    min-width: 0;
}

.flag-checkbox small {
    color: var(--c-text-faint);
    font-size: 12px;
    margin-left: auto;
    text-align: right;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flag-checkbox--muted .flag-checkbox__name {
    color: var(--c-text-muted);
}

.flags-value {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--c-section-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
}

/* --- Checkbox (generic) --- */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    cursor: pointer;
    min-height: var(--tap-min);
    padding: var(--sp-sm) 0;
    touch-action: manipulation;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--c-primary);
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--c-text-secondary);
    font-size: 15px;
}

/* --- Submit Area --- */
.submit-area {
    padding-top: var(--sp-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 12px var(--sp-xl);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    min-height: var(--tap-min);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--c-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--c-primary-hover);
}

.btn-primary:active {
    background: var(--c-primary-active);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: var(--sp-md);
    position: relative;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.is-loading .btn-submit__text {
    visibility: hidden;
}

.btn-submit.is-loading .btn-submit__spinner {
    display: block;
    position: absolute;
}

.btn-submit__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: var(--c-text-muted);
    color: white;
    padding: var(--sp-sm) var(--sp-md);
    font-size: 13px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--c-text-secondary);
}

/* --- Message (inline fallback) --- */
.message {
    margin-top: var(--sp-lg);
    padding: 12px var(--sp-md);
    border-radius: var(--radius-sm);
    display: none;
    font-size: 14px;
    line-height: 1.4;
}

.message.success {
    display: block;
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-border);
}

.message.error {
    display: block;
    background: var(--c-error-bg);
    color: var(--c-error-text);
    border: 1px solid var(--c-error-border);
}

/* --- Info Box --- */
.info-box {
    margin-top: var(--sp-lg);
    padding: 12px var(--sp-md);
    background: var(--c-primary-light);
    border-radius: var(--radius-sm);
    color: var(--c-primary-text);
    font-size: 13px;
    border: 1px solid var(--c-primary-border);
}

/* --- RDP Deploy Section --- */
.deploy-section {
    margin-top: var(--sp-lg);
    padding: var(--sp-md) var(--sp-lg);
    background: #f0f9ff;
    border-radius: var(--radius);
    border: 1px solid #bae6fd;
}

.deploy-section__title {
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-text-secondary);
}

.deploy-config {
    margin-bottom: 10px;
}

.deploy-status-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.deploy-status-box.deploy-success {
    background: var(--c-success-bg);
    border: 1px solid var(--c-success-border);
    color: var(--c-success-text);
}

.deploy-status-box.deploy-error {
    background: var(--c-warn-bg);
    border: 1px solid var(--c-warn-border);
    color: var(--c-warn-text);
}

.deploy-status-box.deploy-critical {
    background: var(--c-error-bg);
    border: 1px solid var(--c-error-border);
    color: var(--c-error-text);
}

.deploy-status-box.deploy-loading {
    background: var(--c-info-bg);
    border: 1px solid var(--c-info-border);
    color: var(--c-info-text);
}

.deploy-status-box.deploy-neutral {
    background: var(--c-section-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
}

.deploy-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.deploy-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    margin-bottom: 12px;
}

.btn-deploy,
.btn-status {
    padding: 12px var(--sp-md);
    font-size: 14px;
    width: 100%;
}

.btn-deploy {
    background: #2563eb;
    color: white;
}

.btn-deploy:hover {
    background: #1d4ed8;
}

.btn-deploy:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.btn-status {
    background: var(--c-text-muted);
    color: white;
}

.btn-status:hover {
    background: var(--c-text-secondary);
}

.btn-status:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.rdp-status-box {
    background: var(--c-section-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
}

.rdp-status-grid {
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.rdp-status-grid strong {
    color: var(--c-text-secondary);
}

/* --- Login Box --- */
.login-box {
    background: var(--c-surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 100px;
}

.login-box h1 {
    text-align: center;
    color: var(--c-text);
    margin-bottom: var(--sp-sm);
    font-size: 22px;
    font-weight: 600;
}

.login-box p {
    text-align: center;
    color: var(--c-text-muted);
    margin-bottom: 30px;
    font-size: 14px;
}

/* --- Sprite Preview + Resize --- */
.sprite-preview-section {
    margin-top: var(--sp-md);
    padding: var(--sp-md);
    background: var(--c-section-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.sprite-preview-row {
    display: flex;
    gap: var(--sp-md);
    align-items: flex-start;
}

.sprite-preview-box {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    background:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #f0f0f0;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sprite-preview-box canvas {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.sprite-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sprite-info__dims {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.sprite-dims {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}

.sprite-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.sprite-badge--ok {
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-border);
}

.sprite-badge--warn {
    background: var(--c-warn-bg);
    color: var(--c-warn-text);
    border: 1px solid var(--c-warn-border);
}

.sprite-badge--resized {
    background: var(--c-info-bg);
    color: var(--c-info-text);
    border: 1px solid var(--c-info-border);
}

.sprite-required {
    font-size: 13px;
    color: var(--c-text-muted);
}

.sprite-resize-status {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-border);
}

.sprite-resize-controls {
    margin-top: var(--sp-md);
    padding-top: var(--sp-md);
    border-top: 1px solid var(--c-border-light);
}

.sprite-resize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-sm);
}

.sprite-resize-grid .form-group {
    margin-bottom: var(--sp-sm);
}

.sprite-resize-grid .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.sprite-resize-grid .form-group input,
.sprite-resize-grid .form-group select {
    padding: 8px 10px;
    font-size: 14px;
}

.sprite-lock-ratio {
    min-height: 36px !important;
    margin-bottom: var(--sp-sm);
}

.sprite-lock-ratio span {
    font-size: 13px !important;
}

.sprite-resize-actions {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

/* ==========================================================================
   TABLET (≥ 768px)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        padding: var(--sp-xl);
    }

    .header-left h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    .upload-section {
        padding: 30px;
    }

    /* 2-column rows */
    .form-row--2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-md);
    }

    .form-row--2col .form-group:last-child {
        margin-bottom: var(--sp-md);
    }

    /* 3-column rows → 3 columns */
    .form-row--3col {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--sp-md);
    }

    .form-row--3col .form-group {
        margin-bottom: var(--sp-md);
    }

    /* Flags grid: 2 columns */
    .flags-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px var(--sp-md);
    }

    /* Deploy buttons side by side */
    .deploy-actions {
        flex-direction: row;
    }

    .btn-deploy,
    .btn-status {
        width: auto;
    }

    /* Sprite preview wider on tablet */
    .sprite-preview-box {
        width: 160px;
        height: 160px;
    }

    .sprite-resize-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--sp-md);
    }
}

/* ==========================================================================
   DESKTOP (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    body {
        padding: 32px;
    }

    .header {
        padding: var(--sp-lg) 32px;
    }

    .upload-section {
        padding: 36px;
    }

    /* Flags grid: 4 columns on wide screens */
    .flags-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    /* Collapsible inner panels: 2-col */
    .collapse-body .form-row--2col {
        gap: var(--sp-lg);
    }

    /* Sprite preview larger on desktop */
    .sprite-preview-box {
        width: 192px;
        height: 192px;
    }
}

/* ==========================================================================
   PREFERS: REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   DARK MODE (optional basic support)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: #0f1117;
        --c-surface: #1a1d27;
        --c-border: #2d3040;
        --c-border-light: #232636;
        --c-text: #e8eaed;
        --c-text-secondary: #c4c7cd;
        --c-text-muted: #8b8f9a;
        --c-text-faint: #5f636e;
        --c-primary: #5b9cf6;
        --c-primary-hover: #4a8be5;
        --c-primary-active: #3a7ad4;
        --c-primary-light: #1e2a40;
        --c-primary-border: #2a3a55;
        --c-primary-text: #8bb8f8;
        --c-success-bg: #0d2818;
        --c-success-border: #1a4d2e;
        --c-success-text: #6ee7a0;
        --c-error-bg: #2d1215;
        --c-error-border: #5c2025;
        --c-error-text: #f8a0a0;
        --c-warn-bg: #2d2510;
        --c-warn-border: #5c4a1a;
        --c-warn-text: #f8d87a;
        --c-info-bg: #1a1d35;
        --c-info-border: #2a2d55;
        --c-info-text: #a0a8f8;
        --c-input-border: #3d4050;
        --c-input-focus: #5b9cf6;
        --c-input-bg: #14171f;
        --c-section-bg: #14171f;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}
