:root {
  color-scheme: dark;
  --bg: #080c12;
  --surface: #101720;
  --surface-2: #151e29;
  --surface-3: #1b2734;
  --line: rgba(185, 211, 231, .12);
  --line-strong: rgba(185, 211, 231, .22);
  --text: #e8f1f8;
  --muted: #8a9bab;
  --faint: #5d6c7b;
  --cyan: #73d8e7;
  --cyan-strong: #39bfd5;
  --green: #74d5aa;
  --amber: #edc477;
  --red: #e48d91;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.workspace-grid.app-grid { height: 100dvh; min-height: 0; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
.workspace-grid .sidebar { height: 100dvh; min-height: 0; overflow: auto; }
.workspace-grid .main-column { height: 100dvh; min-width: 0; max-width: 1250px; padding: 22px 30px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; }
.workspace-grid .topbar { flex-shrink: 0; margin-bottom: 20px; }
.workspace-page { min-height: 0; flex: 1; overflow: auto; padding-bottom: 10px; scrollbar-width: thin; }
.dialog-page { display: flex; flex-direction: column; overflow: hidden; gap: 12px; }
.dialog-page .jarvis-center { margin: 0; padding: 10px; }
.dialog-page .jarvis-core { width: 140px; margin: 6px auto; }
.dialog-page .jarvis-center > h2 { font-size: 15px; }
.dialog-page .hud-state { margin: 5px 0; }
.dialog-page .hud-nucleus span { font-size: 30px; }
.dialog-page .chat-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 16px; }
.dialog-page .messages { flex: 1; min-height: 70px; max-height: none; overflow: auto; margin: 8px 0; }
.dialog-page .chat-empty { padding: 10px; }
.dialog-page .chat-empty h2 { font-size: 17px; }
.dialog-page .orb-small { display: none; }
.dialog-page .chat-empty p { font-size: 12px; }
.dialog-page .section-head { margin-bottom: 8px; }
.dialog-page .composer, .dialog-page #elevenlabs-panel, .dialog-page .composer-note { flex-shrink: 0; }
.dialog-page #elevenlabs-panel { max-height: 45%; overflow: auto; }
.mobile-nav { display: none; }
.connection-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.connection-tabs .active, .mobile-nav .active { color: var(--cyan); border-color: var(--cyan); background: rgba(115,216,231,.09); }
[data-connection-view="ai"] .jarvis-controls { margin-bottom: 18px; }
.business-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.business-notice { color: var(--cyan); font-size: 13px; line-height: 1.6; margin: 14px 0; overflow-wrap: anywhere; }
.business-list { margin-top: 18px; }
.business-item { border-top: 1px solid var(--line); padding: 18px 0; overflow-wrap: anywhere; }
.business-item p { margin: 8px 0; font-size: 13px; line-height: 1.6; }
.business-item h3 { font-size: 14px; }
.business-item .section-head { align-items: flex-start; gap: 12px; }
.business-item small { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.business-item.unread h3 { color: var(--cyan); }
.business-empty { text-align: center; padding: 35px 15px; }
.business-empty > span { color: var(--cyan); font-size: 35px; }
.business-empty h3, .business-empty p { margin: 14px 0; }
.device-login { padding: 18px; border: 1px solid var(--cyan); border-radius: 10px; display: grid; gap: 12px; }
.device-login strong { font-size: 24px; letter-spacing: .15em; }
.device-login p { font-size: 12px; color: var(--muted); }
.agenda-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.agenda-status-grid > div { border: 1px solid var(--line); padding: 12px; border-radius: 8px; display: grid; gap: 8px; }
.agenda-status-grid small { color: var(--muted); }.agenda-status-grid strong { font-size: 13px; }
.export-picker { display: grid; gap: 10px; margin: 20px 0; font-size: 13px; }
.export-picker input { max-width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.workspace-page details { margin-top: 20px; }.workspace-page summary { cursor: pointer; font-size: 13px; color: var(--cyan); }.workspace-page details p { margin: 15px 0; }
.jarvis-center { position: relative; margin-bottom: 24px; padding: 22px; border: 1px solid rgba(115,216,231,.18); border-radius: 22px; background: radial-gradient(ellipse at 50% 35%, rgba(33,159,187,.12), transparent 65%), #0b121b; text-align: center; overflow: hidden; }
.hud-decoration { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; letter-spacing: .15em; }
.jarvis-core { width: min(300px, 70vw); aspect-ratio: 1; margin: 25px auto 15px; position: relative; display: grid; place-items: center; }
.hud-ring { position: absolute; border-radius: 50%; inset: 0; }
.hud-ring-outer { border: 2px dashed rgba(115,216,231,.4); box-shadow: 0 0 35px rgba(57,191,213,.12), inset 0 0 22px rgba(57,191,213,.12); animation: hud-rotate 40s linear infinite; }
.hud-ring-mid { inset: 12%; border: 8px solid transparent; border-top-color: var(--cyan); border-bottom-color: rgba(115,216,231,.35); animation: hud-rotate 15s linear reverse infinite; filter: drop-shadow(0 0 6px #39bfd5); }
.hud-ring-inner { inset: 22%; border: 1px solid rgba(115,216,231,.5); outline: 1px dashed rgba(115,216,231,.2); outline-offset: 8px; }
.hud-cross { position: absolute; inset: -10%; background: linear-gradient(transparent 49.85%, rgba(115,216,231,.15) 50%, transparent 50.15%), linear-gradient(90deg, transparent 49.85%, rgba(115,216,231,.15) 50%, transparent 50.15%); }
.hud-nucleus { width: 45%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #4bdfef 0%, #158caa 35%, #102836 70%); box-shadow: 0 0 35px rgba(82,218,235,.3); animation: hud-breathe 5s ease-in-out infinite; }
.hud-nucleus span { font-size: 46px; font-weight: 200; color: #c7f9ff; text-shadow: 0 0 15px #fff; }
.jarvis-center > h2 { letter-spacing: .35em; font-size: 23px; font-weight: 300; padding-left: .35em; }
.hud-state { color: var(--cyan); margin: 10px 0 20px; font-size: 12px; letter-spacing: .1em; }
.hud-wave { position: absolute; bottom: 13%; display: flex; gap: 4px; align-items: center; height: 27px; }
.hud-wave i { width: 3px; height: 7px; background: var(--cyan); border-radius: 3px; }
.jarvis-center[data-state="speaking"] .hud-wave i, .jarvis-center[data-state="listening"] .hud-wave i { animation: hud-wave .65s ease-in-out infinite alternate; }
.hud-wave i:nth-child(2n) { animation-delay: -.25s !important; }.hud-wave i:nth-child(3n) { animation-delay: -.4s !important; }
.jarvis-center[data-state="thinking"] .hud-ring-mid { animation-duration: 3s; border-top-color: var(--amber); }
.jarvis-center[data-state="speaking"] .hud-nucleus, .jarvis-center[data-state="listening"] .hud-nucleus { animation-duration: 1.3s; }
.jarvis-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.jarvis-control { min-width: 0; border: 1px solid var(--line); background: rgba(7,14,22,.65); padding: 16px; border-radius: 13px; }
.jarvis-control-notice { font-size: 11px; line-height: 1.6; margin-top: 10px; color: var(--cyan); overflow-wrap: anywhere; }
.chatgpt-login-link { display: inline-block; color: var(--cyan); font-size: 12px; margin-top: 14px; }
.voice-choice { display: grid; gap: 7px; font-size: 11px; margin: 15px 0; }.voice-choice select { width: 100%; min-width: 0; padding: 9px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 7px; }
.voice-preview { width: 100%; height: 34px; margin-bottom: 12px; }
@keyframes hud-rotate { to { transform: rotate(360deg); } } @keyframes hud-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(82,218,235,.5); } } @keyframes hud-wave { to { height: 25px; } }
@media (max-width: 650px) { .jarvis-controls { grid-template-columns: 1fr; }.jarvis-center { padding: 18px 12px; }.hud-decoration { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { .jarvis-center *, .jarvis-center[data-state] * { animation: none !important; } }

.agent-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent-toolbar label { color: var(--muted); font-size: 12px; }
.agent-toolbar select, .agent-settings input { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px; min-width: 0; }
.agent-status { color: var(--cyan); font-size: 12px; line-height: 1.6; }
.agent-note { font-size: 11px; line-height: 1.6; }
.agent-settings { display: grid; gap: 12px; border: 1px solid var(--line-strong); padding: 16px; border-radius: 12px; margin-bottom: 12px; }
.agent-settings h3, .agent-settings p { margin: 0; }
.agent-settings label { display: grid; gap: 6px; font-size: 12px; }
.agent-transcript { max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line); padding: 12px 0; }
.agent-transcript .message { margin-bottom: 10px; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#elevenlabs-panel { margin-bottom: 16px; }
.agent-tool-results, .agent-drafts { border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; line-height: 1.5; }
.agent-drafts details { border: 1px solid var(--line); padding: 10px; border-radius: 8px; margin: 8px 0; }
.agent-drafts summary { cursor: pointer; color: var(--cyan); }
.agent-drafts dt { color: var(--muted); margin-top: 8px; }
.agent-drafts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.access-form { display: grid; gap: 12px; max-width: 380px; margin: 20px auto; }
.access-form input { padding: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 55% -10%, #1b3542 0, transparent 32rem), var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-grid { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(520px, 1fr) 280px; }
.sidebar { padding: 28px 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(9, 14, 20, .68); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 30px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(115, 216, 231, .55); color: var(--cyan); display: grid; place-items: center; border-radius: 11px; box-shadow: 0 0 22px rgba(57, 191, 213, .16); }
.brand strong { display: block; letter-spacing: .17em; font-size: 13px; }
.brand small, .connection-card small, .mini-status small, .provider-row small, .task-row small, .activity-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.connection-card { border: 1px solid var(--line); background: rgba(115, 216, 231, .05); border-radius: 13px; padding: 12px; display: flex; align-items: center; gap: 9px; margin-bottom: 25px; }
.connection-card strong, .mini-status strong { font-size: 12px; font-weight: 600; }
.live-dot, .live-label i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); display: inline-block; }
.connection-pulse { margin-left: auto; width: 30px; height: 8px; border-top: 1px solid var(--cyan); border-bottom: 1px solid rgba(115, 216, 231, .2); transform: skewX(-30deg); }
.nav { display: grid; gap: 4px; }
.nav-item { border: 0; background: transparent; text-align: left; color: var(--muted); padding: 11px 10px; border-radius: 9px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.nav-item span { width: 18px; color: var(--faint); text-align: center; }
.nav-item b { margin-left: auto; font-size: 10px; color: var(--cyan); }
.nav-item:hover, .nav-item.active { background: rgba(115, 216, 231, .09); color: var(--text); }
.nav-item.active span { color: var(--cyan); }
.sidebar-bottom { margin-top: auto; }
.mini-status { padding: 13px 10px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }
.status-orb { color: var(--cyan); font-size: 19px; }
.sidebar-bottom > p { color: var(--faint); font-size: 10px; margin: 18px 10px 0; }
.main-column { padding: 30px clamp(24px, 4vw, 62px) 60px; max-width: 930px; width: 100%; margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.cyan { color: var(--cyan); }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; font-weight: 500; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 13px; font-weight: 600; }
.topbar p { color: var(--muted); margin-top: 5px; font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.date-pill, .local-chip, .count-pill, .secure-label { border: 1px solid var(--line); color: var(--muted); padding: 7px 10px; border-radius: 99px; font-size: 10px; }
.icon-button { background: var(--surface); border: 1px solid var(--line); width: 31px; height: 31px; border-radius: 8px; color: var(--muted); }
.icon-button:hover, .text-button:hover { color: var(--cyan); border-color: var(--line-strong); }
.hero-card { position: relative; overflow: hidden; display: flex; justify-content: space-between; min-height: 185px; padding: 27px 30px; border: 1px solid rgba(115, 216, 231, .22); border-radius: 17px; background: linear-gradient(120deg, rgba(38, 85, 96, .44), rgba(16, 23, 32, .8) 54%, rgba(13, 20, 29, .95)); box-shadow: 0 18px 50px rgba(0, 0, 0, .19); margin-bottom: 24px; }
.hero-card:after { content: ''; position: absolute; width: 330px; height: 330px; right: -120px; top: -120px; border: 1px solid rgba(115, 216, 231, .1); border-radius: 50%; }
.hero-card h2 { margin: 9px 0 8px; font-size: 23px; }
.hero-card p { color: #b7c8d4; max-width: 510px; line-height: 1.55; font-size: 12px; }
.hero-meta { display: flex; gap: 16px; color: var(--cyan); font-size: 10px; margin-top: 20px; }
.hero-orb { position: relative; width: 130px; min-width: 130px; display: grid; place-items: center; }
.orb-ring { position: absolute; border: 1px solid rgba(115, 216, 231, .22); border-radius: 50%; transform: rotate(30deg) skewX(-18deg); }
.ring-one { width: 106px; height: 78px; }
.ring-two { width: 77px; height: 113px; transform: rotate(-33deg) skewX(-15deg); border-color: rgba(116, 213, 170, .24); }
.orb-core { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 50%; background: rgba(115, 216, 231, .11); box-shadow: 0 0 35px rgba(57, 191, 213, .35); z-index: 1; }
.chat-panel, .panel { border: 1px solid var(--line); background: rgba(16, 23, 32, .72); border-radius: 15px; padding: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.section-head h2 { margin-top: 6px; }
.local-chip { color: var(--green); border-color: rgba(116, 213, 170, .24); }
.messages { min-height: 100px; max-height: 390px; overflow-y: auto; padding-right: 3px; }
.message { padding: 13px 15px; border-radius: 12px; margin-bottom: 9px; max-width: 87%; background: var(--surface-2); border: 1px solid var(--line); }
.message.user { margin-left: auto; background: rgba(57, 145, 160, .16); border-color: rgba(115, 216, 231, .15); }
.message-meta { display: flex; gap: 9px; align-items: center; color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .02em; margin-bottom: 7px; }
.message-meta time { color: var(--faint); font-weight: 400; }
.mode-label { color: var(--green); border: 1px solid rgba(116, 213, 170, .24); border-radius: 99px; padding: 2px 6px; font-size: 9px; }
.message p { line-height: 1.55; font-size: 13px; color: #d0dce4; white-space: pre-wrap; }
.speak-button { margin-top: 10px; border: 0; background: transparent; color: var(--muted); font-size: 10px; padding: 0; }
.speak-button:hover { color: var(--cyan); }
.empty-state { text-align: center; padding: 15px 20px 18px; }
.orb-small { width: 35px; height: 35px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--cyan); border: 1px solid rgba(115, 216, 231, .5); }
.empty-state h2 { font-size: 15px; }
.empty-state p { color: var(--muted); line-height: 1.5; font-size: 12px; max-width: 480px; margin: 8px auto 14px; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.suggestions button { border: 1px solid var(--line); background: transparent; border-radius: 99px; color: var(--muted); padding: 7px 10px; font-size: 10px; }
.suggestions button:hover { border-color: var(--cyan); color: var(--cyan); }
.composer { display: flex; align-items: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 15px; }
.composer textarea { resize: none; flex: 1; min-height: 38px; max-height: 110px; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 13px; padding: 10px 4px; }
.composer textarea::placeholder { color: var(--faint); }
.mic-button, .send-button { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-3); color: var(--muted); }
.mic-button:hover, .mic-button.listening { color: var(--cyan); border-color: var(--cyan); }
.send-button { background: var(--cyan-strong); border-color: var(--cyan-strong); color: #061116; font-size: 19px; }
.composer-note { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; padding: 7px 2px 0; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.count-pill { color: var(--cyan); }
.task-list, .activity-list { list-style: none; padding: 0; margin: 0; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row strong { font-size: 12px; font-weight: 500; }
.task-row.done strong { text-decoration: line-through; color: var(--muted); }
.task-check { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-strong); background: transparent; color: var(--green); padding: 0; }
.task-check:hover { border-color: var(--green); }
.inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 14px; }
.inline-form input, .inline-form select { min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 9px; font-size: 11px; outline: none; }
.inline-form input:focus { border-color: var(--cyan); }
.button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: 11px; background: transparent; }
.button.primary { background: var(--cyan-strong); border-color: var(--cyan-strong); color: #061116; font-weight: 700; }
.button.subtle { color: var(--muted); }
.button:hover { filter: brightness(1.12); }
.text-button { background: transparent; border: 0; color: var(--muted); font-size: 10px; }
.provider-list { display: grid; gap: 2px; }
.provider-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.provider-row:last-child { border-bottom: 0; }
.provider-row > span { font-size: 11px; }
.provider-row small { max-width: 165px; line-height: 1.35; }
.badge { white-space: nowrap; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.badge-configured, .badge-connected { color: var(--green); }.badge-configured i, .badge-connected i { background: var(--green); }.badge-unknown, .badge-blocked { color: var(--amber); }.badge-unknown i, .badge-blocked i { background: var(--amber); }
.approval-panel { margin-top: 14px; }
.secure-label { color: var(--green); border-color: rgba(116, 213, 170, .24); }
.approval { display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid rgba(237, 196, 119, .23); background: rgba(237, 196, 119, .06); border-radius: 10px; padding: 13px; margin-top: 9px; }
.approval h3 { margin: 4px 0; }.approval p { color: var(--muted); font-size: 11px; line-height: 1.4; }.approval .eyebrow { color: var(--amber); }
.approval-actions { display: flex; gap: 6px; flex-shrink: 0; }.status-dot { color: var(--amber); }
.right-column { border-left: 1px solid var(--line); padding: 34px 23px; background: rgba(9, 14, 20, .42); }
.right-head { display: flex; justify-content: space-between; align-items: center; }.live-label { color: var(--green); font-size: 10px; display: flex; align-items: center; gap: 6px; }
.right-column h2 { margin-top: 14px; font-size: 20px; }.right-intro { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 8px; }
.activity-list { margin-top: 28px; }.activity-list li { display: flex; gap: 9px; margin-bottom: 17px; }.activity-list strong { display: block; font-size: 11px; font-weight: 500; }.activity-list small { line-height: 1.35; max-width: 180px; }.activity-icon { font-size: 17px; line-height: 12px; color: var(--cyan); }.activity-icon.ok { color: var(--green); }.activity-icon.blocked { color: var(--amber); }
.guard-card { display: flex; gap: 10px; padding: 13px; margin-top: 35px; border: 1px solid rgba(116, 213, 170, .22); background: rgba(116, 213, 170, .05); border-radius: 11px; }.guard-icon { color: var(--green); border: 1px solid rgba(116, 213, 170, .4); border-radius: 50%; width: 21px; height: 21px; display: grid; place-items: center; font-size: 11px; }.guard-card strong { font-size: 11px; }.guard-card p { color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 5px; }
.muted { color: var(--faint); font-size: 11px; padding: 11px 0; }.fatal { min-height: 100vh; display: grid; place-content: center; gap: 14px; max-width: 460px; margin: auto; padding: 30px; }.fatal p { color: var(--muted); }
.credentials-panel { margin-bottom: 22px; scroll-margin-top: 20px; }
.credentials-panel[hidden] { display: none; }
.credentials-intro, .credentials-agenda p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.credential-select, .credential-fields label { display: grid; gap: 7px; font-size: 12px; }
.credential-select { margin: 20px 0; }
.credential-fields { display: grid; gap: 14px; margin: 16px 0; }
.credential-fields small { color: var(--muted); font-size: 10px; }
.credential-select select, .credential-fields input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 11px; font: inherit; }
.credential-fields input:focus, .credential-select select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.credential-saved { color: var(--cyan); font-size: 11px; }
.credentials-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.credentials-notice { color: var(--text); font-size: 12px; line-height: 1.5; margin-top: 14px; overflow-wrap: anywhere; }
.credentials-agenda { padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.credentials-agenda strong { display: block; font-size: 12px; margin-bottom: 6px; }
@media (max-width: 480px) { .topbar { gap: 12px; }.top-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }.top-actions [data-settings-open] { width: 100%; }.credentials-actions .button { flex: 1 1 120px; } }
@media (max-width: 1120px) { .app-grid { grid-template-columns: 210px minmax(500px, 1fr); }.right-column { display: none; } }
@media (max-width: 760px) { .app-grid { display: block; }.sidebar { display: none; }.main-column { padding: 22px 14px 40px; }.hero-card { padding: 22px; }.hero-orb { width: 88px; min-width: 88px; transform: scale(.8); }.two-column { grid-template-columns: 1fr; }.composer-note span:last-child { display: none; }.inline-form { grid-template-columns: 1fr auto; }.inline-form select { grid-column: 1; }.inline-form button { grid-column: 2; grid-row: 1; }.approval { align-items: flex-start; flex-direction: column; }.approval-actions { width: 100%; }.approval-actions button { flex: 1; } }

@media (max-width: 760px) {
  .workspace-grid.app-grid { display: block; }
  .workspace-grid .main-column { padding: 14px 12px 8px; }
  .workspace-grid .topbar { margin-bottom: 12px; gap: 8px; }
  .workspace-grid .topbar h1 { font-size: 24px; }
  .workspace-grid .topbar .eyebrow { font-size: 8px; }
  .workspace-grid .top-actions { max-width: none; flex-wrap: nowrap; gap: 8px; }
  .workspace-grid .date-pill { display: none; }
  .mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; flex-shrink: 0; scrollbar-width: thin; }
  .mobile-nav button { flex-shrink: 0; white-space: nowrap; }
  .dialog-page .hud-decoration { display: none; }
  .dialog-page .jarvis-core { width: 105px; margin: 4px auto; }
  .dialog-page .jarvis-center { padding: 5px; }
  .dialog-page .jarvis-center > h2 { font-size: 12px; }
  .dialog-page .chat-panel { padding: 12px; }
  .dialog-page .chat-empty .suggestions, .dialog-page .chat-empty p { display: none; }
  .dialog-page .section-head h2 { font-size: 16px; }
  .agenda-status-grid { grid-template-columns: 1fr; }
  .business-item .section-head { flex-direction: column; }
}
@media (max-height: 650px) {
  .dialog-page .jarvis-core { width: 75px; }
  .dialog-page .hud-decoration, .dialog-page .jarvis-center > h2 { display: none; }
  .dialog-page .chat-empty { padding: 0; }
}

.mail-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 18px 0; }
.mail-toolbar select, .mail-toolbar input { min-width: 0; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px; }
.mail-toolbar label { display: grid; gap: 8px; font-size: 12px; }
.mail-compose { display: grid; gap: 18px; }
.mail-compose label { display: grid; gap: 8px; font-size: 13px; }
.mail-compose input, .mail-compose textarea { width: 100%; padding: 12px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.mail-compose textarea { resize: vertical; min-height: 160px; }
.mail-review pre, .mail-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.7; padding: 18px; border: 1px solid var(--line); border-radius: 8px; margin: 18px 0; }
.mail-review p, .mail-detail p { margin: 10px 0; overflow-wrap: anywhere; }
.mail-compose > button { justify-self: start; }
@media (max-width: 760px) { .mail-toolbar select { width: 100%; }.mail-toolbar { align-items: stretch; }.mail-toolbar label { width: 100%; } }
