:root {
    --bg: #03101a;
    --panel: #071a29;
    --panel-2: #0b2235;
    --panel-3: #102d45;

    --text: #f2faff;
    --muted: #9bb5c6;

    --blue: #39b9ff;
    --blue-light: #83ddff;

    --yellow: #ffca38;
    --green: #55e391;

    --border: rgba(131, 221, 255, 0.16);
    --border-strong: rgba(131, 221, 255, 0.34);
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(57, 185, 255, 0.13),
            transparent 35%
        ),
        var(--bg);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.app {
    height: 100vh;

    display: grid;
    grid-template-rows: 76px 58px 1fr;
}


/* TOP */

.topbar {
    padding: 0 24px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 24px;

    border-bottom: 1px solid var(--border);

    background: rgba(2, 10, 17, 0.92);
}

.brand {
    display: flex;
    align-items: center;

    gap: 13px;

    text-decoration: none;
}

.brand img {
    width: 66px;
    height: 62px;

    object-fit: contain;
}

.brand div {
    display: flex;
    flex-direction: column;
}

.brand strong {
    font-size: 0.97rem;
}

.brand span {
    color: var(--muted);

    font-size: 0.65rem;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mode-switch {
    display: flex;

    padding: 5px;

    gap: 4px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(255,255,255,0.025);
}

.mode-switch a {
    padding: 9px 16px;

    border-radius: 8px;

    color: var(--muted);

    font-size: 0.79rem;
    font-weight: 800;

    text-decoration: none;
}

.mode-switch a.active {
    color: #03131f;

    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--blue)
        );
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 18px;
}

.top-actions a {
    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 750;

    text-decoration: none;
}

.dev-badge {
    padding: 6px 9px;

    color: var(--yellow);

    border: 1px solid rgba(255,202,56,0.23);

    border-radius: 999px;

    background: rgba(255,202,56,0.06);

    font-size: 0.61rem;
    font-weight: 900;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* TOOLBAR */

.toolbar {
    padding: 0 24px;

    display: grid;
    grid-template-columns: 40px 1fr minmax(260px, 420px);

    align-items: center;

    gap: 15px;

    border-bottom: 1px solid var(--border);

    background: rgba(6, 22, 35, 0.92);
}

#back-button {
    width: 36px;
    height: 36px;

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--blue-light);

    background: rgba(255,255,255,0.025);

    cursor: pointer;
}

.breadcrumb {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    overflow: hidden;

    color: var(--muted);

    font-size: 0.76rem;

    white-space: nowrap;
}

.breadcrumb a {
    color: var(--muted);

    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--blue-light);
}

.breadcrumb strong {
    color: var(--blue-light);
}

.search {
    height: 37px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    gap: 8px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: rgba(255,255,255,0.025);
}

.search span {
    color: var(--blue-light);
}

.search input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;

    color: var(--text);

    background: transparent;
}

.search small {
    white-space: nowrap;

    color: var(--yellow);

    font-size: 0.58rem;

    text-transform: uppercase;
}


/* WORKSPACE */

.workspace {
    overflow: auto;

    padding: 42px;

    scrollbar-color: #174463 transparent;
}

.view {
    width: min(1180px, 100%);

    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;

    color: var(--blue-light);

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}

h1 {
    margin: 0;

    font-size: clamp(2.4rem, 5vw, 4.8rem);

    line-height: 1;

    letter-spacing: -0.05em;
}

.intro {
    max-width: 720px;

    margin: 19px 0 0;

    color: var(--muted);

    line-height: 1.75;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 0.69rem;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* CARDS */

.grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 13px;
}

.card {
    min-height: 130px;

    padding: 21px;

    text-align: left;

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 45, 68, 0.86),
            rgba(5, 23, 37, 0.9)
        );

    cursor: pointer;

    transition:
        transform .17s ease,
        border-color .17s ease,
        background .17s ease;
}

.card:hover {
    transform: translateY(-3px);

    border-color: var(--border-strong);

    background:
        linear-gradient(
            145deg,
            rgba(21, 63, 92, 0.9),
            rgba(7, 30, 47, 0.94)
        );
}

.card strong {
    display: block;

    font-size: 1.35rem;
}

.card small {
    display: block;

    margin-top: 7px;

    color: var(--muted);
}


/* LIST */

.list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.list-row {
    width: 100%;

    padding: 14px 16px;

    display: grid;
    grid-template-columns: 50px 1fr auto;

    align-items: center;

    gap: 15px;

    text-align: left;

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 11px;

    background: rgba(8, 28, 44, 0.75);

    cursor: pointer;
}

.list-row:hover {
    border-color: var(--border-strong);

    background: rgba(13, 42, 63, 0.86);
}

.file-icon,
.folder-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(57,185,255,0.08);

    color: var(--blue-light);

    font-size: 0.67rem;
    font-weight: 900;
}

.folder-icon {
    color: var(--yellow);

    background: rgba(255,202,56,0.07);

    font-size: 1.25rem;
}

.row-main strong,
.row-main small {
    display: block;
}

.row-main small {
    margin-top: 3px;

    color: var(--muted);
}

.row-meta {
    color: var(--muted);

    font-size: 0.72rem;
}


/* ASSET VIEW */

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 25px;
}

.tags {
    display: flex;

    gap: 8px;

    margin-bottom: 13px;
}

.tag {
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.61rem;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.tag.confirmed {
    color: #91f0b7;

    border: 1px solid rgba(85,227,145,.24);

    background: rgba(85,227,145,.07);
}

.tag.demo {
    color: var(--yellow);

    border: 1px solid rgba(255,202,56,.24);

    background: rgba(255,202,56,.06);
}

.asset-layout {
    display: grid;

    grid-template-columns: 1.3fr .7fr;

    gap: 14px;
}

.panel {
    padding: 23px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(12, 38, 58, .84),
            rgba(5, 20, 32, .9)
        );
}

.preview {
    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed var(--border-strong);

    border-radius: 11px;

    background:
        radial-gradient(
            circle,
            rgba(57,185,255,.07),
            transparent 48%
        );
}

.preview strong {
    display: block;

    font-size: 1.15rem;
}

.preview p {
    max-width: 390px;

    color: var(--muted);
}

dl {
    margin: 0;
}

dl div {
    padding: 12px 0;

    border-bottom: 1px solid rgba(255,255,255,.05);
}

dt {
    color: var(--muted);

    font-size: .62rem;
    font-weight: 900;

    letter-spacing: .08em;
    text-transform: uppercase;
}

dd {
    margin: 5px 0 0;

    overflow-wrap: anywhere;

    font-size: .82rem;
}

.mono {
    color: var(--blue-light);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}


/* RAW */

.raw-banner {
    margin: 25px 0;

    padding: 15px 17px;

    color: var(--muted);

    border: 1px solid var(--border);

    border-radius: 11px;

    background: rgba(255,255,255,.022);
}

.raw-banner strong {
    color: var(--yellow);
}


/* EMPTY */

.empty-state {
    min-height: 400px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-state h1 {
    font-size: 3rem;
}

.empty-state p {
    max-width: 550px;

    color: var(--muted);
}


/* MOBILE */

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

    .mode-switch {
        order: 3;
        grid-column: 1 / -1;

        justify-self: stretch;
    }

    .mode-switch a {
        flex: 1;

        text-align: center;
    }

    .app {
        grid-template-rows: auto auto 1fr;
    }

    .toolbar {
        grid-template-columns: 40px 1fr;
    }

    .search {
        display: none;
    }

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

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

@media (max-width: 600px) {
    .workspace {
        padding: 24px 15px;
    }

    .topbar {
        padding: 12px 15px;
    }

    .top-actions .dev-badge {
        display: none;
    }

    .toolbar {
        padding: 0 15px;
    }

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

    .asset-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .list-row {
        grid-template-columns: 44px 1fr;
    }

    .row-meta {
        grid-column: 2;
    }
}
