/* =========================================================
   MCQUEEN // CLEAN SKETCH
   F1 COMMAND CENTER
   ========================================================= */

:root {
    --bg: #020304;
    --surface: #06080b;
    --surface-2: #090c10;
    --surface-3: #0d1116;

    --line: rgba(255,255,255,.075);
    --line-strong: rgba(255,255,255,.14);

    --text: #f2f4f5;
    --text-soft: #c4c9ce;
    --muted: #7d858d;
    --muted-dark: #4b535b;

    --red: #e10600;
    --red-bright: #ff3028;
    --red-dark: #700500;

    --green: #55dc8b;
    --blue: #62aaff;

    --sidebar: 270px;
    --telemetry: 310px;

    --mono:
        "JetBrains Mono",
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;

    --sans:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;

    overflow: hidden;

    color: var(--text);

    font-family: var(--sans);

    background:
        radial-gradient(
            ellipse at 50% -20%,
            rgba(225,6,0,.10),
            transparent 42%
        ),
        #020304;
}


/* =========================================================
   BACKGROUND GRID
   ========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .015;

    background-image:
        linear-gradient(
            rgba(255,255,255,.6) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.6) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 88%
        );
}


/* =========================================================
   MAIN FRAME
   ========================================================= */

.mcqueen {
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,255,255,.017),
            transparent 42%
        ),
        var(--surface);
}

.mcqueen::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    z-index: 30;

    background:
        linear-gradient(
            to bottom,
            var(--red-bright),
            var(--red),
            transparent 85%
        );

    box-shadow:
        0 0 22px rgba(225,6,0,.45);
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    height: 76px;

    flex-shrink: 0;

    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.025),
            transparent
        );
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    position: relative;

    border: 1px solid var(--line-strong);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.008)
        );

    color: #f0f2f3;

    font-family: var(--mono);

    font-size: 20px;
    font-weight: 800;
}

.brand-mark::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--red-bright);
}

.brand-name {
    color: #f5f6f7;

    font-family: var(--mono);

    font-size: 20px;
    font-weight: 800;

    letter-spacing: 4px;
}

.brand-subtitle {
    margin-top: 4px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 2px;
}


/* =========================================================
   TOP TELEMETRY
   ========================================================= */

.top-telemetry {
    display: flex;
    align-items: center;
    gap: 34px;
}

.top-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-stat-label {
    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.6px;
}

.top-stat-value {
    color: var(--text-soft);

    font-family: var(--mono);

    font-size: 11px;

    letter-spacing: 1px;
}

.system-status {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: 1.7px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 12px rgba(84,220,139,.75);
}

.system-status.offline .status-dot {
    background: var(--red-bright);

    box-shadow:
        0 0 12px rgba(225,6,0,.7);
}


/* =========================================================
   RACE STRIPE
   ========================================================= */

.race-line {
    height: 4px;

    display: flex;

    gap: 1px;

    flex-shrink: 0;

    background: #080a0d;
}

.race-line span {
    flex: 1;

    background: #181d22;
}

.race-line span:nth-child(1) {
    background: var(--red-bright);
}

.race-line span:nth-child(2) {
    background: #9ba0a5;
}

.race-line span:nth-child(3) {
    background: #454b51;
}


/* =========================================================
   COCKPIT
   ========================================================= */

.cockpit {
    flex: 1;

    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns:
        var(--sidebar)
        minmax(0, 1fr)
        var(--telemetry);

    overflow: hidden;
}


/* =========================================================
   SIDEBARS
   ========================================================= */

.sidebar {
    min-height: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.012),
            transparent 50%
        );
}

.sidebar-left {
    padding: 20px 17px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--line);
}

.sidebar-right {
    padding: 20px 18px;

    overflow-y: auto;

    border-left: 1px solid var(--line);
}

.sidebar-right::-webkit-scrollbar,
.chat-area::-webkit-scrollbar,
.chat-list::-webkit-scrollbar {
    width: 5px;
}

.sidebar-right::-webkit-scrollbar-thumb,
.chat-area::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb {
    background: #282f36;
}

.sidebar-right::-webkit-scrollbar-track,
.chat-area::-webkit-scrollbar-track,
.chat-list::-webkit-scrollbar-track {
    background: transparent;
}


/* =========================================================
   NEW CHAT
   ========================================================= */

.new-chat-button {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.12);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.01)
        );

    color: #e6e8ea;

    font-family: var(--mono);

    font-size: 10px;

    letter-spacing: 1.4px;

    cursor: pointer;

    transition:
        border-color .18s,
        background .18s;
}

.new-chat-button:hover {
    border-color: rgba(225,6,0,.6);

    background:
        linear-gradient(
            135deg,
            rgba(225,6,0,.12),
            rgba(255,255,255,.015)
        );
}

.button-symbol {
    color: var(--red-bright);

    font-size: 18px;
}


/* =========================================================
   SIDEBAR SECTIONS
   ========================================================= */

.sidebar-section {
    margin-top: 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6px 11px;

    border-bottom: 1px solid var(--line);

    color: var(--muted);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.8px;
}

.section-count {
    color: var(--muted-dark);

    font-size: 8px;
}


/* =========================================================
   CHAT LIST
   ========================================================= */

.chat-list {
    max-height: 260px;

    overflow-y: auto;
}

.chat-list:empty::before {
    content: "NO PREVIOUS CHATS";

    display: block;

    padding: 18px 6px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.2px;
}

.chat-item {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 7px 7px 7px 8px;

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.035);

    background: transparent;

    color: #858c93;

    font-size: 12px;

    text-align: left;

    cursor: pointer;

    transition:
        background .15s,
        color .15s,
        border-color .15s;
}

.chat-item:hover {
    background: rgba(255,255,255,.025);

    color: #e1e4e6;
}

.chat-item.active {
    border-left: 2px solid var(--red);

    background:
        linear-gradient(
            90deg,
            rgba(225,6,0,.10),
            transparent
        );

    color: #f0f2f3;
}

.chat-item-icon {
    flex-shrink: 0;

    color: var(--muted-dark);

    font-family: var(--mono);
}

.chat-item-title {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   DELETE CONTROLS
   ========================================================= */

.chat-item-delete,
.project-delete {
    width: 22px;
    height: 22px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 0;

    background: transparent;

    color: #3b4249;

    font-family: var(--mono);

    font-size: 13px;

    opacity: 0;

    cursor: pointer;

    transition:
        color .15s,
        opacity .15s,
        background .15s;
}

.chat-item:hover .chat-item-delete,
.chat-item:focus-within .chat-item-delete,
.project-item:hover .project-delete,
.project-item:focus-within .project-delete {
    opacity: 1;
}

.chat-item-delete:hover,
.project-delete:hover {
    background: rgba(225,6,0,.10);

    color: var(--red-bright);
}


/* =========================================================
   PROJECTS
   ========================================================= */

.project-list {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.project-item {
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 7px 0 9px;

    border: 0;

    background: transparent;

    color: #81888f;

    font-size: 12px;

    text-align: left;

    cursor: pointer;

    transition:
        background .15s,
        color .15s;
}

.project-item:hover {
    background: rgba(255,255,255,.025);

    color: #e0e3e5;
}

.project-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(225,6,0,.09),
            transparent
        );

    color: #f0f1f2;
}

.project-indicator {
    width: 5px;
    height: 5px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #343a40;
}

.project-item.active .project-indicator {
    background: var(--red-bright);

    box-shadow:
        0 0 9px rgba(225,6,0,.7);
}

.project-name {
    flex: 1;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.new-project-button {
    width: 100%;

    margin-top: 12px;

    padding: 10px;

    border: 1px dashed rgba(255,255,255,.10);

    background: transparent;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.2px;

    cursor: pointer;

    transition:
        border-color .15s,
        color .15s;
}

.new-project-button:hover {
    border-color: rgba(255,255,255,.22);

    color: var(--text-soft);
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 17px;

    border-top: 1px solid var(--line);
}

.nav-button {
    width: 100%;
    height: 38px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 9px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.2px;

    text-align: left;

    cursor: pointer;
}

.nav-button:hover {
    background: rgba(255,255,255,.025);

    color: var(--text-soft);
}


/* =========================================================
   CENTER CHAT
   ========================================================= */

.chat-panel {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,255,255,.018),
            transparent 45%
        ),
        #06080b;
}


/* =========================================================
   CHAT HEADER
   ========================================================= */

.chat-header {
    min-height: 64px;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.chat-title {
    color: #e5e8ea;

    font-family: var(--mono);

    font-size: 12px;

    letter-spacing: 1px;
}

.chat-subtitle {
    margin-top: 5px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1.6px;
}

.icon-button {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid var(--line);

    background: rgba(255,255,255,.015);

    color: var(--muted);

    font-size: 18px;

    cursor: pointer;
}

.icon-button:hover {
    background: rgba(255,255,255,.045);

    border-color: var(--line-strong);

    color: white;
}


/* =========================================================
   CHAT AREA
   ========================================================= */

.chat-area {
    flex: 1;

    min-height: 0;

    padding: 38px 8%;

    overflow-y: auto;

    scroll-behavior: smooth;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    min-height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.welcome-mark {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    position: relative;

    border: 1px solid var(--line-strong);

    background:
        radial-gradient(
            circle,
            rgba(225,6,0,.07),
            transparent 68%
        );

    color: #b9bec3;

    font-family: var(--mono);

    font-size: 34px;
    font-weight: 800;
}

.welcome-mark::before {
    content: "";

    position: absolute;

    inset: -8px;

    border: 1px solid rgba(225,6,0,.10);
}

.welcome-mark::after {
    content: "";

    position: absolute;

    bottom: -5px;

    left: 12px;
    right: 12px;

    height: 2px;

    background: var(--red-bright);
}

.welcome-kicker {
    margin-top: 24px;
    margin-bottom: 9px;

    color: var(--red-bright);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 2.2px;
}

.welcome h1 {
    margin: 0 0 9px;

    font-size: 28px;

    font-weight: 600;

    letter-spacing: -.4px;
}

.welcome p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

.welcome-meta {
    display: flex;

    gap: 25px;

    margin-top: 24px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1px;
}

.welcome-meta span {
    display: flex;
    align-items: center;

    gap: 6px;
}

.welcome-meta i {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);
}


/* =========================================================
   MESSAGES
   ========================================================= */

.message {
    width: min(850px, 90%);

    margin-bottom: 28px;

    animation: messageIn .18s ease-out;
}

.message.user {
    margin-left: auto;
}

.message.assistant {
    margin-right: auto;
}

.message-label {
    margin-bottom: 7px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.8px;
}

.message.user .message-label {
    text-align: right;
}

.message-content {
    padding: 16px 18px;

    border: 1px solid var(--line);

    color: #dce0e2;

    font-size: 14px;

    line-height: 1.65;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

.message.user .message-content {
    border-left: 2px solid var(--red);

    background:
        linear-gradient(
            135deg,
            rgba(225,6,0,.065),
            rgba(255,255,255,.012)
        );
}

.message.assistant .message-content {
    border-left: 2px solid #394149;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.005)
        );
}


/* =========================================================
   ACTIVITY
   ========================================================= */

.activity {
    height: 31px;

    padding: 0 8%;

    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1.8px;
}

.activity-light {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #353b41;
}

.activity.active .activity-light {
    background: var(--red-bright);

    box-shadow:
        0 0 10px rgba(225,6,0,.8);

    animation: pulse .8s infinite;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-area {
    min-height: 67px;

    display: flex;
    align-items: flex-end;

    gap: 8px;

    padding: 11px 8% 7px;

    border-top: 1px solid var(--line);

    background: #040609;
}

.input-prefix {
    width: 23px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--red-bright);

    font-family: var(--mono);

    font-size: 20px;
}

#messageInput {
    flex: 1;

    min-height: 46px;
    max-height: 160px;

    resize: none;

    outline: none;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.008)
        );

    color: var(--text);

    padding: 13px 15px;

    font-family: var(--sans);

    font-size: 14px;

    line-height: 1.4;
}

#messageInput:focus {
    border-color: rgba(255,255,255,.20);
}

#messageInput::placeholder {
    color: #555d65;
}

#sendButton {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,.12);

    background:
        linear-gradient(
            135deg,
            #181d22,
            #0e1115
        );

    color: #e1e4e6;

    cursor: pointer;

    font-size: 18px;

    transition: .15s;
}

#sendButton:hover {
    border-color: var(--red);

    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red)
        );

    color: white;
}

#sendButton:disabled {
    opacity: .35;

    cursor: not-allowed;
}

.input-hint {
    padding: 0 8% 10px;

    color: #343a40;

    font-family: var(--mono);

    font-size: 6px;

    letter-spacing: 1.1px;

    text-align: right;
}

.input-hint span {
    margin: 0 7px;

    color: #252a2f;
}


/* =========================================================
   F1 RIGHT PANEL HEADER
   ========================================================= */

.telemetry-heading {
    min-height: 34px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--line);

    color: #8b9299;

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.8px;
}

.live-label {
    color: var(--red-bright);

    font-size: 7px;

    white-space: nowrap;
}


/* =========================================================
   F1 PANELS
   ========================================================= */

.f1-panel {
    padding: 17px 0;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.f1-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1.7px;
}


/* =========================================================
   F1 TABLE
   ========================================================= */

.f1-table {
    max-height: 205px;

    overflow-y: auto;
}

.f1-table::-webkit-scrollbar {
    width: 4px;
}

.f1-table::-webkit-scrollbar-track {
    background: transparent;
}

.f1-table::-webkit-scrollbar-thumb {
    background: #252c32;
}

.f1-row {
    min-height: 31px;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        52px;

    align-items: center;

    padding: 0 4px;

    border-bottom: 1px solid rgba(255,255,255,.025);

    color: #9299a0;

    font-family: var(--mono);

    font-size: 9px;

    transition:
        background .15s,
        color .15s;
}

.f1-row:hover {
    background: rgba(255,255,255,.025);

    color: #eef0f1;
}

.f1-position {
    color: #4d555d;

    font-size: 8px;
}

.f1-driver,
.f1-constructor {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #bfc4c9;

    font-weight: 600;
}

.f1-points {
    color: #858d95;

    text-align: right;

    font-size: 9px;
}

.f1-row:first-child .f1-position {
    color: var(--red-bright);
}

.f1-row:first-child .f1-driver,
.f1-row:first-child .f1-constructor {
    color: #f1f3f4;
}

.f1-row:first-child .f1-points {
    color: #dce0e2;
}

.f1-loading {
    padding: 15px 4px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1px;
}


/* =========================================================
   RACE CARDS
   ========================================================= */

.race-card {
    position: relative;

    margin-bottom: 9px;

    padding: 12px;

    border: 1px solid rgba(255,255,255,.055);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.004)
        );
}

.race-card:last-child {
    margin-bottom: 0;
}

.race-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;

    background: #30373e;
}

.race-card:first-of-type::before {
    background: var(--red);
}

.race-card-label {
    margin-bottom: 8px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1.5px;
}

.race-flag {
    margin-bottom: 5px;

    color: #d4d8db;

    font-size: 17px;
}

.race-name {
    color: #d9dde0;

    font-family: var(--mono);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .5px;
}

.race-date {
    margin-top: 6px;

    color: #7c848c;

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: .8px;
}

.race-circuit {
    margin-top: 4px;

    color: var(--muted-dark);

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: .6px;
}

.race-result {
    margin-top: 8px;

    color: var(--red-bright);

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: 1px;
}


/* =========================================================
   PIT WALL STATUS
   ========================================================= */

.race-status {
    margin-top: 17px;

    padding: 15px;

    position: relative;

    border: 1px solid var(--line);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(225,6,0,.09),
            transparent 55%
        ),
        rgba(255,255,255,.008);
}

.race-status::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 45px;
    height: 2px;

    background: var(--red-bright);
}

.race-status-top {
    display: flex;
    justify-content: space-between;

    color: #4a5158;

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1px;
}

.race-status-title {
    margin-top: 14px;

    color: #c0c5ca;

    font-family: var(--mono);

    font-size: 11px;

    letter-spacing: 2px;
}

.race-status-line {
    height: 3px;

    margin: 11px 0;

    background: #20262b;
}

.race-status-line span {
    display: block;

    width: 42%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--red-dark),
            var(--red-bright)
        );
}

.race-status-footer {
    display: flex;
    justify-content: space-between;

    color: #515960;

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: .8px;
}

.race-status-footer span:last-child {
    color: var(--green);
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

.bottom-bar {
    height: 40px;

    flex-shrink: 0;

    padding: 0 22px 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--line);

    background: #030507;

    color: #565e66;

    font-family: var(--mono);

    font-size: 7px;

    letter-spacing: 1.2px;
}

.telemetry {
    display: flex;
    align-items: center;

    gap: 22px;
}

.telemetry span {
    display: flex;
    align-items: center;

    gap: 6px;
}

.indicator {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #343a40;
}

.indicator.local {
    background: var(--green);
}

.indicator.web {
    background: var(--red-bright);
}

.indicator.memory {
    background: var(--blue);
}

.indicator.ollama {
    background: #a0a6ac;
}

.version {
    color: #41484f;

    letter-spacing: 1.5px;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes messageIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes pulse {

    50% {
        opacity: .25;
    }

}


/* =========================================================
   MEDIUM
   ========================================================= */

@media (max-width: 1200px) {

    :root {
        --sidebar: 245px;
        --telemetry: 285px;
    }

    .top-telemetry {
        gap: 20px;
    }

    .chat-area {
        padding-left: 5%;
        padding-right: 5%;
    }

    .input-area,
    .activity,
    .input-hint {
        padding-left: 5%;
        padding-right: 5%;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    :root {
        --sidebar: 220px;
    }

    .cockpit {
        grid-template-columns:
            var(--sidebar)
            minmax(0, 1fr);
    }

    .sidebar-right {
        display: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    body {
        overflow: auto;
    }

    .topbar {
        height: 62px;

        padding: 0 15px 0 20px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;

        font-size: 16px;
    }

    .brand-name {
        font-size: 15px;

        letter-spacing: 2.5px;
    }

    .brand-subtitle {
        font-size: 6px;
    }

    .top-stat {
        display: none;
    }

    .cockpit {
        display: block;
    }

    .sidebar-left {
        display: none;
    }

    .chat-panel {
        height: 100%;
    }

    .chat-header {
        min-height: 55px;

        padding: 0 15px;
    }

    .chat-area {
        padding: 22px 13px;
    }

    .message {
        width: 94%;
    }

    .welcome {
        padding: 20px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .welcome-meta {
        flex-direction: column;

        gap: 8px;
    }

    .activity {
        padding: 0 13px;
    }

    .input-area {
        padding: 9px 9px 6px;
    }

    .input-prefix {
        display: none;
    }

    .input-hint {
        display: none;
    }

    .bottom-bar {
        height: 34px;

        padding: 0 11px;
    }

    .telemetry {
        gap: 10px;
    }

    .telemetry span:nth-child(4) {
        display: none;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

}