:root {
  color-scheme: dark;
  --bg: #050b14;
  --surface: #091525;
  --surface-raised: #0d1d30;
  --surface-soft: #07111e;
  --line: #18334b;
  --text: #e8f5ff;
  --muted: #8ba5ba;
  --cyan: #42dff7;
  --cyan-soft: rgba(69, 217, 232, .12);
  --green: #63e3b0;
  --violet: #bc9cff;
  --blue: #79baff;
  --danger: #ff9a9a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
a { color: var(--cyan); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { background: #081522; border-right: 1px solid var(--line); padding: 26px 17px 18px; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 0 7px 31px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; font-weight: 800; color: var(--cyan); background: linear-gradient(145deg, #123d51, #101c38); border: 1px solid #286276; box-shadow: 0 0 22px #1a9eae30; }
.brand strong { display: block; letter-spacing: .22em; font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .16em; margin-top: 4px; }
.nav-label, .eyebrow { color: #7692a9; letter-spacing: .14em; font-size: 10px; font-weight: 750; }
.nav-label { padding: 0 10px 11px; }
.navigation { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 11px 10px; text-align: left; color: #a7bdcf; cursor: pointer; font-size: 13px; transition: .18s ease; }
.nav-item > span { width: 19px; text-align: center; font-size: 17px; color: #7291a8; }
.nav-item:hover { background: #102338; color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, #103243, #0d2130); border-color: #1c5260; color: #e7fbff; }
.nav-item.active > span { color: var(--cyan); }
.sidebar-bottom { margin-top: auto; }
.sidebar-voice { margin: auto 0 16px; padding: 14px 12px 11px; border: 1px solid #163b53; border-radius: 9px; background: linear-gradient(160deg, #0b1c2c, #081421); }
.sidebar-voice .eyebrow { color: #58bfd2; font-size: 8px; }
.sidebar-voice small { display: block; margin-top: 9px; color: #7893a9; font-size: 9px; text-align: center; }
.voice-wave { display: flex; height: 23px; align-items: center; justify-content: center; gap: 3px; margin-top: 10px; }
.voice-wave i { width: 3px; height: 7px; border-radius: 3px; background: #2fb9d2; opacity: .8; }
.voice-wave i:nth-child(3n) { height: 17px; }.voice-wave i:nth-child(2n) { height: 11px; }.voice-wave i:nth-child(5n) { height: 21px; }
.sidebar-voice-button { width: 100%; margin-top: 10px; padding: 8px; border: 1px solid #20506a; border-radius: 6px; background: #0b2132; color: #b7e9f1; font-size: 9px; cursor: pointer; }
.sidebar-voice-button:hover { border-color: var(--cyan); color: #fff; }
.local-card { display: flex; gap: 10px; padding: 13px 10px; border: 1px solid var(--line); border-radius: 9px; background: #0b1b2a; }
.local-card strong, .local-card small { display: block; }
.local-card strong { font-size: 11px; }
.local-card small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.status-dot, .pulse-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px #63e3b0a0; margin-top: 3px; }
.sidebar-note { color: #597187; font-size: 9px; letter-spacing: .13em; text-align: center; margin: 19px 0 0; }
.main-content { min-width: 0; padding: 0 34px 32px; max-width: 1600px; width: 100%; margin: 0 auto; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #152a3d; margin-bottom: 27px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.breadcrumb span, .breadcrumb i { color: #68839a; font-style: normal; }
.breadcrumb strong { font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.local-pill { font-size: 9px; letter-spacing: .1em; color: #a2b9cb; display: flex; align-items: center; gap: 7px; }
.local-pill .status-dot { width: 6px; height: 6px; }
.icon-button { border: 1px solid var(--line); background: #0c1c2b; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; color: #b6cadd; }
.icon-button:hover { border-color: #347284; color: var(--cyan); }
.view { display: none; animation: appear .2s ease-out; }
.view.active { display: block; }
@keyframes appear { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.hero { position: relative; min-height: 230px; padding: 36px 39px; display: flex; align-items: center; overflow: hidden; border: 1px solid #1d4055; border-radius: 14px; background: radial-gradient(ellipse at 75% 55%, #14506b55, transparent 34%), linear-gradient(118deg, #0b1c2c, #0a2031 55%, #0c1a2b); }
.hero:after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(#2c69811c 1px, transparent 1px), linear-gradient(90deg, #2c69811c 1px, transparent 1px); background-size: 29px 29px; mask-image: linear-gradient(90deg, transparent, black); pointer-events: none; }
.hero > div:first-child { position: relative; z-index: 1; max-width: 520px; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; color: #8bb5c7; }
.pulse-dot { width: 6px; height: 6px; margin: 0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px #63e3b020; } }
h1 { font-size: clamp(29px, 3.2vw, 41px); letter-spacing: -.035em; margin: 14px 0 8px; }
.hero p, .page-intro p { margin: 0; color: #9ab0c2; line-height: 1.65; font-size: 14px; }
.primary-button, .secondary-button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; border-radius: 7px; padding: 11px 15px; border: 1px solid transparent; font-size: 12px; font-weight: 700; cursor: pointer; transition: .17s ease; }
.primary-button { background: linear-gradient(110deg, #34c9d6, #52dcb8); color: #06202a; box-shadow: 0 4px 18px #42d4cc20; }
.primary-button:hover:not(:disabled) { filter: brightness(1.09); transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.hero .primary-button { margin-top: 23px; }
.arrow { margin-left: 7px; }
.orbit-art { position: absolute; width: 250px; height: 210px; right: 12%; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
.orbit-core { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--cyan); background: radial-gradient(circle at 35% 30%, #184d60, #0b1a2b 68%); border: 1px solid #49d7e288; box-shadow: 0 0 43px #25bbd544, inset 0 0 25px #35d0de24; z-index: 1; }
.orbit { position: absolute; width: 195px; height: 82px; border: 1px solid #56d3e64a; border-radius: 50%; transform: rotate(-23deg); }
.orbit-two { transform: rotate(38deg); width: 205px; height: 99px; border-color: #9e83ee40; }
.orbit-point { position: absolute; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 13px var(--cyan); }
.point-one { top: 32px; right: 51px; }.point-two { bottom: 38px; left: 47px; background: var(--violet); box-shadow: 0 0 13px var(--violet); }
.hero-version { position: absolute; z-index: 1; right: 18px; bottom: 13px; color: #64889c; font-size: 8px; letter-spacing: .12em; }
.hero-version span { color: var(--cyan); }
.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading { margin: 31px 0 14px; }
h2, h3 { margin: 5px 0 0; letter-spacing: -.02em; }
.section-heading h2 { font-size: 19px; }
.muted, .small-note { color: var(--muted); }
.muted { font-size: 11px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tool-card { position: relative; min-height: 143px; padding: 17px; display: flex; align-items: flex-start; flex-direction: column; gap: 9px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #0d1d2d, #0a1826); cursor: pointer; }
.tool-card:hover { border-color: #2d7281; transform: translateY(-2px); }
.tool-icon { display: grid; place-items: center; width: 35px; height: 35px; font-size: 19px; border-radius: 9px; background: #152e3e; }
.cyan { color: var(--cyan); }.violet { color: var(--violet); }.blue { color: var(--blue); }.green { color: var(--green); }
.tool-card strong { font-size: 12px; }
.tool-card small { color: var(--muted); font-size: 10px; line-height: 1.5; max-width: 190px; }
.card-arrow { position: absolute; right: 14px; top: 16px; color: #7193a9; }
.bottom-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 15px; }
.panel { background: linear-gradient(145deg, #0c1a29, #0a1724); border: 1px solid var(--line); border-radius: 10px; padding: 19px; min-width: 0; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.panel:hover { border-color: #244e65; box-shadow: 0 12px 30px #020a1280; }
.panel-heading h3, .panel h3 { font-size: 15px; }
.text-button { color: var(--cyan); background: transparent; border: 0; font-size: 11px; cursor: pointer; }
.event-preview { margin-top: 13px; }
.empty-state { color: #7e96aa; font-size: 12px; padding: 16px 0; }
.preview-event { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #172b3d; }
.date-chip { min-width: 43px; padding: 7px 4px; text-align: center; border-radius: 6px; background: #102d3a; color: var(--cyan); }
.date-chip strong, .date-chip small { display: block; }.date-chip strong { font-size: 14px; }.date-chip small { font-size: 8px; text-transform: uppercase; margin-top: 2px; }
.preview-event strong { font-size: 12px; }.preview-event p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.connection-badge { border: 1px solid #30475b; border-radius: 999px; padding: 5px 9px; color: #9cb1c2; font-size: 9px; white-space: nowrap; }
.connection-badge.connected { border-color: #276952; color: var(--green); background: #12352855; }
.ai-status-panel p { color: #93a9bc; font-size: 11px; line-height: 1.6; margin: 14px 0; }
.secondary-button { border-color: #2a4357; background: #102235; color: #c3d6e5; }
.secondary-button:hover { border-color: #438594; color: var(--cyan); }
.secondary-button span { color: var(--cyan); }
.disclaimer { color: #647d92; font-size: 10px; margin-top: 17px; }
.page-intro { margin: 15px 0 23px; }
.page-intro h1 { margin-top: 8px; font-size: 32px; }
.page-intro p { max-width: 740px; }
.jarvis-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .7fr); gap: 14px; align-items: start; }
.jarvis-console { display: flex; align-items: center; flex-direction: column; min-height: 580px; padding: 21px; }
.jarvis-console-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jarvis-console-header > div { display: grid; gap: 6px; }
.jarvis-console-header strong { font-size: 13px; letter-spacing: .04em; }
.jarvis-status { padding: 5px 9px; border: 1px solid #33495b; border-radius: 999px; color: #96aaba; background: #101e2b; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.jarvis-status[data-state="listening"] { border-color: #246451; color: var(--green); background: #0e2b24; }
.jarvis-orb { position: relative; width: 214px; height: 214px; margin: 30px auto 15px; display: grid; place-items: center; }
.jarvis-orb-core { position: relative; z-index: 1; width: 130px; height: 130px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #3ccfe888; border-radius: 50%; background: radial-gradient(circle at 34% 26%, #16465c, #081624 72%); box-shadow: 0 0 36px #23bdd544, inset 0 0 28px #28c6dc24; transition: box-shadow .35s ease, border-color .35s ease; }
.jarvis-orb-core span { color: #74e6f5; font-size: 36px; font-weight: 800; text-shadow: 0 0 17px #24cee9a0; }
.jarvis-orb-core small { margin-top: 4px; color: #8ed3dc; font-size: 8px; letter-spacing: .28em; }
.jarvis-orbit { position: absolute; width: 205px; height: 86px; border: 1px solid #48d5e653; border-radius: 50%; transform: rotate(-24deg); animation: jarvisOrbit 12s linear infinite; }
.jarvis-orbit-two { width: 190px; height: 103px; border-color: #a38be94c; transform: rotate(38deg); animation-direction: reverse; animation-duration: 16s; }
@keyframes jarvisOrbit { to { rotate: 360deg; } }
.jarvis-orb[data-state="listening"] .jarvis-orb-core { border-color: #5de8c9; box-shadow: 0 0 48px #29d7bc66, inset 0 0 30px #3de0c72e; }
.jarvis-orb[data-state="thinking"] .jarvis-orb-core { border-color: #95a5ff; box-shadow: 0 0 44px #8474e966, inset 0 0 30px #9282f62e; }
.jarvis-orb[data-state="speaking"] .jarvis-orb-core { border-color: #75e9f8; box-shadow: 0 0 52px #42cfea75, inset 0 0 32px #42cfea35; }
.jarvis-orb[data-state="error"] .jarvis-orb-core { border-color: #db818a; box-shadow: 0 0 32px #d8646b50, inset 0 0 25px #d8646b25; }
.jarvis-prompt { min-height: 39px; max-width: 520px; margin: 0 0 16px; color: #a9bdcb; text-align: center; font-size: 12px; line-height: 1.6; }
.jarvis-toggle { min-width: 180px; }
.jarvis-toggle-active { background: linear-gradient(110deg, #f3ad7e, #f28e9c); color: #251312; box-shadow: 0 4px 18px #ee9b8725; }
.jarvis-messages { width: 100%; min-height: 125px; max-height: 30vh; margin-top: 20px; border: 1px solid #1b3043; border-radius: 8px; background: #07121e; }
.jarvis-guide { padding: 22px; }
.jarvis-guide h2 { margin: 8px 0 18px; font-size: 20px; }
.jarvis-guide ul { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.jarvis-guide li { padding: 10px 11px; border: 1px solid #1a3448; border-radius: 7px; background: #0b1c2a; color: #c4d6e1; font-size: 11px; }
.jarvis-guide-note { margin-top: 12px; padding: 11px; border-left: 2px solid #3bc4d1; background: #0a1c29; color: #91a9ba; font-size: 10px; line-height: 1.6; }
.jarvis-guide-note strong { display: block; margin-bottom: 3px; color: #d3e7ed; font-size: 10px; }
.microphone-settings-button { width: 100%; margin-top: 15px; font-size: 10px; }
.jarvis-guide .small-note { margin-top: 15px; font-size: 10px; line-height: 1.6; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 6px 0 17px; }
.dashboard-header h1 { margin: 7px 0 3px; font-size: clamp(24px, 2.4vw, 32px); }
.dashboard-header p { margin: 0; color: #88a5ba; font-size: 11px; }
.dashboard-clock { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #1c3e55; border-radius: 7px; color: #829db3; background: #081522; font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.dashboard-clock strong { color: var(--cyan); font-size: 14px; letter-spacing: 0; }
.system-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px #63e3b0aa; }
.command-dashboard { display: grid; grid-template-columns: minmax(205px, .88fr) minmax(310px, 1.45fr) minmax(225px, .98fr); grid-template-areas: "core hero activity" "capabilities mission quick" "chat chat chat"; gap: 11px; }
.command-dashboard > * { min-width: 0; }
.core-overview { grid-area: core; padding: 14px; }
.core-hero { position: relative; grid-area: hero; min-height: 232px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid #1d5167; border-radius: 10px; background: radial-gradient(ellipse at 50% 43%, #0b5b7370 0%, #071727 42%, #06111f 80%); box-shadow: inset 0 0 45px #06111e, 0 10px 38px #03101b8a; }
.hero-grid-glow { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(#1b69821c 1px, transparent 1px), linear-gradient(90deg, #1b69821c 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse at center, black, transparent 83%); }
.core-orbit { position: absolute; left: 50%; top: 43%; width: 250px; height: 88px; border: 1px solid #3cd8eb4a; border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); box-shadow: 0 0 17px #3cd8eb12; }
.core-orbit.orbit-b { width: 240px; height: 95px; border-color: #9c87ff38; transform: translate(-50%, -50%) rotate(35deg); }
.core-emblem { position: relative; z-index: 1; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #36d8f388; border-radius: 50%; background: radial-gradient(circle at 34% 25%, #16415d, #071422 70%); box-shadow: 0 0 33px #1bcce94a, inset 0 0 28px #2dd6ef24; }
.core-emblem:before, .core-emblem:after { position: absolute; inset: 8px; border: 1px solid #42d7ed33; border-radius: 50%; content: ""; }
.core-emblem:after { inset: -9px; border-color: #74d9f021; }
.core-emblem span { color: #60e8ff; font-size: 24px; font-weight: 800; letter-spacing: .24em; text-shadow: 0 0 16px #2ad9f0b0; }
.core-emblem small { margin-top: 6px; color: #8bdced; font-size: 7px; letter-spacing: .25em; }
.core-emblem i { margin-top: 11px; color: #6592a9; font-size: 6px; font-style: normal; letter-spacing: .12em; }
.core-hero-caption { position: absolute; z-index: 2; right: 12px; bottom: 11px; left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #1a3e52; border-radius: 6px; background: #06121ddd; }
.core-hero-caption .eyebrow { color: #56b8ca; font-size: 7px; white-space: nowrap; }
.core-hero-caption p { flex: 1; margin: 0; color: #8aa8bc; font-size: 8px; line-height: 1.4; }
.core-hero-caption .primary-button { padding: 7px 9px; font-size: 8px; white-space: nowrap; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-panel-heading .eyebrow { color: #65b7cc; font-size: 8px; }
.dashboard-panel-heading .muted { font-size: 8px; }
.status-chip { padding: 4px 6px; border: 1px solid #31546b; border-radius: 999px; color: #8eaec1; background: #0b1b2a; font-size: 7px; letter-spacing: .1em; }
.status-chip.connected { border-color: #28664d; color: var(--green); background: #0c251d; }
.core-status-list { display: grid; gap: 7px; margin: 12px 0 10px; }
.core-status-list > div { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #173148; border-radius: 6px; background: linear-gradient(110deg, #0b1c2a, #081522); }
.status-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 6px; background: #0b1d2c; font-size: 12px; }
.status-icon.cyan { color: var(--cyan); }.status-icon.violet { color: var(--violet); }.status-icon.green { color: var(--green); }.status-icon.blue { color: var(--blue); }
.core-status-list strong, .core-status-list small { display: block; }
.core-status-list strong { font-size: 9px; }
.core-status-list small { margin-top: 3px; color: #7692a7; font-size: 8px; }
.core-connect-button { width: 100%; padding: 8px; font-size: 9px; }
.activity-panel { grid-area: activity; padding: 14px; }
.activity-feed { display: grid; gap: 6px; margin-top: 11px; }
.activity-entry { display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px; border: 1px solid #183148; border-radius: 6px; background: #081522; }
.activity-entry-icon { color: var(--cyan); font-size: 10px; }
.activity-entry strong, .activity-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-entry strong { color: #c9ddea; font-size: 8px; font-weight: 650; }
.activity-entry small { margin-top: 3px; color: #6f899e; font-size: 7px; }
.activity-entry time { color: #607d92; font-size: 7px; white-space: nowrap; }
.activity-feed .empty-state { padding: 8px 0; font-size: 9px; line-height: 1.5; }
.capability-panel { grid-area: capabilities; padding: 14px; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.capability-card { min-width: 0; display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; column-gap: 8px; padding: 8px; border: 1px solid #19374e; border-radius: 6px; background: #081522; text-align: left; cursor: pointer; }
.capability-card:hover, .quick-command:hover { border-color: #2a8092; background: #0b2030; }
.capability-icon { grid-row: span 2; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 6px; font-size: 11px; }
.capability-card strong { font-size: 8px; }
.capability-card small { margin-top: 2px; color: #7893a7; font-size: 7px; }
.mission-panel { grid-area: mission; padding: 14px; }
.dashboard-date-label { margin: 8px 0 0; color: #648398; font-size: 8px; }
.mission-panel .event-preview { margin-top: 3px; }
.mission-panel .preview-event { gap: 8px; padding: 7px 0; }
.mission-panel .date-chip { min-width: 35px; padding: 5px 3px; }
.mission-panel .date-chip strong { font-size: 11px; }.mission-panel .date-chip small { font-size: 7px; }
.mission-panel .preview-event strong { font-size: 9px; }
.mission-panel .preview-event p { font-size: 8px; }
.mission-panel .empty-state { padding: 8px 0; font-size: 9px; }
.quick-panel { grid-area: quick; padding: 14px; }
.quick-panel .dashboard-panel-heading { margin-bottom: 8px; }
.quick-command { width: 100%; display: flex; align-items: center; gap: 8px; margin: 5px 0; padding: 8px; border: 1px solid #1a374d; border-radius: 5px; background: #081522; color: #b7ccdc; text-align: left; font-size: 8px; cursor: pointer; }
.quick-command span { width: 17px; color: var(--cyan); text-align: center; font-size: 11px; }
.dashboard-chat { grid-area: chat; padding: 11px 14px 9px; border-color: #205069; background: linear-gradient(100deg, #081624, #0a1a2a); }
.dashboard-chat .chat-form { margin: 9px 0 0; }
.dashboard-chat-note { margin: 5px 0 0 4px; color: #68859a; font-size: 8px; }
.apps-panel { min-height: 350px; }
.apps-toolbar { display: flex; align-items: center; gap: 9px; }
.apps-toolbar input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #1a3a51; border-radius: 6px; outline: none; background: #07131f; color: var(--text); font-size: 11px; }
.apps-toolbar input:focus { border-color: #258ba2; box-shadow: 0 0 0 3px #42dff719; }
.apps-toolbar .secondary-button { padding: 9px 11px; font-size: 9px; }
.app-launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 9px; margin-top: 14px; }
.app-launcher-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px; border: 1px solid #1a374d; border-radius: 7px; background: linear-gradient(145deg, #0b1b2a, #08131f); }
.app-launcher-card > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #24586a; border-radius: 6px; color: var(--cyan); background: #0b2635; }
.app-launcher-card strong { flex: 1; min-width: 0; overflow: hidden; color: #c8dce9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.app-launcher-card button { padding: 6px 8px; border: 1px solid #24546a; border-radius: 5px; background: #0b2232; color: #a8e8f0; font-size: 8px; cursor: pointer; }
.app-launcher-card button:hover { border-color: var(--cyan); }
.apps-panel .notice { margin-top: 12px; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.chat-panel { padding: 0; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.model-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--cyan); background: #123646; font-size: 20px; }
.chat-header strong, .chat-header small { display: block; }.chat-header strong { font-size: 12px; }.chat-header small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.chat-header .connection-badge { margin-left: auto; }
.voice-replies-button { padding: 6px 8px; border: 1px solid #1d4056; border-radius: 6px; background: #091a28; color: #819eb2; font-size: 8px; cursor: pointer; white-space: nowrap; }
.voice-replies-button[aria-pressed="true"] { border-color: #267180; color: #93eaf3; background: #0c2836; }
.chat-messages { min-height: 290px; max-height: 52vh; overflow-y: auto; padding: 19px; display: flex; flex-direction: column; gap: 14px; }
.message { max-width: 88%; padding: 11px 13px; border: 1px solid #20384b; border-radius: 3px 11px 11px 11px; background: #0e2030; }
.message.user-message { align-self: flex-end; border-color: #1b5261; border-radius: 11px 3px 11px 11px; background: #103140; }
.message-speak { margin-top: 7px; padding: 4px 0 0; border: 0; background: transparent; color: #6ea5b8; font-size: 8px; cursor: pointer; }
.message-speak:hover { color: var(--cyan); }
.message-label { font-size: 8px; font-weight: 750; letter-spacing: .12em; color: var(--cyan); }
.user-message .message-label { color: #9cc4d0; }
.message p { margin: 6px 0 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-choice-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.app-choice-list button { padding: 6px 8px; border: 1px solid #236175; border-radius: 5px; background: #0a2432; color: #b7eef4; font-size: 8px; cursor: pointer; }
.app-choice-list button:hover { border-color: var(--cyan); }
.chat-form { display: flex; align-items: end; gap: 8px; padding: 11px; margin: 0 13px 5px; border: 1px solid #294358; border-radius: 9px; background: #091725; }
.chat-form textarea { resize: vertical; flex: 1; max-height: 120px; min-height: 36px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; line-height: 1.5; padding: 9px 3px; }
.chat-form textarea::placeholder { color: #6d8499; }
.voice-button { flex: 0 0 auto; }
.send-button { flex: 0 0 auto; width: 35px; height: 35px; border: 0; border-radius: 7px; color: #05212a; background: var(--cyan); font-size: 22px; cursor: pointer; }
.send-button:disabled { opacity: .45; cursor: wait; }
.chat-footnote { padding: 5px 18px 13px; color: #668197; font-size: 9px; }
.setup-panel h3 { margin: 9px 0 14px; }
.setup-panel ol { padding-left: 18px; margin: 0; color: #a2b6c7; font-size: 11px; line-height: 1.7; }
.setup-panel li { margin-bottom: 10px; padding-left: 3px; }
.setup-panel code { color: var(--cyan); font-size: 10px; }
.setup-panel .secondary-button { margin-top: 9px; width: 100%; }
.small-note { font-size: 10px; line-height: 1.6; }
.setup-panel .small-note { margin-top: 15px; }
.local-memory { margin-top: 14px; padding-top: 11px; border-top: 1px solid #1c3447; }
.local-memory summary { color: #b7cfdd; font-size: 10px; cursor: pointer; }
.local-memory .small-note { margin: 8px 0; font-size: 9px; }
.local-memory textarea { width: 100%; min-height: 66px; padding: 8px; border: 1px solid #213d51; border-radius: 6px; outline: none; resize: vertical; background: #081522; color: var(--text); font-size: 9px; line-height: 1.5; }
.local-memory textarea:focus { border-color: #3a8997; }
.local-memory > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.local-memory .secondary-button { width: auto; margin: 0; padding: 7px 9px; font-size: 9px; }
.local-memory .text-button { padding: 7px; font-size: 9px; }
.feature-option { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 11px 2px; color: #b9ccd8; font-size: 9px; cursor: pointer; }
.feature-option input { accent-color: var(--cyan); }
.feature-option small { color: #7e94a6; font-size: 8px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); gap: 14px; align-items: start; }
.feature-chat-panel { padding: 15px; }
.feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-heading-actions { display: flex; align-items: center; gap: 6px; }
.feature-heading h2 { margin-top: 6px; font-size: 19px; }
.feature-heading .secondary-button { flex: 0 0 auto; padding: 8px 10px; font-size: 9px; }
.feature-chat-panel .feature-callout,
.feature-side-panel .feature-callout {
  display: grid;
  gap: 5px;
  margin: 13px 0;
  padding: 11px 12px;
  border: 1px solid #26485c;
  border-left: 2px solid #42dff7;
  border-radius: 7px;
  background: #0a1a28;
}
.feature-callout strong { color: #bcebf0; font-size: 10px; }
.feature-callout span { color: #91a9bb; font-size: 9px; line-height: 1.55; }
.feature-messages { min-height: 240px; max-height: 48vh; margin: 13px 0 0; border: 1px solid #1b3043; border-radius: 8px; background: #07121e; }
.feature-chat-panel .chat-form { margin: 10px 0 0; }
.feature-examples { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px 1px 1px; }
.feature-examples button,
.studio-tool-list button {
  padding: 7px 9px;
  border: 1px solid #204056;
  border-radius: 7px;
  background: #0a1927;
  color: #a7bfce;
  text-align: left;
  font-size: 9px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.feature-examples button:hover,
.studio-tool-list button:hover { border-color: #3a8798; background: #102435; color: #e6f8fc; }
.feature-side-panel { padding: 16px; }
.feature-side-panel h3 { margin: 8px 0 13px; font-size: 15px; }
.feature-list { display: grid; gap: 9px; margin: 13px 0; padding-left: 18px; color: #9db3c3; font-size: 10px; line-height: 1.6; }
.feature-list li::marker { color: #5dc9d6; }
.feature-list code { color: #8ee4ed; }
.feature-select {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid #25465b;
  border-radius: 7px;
  outline: none;
  background: #081725;
  color: #dcecf4;
  font-size: 10px;
}
.feature-select:focus { border-color: #3a8997; box-shadow: 0 0 0 3px #42dff719; }
.feature-select option { background: #0b1a28; }
.feature-label { display: block; margin: 13px 0 6px; color: #9eb4c3; font-size: 9px; }
.feature-toolbar { display: flex; align-items: center; gap: 10px; margin: 11px 0 8px; }
.file-pick-button { padding: 8px 10px; font-size: 9px; cursor: pointer; }
.feature-toolbar .muted { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.feature-context {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #203b50;
  border-radius: 7px;
  outline: none;
  resize: vertical;
  background: #081522;
  color: var(--text);
  font-size: 10px;
  line-height: 1.55;
}
.feature-context:focus { border-color: #3a8997; }
.feature-context::placeholder { color: #6d8499; }
.focus-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; padding: 9px 10px; border: 1px solid #1c394b; border-radius: 8px; background: linear-gradient(100deg, #0b1d2b, #0a1623); }
.focus-strip strong, .focus-strip small { display: block; }
.focus-strip strong { color: #c9dde8; font-size: 9px; }
.focus-strip small { margin-top: 4px; color: #8199ab; font-size: 8px; }
.focus-strip button { padding: 7px 9px; font-size: 9px; }
.studio-tool-list { display: grid; gap: 6px; }
.studio-tool-list button { width: 100%; }
.studio-grid .feature-side-panel > .small-note { margin-top: 13px; }
.coding-panel { max-width: 1040px; }
.settings-actions { flex-wrap: wrap; }
.settings-actions > button { min-width: 104px; }
.settings-dialog .feature-list { margin-top: 17px; }
.organizer-panel { min-height: 330px; }
.organizer-start { min-height: 287px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.large-tool-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; font-size: 28px; background: #251e3b; }
.organizer-start h2 { font-size: 18px; margin: 16px 0 6px; }
.organizer-start > p:not(.small-note) { max-width: 510px; font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.organizer-start .small-note { margin-top: 11px; }
.organizer-results { padding: 5px 0; }
.organizer-results .panel-heading { margin-bottom: 14px; }
.organizer-results .panel-heading h3 { margin: 5px 0 3px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #7892a7; font-size: 9px; letter-spacing: .11em; padding: 10px; border-bottom: 1px solid var(--line); }
td { color: #c4d2de; font-size: 11px; padding: 11px 10px; border-bottom: 1px solid #152a3c; }
td:first-child { max-width: 270px; overflow-wrap: anywhere; }
td .category-tag { color: #a2dce2; border-radius: 20px; background: #12303c; padding: 4px 8px; font-size: 9px; }
.organizer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.notice { margin-top: 13px; padding: 10px 12px; border: 1px solid #294358; border-radius: 7px; color: #b7cbd9; font-size: 11px; line-height: 1.5; background: #0b1c2b; }
.notice.error { border-color: #684448; color: #ffb6b6; background: #291a23; }
.notice.success { border-color: #24634d; color: #9ce8c5; background: #11291f; }
.hidden { display: none !important; }
.calendar-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.event-form { display: grid; gap: 8px; margin-top: 18px; }
.event-form label, .settings-dialog label { display: block; color: #a9bdcc; font-size: 10px; margin: 7px 0 0; }
.event-form input, .event-form textarea, .settings-dialog input { width: 100%; border: 1px solid #233b50; border-radius: 6px; padding: 10px; outline: none; background: #081725; color: var(--text); font-size: 11px; }
.event-form input:focus, .event-form textarea:focus, .settings-dialog input:focus { border-color: #3a8997; }
.event-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-row > div { min-width: 0; }
.event-form .primary-button { margin-top: 7px; }
.add-event-panel > .small-note { margin-top: 15px; }
.event-count { color: #8ba2b5; font-size: 10px; }
.event-list { margin-top: 14px; }
.calendar-event { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid #182d3e; }
.calendar-event-body { flex: 1; min-width: 0; }
.calendar-event-body strong { font-size: 12px; }
.calendar-event-body p { margin: 5px 0 0; color: #93a9bb; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.delete-event { border: 0; background: transparent; color: #7690a4; cursor: pointer; font-size: 10px; padding: 4px; }
.delete-event:hover { color: var(--danger); }
.osint-intro { margin-bottom: 18px; }
.osint-intro h1 { color: #e8e4ff; }
.osint-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.osint-toolbar input { width: min(520px, 100%); min-width: 0; border: 1px solid #342e59; border-radius: 8px; padding: 12px 14px; outline: none; background: #0d1020; color: var(--text); font-size: 12px; }
.osint-toolbar input:focus { border-color: #8b70ff; box-shadow: 0 0 0 3px #8b70ff20; }
.osint-toolbar input::placeholder { color: #7f809c; }
.osint-count { color: #a7a4c4; font-size: 10px; white-space: nowrap; }
.osint-workspace { display: grid; grid-template-columns: minmax(270px, 355px) minmax(0, 1fr); gap: 13px; align-items: start; }
.osint-tree-panel, .osint-detail-panel { min-width: 0; border: 1px solid #282542; border-radius: 12px; background: linear-gradient(145deg, #10111b, #0c0e18); box-shadow: 0 16px 42px #05050d38; }
.osint-tree-panel { max-height: 70vh; min-height: 500px; overflow: auto; padding: 15px; }
.osint-tree-root { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #41396e; border-radius: 9px; background: linear-gradient(110deg, #211d3c, #151625); }
.osint-root-mark, .osint-welcome-icon { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid #7964d9; border-radius: 10px; color: #c3b4ff; background: #382d67; font-size: 17px; }
.osint-tree-root strong, .osint-tree-root small { display: block; }
.osint-tree-root strong { color: #e5e0ff; font-size: 11px; }
.osint-tree-root small { margin-top: 4px; color: #a5a0be; font-size: 9px; }
.osint-tree-branches { position: relative; margin: 14px 0 0 17px; padding-left: 20px; border-left: 1px solid #393455; }
.osint-tree-branch { position: relative; margin-bottom: 7px; }
.osint-tree-branch::before { position: absolute; top: 19px; left: -21px; width: 20px; border-top: 1px solid #393455; content: ""; }
.osint-branch-toggle { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: #cac6df; cursor: pointer; }
.osint-branch-toggle:hover, .osint-branch-toggle[aria-expanded="true"] { border-color: #393354; background: #19182a; }
.osint-node-dot { flex: 0 0 auto; width: 9px; height: 9px; border: 1px solid #a692ff; border-radius: 50%; box-shadow: 0 0 9px #9578ff55; }
.osint-branch-name { flex: 1; font-size: 10px; font-weight: 700; }
.osint-branch-count { color: #85819e; font-size: 9px; }
.osint-branch-chevron { color: #a59cce; font-size: 11px; transition: transform .16s ease; }
.osint-branch-toggle[aria-expanded="true"] .osint-branch-chevron { transform: rotate(90deg); }
.osint-branch-children { margin: 3px 0 8px 13px; padding-left: 15px; border-left: 1px solid #2e2b43; }
.osint-leaf { position: relative; display: flex; width: 100%; align-items: center; gap: 8px; margin: 2px 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: #a9a7bc; cursor: pointer; }
.osint-leaf::before { position: absolute; left: -16px; width: 15px; border-top: 1px solid #2e2b43; content: ""; }
.osint-leaf:hover, .osint-leaf:focus-visible { border-color: #373253; background: #171728; color: #e7e1ff; outline: none; }
.osint-leaf[aria-current="true"] { border-color: #574995; background: #211d38; color: #ece8ff; }
.osint-leaf-mark { flex: 0 0 auto; width: 6px; height: 6px; border: 1px solid #8e78ee; border-radius: 50%; }
.osint-leaf-name { flex: 1; font-size: 10px; line-height: 1.4; }
.osint-leaf-mode { color: #8c87a6; font-size: 8px; text-transform: uppercase; }
.osint-no-matches, .osint-tree-unavailable { padding: 12px 4px; color: #aaa5c4; font-size: 10px; line-height: 1.6; }
.osint-detail-panel { min-height: 500px; padding: 23px; }
.osint-welcome { display: flex; min-height: 450px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.osint-welcome-icon { width: 50px; height: 50px; margin-bottom: 20px; border-radius: 15px; font-size: 25px; }
.osint-welcome .eyebrow { color: #9f8cf4; }
.osint-welcome h2 { margin: 9px 0; color: #e8e4ff; font-size: 20px; }
.osint-welcome p { max-width: 540px; margin: 0; color: #9997ad; font-size: 11px; line-height: 1.75; }
.osint-welcome-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 20px; }
.osint-welcome-tags span { padding: 6px 9px; border: 1px solid #302c49; border-radius: 999px; color: #b7afd9; background: #151522; font-size: 9px; }
.osint-tool-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.osint-category-pill, .osint-mode-pill { padding: 5px 8px; border: 1px solid #3c365c; border-radius: 999px; color: #c1b4ff; background: #211d36; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.osint-mode-pill { border-color: #2f5748; color: #9ee1bf; background: #13251f; }
.osint-tool-content h2 { margin: 14px 0 7px; color: #eeeaff; font-size: 21px; }
.osint-tool-description { margin: 0; color: #9d9aaf; font-size: 11px; line-height: 1.65; }
.osint-scope-note { margin: 15px 0; padding: 10px 12px; border: 1px solid #30304a; border-radius: 8px; color: #c0bdd2; background: #141522; font-size: 10px; line-height: 1.6; }
.osint-scope-note.live { border-color: #554328; color: #e3cda9; background: #211c14; }
.osint-tool-fields { display: grid; gap: 12px; margin-top: 15px; }
.osint-field { display: grid; gap: 7px; color: #c5c1d4; font-size: 10px; }
.osint-field input, .osint-field textarea, .osint-field select { width: 100%; min-width: 0; border: 1px solid #34314b; border-radius: 7px; padding: 10px 11px; outline: none; background: #0c0e18; color: var(--text); font-size: 11px; }
.osint-field input:focus, .osint-field textarea:focus, .osint-field select:focus { border-color: #8b70ff; box-shadow: 0 0 0 3px #8b70ff18; }
.osint-field input::placeholder, .osint-field textarea::placeholder { color: #77758e; }
.osint-field textarea { min-height: 105px; resize: vertical; font: 11px/1.55 "Cascadia Code", Consolas, monospace; }
.osint-check { display: flex; align-items: flex-start; gap: 9px; color: #c3bfd1; font-size: 10px; line-height: 1.5; cursor: pointer; }
.osint-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #a18bff; }
.osint-help { margin: -5px 0 0; color: #85839a; font-size: 9px; line-height: 1.55; }
.osint-run-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.osint-run-row .primary-button { background: linear-gradient(110deg, #9e83ff, #7655df); color: #100e20; box-shadow: 0 5px 18px #8065e426; }
.osint-output { margin-top: 18px; padding: 14px; border: 1px solid #373250; border-radius: 8px; background: #0b0c15; }
.osint-output .output-heading { color: #e3def8; }
.osint-output pre { max-height: 360px; margin: 11px 0 0; overflow: auto; color: #c5c2d4; font: 11px/1.7 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.osint-safety-banner { border-color: #493c6c; background: #181426; color: #bcb3d7; }
.osint-safety-banner strong { color: #c4b4ff; }
.safety-banner { margin-top: 14px; padding: 14px 16px; border-radius: 8px; border: 1px solid #345342; background: #0d201d; color: #a8c9bb; font-size: 10px; line-height: 1.65; }
.safety-banner strong { color: #8be4b9; }
.output-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #d7e8f2; font-size: 11px; }
.osint-output.has-error { border-color: #75464f; background: #211318; }
.osint-output.has-error pre { color: #f0b5b8; }
.settings-dialog { width: min(450px, calc(100vw - 28px)); border: 1px solid #2b4d63; border-radius: 12px; padding: 25px; background: #0b1a28; color: var(--text); box-shadow: 0 25px 100px #000b; }
.settings-dialog::backdrop { background: #02080dc9; backdrop-filter: blur(3px); }
.dialog-close-form { position: absolute; top: 14px; right: 14px; }
.dialog-close { font-size: 22px; }
.settings-dialog h2 { font-size: 21px; margin: 8px 0; }
.settings-dialog > p:not(.small-note) { color: #9ab0c1; font-size: 11px; line-height: 1.65; margin: 0 0 18px; }
.settings-dialog input { margin-top: 8px; }
.settings-actions { display: flex; gap: 8px; margin-top: 14px; }
.settings-actions > button { flex: 1; }
.settings-dialog .notice { margin-top: 14px; }
.settings-dialog .small-note { margin-top: 15px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 15px); padding: 11px 16px; max-width: calc(100vw - 30px); border: 1px solid #2d6370; border-radius: 8px; background: #102838; color: #d7eff2; font-size: 11px; opacity: 0; pointer-events: none; transition: .2s; z-index: 5; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .main-content { padding: 0 22px 28px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osint-workspace { grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr); }
  .orbit-art { right: 4%; opacity: .72; }
  .command-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-areas: "hero hero" "core activity" "capabilities quick" "mission mission" "chat chat"; }
  .core-hero { min-height: 220px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { min-height: 0; padding: 12px 14px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 4px 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-label, .sidebar-bottom { display: none; }
  .navigation { display: flex; overflow: auto; gap: 5px; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 8px 10px; font-size: 11px; }
  .nav-item > span { width: auto; font-size: 14px; }
  .sidebar-voice { display: flex; align-items: center; justify-content: center; margin: 5px 0 0; padding: 0; border: 0; background: transparent; }
  .sidebar-voice .eyebrow, .sidebar-voice .voice-wave, .sidebar-voice > small { display: none; }
  .sidebar-voice-button { width: auto; min-width: 150px; margin: 0; padding: 7px 12px; font-size: 10px; }
  .main-content { padding: 0 14px 24px; }
  .topbar { height: 52px; margin-bottom: 17px; }
  .hero { min-height: 222px; padding: 26px 22px; }
  .hero > div:first-child { max-width: 74%; }
  .hero p { font-size: 12px; }
  .orbit-art { width: 155px; height: 150px; right: -24px; opacity: .46; transform: translateY(-50%) scale(.78); }
  .hero-version { font-size: 7px; }
  .bottom-grid, .assistant-layout, .calendar-layout { grid-template-columns: 1fr; }
  .jarvis-layout { grid-template-columns: 1fr; }
  .jarvis-console { min-height: 0; }
  .jarvis-guide { order: 1; }
  .command-dashboard { grid-template-columns: minmax(0,1fr); grid-template-areas: "hero" "core" "activity" "capabilities" "mission" "quick" "chat"; }
  .dashboard-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .core-hero-caption { align-items: flex-start; flex-direction: column; }
  .core-hero-caption p { display: none; }
  .osint-workspace { grid-template-columns: 1fr; }
  .osint-tree-panel { min-height: 0; max-height: 42vh; }
  .osint-detail-panel { min-height: 410px; }
  .osint-welcome { min-height: 360px; }
  .osint-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .osint-toolbar input { width: 100%; }
  .assistant-layout { gap: 11px; }
  .setup-panel { order: -1; }
  .setup-panel ol { display: grid; grid-template-columns: 1fr; }
  .calendar-layout { gap: 11px; }
  .add-event-panel { order: 1; }
  .page-intro h1 { font-size: 28px; }
  .organizer-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .osint-tree-panel { padding: 11px; }
  .osint-detail-panel { padding: 17px; }
  .tool-card { min-height: 141px; padding: 12px; }
  .tool-card small { font-size: 9px; }
  .section-heading { margin-top: 23px; }
  .local-pill { display: none; }
  .apps-toolbar { align-items: stretch; flex-direction: column; }
  .apps-toolbar .secondary-button { width: 100%; }
  .hero { padding: 22px 17px; }
  .hero > div:first-child { max-width: 85%; }
  .hero h1 { font-size: 28px; }
  .orbit-art { right: -45px; }
}
body.jarvis-next {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 65% -15%, #14415a70, transparent 42%),
    radial-gradient(ellipse at 100% 80%, #25184942, transparent 35%),
    #040811;
}
body.jarvis-next::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(#47d6ee08 1px, transparent 1px),
    linear-gradient(90deg, #47d6ee08 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 92%);
}
.jarvis-next .sidebar {
  background: linear-gradient(180deg, #091522f2, #070d18f7);
  box-shadow: 12px 0 42px #0004;
  backdrop-filter: blur(18px);
}
.jarvis-next .brand-mark {
  border-radius: 13px;
  box-shadow: 0 0 26px #23c9ef33, inset 0 0 16px #36d8f222;
}
.jarvis-next .nav-item {
  position: relative;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.jarvis-next .nav-item:hover {
  transform: translateX(2px);
}
.jarvis-next .nav-item.active {
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 24px #28c6e20d;
}
.jarvis-next .topbar {
  border-image: linear-gradient(90deg, #1d4158, #276b7b66, transparent) 1;
}
.jarvis-next .source-live-pill {
  padding: 7px 10px;
  border: 1px solid #23566a;
  border-radius: 999px;
  background: #0a1a29cc;
  color: #a8dce6;
  box-shadow: 0 0 22px #35d7ed12;
}
.jarvis-next .source-live-pill .status-dot {
  width: 6px;
  height: 6px;
  animation: nextStatusPulse 2.8s ease-in-out infinite;
}
.jarvis-next .panel,
.jarvis-next .core-hero {
  box-shadow: 0 14px 36px #01060d5c, inset 0 1px #ffffff08;
  backdrop-filter: blur(10px);
}
.jarvis-next .panel:hover,
.jarvis-next .capability-card:hover,
.jarvis-next .tool-card:hover {
  border-color: #3a8298;
  box-shadow: 0 18px 42px #01060d80, 0 0 24px #2dd8ef12;
  transform: translateY(-3px);
}
.jarvis-next .core-hero {
  border-color: #28647c;
  background:
    radial-gradient(ellipse at 50% 42%, #12648070, transparent 53%),
    linear-gradient(145deg, #0b1c2b, #07111e 72%);
}
.jarvis-next .core-orbit {
  animation: nextOrbit 30s linear infinite;
}
.jarvis-next .core-orbit.orbit-b {
  animation-direction: reverse;
  animation-duration: 24s;
}
.jarvis-next .core-emblem {
  animation: nextCoreGlow 4.5s ease-in-out infinite;
}
.jarvis-next .primary-button,
.jarvis-next .secondary-button,
.jarvis-next .icon-button,
.jarvis-next .capability-card,
.jarvis-next .quick-command {
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.jarvis-next button:not(:disabled):active {
  transform: translateY(1px) scale(.99);
}
.jarvis-next .primary-button:hover:not(:disabled) {
  box-shadow: 0 8px 26px #37d3e833;
}
@keyframes nextOrbit {
  to { rotate: 360deg; }
}
@keyframes nextCoreGlow {
  50% { box-shadow: 0 0 48px #1bcce96b, inset 0 0 34px #2dd6ef35; }
}
@keyframes nextStatusPulse {
  50% { box-shadow: 0 0 0 5px #63e3b018, 0 0 16px #63e3b0aa; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.jarvis-next .next-greeting {
  align-items: flex-end;
  margin: 8px 0 22px;
}
.jarvis-next .next-greeting h1 {
  margin: 11px 0 5px;
  font-size: clamp(30px, 3.2vw, 46px);
}
.jarvis-next .next-greeting p {
  color: #8da7bd;
}
.jarvis-next .next-clock {
  display: grid;
  grid-template-columns: 7px auto;
  align-items: center;
  justify-items: start;
  column-gap: 8px;
  gap: 5px 8px;
  min-width: 140px;
  padding: 11px 15px;
  border-color: #23536a;
  background: linear-gradient(145deg, #0d1d2c, #08121f);
}
.jarvis-next .next-clock > span:not(.system-indicator) { grid-column: 2; }
.jarvis-next .next-clock .system-indicator { grid-row: 1; grid-column: 1; }
.jarvis-next .next-clock small { grid-column: 2; justify-self: start; }
.jarvis-next .next-clock strong { font-size: 23px; }
.next-clock small { color: #85b8c5; font-size: 7px; letter-spacing: .12em; }
.jarvis-next .next-clock small::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 5px 1px 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  content: "";
}
.jarvis-next .command-dashboard {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "hero hero hero hero hero hero hero hero core core core core"
    "capabilities capabilities capabilities capabilities capabilities capabilities capabilities activity activity activity activity activity"
    "mission mission mission mission mission mission quick quick quick mode mode mode";
  gap: 14px;
}
.jarvis-next .core-hero.next-command-hero {
  min-height: 342px;
  justify-content: flex-start;
  padding: 30px clamp(23px, 3vw, 42px);
  border-radius: 14px;
  border-color: #28647c;
  background:
    radial-gradient(ellipse at 82% 48%, #12648058, transparent 39%),
    linear-gradient(120deg, #0b1c2b 0%, #091625 55%, #07101e 100%);
  box-shadow: 0 18px 46px #01060d88, inset 0 1px #ffffff0a;
}
.jarvis-next .next-command-hero .core-orbit { display: none; }
.next-command-copy {
  position: relative;
  z-index: 2;
  width: min(700px, 72%);
}
.next-command-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #80c4d2;
  font-size: 8px;
}
.next-command-copy > .eyebrow i {
  color: #52768d;
  font-style: normal;
}
.next-command-copy h2 {
  margin: 15px 0 7px;
  color: #effbff;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -.04em;
}
.next-command-copy > p {
  max-width: 490px;
  margin: 0;
  color: #90a9bc;
  font-size: 11px;
  line-height: 1.6;
}
.next-command-form {
  width: min(650px, 100%);
  margin: 21px 0 0;
  padding: 8px;
  border-color: #326075;
  border-radius: 10px;
  background: #07121ee8;
  box-shadow: 0 10px 28px #01060d66, inset 0 1px #ffffff08;
}
.next-command-form textarea {
  min-height: 42px;
  max-height: 90px;
  resize: none;
  font-size: 11px;
}
.next-command-form .icon-button {
  width: 38px;
  height: 38px;
  border-color: transparent;
  background: #102536;
}
.next-command-form .send-button {
  width: 39px;
  height: 39px;
  border-radius: 9px;
  box-shadow: 0 0 18px #42dff744;
}
.next-prompt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.next-prompt-row > span {
  margin-right: 3px;
  color: #607c92;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .15em;
}
.next-prompt-row button {
  padding: 6px 9px;
  border: 1px solid #234258;
  border-radius: 999px;
  background: #0a1a28;
  color: #9db8c9;
  cursor: pointer;
  font-size: 8px;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.next-prompt-row button:hover {
  transform: translateY(-1px);
  border-color: #3c96a7;
  background: #102838;
  color: #e7fbff;
}
.next-reactor {
  position: absolute;
  top: 50%;
  right: 3%;
  width: clamp(175px, 20vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  opacity: .94;
}
.next-reactor-ring {
  position: absolute;
  inset: 9%;
  border: 1px solid #49d7e65c;
  border-radius: 50%;
  box-shadow: 0 0 24px #29d4ee12;
  animation: nextReactorSpin 25s linear infinite;
}
.next-reactor-ring::before,
.next-reactor-ring::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed #45d6ef42;
  border-radius: 50%;
  content: "";
}
.next-reactor-ring::after {
  inset: 25%;
  border-style: solid;
  border-color: #a68eff4d;
}
.next-reactor-ring.reactor-ring-b {
  inset: 19%;
  border-style: dashed;
  border-color: #b19dff58;
  animation-direction: reverse;
  animation-duration: 18s;
}
.next-reactor-core {
  position: relative;
  z-index: 1;
  width: 45%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #67e9f1aa;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #1c6576, #091724 72%);
  box-shadow: 0 0 38px #3acfe955, inset 0 0 30px #4bddeb2c;
  animation: nextReactorPulse 4s ease-in-out infinite;
}
.next-reactor-core span {
  color: #b5fbff;
  font-size: 40px;
  font-weight: 800;
  text-shadow: 0 0 18px #3ad5f2;
}
.next-reactor-core small {
  color: #8ce2e7;
  font-size: 7px;
  letter-spacing: .2em;
}
.next-reactor-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #affaff;
  border-radius: 50%;
  background: #5de8f6;
  box-shadow: 0 0 14px #51dfff;
}
.next-reactor-node.reactor-node-a { top: 13%; right: 17%; }
.next-reactor-node.reactor-node-b { bottom: 17%; left: 12%; background: #b5a2ff; box-shadow: 0 0 14px #ab93ff; }
.next-reactor-caption {
  position: absolute;
  right: 2%;
  bottom: 2%;
  color: #61879b;
  font-size: 6px;
  letter-spacing: .14em;
}
@keyframes nextReactorSpin { to { rotate: 360deg; } }
@keyframes nextReactorPulse {
  50% { box-shadow: 0 0 52px #3acfe977, inset 0 0 34px #4bddeb45; }
}
.jarvis-next .core-overview,
.jarvis-next .activity-panel,
.jarvis-next .capability-panel,
.jarvis-next .mission-panel,
.jarvis-next .quick-panel,
.jarvis-next .next-mode-panel {
  border-radius: 12px;
  background: linear-gradient(145deg, #0c1928ed, #081321f2);
}
.jarvis-next .next-mode-panel { grid-area: mode; }
.jarvis-next .core-status-list { gap: 9px; margin: 16px 0 13px; }
.jarvis-next .core-status-list > div {
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(110deg, #0d1e2d, #091421);
}
.jarvis-next .capability-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.jarvis-next .capability-card {
  min-height: 112px;
  padding: 12px;
  border-radius: 9px;
  background: linear-gradient(145deg, #0d1e2c, #091421);
}
.jarvis-next .quick-command {
  width: 100%;
  margin-top: 7px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #0a1826;
}
.next-mode-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #1b384b;
  border-radius: 9px;
  background: #091522;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.next-mode-link:hover {
  transform: translateY(-2px);
  border-color: #39798c;
  background: #0d1f2d;
}
.next-mode-icon {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #3a7e8e;
  border-radius: 9px;
  color: var(--cyan);
  background: #102b38;
}
.next-mode-icon.voice-mode {
  border-color: #554984;
  color: var(--violet);
  background: #201b35;
}
.next-mode-link > span:nth-child(2) { flex: 1; min-width: 0; }
.next-mode-link strong,
.next-mode-link small { display: block; }
.next-mode-link strong { color: #dcedf3; font-size: 10px; }
.next-mode-link small { margin-top: 4px; color: #7892a7; font-size: 8px; }
.next-mode-link b { color: #79b9c9; font-size: 14px; font-weight: 500; }
.jarvis-next button:focus-visible,
.jarvis-next textarea:focus-visible {
  outline: 2px solid #62e2ef;
  outline-offset: 2px;
}
@media (max-width: 1080px) {
  .jarvis-next .command-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero hero"
      "core core"
      "capabilities capabilities"
      "activity activity"
      "mission quick"
      "mode mode";
  }
  .jarvis-next .core-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .jarvis-next .next-greeting { align-items: flex-start; }
  .jarvis-next .next-clock { justify-items: start; }
  .jarvis-next .command-dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "core" "capabilities" "activity" "mission" "quick" "mode";
  }
  .jarvis-next .core-hero.next-command-hero { min-height: 0; padding: 24px 18px; }
  .next-command-copy { width: 100%; }
  .next-command-copy h2 { max-width: 330px; }
  .next-reactor { top: 20px; right: 3px; width: 125px; opacity: .35; transform: none; }
  .next-reactor-caption { display: none; }
  .jarvis-next .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jarvis-next .core-status-list { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-side-panel { order: -1; }
  .studio-grid .feature-side-panel { order: initial; }
}
@media (max-width: 720px) {
  .feature-chat-panel { padding: 11px; }
  .feature-chat-panel .feature-heading { align-items: flex-start; }
  .feature-heading h2 { font-size: 16px; }
  .feature-heading .secondary-button { padding: 7px; }
  .feature-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .feature-messages { min-height: 190px; max-height: 46vh; padding: 12px; }
  .settings-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .settings-actions > button:last-child { grid-column: 1 / -1; }
}
@media print {
  body * { visibility: hidden !important; }
  #view-studio.active,
  #view-studio.active * { visibility: visible !important; }
  .app-shell, .main-content { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
  #view-studio.active { position: absolute; inset: 0; display: block !important; padding: 16px; background: #fff; color: #111; }
  #view-studio .feature-grid > :not(.feature-chat-panel),
  #view-studio .feature-heading-actions,
  #view-studio .feature-label,
  #view-studio #studio-mode,
  #view-studio .feature-toolbar,
  #view-studio .feature-context,
  #view-studio .focus-strip,
  #view-studio #studio-chat-form,
  #view-studio .feature-examples,
  #view-studio .feature-callout,
  #view-studio .page-intro p,
  #view-studio .page-intro .eyebrow { display: none !important; }
  #view-studio .feature-chat-panel { padding: 0; border: 0; background: #fff; box-shadow: none; }
  #studio-messages { display: flex !important; max-height: none; overflow: visible; padding: 0; border: 0; background: #fff; }
  #studio-messages .message { max-width: none; break-inside: avoid; border: 1px solid #bbb; background: #fff; color: #111; }
  #studio-messages .message-label { color: #174e67; }
  #studio-messages .message p { color: #111; }
  #studio-messages .message-speak { display: none; }
}
@media screen {
  body.jarvis-next {
    position: relative;
    min-height: 100vh;
    background: #040a14;
    isolation: isolate;
  }
  body.jarvis-next::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
      radial-gradient(ellipse at 10% 12%, #14465a46, transparent 32%),
      radial-gradient(ellipse at 88% 24%, #392c6630, transparent 30%),
      radial-gradient(ellipse at 48% 100%, #0c42502a, transparent 42%),
      radial-gradient(1px 1px at 14% 18%, #d2f8ff9c 50%, transparent 100%),
      radial-gradient(1px 1px at 73% 10%, #a6cfff88 50%, transparent 100%),
      radial-gradient(1px 1px at 92% 63%, #d2f8ff7a 50%, transparent 100%),
      radial-gradient(1px 1px at 37% 78%, #8adfff80 50%, transparent 100%);
    background-size: auto, auto, auto, 311px 271px, 367px 313px, 419px 337px, 463px 383px;
    content: "";
    inset: 0;
    pointer-events: none;
    animation: ambientSpace 42s ease-in-out infinite alternate;
  }
  .jarvis-next .app-shell {
    position: relative;
    z-index: 1;
    background: transparent;
  }
  .jarvis-next .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right-color: #24465b;
    background: linear-gradient(180deg, #081421f2, #07111fee 72%, #080f1bf5);
    box-shadow: 12px 0 42px #01050b4d, inset -1px 0 #ffffff08;
    backdrop-filter: blur(20px);
  }
  .jarvis-next .brand-mark {
    border-color: #45d6e677;
    background: radial-gradient(circle at 32% 24%, #1a586c, #101b32 73%);
    box-shadow: 0 0 28px #20c9e038, inset 0 0 17px #68eaff16;
  }
  .jarvis-next .nav-item {
    position: relative;
    min-height: 42px;
    border-radius: 9px;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
  }
  .jarvis-next .nav-item:hover {
    transform: translateX(2px);
    border-color: #24465a;
    background: linear-gradient(90deg, #102637, #0b1a28);
  }
  .jarvis-next .nav-item.active {
    border-color: #2a6877;
    background: linear-gradient(100deg, #103747, #0c1e2d);
    box-shadow: inset 2px 0 #58e4ed, 0 4px 19px #02090f80;
  }
  .jarvis-next .main-content {
    position: relative;
    padding-bottom: 48px;
  }
  .jarvis-next .topbar {
    border-bottom-color: #254356a8;
    background: linear-gradient(90deg, #050d18d9, #071321a6);
    backdrop-filter: blur(18px);
  }
  .jarvis-next .topbar .breadcrumb strong {
    color: #e8faff;
  }
  .jarvis-next .view.active {
    animation: workspaceReveal .42s cubic-bezier(.2,.7,.25,1) both;
  }
  .jarvis-next h1 {
    color: #effaff;
    background: linear-gradient(100deg, #f3fbff 15%, #b8e4f2 72%, #a7b9ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .jarvis-next .page-intro {
    position: relative;
    margin: 4px 0 24px;
    padding: 14px 0 20px;
  }
  .jarvis-next .page-intro::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, #47d9ec74, #9278e539 40%, transparent 86%);
    content: "";
  }
  .jarvis-next .page-intro .eyebrow {
    color: #76c9d8;
  }
  .jarvis-next .panel,
  .jarvis-next .osint-tree-panel,
  .jarvis-next .osint-detail-panel {
    border-color: #23465cb8;
    background: linear-gradient(145deg, #0c1a29ed, #081321ed 76%);
    box-shadow: 0 15px 38px #01060d5c, inset 0 1px #ffffff08;
    backdrop-filter: blur(16px);
  }
  .jarvis-next .panel {
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  }
  .jarvis-next .panel:hover {
    border-color: #32677a;
    box-shadow: 0 18px 40px #01060d82, inset 0 1px #ffffff0b;
  }
  .jarvis-next .primary-button {
    background: linear-gradient(110deg, #43d5e7, #62e2bc 80%);
    box-shadow: 0 7px 22px #36cbd52b, inset 0 1px #ffffff52;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  }
  .jarvis-next .primary-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 28px #36cbd54a, inset 0 1px #ffffff70;
  }
  .jarvis-next .secondary-button {
    border-color: #2a4e63;
    background: linear-gradient(145deg, #12283a, #0d1d2c);
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
  }
  .jarvis-next .secondary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #4a9cad;
    background: linear-gradient(145deg, #163448, #102234);
    color: #effcff;
  }
  .jarvis-next input:not([type="checkbox"]):not([type="file"]),
  .jarvis-next textarea:not(.chat-form textarea),
  .jarvis-next select {
    border-color: #27465c;
    background-color: #081522;
    color: #e5f4fc;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  }
  .jarvis-next input:not([type="checkbox"]):not([type="file"]):focus,
  .jarvis-next textarea:not(.chat-form textarea):focus,
  .jarvis-next select:focus {
    border-color: #4bc5d5;
    background-color: #0a1a29;
    box-shadow: 0 0 0 3px #42dff719, 0 0 18px #42dff70c;
    outline: none;
  }
  .jarvis-next .chat-form {
    border-color: #31556a;
    background: linear-gradient(120deg, #081522, #0b1c2a);
    box-shadow: inset 0 1px #ffffff08, 0 7px 21px #01060c4d;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .jarvis-next .chat-form:focus-within {
    border-color: #4bbacb;
    box-shadow: 0 0 0 3px #42dff713, 0 10px 26px #01060c66;
  }
  .jarvis-next .chat-messages,
  .jarvis-next .feature-messages {
    border-color: #203d52;
    background: linear-gradient(180deg, #07121fd9, #081522e8);
  }
  .jarvis-next .message {
    border-color: #29465b;
    background: linear-gradient(135deg, #102337, #0c1b2a);
    box-shadow: 0 5px 16px #01050b38;
  }
  .jarvis-next .message.user-message {
    border-color: #236879;
    background: linear-gradient(135deg, #103747, #0d2937);
  }
  .jarvis-next .feature-callout,
  .jarvis-next .jarvis-guide-note {
    border-color: #2b5066;
    background: linear-gradient(115deg, #0c2030, #091724);
  }
  .jarvis-next .app-launcher-card,
  .jarvis-next .capability-card,
  .jarvis-next .quick-command,
  .jarvis-next .next-mode-link,
  .jarvis-next .feature-examples button,
  .jarvis-next .studio-tool-list button {
    border-color: #24475c;
    background: linear-gradient(145deg, #0d1d2c, #091522);
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .jarvis-next .app-launcher-card:hover,
  .jarvis-next .capability-card:hover,
  .jarvis-next .quick-command:hover,
  .jarvis-next .next-mode-link:hover,
  .jarvis-next .feature-examples button:hover,
  .jarvis-next .studio-tool-list button:hover {
    border-color: #418ba0;
    background: linear-gradient(145deg, #112a3c, #0b1a29);
    box-shadow: 0 8px 20px #01060d69;
  }
  .jarvis-next .settings-dialog {
    border-color: #397086;
    background: linear-gradient(145deg, #102234, #081421);
    box-shadow: 0 30px 100px #000d, inset 0 1px #ffffff0b;
  }
  .jarvis-next .toast {
    border-color: #3a7382;
    background: linear-gradient(120deg, #102b3b, #101c31);
    box-shadow: 0 12px 35px #0009;
    backdrop-filter: blur(12px);
  }
  .jarvis-next .core-hero.next-command-hero {
    background:
      radial-gradient(ellipse at 79% 48%, #12648058, transparent 39%),
      radial-gradient(1px 1px at 15% 23%, #c5f5ff9c 50%, transparent 100%),
      radial-gradient(1px 1px at 45% 72%, #b3cfff90 50%, transparent 100%),
      radial-gradient(1px 1px at 61% 18%, #d9faff7a 50%, transparent 100%),
      radial-gradient(1px 1px at 28% 87%, #80d7ee80 50%, transparent 100%),
      linear-gradient(120deg, #0b1c2b 0%, #091625 55%, #07101e 100%);
    background-size: auto, 180px 160px, 230px 190px, 210px 180px, 280px 220px, auto;
    animation: starfieldDrift 70s linear infinite;
  }
  .jarvis-next .next-reactor {
    right: 1%;
    width: clamp(210px, 25vw, 326px);
    opacity: .98;
    filter: drop-shadow(0 0 28px #16c8e31c);
  }
  .next-solar-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #65dff032;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    animation: nextSolarSpin 24s linear infinite;
  }
  .next-solar-orbit i {
    position: absolute;
    top: 50%;
    left: 100%;
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid #d5faff;
    border-radius: 50%;
    background: #55e5f5;
    box-shadow: 0 0 14px #4bdfffc9;
    transform: translate(-50%, -50%);
  }
  .solar-orbit-one { width: 86px; height: 58px; animation-duration: 9s; border-color: #68e8f04a; }
  .solar-orbit-two { width: 135px; height: 92px; animation-duration: 15s; animation-direction: reverse; }
  .solar-orbit-three { width: 190px; height: 130px; animation-duration: 23s; border-style: dashed; }
  .solar-orbit-four { width: 252px; height: 172px; animation-duration: 33s; animation-direction: reverse; border-color: #ab9aff24; }
  .solar-orbit-one i { width: 5px; height: 5px; background: #c3a2ff; box-shadow: 0 0 12px #a887ff; }
  .solar-orbit-two i { width: 8px; height: 8px; background: #5de8f6; }
  .solar-orbit-three i { width: 6px; height: 6px; background: #73e5b7; box-shadow: 0 0 12px #63e3b0; }
  .solar-orbit-four i { width: 9px; height: 9px; background: #ffca85; box-shadow: 0 0 13px #ffbd74; }
  .jarvis-next .next-reactor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 31%;
    transform: translate(-50%, -50%);
    border-color: #8af3f2b8;
    background: radial-gradient(circle at 35% 28%, #297c8b, #0a1c2a 72%);
    box-shadow: 0 0 45px #3acfe977, inset 0 0 32px #4bddeb36;
    animation: nextReactorPulse 4s ease-in-out infinite;
  }
  .jarvis-next .next-reactor-core span {
    font-size: clamp(24px, 3vw, 38px);
  }
  .jarvis-next .next-reactor-core small {
    font-size: 6px;
  }
  .jarvis-next .next-reactor-caption {
    right: 0;
    bottom: 0;
    color: #73b5c5;
    font-size: 6px;
  }
  @keyframes ambientSpace {
    to { background-position: 0 0, 0 0, 0 0, 41px 29px, -31px 43px, 29px -37px, -43px 31px; }
  }
  @keyframes workspaceReveal {
    from { opacity: .25; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes starfieldDrift {
    to { background-position: 0 0, 37px -29px, -41px 31px, 53px -19px, 0 0; }
  }
  @keyframes nextSolarSpin {
    to { rotate: 360deg; }
  }
}
@media screen and (max-width: 720px) {
  .jarvis-next .sidebar {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    backdrop-filter: none;
  }
  .jarvis-next .next-reactor {
    right: -14px;
    width: 220px;
    opacity: .35;
  }
  .jarvis-next .next-reactor-caption { display: none; }
}
@media screen and (prefers-reduced-motion: reduce) {
  body.jarvis-next::before,
  .jarvis-next .view.active,
  .jarvis-next .core-hero.next-command-hero,
  .jarvis-next .next-solar-orbit,
  .jarvis-next .next-reactor-core {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.jarvis-next .web-ai-privacy {
  display: none;
  margin: 8px 14px 12px;
  padding: 9px 11px;
  border: 1px solid #264a60;
  border-left: 2px solid #63d5dc;
  border-radius: 7px;
  background: #091a28;
  color: #a7bdcc;
  font-size: 9px;
  line-height: 1.55;
}
.jarvis-next.web-edition .web-ai-privacy { display: block; }
.jarvis-next.web-edition #local-model-controls { display: none; }
.jarvis-next.web-edition #settings-eyebrow { color: #6fd5dc; }
.mobile-navigation { display: none; }
.mobile-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.mobile-workspace-grid button {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #27475b;
  border-radius: 9px;
  background: linear-gradient(140deg, #102436, #091724);
  color: #d7ecf6;
  text-align: left;
  cursor: pointer;
}
.mobile-workspace-grid button span { color: var(--cyan); font-size: 17px; }
.mobile-workspace-grid button strong { font-size: 10px; }
@media screen and (max-width: 720px) {
  body.jarvis-next { overflow-x: hidden; }
  .jarvis-next .app-shell { display: block; min-height: 100dvh; }
  .jarvis-next .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    min-height: 0;
    padding: calc(9px + env(safe-area-inset-top)) 14px 9px;
    border-bottom: 1px solid #28465a;
    background: linear-gradient(110deg, #091724f8, #081321f5);
  }
  .jarvis-next .brand { min-width: 0; padding: 0; }
  .jarvis-next .brand-mark { width: 35px; height: 35px; }
  .jarvis-next .brand strong { font-size: 13px; }
  .jarvis-next .brand small { font-size: 7px; }
  .jarvis-next .sidebar .nav-label,
  .jarvis-next .sidebar .navigation,
  .jarvis-next .sidebar .sidebar-bottom { display: none; }
  .jarvis-next .sidebar-voice {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .jarvis-next .sidebar-voice .eyebrow,
  .jarvis-next .sidebar-voice .voice-wave,
  .jarvis-next .sidebar-voice > small { display: none; }
  .jarvis-next .sidebar-voice-button {
    width: auto;
    min-width: 122px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border-color: #326375;
    border-radius: 9px;
    background: linear-gradient(120deg, #102b3c, #0b1c2a);
    color: #bcecf1;
    font-size: 9px;
  }
  .jarvis-next .main-content { padding: 0 14px calc(88px + env(safe-area-inset-bottom)); }
  .jarvis-next .topbar { height: 48px; margin-bottom: 10px; }
  .jarvis-next .breadcrumb { min-width: 0; gap: 7px; font-size: 10px; }
  .jarvis-next .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jarvis-next .topbar-right { gap: 6px; }
  .jarvis-next .source-live-pill { display: none; }
  .jarvis-next .icon-button { flex: 0 0 auto; }
  .jarvis-next .next-greeting { gap: 9px; margin: 9px 0 14px; }
  .jarvis-next .next-greeting h1 { margin: 7px 0 4px; font-size: clamp(25px, 7vw, 34px); }
  .jarvis-next .next-greeting .eyebrow { font-size: 7px; }
  .jarvis-next .next-clock { grid-template-columns: 7px auto; min-width: 0; padding: 7px 10px; }
  .jarvis-next .next-clock strong { font-size: 17px; }
  .jarvis-next .command-dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "core" "capabilities" "activity" "mission" "quick" "mode";
    gap: 10px;
  }
  .jarvis-next .core-hero.next-command-hero { min-height: 0; padding: 22px 16px; }
  .next-command-copy { width: 100%; }
  .next-command-copy h2 { max-width: 290px; font-size: clamp(23px, 6vw, 30px); }
  .next-command-copy > p { max-width: 300px; font-size: 10px; }
  .jarvis-next .next-reactor { top: 17px; right: -14px; width: 166px; opacity: .35; transform: none; }
  .next-solar-orbit-three { display: none; }
  .next-solar-orbit-four { width: 180px; height: 124px; }
  .next-reactor-caption { display: none; }
  .next-command-form { gap: 5px; margin-top: 16px; padding: 6px; }
  .next-command-form textarea { min-height: 40px; font-size: 10px; }
  .next-command-form .icon-button { width: 35px; height: 35px; }
  .next-prompt-row { position: relative; z-index: 1; gap: 5px; }
  .next-prompt-row button { padding: 6px 7px; font-size: 7px; }
  .jarvis-next .core-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jarvis-next .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jarvis-next .mission-panel .preview-event { gap: 9px; }
  .jarvis-next .page-intro { margin: 0 0 16px; padding: 8px 0 15px; }
  .jarvis-next .page-intro h1 { margin: 7px 0 5px; font-size: clamp(25px, 7vw, 32px); }
  .jarvis-next .page-intro p { font-size: 11px; }
  .jarvis-next .panel { padding: 14px; border-radius: 12px; }
  .jarvis-next .jarvis-console { padding: 14px; }
  .jarvis-next .jarvis-guide { padding: 15px; }
  .jarvis-next .jarvis-orb { width: 184px; height: 184px; margin: 20px auto 10px; }
  .jarvis-next .jarvis-orb-core { width: 112px; height: 112px; }
  .jarvis-next .jarvis-orbit { width: 176px; }
  .jarvis-next .jarvis-orbit-two { width: 166px; }
  .jarvis-next .jarvis-prompt { margin-bottom: 12px; font-size: 11px; }
  .jarvis-next .jarvis-messages,
  .jarvis-next .feature-messages,
  .jarvis-next .chat-messages { min-height: 180px; max-height: 46vh; padding: 13px; }
  .jarvis-next .message { max-width: 96%; padding: 9px 10px; }
  .jarvis-next .message p { font-size: 11px; }
  .jarvis-next .feature-grid,
  .jarvis-next .assistant-layout,
  .jarvis-next .calendar-layout,
  .jarvis-next .jarvis-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .jarvis-next .feature-heading { align-items: flex-start; flex-wrap: wrap; }
  .jarvis-next .feature-heading-actions { flex-wrap: wrap; }
  .jarvis-next .feature-heading h2 { font-size: 17px; }
  .jarvis-next .feature-chat-panel { padding: 12px; }
  .jarvis-next .feature-side-panel { order: initial; }
  .jarvis-next .feature-toolbar { align-items: flex-start; flex-direction: column; }
  .jarvis-next .feature-context { min-height: 68px; }
  .jarvis-next .chat-form { gap: 5px; margin-right: 7px; margin-left: 7px; padding: 7px; }
  .jarvis-next .chat-form textarea { min-width: 0; font-size: 11px; }
  .jarvis-next .chat-form .icon-button { width: 34px; height: 34px; }
  .jarvis-next .send-button { width: 34px; height: 34px; }
  .jarvis-next .web-ai-privacy { margin: 8px 7px; }
  .jarvis-next .chat-header { gap: 7px; flex-wrap: wrap; padding: 12px; }
  .jarvis-next .chat-header .connection-badge { margin-left: 0; }
  .jarvis-next .voice-replies-button { margin-left: auto; }
  .jarvis-next .setup-panel { order: initial; }
  .jarvis-next .setup-panel ol { grid-template-columns: 1fr; }
  .jarvis-next .apps-toolbar { align-items: stretch; flex-direction: column; }
  .jarvis-next .apps-toolbar .secondary-button { width: 100%; }
  .jarvis-next .app-launcher-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .jarvis-next .organizer-actions { align-items: stretch; flex-direction: column; }
  .jarvis-next .organizer-actions .primary-button { width: 100%; }
  .jarvis-next .calendar-layout { gap: 10px; }
  .jarvis-next .add-event-panel { order: 0; }
  .jarvis-next .events-panel { order: 1; }
  .jarvis-next .osint-toolbar { align-items: stretch; }
  .jarvis-next .osint-count { white-space: normal; }
  .jarvis-next .osint-workspace { grid-template-columns: minmax(0, 1fr); }
  .jarvis-next .osint-tree-panel { min-height: 0; max-height: 38dvh; padding: 11px; }
  .jarvis-next .osint-detail-panel { min-height: 320px; padding: 15px; }
  .jarvis-next .osint-welcome { min-height: 285px; }
  .jarvis-next .osint-tool-fields { min-width: 0; }
  .jarvis-next .osint-tool-fields input,
  .jarvis-next .osint-tool-fields textarea,
  .jarvis-next .osint-tool-fields select { min-width: 0; }
  .jarvis-next .table-wrap { max-width: 100%; }
  .jarvis-next .settings-dialog { padding: 21px 17px; }
  .jarvis-next .mobile-navigation {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #2a5064;
    background: linear-gradient(180deg, #0b1a29f5, #07111efc);
    box-shadow: 0 -12px 35px #02070c91;
    backdrop-filter: blur(20px);
  }
  .jarvis-next .mobile-tab {
    display: grid;
    min-width: 0;
    min-height: 48px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #849eaf;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .jarvis-next .mobile-tab > span { font-size: 16px; line-height: 1; }
  .jarvis-next .mobile-tab > small { max-width: 100%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .jarvis-next .mobile-tab.active {
    border-color: #2b6978;
    background: linear-gradient(145deg, #123244, #0b1b2b);
    color: #84e8ef;
    box-shadow: inset 0 1px #ffffff12, 0 0 18px #42dff714;
  }
  .jarvis-next .mobile-navigation-dialog {
    position: fixed;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: 500px;
    max-height: min(72dvh, 550px);
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 18px;
  }
  .jarvis-next .mobile-navigation-dialog::backdrop { background: #02060bc9; backdrop-filter: blur(8px); }
  .jarvis-next .mobile-workspace-grid button { min-height: 58px; }
  .jarvis-next .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
