:root {
    --bg: #0b0e11;
    --fg: #e6e8ea;
    --muted: #9aa3ab;
    --ring: rgba(255, 215, 0, 0.55);
    --card-radius: 16px;
    --gap: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body.sw-body {
    background: radial-gradient(1200px 800px at 20% -10%, rgba(32, 68, 128, .25), transparent 60%), radial-gradient(1000px 600px at 100% 20%, rgba(0, 255, 200, .12), transparent 55%), var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
}

.sw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

h1,
h2 {
    margin: 0 0 16px;
    letter-spacing: .2px;
}

.sw-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.sw-date-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-date-switcher label {
    font-size: 14px;
    color: var(--muted);
}

.sw-date-switcher input[type="text"],
.sw-date-switcher input[type="date"] {
    padding: 10px 12px;
    border-radius: 10px;
    background: #12161b;
    border: 1px solid #1b222b;
    color: var(--fg);
    outline: none;
}

.sw-date-switcher button,
.sw-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #3aa3ff, #2166ff);
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.sw-link {
    color: #77e9ff;
    text-decoration: none;
}

.sw-cat {
    margin-bottom: 18px;
}

.sw-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid white;
}

.sw-cat-title {
    font-size: 18px;
    font-weight: 800;
}

.sw-cat-toggle {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #141a20;
    color: var(--fg);
    border-radius: 10px;
    cursor: pointer;
}

.sw-cat-body.collapsed {
    display: none;
}

.sw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap);
}

@media (max-width: 900px) {
    .sw-grid {
        grid-template-columns: 1fr;
    }
}

.sw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--card-radius);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: radial-gradient(120% 120% at 30% -20%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .02) 70%), linear-gradient(90deg, var(--card-c1, #db221f), var(--card-c2, #db221f));
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.sw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.sw-card:focus {
    outline: none;
}

.sw-card-highlighted {
    box-shadow: 0 0 0 3px #0f1317, 0 0 0 7px var(--ring), 0 18px 60px rgba(255, 215, 0, .20);
    animation: sw-breathe 3s ease-in-out infinite;
}

@keyframes sw-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 3px #0f1317, 0 0 0 7px var(--ring), 0 18px 60px rgba(255, 215, 0, .20);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 3px #0f1317, 0 0 0 9px rgba(255, 215, 0, .70), 0 26px 80px rgba(255, 215, 0, .30);
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-card-highlighted {
        animation: none;
    }
}

.sw-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.sw-card-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.sw-chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--fg);
}

.sw-card-media {
    margin: 8px -8px 8px -8px;
    overflow: hidden;
    border-radius: 12px;
}

.sw-card-media img {
    width: 100%;
    display: block;
}

.sw-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sw-tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .2);
    color: var(--fg);
}

.sw-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sw-danger {
    background: linear-gradient(180deg, #ff5a5a, #d51f1f);
}

.sw-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    margin: 24px 0;
}

.sw-msg {
    margin: 10px 0 20px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 255, 160, .08);
    border: 1px solid rgba(0, 255, 160, .25);
    color: #a8ffd9;
}

.sw-form {
    display: grid;
    gap: 12px;
    max-width: 700px;
}

.sw-row {
    display: grid;
    gap: 6px;
}

.sw-row.sw-inline {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.sw-form input[type="text"],
.sw-form input[type="file"],
.sw-form textarea,
.sw-form select {
    padding: 10px 12px;
    border-radius: 10px;
    background: #12161b;
    border: 1px solid #1b222b;
    color: var(--fg);
    outline: none;
}

.sw-actions {
    margin-top: 6px;
}

.sw-empty {
    opacity: .7;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 12px;
    text-align: center;
}

.sw-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
}

.sw-modal.hidden {
    display: none;
}

.sw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.sw-modal-panel {
    position: relative;
    width: min(900px, 92vw);
    max-height: 90vh;
    background: #0f1317;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.sw-modal-panel::-webkit-scrollbar {
    width: 10px;
}

.sw-modal-panel::-webkit-scrollbar-track {
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.sw-modal-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .15));
    border-left: 4px solid transparent;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 16px rgba(0, 0, 0, .35) inset;
}

.sw-modal-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .22));
}

.sw-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 24px;
    line-height: 1;
    background: transparent;
    border: none;
    color: var(--fg);
    cursor: pointer;
}

.sw-modal-content {
    padding: 20px;
}

.sw-modal-media img {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin: 10px 0;
}

.sw-card-media {
    --card-media-h: 220px;
    height: var(--card-media-h);
    overflow: hidden;
    border-radius: 12px;
    display: block;
}

@media (max-width: 900px) {
    .sw-card-media {
        --card-media-h: 180px;
    }
}

.sw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sw-modal-stack {
    display: grid;
    gap: 12px;
}

.sw-modal-stack iframe,
.sw-modal-stack img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.sw-desc-block {
    margin: 14px 0 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-left-width: 4px;
    border-left-color: #77e9ff;
    background: rgba(119, 233, 255, .06);
    border-radius: 10px;
    padding: 12px 14px;
}

.sw-desc-title {
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #77e9ff;
    margin-bottom: 8px;
    font-weight: 700;
}

.sw-desc-text {
    color: var(--fg);
    line-height: 1.6;
    font-size: 15px;
}

.sw-report-wrap {
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #0f1317;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.sw-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sw-report-title {
    margin: 0;
    font-size: 16px;
    letter-spacing: .2px;
    color: #e6e8ea;
}

.sw-copy-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #3aa3ff, #2166ff);
    color: #fff;
    cursor: pointer;
}

.sw-report-body {
    padding: 12px;
}

.sw-report-text {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    padding: 12px;
    border-radius: 10px;
    background: #12161b;
    border: 1px solid #1b222b;
    color: #e6e8ea;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.4;
    outline: none;
}

.sw-report-foot {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #9aa3ab;
    font-size: 12px;
}


/* Back to NakedDelta */

.sw-backwrap {
    margin: 6px 0 18px;
    display: flex;
    justify-content: end;
}

.sw-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #77e9ff;
    background: #0f1317;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.sw-back:hover {
    transform: translateY(-1px);
    background: #12161b;
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

.sw-back:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}