.jarvis-console {
    --j-bg: #02070d;
    --j-panel: rgba(4, 18, 28, .88);
    --j-panel-strong: rgba(3, 13, 21, .96);
    --j-line: rgba(83, 211, 255, .24);
    --j-line-bright: rgba(96, 222, 255, .66);
    --j-cyan: #64dcff;
    --j-cyan-soft: #bdefff;
    --j-blue: #0aaee8;
    --j-amber: #f0b65b;
    --j-danger: #ff745e;
    --j-muted: #7894a3;
    position: relative;
    isolation: isolate;
    width: min(100%, 1800px);
    min-height: calc(100vh - 130px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(82, 208, 255, .19);
    color: #e7faff;
    background:
        radial-gradient(circle at 50% 48%, rgba(7, 114, 159, .16), transparent 38%),
        linear-gradient(135deg, #02080e, #06121b 50%, #02080e);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .48), inset 0 0 90px rgba(7, 87, 121, .08);
    font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

.jarvis-console::before,
.jarvis-console::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.jarvis-console::before {
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(87, 213, 255, .25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 213, 255, .18) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.jarvis-console::after {
    width: 560px;
    height: 560px;
    top: -370px;
    right: -250px;
    border: 1px solid var(--j-line-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(84, 212, 255, .025), 0 0 0 108px rgba(84, 212, 255, .018);
}

.jarvis-console [hidden] { display: none !important; }

.jarvis-console__scan {
    position: absolute;
    z-index: 20;
    inset: 0;
    pointer-events: none;
    opacity: .17;
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(117, 226, 255, .08) 4px
    );
    mix-blend-mode: screen;
}

.jarvis-header {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(420px, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 74px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--j-line);
    background: rgba(2, 9, 15, .86);
    backdrop-filter: blur(18px);
}

.jarvis-header__back {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--j-line);
    color: var(--j-cyan);
    background: rgba(80, 211, 255, .04);
    text-decoration: none;
    font-size: 1.25rem;
    transition: border-color .2s ease, background .2s ease;
    border-radius: 12px;
}

.jarvis-header__back:hover {
    border-color: var(--j-cyan);
    color: #fff;
    background: rgba(80, 211, 255, .12);
}

.jarvis-header__back:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.jarvis-fullscreen {
    flex: 0 0 auto;
    padding: 0;
    font: inherit;
}

.jarvis-fullscreen span { font-size: 1.2rem; line-height: 1; }
.jarvis-fullscreen[aria-pressed="true"] { border-color: var(--j-cyan); background: rgba(80, 211, 255, .12); }

.jarvis-wordmark {
    display: flex;
    align-items: center;
    gap: 13px;
}

.jarvis-wordmark strong {
    display: block;
    color: var(--j-cyan);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .3em;
    line-height: 1.1;
}

.jarvis-wordmark small,
.jarvis-statusbar small,
.jarvis-label,
.jarvis-kicker,
.jarvis-footerline,
.jarvis-conversation > header small,
.jarvis-terminated__code {
    color: var(--j-muted);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.jarvis-wordmark small { margin-top: 7px; }
.jarvis-online {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: #67e79b !important;
    background: rgba(42, 201, 111, .11);
    font-size: .55rem !important;
    letter-spacing: .04em !important;
    text-transform: none !important;
}
.jarvis-online i { width: 7px; height: 7px; border-radius: 50%; background: #31df78; box-shadow: 0 0 9px rgba(49, 223, 120, .65); }
.jarvis-online.is-offline { color: #ff9b8a !important; background: rgba(255, 116, 94, .1); }
.jarvis-online.is-offline i { background: var(--j-danger); box-shadow: 0 0 9px rgba(255, 116, 94, .58); }

.jarvis-header-clock {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid var(--j-line);
    border-radius: 12px;
    color: #cdebf4;
    background: rgba(4, 18, 28, .7);
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
}
.jarvis-header-clock > span { color: #9bb6bf; font-size: 1.1rem; }
.jarvis-header-clock strong { letter-spacing: .12em; }
.jarvis-header-clock i { width: 1px; height: 18px; background: var(--j-cyan); }
.jarvis-header-clock time { color: #9bb9c4; }

.jarvis-header__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.jarvis-kicker i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--j-cyan);
    box-shadow: 0 0 10px var(--j-cyan);
    animation: jarvis-pulse 1.8s ease-in-out infinite;
}

.jarvis-header-weather {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 7px;
    align-items: center;
    min-height: 42px;
    padding: 6px 13px;
    border: 1px solid var(--j-line);
    border-radius: 12px;
    color: #ccecf5;
    background: rgba(4, 18, 28, .7);
    text-align: left;
}
.jarvis-header-weather > span { grid-row: 1 / 3; color: var(--j-cyan); font-size: 1rem; }
.jarvis-header-weather strong { font-size: .72rem; font-weight: 650; }
.jarvis-header-weather small { overflow: hidden; max-width: 130px; color: #64bde1; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }

.jarvis-voice-select { display: grid; gap: 2px; min-width: 148px; }
.jarvis-voice-select > span { color: #6f8995; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jarvis-voice-select select { width: 100%; min-width: 0; padding: 4px 20px 4px 0; border: 0; outline: 0; color: #bfe9f5; background: transparent; font: 650 .66rem/1.3 "Avenir Next", "Segoe UI", sans-serif; text-overflow: ellipsis; }

.jarvis-voice {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--j-line);
    color: #c9f3ff;
    background: rgba(69, 201, 244, .05);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .06em;
    border-radius: 12px;
    text-transform: uppercase;
}

.jarvis-voice[aria-pressed="false"] { color: var(--j-muted); background: rgba(255, 255, 255, .025); }

.jarvis-end-session {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 96, 77, .82);
    border-radius: 12px;
    color: #ffe4df;
    background: rgba(154, 31, 23, .32);
    box-shadow: inset 0 0 18px rgba(255, 83, 63, .08), 0 0 18px rgba(255, 75, 54, .08);
    font: inherit;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.jarvis-end-session span { font-size: 1.05rem; line-height: 1; }
.jarvis-end-session strong { font-size: .62rem; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.jarvis-end-session:not(:disabled):hover {
    border-color: #ff7968;
    background: rgba(190, 43, 31, .48);
    box-shadow: inset 0 0 18px rgba(255, 83, 63, .14), 0 0 22px rgba(255, 75, 54, .16);
}
.jarvis-end-session:disabled { cursor: not-allowed; opacity: .3; box-shadow: none; }
.jarvis-end-session.is-ending { opacity: .72; }

.jarvis-end-dialog {
    width: min(460px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid rgba(255, 99, 80, .68);
    border-radius: 16px;
    color: #dff7ff;
    background: linear-gradient(145deg, rgba(15, 22, 29, .99), rgba(17, 7, 8, .99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .72), inset 0 0 38px rgba(255, 80, 60, .055);
}
.jarvis-end-dialog:not([open]) { display: none; }
.jarvis-end-dialog::backdrop { background: rgba(0, 5, 9, .82); backdrop-filter: blur(5px); }
.jarvis-end-dialog form { display: grid; gap: 14px; margin: 0; padding: 24px; }
.jarvis-end-dialog__code { color: #ff8878; font-size: .57rem; font-weight: 800; letter-spacing: .17em; }
.jarvis-end-dialog h2 { margin: 0; color: #fff3f0; font-size: 1.45rem; letter-spacing: .015em; }
.jarvis-end-dialog p { margin: 0; color: #abc1c8; font-size: .8rem; line-height: 1.6; }
.jarvis-end-dialog form > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.jarvis-end-dialog button { min-height: 42px; padding: 9px 14px; border-radius: 10px; font: 800 .65rem/1 "Avenir Next", "Segoe UI", sans-serif; letter-spacing: .08em; }
.jarvis-end-dialog__cancel { border: 1px solid var(--j-line); color: #b9d5dd; background: rgba(78, 157, 181, .07); }
.jarvis-end-dialog__confirm { border: 1px solid #ff715f; color: #fff; background: #a82f23; }
.jarvis-end-dialog__confirm:hover { background: #c43b2d; }

.jarvis-statusbar {
    position: relative;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 43px;
    border-bottom: 1px solid var(--j-line);
    background: rgba(5, 18, 28, .78);
}

.jarvis-statusbar > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 6px 18px;
    border-right: 1px solid rgba(83, 211, 255, .14);
}

.jarvis-statusbar > span:last-child { border-right: 0; }
.jarvis-statusbar strong { overflow: hidden; color: #ccefff; font-size: .64rem; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.jarvis-statusbar .is-online { color: var(--j-cyan); }
.jarvis-statusbar .is-offline { color: var(--j-danger); }

.jarvis-layout {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: clamp(320px, 22vw, 370px) minmax(430px, 1fr) clamp(380px, 27vw, 470px);
    min-height: 780px;
}

.jarvis-telemetry,
.jarvis-conversation {
    min-width: 0;
    background: linear-gradient(180deg, rgba(4, 17, 27, .93), rgba(2, 10, 17, .96));
}

.jarvis-telemetry {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 16px;
    border-right: 1px solid var(--j-line);
}

.jarvis-panel { overflow: hidden; border: 1px solid var(--j-line); border-radius: 16px; background: rgba(3, 13, 21, .78); }
.jarvis-panel__header { display: flex; align-items: center; justify-content: space-between; min-height: 47px; padding: 10px 13px; border-bottom: 1px solid var(--j-line); color: var(--j-cyan); background: rgba(14, 49, 67, .52); }
.jarvis-panel__header strong { font-size: .78rem; letter-spacing: .04em; }
.jarvis-panel__header strong span { margin-right: 6px; }
.jarvis-panel__header > button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #8db1bd; background: transparent; font-size: 1rem; }
.jarvis-panel__header > button:hover:not(:disabled) { color: #fff; background: rgba(100, 220, 255, .1); }
.jarvis-panel__header > button:disabled { opacity: .35; }

.jarvis-system-panel { padding-bottom: 12px; }
.jarvis-system-meter { display: grid; gap: 6px; padding: 11px 12px 0; }
.jarvis-system-meter > span { display: flex; justify-content: space-between; gap: 12px; color: #8fb6c3; font-size: .65rem; }
.jarvis-system-meter b { font-weight: 650; }
.jarvis-system-meter strong { color: var(--j-cyan); font-weight: 650; }
.jarvis-system-meter > i,
.jarvis-disk-meter > i { display: block; overflow: hidden; height: 6px; border-radius: 99px; background: #33404f; }
.jarvis-system-meter > i > b,
.jarvis-disk-meter > i > b { display: block; width: var(--value); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #08b9d6, #28d8ef); box-shadow: 0 0 10px rgba(40, 216, 239, .4); transition: width .5s ease; }
.jarvis-system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 12px; }
.jarvis-system-grid > span { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 8px 4px; border-radius: 5px; background: rgba(12, 35, 48, .58); text-align: center; }
.jarvis-system-grid small { color: #67abc2; font-size: .62rem; }
.jarvis-system-grid strong { overflow: hidden; max-width: 100%; color: #55dbff; font-size: .7rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.jarvis-disk-meter { display: grid; gap: 6px; padding: 0 12px; }
.jarvis-disk-meter small { color: #688793; font-size: .61rem; }
.jarvis-telemetry-status { display: block; margin: 8px 12px 0; color: #5d7f8c; font-size: .62rem; line-height: 1.4; }
.jarvis-telemetry-status.is-error { color: #ffab9e; }

.jarvis-weather-form { display: grid; gap: 7px; padding: 14px 12px; }
.jarvis-weather-form p { margin: 0; color: #c7e8f1; font-size: .78rem; font-weight: 600; }
.jarvis-weather-form label { color: #70a7b9; font-size: .62rem; text-transform: uppercase; }
.jarvis-weather-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.jarvis-weather-form input { min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid rgba(90, 215, 255, .26); border-radius: 8px 0 0 8px; outline: 0; color: #eafaff; background: rgba(0, 8, 14, .75); font: .7rem/1.2 inherit; }
.jarvis-weather-form input:focus { border-color: var(--j-cyan); }
.jarvis-weather-form button { min-height: 40px; padding: 8px 10px; border: 1px solid #2c97ba; border-radius: 0 8px 8px 0; color: #e3f9ff; background: #176b8d; font-size: .65rem; font-weight: 750; }
.jarvis-weather-form button:disabled { cursor: wait; opacity: .5; }
.jarvis-weather-form > small { color: #627f8a; font-size: .62rem; line-height: 1.4; }
.jarvis-weather-result { padding: 14px 12px 11px; }
.jarvis-weather-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jarvis-weather-current > span { display: grid; }
.jarvis-weather-current strong { color: #dff8ff; font-size: 1.45rem; font-weight: 450; font-variant-numeric: tabular-nums; }
.jarvis-weather-current small { color: #4fcdf4; font-size: .65rem; }
.jarvis-weather-current .jarvis-weather-source { margin-top: 2px; color: #668f9e; font-size: .56rem; }
.jarvis-weather-current em { margin-top: 4px; color: #6f9aa9; font-size: .63rem; font-style: normal; }
.jarvis-weather-current > b { display: grid; place-items: center; width: 64px; height: 56px; color: #c9f3ff; font-size: 2.15rem; font-weight: 400; filter: drop-shadow(0 0 10px rgba(100, 220, 255, .24)); }
.jarvis-weather-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.jarvis-weather-grid span { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; border-radius: 5px; background: rgba(12, 35, 48, .58); }
.jarvis-weather-grid small { color: #67abc2; font-size: .6rem; }
.jarvis-weather-grid strong { color: #55dbff; font-size: .68rem; font-weight: 550; }
.jarvis-weather-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.jarvis-weather-actions span,
.jarvis-weather-actions a,
.jarvis-weather-actions button { color: #648c9b; background: transparent; font-size: .58rem; text-decoration: none; }
.jarvis-weather-actions button { padding: 0; border: 0; color: #63d1f3; }
.jarvis-weather-error { margin: 0; padding: 0 12px 12px; color: #ffb1a4; font-size: .64rem; line-height: 1.45; }

.jarvis-runtime-panel { padding-bottom: 12px; }
.jarvis-panel__header > span { color: #bfe5ef; font-size: .64rem; font-variant-numeric: tabular-nums; }
.jarvis-uptime { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 12px 4px; }
.jarvis-uptime small { color: #68a1b4; font-size: .62rem; }
.jarvis-uptime strong { color: #dff8ff; font-size: .83rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.jarvis-session-grid { grid-template-columns: 1fr 1fr; padding-bottom: 8px; }
.jarvis-guest-data { margin: 0 12px; padding: 10px; border-left: 2px solid rgba(100, 220, 255, .55); background: rgba(19, 49, 64, .42); }
.jarvis-guest-data > strong { display: block; margin-top: 5px; color: var(--j-cyan); font-size: .74rem; font-weight: 550; letter-spacing: .06em; }
.jarvis-guest-data > small { color: var(--j-muted); font-size: .62rem; }

.jarvis-core-stage {
    --timer-progress: 0;
    --core-y: 46%;
    --speech-scale: 1;
    --speech-glow: .22;
    --speech-disc: .38;
    --speech-bar-1: .38;
    --speech-bar-2: .62;
    --speech-bar-3: .42;
    --speech-bar-4: .78;
    --speech-bar-5: .52;
    --speech-bar-6: .66;
    --speech-bar-7: .34;
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 780px;
    overflow: hidden;
    background: #020810;
    grid-column: 2;
    grid-row: 1;
}

.jarvis-core-stage::before,
.jarvis-core-stage::after {
    content: "";
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.jarvis-core-stage::before {
    inset: 0;
    border: 1px solid rgba(91, 216, 255, .12);
    background:
        linear-gradient(90deg, rgba(93, 217, 255, .3), transparent 16%) top left / 70px 1px no-repeat,
        linear-gradient(180deg, rgba(93, 217, 255, .3), transparent 16%) top left / 1px 70px no-repeat,
        linear-gradient(-90deg, rgba(93, 217, 255, .3), transparent 16%) bottom right / 70px 1px no-repeat,
        linear-gradient(0deg, rgba(93, 217, 255, .3), transparent 16%) bottom right / 1px 70px no-repeat;
}

.jarvis-core-stage::after {
    width: 430px;
    height: 430px;
    top: var(--core-y);
    left: 50%;
    border-radius: 50%;
    background: conic-gradient(var(--j-cyan) calc(var(--timer-progress) * 1turn), rgba(84, 211, 255, .07) 0);
    -webkit-mask: radial-gradient(transparent 67%, #000 68% 69%, transparent 70% 76%, #000 77% 78%, transparent 79%);
    mask: radial-gradient(transparent 67%, #000 68% 69%, transparent 70% 76%, #000 77% 78%, transparent 79%);
    opacity: .5;
    transform: translate(-50%, -50%) rotate(-90deg);
    transition: opacity .3s ease;
}

.jarvis-core-stage__art,
.jarvis-core-stage__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.jarvis-core-stage__art { z-index: -2; object-fit: cover; opacity: .34; filter: saturate(.74) contrast(1.08); }
.jarvis-core-stage__shade { z-index: -1; background: linear-gradient(180deg, rgba(1, 7, 12, .58), rgba(1, 8, 14, .23) 45%, rgba(0, 5, 10, .84)), radial-gradient(circle at center, transparent 0 18%, rgba(0, 7, 12, .28) 52%, rgba(0, 5, 10, .9) 100%); }

.jarvis-core {
    position: absolute;
    z-index: 2;
    width: 300px;
    height: 300px;
    top: var(--core-y);
    left: 50%;
    border: 1px solid rgba(101, 223, 255, .54);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 195, 234, .18) 0 31%, rgba(0, 132, 183, .08) 32% 50%, transparent 67%);
    box-shadow: 0 0 90px rgba(28, 178, 230, var(--speech-glow)), inset 0 0 70px rgba(32, 184, 237, .1);
    opacity: .9;
    transform: translate(-50%, -50%) scale(var(--speech-scale));
    transition: filter .18s ease, opacity .2s ease, transform .12s ease, box-shadow .12s ease;
}

.jarvis-core__ring { position: absolute; border-radius: 50%; }
.jarvis-core__ring--one { inset: 4px; border: 2px solid rgba(62, 169, 211, .44); box-shadow: 0 0 0 1px rgba(58, 208, 249, .08), inset 0 0 32px rgba(48, 188, 234, .08); animation: jarvis-spin 25s linear infinite; }
.jarvis-core__ring--one::before,
.jarvis-core__ring--one::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(78, 199, 238, .28); border-radius: 50%; }
.jarvis-core__ring--one::after { inset: 31px; border-style: dashed; }
.jarvis-core__ring--two { inset: 34px; border: 1px solid rgba(105, 224, 255, .45); box-shadow: 0 0 0 8px rgba(39, 162, 204, .05); animation: jarvis-spin-reverse 17s linear infinite; }
.jarvis-core__ring--two::after { content: ""; position: absolute; inset: 14px; border: 1px dotted rgba(105, 224, 255, .42); border-radius: 50%; }
.jarvis-core__ring--three { inset: 58px; border: 1px solid rgba(98, 223, 255, .56); background: rgba(38, 145, 184, .08); box-shadow: 0 0 25px rgba(57, 198, 239, .14), inset 0 0 24px rgba(72, 205, 244, .11); }
.jarvis-core__disc { position: absolute; z-index: 3; inset: 68px; display: grid; place-items: center; border: 1px solid rgba(129, 228, 251, .3); border-radius: 50%; background: radial-gradient(circle, rgba(79, 169, 201, var(--speech-disc)), rgba(14, 84, 116, .58)); box-shadow: inset 0 0 32px rgba(140, 233, 255, .14), 0 0 22px rgba(25, 185, 232, .15); }
.jarvis-core__wave { display: flex; align-items: center; justify-content: center; gap: 8px; width: 126px; height: 88px; }
.jarvis-core__wave i { width: 10px; height: 70px; border-radius: 7px; background: #14bde9; box-shadow: 0 0 13px rgba(20, 189, 233, .9); transform-origin: center; transition: transform .07s linear, opacity .08s linear; }
.jarvis-core__wave i:nth-child(1) { transform: scaleY(var(--speech-bar-1)); }
.jarvis-core__wave i:nth-child(2) { transform: scaleY(var(--speech-bar-2)); }
.jarvis-core__wave i:nth-child(3) { transform: scaleY(var(--speech-bar-3)); }
.jarvis-core__wave i:nth-child(4) { transform: scaleY(var(--speech-bar-4)); }
.jarvis-core__wave i:nth-child(5) { transform: scaleY(var(--speech-bar-5)); }
.jarvis-core__wave i:nth-child(6) { transform: scaleY(var(--speech-bar-6)); }
.jarvis-core__wave i:nth-child(7) { transform: scaleY(var(--speech-bar-7)); }
.jarvis-core__spark { position: absolute; z-index: 1; width: 10px; height: 10px; top: calc(50% - 5px); left: calc(50% - 5px); border-radius: 50%; background: #e9fbff; box-shadow: 0 0 18px #fff, 0 0 48px var(--j-cyan), 0 0 90px var(--j-blue); animation: jarvis-core-breathe 2.6s ease-in-out infinite; }

.jarvis-core-stage.is-thinking .jarvis-core { filter: brightness(1.28); animation: jarvis-thinking-core 1.2s ease-in-out infinite; }
.jarvis-core-stage.is-speaking .jarvis-core { filter: brightness(1.2); will-change: transform, box-shadow, filter; }
.jarvis-core-stage.is-speaking .jarvis-core__ring--one { border-color: rgba(100, 225, 255, .74); animation-duration: 8s; }
.jarvis-core-stage.is-speaking .jarvis-core__ring--two { border-color: rgba(115, 231, 255, .7); animation-duration: 5.4s; }
.jarvis-core-stage.is-speaking .jarvis-core__ring--three { opacity: .95; box-shadow: 0 0 38px rgba(57, 198, 239, .32), inset 0 0 36px rgba(72, 205, 244, .22); }
.jarvis-core-stage.is-speaking .jarvis-core__wave i { background: #74e6ff; box-shadow: 0 0 9px rgba(77, 219, 252, .94); }

.jarvis-core-identity { position: absolute; z-index: 7; top: calc(var(--core-y) + 190px); left: 50%; display: grid; justify-items: center; gap: 10px; width: min(90%, 360px); transform: translateX(-50%); }
.jarvis-core-identity > strong { color: #ccecf5; font-size: 1.45rem; font-weight: 650; letter-spacing: .16em; text-shadow: 0 0 20px rgba(100, 220, 255, .24); }
.jarvis-core-identity > span { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; color: #36b9f1; background: rgba(9, 32, 45, .78); font-size: .68rem; }
.jarvis-core-identity > span i { width: 7px; height: 7px; border-radius: 50%; background: #31df78; box-shadow: 0 0 8px rgba(49, 223, 120, .6); }
.jarvis-core-stage.is-thinking .jarvis-core-identity > span i { background: var(--j-amber); box-shadow: 0 0 9px var(--j-amber); }
.jarvis-core-stage.is-speaking .jarvis-core-identity > span i { background: var(--j-cyan); box-shadow: 0 0 11px var(--j-cyan); animation: jarvis-pulse .6s ease-in-out infinite; }

.jarvis-core-stage:has(.jarvis-setup:not([hidden])) { --core-y: 25%; }
.jarvis-core-stage:has(.jarvis-setup:not([hidden])) .jarvis-core-identity { display: none; }

.jarvis-timer {
    position: absolute;
    z-index: 8;
    top: 24px;
    left: 50%;
    display: grid;
    justify-items: center;
    min-width: 190px;
    padding: 10px 24px 12px;
    border: 1px solid rgba(91, 217, 255, .29);
    background: rgba(2, 12, 20, .74);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}

.jarvis-timer strong { color: #f0fcff; font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 350; font-variant-numeric: tabular-nums; letter-spacing: .12em; line-height: 1.05; text-shadow: 0 0 24px rgba(91, 218, 255, .45); }
.jarvis-timer small { color: var(--j-cyan); font-size: .58rem; font-weight: 750; letter-spacing: .18em; }
.jarvis-core-stage.is-low .jarvis-timer strong,
.jarvis-core-stage.is-low .jarvis-timer small { color: var(--j-danger); text-shadow: 0 0 24px rgba(255, 105, 83, .42); }

.jarvis-setup {
    position: absolute;
    z-index: 10;
    top: auto;
    bottom: 18px;
    left: 50%;
    width: min(calc(100% - 38px), 510px);
    max-height: none;
    overflow: visible;
    padding: 18px 22px 20px;
    border: 1px solid rgba(91, 218, 255, .42);
    background: linear-gradient(145deg, rgba(3, 16, 26, .95), rgba(3, 11, 18, .9));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .6), inset 0 0 40px rgba(75, 205, 247, .035);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.jarvis-kicker { color: var(--j-cyan); }
.jarvis-setup h1 {
    margin: 8px 0 9px;
    color: #effcff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 260;
    letter-spacing: -.055em;
    line-height: 1;
    text-transform: uppercase;
}
.jarvis-setup h1 em { color: var(--j-cyan); font-style: normal; font-weight: 500; }
.jarvis-setup > p { max-width: 470px; margin: 0 0 11px; color: #91adba; font-size: .72rem; line-height: 1.45; }

.jarvis-minute-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 10px; }
.jarvis-minute-options button {
    display: grid;
    gap: 1px;
    justify-items: center;
    min-height: 42px;
    padding: 5px 3px;
    border: 1px solid rgba(90, 215, 255, .2);
    color: #b4d7e2;
    background: rgba(75, 204, 245, .035);
}
.jarvis-minute-options button strong { font-size: 1rem; font-weight: 520; }
.jarvis-minute-options button span { color: var(--j-muted); font-size: .55rem; letter-spacing: .13em; }
.jarvis-minute-options button[aria-pressed="true"] { border-color: var(--j-cyan); color: #fff; background: rgba(75, 204, 245, .16); box-shadow: inset 0 -2px 0 var(--j-cyan); }

.jarvis-buy-in { display: grid; gap: 7px; color: #a8c4cf; font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.jarvis-mission { display: grid; gap: 6px; margin-bottom: 9px; color: #a8c4cf; font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.jarvis-mission select { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(91, 217, 255, .32); outline: 0; color: #dff8ff; background: #06131d; font: 650 .72rem/1.2 "Avenir Next", "Segoe UI", sans-serif; }
.jarvis-mission select:focus { border-color: var(--j-cyan); }
.jarvis-buy-in__field { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid rgba(91, 217, 255, .32); background: rgba(0, 8, 14, .72); }
.jarvis-buy-in__field b { padding: 0 12px; border-right: 1px solid rgba(91, 217, 255, .19); font-size: .9rem; }
.jarvis-buy-in input { min-width: 0; height: 42px; padding: 7px 13px; border: 0; outline: 0; color: #ecfbff; background: transparent; font: 420 1.05rem/1 "Avenir Next", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.jarvis-buy-in input:focus { box-shadow: inset 0 -2px 0 var(--j-cyan); }
.jarvis-buy-in__field:has(input[aria-invalid="true"]) { border-color: rgba(255, 115, 93, .72); }
.jarvis-buy-in-help { margin: 5px 0 7px !important; color: #77a2b2 !important; font-size: .59rem !important; line-height: 1.35 !important; }
.jarvis-buy-in-help.is-error { color: #ffaea0 !important; }

.jarvis-calculation { display: flex; justify-content: space-between; align-items: center; margin: 7px 0 9px; padding: 8px 11px; border-left: 2px solid var(--j-amber); background: rgba(239, 180, 84, .055); }
.jarvis-calculation span { color: #a9bac0; font-size: .59rem; font-weight: 700; letter-spacing: .12em; }
.jarvis-calculation strong { color: var(--j-amber); font-size: 1.2rem; font-weight: 450; font-variant-numeric: tabular-nums; letter-spacing: .1em; }

.jarvis-connect,
.jarvis-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 45px;
    padding: 11px 17px;
    border: 1px solid var(--j-cyan);
    color: #01131b;
    background: linear-gradient(90deg, #68ddff, #b7f1ff);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-align: left;
    box-shadow: 0 0 28px rgba(68, 207, 250, .15);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.jarvis-connect b,
.jarvis-next b { font-size: 1.1rem; }
.jarvis-connect:hover:not(:disabled),
.jarvis-next:hover:not(:disabled) { filter: brightness(1.12); }
.jarvis-connect:disabled { cursor: not-allowed; opacity: .42; }
.jarvis-setup__note,
.jarvis-setup__warning { margin: 8px 0 0 !important; text-align: center; font-size: .58rem !important; line-height: 1.35 !important; }
.jarvis-setup__warning { color: #ffc0b7 !important; }

.jarvis-setup.is-occupied > :not(.jarvis-kicker):not(h1):not(.jarvis-existing) { display: none !important; }
.jarvis-existing { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(240, 182, 91, .42); background: rgba(35, 24, 7, .72); text-align: left; }
.jarvis-existing strong { color: var(--j-amber); font-size: .72rem; letter-spacing: .12em; }
.jarvis-existing p { margin: 0; color: #d8c6a7; font-size: .76rem; line-height: 1.55; }
.jarvis-existing button { min-height: 46px; border: 1px solid var(--j-amber); color: #211300; background: linear-gradient(90deg, #eeb45a, #ffe0a5); font-size: .66rem; font-weight: 850; letter-spacing: .1em; }
.jarvis-existing button:disabled { cursor: wait; opacity: .5; }
.jarvis-existing small { color: #98866b; font-size: .59rem; line-height: 1.45; }

.jarvis-active-label {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 33px;
    width: min(calc(100% - 38px), 490px);
    padding: 15px 20px;
    border: 1px solid rgba(91, 217, 255, .28);
    background: rgba(1, 11, 18, .73);
    text-align: center;
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
}
.jarvis-active-label strong { display: block; margin-top: 6px; color: #dff8ff; font-size: .78rem; font-weight: 450; letter-spacing: .05em; }
.jarvis-threat { position: absolute; z-index: 12; top: calc(var(--core-y) + 235px); left: 50%; display: grid; gap: 4px; min-width: 230px; padding: 10px 16px; border: 1px solid rgba(83, 211, 255, .4); color: #dff9ff; background: rgba(3, 20, 31, .92); text-align: center; transform: translateX(-50%); box-shadow: 0 0 28px rgba(37, 191, 239, .18); }
.jarvis-threat small { color: var(--j-muted); font-size: .54rem; letter-spacing: .18em; }
.jarvis-threat strong { color: var(--j-cyan); font-size: .75rem; letter-spacing: .11em; }
.jarvis-threat.is-scanning { animation: jarvis-threat-in .35s ease-out both; }

.jarvis-terminated {
    position: absolute;
    z-index: 14;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 30px;
    color: #fff0ed;
    background: radial-gradient(circle, rgba(80, 18, 11, .44), rgba(3, 6, 10, .94) 63%);
    text-align: center;
    backdrop-filter: grayscale(1) blur(3px);
}
.jarvis-terminated::before,
.jarvis-terminated::after { content: ""; position: absolute; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--j-danger), transparent); box-shadow: 0 0 16px rgba(255, 106, 84, .5); }
.jarvis-terminated::before { top: 12%; }
.jarvis-terminated::after { bottom: 12%; }
.jarvis-terminated__code { color: var(--j-danger); }
.jarvis-terminated h2 { margin: 13px 0; color: #fff4f1; font-size: clamp(3rem, 8vw, 6.7rem); font-weight: 220; letter-spacing: -.07em; line-height: .78; text-transform: uppercase; text-shadow: 0 0 35px rgba(255, 111, 88, .2); }
.jarvis-terminated p { color: #c7a39d; }
.jarvis-terminated__summary { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 330px); margin: 8px 0 22px; border: 1px solid rgba(255, 112, 89, .22); }
.jarvis-terminated__summary span { display: grid; gap: 3px; padding: 10px 16px; }
.jarvis-terminated__summary span + span { border-left: 1px solid rgba(255, 112, 89, .2); }
.jarvis-terminated__summary small { color: #a7827d; font-size: .55rem; letter-spacing: .14em; }
.jarvis-terminated__summary strong { font-size: 1.06rem; font-weight: 500; }
.jarvis-next { width: min(100%, 330px); border-color: #ff806b; color: #240500; background: linear-gradient(90deg, #ff745e, #ffc0b5); }

.jarvis-alert {
    position: absolute;
    z-index: 25;
    right: 18px;
    bottom: 18px;
    left: 18px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid rgba(255, 115, 93, .55);
    color: #ffd3cb;
    background: rgba(45, 9, 6, .92);
    font-size: .75rem;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

.jarvis-conversation { grid-column: 3; grid-row: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; min-height: 0; overflow: hidden; margin: 16px 16px 16px 0; border: 1px solid var(--j-line); border-radius: 16px; background: rgba(2, 11, 18, .91); }
.jarvis-conversation > header { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 14px 18px; border-bottom: 1px solid var(--j-line); background: rgba(8, 29, 43, .55); }
.jarvis-conversation > header span { display: grid; gap: 3px; }
.jarvis-conversation > header strong { color: #cfeff7; font-size: .98rem; font-weight: 650; letter-spacing: .02em; }
.jarvis-conversation > header > i { width: 8px; height: 8px; border-radius: 50%; background: #36515e; box-shadow: 0 0 0 5px rgba(84, 211, 255, .04); }
.jarvis-conversation > header > i.is-active { background: var(--j-cyan); box-shadow: 0 0 10px var(--j-cyan), 0 0 0 5px rgba(84, 211, 255, .08); }
.jarvis-queue { padding: 10px 14px; border-bottom: 1px solid rgba(83, 211, 255, .14); background: rgba(8, 28, 40, .38); }
.jarvis-queue > header { display: flex; justify-content: space-between; margin-bottom: 7px; color: #addce8; font-size: .65rem; text-transform: uppercase; }
.jarvis-queue > header small { color: var(--j-muted); }
.jarvis-queue form { display: grid; grid-template-columns: 1fr auto; }
.jarvis-queue input { min-width: 0; padding: 7px 9px; border: 1px solid var(--j-line); outline: 0; color: #dff8ff; background: rgba(0, 8, 14, .8); font: inherit; }
.jarvis-queue form button { padding: 7px 11px; border: 1px solid var(--j-line); color: var(--j-cyan); background: rgba(83, 211, 255, .08); font-weight: 800; }
.jarvis-queue ol { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.jarvis-queue li { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid rgba(83, 211, 255, .18); color: #9fd2df; background: rgba(6, 22, 32, .8); font-size: .62rem; }
.jarvis-queue li.is-empty { border: 0; background: transparent; color: #607d88; }
.jarvis-queue li button { padding: 0; border: 0; color: #ff9e90; background: transparent; font-size: .9rem; }
.jarvis-mobile-clock { display: none !important; }

.jarvis-messages { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px; scrollbar-color: rgba(89, 213, 252, .38) transparent; scrollbar-gutter: stable; }
.jarvis-messages__empty { display: grid; justify-items: center; align-content: center; min-height: 100%; color: #73919f; text-align: center; }
.jarvis-messages__empty > span { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 15px; border: 1px solid rgba(89, 215, 255, .24); border-radius: 50%; color: rgba(105, 221, 255, .48); font-size: 2rem; }
.jarvis-messages__empty strong { color: #a9c9d4; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.jarvis-messages__empty p { max-width: 250px; margin: 7px 0 0; color: #66818d; font-size: .72rem; line-height: 1.5; }

.jarvis-message { position: relative; margin-bottom: 16px; padding: 14px 14px 13px; border: 1px solid rgba(89, 215, 255, .13); background: rgba(42, 117, 145, .06); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.jarvis-message--user { margin-left: 24px; border-color: rgba(240, 182, 91, .25); background: rgba(240, 182, 91, .055); }
.jarvis-message--assistant { margin-right: 12px; }
.jarvis-message__role { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--j-cyan); font-size: .56rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.jarvis-message--user .jarvis-message__role { color: var(--j-amber); }
.jarvis-message__role small { color: #597583; font-size: .52rem; }
.jarvis-message p { margin: 0; color: #c8e5ed; font-size: .79rem; line-height: 1.56; white-space: pre-wrap; }

.jarvis-thinking { display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-top: 1px solid rgba(88, 214, 255, .12); color: #85a8b4; background: rgba(4, 18, 27, .82); font-size: .64rem; letter-spacing: .05em; }
.jarvis-thinking > span { display: flex; gap: 3px; }
.jarvis-thinking i { width: 4px; height: 4px; border-radius: 50%; background: var(--j-cyan); animation: jarvis-dot .9s ease-in-out infinite; }
.jarvis-thinking i:nth-child(2) { animation-delay: .14s; }
.jarvis-thinking i:nth-child(3) { animation-delay: .28s; }

.jarvis-composer { padding: 15px 16px 16px; border-top: 1px solid var(--j-line); background: rgba(2, 11, 18, .96); }
.jarvis-composer > label { display: block; margin-bottom: 7px; color: #71909d; font-size: .57rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.jarvis-composer textarea { display: block; width: 100%; min-height: 94px; resize: vertical; padding: 12px; border: 1px solid rgba(88, 214, 255, .22); border-radius: 0; outline: 0; color: #e9faff; background: rgba(5, 22, 33, .82); font: .82rem/1.45 "Avenir Next", "Segoe UI", sans-serif; }
.jarvis-composer textarea:focus { border-color: rgba(88, 214, 255, .72); box-shadow: inset 0 -2px 0 var(--j-cyan); }
.jarvis-composer textarea:disabled { cursor: not-allowed; opacity: .43; }
.jarvis-composer textarea::placeholder { color: #506b77; }
.jarvis-composer > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.jarvis-composer > div > span { color: #587480; font-size: .56rem; letter-spacing: .07em; }
.jarvis-composer button { min-width: 132px; min-height: 39px; padding: 8px 12px; border: 1px solid var(--j-cyan); color: #00131d; background: var(--j-cyan); font-size: .62rem; font-weight: 850; letter-spacing: .13em; }
.jarvis-composer button b { margin-left: 8px; }
.jarvis-composer button:disabled { border-color: #35515d; color: #68828d; background: #152832; cursor: not-allowed; }

.jarvis-console :is(a, button, input, textarea):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.jarvis-terminated:focus-visible { outline: 2px solid rgba(255, 190, 178, .9); outline-offset: -7px; }

.jarvis-footerline { position: relative; z-index: 15; display: flex; justify-content: space-between; gap: 20px; padding: 9px 18px; border-top: 1px solid var(--j-line); color: #526e7b; background: #02090f; font-size: .54rem; }

@keyframes jarvis-spin { to { transform: rotate(360deg); } }
@keyframes jarvis-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes jarvis-pulse { 50% { opacity: .36; } }
@keyframes jarvis-core-breathe { 50% { transform: scale(1.35); opacity: .72; } }
@keyframes jarvis-thinking-core { 50% { transform: translate(-50%, -50%) scale(1.035); } }
@keyframes jarvis-dot { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes jarvis-threat-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

@media (min-width: 901px) {
    .jarvis-conversation { contain: size; }
}

@media (max-width: 1360px) {
    .jarvis-header { grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr); }
    .jarvis-voice-select { display: none; }
    .jarvis-end-session { width: 42px; padding-inline: 0; }
    .jarvis-end-session strong { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .jarvis-layout { grid-template-columns: minmax(500px, 1fr) minmax(360px, 430px); }
    .jarvis-telemetry { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--j-line); }
    .jarvis-core-stage { grid-column: 1; grid-row: 2; min-height: 760px; }
    .jarvis-conversation { grid-column: 2; grid-row: 2; margin-left: 0; }
}

@media (max-width: 1100px) {
    .jarvis-header-weather { display: none; }
}

@media (max-width: 900px) {
    .jarvis-console { overflow: visible; }
    .jarvis-console::after { display: none; }
    .jarvis-header { grid-template-columns: 1fr auto; }
    .jarvis-header-clock { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .jarvis-header-weather { display: none; }
    .jarvis-statusbar { grid-template-columns: 1fr 1fr; }
    .jarvis-statusbar > span:nth-child(2) { border-right: 0; }
    .jarvis-statusbar > span:nth-child(-n + 2) { border-bottom: 1px solid rgba(83, 211, 255, .14); }
    .jarvis-layout { grid-template-columns: minmax(0, 1fr); }
    .jarvis-core-stage { grid-column: 1; grid-row: 1; min-height: 680px; }
    .jarvis-conversation { grid-column: 1; grid-row: 2; height: 610px; min-height: 0; max-height: 610px; overflow: hidden; margin: 14px; border: 1px solid var(--j-line); }
    .jarvis-telemetry { grid-column: 1; grid-row: 3; grid-template-columns: minmax(0, 1fr); }
    .jarvis-conversation > header { position: sticky; z-index: 18; top: var(--ux-header-height, 64px); background: rgba(3, 17, 27, .94); backdrop-filter: blur(14px); }
    .jarvis-mobile-clock { display: grid !important; justify-items: end; margin-left: auto; padding-right: 12px; }
    .jarvis-mobile-clock strong { color: #e8fbff !important; font-size: 1.18rem !important; font-variant-numeric: tabular-nums; letter-spacing: .06em !important; }
    .jarvis-messages { min-height: 0; max-height: none; }
}

@media (max-width: 600px) {
    .jarvis-console { margin-inline: -8px; width: calc(100% + 16px); }
    .jarvis-header { grid-template-columns: 1fr auto; column-gap: 8px; padding: 10px 12px; }
    .jarvis-header__controls { gap: 6px; justify-content: flex-end; }
    .jarvis-header__back,
    .jarvis-end-session,
    .jarvis-voice { width: 38px; height: 38px; min-height: 38px; padding: 0; }
    .jarvis-end-session { gap: 0; }
    .jarvis-end-session strong { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .jarvis-voice { overflow: hidden; font-size: 0; }
    .jarvis-voice span { font-size: .9rem; }
    .jarvis-header-clock { width: 100%; justify-content: center; }
    .jarvis-header-clock time { overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }
    .jarvis-wordmark strong { letter-spacing: .2em; }
    .jarvis-statusbar > span { padding-inline: 11px; }
    .jarvis-statusbar > span:first-child,
    .jarvis-statusbar > span:nth-child(2) { display: none; }
    .jarvis-statusbar { grid-template-columns: 1fr 1fr; }
    .jarvis-statusbar > span:nth-child(-n + 2) { border-bottom: 0; }
    .jarvis-core-stage { min-height: 820px; }
    .jarvis-core-stage::after { width: 320px; height: 320px; }
    .jarvis-core { width: 220px; height: 220px; }
    .jarvis-core__ring--three { inset: 40px; }
    .jarvis-core__disc { inset: 48px; }
    .jarvis-core__wave { width: 116px; height: 82px; gap: 7px; }
    .jarvis-core__wave i { width: 10px; height: 66px; }
    .jarvis-core-stage:has(.jarvis-setup:not([hidden])) { --core-y: 23%; }
    .jarvis-setup { bottom: 10px; width: calc(100% - 20px); max-height: none; overflow: visible; padding: 16px 14px; }
    .jarvis-setup h1 { font-size: 1.7rem; }
    .jarvis-minute-options { gap: 4px; }
    .jarvis-timer { top: 13px; min-width: 164px; padding: 7px 16px 9px; }
    .jarvis-terminated { padding-inline: 15px; }
    .jarvis-terminated h2 { font-size: 3.7rem; }
    .jarvis-end-dialog form { padding: 20px 17px; }
    .jarvis-end-dialog form > div { display: grid; grid-template-columns: 1fr; }
    .jarvis-end-dialog__confirm { grid-row: 1; }
    .jarvis-footerline { display: grid; gap: 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .jarvis-console *,
    .jarvis-console *::before,
    .jarvis-console *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .jarvis-core-stage.is-speaking .jarvis-core {
        animation: none !important;
        filter: brightness(1.45);
        transform: translate(-50%, -50%) scale(1.02);
    }
    .jarvis-core-stage.is-speaking .jarvis-core__wave i { transform: scaleY(.72); }
}
