:root {
  color-scheme: light;
  --ink: #1e2927;
  --muted: #7b8580;
  --soft-muted: #a2aaa4;
  --green: #315c4c;
  --green-dark: #254b3c;
  --green-pale: #eaf1eb;
  --paper: #fbfcf9;
  --line: #e9ece6;
  --amber: #ae7128;
  --amber-pale: #faf2e5;
  --rose: #c06e61;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #a5c4a8; outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: 246px; padding: 28px 18px 16px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #edf0ea; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 33px 8px; color: var(--ink); text-decoration: none; font: 800 15px var(--font-display); letter-spacing: -.5px; white-space: nowrap; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; background: var(--green); transform: rotate(-5deg); }
.brand-mark span { width: 3px; border-radius: 4px; background: #dce9d8; }
.brand-mark span:nth-child(1) { height: 8px; }.brand-mark span:nth-child(2) { height: 13px; }.brand-mark span:nth-child(3) { height: 10px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid #edf0eb; border-radius: 9px; }
.workspace-avatar,.profile-avatar,.avatar-button { display: grid; place-items: center; flex: none; border-radius: 8px; background: #e9eee7; color: #4e715a; font-weight: 700; }
.workspace-avatar { width: 30px; height: 30px; font: 700 12px var(--font-display); }
.workspace-copy,.profile-button > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.workspace-copy strong,.profile-button strong { font-size: 11px; font-weight: 600; }.workspace-copy small,.profile-button small { color: var(--muted); font-size: 10px; }
.chevron { margin-left: auto; color: #909992; font-size: 15px; }
.nav-label { margin: 30px 0 10px 9px; color: #99a19a; font-size: 9px; font-weight: 700; letter-spacing: 1.25px; }
.primary-nav { display: grid; gap: 3px; }
.nav-item,.space-link { width: 100%; height: 37px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #68736c; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.nav-item:hover,.space-link:hover { background: #f6f8f4; color: var(--ink); }
.nav-item.active { color: var(--green-dark); background: #eef3ed; font-weight: 600; }
.nav-icon { width: 16px; font-size: 15px; text-align: center; }
.nav-count { min-width: 18px; margin-left: auto; padding: 2px 5px; color: #6b786e; border-radius: 10px; background: #edf0eb; text-align: center; font-size: 9px; }
.sidebar-divider { height: 1px; margin: 22px 2px 0; background: #eff1ed; }
.section-heading { display: flex; align-items: center; }.section-heading .nav-label { margin-top: 20px; margin-bottom: 10px; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; color: #707b74; border: 1px solid #eaede8; border-radius: 8px; background: #fff; font-size: 15px; cursor: pointer; }
.icon-button:hover { color: var(--green); background: #f4f7f2; }.icon-button.small { width: 22px; height: 22px; margin: 16px 0 5px auto; border: 0; font-size: 15px; }
.space-link { height: 32px; gap: 9px; padding-left: 12px; font-size: 11px; }
.space-dot { width: 7px; height: 7px; border-radius: 50%; }.dot-purple { background: #a293bd; }.dot-coral { background: #d59380; }.dot-blue { background: #83a4b4; }
.sidebar-bottom { margin-top: auto; }
.privacy-card { display: flex; align-items: flex-start; gap: 9px; padding: 12px 10px; border: 1px solid #e8eee7; border-radius: 9px; background: #f8faf7; }
.privacy-lock { display: grid; place-items: center; width: 21px; height: 21px; flex: none; color: var(--green); border-radius: 6px; background: #e8f0e7; font-size: 15px; }
.privacy-card strong { font-size: 10px; font-weight: 600; }.privacy-card p { margin: 4px 0 0; color: #808b83; font-size: 9px; line-height: 1.5; }
.privacy-status { width: 6px; height: 6px; margin: 5px 0 0 auto; border-radius: 50%; background: #77a478; box-shadow: 0 0 0 3px #e9f1e7; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 4px 1px; border: 0; border-top: 1px solid #eff1ed; background: transparent; text-align: left; cursor: pointer; }
.profile-avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }

.main-content { max-width: 1500px; min-height: 100vh; margin-left: 246px; padding: 0 50px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eff1ed; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #929a94; font-size: 10px; }.breadcrumb strong { color: #4c5750; font-weight: 500; }.breadcrumb-slash { color: #c3c9c2; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.local-indicator { display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: #59725c; border: 1px solid #e6ede4; border-radius: 30px; background: #f7faf6; font-size: 9px; font-weight: 600; }
.local-indicator > span { width: 6px; height: 6px; border-radius: 50%; background: #72a276; }
.avatar-button { width: 29px; height: 29px; border: 0; border-radius: 50%; font-size: 10px; cursor: pointer; }
.welcome-section { min-height: 200px; position: relative; display: flex; align-items: center; overflow: hidden; }
.welcome-copy { position: relative; z-index: 1; padding: 21px 0 24px; }
.eyebrow,.heading-kicker,.dialog-kicker { color: #718a73; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.sparkle { margin-right: 5px; font-size: 11px; }
h1,h2,p { margin-top: 0; }
h1 { margin: 12px 0 9px; font: 700 31px/1.2 var(--font-display); letter-spacing: -1.5px; }
h1 span { color: #779078; }
.welcome-copy > p { margin: 0; color: #858e87; font-size: 12px; }
.welcome-art { position: absolute; top: -49px; right: 28px; width: 285px; height: 270px; }
.art-orbit { position: absolute; left: 47px; top: 39px; width: 205px; height: 173px; border: 1px solid #e9eee5; border-radius: 50%; transform: rotate(-22deg); }
.orbit-two { left: 69px; top: 49px; width: 163px; height: 161px; transform: rotate(44deg); border-color: #eef1e9; }
.art-sun { position: absolute; top: 81px; left: 122px; width: 75px; height: 75px; display: grid; place-items: center; color: #e8f0e3; border-radius: 50%; background: #719076; box-shadow: 0 12px 32px #708f7625; }
.art-sun span { font-size: 26px; }
.art-note { position: absolute; z-index: 1; display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #edf0e8; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px #44533e0a; transform: rotate(-7deg); }
.art-note i { height: 3px; border-radius: 3px; background: #e6ebe3; }.art-note i:first-child { width: 39px; background: #b0c3aa; }.art-note i:nth-child(2) { width: 53px; }.art-note i:nth-child(3) { width: 30px; }
.note-one { top: 65px; left: 34px; }.note-two { top: 159px; right: 19px; transform: rotate(7deg); }.note-two i:first-child { width: 48px; background: #d8b17d; }.note-two i:nth-child(2) { width: 37px; }

.summary-strip { position: relative; display: flex; align-items: center; min-height: 78px; padding: 13px 23px; overflow: hidden; border: 1px solid #e8eee7; border-radius: 10px; background: linear-gradient(105deg,#f1f6ef 0%,#f8faf6 73%,#f0f5ee 100%); }
.summary-intro { display: flex; align-items: center; gap: 12px; min-width: 40%; }
.summary-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #f8fbf5; border-radius: 9px; background: #69876d; font-size: 14px; }
.summary-intro > div { display: grid; gap: 4px; }.summary-intro strong { font-size: 11px; font-weight: 600; }.summary-intro span:not(.summary-icon) { color: #829087; font-size: 9px; }
.summary-stat { display: flex; align-items: center; gap: 8px; min-width: 20%; padding-left: 18px; border-left: 1px solid #e1e9df; }
.summary-stat strong { color: #355c48; font: 700 20px var(--font-display); letter-spacing: -.7px; }.summary-stat > span { color: #7e8a80; font-size: 9px; line-height: 1.45; }
.summary-decoration { position: absolute; top: -9px; right: 17px; color: #dce8d8; font-size: 37px; }

.inbox-section { margin-top: 31px; }
.inbox-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.heading-kicker { margin-bottom: 7px; font-size: 8px; }.inbox-heading h2 { margin: 0; font: 700 20px var(--font-display); letter-spacing: -.7px; }
.inbox-heading h2 span { margin-left: 4px; color: #a0a8a0; font: 500 11px var(--font-body); letter-spacing: 0; vertical-align: 2px; }
.import-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: #fff; border: 0; border-radius: 7px; background: var(--green); font-size: 10px; font-weight: 600; cursor: pointer; transition: background .15s,transform .15s; }
.import-button:hover,.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }.import-button span { font-size: 14px; line-height: 10px; }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding-bottom: 11px; border-bottom: 1px solid #eaede8; }
.filter-tabs { display: flex; gap: 19px; }.filter-tab { position: relative; padding: 0 0 3px; color: #8a938c; border: 0; background: transparent; font-size: 10px; cursor: pointer; }.filter-tab.active { color: #385a48; font-weight: 600; }.filter-tab.active::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: #68876b; content: ""; }.filter-tab span { margin-left: 3px; color: #a2aaa3; font-size: 9px; }
.search-box { display: flex; align-items: center; gap: 7px; width: 199px; height: 30px; padding: 0 8px; color: #a4aca5; border: 1px solid #e9ece7; border-radius: 6px; background: #fff; }.search-box > span { font-size: 18px; transform: rotate(-20deg); }.search-box input { width: 100%; min-width: 0; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 9px; }.search-box input::placeholder { color: #a6ada7; }.search-box kbd { flex: none; padding: 2px 4px; color: #9ca49d; border: 1px solid #edf0ec; border-radius: 3px; background: #fafbf9; font: 8px var(--font-body); }
.conversation-layout { display: grid; grid-template-columns: minmax(230px, .82fr) minmax(380px, 1.55fr); min-height: 359px; margin-top: 13px; border: 1px solid #e9ece7; border-radius: 9px; background: #fff; }
.thread-list { border-right: 1px solid #edf0eb; }.thread-card { position: relative; display: block; width: 100%; padding: 15px 14px 13px; border: 0; border-bottom: 1px solid #eef0ec; background: #fff; text-align: left; cursor: pointer; }.thread-card:first-child { border-radius: 9px 0 0 0; }.thread-card:hover { background: #fafbf9; }.thread-card.selected { background: #f4f7f2; }.thread-card.selected::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: #739077; content: ""; }.thread-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.thread-space { display: inline-flex; align-items: center; gap: 6px; color: #879087; font-size: 8px; }.thread-space .space-dot { width: 6px; height: 6px; }.thread-age { color: #a0a7a0; font-size: 8px; }.thread-title-row { display: flex; align-items: center; gap: 6px; }.thread-title { overflow: hidden; color: #303b34; font: 600 11px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }.unread-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #729277; }.thread-preview { margin: 6px 0 10px; color: #838d85; font-size: 9px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.thread-tags { display: flex; flex-wrap: wrap; gap: 5px; }.tag { padding: 4px 6px; color: #627664; border-radius: 4px; background: #edf3eb; font-size: 8px; }.tag.deadline { color: #a66e2e; background: #faf2e6; }.tag.mention { color: #786798; background: #f1eef7; }.tag.urgent { color: #a45c50; background: #fbefec; }
.detail-panel { min-width: 0; padding: 19px 21px; }.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.detail-channel { display: flex; align-items: center; gap: 6px; color: #819087; font-size: 9px; }.detail-channel .space-dot { width: 6px; height: 6px; }.detail-title { margin: 7px 0 0; font: 700 16px var(--font-display); letter-spacing: -.45px; }.detail-meta { margin-top: 5px; color: #a0a8a1; font-size: 9px; }.detail-actions { display: flex; gap: 6px; }.detail-action { height: 27px; padding: 0 8px; color: #718077; border: 1px solid #e9ede7; border-radius: 5px; background: #fff; font-size: 9px; cursor: pointer; }.detail-action:hover { color: var(--green); background: #f7f9f6; }
.detail-summary { margin-top: 17px; padding: 12px 13px; border: 1px solid #eaf0e7; border-radius: 7px; background: #f7faf5; }.detail-summary-label,.detail-section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #6d856f; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }.detail-summary-label span { color: #7c9b78; }.detail-summary p { margin: 0; color: #56645a; font-size: 10px; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }.detail-section-title { margin-bottom: 9px; color: #727d75; }.section-count { display: grid; place-items: center; width: 15px; height: 15px; color: #718275; border-radius: 50%; background: #eff3ee; font-size: 8px; letter-spacing: 0; }.insight-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }.insight-list li { position: relative; padding-left: 12px; color: #657067; font-size: 9px; line-height: 1.5; }.insight-list li::before { position: absolute; top: 4px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #91a593; content: ""; }.insight-list.decisions li::before { background: #9a8ab6; }.insight-list.deadlines li::before { background: #d0a164; }.insight-list strong { color: #46544a; font-weight: 600; }.insight-list .mention-text { color: #796996; font-weight: 600; }
.attention-banner { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding: 9px 10px; color: #8d6a38; border: 1px solid #f1e8d8; border-radius: 6px; background: #fcf8f0; font-size: 9px; }.attention-banner > span:first-child { font-size: 12px; }.attention-banner strong { color: #795b31; font-weight: 600; }
.empty-state { grid-column: 1/-1; display: grid; place-content: center; min-height: 330px; color: #89938b; text-align: center; }.empty-state strong { margin-bottom: 6px; color: #48574c; font: 600 14px var(--font-display); }.empty-state span { font-size: 10px; }
.page-footer { display: flex; justify-content: space-between; margin: 15px 0 20px; color: #9ba39c; font-size: 8px; }.page-footer span:last-child { display: flex; align-items: center; gap: 5px; }.page-footer i { width: 5px; height: 5px; border-radius: 50%; background: #80a27f; }

.import-dialog { width: min(540px, calc(100% - 32px)); padding: 25px; border: 1px solid #e7ece5; border-radius: 12px; box-shadow: 0 22px 80px #1c30202b; }.import-dialog::backdrop { background: #20302766; backdrop-filter: blur(3px); }.dialog-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.dialog-kicker { font-size: 8px; }.dialog-topline h2 { margin: 9px 0 6px; font: 700 21px var(--font-display); letter-spacing: -.8px; }.dialog-topline p { max-width: 420px; margin: 0 0 18px; color: #7d8980; font-size: 10px; line-height: 1.65; }.close-dialog { flex: none; font-size: 20px; }.input-label { display: block; margin: 13px 0 6px; color: #536057; font-size: 10px; font-weight: 600; }.input-label span { color: #99a19a; font-weight: 400; }.title-input,.import-dialog textarea { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid #e5eae3; border-radius: 6px; background: #fcfdfb; font-size: 10px; }.title-input::placeholder,.import-dialog textarea::placeholder { color: #a8b0a9; }.import-dialog textarea { min-height: 174px; resize: vertical; line-height: 1.65; }.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }.dialog-footer > span { display: flex; align-items: center; gap: 6px; color: #829086; font-size: 9px; }.tiny-lock { color: #618166; font-size: 14px; }.primary-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; color: #fff; border: 0; border-radius: 6px; background: var(--green); font-size: 10px; font-weight: 600; cursor: pointer; transition: background .15s,transform .15s; }.form-error { min-height: 13px; margin: 8px 0 0; color: #b6554d; font-size: 9px; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 22px; padding: 11px 15px; color: #fff; border-radius: 7px; background: #2e4938; box-shadow: 0 8px 24px #2030272b; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1400px) { .main-content { padding-right: 70px; padding-left: 70px; }.conversation-layout { grid-template-columns: minmax(270px,.8fr) minmax(480px,1.5fr); } }
@media (max-width: 1100px) { .main-content { padding-right: 30px; padding-left: 30px; }.welcome-art { right: -15px; opacity: .8; }.summary-intro { min-width: 35%; }.summary-stat { min-width: 21%; padding-left: 12px; }.conversation-layout { grid-template-columns: minmax(215px,.76fr) minmax(340px,1.5fr); }.detail-panel { padding-right: 15px; padding-left: 15px; }.detail-grid { gap: 12px; } }
@media (max-width: 800px) { .sidebar { width: 66px; align-items: center; padding: 20px 8px 12px; }.brand { margin: 0 0 29px; }.brand > span:last-child,.workspace-switcher,.nav-label,.nav-item:not(.active),.nav-count,.sidebar-divider,.section-heading,.space-link,.privacy-card,.profile-button > span:not(.profile-avatar) { display: none; }.primary-nav { width: 100%; }.nav-item { justify-content: center; padding: 0; font-size: 0; }.nav-icon { font-size: 17px; }.sidebar-bottom { width: 100%; }.profile-button { justify-content: center; padding-top: 11px; }.main-content { margin-left: 66px; padding: 0 23px; }.welcome-art { right: -70px; opacity: .45; }.summary-intro { min-width: unset; flex: 1; }.summary-stat { min-width: unset; padding-left: 12px; margin-left: 12px; }.summary-stat > span { display: none; }.summary-stat strong { font-size: 17px; }.conversation-layout { grid-template-columns: minmax(195px,.72fr) minmax(320px,1.4fr); }.detail-actions .detail-action:first-child { display: none; } }
@media (max-width: 620px) { .main-content { padding: 0 15px; }.topbar { height: 55px; }.breadcrumb { font-size: 9px; }.topbar-actions { gap: 7px; }.welcome-section { min-height: 174px; }.welcome-copy { padding: 19px 0; }h1 { font-size: 27px; }.welcome-copy > p { max-width: 260px; font-size: 11px; line-height: 1.5; }.welcome-art { right: -132px; opacity: .25; }.summary-strip { min-height: 69px; padding: 10px; }.summary-intro { gap: 8px; }.summary-icon { width: 27px; height: 27px; }.summary-intro strong { font-size: 9px; }.summary-intro span:not(.summary-icon) { max-width: 140px; font-size: 8px; }.summary-stat { padding-left: 8px; margin-left: 8px; }.summary-stat strong { font-size: 15px; }.summary-decoration { display: none; }.inbox-section { margin-top: 25px; }.inbox-heading h2 { font-size: 18px; }.import-button { padding: 8px; font-size: 0; }.import-button span { font-size: 16px; }.inbox-toolbar { align-items: flex-start; gap: 10px; flex-direction: column-reverse; margin-top: 15px; }.search-box { width: 100%; }.filter-tabs { gap: 15px; }.filter-tab { font-size: 9px; }.filter-tab.active::after { bottom: -12px; }.conversation-layout { display: flex; flex-direction: column; margin-top: 12px; }.thread-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #edf0eb; }.thread-card { min-width: 225px; border-right: 1px solid #eef0ec; border-bottom: 0; }.thread-card:first-child { border-radius: 9px 0 0 0; }.thread-card.selected::before { inset: auto 0 0; width: auto; height: 2px; }.detail-panel { padding: 16px 14px; }.detail-grid { gap: 16px; }.detail-title { font-size: 14px; }.detail-actions { flex: none; }.detail-action { padding: 0 6px; }.page-footer { gap: 7px; flex-direction: column; }.import-dialog { padding: 19px; }.dialog-topline h2 { font-size: 19px; }.dialog-footer { align-items: flex-start; flex-direction: column; }.primary-button { align-self: stretch; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.sample-row { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.text-button { padding: 0; color: #54785a; border: 0; background: transparent; font-size: 9px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sample-row > span,.file-picker-row > span { color: #98a199; font-size: 8px; }
.file-import { margin-top: 12px; padding-top: 2px; border-top: 1px solid #eef1ec; }
.file-picker-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-picker-row input { width: 100%; min-width: 0; min-height: 44px; color: #52617b; font-size: 12px; }
.file-picker-row input::file-selector-button { min-height: 40px; margin-right: 8px; padding: 7px 11px; color: #4054cc; border: 1px solid #dfe3ff; border-radius: 8px; background: #f2f3ff; font-size: 12px; cursor: pointer; }
.file-queue { display: grid; gap: 5px; max-height: 90px; overflow-y: auto; margin-top: 8px; }
.file-queue-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; color: #68766d; border-radius: 5px; background: #f5f8f3; font-size: 8px; }
.file-queue-item.invalid { color: #a44f48; background: #fbf1ef; }
.file-queue-item > span { min-width: 0; overflow-wrap: anywhere; }
.file-remove { flex: none; padding: 2px 4px; color: inherit; border: 0; background: transparent; font-size: 8px; text-decoration: underline; cursor: pointer; }
.parsed-messages { margin-top: 15px; border-top: 1px solid #edf0eb; }
.parsed-messages > summary { padding: 11px 0; color: #617368; font-size: 9px; font-weight: 600; cursor: pointer; }
.parsed-messages > summary span { margin-left: 4px; color: #8d998f; font-weight: 400; }
.parsed-message-list { display: grid; max-height: 370px; overflow-y: auto; }
.parsed-message { padding: 9px 8px; border-top: 1px solid #f0f2ee; background: #fcfdfa; }
.parsed-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #596c5e; font-size: 8px; font-weight: 600; }
.parsed-message-meta time { color: #98a199; font-size: 8px; font-weight: 400; }
.parsed-message p { margin: 5px 0 4px; color: #626e65; font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.parsed-message-source,.parse-note { color: #96a097; font-size: 8px; }
.parse-note { margin: 8px 0; line-height: 1.5; }
@media (max-width: 620px) {
  .sample-row,.file-picker-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .file-picker-row input { max-width: 100%; }
  .file-picker-row input::file-selector-button { min-height: 44px; }
}

[hidden] { display: none !important; }
.first-launch { max-width: 690px; margin: 42px auto 58px; padding: 34px 38px; border: 1px solid #e8eee7; border-radius: 13px; background: linear-gradient(135deg,#f4f8f2,#fff 72%); text-align: center; }
.first-launch-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 16px; color: #f7fbf4; border-radius: 12px; background: #69876d; font-size: 19px; }
.first-launch h2 { margin: 9px 0 10px; font: 700 28px var(--font-display); letter-spacing: -1px; }
.first-launch p { max-width: 490px; margin: 0 auto 8px; color: #68756b; font-size: 12px; line-height: 1.65; }
.first-launch > span { color: #929c93; font-size: 10px; }
.welcome-actions,.import-shortcuts { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.secondary-button { padding: 10px 13px; color: #49634f; border: 1px solid #dfe8dc; border-radius: 6px; background: #fff; font-size: 10px; font-weight: 600; cursor: pointer; }
.secondary-button:hover { background: #f5f8f3; }
.platform-instructions { margin: 7px 0 3px; padding: 9px 10px; color: #78867b; border: 1px solid #e8eee6; border-radius: 6px; background: #f7faf6; font-size: 9px; line-height: 1.55; }
.import-shortcuts { justify-content: flex-start; margin-top: 10px; }
.import-shortcuts .secondary-button { padding: 7px 9px; font-size: 9px; }
.summary-controls { margin-top: 14px; }
.summarize-thread:disabled,.detail-action:disabled { opacity: .65; cursor: wait; }
.spinner { width: 11px; height: 11px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.finding-link { display: inline-flex; align-items: baseline; gap: 5px; padding: 0; color: inherit; border: 0; background: transparent; text-align: left; cursor: pointer; }
.finding-link:hover { color: #315c4c; text-decoration: underline; text-underline-offset: 2px; }
.finding-link > span { flex: none; color: #9aaa9a; font-size: 8px; }
.finding-controls { display: inline-flex; gap: 3px; margin-left: 4px; opacity: .5; }
.finding-controls:hover,.insight-list li:focus-within .finding-controls { opacity: 1; }
.finding-controls button { padding: 1px 3px; color: #859087; border: 0; background: transparent; font-size: 8px; cursor: pointer; }
.finding-controls button:hover { color: #315c4c; text-decoration: underline; }
.task-checkbox { margin: 0 5px 0 0; accent-color: #68876b; vertical-align: middle; }
.insight-list li.completed .finding-link { color: #9ca59d; text-decoration: line-through; }
.analysis-running { display: flex; align-items: center; gap: 7px; color: #728277; font-size: 9px; }
.summary-disclosure { margin: 12px 0 0; color: #929c93; font-size: 8px; line-height: 1.5; }
.parsed-message { scroll-margin: 30px; }
.parsed-message.important-source { border-left: 3px solid #5869df; background: #f6f7ff; }
.parsed-message.important-source p { color: #26345b; font-weight: 550; }
.parsed-message.important-source:target { animation: source-highlight 1.8s ease-out; }
.source-finding-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.source-finding-badge { padding: 2px 6px; color: #4557c8; border-radius: 999px; background: #e8ebff; font-size: 8px; font-weight: 650; }
@keyframes source-highlight { 0%,40% { background: #e1e5ff; } 100% { background: #f6f7ff; } }
.detail-actions { flex-wrap: wrap; justify-content: flex-end; }
.import-dialog { max-height: min(90vh, 860px); overflow-y: auto; }
.advanced-filters { display: flex; align-items: center; gap: 5px; }
.advanced-filters label { color: #909a92; font-size: 8px; }
.advanced-filters select { max-width: 112px; height: 28px; padding: 0 5px; color: #68776b; border: 1px solid #e9ece7; border-radius: 5px; background: #fff; font-size: 8px; }
@media (max-width: 620px) {
  .first-launch { margin: 25px auto 34px; padding: 26px 16px; }
  .first-launch h2 { font-size: 24px; }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .detail-actions { gap: 4px; }
  .detail-action { font-size: 8px; }
  .import-dialog { max-height: 90vh; }
  .advanced-filters { width: 100%; flex-wrap: wrap; }
  .advanced-filters select { flex: 1; }
}
@media (max-width: 800px) {
  .section-heading { display: flex; justify-content: center; }
  .section-heading .nav-label { display: none; }
  .section-heading .icon-button.small { display: grid; width: 34px; height: 34px; margin: 12px auto; border: 1px solid #eaede8; border-radius: 8px; }
}

:root {
  color-scheme: light;
  --ink: #16213b;
  --muted: #68748a;
  --soft-muted: #919bad;
  --green: #4f63e8;
  --green-dark: #3d50d4;
  --green-pale: #eef0ff;
  --paper: #f5f7fb;
  --line: #e5e9f2;
  --amber: #aa6a13;
  --amber-pale: #fff6e8;
  --rose: #bf565c;
  --font-body: "Segoe UI", Inter, system-ui, sans-serif;
  --font-display: "Segoe UI", Inter, system-ui, sans-serif;
}

html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; background: var(--paper); color: var(--ink); font-size: 14px; }
button,input,select,textarea { font: inherit; }
button { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid #8e9cff; outline-offset: 3px; }
.sidebar { width: 258px; padding: 25px 18px 18px; background: #fff; border-color: #e9edf5; box-shadow: 3px 0 24px #182a4a08; }
.brand { gap: 11px; margin: 0 0 27px 5px; font-size: 15px; letter-spacing: -.25px; }
.brand-symbol { display: block; width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: 0 5px 12px #111b3520; }
.brand-wordmark { color: #15213e; }
.workspace-switcher { gap: 11px; padding: 12px 10px; border-color: #e7eaf2; border-radius: 12px; background: #fafbfe; }
.workspace-avatar { width: 36px; height: 36px; color: #fff; background: #182544; }
.workspace-avatar svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.workspace-copy strong { color: #1b2743; font-size: 12px; }
.workspace-copy small { color: #77839a; font-size: 10px; }
.nav-label { margin: 27px 0 9px 8px; color: #818ba0; font-size: 9px; letter-spacing: 1.15px; }
.primary-nav { gap: 5px; }
.nav-item,.space-link { min-height: 42px; height: auto; gap: 11px; padding: 0 11px; color: #56627b; border-radius: 10px; font-size: 12px; }
.nav-item:hover,.space-link:hover { color: #283755; background: #f5f6fb; }
.nav-item.active { color: #4054db; background: #eef0ff; font-weight: 650; }
.nav-icon { display: inline-grid; width: 20px; height: 20px; place-items: center; color: inherit; font-size: 17px; }
.nav-count { color: #6673db; background: #e3e7ff; font-size: 10px; }
.sidebar-divider { margin-top: 17px; background: #e9edf4; }
.section-heading .nav-label { color: #818ba0; }
.icon-button { width: 36px; height: 36px; color: #5d6981; border-color: #e4e8f0; border-radius: 10px; background: #fff; }
.icon-button:hover { color: var(--green); background: #f2f3ff; border-color: #d9ddff; }
.icon-button.small { width: 27px; height: 27px; margin-top: 15px; border: 1px solid #e6e9f2; border-radius: 8px; }
.privacy-card { gap: 10px; padding: 12px; border-color: #e4e9f4; border-radius: 12px; background: #f7f8fc; }
.privacy-lock { color: #4d5fe0; background: #e9ebff; }
.privacy-card strong { color: #283755; font-size: 11px; }
.privacy-card p { color: #6b7890; font-size: 10px; }
.privacy-status { background: #5d9b79; box-shadow: 0 0 0 3px #e3f1e9; }
.profile-button { margin-top: 14px; padding-top: 12px; border-color: #e9edf4; }
.profile-button:hover strong { color: #4054db; }
.profile-avatar { width: 34px; height: 34px; color: #5665d9; background: #eef0ff; }
.profile-button strong { font-size: 11px; }
.profile-button small { font-size: 10px; }

.main-content { max-width: 1600px; min-height: 100vh; margin-left: 258px; padding: 0 52px; }
.topbar { height: 68px; border-color: #e6eaf2; }
.topbar-leading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.topbar-logo { display: none; width: 32px; height: 32px; flex: none; border-radius: 10px; }
.clear-button { color: #738097; }
.clear-button:hover { color: #ad414b; border-color: #f0d3d5; background: #fff5f5; }
.breadcrumb { color: #8993a7; font-size: 12px; }
.breadcrumb strong { color: #263450; font-weight: 600; }
.local-indicator { gap: 7px; padding: 7px 11px; color: #436f5a; border-color: #dfede5; background: #f3faf6; font-size: 10px; }
.local-indicator > span { background: #53a779; }
.topbar-actions { gap: 12px; }
.welcome-section { min-height: 190px; }
.welcome-copy { padding: 31px 0 24px; }
.eyebrow,.heading-kicker,.dialog-kicker { color: #5969df; font-size: 10px; letter-spacing: 1.25px; }
.welcome-copy h1 { margin: 12px 0 9px; color: #182543; font-size: clamp(28px,3vw,38px); line-height: 1.12; letter-spacing: -1.5px; }
.welcome-copy h1 span { color: #5364e1; }
.welcome-copy > p { color: #6d7890; font-size: 14px; }
.welcome-art { display: none; }
.summary-strip { min-height: 94px; padding: 18px 24px; border-color: #e5e9f3; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px #192b4908; }
.summary-intro { min-width: 36%; gap: 13px; }
.summary-icon { width: 40px; height: 40px; border-radius: 12px; background: #5364e1; }
.summary-intro strong { color: #1c2946; font-size: 13px; }
.summary-intro span:not(.summary-icon) { color: #738097; font-size: 11px; }
.summary-stat { min-width: 19%; padding-left: 20px; border-color: #e9edf4; }
.summary-stat strong { color: #3448c4; font-size: 24px; }
.summary-stat > span { color: #738097; font-size: 10px; }
.summary-decoration { color: #eff0ff; }
.first-launch { max-width: 740px; margin: 25px auto 48px; padding: 37px clamp(18px,5vw,58px) 35px; border: 1px solid #e5e9f3; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px #1525440a; text-align: center; }
.welcome-logo { display: block; width: min(352px,100%); height: auto; margin: 0 auto 25px; }
.first-launch .heading-kicker { margin-bottom: 9px; }
.first-launch h2 { margin: 8px 0 11px; color: #172442; font-size: clamp(27px,3.6vw,36px); letter-spacing: -1.2px; }
.first-launch p { max-width: 520px; margin: 0 auto; color: #5f6d85; font-size: 15px; line-height: 1.65; }
.welcome-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; max-width: 505px; margin: 22px auto 17px; text-align: left; }
.welcome-capabilities span { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 11px; color: #3d4a65; border: 1px solid #e9ecf4; border-radius: 11px; background: #fafbfe; font-size: 12px; font-weight: 550; }
.welcome-capabilities i { display: grid; width: 23px; height: 23px; flex: none; place-items: center; color: #4b5ed8; border-radius: 7px; background: #eef0ff; font-size: 12px; font-style: normal; }
.first-launch .welcome-privacy { color: #738097; font-size: 11px; line-height: 1.5; }
.welcome-actions { gap: 11px; margin-top: 23px; }
.primary-button,.import-button { min-height: 46px; justify-content: center; gap: 9px; padding: 0 19px; color: #fff; border: 1px solid #4356d8; border-radius: 11px; background: #4e60e1; box-shadow: 0 5px 12px #5364e12b; font-size: 13px; font-weight: 650; }
.primary-button:hover,.import-button:hover { color: #fff; border-color: #3448ce; background: #3f52d4; box-shadow: 0 8px 18px #5364e13b; transform: translateY(-1px); }
.primary-button:active,.import-button:active,.secondary-button:active { transform: translateY(1px); }
.primary-button:disabled,.import-button:disabled,.secondary-button:disabled { opacity: .58; box-shadow: none; cursor: wait; transform: none; }
.button-icon { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: #ffffff26; font-size: 15px; }
.secondary-button { min-height: 46px; padding: 0 17px; color: #293858; border-color: #dfe4ef; border-radius: 11px; background: #fff; font-size: 13px; }
.secondary-button:hover { color: #4054db; border-color: #cbd1ff; background: #f7f8ff; }
.inbox-section { margin-top: 34px; }
.inbox-heading h2 { color: #1d2945; font-size: 24px; }
.heading-kicker { margin-bottom: 8px; }
.import-button { min-height: 42px; padding: 0 15px; font-size: 12px; }
.inbox-toolbar { flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-bottom: 13px; border-color: #e4e8f1; }
.filter-tabs { gap: 22px; }
.filter-tab { min-height: 34px; color: #78849a; font-size: 12px; }
.filter-tab.active { color: #4356d4; }
.filter-tab.active::after { bottom: -14px; height: 3px; border-radius: 3px; background: #5364e1; }
.search-box { width: 230px; height: 38px; gap: 9px; padding: 0 11px; color: #7d89a0; border-color: #e0e5ef; border-radius: 10px; }
.search-box input { font-size: 11px; }
.search-box kbd { color: #7e8aa2; border-color: #e8ebf2; background: #f8f9fc; font-size: 9px; }
.advanced-filters { gap: 7px; }
.advanced-filters label { color: #66738a; font-size: 10px; }
.advanced-filters select { height: 36px; padding: 0 9px; color: #34425d; border-color: #e0e5ef; border-radius: 9px; background: #fff; font-size: 11px; }
.conversation-layout { grid-template-columns: minmax(260px,.75fr) minmax(0,1.7fr); min-height: 440px; margin-top: 16px; border-color: #e3e8f1; border-radius: 16px; box-shadow: 0 7px 24px #15254408; }
.thread-list { border-color: #e8ecf3; }
.thread-card { padding: 17px 16px 15px; border-color: #edf0f6; background: #fff; }
.thread-card:hover { background: #f9faff; }
.thread-card.selected { background: #f4f5ff; }
.thread-card.selected::before { width: 3px; border-radius: 0 3px 3px 0; background: #5364e1; }
.thread-space { color: #77839a; font-size: 10px; }
.thread-age { color: #8c97aa; font-size: 10px; }
.thread-title { color: #1d2a47; font-size: 13px; }
.thread-preview { color: #66738b; font-size: 11px; }
.tag { padding: 5px 8px; color: #4357c9; border-radius: 7px; background: #eef0ff; font-size: 9px; }
.tag.deadline { color: #98600f; background: #fff4df; }
.tag.mention { color: #6550bb; background: #f2efff; }
.tag.urgent { color: #a9434b; background: #fff0f0; }
.detail-panel { padding: 23px 25px; }
.detail-channel { color: #76829a; font-size: 10px; }
.detail-title { color: #1a2744; font-size: 19px; }
.detail-meta { color: #8590a4; font-size: 10px; }
.detail-actions { gap: 7px; }
.detail-action { min-height: 34px; height: auto; padding: 6px 10px; color: #53617a; border-color: #e1e6ef; border-radius: 8px; font-size: 10px; }
.detail-action:hover { color: #4356d4; border-color: #cbd1ff; background: #f7f8ff; }
.detail-summary { margin-top: 20px; padding: 16px 17px; border-color: #dfe4ff; border-radius: 12px; background: #f6f7ff; }
.detail-summary-label,.detail-section-title { gap: 8px; color: #5263d7; font-size: 10px; letter-spacing: .7px; }
.detail-summary-label span { color: #5364e1; }
.detail-summary p { color: #3e4c67; font-size: 13px; line-height: 1.7; }
.detail-grid { gap: 21px; margin-top: 22px; }
.detail-section-title { margin-bottom: 11px; color: #66738a; }
.section-count { width: 20px; height: 20px; color: #4d5fd1; background: #eef0ff; font-size: 10px; }
.insight-list { gap: 11px; }
.insight-list li { color: #52617b; font-size: 12px; line-height: 1.65; }
.insight-list li::before { top: 7px; width: 6px; height: 6px; background: #6575e5; }
.insight-list.decisions li::before { background: #8269d4; }
.insight-list.deadlines li::before { background: #d29336; }
.insight-list strong { color: #2c3b59; }
.attention-banner { gap: 10px; margin-top: 17px; padding: 12px 14px; color: #855516; border-color: #f0dfbc; border-radius: 10px; background: #fff9ed; font-size: 11px; line-height: 1.5; }
.attention-banner strong { color: #70460e; }
.empty-state { min-height: 250px; padding: 28px; color: #77839a; }
.empty-state strong { color: #263552; font-size: 15px; }
.empty-state span { font-size: 12px; line-height: 1.5; }
.parsed-messages { margin-top: 20px; border-color: #e6eaf2; }
.parsed-messages > summary { padding: 14px 0; color: #53617a; font-size: 11px; }
.parsed-message { padding: 12px; border-color: #edf0f6; background: #fbfcfe; }
.parsed-message-meta { color: #44536e; font-size: 10px; }
.parsed-message-meta time,.parsed-message-source,.parse-note { color: #7f8ba0; font-size: 10px; }
.parsed-message p { color: #46546e; font-size: 11px; }
.summary-disclosure { color: #7a879c; font-size: 10px; }
.page-footer { margin: 20px 0 24px; color: #77839a; font-size: 10px; }
.page-footer i { background: #55a479; }
.import-dialog { width: min(620px,calc(100% - 28px)); padding: 28px; border-color: #e2e7f0; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px #111b3533; }
.import-dialog::backdrop { background: #101a32a8; backdrop-filter: blur(5px); }
.dialog-kicker { font-size: 9px; }
.dialog-topline h2 { color: #172442; font-size: 24px; }
.dialog-topline p { color: #67748d; font-size: 12px; }
.input-label { margin: 15px 0 7px; color: #33415d; font-size: 12px; }
.title-input,.import-dialog textarea { padding: 11px 12px; color: #1d2a47; border-color: #dfe4ee; border-radius: 9px; background: #fbfcfe; font-size: 12px; }
.import-dialog textarea { min-height: 190px; line-height: 1.65; }
.title-input:focus,.import-dialog textarea:focus,.search-box:focus-within { border-color: #8794ff; box-shadow: 0 0 0 3px #6979ed20; outline: none; }
.platform-instructions { padding: 11px 12px; color: #52617b; border-color: #e4e8f2; border-radius: 9px; background: #f7f8fc; font-size: 11px; line-height: 1.6; }
.sample-row > span,.file-picker-row > span { color: #77839a; font-size: 10px; }
.text-button,.finding-controls button { color: #4c5fd9; font-size: 10px; }
.file-picker-row input { color: #52617b; font-size: 11px; }
.file-picker-row input::file-selector-button { padding: 8px 11px; color: #4054cc; border-color: #dfe3ff; border-radius: 8px; background: #f2f3ff; font-size: 11px; }
.file-queue-item { padding: 8px 10px; color: #4f5d77; border-radius: 8px; background: #f4f6fb; font-size: 10px; }
.file-queue-item.invalid { color: #a33f49; background: #fff0f0; }
.file-remove { font-size: 10px; }
.dialog-footer { gap: 14px; margin-top: 17px; }
.dialog-footer > span { color: #66738a; font-size: 10px; line-height: 1.5; }
.form-error { color: #b13f49; font-size: 11px; }
.toast { right: 22px; bottom: 22px; padding: 13px 17px; border-radius: 10px; background: #172442; font-size: 12px; box-shadow: 0 12px 30px #111b3533; }
.finding-link:hover,.finding-controls button:hover { color: #394dcf; }
.finding-link > span { color: #6374df; }
.task-checkbox { accent-color: #5364e1; }
.insight-list .mention-text { color: #6450c3; }
.summary-controls { margin-top: 16px; }
.spinner { width: 14px; height: 14px; border-width: 2px; }

@media (max-width: 1100px) {
  .main-content { padding-right: 30px; padding-left: 30px; }
  .conversation-layout { grid-template-columns: minmax(235px,.8fr) minmax(0,1.4fr); }
  .detail-panel { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 800px) {
  .sidebar { width: 72px; padding: 19px 9px 12px; }
  .brand { margin: 0 0 22px; }
  .section-heading { display: contents; }
  .brand-symbol { width: 40px; height: 40px; }
  .brand-wordmark,.workspace-switcher,.nav-label,.nav-item:not(.active),.nav-count,.sidebar-divider,.space-link,.privacy-card,.profile-button > span:not(.profile-avatar) { display: none; }
  .primary-nav { width: 100%; }
  .nav-item { justify-content: center; min-height: 46px; padding: 0; font-size: 0; }
  .nav-icon { font-size: 19px; }
  .sidebar-bottom { width: 100%; }
  .profile-button { justify-content: center; min-height: 46px; padding-top: 9px; }
  .main-content { margin-left: 72px; padding: 0 24px; }
  .conversation-layout { grid-template-columns: minmax(210px,.7fr) minmax(0,1.3fr); }
  .inbox-toolbar { align-items: flex-start; }
  #add-action-button { position: fixed; z-index: 5; right: 21px; bottom: 20px; display: grid; width: 52px; height: 52px; margin: 0; color: white; border: 0; border-radius: 16px; background: #4e60e1; box-shadow: 0 8px 22px #3448bc55; font-size: 23px; }
  #add-action-button:hover { background: #3d50d4; transform: translateY(-2px); }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(66px + env(safe-area-inset-bottom)); flex-direction: row; align-items: stretch; justify-content: center; padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid #e4e8f1; border-right: 0; box-shadow: 0 -5px 22px #1525440c; }
  .brand,.workspace-switcher,.nav-label,.sidebar-divider,.section-heading,.sidebar-bottom { display: none; }
  .section-heading { display: contents; }
  .primary-nav { display: flex; width: min(100%,480px); align-items: stretch; justify-content: space-around; gap: 3px; }
  .nav-item,.nav-item:not(.active) { display: flex; min-width: 0; min-height: 54px; height: 54px; flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 1px; color: #69758c; border-radius: 10px; font-size: 9px; }
  .nav-item.active { color: #4356d4; background: #f0f1ff; }
  .nav-icon { width: 22px; height: 22px; font-size: 17px; }
  .nav-count { display: none; }
  .main-content { width: 100%; margin-left: 0; padding: 0 16px calc(82px + env(safe-area-inset-bottom)); }
  #add-action-button { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .topbar { height: 58px; }
  .topbar-logo { display: block; }
  .topbar-leading { gap: 8px; }
  .breadcrumb > span,.breadcrumb-slash { display: none; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .topbar-actions { gap: 6px; }
  .local-indicator { padding: 6px 8px; font-size: 9px; }
  .topbar .icon-button { width: 33px; height: 33px; }
  .clear-button { display: grid; }
  .welcome-section { min-height: 156px; }
  .welcome-copy { padding: 20px 0 17px; }
  .welcome-copy h1 { font-size: clamp(29px,8vw,35px); }
  .welcome-copy > p { max-width: 280px; font-size: 12px; line-height: 1.55; }
  .first-launch { margin: 12px 0 27px; padding: 26px 17px 23px; border-radius: 18px; }
  .welcome-logo { width: min(310px,100%); margin-bottom: 20px; }
  .first-launch .heading-kicker { font-size: 9px; }
  .first-launch h2 { font-size: 27px; }
  .first-launch p { font-size: 13px; }
  .welcome-capabilities { gap: 8px; margin: 18px auto 14px; }
  .welcome-capabilities span { min-height: 48px; gap: 7px; padding: 7px 8px; font-size: 10px; line-height: 1.35; }
  .welcome-capabilities i { width: 20px; height: 20px; }
  .first-launch .welcome-privacy { display: block; font-size: 10px; }
  .welcome-actions { flex-direction: column; gap: 9px; margin-top: 18px; }
  .welcome-actions .primary-button,.welcome-actions .secondary-button { width: 100%; min-height: 48px; }
  .summary-strip { min-height: 76px; flex-wrap: wrap; gap: 10px 0; padding: 12px; border-radius: 14px; }
  .summary-intro { min-width: 100%; gap: 10px; }
  .summary-icon { width: 32px; height: 32px; }
  .summary-intro strong { font-size: 11px; }
  .summary-intro span:not(.summary-icon) { max-width: none; font-size: 10px; }
  .summary-stat { min-width: 0; flex: 1; justify-content: center; gap: 6px; padding: 5px 4px 0; margin: 0; border-top: 1px solid #e9edf4; border-left: 0; }
  .summary-stat > span { display: block; font-size: 9px; }
  .summary-stat strong { font-size: 18px; }
  .inbox-section { margin-top: 24px; }
  .inbox-heading { align-items: center; gap: 8px; }
  .inbox-heading h2 { font-size: 20px; }
  .import-button { min-height: 40px; gap: 5px; padding: 0 9px; font-size: 10px; }
  .inbox-toolbar { gap: 11px; margin-top: 14px; }
  .filter-tabs { width: 100%; justify-content: space-between; gap: 7px; }
  .filter-tab { min-height: 36px; font-size: 10px; }
  .filter-tab.active::after { bottom: -1px; }
  .advanced-filters { width: 100%; flex-wrap: wrap; gap: 6px; }
  .advanced-filters label { font-size: 9px; }
  .advanced-filters select { height: 34px; flex: 1; min-width: 90px; font-size: 10px; }
  .search-box { width: 100%; height: 40px; }
  .conversation-layout { display: flex; min-height: 0; flex-direction: column; margin-top: 12px; border-radius: 14px; }
  .thread-list { display: grid; max-height: 230px; overflow: auto; border-right: 0; border-bottom: 1px solid #e8ecf3; }
  .thread-card { width: 100%; padding: 12px; border-right: 0; border-bottom: 1px solid #edf0f6; }
  .thread-card.selected::before { inset: 0 auto 0 0; width: 3px; height: auto; }
  .detail-panel { padding: 17px 13px; }
  .detail-head { flex-direction: column; }
  .detail-actions { width: 100%; justify-content: flex-start; }
  .detail-action { min-height: 36px; flex: 1; font-size: 9px; }
  .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail-title { font-size: 17px; overflow-wrap: anywhere; }
  .detail-summary { padding: 13px; }
  .detail-summary p { font-size: 12px; }
  .inbox-heading h2 span { font-size: 10px; }
  .page-footer { padding-bottom: 8px; font-size: 9px; }
  .import-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 19px 16px; border-radius: 16px; }
  .dialog-topline h2 { font-size: 20px; }
  .dialog-topline p { font-size: 11px; }
  .import-dialog textarea { min-height: 165px; }
  .import-shortcuts { gap: 7px; }
  .import-shortcuts .secondary-button { min-height: 40px; flex: 1; padding: 7px; font-size: 10px; }
  .file-picker-row { align-items: flex-start; flex-direction: column; }
  .file-picker-row > span { font-size: 9px; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .primary-button { width: 100%; }
  .toast { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; text-align: center; }
}
@media (max-width: 360px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .welcome-capabilities { grid-template-columns: 1fr; }
  .welcome-capabilities span { min-height: 38px; }
  .inbox-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
