:root {
  color-scheme: light;
  --ink: #1e2926;
  --muted: #737e78;
  --quiet: #a0a9a3;
  --line: #e8ebe7;
  --canvas: #f7f8f6;
  --card: #fff;
  --green: #176c55;
  --green-dark: #125a46;
  --green-soft: #edf6f1;
  --green-pale: #f4f8f5;
  --gold: #b28a51;
  --danger: #b54945;
  --shadow: 0 8px 24px rgba(31, 49, 40, .035), 0 1px 3px rgba(31, 49, 40, .035);
  font-family: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 242px; background: #fbfcfa; border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 25px 16px 15px; z-index: 2; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 35px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #1d5d49; color: #fff; box-shadow: 0 4px 10px rgba(24, 81, 60, .18); }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; font: 800 17px/1.1 'Avenir Next', Avenir, sans-serif; letter-spacing: -.8px; }
.brand small { display: block; margin-top: 4px; color: #7e8881; font-size: 10px; letter-spacing: .055em; }
.workspace-label { color: #98a09b; font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 0 12px 10px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #68726c; text-align: left; text-decoration: none; font-size: 12px; font-weight: 500; transition: background .16s ease, color .16s ease; cursor: pointer; }
.nav-item svg { width: 17px; height: 17px; color: #89938d; }
.nav-item:hover { background: #f1f4f1; color: var(--ink); }
.nav-item.active { background: #eaf2ed; color: #285e4d; font-weight: 600; }
.nav-item.active svg { color: #3f715f; }
.sidebar-bottom { margin-top: auto; }
.privacy-card { display: flex; gap: 10px; padding: 13px 11px; margin: 0 2px 14px; border: 1px solid #e7eee9; border-radius: 9px; background: #f5f9f6; }
.privacy-icon { flex: none; width: 18px; height: 18px; color: #43836d; }
.privacy-icon svg { width: 100%; height: 100%; }
.privacy-card strong { color: #3e5d4f; font-size: 10px; font-weight: 700; }
.privacy-card p { margin: 4px 0 0; color: #77847c; font-size: 9px; line-height: 1.5; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 8px; border: 0; border-top: 1px solid #ebeeeb; background: transparent; text-align: left; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d8e4db; border-radius: 50%; background: #e7f0e9; color: #3f7158; font: 700 11px 'Avenir Next', Avenir, sans-serif; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { color: #4a554f; font-size: 10px; font-weight: 600; }
.profile-copy small { color: #9ba39e; font-size: 9px; margin-top: 3px; }
.more-icon { width: 18px; height: 18px; color: #9aa29d; }
.main-area { margin-left: 242px; min-height: 100vh; }
.topbar { height: 62px; padding: 0 clamp(28px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eaede9; background: rgba(255,255,255,.68); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #929b95; font-size: 11px; }
.breadcrumb strong { color: #46534c; font-weight: 600; }
.crumb-slash { color: #c4cbc5; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.secure-pill { display: flex; align-items: center; gap: 7px; color: #76817a; font-size: 10px; }
.secure-pill span { width: 6px; height: 6px; border-radius: 50%; background: #69a386; box-shadow: 0 0 0 3px #edf5ef; }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; padding: 5px; border: 1px solid #e9ece8; border-radius: 7px; background: #fff; color: #68736c; cursor: pointer; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { border-color: #cdd8d0; background: #f9fbf9; }
.content-wrap { width: min(1200px, 100%); margin: 0 auto; padding: 40px clamp(28px, 4vw, 64px) 20px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { display: flex; gap: 8px; align-items: center; color: #708077; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #6caa87; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 10px 0 6px; color: #23322b; font: 700 clamp(23px, 2.2vw, 29px)/1.2 'Avenir Next', Avenir, sans-serif; letter-spacing: -.9px; }
.page-heading p { margin: 0; color: #7b857f; font-size: 12px; }
.date-chip { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; padding: 8px 11px; border: 1px solid #e6ebe7; border-radius: 20px; background: #fff; color: #748078; font-size: 10px; white-space: nowrap; }
.date-dot { width: 6px; height: 6px; border-radius: 50%; background: #6aa98b; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(390px, 1.06fr); gap: 20px; align-items: start; }
.left-column { min-width: 0; }
.card { border: 1px solid #e7ebe7; border-radius: 11px; background: var(--card); box-shadow: var(--shadow); }
.bond-card { padding: 22px 22px 18px; }
.card-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.section-kicker { color: #aab2ac; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.section-kicker span { margin-left: 7px; color: #718078; }
.card-heading h2 { margin: 10px 0 4px; font: 650 17px/1.2 'Avenir Next', Avenir, sans-serif; letter-spacing: -.35px; color: #2c3932; }
.card-heading p { margin: 0; color: #818b85; font-size: 10.5px; line-height: 1.55; }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid #e6eee8; border-radius: 9px; background: #f4f8f5; color: #5d8b70; }
.card-icon svg { width: 22px; height: 22px; }
.cusip-form { margin-top: 22px; }
.cusip-form label, .key-label { display: block; color: #4a5650; font-size: 10px; font-weight: 600; margin-bottom: 7px; }
.input-row { display: flex; gap: 8px; }
.text-input-wrap { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 12px; border: 1px solid #dce3de; border-radius: 7px; background: #fff; transition: border .15s ease, box-shadow .15s ease; }
.text-input-wrap:focus-within { border-color: #7aa58b; box-shadow: 0 0 0 3px rgba(48, 116, 83, .08); }
.text-input-wrap svg { flex: none; width: 16px; height: 16px; color: #9aa49d; }
.text-input-wrap input { width: 100%; min-width: 0; height: 39px; outline: 0; border: 0; color: #293830; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .035em; }
.text-input-wrap input::placeholder { color: #b3bbb5; letter-spacing: 0; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 7px; font-size: 10.5px; font-weight: 600; cursor: pointer; transition: background .16s ease, transform .16s ease, border-color .16s ease; }
.primary-button { padding: 0 14px; min-height: 39px; border: 1px solid #1b644d; background: #1b644d; color: #fff; box-shadow: 0 2px 5px rgba(24, 93, 70, .12); white-space: nowrap; }
.primary-button span { font-size: 15px; font-weight: 400; line-height: 1; }
.primary-button:hover { background: #14553f; border-color: #14553f; transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-meta { display: flex; gap: 10px; justify-content: space-between; margin-top: 7px; color: #9aa29c; font-size: 9px; min-height: 12px; }
.error-text { color: var(--danger); text-align: right; }
.or-divider { display: flex; align-items: center; gap: 11px; margin: 21px 0 12px; }
.or-divider span { flex: 1; height: 1px; background: #edf0ed; }
.or-divider small { color: #a3aba5; font-size: 8px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.upload-zone { display: flex; align-items: center; gap: 11px; position: relative; min-height: 63px; padding: 11px 12px; border: 1px dashed #d9e1db; border-radius: 8px; background: #fcfdfc; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.upload-zone:hover, .upload-zone.dragover { border-color: #77a38a; background: #f6faf7; }
.upload-zone:focus-visible { outline: 3px solid rgba(48, 116, 83, .2); outline-offset: 2px; }
.upload-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: #eef5ef; color: #62866f; }
.upload-icon svg { width: 18px; height: 18px; }
.upload-copy { min-width: 0; flex: 1; }
.upload-copy strong, .upload-copy small { display: block; }
.upload-copy strong { color: #5a675f; font-size: 10px; font-weight: 600; }
.upload-copy em { color: #267456; font-style: normal; }
.upload-copy small { margin-top: 4px; color: #a1aaa4; font-size: 8.5px; }
.upload-arrow { align-self: flex-start; color: #a0aaa2; font-size: 12px; }
.file-status { min-height: 0; color: #77837c; font-size: 9px; }
.file-status:not(:empty) { padding: 7px 1px 0; }
.bond-result { margin-top: 15px; padding: 12px; border: 1px solid #dcebe0; border-radius: 8px; background: #f6faf7; }
.result-line { display: flex; align-items: center; gap: 9px; }
.result-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e1f1e6; color: #297450; font-size: 12px; font-weight: 700; }
.result-line div { flex: 1; min-width: 0; }
.result-line strong, .result-line small { display: block; }
.result-line strong { color: #315240; font: 700 12px 'Avenir Next', Avenir, sans-serif; letter-spacing: .06em; }
.result-line small { margin-top: 3px; color: #778b7e; font-size: 9px; }
.clear-button { width: 25px; height: 25px; border: 0; border-radius: 6px; background: transparent; color: #87958a; font-size: 19px; cursor: pointer; }
.clear-button:hover { background: #eaf2eb; color: #44594b; }
.result-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #e5eee7; color: #859188; font-size: 9px; line-height: 1.5; }
.note-card { display: flex; gap: 9px; margin: 12px 0 25px; padding: 12px 13px; border: 1px solid #eee9df; border-radius: 8px; background: #fcfaf6; }
.note-mark { display: grid; flex: none; place-items: center; width: 15px; height: 15px; margin-top: 1px; border: 1px solid #c7a674; border-radius: 50%; color: #9d7845; font: 600 9px Georgia, serif; }
.note-card p { margin: 0; color: #857d6f; font-size: 9px; line-height: 1.6; }
.note-card strong { color: #6d6250; font-weight: 600; }
.suggestion-title { display: flex; align-items: center; gap: 9px; margin: 0 0 10px 2px; color: #707d74; font-size: 9px; }
.suggestion-title .section-kicker { font-size: 8px; }
.prompt-list { display: flex; flex-wrap: wrap; gap: 7px; }
.prompt-chip { padding: 7px 9px; border: 1px solid #e3e9e4; border-radius: 5px; background: #fcfdfc; color: #68766d; font-size: 9px; cursor: pointer; transition: border .15s ease, color .15s ease, background .15s ease; }
.prompt-chip:hover { border-color: #b7cfbf; background: #f4f8f5; color: #28634b; }
.chat-card { display: flex; flex-direction: column; min-height: 583px; overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 17px; border-bottom: 1px solid #edf0ed; }
.assistant-identity { display: flex; align-items: center; gap: 10px; }
.assistant-avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e2ebe4; border-radius: 10px; background: #f0f6f1; color: #428060; }
.assistant-avatar svg { width: 23px; height: 23px; }
.assistant-identity strong { display: block; color: #34433a; font: 650 12px 'Avenir Next', Avenir, sans-serif; }
.assistant-identity small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #8e9991; font-size: 9px; }
.status-indicator { width: 5px; height: 5px; border-radius: 50%; background: #c2c8c3; }
.status-indicator.connected { background: #58a078; box-shadow: 0 0 0 3px #eaf4ed; }
.chat-header-actions { display: flex; align-items: center; gap: 5px; }
.chatgpt-handoff { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 0 9px; border: 1px solid #dce8df; border-radius: 6px; background: #f6faf7; color: #397354; font-size: 9px; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chatgpt-handoff:hover { border-color: #b7cfbf; background: #edf5ef; }
.chat-menu-button { width: 29px; height: 29px; border: 0; border-radius: 6px; background: transparent; color: #8e9992; font-size: 14px; letter-spacing: .1em; cursor: pointer; }
.chat-menu-button:hover { background: #f5f7f5; }
.chat-context { display: flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 18px; border-bottom: 1px solid #f0f2f0; background: #fdfefd; color: #89958c; font-size: 9px; }
.context-dot { width: 5px; height: 5px; border-radius: 50%; background: #c1c9c3; }
.context-dot.active { background: #6aa181; }
.chat-context button { margin-left: auto; padding: 2px 0; border: 0; background: transparent; color: #54816b; font-size: 9px; cursor: pointer; }
.chat-context button:hover { color: #235d43; text-decoration: underline; }
.chat-messages { flex: 1; min-height: 345px; max-height: 420px; overflow-y: auto; padding: 24px 19px 19px; scroll-behavior: smooth; }
.welcome-message { max-width: 300px; margin: 34px auto 10px; text-align: center; }
.welcome-spark { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 13px; border: 1px solid #e5ede7; border-radius: 12px; background: #f4f8f5; color: #4a8a68; font-size: 23px; }
.welcome-message h3 { margin: 0 0 7px; color: #35443b; font: 650 15px/1.35 'Avenir Next', Avenir, sans-serif; letter-spacing: -.35px; }
.welcome-message p { margin: 0; color: #849088; font-size: 10px; line-height: 1.65; }
.welcome-hint { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #b0b8b2; font-size: 7px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.hint-line { flex: 1; height: 1px; background: #edf0ed; }
.message { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 15px; animation: appear .2s ease both; }
.message.user { flex-direction: row-reverse; }
.message-avatar { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border: 1px solid #e6ece7; border-radius: 7px; background: #f0f6f1; color: #4e8165; }
.message-avatar svg { width: 16px; height: 16px; }
.message.user .message-avatar { border-color: #dbe7df; background: #e7f0e9; color: #547765; font: 700 8px 'Avenir Next', Avenir, sans-serif; }
.message-body { max-width: min(85%, 420px); padding: 9px 11px; border: 1px solid #e9eeea; border-radius: 3px 10px 10px 10px; background: #fcfdfc; color: #49574e; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .message-body { border-color: #deebe1; border-radius: 10px 3px 10px 10px; background: #f0f6f1; color: #3e5847; }
.message.error .message-body { border-color: #f0dfdc; background: #fdf7f6; color: #935954; }
.message.typing .message-body { display: flex; align-items: center; gap: 4px; min-width: 46px; padding: 13px; }
.typing span { width: 4px; height: 4px; border-radius: 50%; background: #829188; animation: pulse 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .13s; }
.typing span:nth-child(3) { animation-delay: .26s; }
.chat-composer { margin: 0 13px 0; padding: 8px 10px 7px; border: 1px solid #dfe6e0; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(30, 53, 39, .03); transition: border .15s ease, box-shadow .15s ease; }
.chat-composer:focus-within { border-color: #adc9b6; box-shadow: 0 0 0 3px rgba(54, 126, 85, .055); }
.chat-composer textarea { display: block; width: 100%; min-height: 44px; max-height: 120px; resize: vertical; border: 0; outline: 0; background: transparent; color: #3e4c43; font-size: 10px; line-height: 1.5; padding: 4px 2px; }
.chat-composer textarea::placeholder { color: #acb5ae; }
.chat-composer textarea:disabled { cursor: not-allowed; }
.composer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 3px; }
.composer-help { display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; border: 0; background: transparent; color: #a1aaa3; font-size: 8px; cursor: pointer; }
.composer-help:hover { color: #527662; }
.composer-help svg { width: 14px; height: 14px; }
.composer-actions { display: flex; align-items: center; gap: 9px; }
.char-count { color: #b0b8b2; font-size: 8px; }
.send-button { display: grid; place-items: center; width: 27px; height: 27px; padding: 5px; border: 0; border-radius: 7px; background: #1b644d; color: #fff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.send-button svg { width: 17px; height: 17px; }
.send-button:hover:not(:disabled) { background: #14553f; transform: translateY(-1px); }
.send-button:disabled { background: #e1e8e2; color: #a5b1a7; cursor: not-allowed; }
.chat-footer { padding: 10px 12px 11px; color: #a8b0aa; text-align: center; font-size: 8px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 29px; padding: 13px 2px; border-top: 1px solid #eaede9; color: #a2aaa4; font-size: 9px; }
.page-footer a { color: #7c8d81; text-decoration: none; }
.page-footer a:hover { color: #376c50; text-decoration: underline; }
.footer-dot { padding: 0 6px; color: #c4cac5; }
.settings-dialog { width: min(420px, calc(100vw - 28px)); padding: 27px 27px 22px; border: 1px solid #e3e9e4; border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(23, 44, 32, .18); }
.settings-dialog::backdrop { background: rgba(23, 39, 30, .3); backdrop-filter: blur(2px); }
.dialog-close-form { position: absolute; top: 13px; right: 13px; }
.dialog-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #8f9991; font-size: 21px; cursor: pointer; }
.dialog-close:hover { background: #f3f6f3; }
.dialog-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 15px; border: 1px solid #e1ebe3; border-radius: 11px; background: #f2f7f3; color: #4d8264; }
.dialog-icon svg { width: 23px; height: 23px; }
.dialog-eyebrow { color: #8b998f; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.settings-dialog h2 { margin: 7px 0 7px; color: #2b3931; font: 700 20px 'Avenir Next', Avenir, sans-serif; letter-spacing: -.6px; }
.dialog-intro { margin: 0 0 19px; color: #78847c; font-size: 10px; line-height: 1.6; }
.key-input-wrap { display: flex; border: 1px solid #dfe5e0; border-radius: 7px; background: #fff; transition: border .15s ease, box-shadow .15s ease; }
.key-input-wrap:focus-within { border-color: #7aa58b; box-shadow: 0 0 0 3px rgba(48, 116, 83, .08); }
.key-input-wrap input { flex: 1; min-width: 0; height: 39px; padding: 0 11px; border: 0; outline: 0; border-radius: 7px; color: #3a4940; background: transparent; font-size: 11px; }
.key-input-wrap input::placeholder { color: #b2bbb4; }
.key-input-wrap button { padding: 0 11px; border: 0; background: transparent; color: #648270; font-size: 9px; font-weight: 600; cursor: pointer; }
.key-privacy { margin: 8px 0 0; color: #98a29a; font-size: 8.5px; line-height: 1.6; }
.dialog-error { min-height: 12px; padding-top: 6px; color: var(--danger); font-size: 9px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.secondary-button { min-height: 36px; padding: 0 12px; border: 1px solid #e2e8e3; background: #fff; color: #6d7870; }
.secondary-button:hover { background: #f8faf8; border-color: #cfdad1; }
.save-key-button { min-height: 36px; padding: 0 12px; }
.remove-key-button { margin-right: auto; padding: 6px 2px; border: 0; background: transparent; color: #a25e58; font-size: 9px; cursor: pointer; }
.remove-key-button:hover { color: #823b36; text-decoration: underline; }
.dialog-footnote { margin-top: 16px; padding-top: 12px; border-top: 1px solid #edf0ed; color: #9ba49d; font-size: 8.5px; }
.dialog-footnote a { color: #46765b; text-decoration: none; }
.dialog-footnote a:hover { text-decoration: underline; }
.toast { position: fixed; bottom: 20px; left: 50%; z-index: 6; transform: translate(-50%, 12px); padding: 9px 13px; border: 1px solid #dce8de; border-radius: 7px; background: #fff; color: #506156; box-shadow: 0 6px 22px rgba(26, 47, 32, .1); font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

@media (max-width: 1120px) {
  .sidebar { width: 210px; }
  .main-area { margin-left: 210px; }
  .content-wrap { padding-left: 28px; padding-right: 28px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr); gap: 15px; }
  .bond-card { padding: 18px; }
  .input-row { flex-wrap: wrap; }
  .primary-button { min-height: 37px; }
}
@media (max-width: 850px) {
  .sidebar { width: 62px; padding: 19px 8px 10px; align-items: center; }
  .brand { padding: 0 0 30px; }
  .brand > span:last-child, .workspace-label, .nav-item:not(.active), .nav-item.active { font-size: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .main-nav { width: 100%; }
  .nav-item { justify-content: center; width: 44px; height: 41px; padding: 0; margin: auto; }
  .nav-item svg { width: 18px; height: 18px; }
  .privacy-card, .profile-copy, .more-icon { display: none; }
  .profile-button { justify-content: center; padding: 9px 0; }
  .main-area { margin-left: 62px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-card { min-height: 520px; }
}
@media (max-width: 560px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .topbar { height: 54px; padding: 0 16px; }
  .topbar-right { gap: 10px; }
  .secure-pill { font-size: 9px; }
  .content-wrap { padding: 27px 15px 16px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading p { max-width: 270px; line-height: 1.5; }
  .date-chip { display: none; }
  .workspace-grid { gap: 15px; }
  .bond-card { padding: 17px 15px; }
  .input-row { flex-wrap: nowrap; }
  .input-row .primary-button { padding: 0 10px; font-size: 9px; }
  .card-heading h2 { font-size: 16px; }
  .chat-card { min-height: 500px; }
  .chat-messages { min-height: 300px; }
  .note-card { margin-bottom: 19px; }
  .page-footer { flex-direction: column; margin-top: 23px; }
  .settings-dialog { padding: 23px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
