.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; width: 20px; height: 20px; }
.muted { color: var(--color-muted); font-size: 13px; line-height: 1.8; }
.optional { color: var(--color-muted); font-size: 13px; font-weight: 400; margin-left: 5px; }
.button-full { width: 100%; }
.button-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button-group form { margin: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; border: 1px solid #e0e6d8; background: #fff; color: var(--color-muted); border-radius: 7px; text-decoration: none; transition: color .15s ease, background .15s ease; }
.icon-button:hover { color: #244a36; background: #f0f4e9; }
.icon-button .icon { width: 16px; height: 16px; }
.back-link { display: inline-block; color: var(--color-muted); font-size: 13px; text-decoration: none; margin-bottom: 14px; }
.back-link:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
.workspace-body { background: var(--color-bg); font-size: 16px; }
.app-shell { min-height: 100vh; }
.app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 244px; z-index: 60; display: flex; flex-direction: column; padding: 27px 17px 0; background: #eef1e8; border-right: 1px solid #dfe5d5; overflow-y: auto; scrollbar-width: thin; }
.app-sidebar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 108px; background: #71949a; border-bottom: 1px solid #63868c; }
.app-brand { position: relative; align-self: center; margin: -5px auto 24px; }
.app-brand .brand-logo-image { width: 164px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid #dce3d2; background: #f7f9f2; border-radius: 8px; padding: 10px 9px; margin-bottom: 27px; }
.workspace-initial { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #d7dfc9; border-radius: 7px; background: #e4ecd6; color: #7a8b62; font-size: 13px; font-weight: 600; }
.workspace-switch > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.workspace-switch strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-switch small { color: var(--color-muted); font-size: 13px; }
.workspace-switch > .icon { width: 13px; height: 13px; color: var(--color-muted); }
.nav-label { color: var(--color-muted); font-size: 13px; font-weight: 650; letter-spacing: 1.5px; margin: 0 11px 11px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--color-muted); border-radius: 7px; font-size: 13px; font-weight: 500; line-height: 1.45; text-decoration: none; transition: background .16s ease, color .16s ease; }
.app-nav-link .icon { width: 17px; height: 17px; color: var(--color-muted); }
.app-nav-link:hover { background: #e3eada; color: #3e5f31; }
.app-nav-link.is-active { color: #f5f9ef; background: #21483c; }
.app-nav-link.is-active .icon { color: #c3d798; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-note { margin: 0 1px 17px; border: 1px solid #d7e2c5; background: #e4edD5; border-radius: 8px; padding: 14px 13px; }
.sidebar-note > .icon { color: #8fa56d; width: 20px; height: 20px; display: block; margin-bottom: 11px; }
.sidebar-note strong { display: block; font-size: 13px; font-weight: 600; color: #5c7647; }
.sidebar-note p { font-size: 13px; color: #849771; margin: 7px 0 11px; line-height: 1.8; }
.sidebar-note a { display: flex; align-items: center; justify-content: space-between; color: #587941; text-decoration: none; font-size: 13px; font-weight: 600; }
.sidebar-note a:hover { color: #234f29; }
.sidebar-note a .icon { width: 13px; height: 13px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 19px 0 21px; margin-top: 13px; border-top: 1px solid #dce4d0; }
.user-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d2ddc1; border-radius: 50%; color: #6a8153; background: #e2ead6; font-size: 13px; font-weight: 600; }
.sidebar-user > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar-user strong { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: var(--color-muted); font-size: 13px; }
.sidebar-user form { margin: 0; }
.sidebar-user .icon-button { width: 26px; height: 29px; padding: 5px; border-color: transparent; background: transparent; }
.sidebar-user .icon-button .icon { width: 14px; height: 14px; }
.app-workspace { margin-left: 244px; min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 40; height: 77px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(252,253,249,.98); border-bottom: 1px solid #e3e8db; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 13px; color: #607451; }
.topbar-left > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-workspace { color: var(--color-muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-divider { color: #c2cabb; }
.topbar-badge { border: 1px solid #dce5ce; color: var(--color-muted); background: #f1f6e8; border-radius: 5px; padding: 4px 9px; font-size: 13px; white-space: nowrap; letter-spacing: .2px; }
.app-mobile-toggle { display: none; }
.app-main { padding: 29px 38px 45px; width: 100%; max-width: 1600px; margin-inline: auto; flex: 1; min-width: 0; }
.app-main .eyebrow { font-size: 13px; letter-spacing: 1.3px; margin-bottom: 10px; display: block; }
.app-main h1, .app-main h2, .app-main h3 { overflow-wrap: anywhere; color: var(--color-ink); }
.app-main .button { font-size: 13px; padding: 12px 16px; gap: 9px; }
.app-main .button .icon { width: 15px; height: 15px; }
.app-main .text-link { font-size: 13px; gap: 7px; }
.app-main .text-link .icon { width: 14px; height: 14px; }
.app-main .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.app-main .section-heading h2 { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.4; letter-spacing: -.45px; }
.app-main .section-heading .eyebrow { font-size: 13px; margin-bottom: 5px; }
.app-main .section-heading .muted { font-size: 13px; }
.app-main .section-heading > .icon { width: 16px; height: 16px; color: var(--color-muted); }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 38px 22px; border-top: 1px solid #e4e9db; color: var(--color-muted); font-size: 13px; }
.demo-strip { display: flex; align-items: center; gap: 10px; border: 1px solid #dfe7ce; background: #edf3e0; border-radius: 7px; padding: 11px 14px; margin-bottom: 27px; color: #84946c; font-size: 13px; }
.demo-strip > .icon { width: 15px; height: 15px; color: #8caa63; }
.demo-strip > span { flex: 1; }
.demo-strip a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; color: #6b8a49; white-space: nowrap; }
.demo-strip a .icon { width: 12px; height: 12px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { font-size: 29px; font-weight: 550; line-height: 1.23; letter-spacing: -.025em; margin: 0; }
.page-heading p { font-size: 13px; color: #87957a; margin: 11px 0 0; }
.page-heading > .button, .page-heading > form { flex: 0 0 auto; }
.page-heading .back-link { font-size: 13px; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid #e1e7d8; border-radius: 11px; padding: 24px; min-width: 0; }
.panel + .panel { margin-top: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e0e7d6; border-radius: 10px; padding: 19px 19px 17px; }
.stat-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stat-card div > span { font-size: 13px; color: #7f8e71; }
.stat-card .icon { width: 15px; height: 15px; color: #9cac89; }
.stat-card > strong { display: block; color: #395c2a; font-weight: 500; font-size: 35px; line-height: 1; letter-spacing: -.025em; margin: 20px 0 10px; }
.stat-card small { font-size: 13px; color: #a0ad91; }
.team-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.mini-member { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.mini-member > div { min-width: 0; display: flex; flex-direction: column; }
.mini-member strong { color: #577446; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-member small { color: #9cab8d; font-size: 13px; }
.mini-member .status { padding: 3px 5px; font-size: 13px; gap: 3px; margin-left: auto; }
.mini-member .status > span { width: 3px; height: 3px; }
.avatar { position: relative; display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; flex: 0 0 auto; font-size: 15px; font-weight: 500; line-height: 1; overflow: hidden; isolation: isolate; border: 1px solid rgba(78,87,53,.06); }
.avatar::before { content: ""; position: absolute; width: 110%; height: 110%; border: 1px solid currentColor; opacity: .1; border-radius: 50%; top: 57%; left: 11%; }
.avatar-lg { width: 67px; height: 67px; font-size: 28px; letter-spacing: -.6px; }
.role-sales { background: #f0dcc9; color: #a27753; }
.role-meeting { background: #e1d9ef; color: #9075ad; }
.role-support { background: #dce7cb; color: #7a935b; }
.role-admin { background: #eae3c2; color: #a28b50; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; align-self: center; color: #8a9778; background: #f3f6ed; border: 1px solid #e3e9d9; border-radius: 5px; padding: 4px 7px; font-size: 13px; white-space: nowrap; line-height: 1.4; font-weight: 500; }
.status > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.status-active, .status-approved, .status-won { color: #7d945e; background: #f1f6e7; border-color: #e0e9d1; }
.status-review, .status-meeting { color: #a18f55; background: #faf7e9; border-color: #eee5c9; }
.status-running, .status-contacted { color: #8c80a0; background: #f4f0f9; border-color: #e6dff0; }
.status-failed, .status-lost, .status-rejected { color: #aa8271; background: #fcf3ee; border-color: #eedfd5; }
.status-paused, .status-queued { color: #909986; background: #f5f6f0; border-color: #e5e8de; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, .85fr); align-items: start; gap: 23px; margin-top: 24px; }
.dashboard-aside { display: flex; flex-direction: column; gap: 20px; }
.dashboard-aside .panel { margin-top: 0; }
.task-list { display: flex; flex-direction: column; }
.task-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 0; border-top: 1px solid #edf0e6; color: #667e53; text-decoration: none; transition: background .16s ease; }
.task-row:hover { background: #fafbf6; }
.task-row:last-child { padding-bottom: 3px; }
.task-row .avatar { width: 33px; height: 33px; font-size: 14px; }
.task-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.task-row-main strong { font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.task-row-main small { font-size: 13px; color: #a0ae91; }
.task-row-main small > span { margin: 0 6px; }
.row-arrow { width: 14px; height: 14px; color: #b5c0a8; margin-left: 5px; }
.tip-card { position: relative; padding: 24px; background: #eaf0df; border: 1px solid #dce5cd; border-radius: 10px; overflow: hidden; }
.tip-card .eyebrow { color: #90a577; font-size: 13px; }
.tip-card h2 { font-weight: 500; font-size: 23px; line-height: 1.2; letter-spacing: -.65px; margin: 0 0 14px; color: #5c7944; }
.tip-card p { margin: 0 0 18px; color: #8a9d74; font-size: 13px; line-height: 1.9; }
.tip-card > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: #6f8c50; text-decoration: none; }
.tip-card > a .icon { width: 14px; height: 14px; }
.tip-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d6e1c3; border-radius: 7px; color: #8da671; margin-bottom: 17px; background: #e4edD5; }
.tip-icon .icon { width: 16px; height: 16px; }
.activity-panel { padding: 21px; }
.activity-panel .section-heading { margin-bottom: 20px; }
.activity-panel .section-heading h2 { font-size: 14px; }
.activity-panel > .muted { font-size: 13px; margin: 0; }
.activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.activity-list li { position: relative; display: flex; gap: 11px; padding-bottom: 18px; }
.activity-list li:last-child { padding-bottom: 0; }
.activity-list li::before { content: ""; position: absolute; left: 3px; width: 1px; background: #e9eedf; top: 8px; bottom: 0; }
.activity-list li:last-child::before { display: none; }
.activity-dot { width: 7px; height: 7px; border: 2px solid #e6eedb; border-radius: 50%; background: #a5b98c; flex: 0 0 auto; margin-top: 5px; }
.activity-list p { margin: 0 0 3px; font-size: 13px; color: #8b9d78; line-height: 1.7; overflow-wrap: anywhere; }
.activity-list time { font-size: 13px; color: #b1bca3; }
.quick-start { margin-top: 30px; }
.quick-start > .eyebrow { margin-bottom: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quick-grid > a { display: flex; align-items: center; gap: 14px; padding: 19px 20px; border: 1px solid #e2e8d9; background: #fdfef9; border-radius: 9px; text-decoration: none; }
.quick-grid > a:hover { background: #f0f5e8; }
.quick-grid > a > .icon:first-child { width: 19px; height: 19px; color: #a0b586; }
.quick-grid > a > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.quick-grid strong { font-size: 13px; font-weight: 550; color: #7a9461; }
.quick-grid span { font-size: 13px; color: #a1b08e; }
.quick-grid > a > .icon:last-child { width: 14px; height: 14px; color: #acbd98; }
.onboarding-banner { display: flex; align-items: center; justify-content: space-between; gap: 45px; background: #eaf0df; border: 1px solid #dae5ca; padding: 32px; border-radius: 11px; }
.onboarding-banner h2 { font-size: 25px; font-weight: 500; letter-spacing: -.6px; margin: 0; }
.onboarding-banner p { color: #8b9e74; font-size: 13px; line-height: 1.9; max-width: 500px; margin: 14px 0 21px; }
.onboarding-avatars { display: flex; padding-left: 17px; }
.onboarding-avatars .avatar { margin-left: -17px; border: 4px solid #eaf0df; width: 76px; height: 76px; font-size: 30px; }
.empty-state { text-align: center; padding: 46px 28px 38px; }
.empty-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; color: #a1b48b; background: #f0f5e8; border: 1px solid #e2ebd4; border-radius: 12px; margin-bottom: 17px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h2, .empty-state h3 { font-size: 18px; font-weight: 500; letter-spacing: -.4px; margin: 0 0 12px; }
.empty-state p { font-size: 13px; color: var(--color-muted); line-height: 1.85; max-width: 365px; margin: 0 auto 23px; }
.empty-state .button { font-size: 13px; }

.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.member-card { background: #fff; border: 1px solid #dfe7d5; padding: 24px; border-radius: 11px; min-width: 0; }
.member-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 21px; gap: 15px; }
.member-top .status { align-self: start; }
.member-card > .eyebrow { font-size: 13px; margin-bottom: 4px; }
.member-card h2 { font-size: 28px; font-weight: 500; letter-spacing: -.9px; margin: 0; line-height: 1.2; }
.member-role { color: #8b9c7b; font-size: 13px; margin: 8px 0 14px; }
.member-card > p:not(.member-role) { color: #a0ae91; font-size: 13px; line-height: 1.9; min-height: 59px; margin: 0 0 22px; }
.member-actions { border-top: 1px solid #edf1e6; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-actions .text-link { font-size: 13px; }
.member-actions .icon-button { width: 28px; height: 28px; padding: 6px; }
.member-actions .icon-button .icon { width: 14px; height: 14px; }
.catalog-section { margin-top: 42px; scroll-margin-top: 100px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.catalog-card { display: flex; flex-direction: column; border: 1px solid #e0e7d7; background: #fcfdf9; border-radius: 10px; padding: 22px 18px 18px; }
.catalog-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; margin-bottom: 23px; }
.catalog-icon .icon { width: 18px; height: 18px; }
.catalog-card .eyebrow { font-size: 13px; letter-spacing: 1.1px; margin-bottom: 6px; }
.catalog-card h3 { font-size: 16px; font-weight: 500; letter-spacing: -.4px; line-height: 1.3; margin: 0 0 12px; }
.catalog-card p { font-size: 13px; color: #9cac8b; line-height: 1.85; margin: 0 0 23px; flex: 1; }
.catalog-card .button { font-size: 13px; padding: 10px 8px; gap: 6px; }
.catalog-card .button .icon { width: 13px; height: 13px; }
.filter-tabs { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #dfe7d5; margin-bottom: 24px; overflow-x: auto; padding-bottom: 0; scrollbar-width: thin; }
.filter-tabs > a { position: relative; display: block; padding: 13px 14px; color: #92a17e; font-size: 13px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.filter-tabs > a:hover { color: #526f3e; background: #f0f4e8; }
.filter-tabs > a.is-active { color: #4b6f33; border-bottom-color: #628741; font-weight: 600; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(240px, .8fr); align-items: start; gap: 25px; }
.editor-aside { min-width: 0; }
.editor-aside > * + * { margin-top: 21px; }
.editor-aside .tip-card h2 { font-size: 23px; }
.quiet-note { display: flex; gap: 11px; padding: 0 6px; color: #a0b08e; }
.quiet-note > .icon { width: 17px; height: 17px; margin-top: 3px; color: #a6b995; }
.quiet-note p { margin: 0; font-size: 13px; line-height: 1.9; }
.stack-form { display: flex; flex-direction: column; gap: 19px; }
.stack-form label { display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-size: 13px; font-weight: 550; color: #607c4c; }
.stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .stack-form select, .stack-form textarea, .form-input { width: 100%; min-width: 0; border: 1px solid #dce5d1; border-radius: 7px; background: #fcfdf9; color: #5a7647; padding: 12px 13px; font-size: 13px; line-height: 1.6; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease; }
.stack-form input::placeholder, .stack-form textarea::placeholder { color: var(--color-muted); opacity: 1; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { outline: 2px solid var(--color-ink); outline-offset: 2px; border-color: var(--color-ink); background: #fff; }
.stack-form textarea { resize: vertical; min-height: 110px; line-height: 1.9; }
.stack-form input:disabled, .stack-form select:disabled, .stack-form textarea:disabled { opacity: .7; cursor: not-allowed; }
.stack-form .checkbox-label { display: flex; flex-direction: row; align-items: start; gap: 9px; font-size: 13px; font-weight: 400; color: var(--color-muted); line-height: 1.8; }
.checkbox-label input { width: 14px; height: 14px; margin: 3px 0 0; flex: 0 0 auto; accent-color: #507738; }
.checkbox-label a { text-underline-offset: 3px; color: #718b59; }
.field-hint { font-size: 13px; color: var(--color-muted); margin: -12px 0 0; line-height: 1.8; }
.form-note { display: flex; gap: 9px; align-items: start; padding: 13px 14px; background: #f1f6e9; border: 1px solid #e5edda; border-radius: 7px; color: #8da377; font-size: 13px; line-height: 1.85; }
.form-note > .icon { width: 15px; height: 15px; margin-top: 1px; color: #8ea675; }
.form-note a { text-underline-offset: 3px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid #e9eedf; padding-top: 20px; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full-width { grid-column: 1 / -1; }
.check-list { margin: 17px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #8aa170; margin-top: 10px; }
.check-list .icon { width: 12px; height: 12px; color: #94ac7a; }
.flash { display: flex; align-items: center; gap: 11px; background: #edf4e3; color: #77965c; border: 1px solid #dbe7ce; padding: 13px 16px; border-radius: 7px; margin-bottom: 22px; font-size: 13px; line-height: 1.8; }
.flash > .icon { width: 17px; height: 17px; }
.flash p { font-size: 13px; margin: 4px 0 0; }
.flash-error { background: #fcf3ee; border-color: #ecd8cb; color: #ac816a; }
.info-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: #f2f5eb; border: 1px solid #e0e8d4; color: #8ba173; padding: 15px 17px; border-radius: 8px; font-size: 13px; line-height: 1.9; margin-bottom: 23px; }
.info-box > .icon { width: 17px; height: 17px; }
.info-box a { text-underline-offset: 3px; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; color: #97a985; font-size: 13px; }
.detail-meta .avatar { width: 27px; height: 27px; font-size: 13px; }
.tag { display: inline-block; border: 1px solid #e3e9d8; background: #f3f6ec; padding: 3px 7px; color: #94a47f; border-radius: 4px; font-size: 13px; }
.result-panel .section-heading { border-bottom: 1px solid #e9eedf; padding-bottom: 20px; }
.result-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #697f59; font-size: 13px; line-height: 1.95; font-family: var(--font-sans); min-height: 220px; }
.copy-feedback { color: #779959; font-size: 13px; min-height: 0; margin-top: 13px; }
.copy-feedback:empty { display: none; }
.approval-bar { border-top: 1px solid #e4ebd8; padding-top: 19px; margin-top: 27px; display: flex; flex-direction: column; gap: 15px; }
.approval-bar > div:first-child { display: flex; align-items: center; gap: 8px; color: #94a67e; font-size: 13px; }
.approval-bar > div:first-child .icon { width: 15px; height: 15px; }
.approval-bar .button-group { justify-content: flex-end; }
.result-panel > .form-note { margin-top: 24px; }
.brief-panel h2 { font-size: 16px; font-weight: 500; margin: 0 0 19px; letter-spacing: -.3px; }
.brief-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; color: #95a684; }
.detail-facts { margin: 25px 0 0; border-top: 1px solid #e9efde; padding-top: 15px; }
.detail-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 5px 0; }
.detail-facts dt { font-size: 13px; color: #a4b393; }
.detail-facts dd { margin: 0; font-size: 13px; color: #8b9f75; }
.app-dialog { width: min(540px, calc(100% - 36px)); border: 1px solid #d9e4cc; background: #fcfdf9; color: #5e7a49; border-radius: 13px; padding: 27px; max-height: calc(100dvh - 54px); overflow-y: auto; box-shadow: 0 22px 90px -32px rgba(22,54,23,.4); }
.app-dialog::backdrop { background: rgba(26,46,25,.36); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #e3ebd6; }
.dialog-heading h2 { font-size: 22px; font-weight: 500; letter-spacing: -.6px; margin: 0; }
.app-dialog .stack-form { gap: 18px; }
.app-dialog .button { font-size: 13px; padding: 13px 19px; }
.app-dialog .stack-form input, .app-dialog .stack-form textarea, .app-dialog .stack-form select { background: #fff; }
.danger-button { color: #b7876c; border-color: #ead8cb; background: #fff9f5; }
.danger-button:hover { color: #9a6245; background: #f8e9df; border-color: #dcbeaa; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[aria-busy="true"] { cursor: progress; }
.button[disabled] { opacity: .65; transform: none; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 45% 55%; }
.auth-story { position: relative; display: flex; flex-direction: column; min-width: 0; background: #183e35; color: #f2f6ec; padding: 42px 55px 32px; overflow: hidden; }
.auth-story::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 147px; background: #71949a; }
.auth-story::after { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid #365948; border-radius: 50%; bottom: -204px; right: -90px; pointer-events: none; }
.auth-story > .brand { position: relative; align-self: start; margin-bottom: 50px; }
.auth-story > .brand .brand-logo-image { width: 186px; }
.auth-story > div { margin-block: auto; padding-bottom: 65px; }
.auth-story .eyebrow { color: #97b393; display: block; font-size: 13px; }
.auth-story h1 { font-size: clamp(34px, 3.1vw, 50px); font-weight: 450; line-height: 1.18; letter-spacing: -.025em; margin: 0 0 24px; color: #f2f7e9; }
.auth-story > div > p { font-size: 14px; line-height: 1.9; color: #a8c0a7; max-width: 380px; margin: 0 0 34px; }
.auth-team { display: flex; align-items: center; padding-left: 12px; }
.auth-team .avatar { border: 3px solid #183e35; margin-left: -12px; width: 45px; height: 45px; font-size: 18px; }
.auth-team > span:last-child:not(.avatar) { margin-left: 13px; font-size: 13px; color: #adc5a9; line-height: 1.7; }
.auth-story-foot { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; font-size: 13px; color: #8aa788; margin: 0; }
.auth-story-foot .icon { width: 15px; height: 15px; }
.auth-form-side { position: relative; display: flex; flex-direction: column; padding: 38px 70px 36px; min-width: 0; }
.auth-form-side > .back-link { align-self: start; color: #9cac8e; font-size: 13px; margin-bottom: 33px; }
.auth-form-wrap { width: 100%; max-width: 395px; margin: auto; padding-block: 26px; }
.auth-form-wrap > .eyebrow { display: block; font-size: 13px; margin-bottom: 10px; }
.auth-form-wrap > h2 { color: #3d6332; font-size: 29px; letter-spacing: -.025em; line-height: 1.25; font-weight: 500; margin: 0; }
.auth-form-wrap > .muted { font-size: 13px; margin: 13px 0 29px; }
.auth-form-wrap .stack-form { gap: 18px; }
.auth-form-wrap .stack-form label { font-size: 13px; }
.auth-form-wrap .stack-form .checkbox-label { font-size: 13px; }
.auth-form-wrap .stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { background: #fff; font-size: 13px; padding: 12px 14px; }
.auth-form-wrap .button { font-size: 13px; padding: 14px 18px; }
.auth-form-wrap .button .icon { width: 16px; height: 16px; }
.auth-switch { font-size: 13px; color: #9bab8b; margin: 21px 0 0; text-align: center; }
.auth-switch a { color: #77975d; text-decoration: none; font-weight: 600; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-demo { text-align: center; border-top: 1px solid #e0e8d5; margin-top: 27px; padding-top: 19px; }
.auth-demo > span { display: block; font-size: 13px; color: #a0b08f; margin-bottom: 12px; }
.auth-demo .button { font-size: 13px; padding: 12px 15px; color: #819b6b; }
.auth-demo small { display: block; font-size: 13px; color: #acb99d; margin-top: 11px; }
.standalone-page { max-width: 920px; margin: 0 auto; padding: 40px 35px 70px; }
.standalone-page > .brand { display: flex; align-items: center; width: calc(100% + 70px); margin: -40px -35px 36px; padding: 24px 35px; background: #71949a; border-radius: 0 0 9px 9px; }
.error-card { border: 1px solid #dce5d0; background: #fff; padding: 45px; border-radius: 13px; }
.error-card h1 { font-size: 35px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; color: #416434; margin: 0 0 20px; }
.error-card p { color: #8a9e76; line-height: 1.9; font-size: 14px; margin: 0 0 29px; }

.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 5px 0; color: #67824e; font-size: 13px; font-weight: 550; text-decoration: none; }
.text-button .icon { width: 14px; height: 14px; }
.text-button:hover { color: #2f582e; text-decoration: underline; text-underline-offset: 4px; }
.button-danger { color: #98694f; border-color: #e6d0bf; background: #fff8f3; }
.button-danger:hover { color: #7d4b32; border-color: #d9b697; background: #f7e8dc; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wide-dialog { width: min(690px, calc(100% - 36px)); }
.wide-dialog > .result-text { margin-bottom: 26px; min-height: 0; }
.wide-dialog > .muted { margin: -9px 0 22px; }
.knowledge-intro { display: flex; align-items: center; justify-content: space-between; gap: 42px; padding: 29px 30px; border: 1px solid #dbe6cb; background: #edf3e3; border-radius: 11px; margin-bottom: 25px; }
.knowledge-intro > div { max-width: 510px; }
.knowledge-intro > div > .icon { color: #8da671; width: 22px; height: 22px; margin-bottom: 12px; }
.knowledge-intro h2 { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 12px; }
.knowledge-intro p { color: #738964; font-size: 13px; line-height: 1.9; margin: 0; }
.knowledge-examples { list-style: none; padding: 0; margin: 0; min-width: 210px; }
.knowledge-examples li { display: flex; align-items: center; gap: 8px; color: #71865e; font-size: 13px; margin: 12px 0; }
.knowledge-examples .icon { width: 13px; height: 13px; color: #829f64; }
.knowledge-grid, .workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.knowledge-card, .workflow-card { display: flex; flex-direction: column; }
.knowledge-card.panel + .panel, .workflow-card.panel + .panel { margin-top: 0; }
.knowledge-card .section-heading, .workflow-card .section-heading { margin-bottom: 18px; }
.knowledge-card h2, .workflow-card h2 { font-size: 20px; font-weight: 500; letter-spacing: -.5px; line-height: 1.35; margin: 0 0 14px; }
.knowledge-preview, .workflow-prompt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: #75876a; line-height: 1.9; margin: 0 0 24px; flex: 1; }
.source-id { display: inline-block; background: #f0f5e7; border: 1px solid #e0e9d4; border-radius: 4px; padding: 3px 7px; font-size: 13px; color: #7b9561; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e7eedc; padding-top: 16px; margin-top: auto; }
.card-footer > small { color: #8c9d7c; font-size: 13px; }
.pipeline-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border: 1px solid #dfe7d6; border-radius: 10px; background: #fff; }
.pipeline-summary > div { padding: 20px 23px; border-right: 1px solid #e6ecde; }
.pipeline-summary > div:last-child { border-right: 0; }
.pipeline-summary span { display: block; color: #7c8d6e; font-size: 13px; }
.pipeline-summary strong { display: block; font-size: 31px; font-weight: 500; line-height: 1; letter-spacing: -.7px; color: #4f7439; margin-top: 16px; }
.table-scroll { position: relative; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; }
.data-table th { padding: 12px 13px; font-size: 13px; font-weight: 500; color: var(--color-muted); background: #f6f9f0; border-bottom: 1px solid #e3ebd7; white-space: nowrap; }
.data-table th:first-child { border-radius: 5px 0 0; }
.data-table th:last-child { border-radius: 0 5px 0 0; }
.data-table td { padding: 19px 13px; font-size: 13px; color: var(--color-muted); border-bottom: 1px solid #edf2e5; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; font-size: 13px; font-weight: 550; color: #577344; margin-bottom: 5px; }
.data-table td small { display: block; color: var(--color-muted); font-size: 13px; }
.data-table .button-group { justify-content: flex-end; gap: 15px; flex-wrap: nowrap; white-space: nowrap; }
.data-table .text-link { font-size: 13px; }
.data-table .icon-button { width: 28px; height: 28px; }
.data-table .icon-button .icon { width: 13px; height: 13px; }
.lead-notes { padding: 15px; border: 1px solid #e0e8d4; background: #f5f8ee; border-radius: 7px; margin: 20px 0 25px; font-size: 13px; }
.workflow-explainer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #dfe8d1; border-radius: 10px; background: #f0f5e7; padding: 21px 24px; margin-bottom: 26px; }
.workflow-explainer > div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #7f936c; }
.workflow-explainer .icon { width: 17px; height: 17px; color: #8da773; }
.workflow-explainer > span { color: #b5c5a1; font-size: 17px; }
.workflow-card .catalog-icon { margin: 0; background: #edf3e3; color: #8ba272; }
.workflow-card > .muted { font-size: 13px; margin: -5px 0 19px; }
.workflow-card .workflow-prompt { margin-bottom: 17px; }
.workflow-details { margin-bottom: 22px; }
.workflow-details summary { cursor: pointer; color: #7a9263; font-size: 13px; }
.workflow-details .brief-text { padding: 15px; background: #f5f8ef; border: 1px solid #e5edd9; border-radius: 6px; margin-top: 13px; }
.workflow-card > .field-hint { font-size: 13px; margin: 0 0 18px; }
.workflow-grid + .quiet-note, .panel + .quiet-note { margin-top: 25px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; margin-bottom: 24px; }
.settings-grid .panel + .panel { margin-top: 0; }
.settings-grid h3 { font-size: 21px; font-weight: 500; letter-spacing: -.5px; margin: 17px 0 13px; }
.settings-grid .panel > p:not(.field-hint) { color: #7a8e69; font-size: 13px; line-height: 1.9; margin: 0 0 18px; }
.settings-grid .field-hint { font-size: 13px; margin-top: 0; }
.settings-facts { margin: 0; }
.settings-facts > div { display: flex; align-items: start; justify-content: space-between; gap: 22px; border-bottom: 1px solid #ebf0e3; padding: 14px 0; font-size: 13px; }
.settings-facts > div:first-child { padding-top: 0; }
.settings-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-facts dt { color: #8b9e79; font-size: 13px; }
.settings-facts dd { margin: 0; text-align: right; color: #627e4d; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 35px; }
.integration-grid > article { display: flex; align-items: start; gap: 15px; padding-block: 8px; }
.integration-grid .catalog-icon { width: 35px; height: 35px; margin: 1px 0 0; background: #f0f5e8; color: #8ea876; flex: 0 0 auto; }
.integration-grid h3 { font-size: 14px; font-weight: 550; margin: 0 0 7px; }
.integration-grid .tag { font-size: 13px; color: #7d985f; background: #f1f6e8; }
.integration-grid .tag-muted { color: #939e89; background: #f5f6f1; border-color: #e4e8dc; }
.integration-grid p { font-size: 13px; line-height: 1.9; color: #819671; margin: 10px 0 0; max-width: 300px; }
.control-panel { display: flex; gap: 20px; align-items: start; background: #f0f5e7; }
.control-panel > .icon { width: 26px; height: 26px; color: #8fae70; margin-top: 2px; }
.control-panel h2 { font-size: 20px; font-weight: 500; letter-spacing: -.4px; margin: 0 0 11px; }
.control-panel p { color: #839872; font-size: 13px; line-height: 1.9; margin: 0 0 15px; max-width: 720px; }
.legal-content { padding: 42px 45px; background: #fff; border: 1px solid #dfe7d5; border-radius: 12px; }
.legal-content > .back-link { display: block; width: fit-content; margin-bottom: 28px; }
.legal-content > .eyebrow { display: block; font-size: 13px; }
.legal-content h1 { color: #34592d; font-weight: 500; font-size: 37px; letter-spacing: -1.1px; line-height: 1.2; margin: 0 0 22px; }
.legal-content .legal-lead { color: #627956; font-size: 15px; }
.legal-content p { color: #728567; font-size: 14px; line-height: 1.95; margin: 0 0 25px; }
.legal-content h2 { color: #496d39; font-size: 20px; font-weight: 550; letter-spacing: -.3px; margin: 32px 0 15px; }
.legal-content > .button { margin-top: 12px; font-size: 13px; }

/* Keep functional text legible against the quiet interface surfaces. */
.workspace-body .muted, .page-heading p, .stat-card div > span, .stat-card small,
.mini-member small, .task-row-main small, .activity-list p, .activity-list time,
.quick-grid span, .member-card > p:not(.member-role), .member-role, .catalog-card p,
.field-hint, .brief-text, .detail-meta, .detail-facts dt, .detail-facts dd,
.settings-grid .field-hint, .settings-facts dt, .data-table td, .data-table td small,
.data-table th, .card-footer > small, .pipeline-summary span, .knowledge-preview,
.workflow-prompt, .workflow-card > .muted, .workflow-card > .field-hint,
.settings-grid .panel > p:not(.field-hint), .integration-grid p, .control-panel p,
.auth-form-wrap > .muted, .auth-switch, .auth-demo > span, .auth-demo small,
.auth-form-side > .back-link, .stack-form .checkbox-label, .empty-state p,
.topbar-workspace, .sidebar-user small, .workspace-switch small, .nav-label {
  color: #66765c;
}
.tip-card p, .tip-card .eyebrow, .check-list li, .quiet-note p, .form-note,
.info-box, .demo-strip, .sidebar-note p, .onboarding-banner p, .knowledge-intro p,
.knowledge-examples li, .workflow-explainer > div { color: #60794d; }
.status-active, .status-approved, .status-won, .status-new { color: #5e7c40; }
.status-review, .status-meeting { color: #80682f; }
.status-running, .status-contacted { color: #776187; }
.status-failed, .status-lost, .status-rejected { color: #996148; }
.status-paused, .status-queued { color: #6c765f; }
.app-main .eyebrow { color: #637b51; }
.app-main .tag, .source-id, .topbar-badge { color: #627e48; }
.app-main .integration-grid .tag-muted { color: #727d65; }
.stack-form label { color: #4f6c3e; }
.stack-form input::placeholder, .stack-form textarea::placeholder { color: var(--color-muted); }
.app-nav-link { color: #657659; }
.sidebar-note strong, .sidebar-note a { color: #4f6e38; }
.mini-member strong, .task-row-main strong { color: #416233; }
.quick-grid strong { color: #54733f; }
.approval-bar > div:first-child, .copy-feedback, .form-note { color: #657d51; }
.auth-switch a, .auth-demo .button { color: #537740; }

@media (min-width: 1600px) {
  .app-main { padding-inline: 48px; padding-top: 37px; }
  .app-topbar, .app-footer { padding-inline: 48px; }
  .page-heading h1 { font-size: 33px; }
  .stat-card { padding: 23px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card > strong { font-size: 39px; }
  .panel { padding: 28px; }
  .dashboard-columns { gap: 27px; }
}

@media (max-width: 1250px) {
  .app-main { padding: 27px 27px 38px; }
  .app-topbar, .app-footer { padding-inline: 27px; }
  .page-heading h1 { font-size: 25px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card .icon { width: 13px; height: 13px; }
  .stat-card small { font-size: 13px; }
  .stat-card > strong { font-size: 31px; }
  .panel { padding: 21px; }
  .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 25px; }
  .mini-member .status { margin-left: auto; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.55fr) minmax(215px, .9fr); gap: 18px; }
  .dashboard-columns .panel { padding: 19px; }
  .app-main .section-heading h2 { font-size: 15px; }
  .app-main .section-heading .text-link { font-size: 13px; white-space: nowrap; }
  .task-row { gap: 9px; }
  .task-row-main strong { font-size: 13px; }
  .task-row-main small { font-size: 13px; }
  .task-row .status { font-size: 13px; padding: 3px 5px; }
  .task-row .row-arrow { width: 11px; height: 11px; margin-left: 0; }
  .tip-card { padding: 21px; }
  .tip-card h2 { font-size: 21px; }
  .member-grid { gap: 15px; }
  .member-card { padding: 20px; }
  .member-card > p:not(.member-role) { min-height: 75px; }
  .catalog-grid { gap: 12px; }
  .catalog-card { padding: 19px 14px 15px; }
  .catalog-card h3 { font-size: 14px; }
  .catalog-card p { font-size: 13px; }
  .catalog-card .button { font-size: 13px; padding-inline: 6px; gap: 4px; }
  .editor-layout { grid-template-columns: minmax(0, 1.65fr) minmax(205px, .85fr); gap: 20px; }
  .editor-aside .tip-card h2 { font-size: 21px; }
  .onboarding-banner { padding: 27px; gap: 25px; }
  .onboarding-avatars .avatar { width: 61px; height: 61px; font-size: 24px; }
  .auth-story { padding-inline: 38px; }
  .auth-form-side { padding-inline: 44px; }
}

@media (max-width: 1080px) {
  .app-sidebar { width: 222px; padding-inline: 14px; }
  .app-workspace { margin-left: 222px; }
  .app-brand { margin-inline: auto; }
  .app-brand .brand-logo-image { width: 157px; }
  .app-main { padding-inline: 23px; }
  .app-topbar, .app-footer { padding-inline: 23px; }
  .page-heading { gap: 17px; }
  .page-heading h1 { font-size: 23px; }
  .app-main .page-heading > .button, .app-main .page-heading > form .button { font-size: 13px; padding: 11px 12px; }
  .demo-strip { flex-wrap: wrap; font-size: 13px; }
  .demo-strip > span { flex-basis: calc(100% - 28px); }
  .demo-strip > a { margin-left: 25px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card small { font-size: 13px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .task-row-main strong { font-size: 13px; }
  .task-row .status { font-size: 13px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-card > p:not(.member-role) { min-height: 58px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .catalog-card { padding: 23px 20px 20px; }
  .catalog-card h3 { font-size: 17px; }
  .catalog-card p { font-size: 13px; }
  .catalog-card .button { font-size: 13px; padding: 11px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .editor-aside { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
  .editor-aside > * + * { margin-top: 0; }
  .editor-aside .quiet-note { margin-top: 7px; }
  .task-detail-layout .editor-aside { display: block; }
  .task-detail-layout .quiet-note { margin-top: 22px; }
  .onboarding-avatars { display: none; }
  .knowledge-intro { display: block; padding: 26px; }
  .knowledge-examples { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 20px; }
  .knowledge-examples li { font-size: 13px; margin: 0; }
  .knowledge-grid, .workflow-grid { gap: 17px; }
  .workflow-explainer { gap: 10px; padding: 18px; }
  .workflow-explainer > div { font-size: 13px; gap: 7px; }
  .workflow-explainer .icon { width: 14px; height: 14px; }
  .settings-grid { gap: 18px; }
  .settings-facts > div { display: block; }
  .settings-facts dd { margin-top: 5px; text-align: left; }
  .integration-grid { gap: 20px; }
}

@media (max-width: 800px) {
  .app-sidebar { transform: translateX(-100%); visibility: hidden; width: 244px; transition: transform .2s ease, visibility .2s ease; box-shadow: 12px 0 40px -15px rgba(27,57,18,.22); }
  .app-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .app-workspace { margin-left: 0; }
  .app-mobile-toggle { display: inline-flex; width: 30px; height: 30px; border: 0; padding: 6px; background: transparent; }
  .app-topbar { height: 67px; padding-inline: 22px; }
  .topbar-left { gap: 10px; }
  .topbar-workspace { font-size: 13px; max-width: 130px; }
  .topbar-left > span:last-child { font-size: 13px; }
  .app-main { padding: 25px 24px 35px; }
  .app-brand { margin-inline: auto; }
  .app-brand .brand-logo-image { width: 164px; }
  .app-nav-link { font-size: 13px; padding: 12px; }
  .workspace-switch strong { font-size: 13px; }
  .app-nav-link .icon { width: 18px; height: 18px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 13px; }
  .app-main .page-heading > .button, .app-main .page-heading > form .button { font-size: 13px; padding: 12px 14px; }
  .stats-grid { gap: 15px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card small { font-size: 13px; }
  .catalog-section .section-heading { align-items: start; }
  .catalog-section .section-heading > .muted { font-size: 13px; max-width: 150px; text-align: right; }
  .auth-page { grid-template-columns: 40% 60%; }
  .auth-story { padding: 35px 25px 26px; }
  .auth-story::before { height: 128px; }
  .auth-story > .brand { margin-bottom: 55px; }
  .auth-story > .brand .brand-logo-image { width: 160px; }
  .auth-story h1 { font-size: 31px; letter-spacing: -1.2px; }
  .auth-story > div > p { font-size: 13px; line-height: 1.85; }
  .auth-team { flex-wrap: wrap; }
  .auth-team > span:last-child:not(.avatar) { flex-basis: 100%; margin: 15px 0 0 -10px; }
  .auth-team .avatar { width: 39px; height: 39px; font-size: 16px; }
  .auth-story-foot { font-size: 13px; gap: 6px; }
  .auth-story-foot .icon { width: 12px; height: 12px; }
  .auth-form-side { padding: 29px 32px; }
  .auth-form-wrap > h2 { font-size: 27px; }
}

@media (max-width: 560px) {
  .app-topbar { height: 62px; padding-inline: 13px; gap: 12px; }
  .topbar-left { gap: 7px; }
  .topbar-workspace, .breadcrumb-divider { display: none; }
  .topbar-left > span:last-child { font-size: 13px; max-width: 200px; }
  .topbar-badge { font-size: 13px; padding: 3px 6px; }
  .app-main { padding: 20px 17px 29px; }
  .app-main .eyebrow { font-size: 13px; letter-spacing: 1.2px; }
  .demo-strip { margin-bottom: 22px; padding: 11px; font-size: 13px; gap: 7px; }
  .demo-strip > .icon { width: 13px; height: 13px; }
  .demo-strip > a { margin-left: 20px; font-size: 13px; }
  .page-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.95px; }
  .page-heading p { font-size: 13px; line-height: 1.8; margin-top: 9px; }
  .app-main .page-heading > .button, .app-main .page-heading > form .button { font-size: 13px; padding: 11px 14px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 19px; }
  .stat-card { padding: 17px 15px 15px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card > strong { font-size: 33px; margin-top: 17px; }
  .stat-card small { font-size: 13px; }
  .panel { padding: 19px 17px; border-radius: 9px; }
  .app-main .section-heading { gap: 12px; margin-bottom: 18px; }
  .app-main .section-heading h2 { font-size: 16px; }
  .app-main .section-heading .eyebrow { font-size: 13px; letter-spacing: 1px; }
  .app-main .section-heading .text-link { font-size: 13px; gap: 4px; }
  .team-strip { grid-template-columns: 1fr; gap: 16px; }
  .mini-member { gap: 11px; }
  .mini-member strong { font-size: 13px; }
  .mini-member small { font-size: 13px; }
  .mini-member .status { font-size: 13px; padding: 4px 7px; }
  .dashboard-columns { gap: 18px; margin-top: 19px; }
  .dashboard-columns .panel { padding: 19px 17px; }
  .dashboard-aside { display: flex; flex-direction: column; gap: 18px; }
  .task-row { gap: 9px; padding-block: 14px; flex-wrap: wrap; }
  .task-row-main { flex-basis: calc(100% - 105px); }
  .task-row .avatar { width: 30px; height: 30px; font-size: 13px; }
  .task-row-main strong { font-size: 13px; }
  .task-row-main small { font-size: 13px; line-height: 1.6; }
  .task-row .status { font-size: 13px; padding: 3px 5px; margin-left: 39px; }
  .task-row .row-arrow { margin-left: auto; }
  .tip-card { padding: 23px; }
  .tip-card h2 { font-size: 24px; }
  .tip-card p { font-size: 13px; }
  .tip-card > a { font-size: 13px; }
  .activity-panel .section-heading h2 { font-size: 14px; }
  .activity-list p { font-size: 13px; }
  .activity-list time { font-size: 13px; }
  .quick-start { margin-top: 25px; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-grid > a { padding: 18px; gap: 12px; }
  .quick-grid strong { font-size: 13px; }
  .quick-grid span { font-size: 13px; }
  .onboarding-banner { padding: 25px; }
  .onboarding-banner h2 { font-size: 24px; }
  .onboarding-banner p { font-size: 13px; }
  .member-grid { grid-template-columns: 1fr; gap: 16px; }
  .member-card { padding: 24px; }
  .member-card > p:not(.member-role) { min-height: 0; font-size: 13px; }
  .member-card h2 { font-size: 29px; }
  .member-role { font-size: 13px; }
  .member-actions .text-link { font-size: 13px; }
  .member-actions .icon-button { width: 31px; height: 31px; }
  .catalog-section { margin-top: 33px; }
  .catalog-section .section-heading { display: block; }
  .catalog-section .section-heading > .muted { display: block; margin-top: 12px; max-width: none; text-align: left; }
  .catalog-grid { gap: 12px; }
  .catalog-card { padding: 19px 13px 15px; }
  .catalog-icon { width: 32px; height: 32px; margin-bottom: 19px; }
  .catalog-icon .icon { width: 16px; height: 16px; }
  .catalog-card h3 { font-size: 14px; }
  .catalog-card p { font-size: 13px; line-height: 1.85; }
  .catalog-card .eyebrow { font-size: 13px; letter-spacing: 1px; }
  .catalog-card .button { padding: 10px 6px; font-size: 13px; gap: 4px; }
  .catalog-card .button .icon { width: 11px; height: 11px; }
  .filter-tabs { gap: 1px; margin-bottom: 19px; }
  .filter-tabs > a { padding: 12px; font-size: 13px; }
  .empty-state { padding: 33px 15px 24px; }
  .empty-state h2, .empty-state h3 { font-size: 18px; }
  .empty-state p { font-size: 13px; }
  .editor-layout { gap: 19px; }
  .editor-aside { display: flex; flex-direction: column; gap: 20px; }
  .editor-aside .tip-card { width: 100%; }
  .editor-aside .quiet-note { margin-top: 0; }
  .task-detail-layout .editor-aside { display: flex; }
  .task-detail-layout .quiet-note { margin-top: 0; }
  .task-detail-layout .brief-panel { width: 100%; }
  .stack-form { gap: 19px; }
  .stack-form label { font-size: 13px; }
  .stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .stack-form select, .stack-form textarea, .form-input { font-size: 16px; padding: 11px 12px; }
  .stack-form textarea { font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-note { font-size: 13px; padding: 11px 12px; }
  .form-actions { justify-content: space-between; padding-top: 18px; }
  .form-actions .button { font-size: 13px; }
  .flash { font-size: 13px; gap: 9px; padding: 12px; }
  .info-box { font-size: 13px; padding: 13px; }
  .detail-meta { gap: 7px; font-size: 13px; }
  .detail-meta .status { font-size: 13px; }
  .detail-meta .tag { font-size: 13px; }
  .result-text { font-size: 13px; line-height: 1.9; }
  .approval-bar .button-group { justify-content: space-between; gap: 7px; }
  .approval-bar .button { font-size: 13px; padding: 11px 12px; }
  .approval-bar > div:first-child { font-size: 13px; }
  .brief-text { font-size: 13px; }
  .app-dialog { padding: 22px 19px; max-height: calc(100dvh - 30px); }
  .dialog-heading { gap: 12px; }
  .dialog-heading h2 { font-size: 21px; }
  .app-dialog .stack-form textarea { font-size: 14px; }
  .app-footer { padding: 16px 18px 20px; font-size: 13px; gap: 12px; }
  .app-footer > span:last-child { display: none; }
  .auth-page { display: block; }
  .auth-story { padding: 26px 25px 32px; }
  .auth-story::before { height: 108px; }
  .auth-story > .brand { margin-bottom: 28px; }
  .auth-story > .brand .brand-logo-image { width: 150px; }
  .auth-story > div { padding-bottom: 0; margin: 0; }
  .auth-story .eyebrow { font-size: 13px; margin-bottom: 11px; }
  .auth-story h1 { font-size: 34px; margin-bottom: 16px; }
  .auth-story > div > p { font-size: 13px; max-width: 310px; margin-bottom: 0; }
  .auth-team, .auth-story-foot { display: none; }
  .auth-form-side { padding: 26px 25px 35px; }
  .auth-form-side > .back-link { margin-bottom: 13px; font-size: 13px; }
  .auth-form-wrap { padding-block: 14px 0; max-width: 430px; }
  .auth-form-wrap > h2 { font-size: 28px; }
  .auth-form-wrap > .muted { margin-top: 11px; margin-bottom: 25px; }
  .auth-form-wrap .stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { font-size: 16px; }
  .auth-form-wrap .stack-form label { font-size: 13px; }
  .auth-form-wrap .stack-form .checkbox-label { font-size: 13px; }
  .auth-switch { font-size: 13px; }
  .auth-demo > span { font-size: 13px; }
  .auth-demo .button { font-size: 13px; }
  .auth-demo small { font-size: 13px; }
  .standalone-page { padding: 29px 21px 45px; }
  .standalone-page > .brand { width: calc(100% + 42px); margin: -29px -21px 29px; padding: 19px 21px; border-radius: 0; }
  .error-card { padding: 29px 25px; }
  .error-card h1 { font-size: 28px; }
  .error-card p { font-size: 13px; }
  .error-card .button { font-size: 13px; }
  .knowledge-intro { padding: 23px; margin-bottom: 20px; }
  .knowledge-intro h2 { font-size: 23px; }
  .knowledge-intro p { font-size: 13px; }
  .knowledge-examples { display: block; margin-top: 18px; }
  .knowledge-examples li { margin-top: 9px; font-size: 13px; }
  .knowledge-grid, .workflow-grid, .settings-grid { grid-template-columns: 1fr; gap: 17px; }
  .knowledge-card h2, .workflow-card h2 { font-size: 21px; }
  .knowledge-preview, .workflow-prompt { font-size: 13px; }
  .card-footer > small { font-size: 13px; }
  .text-button { font-size: 13px; }
  .pipeline-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
  .pipeline-summary > div { padding: 18px; }
  .pipeline-summary > div:nth-child(2) { border-right: 0; }
  .pipeline-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e6ecde; }
  .pipeline-summary span { font-size: 13px; }
  .pipeline-summary strong { font-size: 30px; }
  .data-table { min-width: 570px; }
  .data-table th { font-size: 13px; }
  .data-table td { font-size: 13px; }
  .workflow-explainer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 21px; }
  .workflow-explainer > div { font-size: 13px; gap: 10px; }
  .workflow-explainer .icon { width: 16px; height: 16px; }
  .workflow-explainer > span { transform: rotate(90deg); font-size: 14px; height: 17px; line-height: 1; margin-left: 2px; }
  .workflow-card > .muted { font-size: 13px; }
  .workflow-card > .field-hint { font-size: 13px; }
  .workflow-details summary { font-size: 13px; }
  .settings-grid { margin-bottom: 20px; }
  .settings-facts > div { display: flex; }
  .settings-facts dd { margin-top: 0; text-align: right; }
  .settings-grid .panel > p:not(.field-hint) { font-size: 13px; }
  .integration-grid { grid-template-columns: 1fr; gap: 17px; }
  .integration-grid h3 { font-size: 14px; }
  .integration-grid p { font-size: 13px; }
  .control-panel { gap: 14px; }
  .control-panel h2 { font-size: 19px; }
  .control-panel p { font-size: 13px; }
  .control-panel > .icon { width: 21px; height: 21px; }
  .legal-content { padding: 29px 24px; }
  .legal-content h1 { font-size: 30px; letter-spacing: -.8px; }
  .legal-content .legal-lead { font-size: 14px; }
  .legal-content p { font-size: 13px; }
  .legal-content h2 { font-size: 20px; }
}

@media (max-width: 359px) {
  .app-main { padding-inline: 14px; }
  .topbar-left > span:last-child { max-width: 135px; }
  .page-heading h1 { font-size: 24px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 14px 12px; }
  .stat-card div > span { font-size: 13px; }
  .stat-card .icon { width: 11px; height: 11px; }
  .stat-card small { font-size: 13px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { padding: 22px; }
  .catalog-card h3 { font-size: 19px; }
  .catalog-card p { font-size: 13px; }
  .catalog-card .button { font-size: 13px; }
  .catalog-card .eyebrow { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar { transition: none; }
}

/* Connected mailboxes and reply review. */
.member-mail-link { margin-top: 16px; font-size: 13px !important; line-height: 1.6; }
.mail-layout { display: grid; grid-template-columns: minmax(215px, .7fr) minmax(0, 2fr); align-items: start; gap: 24px; }
.mail-accounts { min-width: 0; }
.mail-accounts > .section-heading { padding: 2px 3px; margin-bottom: 17px; }
.mail-accounts > .section-heading h2 { font-size: 14px; }
.mail-all-link { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border: 1px solid #e0e7d7; background: #fcfdf9; color: #5f7750; text-decoration: none; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.mail-all-link .icon { width: 16px; height: 16px; }
.mail-all-link.is-active { background: #e9f0df; border-color: #aabd95; color: #34562c; }
.mail-account { border: 1px solid #dfe7d5; border-radius: 10px; background: #fff; margin-bottom: 13px; padding: 16px; }
.mail-account.is-active { border-color: #8ba773; box-shadow: 0 0 0 1px #b9cca8; }
.mail-account-link { display: flex; align-items: center; gap: 10px; color: #395d36; text-decoration: none; }
.mail-account-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.mail-account-symbol { display: grid; place-items: center; border: 1px solid #e0e8d5; background: #f1f5eb; width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }
.mail-account-symbol .icon { width: 17px; height: 17px; }
.mail-account-link > div { min-width: 0; }
.mail-account-link strong, .mail-account-link > div > span { display: block; overflow-wrap: anywhere; }
.mail-account-link strong { font-size: 13px; font-weight: 550; line-height: 1.5; }
.mail-account-link > div > span { color: #6e805f; font-size: 13px; margin-top: 3px; }
.mail-account-info { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 19px; color: #607751; font-size: 13px; }
.mail-account-info > span:first-child { overflow-wrap: anywhere; }
.mail-mode-label { display: flex; align-items: center; gap: 7px; color: #627b51; font-size: 13px; margin: 13px 0 16px; }
.mail-mode-label .icon { width: 13px; height: 13px; }
.mail-account-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid #e9eee1; padding-top: 11px; }
.mail-account-footer > span { font-size: 13px; color: #718365; }
.mail-account-footer .icon-button { width: 29px; height: 29px; padding: 6px; }
.mail-sidebar-note { margin-top: 23px; }
.mail-inbox { padding: 24px 24px 12px; }
.mail-inbox > .section-heading { align-items: start; }
.mail-inbox > .section-heading > div { min-width: 0; }
.mail-inbox > .section-heading .eyebrow { overflow-wrap: anywhere; }
.mail-inbox > .section-heading form { flex: 0 0 auto; }
.mail-inbox > .section-heading .button { padding: 9px 12px; font-size: 13px; }
.mail-filter-tabs { margin-bottom: 0; }
.mail-filter-tabs > a { padding: 12px 10px; font-size: 13px; }
.mail-message-row { display: flex; gap: 13px; padding: 21px 0; border-bottom: 1px solid #e9eee1; color: #4f6941; text-decoration: none; }
.mail-message-row:last-child { border-bottom: 0; }
.mail-message-row:hover { background: #fafcf6; }
.mail-sender-initial { display: grid; place-items: center; height: 35px; width: 35px; flex: 0 0 auto; border-radius: 50%; color: #7a9065; background: #edf2e6; font-size: 14px; font-weight: 550; margin-top: 2px; }
.mail-message-summary { min-width: 0; flex: 1; }
.mail-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mail-row-top > strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.mail-row-top > time { font-size: 13px; white-space: nowrap; flex: 0 0 auto; color: var(--color-muted); }
.mail-message-summary h3 { font-size: 14px; font-weight: 550; line-height: 1.5; margin: 8px 0 7px; letter-spacing: -.2px; }
.mail-message-summary > p { font-size: 13px; line-height: 1.7; margin: 0; color: #6d7f60; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.mail-row-meta > span:first-child { font-size: 13px; color: var(--color-muted); min-width: 0; overflow-wrap: anywhere; }
.mail-message-row > .row-arrow { align-self: center; }
.status-sent { color: #577441; background: #edf5e6; border-color: #d7e5cc; }
.status-sending { color: #75618e; background: #f2edf7; border-color: #e0d7ea; }
.status-uncertain, .status-error { color: #946540; background: #fbf1e6; border-color: #ecd5bb; }
.status-blocked, .status-dismissed, .status-disconnected { color: #6f7b65; background: #f3f5ee; border-color: #e0e5d8; }
.mail-welcome { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 55px; padding: 44px; background: #fcfdf9; }
.mail-welcome-copy > .empty-icon { margin-bottom: 24px; background: #eaf1df; }
.mail-welcome-copy > h2 { font-size: 33px; letter-spacing: -.025em; line-height: 1.2; font-weight: 500; margin: 0 0 19px; }
.mail-welcome-copy > p { color: #677c56; max-width: 420px; font-size: 13px; line-height: 1.9; margin: 0 0 26px; }
.mail-start-steps { list-style: none; margin: 25px 0 0; padding: 0; }
.mail-start-steps > li { display: flex; align-items: start; gap: 16px; padding: 26px 0; border-bottom: 1px solid #e1e9d6; }
.mail-start-steps > li:last-child { border-bottom: 0; }
.mail-start-steps > li > span { color: #809865; border: 1px solid #dce6cf; border-radius: 7px; background: #f0f5e8; font-size: 13px; padding: 7px 9px; flex: 0 0 auto; }
.mail-start-steps h3 { font-size: 14px; letter-spacing: -.2px; font-weight: 550; margin: 0 0 9px; }
.mail-start-steps p { font-size: 13px; color: #6b805b; line-height: 1.8; margin: 0; }
.mail-basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 25px; }
.mail-basics > div { display: flex; align-items: start; gap: 10px; padding: 0 5px; font-size: 13px; line-height: 1.8; color: #6e835d; }
.mail-basics .icon { margin-top: 3px; width: 17px; height: 17px; }
.mail-connect-dialog { width: min(740px, calc(100% - 36px)); }
.mail-connect-dialog .dialog-heading .eyebrow { font-size: 13px; margin-bottom: 8px; }
.mail-dialog-intro { font-size: 13px; color: #627c50; line-height: 1.8; margin: 15px 0 22px; }
.mail-dialog-address { color: #48673b; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 5px; }
.mail-dialog-address + .field-hint { margin: 0 0 20px; }
.mail-provider { border: 1px solid #dce6d0; border-radius: 9px; margin-top: 12px; background: #fff; overflow: hidden; }
.mail-provider > summary { display: flex; align-items: center; gap: 13px; list-style: none; cursor: pointer; padding: 17px; color: #496d3c; }
.mail-provider > summary::-webkit-details-marker { display: none; }
.mail-provider > summary:focus-visible { outline: 2px solid #52783b; outline-offset: -3px; }
.mail-provider > summary > div { min-width: 0; flex: 1; }
.mail-provider > summary strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; }
.mail-provider > summary small { display: block; color: #718565; font-size: 13px; margin-top: 4px; line-height: 1.5; }
.mail-provider > summary > .icon { width: 16px; height: 16px; transform: rotate(90deg); }
.mail-provider[open] > summary > .icon { transform: rotate(-90deg); }
.mail-provider-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: #edf3e4; color: #6a8851; font-size: 17px; font-weight: 600; flex: 0 0 auto; }
.mail-provider-gmail { background: #f6ebe3; color: #ac674d; }
.mail-provider-microsoft { background: #e9eef8; color: #5a79aa; }
.mail-provider-content { padding: 0 19px 21px; }
.mail-provider-content > p { font-size: 13px; color: #6a7e5c; line-height: 1.85; margin: 0 0 17px; }
.mail-provider-content .field-hint a { color: #4f7340; text-underline-offset: 3px; }
.mail-provider-content > .stack-form { border-top: 1px solid #e5ecdc; padding-top: 19px; }
.mail-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.mail-form-grid > label { display: block; }
.mail-form-grid > label > input { display: block; margin-top: 8px; }
.mail-form-grid .optional { display: inline; }
.mail-server-fields { min-width: 0; border: 1px solid #dfe8d4; padding: 14px; border-radius: 8px; margin: 0; }
.mail-server-fields legend { padding: 0 5px; color: #5b7849; font-size: 13px; font-weight: 550; }
.mail-server-fields > label { margin: 0 0 15px; }
.mail-server-port { display: grid; grid-template-columns: minmax(65px, .7fr) minmax(0, 1.3fr); gap: 10px; }
.mail-preset-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: #6b805e; padding: 12px 0; margin-bottom: 9px; border-top: 1px solid #e5ecdc; }
.mail-preset-bar .text-button { flex: 0 0 auto; font-size: 13px; }
.mail-auto-consent { background: #f7f3e7; border: 1px solid #e7ddbb; border-radius: 8px; padding: 14px; }
.mail-auto-consent .checkbox-label { color: #6e704d; }
.mail-auto-consent .field-hint { margin: 10px 0 0; color: #727450; }
.mail-auto-consent[hidden] { display: none; }
.mail-disconnect { border-top: 1px solid #e0e8d6; margin-top: 25px; padding-top: 23px; }
.mail-disconnect .field-hint { margin: 12px 0 0; }
.mail-reconnect-note { font-size: 13px; color: #697e5b; line-height: 1.85; margin: 20px 0; }
.mail-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; gap: 24px; }
.mail-detail-layout > .panel { margin-top: 0; }
.mail-envelope { margin: 0 0 23px; padding: 14px 0; border-top: 1px solid #e7eddf; border-bottom: 1px solid #e7eddf; }
.mail-envelope > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.8; margin: 7px 0; }
.mail-envelope dt { color: var(--color-muted); }
.mail-envelope dd { margin: 0; color: #47673a; overflow-wrap: anywhere; }
.mail-envelope dd > span { color: #6f835f; }
.mail-plain-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; color: #49663e; }
.mail-text-note { margin: 25px 0 0; padding-top: 17px; border-top: 1px solid #e8eee0; }
.mail-reply-form textarea { min-height: 330px; font-size: 13px; line-height: 1.85; resize: vertical; }
.mail-reply-form > .button { align-self: flex-start; }
.mail-reply-actions { gap: 9px; }
.mail-reply-actions .button { padding: 12px 13px; font-size: 13px; }
.mail-saved-reply { margin-bottom: 24px; }
.mail-dismiss { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6edde; }
.mail-dismiss .text-button { color: #806e51; }
.mail-task-link { display: inline-flex; margin-top: 23px; }
@media (max-width: 1150px) {
  .mail-layout { grid-template-columns: minmax(195px, .75fr) minmax(0, 1.5fr); gap: 18px; }
  .mail-inbox { padding: 20px 17px 9px; }
  .mail-message-row { gap: 10px; }
  .mail-message-row > .row-arrow { display: none; }
  .mail-welcome { gap: 35px; padding: 34px; }
  .mail-welcome-copy > h2 { font-size: 29px; }
  .mail-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 800px) {
  .mail-welcome { gap: 27px; }
  .mail-basics { gap: 17px; }
}
@media (max-width: 600px) {
  .mail-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .mail-account { padding: 17px; }
  .mail-account-link strong { font-size: 14px; }
  .mail-account-link > div > span, .mail-mode-label, .mail-account-footer > span { font-size: 13px; }
  .mail-account-info { font-size: 13px; }
  .mail-account-info .status { font-size: 13px; }
  .mail-sidebar-note { display: none; }
  .mail-inbox { padding: 20px 17px 8px; }
  .mail-inbox > .section-heading .button { font-size: 13px; padding: 9px; }
  .mail-inbox > .section-heading .button .icon { display: none; }
  .mail-row-top > strong { font-size: 13px; }
  .mail-row-top > time { font-size: 13px; }
  .mail-message-summary h3 { font-size: 14px; }
  .mail-message-summary > p { font-size: 13px; }
  .mail-row-meta { flex-wrap: wrap; gap: 8px; }
  .mail-row-meta > span:first-child { font-size: 13px; }
  .mail-row-meta > .status { font-size: 13px; }
  .mail-sender-initial { display: none; }
  .mail-filter-tabs > a { font-size: 13px; padding: 12px 10px; }
  .mail-welcome { grid-template-columns: minmax(0, 1fr); padding: 28px 23px; gap: 16px; }
  .mail-welcome-copy > h2 { font-size: 30px; }
  .mail-welcome-copy > p { font-size: 13px; }
  .mail-start-steps { margin-top: 4px; }
  .mail-start-steps > li { padding: 21px 0; }
  .mail-start-steps > li:last-child { padding-bottom: 3px; }
  .mail-start-steps h3 { font-size: 14px; }
  .mail-start-steps p { font-size: 13px; }
  .mail-basics { grid-template-columns: 1fr; gap: 17px; }
  .mail-basics > div { font-size: 13px; }
  .mail-connect-dialog { padding: 23px 17px; width: calc(100% - 24px); }
  .mail-provider > summary { padding: 15px 12px; gap: 10px; }
  .mail-provider > summary strong { font-size: 13px; }
  .mail-provider > summary small { font-size: 13px; }
  .mail-provider-mark { width: 31px; height: 34px; }
  .mail-provider-content { padding: 0 13px 18px; }
  .mail-provider-content .stack-form input:not([type="hidden"]), .mail-provider-content .stack-form select { font-size: 16px; }
  .mail-form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mail-server-fields legend { font-size: 13px; }
  .mail-preset-bar { align-items: start; flex-direction: column; gap: 8px; }
  .mail-preset-bar .text-button { font-size: 13px; }
  .mail-auto-consent .checkbox-label { font-size: 13px; }
  .mail-envelope > div { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .mail-plain-body { font-size: 14px; }
  .mail-reply-form textarea { font-size: 16px; }
  .mail-reply-form > .button { width: 100%; }
}

/* Shared workspace foundation. Feature sheets use the same semantic tokens. */
.workspace-body { background: var(--color-bg); color: var(--color-text); font-size: 16px; }
.app-sidebar { width: 268px; padding: 20px 16px 0; background: var(--color-soft); overflow: hidden; }
.app-sidebar::before { height: 104px; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: center; position: relative; min-height: 70px; margin-bottom: 22px; flex-shrink: 0; }
.sidebar-brand-row .app-brand { margin: 0; }
.sidebar-close { display: none; }
.workspace-switch { margin-bottom: 20px; padding: 12px; background: var(--color-surface); border-color: var(--color-line); flex-shrink: 0; }
.workspace-switch strong { font-size: 14px; color: var(--color-ink); }
.workspace-switch small { font-size: 13px; color: var(--color-muted); }
.workspace-initial { width: 36px; height: 36px; color: var(--color-ink); background: var(--color-soft); border-color: var(--color-line); }
.app-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; gap: 20px; scrollbar-color: #a4b7aa transparent; }
.app-nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-label { margin: 0 12px 7px; font-size: 13px; letter-spacing: 0; font-weight: 600; color: var(--color-muted); }
.app-nav-link { min-height: 44px; padding: 10px 12px; gap: 10px; color: var(--color-text); font-size: 14px; border-radius: var(--radius); }
.app-nav-link .icon { width: 18px; height: 18px; color: currentColor; }
.app-nav-link:hover { background: #dce6d8; color: var(--color-ink); }
.app-nav-link.is-active { color: #fff; background: var(--color-ink); }
.app-nav-link.is-active .icon { color: var(--color-accent); }
.sidebar-bottom { padding-top: 16px; flex-shrink: 0; }
.sidebar-new-task { font-weight: 600; }
.sidebar-user { margin-top: 12px; padding: 14px 0; gap: 8px; border-color: var(--color-line); }
.sidebar-user strong { font-size: 14px; color: var(--color-ink); }
.sidebar-user small { font-size: 13px; color: var(--color-muted); }
.sidebar-user .icon-button { width: 44px; height: 44px; min-height: 44px; }
.user-avatar { width: 36px; height: 36px; font-size: 14px; color: var(--color-ink); background: var(--color-surface); border-color: var(--color-line); }
.app-workspace { margin-left: 268px; }
.app-topbar { height: 68px; padding: 0 32px; background: var(--color-surface); border-color: var(--color-line); }
.topbar-left { gap: 12px; font-size: 14px; color: var(--color-text); }
.topbar-workspace { color: var(--color-muted); }
.topbar-badge { background: var(--color-soft); color: var(--color-ink); border-color: var(--color-line); padding: 5px 9px; font-size: 13px; }
.app-main { padding: 32px 32px 48px; max-width: 1550px; }
.page-heading h1 { font-size: 32px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.page-heading p { font-size: 15px; line-height: 1.65; max-width: 70ch; color: var(--color-muted); }
.app-main .section-heading h2 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.app-main .button { min-height: 44px; padding: 11px 16px; font-size: 14px; }
.icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 11px; color: var(--color-ink); border-color: var(--color-line); border-radius: var(--radius); }
.data-table .icon-button { width: 44px; height: 44px; }
.text-link, .text-button, .back-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-underline-offset: 4px; }
.app-main .text-link, .data-table .text-link { font-size: 14px; }
.panel { border-color: var(--color-line); background: var(--color-surface); padding: 24px; }
.panel .panel { border: 0; border-radius: 0; padding-inline: 0; }
.stack-form { gap: 20px; }
.stack-form label { font-size: 14px; color: var(--color-text); line-height: 1.6; }
.stack-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .stack-form select, .stack-form textarea, .form-input { font-size: 16px; min-height: 46px; color: var(--color-text); background: var(--color-surface); border-color: #85958a; caret-color: var(--color-ink); }
.stack-form input::placeholder, .stack-form textarea::placeholder { color: var(--color-muted); opacity: 1; }
.stack-form input:disabled, .stack-form select:disabled, .stack-form textarea:disabled { opacity: 1; background: #eef1eb; color: #5e6b62; border-color: var(--color-line); }
.stack-form .checkbox-label, .access-fields label { min-height: 44px; font-size: 14px; gap: 10px; color: var(--color-text); }
.checkbox-label input, .access-fields input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--color-ink); }
.field-hint, .optional, .muted { color: var(--color-muted); font-size: 13px; line-height: 1.65; }
.field-hint { margin: 0; font-weight: 400; }
.access-fields { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 16px; }
.access-fields legend { font-size: 14px; font-weight: 600; color: var(--color-ink); padding: 0 6px; }
.access-fields .access-roles { margin-top: 10px; }
.access-roles[hidden] { display: none; }
.table-scroll { scrollbar-color: #a4b7aa transparent; overscroll-behavior-inline: contain; }
.data-table { font-variant-numeric: tabular-nums; }
.data-table th { color: var(--color-muted); background: var(--color-soft); font-size: 13px; font-weight: 600; padding: 14px; }
.data-table td { font-size: 14px; color: var(--color-text); padding: 16px 14px; }
.data-table td strong { font-size: 14px; color: var(--color-ink); }
.data-table td small { font-size: 13px; color: var(--color-muted); }
.status { font-size: 13px; line-height: 1.4; color: var(--color-muted); padding: 5px 8px; }
.status-active, .status-approved, .status-won, .status-ready, .status-done, .status-completed, .status-sent { color: var(--color-success); background: #eaf3e8; }
.status-review, .status-meeting, .status-uncertain, .status-indexing { color: var(--color-warning); background: #faf2d9; }
.status-running, .status-contacted, .status-sending { color: var(--color-info); background: #e9f1f4; }
.status-failed, .status-lost, .status-rejected, .status-error { color: var(--color-error); background: #f9eeeb; }
.status-paused, .status-queued, .status-blocked, .status-dismissed, .status-disconnected { color: var(--color-muted); background: #f0f2ed; }
.flash { color: var(--color-success); font-size: 14px; align-items: flex-start; }
.flash-error { color: var(--color-error); }
.flash p { font-size: 14px; }
.empty-state p { font-size: 15px; color: var(--color-muted); max-width: 60ch; }
.empty-state .button { font-size: 14px; }
.app-footer { padding: 18px 32px; font-size: 13px; color: var(--color-muted); border-color: var(--color-line); }
.demo-strip { font-size: 14px; color: var(--color-ink); flex-wrap: wrap; }
.demo-strip a { min-height: 44px; font-size: 14px; color: var(--color-ink); }
.mail-row-top > strong, .mail-message-summary > p { font-size: 14px; }
.mail-message-summary h3 { font-size: 16px; }
.mail-row-top > time, .mail-row-meta > span:first-child { font-size: 13px; color: var(--color-muted); }
.mail-account-link > div > span, .mail-mode-label, .mail-account-info, .mail-account-footer > span, .mail-provider > summary small, .mail-provider-content > p, .mail-basics > div, .mail-preset-bar { font-size: 14px; color: var(--color-muted); }
.mail-account-link strong, .mail-provider > summary strong, .mail-start-steps p, .mail-filter-tabs > a, .mail-envelope > div { font-size: 14px; color: var(--color-text); }
.mail-start-steps h3 { font-size: 16px; }
.mail-welcome-copy > p { font-size: 15px; color: var(--color-muted); }
.mail-plain-body, .mail-reply-form textarea { font-size: 16px; color: var(--color-text); }
.mail-row-top, .mail-preset-bar { flex-wrap: wrap; }
.mail-server-fields legend { font-size: 14px; color: var(--color-text); }
.member-mail-link { font-size: 14px !important; min-height: 44px; color: var(--color-ink) !important; }
.mail-reply-actions .button, .mail-inbox > .section-heading .button, .mail-preset-bar .text-button { font-size: 14px; min-height: 44px; }
.js-only { display: none; }
.js .js-only:not([hidden]) { display: flex; }
[hidden] { display: none !important; }
.app-sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(18,42,33,.35); border: 0; padding: 0; }
@media (max-width: 960px) {
  .app-sidebar { width: min(320px,calc(100vw - 32px)); transform: translateX(-105%); transition: transform .2s ease-out; visibility: hidden; }
  .app-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar-brand-row { justify-content: space-between; }
  .sidebar-close { display: inline-flex; background: #fff; }
  .app-workspace { margin-left: 0; }
  .app-mobile-toggle { display: inline-flex; flex-shrink: 0; }
  .app-main { padding: 24px; }
  .app-topbar { padding: 0 20px; }
  .topbar-workspace { max-width: 170px; }
  .sidebar-is-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .app-main { padding: 24px 16px 36px; }
  .app-topbar { height: 64px; padding: 0 12px; gap: 8px; }
  .topbar-left { gap: 8px; }
  .topbar-workspace, .breadcrumb-divider, .topbar-badge { display: none; }
  .page-heading { align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 15px; }
  .app-main .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .panel { padding: 20px 16px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .full-width { grid-column: auto; }
  .app-footer { padding: 18px 16px; flex-wrap: wrap; gap: 8px; }
  .data-table { min-width: 600px; }
  .mail-envelope > div { grid-template-columns: 72px minmax(0,1fr); font-size: 14px; }
  .mail-message-summary > p { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .app-sidebar { transition: none; }
  .button:hover { transform: none; }
}
