:root {
    --bg-0: #02040a;
    --bg-1: #06101d;
    --bg-2: #0d1d34;
    --bg-3: #261130;
    --panel: rgba(7, 14, 29, 0.68);
    --panel-strong: rgba(6, 12, 25, 0.84);
    --line: rgba(130, 233, 255, 0.16);
    --line-strong: rgba(130, 233, 255, 0.38);
    --text: #edf5ff;
    --muted: #9fb4c8;
    --mint: #84ffc2;
    --cyan: #6fe3ff;
    --magenta: #ff7ae6;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--text);
    overflow: hidden;
    font-family: "Cascadia Code", "JetBrains Mono", "Consolas", monospace;
    background:
        radial-gradient(circle at 18% 22%, rgba(96, 202, 255, 0.18), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(255, 122, 230, 0.16), transparent 32%),
        radial-gradient(circle at 50% 50%, rgba(34, 255, 191, 0.08), transparent 30%),
        linear-gradient(135deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2) 74%, var(--bg-3));
}

.page--dashboard {
    background:
        radial-gradient(circle at 50% 50%, rgba(27, 55, 78, 0.18), transparent 30%),
        linear-gradient(180deg, #000000, #03060d 58%, #04070f);
}

.page--dashboard #matrix-rain {
    opacity: 0.22;
}

.page--dashboard .backdrop-grid--dashboard {
    opacity: 0.05;
}

.page--dashboard .noise--dashboard {
    opacity: 0.025;
}

#matrix-rain,
.backdrop-grid,
.scanlines,
.noise,
.orbit {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#matrix-rain {
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
}

.backdrop-grid {
    z-index: 1;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(127, 228, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 228, 255, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
}

.backdrop-grid--dashboard {
    opacity: 0.09;
    background-size: 52px 52px;
}

.scanlines {
    z-index: 2;
    opacity: 0.14;
    mix-blend-mode: soft-light;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 2px,
        transparent 4px
    );
}

.noise {
    z-index: 3;
    opacity: 0.08;
    background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.6px);
    background-size: 5px 5px;
}

.noise--dashboard {
    opacity: 0.04;
}

.orbit {
    filter: blur(80px);
    opacity: 0.32;
}

.orbit--left {
    z-index: 1;
    width: 34vw;
    height: 34vw;
    left: -9vw;
    top: 10vh;
    background: radial-gradient(circle, rgba(88, 190, 255, 0.44), transparent 64%);
    animation: drift-left 16s ease-in-out infinite alternate;
}

.orbit--right {
    z-index: 1;
    width: 28vw;
    height: 28vw;
    right: -7vw;
    top: 4vh;
    background: radial-gradient(circle, rgba(255, 102, 222, 0.34), transparent 62%);
    animation: drift-right 18s ease-in-out infinite alternate;
}

.layout {
    position: relative;
    z-index: 4;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.topbar {
    position: fixed;
    top: 22px;
    left: 24px;
    right: 24px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.topbar__action,
.dashboard-topbar__logout,
.auth-form__submit,
.modal-link {
    padding: 12px 20px;
    border: 1px solid rgba(130, 233, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(7, 14, 29, 0.86), rgba(8, 18, 35, 0.58));
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.topbar__action:hover,
.topbar__action:focus-visible,
.dashboard-topbar__logout:hover,
.dashboard-topbar__logout:focus-visible,
.auth-form__submit:hover,
.auth-form__submit:focus-visible,
.modal-link:hover,
.modal-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(132, 255, 194, 0.48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    outline: none;
}

.topbar__action--primary,
.auth-form__submit,
.modal-link--primary {
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.18), rgba(255, 122, 230, 0.18));
    border-color: rgba(130, 233, 255, 0.34);
}

.hero-shell {
    width: min(880px, calc(100vw - 32px));
    animation: rise-in 1100ms cubic-bezier(0.18, 0.84, 0.34, 1) both;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4.2vw, 46px);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(15, 26, 49, 0.78), rgba(6, 11, 23, 0.74)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.06), rgba(255, 122, 230, 0.04));
    border: 1px solid rgba(130, 233, 255, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(140%);
    transform-style: preserve-3d;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-panel::before,
.auth-window::before,
.modal-window::before,
.workspace-frame::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto 10% -120px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 227, 255, 0.16), transparent 72%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-title {
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.06em;
    padding-top: 0.08em;
}

.hero-title__line {
    display: block;
    position: relative;
}

.hero-title__line--glow {
    margin-top: 0.08em;
    font-size: clamp(3.2rem, 11vw, 7.2rem);
    font-weight: 900;
    font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
    color: transparent;
    background: linear-gradient(92deg, #c2fff1 0%, #79e7ff 42%, #ff7ae6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow:
        0 0 22px rgba(111, 227, 255, 0.42),
        0 0 44px rgba(255, 122, 230, 0.18);
    filter: drop-shadow(0 10px 26px rgba(18, 196, 255, 0.16));
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.hero-title__line--glow::before,
.hero-title__line--glow::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.hero-title__line--glow.is-glitching {
    animation: hero-glitch-shift 140ms steps(2) infinite;
}

.hero-title__line--glow.is-glitching::before,
.hero-title__line--glow.is-glitching::after {
    opacity: 0.95;
}

.hero-title__line--glow.is-glitching::before {
    color: rgba(117, 238, 255, 0.92);
    text-shadow: -3px 0 rgba(111, 227, 255, 0.4);
    transform: translate(-5px, -1px);
    mix-blend-mode: screen;
    animation: hero-glitch-layer-1 180ms steps(2) infinite;
}

.hero-title__line--glow.is-glitching::after {
    color: rgba(255, 126, 226, 0.86);
    text-shadow: 3px 0 rgba(255, 122, 230, 0.34);
    transform: translate(5px, 1px);
    mix-blend-mode: screen;
    animation: hero-glitch-layer-2 180ms steps(2) infinite;
}

.hero-subtitle {
    margin: 22px 0 0;
    color: rgba(233, 244, 255, 0.92);
    font-size: clamp(1rem, 2.4vw, 1.24rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-subtitle::after {
    content: "_";
    display: inline-block;
    margin-left: 0.18em;
    color: var(--mint);
    animation: blink 900ms steps(1) infinite;
}

.divider {
    width: 100%;
    height: 1px;
    margin: 26px 0 18px;
    background: linear-gradient(90deg, transparent, rgba(125, 227, 255, 0.55), transparent);
}

.terminal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(130, 233, 255, 0.12);
    background: linear-gradient(90deg, rgba(6, 12, 24, 0.9), rgba(6, 14, 26, 0.58));
}

.terminal__prompt {
    flex: 0 0 auto;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
}

.terminal__line {
    min-height: 1.4em;
    color: rgba(233, 244, 255, 0.92);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.auth-shell,
.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 14;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    background: rgba(2, 5, 10, 0.42);
    transition: opacity 180ms ease;
}

.auth-shell {
    z-index: 15;
}

.auth-shell.is-open,
.modal-shell.is-open {
    pointer-events: auto;
    opacity: 1;
}

.auth-window,
.modal-window,
.workspace-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(130, 233, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 15, 31, 0.92), rgba(7, 13, 26, 0.82)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.08), rgba(255, 122, 230, 0.05));
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    transform: translateY(14px) scale(0.985);
    transition: transform 220ms ease;
}

.auth-shell.is-open .auth-window,
.modal-shell.is-open .modal-window {
    transform: translateY(0) scale(1);
}

.auth-window {
    width: min(520px, calc(100vw - 36px));
}

.auth-content {
    padding: 34px;
}

.modal-tag,
.workspace-frame__status,
.welcome-overlay__eyebrow {
    display: inline-block;
    color: var(--mint);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-content h3,
.modal-content h3 {
    margin: 14px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
}

.modal-content p {
    margin: 0;
    color: rgba(233, 244, 255, 0.82);
    line-height: 1.8;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 24px 0 18px;
}

.auth-tabs__button {
    padding: 12px 14px;
    border: 1px solid rgba(120, 230, 255, 0.12);
    border-radius: 16px;
    background: rgba(6, 12, 24, 0.46);
    color: rgba(233, 244, 255, 0.82);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-tabs__button.is-active {
    border-color: rgba(132, 255, 194, 0.3);
    background: rgba(22, 41, 52, 0.72);
    color: var(--text);
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    line-height: 1.6;
}

.flash--error {
    background: rgba(85, 18, 26, 0.36);
    border-color: rgba(255, 116, 140, 0.18);
    color: #ffd8df;
}

.flash--success {
    background: rgba(16, 56, 42, 0.34);
    border-color: rgba(138, 255, 200, 0.18);
    color: #dbfff0;
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: block;
}

.auth-form__label {
    display: block;
    margin-bottom: 14px;
}

.auth-form__label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-form__input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(120, 230, 255, 0.12);
    border-radius: 16px;
    background: rgba(6, 12, 24, 0.72);
    color: var(--text);
    font: inherit;
}

.auth-form__input:focus {
    border-color: rgba(138, 255, 200, 0.32);
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 255, 194, 0.08);
}

.auth-form__submit {
    width: 100%;
    margin-top: 8px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 16, 30, 0.72);
    color: rgba(231, 244, 255, 0.88);
    font-size: 1.9rem;
    line-height: 1;
    transform: rotate(45deg);
    cursor: pointer;
}

.modal-shell {
    z-index: 13;
    align-items: start;
    justify-items: start;
    padding: 84px 24px 24px;
    background: transparent;
}

.modal-window {
    width: min(980px, calc(100vw - 48px));
    min-height: 420px;
}

.modal-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(111, 227, 255, 0.08), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(255, 122, 230, 0.08), transparent 24%);
    pointer-events: none;
}

.modal-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(380px, 460px) 1fr;
    min-height: 420px;
}

.telegram-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(130, 233, 255, 0.12);
    background: #070909;
}

.telegram-browser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(24, 24, 24, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.telegram-browser__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.94rem;
}

.telegram-browser__logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2aabee;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    transform: rotate(-28deg);
}

.telegram-stage {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 28px 22px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23233233' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='18' r='8'/%3E%3Cpath d='M54 14l10 10-10 10'/%3E%3Cpath d='M79 17c8 0 8 12 0 12s-8 12 0 12'/%3E%3Cpath d='M16 70c7-9 19-9 26 0'/%3E%3Cpath d='M20 70v12c0 7 18 7 18 0V70'/%3E%3Cpath d='M64 63l7 14 14 7-14 7-7 14-7-14-14-7 14-7z'/%3E%3Cpath d='M90 72l16 16'/%3E%3Cpath d='M106 72L90 88'/%3E%3Cpath d='M50 99c10-8 22-8 32 0'/%3E%3Cpath d='M44 38l8 4-4 8-8-4z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, auto, 120px 120px;
}

.telegram-landing-card {
    width: min(100%, 370px);
    padding: 34px 30px;
    border-radius: 26px;
    background: #242221;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.telegram-landing-card__avatar {
    width: 116px;
    height: 116px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, rgba(101, 0, 0, 0.34), transparent 36%),
        radial-gradient(circle at center, rgba(109, 0, 0, 0.72), rgba(19, 4, 6, 1) 72%);
    border: 1px solid rgba(130, 0, 0, 0.28);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.44);
}

.telegram-landing-card__title {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.telegram-landing-card__members {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.94rem;
}

.telegram-landing-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.58;
    text-align: left;
}

.telegram-landing-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.telegram-landing-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.telegram-landing-card__button--primary {
    background: #2aabee;
    color: #ffffff;
}

.telegram-landing-card__button--ghost {
    border: 2px solid #2aabee;
    color: #2aabee;
    background: transparent;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.modal-link--ghost {
    background: rgba(7, 15, 30, 0.48);
}

.dashboard-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 0;
}

.dashboard-topbar__group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-topbar__pill,
.dashboard-topbar__user {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(138, 255, 200, 0.16);
    background: rgba(6, 12, 22, 0.56);
    color: rgba(239, 247, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.dashboard-topbar__user {
    border-color: rgba(120, 230, 255, 0.14);
}

.dashboard-shell {
    position: relative;
    z-index: 4;
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 18px 20px 20px;
}

.workspace-frame {
    width: min(1680px, calc(100vw - 32px));
    height: min(calc(100vh - 108px), 900px);
    padding: 28px 28px 26px;
    background:
        linear-gradient(180deg, rgba(2, 4, 7, 0.98), rgba(4, 7, 12, 0.92)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.03), rgba(143, 245, 197, 0.02));
}

.workspace-frame::after {
    content: "";
    position: absolute;
    inset: auto 16% -160px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 231, 255, 0.08), transparent 74%);
    filter: blur(44px);
    pointer-events: none;
}

.workspace-frame__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 20px;
    height: 100%;
    min-height: 0;
}

.channel-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
    border-radius: 26px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 15, 27, 0.92), rgba(5, 9, 16, 0.82)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.04), transparent 64%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.channel-panel__head {
    margin-bottom: 12px;
}

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

.panel-switch__button,
.panel-action,
.workspace-stage__tab,
.workspace-stage__action {
    min-height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background: rgba(7, 14, 25, 0.68);
    color: rgba(231, 243, 255, 0.88);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.panel-switch__button:hover,
.panel-switch__button:focus-visible,
.panel-action:hover,
.panel-action:focus-visible,
.workspace-stage__tab:hover,
.workspace-stage__tab:focus-visible,
.workspace-stage__action:hover,
.workspace-stage__action:focus-visible,
.channel-panel__slot:hover,
.channel-panel__slot:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(132, 255, 194, 0.28);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    outline: none;
}

.panel-switch__button.is-active,
.workspace-stage__tab.is-active {
    border-color: rgba(132, 255, 194, 0.3);
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.12), rgba(132, 255, 194, 0.12));
}

.channel-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.panel-action--wide {
    grid-column: 1 / -1;
}

.channel-panel__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 231, 255, 0.3) transparent;
}

.channel-panel__scroll::-webkit-scrollbar {
    width: 8px;
}

.channel-panel__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.channel-panel__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 231, 255, 0.22);
}

.channel-panel__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: calc(100% + 560px);
}

.channel-panel__slot {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 0 15px;
    border-radius: 18px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 16, 28, 0.82), rgba(5, 10, 18, 0.68)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.04), transparent 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.channel-panel__slot.is-active {
    border-color: rgba(132, 255, 194, 0.22);
    background:
        linear-gradient(180deg, rgba(12, 22, 34, 0.88), rgba(6, 13, 23, 0.74)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.08), transparent 72%);
}

.channel-panel__slot-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.94), rgba(111, 227, 255, 0.8));
    box-shadow: 0 0 12px rgba(132, 255, 194, 0.28);
}

.channel-panel__slot-content {
    display: grid;
    gap: 6px;
    width: 100%;
}

.channel-panel__slot-content strong {
    color: rgba(234, 245, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.channel-panel__slot-content small {
    color: rgba(154, 176, 195, 0.74);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.workspace-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.workspace-stage__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.9), rgba(5, 9, 16, 0.82)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.04), transparent 70%);
}

.workspace-stage__tabs,
.workspace-stage__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.workspace-stage__tab,
.workspace-stage__action {
    padding: 0 16px;
}

.workspace-stage__action--primary {
    border-color: rgba(132, 255, 194, 0.3);
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.16), rgba(132, 255, 194, 0.14));
}

.workspace-frame__core {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        radial-gradient(circle at 50% 100%, rgba(111, 227, 255, 0.06), transparent 26%),
        linear-gradient(rgba(120, 231, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 231, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(2, 5, 10, 0.92), rgba(1, 3, 7, 0.96));
    background-size: auto, 56px 56px, 56px 56px, auto;
}

.workspace-frame__hud {
    position: absolute;
    inset: 18px;
    pointer-events: none;
}

.workspace-frame__hud-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(120, 231, 255, 0.16);
    border-style: solid;
}

.workspace-frame__hud-corner--tl {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.workspace-frame__hud-corner--tr {
    top: 0;
    right: 0;
    border-width: 1px 1px 0 0;
}

.workspace-frame__hud-corner--bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
}

.workspace-frame__hud-corner--br {
    right: 0;
    bottom: 0;
    border-width: 0 1px 1px 0;
}

.workspace-frame__layer {
    position: absolute;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 231, 255, 0.18), transparent);
}

.workspace-frame__layer--top {
    top: 34px;
}

.workspace-frame__layer--bottom {
    bottom: 34px;
}

.workspace-frame__status {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(120, 231, 255, 0.16);
    background: rgba(5, 10, 18, 0.68);
    color: rgba(218, 245, 250, 0.76);
    letter-spacing: 0.2em;
}

.page--dashboard #matrix-rain {
    opacity: 0.08;
}

.page--dashboard .backdrop-grid--dashboard {
    opacity: 0.04;
}

.page--dashboard .noise--dashboard {
    opacity: 0.02;
}

.dashboard-shell {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 24px 24px;
}

.dashboard-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(6, 12, 22, 0.94), rgba(4, 8, 15, 0.9)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.04), transparent 72%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.dashboard-sidebar__panel {
    padding: 18px;
    display: grid;
    gap: 12px;
    border-bottom: 1px solid rgba(120, 231, 255, 0.08);
}

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

.dashboard-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 231, 255, 0.28) transparent;
}

.dashboard-sidebar__scroll::-webkit-scrollbar {
    width: 8px;
}

.dashboard-sidebar__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 231, 255, 0.2);
}

.dashboard-sidebar__footer {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(120, 231, 255, 0.06);
}

.channel-panel__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: calc(100% + 420px);
}

.channel-panel__slot {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 0 17px;
    border-radius: 18px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 16, 27, 0.8), rgba(6, 11, 19, 0.7)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.025), transparent 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.channel-panel__slot.is-active {
    border-color: rgba(132, 255, 194, 0.18);
    background:
        linear-gradient(180deg, rgba(12, 22, 34, 0.82), rgba(7, 14, 24, 0.72)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.06), transparent 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 32px rgba(0, 0, 0, 0.18);
}

.dashboard-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-main__toolbar,
.dashboard-main__surface {
    border-radius: 30px;
    border: 1px solid rgba(120, 231, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 15, 27, 0.92), rgba(4, 8, 15, 0.88)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.04), transparent 72%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.dashboard-main__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.dashboard-main__tabs,
.dashboard-main__actions,
.surface-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-main__surface {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 231, 255, 0.22) transparent;
}

.dashboard-main__surface::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dashboard-main__surface::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 231, 255, 0.18);
}

.dashboard-main__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(120, 231, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 231, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 94%);
    opacity: 0.56;
    pointer-events: none;
}

.dashboard-main__layout {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 340px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
        "overview overview"
        "banner banner"
        "canvas rail"
        "bottom rail";
    gap: 18px;
    padding: 18px;
}

.surface-card {
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(7, 13, 23, 0.92), rgba(4, 7, 13, 0.84)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.04), transparent 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.surface-card--banner {
    grid-area: banner;
    padding: 14px;
}

.surface-card--overview {
    grid-area: overview;
    padding: 18px;
}

.surface-chip {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background: rgba(10, 16, 27, 0.72);
    color: rgba(225, 239, 250, 0.82);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.surface-chip.is-active {
    border-color: rgba(132, 255, 194, 0.2);
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.11), rgba(132, 255, 194, 0.09));
    color: rgba(237, 247, 255, 0.92);
}

.surface-chip--icon {
    width: 46px;
    min-width: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.surface-chip__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.92), rgba(111, 227, 255, 0.78));
    box-shadow: 0 0 14px rgba(132, 255, 194, 0.18);
}

.surface-card--canvas {
    grid-area: canvas;
}

.surface-card__canvas {
    height: 100%;
    min-height: 360px;
    padding: 18px;
}

.dashboard-view {
    display: none;
    height: 100%;
    min-height: 100%;
}

.dashboard-view.is-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-view__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.88), rgba(5, 8, 14, 0.82)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.04), transparent 72%);
}

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

.dashboard-view__hero-copy {
    display: grid;
    gap: 10px;
}

.dashboard-view__hero-copy--silent {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-view__ghost {
    display: grid;
    gap: 12px;
    width: min(520px, 100%);
}

.dashboard-view__ghost span,
.overview-ghost span,
.overview-band__tracks span,
.overview-band__cluster span,
.option-strip__meter span,
.surface-card__label:empty {
    display: block;
    border-radius: 999px;
    background: rgba(222, 240, 255, 0.12);
}

.dashboard-view__ghost span:nth-child(1) {
    width: min(68%, 360px);
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(111, 227, 255, 0.13), rgba(132, 255, 194, 0.09)),
        rgba(222, 240, 255, 0.12);
}

.dashboard-view__ghost span:nth-child(2) {
    width: min(54%, 280px);
    height: 12px;
}

.dashboard-view__ghost span:nth-child(3) {
    width: min(40%, 220px);
    height: 12px;
}

.dashboard-view__tag {
    color: var(--mint);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-view__hero-copy h2 {
    margin: 0;
    font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 0.98;
}

.dashboard-view__hero-copy p {
    margin: 0;
    color: rgba(223, 236, 248, 0.76);
    line-height: 1.7;
}

.dashboard-view__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-view__stat {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.84), rgba(5, 8, 14, 0.8)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.04), transparent 72%);
}

.dashboard-view__stat span {
    color: rgba(158, 180, 198, 0.76);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-view__stat strong {
    color: rgba(236, 246, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dashboard-view__stat--silent span,
.dashboard-view__stat--silent strong {
    display: block;
    color: transparent;
    border-radius: 999px;
    background: rgba(222, 240, 255, 0.12);
}

.dashboard-view__stat--silent span {
    width: 42%;
    height: 10px;
}

.dashboard-view__stat--silent strong {
    width: 70%;
    height: 16px;
}

.dashboard-view__frame,
.dashboard-view__card,
.dashboard-view__placeholder {
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(6, 11, 19, 0.84), rgba(3, 6, 12, 0.78)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.03), transparent 68%);
}

.dashboard-view__frame {
    min-height: 360px;
    padding: 16px;
}

.dashboard-view__frame-stage {
    height: 100%;
    display: grid;
    grid-template-rows: minmax(180px, 1.2fr) auto;
    gap: 16px;
}

.dashboard-view__frame-hero,
.dashboard-view__media-card,
.dashboard-view__card {
    border-radius: 20px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(7, 12, 20, 0.9), rgba(4, 7, 12, 0.82)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.04), transparent 72%);
}

.dashboard-view__frame-hero {
    min-height: 0;
}

.dashboard-view__frame-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-view__media-card {
    min-height: 120px;
}

.dashboard-view__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.dashboard-view__card {
    min-height: 170px;
}

.dashboard-view__card--post {
    min-height: 160px;
}

.dashboard-view__placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: rgba(233, 244, 255, 0.74);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.overview-shell {
    display: grid;
    gap: 18px;
}

.overview-shell--silent {
    gap: 16px;
}

.overview-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 16, 27, 0.84), rgba(6, 10, 17, 0.8)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.025), transparent 72%);
}

.overview-band__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.9), rgba(111, 227, 255, 0.76));
    box-shadow: 0 0 16px rgba(132, 255, 194, 0.16);
}

.overview-band__tracks,
.overview-band__cluster {
    display: grid;
    gap: 10px;
}

.overview-band__tracks span:nth-child(1) {
    width: min(220px, 100%);
    height: 12px;
}

.overview-band__tracks span:nth-child(2) {
    width: min(180px, 100%);
    height: 10px;
}

.overview-band__tracks span:nth-child(3) {
    width: min(126px, 100%);
    height: 10px;
}

.overview-band__cluster {
    justify-items: end;
}

.overview-band__cluster span:nth-child(1) {
    width: 86px;
    height: 10px;
}

.overview-band__cluster span:nth-child(2) {
    width: 62px;
    height: 10px;
}

.overview-band__cluster span:nth-child(3) {
    width: 44px;
    height: 10px;
}

.overview-shell__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.overview-shell__intro {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.overview-shell__intro h2 {
    margin: 0;
    color: rgba(236, 246, 255, 0.92);
    font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3.1rem);
    line-height: 1.02;
}

.overview-shell__intro p {
    margin: 0;
    color: rgba(174, 194, 210, 0.78);
    line-height: 1.75;
    max-width: 66ch;
}

.overview-shell__status {
    min-width: 260px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(9, 15, 25, 0.84), rgba(5, 9, 15, 0.8)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.035), transparent 72%);
}

.overview-shell__status-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(165, 187, 204, 0.8);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.overview-shell__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.9), rgba(111, 227, 255, 0.72));
    box-shadow: 0 0 16px rgba(132, 255, 194, 0.18);
}

.overview-shell__status strong {
    color: rgba(237, 247, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 700;
}

.overview-shell__status small {
    color: rgba(159, 181, 197, 0.74);
    line-height: 1.65;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.overview-stat {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(13, 20, 31, 0.86), rgba(8, 13, 22, 0.82)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.025), transparent 70%);
}

.overview-stat__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overview-stat__top span:first-child {
    color: rgba(155, 176, 194, 0.78);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.overview-stat__delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(99, 146, 255, 0.18);
    background: rgba(38, 79, 166, 0.16);
    color: rgba(122, 178, 255, 0.96);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.overview-stat strong {
    color: rgba(239, 247, 255, 0.94);
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.overview-stat small {
    color: rgba(154, 176, 193, 0.72);
    line-height: 1.65;
}

.overview-stat--silent {
    min-height: 132px;
    align-content: start;
}

.overview-stat--silent span,
.overview-stat--silent strong,
.overview-stat--silent small {
    display: block;
    color: transparent;
    border-radius: 999px;
    background: rgba(222, 240, 255, 0.12);
}

.overview-stat--silent span {
    width: 40%;
    height: 10px;
}

.overview-stat--silent strong {
    width: 66%;
    height: 40px;
    border-radius: 14px;
}

.overview-stat--silent small {
    width: 54%;
    height: 10px;
}

.overview-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.overview-module {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 16, 27, 0.84), rgba(6, 10, 17, 0.8)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.025), transparent 72%);
}

.overview-module__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overview-module__tag {
    color: rgba(159, 181, 197, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.overview-module h3 {
    margin: 0;
    color: rgba(237, 247, 255, 0.92);
    font-size: 1rem;
    line-height: 1.45;
}

.overview-module p {
    margin: 0;
    color: rgba(154, 176, 193, 0.72);
    line-height: 1.7;
}

.overview-module--silent {
    min-height: 178px;
}

.overview-module--silent .overview-module__head {
    justify-content: flex-end;
}

.overview-ghost {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.overview-ghost span:nth-child(1) {
    width: 64%;
    height: 12px;
}

.overview-ghost span:nth-child(2) {
    width: 82%;
    height: 12px;
}

.overview-ghost span:nth-child(3) {
    width: 48%;
    height: 12px;
}

.option-strip {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr) minmax(230px, 0.8fr);
    gap: 16px;
    align-items: center;
}

.option-strip__intro {
    display: grid;
    gap: 8px;
}

.option-strip__intro strong {
    color: rgba(237, 247, 255, 0.9);
    font-size: 1rem;
    font-weight: 700;
}

.option-strip__intro p {
    margin: 0;
    color: rgba(155, 176, 194, 0.72);
    line-height: 1.65;
}

.option-strip__chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.option-strip__focus {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 16, 27, 0.84), rgba(6, 10, 17, 0.8)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.025), transparent 72%);
}

.option-strip__focus span {
    color: rgba(159, 181, 197, 0.74);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.option-strip__focus strong {
    color: rgba(237, 247, 255, 0.92);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.option-strip__focus small {
    color: rgba(154, 176, 193, 0.72);
    line-height: 1.6;
}

.option-strip--silent {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.option-strip__rail {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.option-strip__meter {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 231, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 16, 27, 0.84), rgba(6, 10, 17, 0.8)),
        linear-gradient(135deg, rgba(120, 231, 255, 0.025), transparent 72%);
}

.option-strip__meter span:nth-child(1) {
    width: 76%;
    height: 10px;
}

.option-strip__meter span:nth-child(2) {
    width: 48%;
    height: 10px;
}

.surface-dock,
.surface-list__item {
    border-radius: 22px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(6, 11, 19, 0.8), rgba(3, 6, 12, 0.76)),
        linear-gradient(90deg, rgba(120, 231, 255, 0.03), transparent 68%);
}

.surface-dock {
    min-height: 148px;
}

.surface-dock--hero {
    min-height: 54%;
}

.surface-dock-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-height: 0;
}

.surface-dock-row--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-rail {
    grid-area: rail;
    min-height: 0;
    display: grid;
    gap: 18px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.dashboard-bottom {
    grid-area: bottom;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.surface-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}

.surface-card__label {
    color: rgba(160, 183, 201, 0.8);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.surface-card__label:empty {
    width: 92px;
    height: 10px;
}

.surface-card__badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.92), rgba(111, 227, 255, 0.76));
    box-shadow: 0 0 14px rgba(132, 255, 194, 0.22);
}

.surface-list {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.surface-list__item {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 14px;
}

.surface-list__item--text {
    padding: 14px;
}

.surface-list__item--text strong {
    color: rgba(236, 246, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.surface-list__item--text small {
    color: rgba(156, 179, 198, 0.76);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.surface-list__item span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(228, 244, 255, 0.14);
}

.surface-list__item span:first-child {
    width: 72%;
}

.surface-list__item span:last-child {
    width: 44%;
}

.surface-list--compact .surface-list__item {
    min-height: 50px;
}

.panel-switch__button,
.panel-action,
.workspace-stage__tab,
.workspace-stage__action {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(120, 231, 255, 0.1);
    background: rgba(10, 16, 27, 0.68);
    color: rgba(231, 243, 255, 0.88);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.panel-action--stacked {
    min-height: 74px;
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 5px;
    padding: 12px 14px;
    text-align: left;
}

.panel-action--stacked strong {
    color: rgba(237, 247, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-action--stacked small {
    color: rgba(149, 171, 189, 0.68);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-switch__button.is-active,
.workspace-stage__tab.is-active,
.workspace-stage__action--primary {
    border-color: rgba(132, 255, 194, 0.2);
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.11), rgba(132, 255, 194, 0.09));
}

.dashboard-topbar {
    width: min(1480px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 24px 24px 0;
}

.dashboard-shell {
    width: min(1480px, calc(100vw - 48px));
    margin: 0 auto;
    align-items: start;
    gap: 22px;
    padding: 18px 24px 28px;
}

.dashboard-sidebar,
.dashboard-main__toolbar,
.dashboard-main__surface {
    position: relative;
    overflow: hidden;
}

.dashboard-sidebar {
    border-radius: 34px;
    border-color: rgba(118, 224, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 14, 25, 0.96), rgba(4, 8, 15, 0.92)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.045), transparent 72%);
    box-shadow:
        0 0 0 1px rgba(111, 227, 255, 0.08),
        0 28px 80px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-sidebar::before,
.dashboard-main__toolbar::before,
.dashboard-main__surface::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px solid rgba(118, 224, 255, 0.12);
    pointer-events: none;
}

.dashboard-sidebar::after,
.dashboard-main__toolbar::after,
.dashboard-main__surface::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(105, 241, 255, 0.7), transparent);
    box-shadow: 0 0 18px rgba(111, 227, 255, 0.26);
    pointer-events: none;
}

.dashboard-sidebar__panel {
    padding: 24px 18px 16px;
}

.dashboard-sidebar__scroll {
    padding: 14px 18px 16px;
}

.dashboard-sidebar__footer {
    padding: 0 18px 20px;
}

.dashboard-main__toolbar {
    padding: 12px 14px;
    border-radius: 34px;
    border-color: rgba(118, 224, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(9, 15, 26, 0.94), rgba(5, 9, 16, 0.88)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.045), transparent 74%);
    box-shadow:
        0 0 0 1px rgba(111, 227, 255, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dashboard-main__surface {
    padding: 18px;
    border-radius: 38px;
    border-color: rgba(118, 224, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(7, 12, 21, 0.96), rgba(3, 6, 12, 0.94)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.04), transparent 78%);
    box-shadow:
        0 0 0 1px rgba(111, 227, 255, 0.09),
        0 40px 90px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-main__flare {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(127, 255, 244, 0.9);
    box-shadow: 0 0 18px rgba(111, 227, 255, 0.85);
    pointer-events: none;
    z-index: 2;
}

.dashboard-main__flare--tl {
    top: 14px;
    left: 14px;
}

.dashboard-main__flare--tr {
    top: 14px;
    right: 14px;
}

.dashboard-main__flare--bl {
    bottom: 14px;
    left: 14px;
}

.dashboard-main__flare--br {
    bottom: 14px;
    right: 14px;
}

.dashboard-main__layout {
    grid-template-columns: minmax(0, 1.55fr) 390px;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
        "overview overview"
        "banner banner"
        "canvas rail";
    gap: 18px;
    padding: 0;
}

.surface-card {
    border-radius: 32px;
    border-color: rgba(118, 224, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(9, 15, 25, 0.94), rgba(4, 8, 14, 0.88)),
        linear-gradient(135deg, rgba(111, 227, 255, 0.04), transparent 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.surface-card--overview {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.surface-card--banner {
    min-height: 90px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.surface-card--canvas {
    min-height: 0;
}

.surface-card__canvas {
    padding: 0;
    min-height: 620px;
}

.surface-ghost-grid {
    display: grid;
    gap: 16px;
}

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

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

.surface-ghost-card {
    min-height: 74px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(118, 224, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(13, 20, 31, 0.88), rgba(8, 13, 21, 0.84)),
        linear-gradient(90deg, rgba(118, 224, 255, 0.03), transparent 68%);
}

.surface-ghost-card > span {
    display: block;
    width: 72%;
    height: 14px;
    border-radius: 999px;
    background: rgba(228, 244, 255, 0.14);
}

.surface-ghost-card--signal {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 0 20px;
}

.surface-ghost-card__dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(132, 255, 194, 0.92), rgba(111, 227, 255, 0.8));
    box-shadow: 0 0 18px rgba(132, 255, 194, 0.24);
}

.surface-ghost-card__stack {
    display: grid;
    gap: 10px;
    width: 100%;
}

.surface-ghost-card__stack span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(228, 244, 255, 0.14);
}

.surface-ghost-card__stack span:first-child {
    width: 74%;
}

.surface-ghost-card__stack span:last-child {
    width: 42%;
}

.control-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.control-strip__rail {
    display: flex;
    align-items: center;
    gap: 14px;
}

.control-strip__line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(111, 227, 255, 0.22), rgba(111, 227, 255, 0.04));
}

.surface-chip--orb {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(10, 18, 29, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.surface-chip--orb.is-active {
    background:
        radial-gradient(circle at center, rgba(132, 255, 194, 0.14), rgba(10, 18, 29, 0.92) 72%);
    box-shadow:
        inset 0 0 0 1px rgba(132, 255, 194, 0.28),
        0 0 24px rgba(111, 227, 255, 0.2);
}

.panel-switch__button,
.panel-action,
.workspace-stage__tab,
.workspace-stage__action,
.channel-panel__slot {
    border-color: rgba(118, 224, 255, 0.14);
}

.workspace-stage__tab,
.workspace-stage__action {
    min-height: 46px;
    border-radius: 18px;
}

.workspace-stage__tab.is-active,
.workspace-stage__action--primary,
.panel-switch__button.is-active {
    box-shadow:
        inset 0 0 0 1px rgba(132, 255, 194, 0.16),
        0 0 26px rgba(111, 227, 255, 0.12);
}

.channel-panel__slot {
    min-height: 72px;
    border-radius: 22px;
    padding: 0 18px;
}

.channel-panel__slot-dot {
    width: 13px;
    height: 13px;
    box-shadow:
        0 0 0 4px rgba(105, 241, 255, 0.08),
        0 0 14px rgba(132, 255, 194, 0.28);
}

.dashboard-view__frame {
    border-radius: 30px;
    border-color: rgba(118, 224, 255, 0.14);
}

.dashboard-view__frame--stage {
    height: 100%;
    min-height: 100%;
    padding: 18px;
}

.dashboard-view__frame--stage .dashboard-view__frame-stage {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 16px;
    height: 100%;
}

.dashboard-view__frame-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(118, 224, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.9), rgba(5, 8, 14, 0.84)),
        linear-gradient(90deg, rgba(118, 224, 255, 0.04), transparent 72%);
}

.dashboard-view__frame-bar {
    display: grid;
    gap: 12px;
    width: min(420px, 100%);
}

.dashboard-view__frame-bar span,
.dashboard-view__frame-pills span,
.dashboard-view__frame-actions span {
    display: block;
    border-radius: 999px;
    background: rgba(228, 244, 255, 0.14);
}

.dashboard-view__frame-bar span:nth-child(1) {
    width: 78%;
    height: 14px;
}

.dashboard-view__frame-bar span:nth-child(2) {
    width: 58%;
    height: 12px;
}

.dashboard-view__frame-bar span:nth-child(3) {
    width: 42%;
    height: 12px;
}

.dashboard-view__frame-actions {
    display: flex;
    gap: 12px;
}

.dashboard-view__frame-actions span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

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

.dashboard-view__frame-pills span {
    height: 36px;
}

.dashboard-view__frame-screen {
    min-height: 0;
    border-radius: 26px;
    border: 1px solid rgba(118, 224, 255, 0.12);
    background:
        radial-gradient(circle at 50% 100%, rgba(111, 227, 255, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(5, 10, 18, 0.94), rgba(3, 5, 10, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-view__frame-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-view__media-card {
    min-height: 82px;
    border-radius: 22px;
}

.dashboard-rail {
    gap: 18px;
    grid-template-rows: minmax(0, 0.88fr) minmax(0, 1fr);
}

.surface-card__header {
    padding: 18px 18px 0;
}

.surface-list {
    padding: 18px;
    gap: 14px;
}

.surface-list__item {
    min-height: 74px;
    border-radius: 22px;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.985);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.82));
    transition: opacity 420ms ease, visibility 420ms ease, transform 420ms ease;
}

.welcome-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.welcome-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
}

.welcome-overlay__title {
    padding: 0 24px;
    text-align: center;
    font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: clamp(4rem, 11vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: transparent;
    background: linear-gradient(92deg, #d6ffff 0%, #80eaff 44%, #a8ffd9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 28px rgba(120, 231, 255, 0.22);
}

.welcome-overlay__name {
    color: rgba(228, 247, 255, 0.82);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes hero-glitch-shift {
    0% {
        transform: translate3d(0, 0, 0);
        filter: drop-shadow(0 10px 26px rgba(18, 196, 255, 0.16));
    }
    25% {
        transform: translate3d(-2px, 1px, 0);
    }
    50% {
        transform: translate3d(2px, -1px, 0);
        filter: drop-shadow(0 12px 30px rgba(255, 122, 230, 0.18));
    }
    100% {
        transform: translate3d(0, 0, 0);
        filter: drop-shadow(0 10px 26px rgba(18, 196, 255, 0.16));
    }
}

@keyframes hero-glitch-layer-1 {
    0% {
        clip-path: inset(8% 0 58% 0);
    }
    50% {
        clip-path: inset(42% 0 22% 0);
    }
    100% {
        clip-path: inset(70% 0 8% 0);
    }
}

@keyframes hero-glitch-layer-2 {
    0% {
        clip-path: inset(62% 0 8% 0);
    }
    50% {
        clip-path: inset(18% 0 48% 0);
    }
    100% {
        clip-path: inset(36% 0 28% 0);
    }
}

@keyframes drift-left {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(48px, -18px, 0) scale(1.12);
    }
}

@keyframes drift-right {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-56px, 20px, 0) scale(1.1);
    }
}

@media (max-width: 720px) {
    .layout,
    .dashboard-shell {
        padding: 18px;
    }

    .topbar {
        top: 18px;
        left: 18px;
        right: 18px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-panel {
        padding: 26px 22px;
        border-radius: 26px;
    }

    .auth-shell {
        padding: 18px;
    }

    .modal-shell {
        padding: 74px 18px 18px;
    }

    .modal-window {
        width: min(100%, calc(100vw - 36px));
    }

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

    .telegram-preview {
        border-right: 0;
        border-bottom: 1px solid rgba(130, 233, 255, 0.12);
    }

    .modal-content,
    .auth-content {
        padding: 28px 24px 30px;
    }

    .terminal {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-topbar {
        padding: 16px 18px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-topbar__group {
        width: 100%;
        flex-wrap: wrap;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-main__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-main__tabs,
    .dashboard-main__actions {
        width: 100%;
    }

    .dashboard-main__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto minmax(320px, 1fr) auto auto;
        grid-template-areas:
            "overview"
            "banner"
            "canvas"
            "rail"
            "bottom";
    }

    .dashboard-rail,
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .overview-shell__header {
        flex-direction: column;
    }

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

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

    .overview-band__cluster {
        justify-items: start;
    }

    .option-strip--silent {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-view__hero {
        flex-direction: column;
    }

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

    .dashboard-view__frame-grid,
    .dashboard-view__row,
    .dashboard-view__row--compact {
        grid-template-columns: 1fr;
    }

    .workspace-frame {
        width: calc(100vw - 36px);
        height: min(74vh, 700px);
        border-radius: 26px;
        padding: 22px 18px;
    }

    .workspace-frame__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .channel-panel {
        padding: 14px;
    }

    .channel-panel__scroll {
        height: 220px;
        padding-right: 4px;
    }

    .workspace-stage__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .workspace-stage__tabs,
    .workspace-stage__actions {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .topbar__action,
    .dashboard-topbar__logout,
    .modal-link {
        width: 100%;
    }

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

    .hero-title__line--glow {
        font-size: 3rem;
    }

    .hero-subtitle {
        letter-spacing: 0.1em;
    }

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

    .modal-link {
        min-width: 0;
    }

    .workspace-frame__layer {
        left: 18px;
        right: 18px;
    }

    .dashboard-sidebar__actions,
    .panel-switch {
        grid-template-columns: 1fr;
    }

    .dashboard-main__tabs,
    .dashboard-main__actions,
    .surface-chip-row {
        flex-direction: column;
        align-items: stretch;
    }

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

    .overview-band__tracks span,
    .overview-band__cluster span,
    .option-strip__meter span,
    .dashboard-view__ghost span {
        width: 100%;
    }

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

    .panel-switch__button,
    .panel-action,
    .workspace-stage__tab,
    .workspace-stage__action,
    .surface-chip {
        width: 100%;
    }

    .surface-dock-row,
    .surface-dock-row--compact {
        grid-template-columns: 1fr;
    }

    .panel-switch,
    .channel-panel__actions {
        grid-template-columns: 1fr;
    }

    .workspace-stage__tabs,
    .workspace-stage__actions {
        flex-direction: column;
    }

    .workspace-stage__tab,
    .workspace-stage__action,
    .channel-panel__slot {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .dashboard-topbar,
    .dashboard-shell {
        width: calc(100vw - 28px);
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-main__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "overview"
            "banner"
            "canvas"
            "rail";
    }

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

    .surface-ghost-grid--signal {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .dashboard-main__surface {
        padding: 14px;
        border-radius: 30px;
    }

    .dashboard-main__surface::before,
    .dashboard-main__toolbar::before,
    .dashboard-sidebar::before {
        inset: 8px;
    }

    .surface-ghost-grid--top,
    .dashboard-view__frame-pills,
    .dashboard-view__frame-grid {
        grid-template-columns: 1fr;
    }

    .control-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .control-strip__rail {
        justify-content: center;
        flex-wrap: wrap;
    }

    .control-strip__line {
        width: 100%;
    }

    .surface-chip--orb {
        width: 38px;
        min-width: 38px;
    }
}
