/* =========================================================
   JARVIS UZ — PREMIUM VISUAL SYSTEM
   Dark glass interface / cyan holographic accents
   ========================================================= */
:root {
  --bg: #050914;
  --bg-soft: #080f1c;
  --panel: rgba(11, 20, 35, .88);
  --panel-solid: #0b1423;
  --panel-light: #101e31;
  --line: rgba(72, 151, 196, .18);
  --line-bright: rgba(54, 217, 255, .42);
  --cyan: #36d9ff;
  --cyan-soft: #8cecff;
  --blue: #4389ff;
  --white: #eaf6ff;
  --muted: #8299b4;
  --muted-dark: #536b85;
  --green: #54efb2;
  --red: #ff647b;
  --radius: 18px;
  --font: "Inter", "Segoe UI", sans-serif;
  --mono: "Orbitron", "Consolas", monospace;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--white); background: var(--bg);
  font-family: var(--font); overflow-x: hidden;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { color: #001018; background: var(--cyan); }
.ambient { position: fixed; z-index: -3; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .16; }
.ambient-one { width: 430px; height: 430px; background: #005eff; top: -180px; left: 20%; }
.ambient-two { width: 520px; height: 520px; background: #00c8ff; right: -300px; bottom: -180px; opacity: .09; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(45, 110, 148, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 110, 148, .12) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 95%);
}
.app-shell { display: flex; width: 100%; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; display: flex; flex-direction: column;
  width: 258px; padding: 25px 17px 17px; background: rgba(5, 11, 21, .94);
  border-right: 1px solid var(--line); backdrop-filter: blur(22px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 27px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--cyan); border-radius: 14px 14px 14px 4px; color: var(--cyan); box-shadow: inset 0 0 16px #36d9ff1c, 0 0 20px #36d9ff13; font: 700 25px var(--mono); }
.brand-mark i { position: absolute; width: 5px; height: 5px; right: -3px; top: -3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.brand-name { font: 700 17px var(--mono); letter-spacing: 1.3px; }
.brand-name span { color: var(--cyan); margin-left: 4px; }
.brand-subtitle { margin-top: 5px; color: var(--muted); font: 8px var(--mono); letter-spacing: 1.1px; }
.system-card { padding: 15px 15px 13px; background: linear-gradient(135deg, #0c1b2b, #09111e); border: 1px solid var(--line); border-radius: 13px; }
.system-card-top { display: flex; justify-content: space-between; align-items: center; }
.tiny-label, .sidebar-heading { color: var(--muted); font: 9px var(--mono); letter-spacing: 1.2px; }
.status-dot, .connection-pill span:first-child { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #54efb2aa; }
.system-state { margin-top: 9px; font: 700 20px var(--mono); letter-spacing: 1px; }
.system-caption { margin-top: 4px; color: var(--muted); font-size: 10px; }
.mini-meter { display: flex; align-items: end; gap: 4px; height: 19px; margin-top: 13px; }
.mini-meter span { flex: 1; height: 40%; border-radius: 3px; background: #1b5e7c; animation: meter 1.5s ease-in-out infinite alternate; }
.mini-meter span:nth-child(2n) { height: 75%; animation-delay: .2s; }
.mini-meter span:nth-child(3n) { height: 100%; animation-delay: .4s; }
.mini-meter span:nth-child(4n) { height: 55%; animation-delay: .1s; }
.nav-list { display: grid; gap: 6px; margin-top: 27px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #92a8c0; background: transparent; text-align: left; cursor: pointer; transition: .2s ease; font-size: 12px; }
.nav-item:hover { color: var(--white); background: #0d1a2b; }
.nav-item.active { color: var(--cyan); background: linear-gradient(90deg, #103149a6, #0c1b2c66); border-color: #2c72924d; box-shadow: inset 2px 0 var(--cyan); }
.nav-icon { width: 18px; font-size: 17px; text-align: center; }
.nav-item kbd { margin-left: auto; color: #526b83; font: 9px var(--mono); }
.sidebar-divider { height: 1px; margin: 21px 4px 19px; background: var(--line); }
.sidebar-heading { padding: 0 10px 11px; }
.quick-action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; color: #9eb2c8; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font-size: 11px; transition: .2s; }
.quick-action:hover { background: #0e1a2b; color: var(--white); }
.quick-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #274258; border-radius: 7px; color: var(--cyan); font-weight: 700; }
.quick-icon.youtube { color: #ff6a7e; }
.quick-icon.google { color: #7fc6ff; }
.quick-arrow { margin-left: auto; color: #506b86; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 5px 0; border-top: 1px solid var(--line); }
.user-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: var(--cyan); background: #143047; border: 1px solid #245b78; font: 700 13px var(--mono); }
.user-meta { display: grid; gap: 4px; }
.user-meta strong { font-size: 10px; font-weight: 600; }
.user-meta span { color: var(--muted); font-size: 9px; }
.user-menu { margin-left: auto; color: var(--muted); letter-spacing: 2px; }
.main-panel { width: calc(100% - 258px); min-height: 100vh; margin-left: 258px; padding: 0 30px 15px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 77px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font: 9px var(--mono); letter-spacing: 1px; color: var(--muted); }
.breadcrumb b { color: #34516b; font-weight: 400; }
.breadcrumb strong { color: #d7e9f7; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-pill { display: flex; align-items: center; gap: 8px; margin-right: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font: 8px var(--mono); letter-spacing: .4px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: #9cb1c7; background: #0a1422; cursor: pointer; transition: .2s; }
.icon-button:hover { border-color: var(--line-bright); color: var(--cyan); }
.view { animation: viewIn .35s ease both; }
.hidden-view { display: none; }
.active-view { display: block; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 28px 0 23px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font: 9px var(--mono); letter-spacing: 1.7px; }
.eyebrow-line { width: 20px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
h1 { margin: 12px 0 8px; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -1.4px; font-weight: 600; }
h1 span { color: var(--cyan); }
.welcome-copy, .page-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.date-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #0a1421b8; }
.date-chip-icon { color: var(--cyan); font-size: 23px; }
.date-chip div { display: grid; gap: 4px; }
.date-chip small { color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.date-chip strong { font: 600 14px var(--mono); }
.dashboard-grid { display: grid; grid-template-columns: minmax(300px, .93fr) minmax(360px, 1.07fr); gap: 16px; }
.panel-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 25, 42, .95), rgba(7, 15, 27, .94)); box-shadow: 0 12px 38px #00000016; }
.core-card, .chat-card, .stats-card, .commands-card { padding: 18px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-index { color: #64809b; font: 8px var(--mono); letter-spacing: 1.4px; }
.card-heading h2 { margin: 7px 0 0; font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.live-tag { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #245443; border-radius: 6px; color: var(--green); font: 8px var(--mono); }
.live-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.core-stage { position: relative; display: grid; place-items: center; height: 267px; overflow: hidden; margin: 0 -4px; }
.core-stage::before { position: absolute; content: ""; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, #0b91d01b, transparent 68%); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid #2d8db442; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-a { width: 220px; height: 220px; border-style: dashed; animation: spin 28s linear infinite; }
.orbit-b { width: 185px; height: 185px; border-color: #2d8db46b; animation: spinReverse 19s linear infinite; }
.orbit-c { width: 148px; height: 148px; border-style: dotted; animation: spin 12s linear infinite; }
.orbit-dash { position: absolute; width: 237px; height: 237px; border-radius: 50%; border: 2px solid transparent; border-top-color: #36d9ff; border-right-color: #36d9ff4d; transform: rotate(24deg); animation: spin 7s linear infinite; }
.core-cross { position: absolute; background: #2b74934a; }
.cross-h { width: 100%; height: 1px; }
.cross-v { width: 1px; height: 100%; }
.core-glow { position: absolute; width: 124px; height: 124px; border-radius: 50%; background: #17c8ff; filter: blur(40px); opacity: .15; animation: glowPulse 3s ease-in-out infinite; }
.core-orb { position: relative; display: grid; place-items: center; width: 111px; height: 111px; border: 1px solid #64e6ff; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #1c526f, #071322 65%); box-shadow: 0 0 25px #00c8ff28, inset 0 0 25px #20cfff1c; z-index: 2; }
.core-orb::before, .core-orb::after { position: absolute; content: ""; inset: 7px; border: 1px solid #44c5eb5c; border-radius: 50%; }
.core-orb::after { inset: 15px; border-style: dashed; border-color: #44c5eb42; animation: spinReverse 14s linear infinite; }
.core-orb-inner { text-align: center; }
.core-letter { color: var(--white); font: 500 46px var(--mono); line-height: 1.05; text-shadow: 0 0 20px #36d9ff9c; }
.core-wave { display: flex; align-items: center; justify-content: center; gap: 2px; height: 12px; margin-top: 2px; }
.core-wave i { width: 2px; height: 4px; border-radius: 3px; background: var(--cyan); animation: wave 1s ease-in-out infinite alternate; }
.core-wave i:nth-child(2n) { animation-delay: .2s; }
.core-wave i:nth-child(3n) { animation-delay: .4s; }
.orb-label { position: absolute; display: grid; gap: 5px; z-index: 3; }
.orb-label span { color: #6689a8; font: 7px var(--mono); letter-spacing: .6px; }
.orb-label strong { color: var(--cyan-soft); font: 10px var(--mono); }
.orb-label-left { left: 2px; top: 48px; }
.orb-label-right { right: 0; bottom: 44px; text-align: right; }
.orbit-point { position: absolute; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.point-one { top: 27px; left: calc(50% + 40px); }
.point-two { bottom: 29px; left: calc(50% - 100px); width: 4px; height: 4px; }
.point-three { top: 80px; right: calc(50% - 110px); width: 4px; height: 4px; }
.core-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.core-footer > div { display: flex; align-items: center; gap: 7px; }
.small-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.mono { color: #63829e; font: 8px var(--mono); }
.core-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.primary-button, .secondary-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .35px; transition: .2s; overflow: hidden; }
.primary-button { color: #03101b; border: 1px solid var(--cyan); background: linear-gradient(105deg, #36d9ff, #76e7ff); box-shadow: 0 5px 20px #36d9ff19; }
.primary-button:hover { box-shadow: 0 0 24px #36d9ff4a; transform: translateY(-1px); }
.primary-button.listening { color: white; border-color: var(--red); background: linear-gradient(105deg, #bd3155, #ed5974); }
.mic-symbol { font-size: 13px; }
.secondary-button { color: #b4c8db; border: 1px solid #29445c; background: #0d1b2b; }
.secondary-button:hover { border-color: var(--line-bright); color: var(--cyan); }
.micro-note { margin: 10px 0 0; color: #587089; font-size: 8px; line-height: 1.6; }
.voice-language-row { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 13px; text-align: left; }
.voice-language-row label { color: #6f8ba5; font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.voice-language-row select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #24465e; border-radius: 9px; background: #0b1928; color: #dff7ff; font: inherit; font-size: 12px; outline: none; }
.voice-language-row select:focus { border-color: #36d9ff; box-shadow: 0 0 0 2px #36d9ff22; }
.chat-card { display: flex; flex-direction: column; min-height: 520px; }
.chat-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-count { color: #6f8ca7; font: 8px var(--mono); }
.chat-feed { display: flex; flex: 1; flex-direction: column; gap: 17px; min-height: 220px; max-height: 326px; padding: 18px 3px; overflow-y: auto; scrollbar-color: #21465e transparent; scrollbar-width: thin; }
.message { display: flex; align-items: flex-start; gap: 10px; animation: messageIn .25s ease both; }
.message.user-message { flex-direction: row-reverse; }
.message-avatar { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border: 1px solid #245a78; border-radius: 9px; color: var(--cyan); background: #10283a; font: 700 11px var(--mono); }
.user-message .message-avatar { color: var(--green); border-color: #27624f; background: #102a26; }
.message-content { min-width: 0; max-width: 88%; }
.user-message .message-content { text-align: right; }
.message-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.user-message .message-meta { justify-content: flex-end; }
.message-meta strong { color: var(--cyan); font: 9px var(--mono); }
.user-message .message-meta strong { color: var(--green); }
.message-meta span { color: #607990; font: 7px var(--mono); }
.message-bubble { padding: 10px 12px; border: 1px solid #1c344b; border-radius: 3px 12px 12px 12px; color: #c5d5e4; background: #0c1928; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; text-align: left; }
.user-message .message-bubble { border-color: #1e4a43; border-radius: 12px 3px 12px 12px; background: #0c211f; color: #d7f7ed; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 12px; }
.suggestion-chip { padding: 7px 9px; border: 1px solid #1e354b; border-radius: 7px; color: #88a4bd; background: #0a1726; cursor: pointer; font-size: 8px; transition: .2s; }
.suggestion-chip:hover { color: var(--cyan); border-color: #2b718f; }
.composer { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid #244158; border-radius: 11px; background: #081321; transition: .2s; }
.composer:focus-within { border-color: #36d9ff8a; box-shadow: 0 0 0 3px #36d9ff0b; }
.composer-plus { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #6f91ab; background: #122338; font-size: 19px; cursor: pointer; }
.composer input { min-width: 0; flex: 1; padding: 9px 0; border: 0; outline: 0; color: var(--white); background: transparent; font-size: 10px; }
.composer input::placeholder { color: #58718a; }
.send-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; color: #03111a; background: var(--cyan); cursor: pointer; transition: .2s; }
.send-button:hover { background: #9aefff; transform: translateX(1px); }
.composer-foot { display: flex; justify-content: space-between; margin-top: 9px; color: #526b83; font: 7px var(--mono); letter-spacing: .3px; }
.composer-foot span:first-child { display: flex; align-items: center; gap: 6px; }
.composer-foot i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.bottom-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr); gap: 16px; margin-top: 16px; }
.stats-card, .commands-card { padding: 17px 18px; }
.muted-label { color: #526b83; font: 7px var(--mono); }
.stat-list { margin-top: 14px; }
.stat-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #16283a; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #203b51; border-radius: 9px; color: var(--cyan); background: #0d1d2e; font-size: 14px; }
.stat-text { display: grid; gap: 4px; }
.stat-text span { color: var(--muted); font-size: 9px; }
.stat-text strong { color: #d6e8f6; font-size: 10px; font-weight: 500; }
.stat-visual { display: flex; align-items: end; gap: 3px; height: 20px; margin-left: auto; }
.bars i { display: block; width: 3px; height: 45%; border-radius: 2px; background: #2699c4; }
.bars i:nth-child(2n) { height: 85%; }
.bars i:nth-child(3n) { height: 65%; }
.bars i:nth-child(4n) { height: 100%; }
.line-visual { width: 46px; height: 20px; border-bottom: 1px solid #226987; background: linear-gradient(160deg, transparent 40%, #36d9ff17 41%, transparent 85%); }
.line-visual span { width: 100%; height: 100%; display: block; border-bottom: 1px solid var(--cyan); clip-path: polygon(0 85%, 18% 60%, 34% 72%, 52% 22%, 68% 44%, 83% 10%, 100% 30%, 100% 37%, 83% 17%, 68% 51%, 52% 29%, 34% 79%, 18% 67%, 0 92%); background: var(--cyan); }
.stat-badge { margin-left: auto; padding: 5px 7px; border: 1px solid #244b3d; border-radius: 5px; color: var(--green); font: 7px var(--mono); }
.text-button { border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-size: 9px; }
.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.command-tile { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #1c3448; border-radius: 10px; color: var(--white); background: #0b1726; text-align: left; cursor: pointer; transition: .2s; }
.command-tile:hover { border-color: #2d7798; transform: translateY(-1px); }
.tile-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; color: var(--cyan); background: #122c40; font-size: 15px; }
.command-tile > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.command-tile strong { font-size: 9px; font-weight: 600; }
.command-tile small { color: var(--muted); font-size: 8px; }
.command-tile b { margin-left: auto; color: #5c7a94; font-size: 11px; font-weight: 400; }
.app-footer { display: flex; justify-content: space-between; gap: 10px; padding: 18px 2px 0; color: #415a72; font: 7px var(--mono); letter-spacing: .6px; }
.app-footer span:last-child { display: flex; align-items: center; gap: 7px; }
.app-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.page-title { padding: 36px 0 25px; }
.page-title h1 { margin-top: 13px; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.library-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 185px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; color: var(--white); background: linear-gradient(145deg, #0d1a2b, #091321); text-align: left; cursor: pointer; transition: .22s; }
.library-card:hover { border-color: #3387a8; transform: translateY(-3px); box-shadow: 0 10px 30px #0003; }
.library-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #28536e; border-radius: 10px; color: var(--cyan); background: #112b40; font-size: 18px; }
.library-card strong { margin-top: 15px; font-size: 12px; }
.library-card p { margin: 7px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.library-card code { margin-top: auto; padding: 6px 7px; border: 1px solid #203a4e; border-radius: 5px; color: #9ac4db; background: #091523; font-size: 8px; }
.activity-panel { padding: 20px; }
.activity-list { margin-top: 20px; }
.activity-entry { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.activity-entry .activity-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #24536d; border-radius: 9px; color: var(--cyan); background: #0d2233; }
.activity-entry div:nth-child(2) { flex: 1; }
.activity-entry strong { font-size: 11px; font-weight: 500; }
.activity-entry p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.activity-entry time { color: #59738b; font: 8px var(--mono); }
.empty-state { padding: 35px 10px; color: var(--muted); text-align: center; font-size: 11px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { padding: 20px; }
.setting-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-row:first-of-type { margin-top: 9px; }
.setting-row > span:first-child { display: grid; gap: 6px; }
.setting-row strong { font-size: 11px; font-weight: 500; }
.setting-row small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.setting-row input[type="checkbox"] { position: absolute; right: 0; width: 34px; height: 20px; opacity: 0; cursor: pointer; }
.toggle-ui { position: relative; flex: 0 0 34px; height: 20px; border: 1px solid #31465a; border-radius: 20px; background: #132033; transition: .2s; }
.toggle-ui::after { position: absolute; content: ""; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #6f8498; transition: .2s; }
.setting-row input:checked + .toggle-ui { border-color: #2584a7; background: #10384a; }
.setting-row input:checked + .toggle-ui::after { left: 17px; background: var(--cyan); box-shadow: 0 0 8px #36d9ff66; }
.setting-value { color: var(--cyan); font-size: 10px; }
.settings-description { color: var(--muted); font-size: 11px; line-height: 1.8; }
.full-width { width: 100%; margin-top: 10px; }
.api-notice { display: flex; gap: 10px; margin-top: 20px; padding: 13px; border: 1px solid #3d3b2c; border-radius: 9px; color: #e8d49c; background: #26231744; }
.api-notice span { font-size: 15px; }
.api-notice p { margin: 0; font-size: 9px; line-height: 1.7; }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid #2c6376; border-radius: 10px; color: var(--white); background: #0d2232; box-shadow: 0 12px 35px #0006; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { color: var(--green); }
.listening-mode .orbit-a { border-color: #ff647b80; }
.listening-mode .core-orb { border-color: var(--red); box-shadow: 0 0 35px #ff647b40, inset 0 0 25px #ff647b18; }
.listening-mode .core-letter { text-shadow: 0 0 20px #ff647b; }
.listening-mode .core-glow { background: var(--red); opacity: .18; }
.no-animations *, .no-animations *::before, .no-animations *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinReverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes wave { from { height: 3px; opacity: .55; } to { height: 11px; opacity: 1; } }
@keyframes glowPulse { 0%, 100% { transform: scale(.9); opacity: .12; } 50% { transform: scale(1.15); opacity: .22; } }
@keyframes meter { from { opacity: .4; } to { opacity: 1; } }
@keyframes messageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1200px) {
  .sidebar { width: 225px; padding-inline: 13px; }
  .main-panel { width: calc(100% - 225px); margin-left: 225px; padding-inline: 22px; }
  .dashboard-grid { grid-template-columns: minmax(270px, .9fr) minmax(310px, 1.1fr); }
  .core-card, .chat-card, .stats-card, .commands-card { padding: 15px; }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .core-stage { height: 250px; }
  .chat-card { min-height: 460px; }
  .chat-feed { max-height: 300px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sidebar { position: relative; width: 100%; height: auto; bottom: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-shell { display: block; }
  .brand { padding-bottom: 14px; }
  .system-card, .sidebar-divider, .sidebar-heading, .quick-action, .sidebar-bottom { display: none; }
  .nav-list { display: flex; gap: 5px; margin-top: 0; overflow-x: auto; }
  .nav-item { flex: 0 0 auto; min-height: 36px; padding: 0 10px; font-size: 10px; }
  .nav-item kbd { display: none; }
  .main-panel { width: 100%; margin-left: 0; padding: 0 14px 14px; }
  .topbar { min-height: 58px; }
  .connection-pill { display: none; }
  .welcome-row { align-items: flex-start; flex-direction: column; padding-top: 23px; }
  .date-chip { align-self: flex-start; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .library-card { min-height: 175px; padding: 13px; }
  .app-footer { font-size: 6px; }
}
@media (max-width: 390px) {
  .library-grid { grid-template-columns: 1fr; }
  .core-controls { grid-template-columns: 1fr; }
  .command-grid { grid-template-columns: 1fr; }
  .orb-label-left { left: -3px; }
  .orb-label-right { right: -3px; }
}
