body { background: #000; font-family: "DM Sans", sans-serif; }
body.modal-open { overflow: hidden; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.top-nav-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.top-nav-brand-text {
    width: 104px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.top-nav-shell {
    width: 100%;
}

.top-nav-link {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}
.top-nav-link:hover,
.top-nav-link.active {
    color: #fff;
    background: #1A1A1A;
}

.top-nav-link-downloads {
    color: #ff3b3b;
}

.top-nav-link-downloads:hover,
.top-nav-link-downloads.active {
    color: #fff;
    background: rgba(255,0,0,0.14);
}

.top-nav-link-admin {
    color: #38bdf8;
}

.top-nav-link-admin:hover,
.top-nav-link-admin.active {
    color: #e0f2fe;
    background: rgba(56,189,248,0.14);
}

.top-nav-action {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #252525;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: #d1d5db;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.top-nav-action:hover {
    color: #fff;
    border-color: rgba(255,0,0,0.3);
}

.top-nav-buy-credits {
    color: #facc15;
}

.top-nav-buy-credits:hover {
    color: #fde68a;
    border-color: rgba(250,204,21,0.34);
}

.top-nav-primary {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.top-nav-primary:hover {
    background: #CC0000;
    transform: translateY(-1px);
}

.account-bubble {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #252525;
    background: #141414;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.account-bubble:hover {
    border-color: rgba(255,0,0,0.35);
    background: #181818;
    transform: translateY(-1px);
}
.account-bubble.active {
    border-color: rgba(255,0,0,0.4);
    box-shadow: inset 0 0 0 1px rgba(255,0,0,0.12), 0 0 18px rgba(255,0,0,0.08);
}
.account-bubble-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FF0000;
    border: 2px solid #0A0A0A;
    box-shadow: 0 0 10px rgba(255,0,0,0.45);
}

input[type="range"] {
    -webkit-appearance: none; appearance: none;
    background: transparent; cursor: pointer; height: 20px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 3px; background: #333; border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 14px; width: 14px;
    border-radius: 50%; background: #FF0000; margin-top: -5.5px;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}
input[type="range"]::-moz-range-track {
    height: 3px; background: #333; border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
    height: 14px; width: 14px; border-radius: 50%;
    background: #FF0000; border: none;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.red-glow { box-shadow: 0 0 20px rgba(255,0,0,0.25), 0 0 60px rgba(255,0,0,0.08); }
.red-glow:not(:disabled):hover { box-shadow: 0 0 30px rgba(255,0,0,0.45), 0 0 80px rgba(255,0,0,0.15); }

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.progress-shine { position: relative; overflow: hidden; }
.progress-shine::after {
    content: ""; position: absolute; top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: progressShine 1.5s ease infinite;
}

.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.toggle-sw {
    width: 34px; height: 18px; background: #333; border-radius: 9px;
    position: relative; cursor: pointer; transition: background 0.3s; flex-shrink: 0;
    border: 0;
}
.toggle-sw.on { background: #FF0000; }
.toggle-sw::after {
    content: ""; position: absolute; width: 14px; height: 14px;
    background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.3s;
}
.toggle-sw.on::after { transform: translateX(16px); }

select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
}

.field-shell {
    background: #111;
    border: 1px solid #252525;
    border-radius: 10px;
    color: #f5f5f5;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field-shell:focus {
    border-color: rgba(255,0,0,0.45);
    background: #151515;
}
.field-shell::placeholder,
textarea::placeholder {
    color: #666;
}
.field-text {
    height: 34px;
    padding: 0 11px;
}
.field-number {
    width: 88px;
    height: 30px;
    padding: 0 8px;
    text-align: center;
    font-size: 11px;
}
.field-select {
    height: 30px;
    padding: 0 28px 0 10px;
    font-size: 11px;
    color: #b5b5b5;
}
.field-area {
    width: 100%;
    min-height: 220px;
    resize: none;
    padding: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.mode-btn {
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #252525;
    background: #111;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.mode-btn.active {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.toolbar-btn {
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #252525;
    background: #111;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.toolbar-btn:hover,
.toolbar-btn.active {
    color: #fff;
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
}

.upload-bottom-bar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 10px 14px;
    border-top: 1px solid #252525;
    background: rgba(10,10,10,0.96);
    overflow: visible;
}

.upload-viewport-actions,
.upload-secondary-actions,
.upload-export-panel,
.upload-download-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-secondary-actions {
    flex: 1 1 360px;
}

.upload-save-button,
.upload-export-submit,
.upload-download-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upload-save-button,
.upload-export-submit {
    padding: 0 16px;
    border: 1px solid rgba(255,0,0,0.28);
    background: #FF0000;
    color: #fff;
}

.upload-save-button:hover,
.upload-export-submit:hover {
    background: #CC0000;
    transform: translateY(-1px);
}

.upload-export-submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-export-stack {
    display: grid;
    gap: 7px;
    flex: 0 1 auto;
    min-width: min(100%, 520px);
}

.upload-export-panel {
    min-height: 44px;
    padding: 5px;
    border: 1px solid #252525;
    border-radius: 8px;
    background: #0d0d0d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.upload-export-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-export-label {
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.upload-export-picker {
    position: relative;
    min-width: min(58vw, 220px);
}

.upload-export-trigger {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 4px 9px 4px 5px;
    border: 1px solid #252525;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-export-trigger:hover,
.upload-export-trigger[aria-expanded="true"] {
    border-color: rgba(255,0,0,0.4);
    background: #151515;
}

.upload-export-mark,
.upload-export-option-mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #080808;
    overflow: hidden;
}

.upload-export-mark .home-supported-logo,
.upload-export-option-mark .home-supported-logo {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
}

.upload-export-mark .home-supported-logo-inline,
.upload-export-option-mark .home-supported-logo-inline {
    width: 18px;
    height: 18px;
}

.upload-export-mark .home-supported-brand,
.upload-export-option-mark .home-supported-brand {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.upload-export-mark .home-supported-wordmark,
.upload-export-option-mark .home-supported-wordmark {
    display: none;
}

.upload-export-trigger-copy,
.upload-export-option-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.upload-export-trigger-copy > span,
.upload-export-option-copy > span {
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-export-trigger-copy small,
.upload-export-option-copy small {
    overflow: hidden;
    color: #6f6f6f;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-export-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 80;
    width: min(340px, 86vw);
    max-height: min(460px, calc(100vh - 160px));
    padding: 6px;
    display: grid;
    gap: 4px;
    overflow-y: auto;
    border: 1px solid #303030;
    border-radius: 8px;
    background: #101010;
    box-shadow: 0 18px 48px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,0,0,0.08);
}

.upload-export-menu[hidden] {
    display: none;
}

.upload-export-option {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b8b8b8;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.upload-export-option:hover,
.upload-export-option.is-selected {
    border-color: rgba(255,0,0,0.34);
    background: rgba(255,0,0,0.1);
    color: #fff;
}

.upload-export-format {
    padding: 4px 6px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #858585;
    background: #0a0a0a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.upload-export-scope select {
    width: 142px;
    height: 34px;
    border-radius: 8px;
}

.upload-download-panel {
    justify-content: flex-end;
}

.upload-download-link {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #252525;
    background: #111;
    color: #aaa;
}

.upload-download-link:hover {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.upload-download-link.is-primary {
    border-color: rgba(255,0,0,0.42);
    background: rgba(255,0,0,0.16);
    color: #fff;
}

.upload-download-link.is-status {
    border-color: rgba(255,255,255,0.1);
    color: #d6d6d6;
    background: #121212;
}

.mini-card {
    border: 1px solid #252525;
    background: #0d0d0d;
    border-radius: 12px;
}

.helper-copy {
    font-size: 10px;
    line-height: 1.5;
    color: #666;
}

.control-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.control-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666;
}

.axis-badge {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.axis-x { background: rgba(255, 45, 45, 0.85); }
.axis-y { background: rgba(49, 247, 214, 0.7); color: #031211; }
.axis-z { background: rgba(0, 123, 255, 0.8); }

.section-rule {
    height: 1px;
    background: #252525;
}

.preview-meta-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #252525;
    backdrop-filter: blur(12px);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #252525;
    background: #111;
    color: #9a9a9a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.stat-pill.hot {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #252525;
    border-radius: 10px;
    background: #111;
    color: #8a8a8a;
    transition: all 0.2s ease;
}
.page-link:hover {
    border-color: #333;
    color: #f5f5f5;
}
.page-link.active {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    background: #101010;
}
.metric-row + .metric-row {
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FF0000;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
    flex-shrink: 0;
}

.table-shell {
    width: 100%;
    border-collapse: collapse;
}
.table-shell th {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    padding: 0 0 10px;
    border-bottom: 1px solid #252525;
}
.table-shell td {
    color: #d0d0d0;
    font-size: 12px;
    padding: 12px 0;
    border-top: 1px solid #1a1a1a;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 170px;
}
.chart-bar {
    flex: 1;
    border: 1px solid rgba(255,0,0,0.18);
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, rgba(255,0,0,0.95), rgba(92,13,13,0.55));
}

.donut {
    width: 168px;
    height: 168px;
    border-radius: 999px;
    border: 1px solid #252525;
    position: relative;
    background:
        radial-gradient(circle at center, #0d0d0d 0 39%, transparent 40%),
        conic-gradient(#FF0000 0 42%, #8a1818 42% 73%, #252525 73% 100%);
}
.donut::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-icon { animation: subtleFloat 3s ease-in-out infinite; }

a {
    color: inherit;
    text-decoration: none;
}

a.link-readable,
.table-shell a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.feed-item a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.panel-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.metric-caption a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.helper-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.muted-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
.info-line a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)),
p a:not([class]),
li a:not([class]),
small a:not([class]),
td a:not([class]) {
    color: #ff6b6b;
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 0, 0.28);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a.link-readable:hover,
.table-shell a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.feed-item a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.panel-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.metric-caption a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.helper-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.muted-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
.info-line a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):hover,
p a:not([class]):hover,
li a:not([class]):hover,
small a:not([class]):hover,
td a:not([class]):hover {
    color: #fff;
    text-decoration-color: rgba(255, 0, 0, 0.6);
}

a.link-readable:focus-visible,
.table-shell a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.feed-item a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.panel-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.metric-caption a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.helper-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.muted-copy a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
.info-line a:not(:where(.top-nav-link, .top-nav-action, .top-nav-primary, .account-bubble, .page-link, .toolbar-btn, .ghost-link, .primary-link, .danger-button, .tab-link)):focus-visible,
p a:not([class]):focus-visible,
li a:not([class]):focus-visible,
small a:not([class]):focus-visible,
td a:not([class]):focus-visible {
    outline: 1px solid rgba(255, 0, 0, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

button, input, select, textarea { font: inherit; }

.surface-card {
    position: relative;
    border: 1px solid #252525;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.008)),
        #0d0d0d;
    border-radius: 16px;
    overflow: hidden;
}
.surface-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 28%);
    opacity: 0.45;
}
.surface-card:hover {
    border-color: #333333;
}
.surface-card.alt {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        #101010;
}
.surface-card.red-accent {
    box-shadow: inset 0 0 0 1px rgba(255,0,0,0.12);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.panel-eyebrow {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.panel-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}
.panel-copy {
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 6px;
}
.metric-number {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.metric-caption {
    color: #7c7c7c;
    font-size: 11px;
    margin-top: 8px;
}

.workspace-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
}
body.ready .reveal {
    animation: fadeIn 0.45s ease forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes dashFlow {
    to { stroke-dashoffset: -160; }
}
.route-map {
    position: relative;
    min-height: 420px;
    border: 1px solid #252525;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,0,0,0.06), transparent 30%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
        #0b0b0b;
    background-size: auto, 40px 40px, 40px 40px, auto;
    overflow: hidden;
}
.route-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.route-line {
    stroke: rgba(255,0,0,0.45);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    animation: dashFlow 16s linear infinite;
}
.route-node {
    position: absolute;
    width: 170px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid #252525;
    border-radius: 14px;
    background: rgba(10,10,10,0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.route-node::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FF0000;
    box-shadow: 0 0 12px rgba(255,0,0,0.65);
    animation: glowPulse 1.8s ease infinite;
}
.route-node strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}
.route-node span {
    display: block;
    color: #777;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.route-node p {
    color: #7b7b7b;
    font-size: 11px;
    line-height: 1.55;
    margin: 8px 0 0;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,0,0.45); opacity: 0.85; }
    50% { box-shadow: 0 0 18px rgba(255,0,0,0.8); opacity: 1; }
}

.preview-stage {
    position: relative;
    min-height: 310px;
    border: 1px solid #252525;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
        #0a0a0a;
    background-size: 36px 36px, 36px 36px, auto;
}
.preview-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.58));
    pointer-events: none;
}
.preview-chip,
.preview-footer {
    position: absolute;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(10px);
    z-index: 2;
}
.preview-chip { top: 14px; }
.preview-footer { bottom: 14px; }

.preview-orb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-orb::before,
.preview-orb::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}
.preview-orb::before {
    width: 196px;
    height: 196px;
    border: 1px solid rgba(255,0,0,0.22);
    background: radial-gradient(circle at 50% 45%, rgba(255,0,0,0.36), transparent 58%);
    animation: pulseHalo 4s ease-in-out infinite;
}
.preview-orb::after {
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(255,255,255,0.07), rgba(255,0,0,0.24));
    box-shadow: 0 0 32px rgba(255,0,0,0.18);
}

@keyframes pulseHalo {
    0%, 100% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.04); opacity: 1; }
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    background: #101010;
}
.info-line + .info-line {
    margin-top: 10px;
}

.store-landing {
    display: grid;
    gap: 12px;
}

.home-landing {
    display: grid;
    gap: 10px;
}

.home-hero-copy {
    min-height: 100%;
    justify-content: center;
}

.home-hero-intro {
    max-width: 62ch;
}

.home-showcase-card,
.home-pricing-card {
    min-height: 100%;
}

.home-card-tail {
    margin-top: auto;
    padding-top: 12px;
}

.home-summary-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.home-summary-list {
    display: grid;
    gap: 8px;
}

.home-summary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}

.home-summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #252525;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), #121212;
}

.home-summary-title {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.home-summary-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
    margin-top: auto;
}

.home-summary-note strong {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.home-summary-note p {
    margin: 6px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
    max-width: 54ch;
}

.home-showcase-card .panel-head {
    margin-bottom: 8px;
}

.home-supported-strip {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 8px;
}

.home-supported-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.home-supported-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: homeSupportedMarquee 28s linear infinite;
}

.home-supported-group {
    display: flex;
    align-items: center;
    gap: 72px;
    flex-shrink: 0;
    min-width: max-content;
    padding-right: 72px;
}

.home-supported-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    opacity: 0.88;
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-supported-game:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.home-supported-logo {
    height: 24px;
    width: auto;
    max-width: 156px;
    flex-shrink: 0;
    display: block;
    filter: brightness(0) invert(1);
}

.home-supported-game--minecraft .home-supported-logo {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
}

.home-supported-game--sbox .home-supported-logo {
    filter: none;
}

.home-supported-game--vrchat .home-supported-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.06));
}

.home-supported-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.home-supported-logo-inline {
    display: block;
    flex-shrink: 0;
}

.home-supported-logo-inline--fivem {
    width: 20px;
    height: 23px;
    transform: rotateY(180deg);
    fill: #fff;
}

.home-supported-wordmark {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.home-supported-wordmark--fivem {
    color: #fff;
    font-family: "Montserrat", "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.home-supported-logo--gmod {
    height: 30px;
    max-width: 174px;
}

.home-supported-logo--sbox {
    height: 28px;
    max-width: 176px;
}

.home-supported-logo--minecraft {
    height: 20px;
    max-width: 158px;
}

.home-supported-logo--skyrim {
    height: 21px;
}

.home-supported-logo--fallout4 {
    height: 22px;
}

.home-supported-fallback {
    color: #0f0f10;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .home-supported-group {
        gap: 52px;
        padding-right: 52px;
    }

    .home-supported-game {
        transform: none;
    }

    .home-supported-logo {
        height: 20px;
        max-width: 132px;
    }

    .home-supported-logo--gmod {
        height: 24px;
        max-width: 138px;
    }

    .home-supported-logo--sbox {
        height: 22px;
        max-width: 144px;
    }

    .home-supported-logo--minecraft {
        height: 18px;
    }

    .home-supported-logo-inline--fivem {
        width: 18px;
        height: 21px;
    }

    .home-supported-wordmark--fivem {
        font-size: 18px;
    }
}

@keyframes homeSupportedMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.store-summary-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.store-summary-list {
    display: grid;
    gap: 10px;
}

.store-summary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}

.store-summary-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #252525;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), #121212;
}

.store-summary-title {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.store-fit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.store-fit-card {
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)), #101010;
}

.store-fit-card-featured {
    border-color: rgba(255,0,0,0.24);
    box-shadow: inset 0 0 0 1px rgba(255,0,0,0.06);
}

.store-summary-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}

.store-summary-note strong {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.store-summary-note p {
    margin: 6px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
    max-width: 54ch;
}

.plan-card {
    position: relative;
    padding: 16px;
    border: 1px solid #252525;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008)),
        #0d0d0d;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}
.plan-card.featured {
    border-color: rgba(255,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,0,0,0.1), 0 0 28px rgba(255,0,0,0.08);
}
.plan-card .plan-price {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    line-height: 1;
    margin-top: 14px;
}

.review-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(12px);
}

.review-modal {
    width: min(480px, calc(100vw - 32px));
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #252525;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
        #0d0d0d;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.review-star-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-star-button {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #252525;
    background: #111;
    color: #555;
    font-size: 22px;
    line-height: 1;
    transition: all 0.2s ease;
}

.review-star-button:hover,
.review-star-button.is-active {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.review-textarea {
    width: 100%;
    min-height: 124px;
    padding: 12px;
    resize: vertical;
    line-height: 1.6;
}

.review-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.review-card,
.review-admin-card {
    display: grid;
    gap: 14px;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-author-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid #252525;
    background: #141414;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
}

.review-author-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-author-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.review-author-copy strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.review-author-copy span {
    color: #7a7a7a;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #434343;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.review-stars span.is-active {
    color: #fff;
}

.review-quote {
    margin: 0;
    color: #d7d7d7;
    font-size: 13px;
    line-height: 1.7;
}

.review-filter-row,
.review-admin-meta,
.review-admin-actions {
    display: grid;
    gap: 12px;
}

.review-filter-row {
    grid-template-columns: repeat(3, minmax(0, max-content));
}

.review-admin-meta {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    align-items: center;
}

.review-admin-actions {
    padding-top: 12px;
    border-top: 1px solid #202020;
}

.progress-meter {
    height: 10px;
    border-radius: 999px;
    border: 1px solid #252525;
    background: #131313;
    overflow: hidden;
}
.progress-meter > span {
    display: block;
    height: 100%;
    width: var(--fill, 0%);
    background: linear-gradient(90deg, #cc0000, #FF0000);
    box-shadow: 0 0 18px rgba(255,0,0,0.25);
    transform-origin: left center;
    animation: meterFill 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes meterFill {
    from { transform: scaleX(0.12); opacity: 0.4; }
    to { transform: scaleX(1); opacity: 1; }
}

.feed-list {
    display: grid;
    gap: 10px;
}
.feed-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}
.feed-item strong {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.feed-item p {
    color: #777;
    font-size: 11px;
    line-height: 1.55;
    margin: 6px 0 0;
}

.props-compact-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.props-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.props-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.props-stat-card {
    min-height: 82px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: linear-gradient(180deg, #121212, #0d0d0d);
}

.props-stat-card span,
.props-stat-card small {
    display: block;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.props-stat-card strong {
    display: block;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    line-height: 1;
    margin: 8px 0;
}

.props-table-wrap {
    overflow-x: auto;
    border: 1px solid #202020;
    border-radius: 14px;
    background: #0f0f0f;
}

.props-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}

.props-table th {
    padding: 12px 12px;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid #242424;
    background: #121212;
}

.props-table td {
    padding: 13px 12px;
    color: #cfcfcf;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
    border-top: 1px solid #191919;
}

.props-table th:last-child,
.props-table td:last-child {
    text-align: right;
}

.props-table tbody tr {
    transition: background 0.18s ease;
}

.props-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.props-table-prop {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.props-table-prop span {
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.props-table-prop a {
    max-width: 240px;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.props-table-prop a:hover {
    color: #ff7a7a;
}

.props-table-actions,
.props-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.props-table-link,
.props-table-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.props-table-link {
    border: 1px solid #252525;
    background: #111;
    color: #d7d7d7;
}

.props-table-link:hover {
    color: #fff;
    border-color: rgba(255,0,0,0.32);
}

.props-table-danger {
    border: 1px solid rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.1);
    color: #fff;
}

.props-table-danger:disabled,
.danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.empty-state {
    padding: 18px;
    border: 1px dashed #252525;
    border-radius: 14px;
    background: #0f0f0f;
}

@media (max-width: 900px) {
    .props-compact-hero {
        flex-direction: column;
    }

    .props-hero-actions {
        justify-content: flex-start;
    }

    .props-stats-grid {
        grid-template-columns: 1fr;
    }
}

.chart-pane {
    min-height: 250px;
}
.draw-stroke {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawStroke 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.chart-bars.compact {
    gap: 12px;
    height: 200px;
}
.chart-bar {
    flex: 1;
    height: var(--target-height, 40%);
    border: 1px solid rgba(255,0,0,0.18);
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, rgba(255,0,0,0.98), rgba(82,10,10,0.55));
    transform-origin: bottom center;
    animation: barRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--bar-delay, 0ms);
}
@keyframes barRise {
    from { transform: scaleY(0.08); opacity: 0.35; }
    to { transform: scaleY(1); opacity: 1; }
}

.scanner-shell {
    position: relative;
    min-height: 320px;
    border: 1px solid #252525;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,0,0,0.06), transparent 32%),
        #0b0b0b;
}
.scanner-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 34px 34px;
}
.scanner-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,0,0,0.18);
}
.scanner-ring.r1 { width: 230px; height: 230px; }
.scanner-ring.r2 { width: 160px; height: 160px; }
.scanner-ring.r3 { width: 90px; height: 90px; }
.scanner-core {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #FF0000;
    box-shadow: 0 0 18px rgba(255,0,0,0.75);
}
.scanner-sweep {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    background: conic-gradient(from 0deg, rgba(255,0,0,0.22), transparent 28%);
    filter: blur(0.4px);
    animation: sweepSpin 5.4s linear infinite;
}
@keyframes sweepSpin {
    to { transform: rotate(360deg); }
}

.ticker {
    overflow: hidden;
    border: 1px solid #252525;
    border-radius: 12px;
    background: #0f0f0f;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    padding: 10px 14px;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: marquee 24s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.iframe-shell {
    border: 1px solid #252525;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
}
.iframe-shell iframe {
    width: 100%;
    height: 100%;
    min-height: 620px;
    border: 0;
    display: block;
    background: #000;
}

.summary-tile {
    border: 1px solid #252525;
    background: #0d0d0d;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .route-node {
        position: static;
        width: 100%;
    }

    .route-map {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-icon,
    .progress-shine::after,
    .route-line,
    .route-node::before,
    .preview-orb::before,
    .preview-orb::after,
    .chart-bar,
    .draw-stroke,
    .scanner-sweep,
    .home-supported-track,
    .ticker-track,
    .reveal,
    body.ready .reveal {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Real app compatibility layer mapped onto the Redline mockup system */

.content {
    min-height: 100vh;
}

.content.tool-shell-mode {
    min-height: 100vh;
    height: 100vh;
}

.app-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.app-shell.tool-shell-mode {
    position: relative;
    max-width: none;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.app-shell.tool-shell-mode::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: 1px;
    background: #252525;
    z-index: 40;
}

.app-shell.tool-shell-mode > .top-nav-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.top-nav-shell.tool-nav-shell {
    border-bottom-color: transparent;
}

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

.page-shell.tool-shell-mode {
    flex: 1;
    min-height: 0;
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-shell.tool-shell-mode > * {
    flex: 1 1 auto;
    min-height: 0;
}

body.tool-shell-mode {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

#canvas-container canvas,
#preview-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.flash,
.hero,
.panel,
.summary-card,
.minor-panel,
.field-callout,
.catalog-empty-state {
    position: relative;
    border: 1px solid #252525;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.008)),
        #0d0d0d;
    border-radius: 16px;
    overflow: hidden;
}

.flash::before,
.hero::before,
.panel::before,
.summary-card::before,
.minor-panel::before,
.field-callout::before,
.catalog-empty-state::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 28%);
    opacity: 0.45;
}

.flash,
.hero,
.panel {
    padding: 16px;
}

.catalog-compact-panel {
    display: grid;
    gap: 14px;
}

.catalog-compact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.catalog-compact-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.catalog-add-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #202020;
}

.catalog-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #FF0000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.catalog-add-button:hover {
    background: #CC0000;
}

.flash {
    color: #f3f3f3;
}

.flash-error,
.flash-failed {
    border-color: rgba(255,0,0,0.35);
}

.hero {
    display: grid;
    gap: 16px;
}

.hero-home,
.hero-store,
.hero-dashboard,
.hero-admin,
.hero-jobs,
.hero-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy {
    min-width: 0;
}

.hero-copy h1 {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin: 12px 0 0;
    max-width: 11ch;
}

.hero-copy p {
    color: #7a7a7a;
    font-size: 13px;
    line-height: 1.7;
    margin: 12px 0 0;
    max-width: 60ch;
}

.hero-actions,
.button-row,
.table-actions,
.generation-alerts,
.generation-actions,
.viewport-toolbar,
.lightsaber-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button-row form,
.table-actions form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eyebrow,
.plan-kicker {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.muted-copy,
.metric-caption,
.path-display,
.file-row span {
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1.6;
}

.muted-copy {
    margin: 0;
}

.section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.section-heading h2 {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    line-height: 1;
    margin: 0;
}

.summary-row,
.panel-grid,
.field-grid,
.feature-grid,
.card-grid,
.home-trust-row,
.home-proof-grid,
.home-process-grid,
.path-grid,
.transform-grid,
.preview-meta,
.admin-user-tools,
.site-editor-grid,
.advert-admin-grid,
.advert-studio-grid {
    display: grid;
    gap: 12px;
}

.summary-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid.two-grid,
.two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-grid,
.card-grid,
.home-trust-row,
.home-proof-grid,
.home-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.summary-card > span {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.summary-card strong {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.summary-card small {
    color: #7c7c7c;
    font-size: 11px;
    line-height: 1.6;
}

.stack-list,
.feed-list,
.lightsaber-attachment-list,
.file-list {
    display: grid;
    gap: 10px;
}

.list-item,
.feed-item,
.path-block,
.transform-grid > div,
.file-row,
.catalog-toolbar-form,
.catalog-toolbar-empty,
.catalog-bridge-banner,
.generation-card,
.generate-mode-shell,
.generate-rig-shell,
.generate-target-card,
.generate-switch-card,
.generation-tray,
.discord-callout,
.store-plan-card,
.order-card,
.site-editor-section,
.site-editor-preview-card,
.site-editor-preview-panel,
.advert-preview-shell,
.advert-input-preview,
.advert-output-preview,
.bone-editor-panel,
.lightsaber-attachment-column,
.lightsaber-attachment-detail {
    border: 1px solid #252525;
    background: #101010;
    border-radius: 12px;
}

.list-item,
.feed-item,
.catalog-toolbar-form,
.catalog-toolbar-empty,
.catalog-bridge-banner {
    padding: 12px 14px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.list-item strong,
.feed-item strong,
.path-block strong,
.transform-grid strong {
    color: #fff;
    display: block;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.feed-item p,
.path-block p,
.transform-grid p,
.catalog-bridge-banner p {
    margin: 6px 0 0;
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1.6;
}

.path-block,
.transform-grid > div {
    padding: 12px 14px;
}

.file-row {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.file-row strong {
    color: #666;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.field,
.stack-form,
.form-panel,
.compact-form {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.compact-form input,
.compact-form select {
    width: 100%;
    background: #111;
    border: 1px solid #252525;
    border-radius: 10px;
    color: #f5f5f5;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field input,
.field select,
.compact-form input,
.compact-form select {
    min-height: 34px;
    padding: 0 11px;
}

.field textarea {
    min-height: 180px;
    padding: 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-form input:focus,
.compact-form select:focus {
    border-color: rgba(255,0,0,0.45);
    background: #151515;
}

.field small {
    color: #666;
    font-size: 10px;
    line-height: 1.5;
}

.field-callout {
    padding: 14px;
}

.field-callout p {
    margin: 6px 0 0;
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1.6;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cfcfcf;
    font-size: 12px;
}

.checkbox-line-inline {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #252525;
    border-radius: 10px;
    background: #111;
}

.checkbox-line input {
    accent-color: #FF0000;
}

.ghost-link,
.ghost-button,
.primary-link,
.primary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ghost-link,
.ghost-button {
    border: 1px solid #252525;
    background: #111;
    color: #d1d5db;
}

.ghost-link:hover,
.ghost-button:hover {
    color: #fff;
    border-color: rgba(255,0,0,0.3);
}

.ghost-button.is-copied {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.primary-link,
.primary-button {
    background: #FF0000;
    color: #fff;
}

.primary-link:hover,
.primary-button:hover {
    background: #CC0000;
    transform: translateY(-1px);
}

.danger-button {
    border: 1px solid rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.status-pill,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #252525;
    background: #111;
    color: #9a9a9a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.status-running,
.status-completed,
.sparkle-pill {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.status-failed {
    border-color: rgba(255,0,0,0.35);
    color: #ff9b9b;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    color: #666;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    padding: 0 0 10px;
    border-bottom: 1px solid #252525;
}

.table td {
    color: #d0d0d0;
    font-size: 12px;
    padding: 12px 0;
    border-top: 1px solid #1a1a1a;
}

.inline-form {
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
}

.inline-form p {
    margin: 6px 0 0;
    color: #7a7a7a;
    font-size: 11px;
    line-height: 1.6;
}

.inline-action-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ordered-flow {
    margin: 0;
    padding-left: 18px;
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.7;
    display: grid;
    gap: 8px;
}

.generate-page-grid,
.upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generate-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.generate-mode-button {
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #252525;
    background: #111;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.generate-mode-button.is-active {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.generate-target-header,
.generate-switch-meta,
.generation-tray-header,
.generation-header,
.catalog-toolbar,
.user-line,
.bone-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.generate-target-controls,
.generate-target-track-shell,
.generate-switch-copy,
.home-flow-stack {
    display: grid;
    gap: 10px;
}

.generate-target-markers {
    position: relative;
    height: 28px;
}

.generate-target-marker {
    position: absolute;
    transform: translateX(-50%);
    display: grid;
    gap: 2px;
    color: #666;
    font-size: 10px;
    text-align: center;
}

.generate-switch-card.is-disabled,
.generate-target-card.is-disabled {
    opacity: 0.55;
}

.generation-warning-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(10px);
}

.generation-warning-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255,0,0,0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16,16,16,0.98) 0%, rgba(8,8,8,0.98) 100%);
    box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
    animation: fade-slide-up 0.18s ease-out;
}

.generation-warning-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.55;
}

.generation-warning-list li::marker {
    color: rgba(255,0,0,0.8);
}

.generation-warning-modal .button-row {
    justify-content: flex-end;
    margin-top: 4px;
}

.generate-prop-grid,
.lightsaber-editor-grid,
.lightsaber-offset-grid,
.bone-editor-grid {
    display: grid;
    gap: 12px;
}

.generate-prop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lightsaber-editor-grid {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

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

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

.preview-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.preview-stage {
    min-height: 420px;
}

.preview-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-meta > div {
    padding: 12px 14px;
    border: 1px solid #252525;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
}

.preview-meta strong {
    display: block;
    color: #666;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.transform-control,
.lightsaber-offset-inputs {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
}

.catalog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 288px));
    gap: 14px;
}

.catalog-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #252525;
    border-radius: 16px;
    background: #0d0d0d;
}

.catalog-card-preview-shell {
    position: relative;
}

.catalog-card-preview {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    border: 1px solid #252525;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
}

.advert-workbench {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.advert-picker-panel,
.advert-studio-panel {
    min-width: 0;
}

.advert-generation-list {
    max-height: 68vh;
    overflow: auto;
    padding-right: 4px;
}

.advert-generation-button {
    width: 100%;
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid #242424;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.006)),
        #0b0b0b;
    color: #a8a8a8;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.advert-generation-button:hover,
.advert-generation-button[data-active="1"] {
    border-color: rgba(255, 0, 0, 0.45);
    background:
        linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255,255,255,0.015)),
        #101010;
}

.advert-generation-button:hover {
    transform: translateY(-1px);
}

.advert-generation-button strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.advert-generation-button span {
    font-size: 11px;
    line-height: 1.45;
}

.advert-generation-kicker {
    color: #ff4b4b;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.advert-studio-panel {
    display: grid;
    gap: 14px;
}

.advert-studio-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.advert-studio-toolbar h2 {
    margin: 4px 0 4px;
}

.advert-studio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.advert-preview-shell {
    position: relative;
    padding: 10px;
    background:
        radial-gradient(circle at 74% 18%, rgba(255, 0, 0, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        #070707;
}

.advert-preview-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #080808;
}

.advert-preview-status {
    position: absolute;
    left: 22px;
    bottom: 20px;
    max-width: calc(100% - 44px);
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(0,0,0,0.68);
    color: #d8d8d8;
    font-size: 11px;
    pointer-events: none;
}

.advert-detail-strip {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(190px, 260px) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.advert-input-preview,
.advert-output-preview,
.advert-export-notes {
    min-height: 128px;
    padding: 12px;
    overflow: hidden;
}

.advert-input-image,
.advert-output-image {
    width: 100%;
    height: 104px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #050505;
}

.advert-prompt-card,
.advert-output-card,
.advert-export-notes {
    display: grid;
    gap: 6px;
}

.advert-prompt-card strong,
.advert-output-caption strong,
.advert-export-notes strong {
    color: #fff;
    font-size: 12px;
}

.advert-prompt-card p,
.advert-output-caption span,
.advert-export-notes p {
    margin: 0;
    color: #848484;
    font-size: 11px;
    line-height: 1.5;
}

.advert-render-stage {
    position: fixed;
    left: -200vw;
    top: -200vh;
    width: 960px;
    height: 960px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 1279px) {
    .store-fit-grid {
        grid-template-columns: 1fr;
    }

    .review-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-filter-row {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .review-admin-meta {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .advert-workbench {
        grid-template-columns: 1fr;
    }

    .advert-generation-list {
        max-height: 260px;
    }
}

@media (max-width: 767px) {
    .catalog-compact-head,
    .catalog-compact-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-card-grid,
    .review-filter-row {
        grid-template-columns: 1fr;
    }

    .review-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-add-row {
        grid-template-columns: 1fr;
    }

    .catalog-card-grid {
        grid-template-columns: 1fr;
    }

    .home-summary-item,
    .store-summary-item {
        grid-template-columns: 1fr;
    }

    .home-summary-note,
    .store-summary-note {
        flex-direction: column;
    }
}

.catalog-card-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: contain;
    padding: 8px;
}

.catalog-card-preview-image:not([src]) {
    display: none;
}

.catalog-card-preview-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px dashed #252525;
    background: #0a0a0a;
    color: #505050;
    font-family: "Oswald", sans-serif;
    font-size: 38px;
    opacity: 0.9;
}

.catalog-card-preview.is-ready .catalog-card-preview-fallback {
    display: none;
}

.catalog-card-copy {
    display: grid;
    gap: 4px;
    min-height: 44px;
}

.catalog-card-copy strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.catalog-card-copy span {
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-card-actions {
    display: grid;
}

.catalog-spawn-button {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    background: #FF0000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.catalog-spawn-button:hover:not(:disabled) {
    background: #CC0000;
}

.catalog-spawn-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.catalog-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.catalog-delete-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.7);
    color: #fff;
    transition: all 0.2s ease;
}

.catalog-delete-button:hover {
    border-color: rgba(255,0,0,0.5);
    background: rgba(255,0,0,0.16);
}

.catalog-delete-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.downloads-page-card {
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    justify-self: center;
    padding: 18px;
    border-color: rgba(255,255,255,0.1);
}

.downloads-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.downloads-page-head h1 {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 0.95;
    margin: 8px 0 0;
    letter-spacing: -0.02em;
}

.downloads-page-head p:not(.panel-eyebrow) {
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.55;
    margin: 10px 0 0;
}

.download-tray-list {
    display: grid;
    gap: 12px;
}

.download-tray-row {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #252525;
    border-radius: 14px;
    background: #101010;
}

.download-file-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.download-tray-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: #0a0a0a;
    color: #fff;
}

.download-title-block {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.download-title-block strong,
.download-empty-state strong,
.download-admin-table strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.download-title-block p {
    color: #8a8a8a;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.download-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.download-meta-grid > div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #202020;
    border-radius: 10px;
    background: #0c0c0c;
}

.download-meta-grid span,
.download-security-line span {
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.download-meta-grid strong {
    color: #f3f3f3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.download-security-line {
    display: grid;
    gap: 6px;
    padding: 10px 11px;
    border: 1px solid #202020;
    border-radius: 10px;
    background: #0c0c0c;
}

.download-security-line code {
    display: block;
    min-width: 0;
    color: #f0f0f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    user-select: text;
}

.download-tray-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: #FF0000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-tray-button:hover {
    background: #CC0000;
}

.download-empty-state {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed #252525;
    border-radius: 14px;
    background: #0a0a0a;
}

.download-empty-state p,
.download-admin-table td:first-child span {
    color: #777;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

.download-admin-table-shell {
    width: 100%;
    overflow-x: auto;
}

.download-admin-table td:first-child {
    min-width: 220px;
}

.download-admin-checksum {
    display: block;
    max-width: 240px;
    min-width: 0;
    color: #d6d6d6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    user-select: text;
}

.download-admin-table td:first-child span {
    display: block;
    max-width: 42ch;
    margin-top: 5px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

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

.admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    position: sticky;
    top: 12px;
    z-index: 35;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    backdrop-filter: blur(14px);
}

.admin-tabs .tab-link {
    flex: 0 0 auto;
}

.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 284px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 18px;
}

.admin-sidebar-head,
.admin-sidebar-copy,
.admin-sidebar-groups,
.admin-sidebar-group,
.admin-sidebar-links,
.admin-workspace,
.admin-workspace-head,
.admin-workspace-head-copy,
.admin-workspace-head-metrics,
.admin-workspace-body,
.admin-workspace-metric,
.admin-toolbar-search,
.admin-pagination {
    display: grid;
    gap: 12px;
}

.admin-sidebar-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #202020;
}

.admin-sidebar-title {
    margin: 0;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    line-height: 0.98;
    text-transform: uppercase;
}

.admin-sidebar-group {
    gap: 10px;
}

.admin-sidebar-group-label {
    margin: 0;
    color: #696969;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-sidebar-links {
    gap: 8px;
}

.admin-sidebar-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #202020;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        #101010;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-sidebar-link:hover {
    border-color: rgba(255,0,0,0.2);
    background:
        linear-gradient(180deg, rgba(255,0,0,0.08), rgba(255,0,0,0.02)),
        #101010;
    transform: translateY(-1px);
}

.admin-sidebar-link.active {
    border-color: rgba(255,0,0,0.3);
    background:
        linear-gradient(180deg, rgba(255,0,0,0.12), rgba(255,0,0,0.03)),
        #121212;
    box-shadow: inset 0 0 0 1px rgba(255,0,0,0.08);
}

.admin-sidebar-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-sidebar-link-copy strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
}

.admin-sidebar-link-copy span {
    color: #7c7c7c;
    font-size: 10px;
    line-height: 1.45;
}

.admin-workspace {
    min-width: 0;
}

.admin-workspace-head {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: stretch;
}

.admin-workspace-head-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-workspace-metric {
    align-content: start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
}

.admin-workspace-metric span {
    color: #9c9c9c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-workspace-metric strong {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 26px;
    line-height: 1;
}

.admin-workspace-metric small {
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.5;
}

.admin-toolbar,
.admin-toolbar-wide,
.admin-toolbar-search,
.admin-results,
.admin-kpi-grid,
.admin-card-grid,
.admin-info-grid,
.admin-action-grid {
    display: grid;
    gap: 12px;
}

.admin-toolbar {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr) auto;
    align-items: end;
}

.admin-toolbar-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.admin-toolbar-wide {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.4fr)) auto;
    align-items: end;
}

.admin-results {
    justify-items: end;
    align-content: end;
}

.admin-pagination {
    grid-auto-flow: column;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

.admin-pagination[hidden] {
    display: none;
}

.admin-pagination-button {
    min-width: 0;
    padding: 0 12px;
}

.admin-pagination-status {
    color: #8a8a8a;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

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

.admin-table-shell {
    width: 100%;
    overflow: auto;
    border: 1px solid #202020;
    border-radius: 14px;
    background: #0d0d0d;
}

.admin-table-shell .table {
    min-width: 760px;
}

.admin-table-shell .table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    background: #111;
    border-bottom-color: #202020;
}

.admin-table-shell .table td {
    padding: 12px 14px;
}

.admin-scroll-list {
    max-height: min(72vh, 960px);
    overflow: auto;
    padding-right: 4px;
}

.admin-record-card {
    display: grid;
    gap: 0;
}

.admin-record-card > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
}

.admin-record-card > summary::-webkit-details-marker {
    display: none;
}

.admin-record-card[open] > summary {
    border-bottom: 1px solid #202020;
}

.admin-record-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-record-summary-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-record-summary-meta p {
    margin: 0;
}

.admin-record-pill-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.admin-record-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.admin-user-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 18px;
    align-items: center;
}

.admin-user-summary-main {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.admin-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #252525;
    background:
        linear-gradient(180deg, rgba(255,0,0,0.12), rgba(255,0,0,0.03)),
        #0f0f0f;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-summary-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-user-summary-copy strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.05;
}

.admin-user-summary-copy .muted-copy {
    margin: 0;
}

.admin-user-summary-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-user-summary-stat {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #0d0d0d;
    min-width: 0;
}

.admin-user-summary-stat span,
.admin-user-metric span {
    color: #787878;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-user-summary-stat strong,
.admin-user-metric strong {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    line-height: 1;
    min-width: 0;
}

.admin-user-workspace {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-user-sidebar,
.admin-user-main,
.admin-user-panel,
.admin-user-section,
.admin-user-section-grid,
.admin-user-metric-grid {
    display: grid;
    gap: 14px;
}

.admin-user-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.admin-user-panel,
.admin-user-section {
    padding: 16px;
    border: 1px solid #202020;
    border-radius: 14px;
    background: #0f0f0f;
}

.admin-user-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding-bottom: 12px;
    border-bottom: 1px solid #202020;
}

.admin-user-section-head h3 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.admin-user-section-head .muted-copy {
    margin: 0;
    max-width: 34ch;
    text-align: right;
}

.admin-user-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-info-grid {
    grid-template-columns: 1fr;
}

.admin-user-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-metric {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #0b0b0b;
}

.admin-user-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-inline-actions .ghost-button,
.admin-user-inline-actions .ghost-link,
.admin-user-inline-actions .button-form {
    flex: 0 0 auto;
}

.admin-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-cluster {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}

.admin-form-cluster > .muted-copy {
    margin-top: -2px;
}

.admin-mini-heading {
    display: grid;
    gap: 4px;
}

.admin-mini-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.admin-sticky-panel {
    position: sticky;
    top: 88px;
    align-self: start;
}

.button-form {
    display: inline-flex;
}

.button-form .ghost-button,
.button-form .danger-button,
.button-form .primary-button {
    width: 100%;
}

.referral-admin-summary,
.referral-admin-toolbar,
.referral-admin-metrics,
.referral-admin-actions,
.referral-admin-reward-tools {
    display: grid;
    gap: 12px;
}

.referral-admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-admin-toolbar {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr) auto;
    align-items: end;
}

.referral-admin-toggle {
    align-self: end;
    min-height: 34px;
}

.referral-admin-results {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.referral-admin-card {
    display: grid;
    gap: 14px;
}

.referral-admin-card-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.referral-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.referral-admin-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-top: 14px;
    border-top: 1px solid #202020;
}

.referral-admin-reward-tools {
    align-content: start;
}

.referral-admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-link {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #252525;
    background: #111;
    display: inline-flex;
    align-items: center;
    color: #8a8a8a;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tab-link.active {
    border-color: rgba(255,0,0,0.35);
    background: rgba(255,0,0,0.12);
    color: #fff;
}

.job-log,
.generation-log {
    padding: 14px;
    border: 1px solid #252525;
    background: #0a0a0a;
    border-radius: 14px;
    color: #d0d0d0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(300px, calc(100vw - 32px));
    z-index: 60;
}

.generate-charge-banner {
    border-color: rgba(255,0,0,0.22);
    background:
        linear-gradient(180deg, rgba(255,0,0,0.08), rgba(255,0,0,0.02)),
        #111;
}

.store-raffle-notice {
    border-color: rgba(255,0,0,0.16);
}

.store-raffle-notice-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.store-raffle-notice-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255,0,0,0.16);
    background: rgba(255,0,0,0.08);
    color: #ff8a8a;
}

.store-raffle-notice-text {
    margin: 0;
    color: #d3d3d3;
    font-size: 12px;
    line-height: 1.55;
}

.raffle-wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.raffle-wheel-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 380px;
    padding: 18px 18px 6px;
    border: 1px solid #202020;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,0.03), transparent 58%),
        #0d0d0d;
}

.raffle-wheel-pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 30px;
    height: 38px;
    transform: translateX(-50%);
    z-index: 3;
}

.raffle-wheel-pointer::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    border-radius: 6px;
    background: linear-gradient(180deg, #fff, #FF0000);
    box-shadow: 0 10px 24px rgba(255,0,0,0.24);
}

.raffle-wheel {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid #252525;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 52%),
        #0d0d0d;
    box-shadow: inset 0 0 0 12px rgba(0,0,0,0.28), 0 18px 48px rgba(0,0,0,0.32);
    transition: transform 6s cubic-bezier(0.18, 0.85, 0.14, 1);
    overflow: hidden;
}

.raffle-wheel.is-spinning {
    filter: saturate(1.05);
}

.raffle-wheel-surface {
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    background: var(--wheel-gradient, conic-gradient(#1a1a1a 0deg 360deg));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 -18px 42px rgba(0,0,0,0.24);
}

.raffle-wheel-hub {
    position: absolute;
    inset: 50%;
    width: 104px;
    height: 104px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,0,0,0.3);
    background:
        linear-gradient(180deg, rgba(255,0,0,0.18), rgba(255,0,0,0.06)),
        #0f0f0f;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 36px rgba(255,0,0,0.16);
    z-index: 2;
}

.raffle-wheel::after {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.raffle-wheel-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.raffle-wheel-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.raffle-wheel-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #202020;
    border-radius: 12px;
    background: #101010;
}

.raffle-wheel-chip-swatch {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--chip-color, #fff);
    box-shadow: 0 0 12px color-mix(in srgb, var(--chip-color, #fff) 40%, transparent);
}

.raffle-wheel-chip-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.raffle-wheel-chip-copy strong {
    display: block;
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
}

.raffle-wheel-chip-copy span {
    color: #7a7a7a;
    font-size: 10px;
    line-height: 1.45;
}

.raffle-wheel-actions {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 14px;
    border: 1px solid #202020;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        #101010;
}

.raffle-spin-button {
    min-height: 44px;
    min-width: min(100%, 240px);
}

.raffle-spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.raffle-prize-item,
.raffle-reward-item {
    align-items: center;
}

.raffle-prize-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
    flex-shrink: 0;
}

.raffle-admin-toolbar,
.raffle-admin-actions,
.raffle-admin-metrics {
    display: grid;
    gap: 12px;
}

.raffle-admin-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.raffle-admin-results {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.raffle-admin-prize-card,
.raffle-admin-user-card,
.raffle-admin-create-form {
    display: grid;
    gap: 14px;
}

.raffle-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .hero-home,
    .hero-store,
    .hero-dashboard,
    .hero-admin,
    .hero-jobs,
    .hero-detail,
    .generate-page-grid,
    .upload-grid,
    .two-grid,
    .triple-grid,
    .lightsaber-editor-grid {
        grid-template-columns: 1fr;
    }

    .summary-row,
    .feature-grid,
    .card-grid,
    .home-trust-row,
    .home-proof-grid,
    .home-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-layout,
    .admin-workspace-head {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-user-workspace,
    .admin-user-summary {
        grid-template-columns: 1fr;
    }

    .admin-user-sidebar {
        position: static;
    }

    .admin-workspace-head-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-admin-toolbar,
    .referral-admin-actions,
    .raffle-admin-toolbar,
    .raffle-admin-actions,
    .admin-toolbar,
    .admin-toolbar-wide,
    .admin-toolbar-search {
        grid-template-columns: 1fr;
    }

    .raffle-wheel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .page-shell {
        padding: 12px;
    }

    .summary-row,
    .download-tray-row,
    .field-grid,
    .feature-grid,
    .card-grid,
    .home-trust-row,
    .home-proof-grid,
    .home-process-grid,
    .compact-grid,
    .generate-prop-grid,
    .preview-meta,
    .path-grid,
    .transform-grid,
    .lightsaber-offset-grid,
    .bone-editor-grid,
    .admin-user-tools,
    .admin-user-section-grid,
    .admin-user-metric-grid,
    .referral-admin-metrics,
    .raffle-admin-metrics,
    .admin-info-grid,
    .admin-action-grid,
    .site-editor-grid,
    .advert-admin-grid,
    .advert-studio-grid {
        grid-template-columns: 1fr;
    }

    .inline-form,
    .catalog-toolbar,
    .user-line,
    .admin-record-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .admin-user-section-head,
    .admin-user-summary-stats {
        grid-template-columns: 1fr;
    }

    .admin-user-section-head .muted-copy {
        max-width: none;
        text-align: left;
    }

    .downloads-page-head,
    .download-file-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .download-meta-grid {
        grid-template-columns: 1fr;
    }

    .download-tray-button {
        width: 100%;
    }

    .advert-studio-toolbar {
        display: grid;
    }

    .advert-studio-actions {
        justify-content: stretch;
    }

    .advert-studio-actions > * {
        width: 100%;
    }

    .advert-detail-strip {
        grid-template-columns: 1fr;
    }

    .raffle-prize-meta {
        justify-items: start;
        text-align: left;
    }

    .raffle-wheel-stage {
        min-height: 320px;
        padding: 14px 10px 4px;
    }

    .store-raffle-notice-copy {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .admin-record-pill-row,
    .admin-results {
        justify-items: start;
        justify-content: flex-start;
    }

    .admin-workspace-head-metrics {
        grid-template-columns: 1fr;
    }

    .admin-pagination {
        grid-auto-flow: row;
        justify-content: flex-start;
    }

    .upload-bottom-bar {
        align-items: stretch;
    }

    .upload-secondary-actions,
    .upload-export-stack {
        flex-basis: 100%;
    }

    .upload-export-panel,
    .upload-download-panel {
        width: 100%;
        justify-content: flex-start;
    }

    .upload-export-field,
    .upload-export-picker {
        flex: 1 1 220px;
    }

    .upload-export-submit {
        flex: 1 1 180px;
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: 40px;
        max-width: none;
    }

    .referral-admin-summary {
        grid-template-columns: 1fr;
    }

    .transform-control,
    .lightsaber-offset-inputs {
        grid-template-columns: 1fr;
    }

    .raffle-wheel {
        width: min(100%, 320px);
    }

    .upload-bottom-bar {
        padding: 9px;
    }

    .upload-viewport-actions,
    .upload-secondary-actions,
    .upload-export-panel,
    .upload-download-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .upload-save-button,
    .upload-export-submit,
    .upload-download-link,
    .upload-bottom-bar .toolbar-btn {
        width: 100%;
    }

    .upload-export-field {
        width: 100%;
    }

    .upload-export-scope select {
        width: 100%;
    }
}
