@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-var-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-brand: var(--font-sans);
    --bg: #f6f7f8;
    --surface: #ffffff;
    --surface-2: #f0f3f4;
    --line: #d9e0e3;
    --line-strong: #b9c4ca;
    --text: #182023;
    --muted: #657279;
    --accent: #0f766e;
    --accent-2: #155e75;
    --success: #14754f;
    --warning: #a56315;
    --danger: #b4232f;
    --info: #2563a8;
    --radius: 8px;
    --shadow: 0 14px 34px rgba(19, 30, 36, 0.08);
    font-family: var(--font-sans);
    font-synthesis: none;
    font-optical-sizing: auto;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures contextual;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-kerning: inherit;
    font-variant-ligatures: inherit;
    text-rendering: inherit;
}

@keyframes carter-page-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes carter-thinking-shimmer {
    from {
        background-position: 170% 0;
    }

    to {
        background-position: -170% 0;
    }
}

.workspace-main > :where(:not(.route-loading-placeholder)) {
    animation: carter-page-fade-in 180ms ease-out both;
}

.auth-shell > :where(:not(.route-loading-placeholder)) {
    animation: carter-page-fade-in 180ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .workspace-main > :where(:not(.route-loading-placeholder)),
    .auth-shell > :where(:not(.route-loading-placeholder)),
    .auth-form {
        animation: none;
    }

    .auth-mode-tabs::before,
    .auth-mode-tabs button,
    .auth-form,
    .oauth-action,
    .auth-check-box,
    .auth-check-box::after {
        transition: none;
    }

    .oauth-action:hover {
        transform: none;
    }
}

@keyframes carter-page-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

button,
input,
select,
textarea {
    font: inherit;
    font-kerning: inherit;
    font-variant-ligatures: inherit;
    text-rendering: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

a {
    color: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 336px;
    min-height: 100vh;
}

.sidebar,
.inspector {
    background: #101719;
    color: #edf3f3;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.workspace-label,
.eyebrow,
.muted,
.data-table small {
    color: var(--muted);
}

.sidebar .brand small,
.sidebar .workspace-label,
.sidebar .connection-card p,
.inspector .eyebrow,
.inspector .muted {
    color: #a9b8bc;
}

.workspace-select,
.search-input,
.form-grid input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    padding: 8px 10px;
}

.sidebar .workspace-select {
    background: #172225;
    border-color: #2d3d42;
    color: #edf3f3;
}

.primary-nav {
    display: grid;
    gap: 4px;
}

.primary-nav a {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-radius: var(--radius);
    color: #cad6d9;
    padding: 0 9px;
    text-decoration: none;
}

.primary-nav a.active,
.primary-nav a:hover {
    background: #1b2a2d;
    color: #fff;
}

.primary-nav b {
    min-width: 22px;
    border-radius: 999px;
    background: #244247;
    color: #dff6f3;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.connection-card {
    margin-top: auto;
    border: 1px solid #2d3d42;
    border-radius: var(--radius);
    padding: 12px;
}

.workspace-main {
    min-width: 0;
    padding: 22px;
}

.topbar,
.section-title,
.metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar {
    margin-bottom: 18px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

h1:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    outline: none;
}

h2 {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

h3 {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    line-height: 1.5;
}

.eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.topbar-actions,
.toolbar,
.action-stack {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-action,
.secondary-action,
.danger-action,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: var(--radius);
    padding: 0 12px;
    font-weight: 600;
    text-decoration: none;
}

.primary-action {
    background: var(--accent);
    color: #fff;
}

.secondary-action {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.danger-action {
    background: #f7d7db;
    color: var(--danger);
}

.icon-button {
    width: 36px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-panel,
.surface-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-panel {
    padding: 14px;
}

.metric-panel strong {
    display: block;
    margin: 12px 0 4px;
    font-size: 12px;
    line-height: 1;
}

.surface-panel {
    padding: 16px;
}

.work-surface {
    display: grid;
    gap: 14px;
}

.two-column {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.activity-list,
.readiness-list,
.timeline,
.tag-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
}

.activity-list li,
.readiness-list article,
.setup-block,
.timeline-row,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 12px;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.table-wrap {
    max-width: 100%;
    margin-top: 14px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 9px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.selectable tbody tr {
    cursor: pointer;
}

.selectable tbody tr:hover,
.selected-row {
    background: #e8f2f0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 9px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-success {
    border-color: #b5d8c9;
    background: #e8f6ef;
    color: var(--success);
}

.status-warning {
    border-color: #ead0a7;
    background: #fff5df;
    color: var(--warning);
}

.status-danger {
    border-color: #edbac0;
    background: #fff0f2;
    color: var(--danger);
}

.status-info {
    border-color: #bfd3ee;
    background: #edf5ff;
    color: var(--info);
}

.status-neutral {
    background: #f3f5f6;
    color: #526067;
}

.inspector {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid #243338;
}

.inspector h2 {
    margin-bottom: 12px;
    color: #fff;
}

.inspector h3 {
    margin-top: 18px;
    color: #e8f1f2;
}

.inspector p {
    color: #d6e0e2;
}

.fact-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(127, 145, 151, 0.28);
    padding-bottom: 8px;
}

.fact-list dt {
    color: var(--muted);
    font-weight: 600;
}

.inspector .fact-list dt {
    color: #a9b8bc;
}

.fact-list dd {
    margin: 0;
    text-align: right;
}

.fact-list.compact {
    min-width: 220px;
}

.source-link {
    display: inline-flex;
    margin-top: 10px;
    color: #a8fff3;
}

.problem-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    border: 1px solid #edbac0;
    border-radius: var(--radius);
    background: #fff0f2;
    padding: 12px;
}

.problem-panel h2 {
    color: var(--danger);
}

.problem-panel code {
    border-radius: 6px;
    background: #fff;
    padding: 6px 8px;
    color: var(--danger);
    white-space: nowrap;
}

.setup-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.tag-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.tag-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 7px 10px;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.form-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.timeline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 208px minmax(0, 1fr);
    }

    .inspector {
        grid-column: 1 / -1;
        position: static;
        height: auto;
        border-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-shell,
    .two-column,
    .timeline-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .primary-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-main {
        padding: 14px;
    }

    .topbar,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.page-shell,
.split-page,
.outreach-page,
.targeting-page,
.profile-page {
    color: #081c34;
}

.page-shell {
    padding: 28px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0 0 8px;
    color: #081c34;
    font-size: 12px;
}

.page-heading p,
.data-panel p,
.settings-card p,
.profile-card p,
.targeting-page p {
    color: #33445b;
    font-size: 12px;
}

.split-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.5fr);
    gap: 14px;
    padding: 24px 18px;
}

.chat-shell {
    --chat-top-offset: 128px;
    min-height: 100vh;
    min-height: 100dvh;
}

.chat-shell .workspace-main {
    min-height: 0;
    overflow: visible;
}

.chat-page {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: calc(100vh - var(--chat-top-offset));
    min-height: calc(100dvh - var(--chat-top-offset));
    overflow: visible;
    color: #081c34;
    background: #fbfaf8;
}

.chat-workspace {
    --chat-rail-min: 210px;
    --chat-rail-width: clamp(220px, 25.5vw, 486px);
    --chat-rail-max: 720px;
    --chat-thread-min: 420px;
    display: grid;
    grid-template-columns: minmax(var(--chat-rail-min), var(--chat-rail-width)) 12px minmax(0, 1fr);
    height: calc(100vh - var(--chat-top-offset));
    height: calc(100dvh - var(--chat-top-offset));
    min-height: 460px;
    overflow: hidden;
    border-top: 1px solid #e6e0d8;
}

.chat-conversation-rail {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    background: #fcfbf9;
    padding: 18px 0 14px;
}

.chat-rail-resizer {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 12px;
    border: 0;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}

.chat-rail-resizer::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e6e0d8;
    content: "";
    transform: translateX(-50%);
}

.chat-rail-resizer::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 38px;
    border-radius: 999px;
    background: #c8d1dc;
    content: "";
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 140ms ease, background-color 140ms ease;
}

.chat-rail-resizer:hover::after,
.chat-rail-resizer:focus-visible::after,
.chat-workspace.chat-rail-resizing .chat-rail-resizer::after {
    opacity: 1;
}

.chat-rail-resizer:hover::before,
.chat-rail-resizer:focus-visible::before,
.chat-workspace.chat-rail-resizing .chat-rail-resizer::before {
    background: #8db6e8;
}

.chat-rail-resizer:focus-visible {
    outline: 2px solid #8db6e8;
    outline-offset: -2px;
}

.chat-workspace.chat-rail-resizing,
.chat-workspace.chat-rail-resizing * {
    cursor: col-resize;
    user-select: none;
}

.conversation-list {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.conversation-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #081c34;
    padding: 8px 16px;
    text-align: left;
}

.conversation-item.active {
    background: #eef7ff;
}

.conversation-item.active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: #e85d04;
    content: "";
}

.conversation-item strong,
.conversation-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.22;
    white-space: nowrap;
}

.conversation-item small,
.conversation-empty {
    color: #536784;
    font-size: 11px;
}

.conversation-icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    background: #fff;
}

.conversation-icon::before {
    width: 13px;
    height: 10px;
    border: 2px solid #09213d;
    border-radius: 3px;
    content: "";
}

.conversation-icon::after {
    position: absolute;
    bottom: 7px;
    left: 11px;
    width: 5px;
    height: 5px;
    border-bottom: 2px solid #09213d;
    border-left: 2px solid #09213d;
    background: #fff;
    content: "";
    transform: rotate(-45deg);
}

.conversation-empty {
    margin: 4px 18px;
    line-height: 1.45;
}

.new-conversation {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-top: 1px solid #e6e0d8;
    background: transparent;
    color: #081c34;
    padding: 14px 16px;
    font-weight: 650;
    font-size: 12px;
    text-align: left;
}

.new-conversation span:first-child {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.new-conversation span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.chat-thread {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px min(5vw, 64px) 18px;
}

.chat-day-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 16px 0 10px;
}

.chat-day-divider:first-child {
    margin-top: 0;
}

.chat-day-divider span {
    color: #5d6066;
    font-size: 14px;
    font-weight: 680;
    line-height: 1.2;
}

.chat-day-divider::before,
.chat-day-divider::after {
    height: 1px;
    background: #e6e1dd;
    content: "";
}

.chat-messages {
    display: flex;
    width: min(996px, 100%);
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
}

.chat-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    content-visibility: auto;
    contain-intrinsic-size: auto 112px;
}

.chat-message.user {
    grid-template-columns: minmax(0, 1fr) 34px;
}

.chat-message.user .chat-avatar {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.chat-message.user .chat-bubble {
    grid-column: 1;
    justify-self: end;
    max-width: min(560px, 100%);
    background: #eef7ff;
}

.chat-avatar {
    display: grid;
    align-self: start;
    justify-self: center;
    width: 28px;
    height: 28px;
    margin-top: 4px;
    place-items: center;
    border-radius: 50%;
    background: #09213d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.chat-message.user .chat-avatar {
    background: #e85d04;
    color: #fff;
    font-size: 9px;
}

.chat-bubble {
    min-width: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 16px;
    box-shadow: none;
}

.chat-bubble time {
    display: block;
    margin-bottom: 7px;
    color: #58708f;
    font-size: 11px;
}

.chat-markdown {
    display: grid;
    gap: 8px;
    color: #17283b;
    font-size: 12px;
    line-height: 1.52;
}

.chat-markdown p,
.chat-markdown ul,
.chat-markdown ol,
.chat-markdown pre,
.chat-markdown blockquote,
.chat-markdown h3,
.chat-markdown h4,
.chat-markdown h5 {
    margin: 0;
}

.chat-markdown h3,
.chat-markdown h4,
.chat-markdown h5 {
    color: #081c34;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.chat-markdown ul,
.chat-markdown ol {
    display: grid;
    gap: 4px;
    padding-left: 18px;
}

.chat-markdown li {
    padding-left: 2px;
}

.chat-markdown code {
    border-radius: 5px;
    background: #f1f3f5;
    color: #17283b;
    padding: 2px 5px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.chat-markdown pre {
    overflow-x: auto;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: #f7f8fa;
    padding: 10px;
}

.chat-markdown pre code {
    display: block;
    background: transparent;
    padding: 0;
    white-space: pre;
}

.chat-markdown blockquote {
    border-left: 3px solid #d8e5f8;
    color: #405573;
    padding-left: 10px;
}

.chat-markdown a {
    color: #09213d;
    font-weight: 650;
}

.chat-context-trigger {
    position: fixed;
    z-index: 1000;
    transform: translate(-50%, -100%);
    min-height: 32px;
    border: 1px solid #09213d;
    border-radius: 8px;
    background: #09213d;
    color: #fff;
    padding: 0 12px;
    box-shadow: 0 12px 28px rgba(8, 28, 52, 0.18);
    font-size: 12px;
    font-weight: 750;
}

.chat-context-trigger[hidden] {
    display: none;
}

.chat-context-panel {
    position: fixed;
    z-index: 1001;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    border: 1px solid #ccd7e2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 11px;
    box-shadow: 0 16px 38px rgba(8, 28, 52, 0.18);
    transform: translate(-50%, calc(-100% - 12px));
    animation: definition-pop 160ms ease-out;
}

.chat-context-panel.below {
    transform: translate(-50%, 12px);
}

.chat-context-panel::after {
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #ccd7e2;
    border-bottom: 1px solid #ccd7e2;
    background: rgba(255, 255, 255, 0.98);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.chat-context-panel.below::after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-top: 1px solid #ccd7e2;
    border-left: 1px solid #ccd7e2;
}

@keyframes definition-pop {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-100% - 6px)) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 12px)) scale(1);
    }
}

.chat-context-panel.below {
    animation-name: definition-pop-below;
}

@keyframes definition-pop-below {
    from {
        opacity: 0;
        transform: translate(-50%, 6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 12px) scale(1);
    }
}

.chat-context-panel div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.chat-context-panel span {
    color: #58708f;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.chat-context-panel strong {
    color: #081c34;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.chat-context-panel p {
    margin: 0;
    color: #17283b;
    font-size: 12px;
    line-height: 1.4;
}

.chat-context-panel .chat-context-loading {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    color: #17283b;
}

.chat-context-panel .chat-context-loading img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.chat-context-panel .chat-context-loading span {
    color: #17283b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-transform: none;
}

.chat-context-panel button {
    min-height: 30px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #09213d;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.chat-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.chat-links a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.chat-link-icon {
    position: relative;
    width: 18px;
    height: 22px;
    border: 2px solid #09213d;
    border-radius: 2px;
}

.chat-link-icon::before {
    position: absolute;
    top: 4px;
    right: 3px;
    left: 3px;
    height: 2px;
    background: #09213d;
    box-shadow: 0 5px 0 #09213d;
    content: "";
}

.chat-link-arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid #09213d;
    border-right: 2px solid #09213d;
    transform: rotate(45deg);
}

.chat-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.chat-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.chat-action-card.running {
    border-color: #ffd1b4;
    background: #fff9f4;
}

.chat-action-card.completed {
    border-color: #c5e7d1;
    background: #f6fcf8;
}

.chat-action-card.blocked,
.chat-action-card.failed {
    border-color: #f0c9c3;
    background: #fff8f7;
}

.chat-action-copy {
    min-width: 0;
}

.chat-action-copy strong,
.chat-action-copy span,
.chat-action-copy small {
    display: block;
}

.chat-action-copy strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.35;
}

.chat-action-copy span {
    margin-top: 3px;
    color: #4c6076;
    font-size: 12px;
    line-height: 1.45;
}

.chat-action-copy small {
    margin-top: 4px;
    color: #93431c;
    font-size: 12px;
    line-height: 1.4;
}

.chat-action-control {
    display: inline-grid;
    min-width: 70px;
    min-height: 38px;
    place-items: center;
    border: 1px solid #cad2dc;
    border-radius: 8px;
    background: #09213d;
    color: #fff;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
}

.chat-action-control:hover {
    background: #0d3159;
}

.chat-action-control:disabled {
    border-color: #d4d9e1;
    background: #aab4c1;
    cursor: default;
}

.chat-assistant-mark {
    display: block;
    align-self: start;
    justify-self: center;
    width: 30px;
    height: 30px;
    margin-top: 3px;
    background: url("/brand/carter-logo.png?v=20260613-runs-measured-4") center / contain no-repeat;
    object-fit: contain;
}

.chat-assistant-mark span {
    position: absolute;
    display: none;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
}

.chat-assistant-mark span:nth-child(1) {
    top: 9px;
    left: 9px;
    width: 11px;
    height: 11px;
}

.chat-assistant-mark span:nth-child(2) {
    top: 2px;
    left: 14px;
    width: 5px;
    height: 5px;
}

.chat-assistant-mark span:nth-child(3) {
    right: 1px;
    bottom: 6px;
    width: 6px;
    height: 6px;
}

.chat-assistant-mark span:nth-child(4) {
    bottom: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
}

.chat-empty-state {
    min-width: 0;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(8, 28, 52, 0.06);
}

.chat-empty-state > span {
    margin: 0;
    color: #17283b;
    font-size: 12px;
    line-height: 1.45;
}

.chat-message.pending {
    min-height: 28px;
}

.chat-thinking {
    grid-column: 2;
    justify-self: start;
    align-self: center;
    min-width: 0;
    background: linear-gradient(105deg, #59687a 0%, #59687a 34%, #b7c2cf 46%, #ffffff 50%, #b7c2cf 54%, #59687a 66%, #59687a 100%);
    background-size: 230% 100%;
    color: #59687a;
    font-size: 13px;
    font-weight: 560;
    line-height: 1.35;
    animation: carter-thinking-shimmer 2.45s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .chat-thinking {
        animation: none;
        background: none;
        color: #536784;
        -webkit-text-fill-color: currentColor;
    }
}

.chat-empty-state {
    display: grid;
    gap: 14px;
    padding: 0;
}

.chat-page.empty .chat-scroll {
    display: grid;
    align-items: start;
    padding-top: clamp(220px, 31vh, 340px);
    padding-bottom: 18px;
}

.chat-page.empty .chat-messages {
    min-height: 0;
    justify-content: start;
}

.chat-empty-greeting {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: min(620px, 100%);
    margin: 0 auto;
    color: #536174;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.chat-empty-greeting-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.chat-empty-greeting-mark {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.chat-empty-greeting-title strong {
    color: #223348;
    font-family: var(--font-sans);
    font-size: clamp(28px, 2.15vw, 36px);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.16;
}

.chat-empty-greeting span {
    color: #6a7788;
    font-size: 16px;
    line-height: 1.38;
}

.chat-suggestions-state {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.chat-suggestion-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.chat-suggestion-list button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    height: 56px;
    padding: 8px 14px;
    border: 1px solid #e6e1dd;
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.92);
    color: #17283b;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 28, 52, 0.035);
}

.chat-suggestion-list button.is-primary {
    background: rgba(255, 253, 250, 0.94);
}

.chat-suggestion-list button:hover,
.chat-suggestion-list button:focus-visible {
    background: rgba(255, 249, 244, 0.78);
}

.chat-suggestion-list button:focus-visible {
    outline: 2px solid rgba(232, 93, 4, 0.22);
    outline-offset: -3px;
}

.chat-suggestion-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #e85d04;
    background: #fff1e8;
}

.chat-suggestion-icon.review {
    color: #006b68;
    background: #e8f6f3;
}

.chat-suggestion-icon.company {
    color: #1f5f8f;
    background: #e8f1fb;
}

.chat-suggestion-icon.leads,
.chat-suggestion-icon.targeting {
    color: #006b68;
    background: #e8f6f3;
}

.chat-suggestion-icon.run,
.chat-suggestion-icon.research {
    color: #1f5f8f;
    background: #e8f1fb;
}

.chat-suggestion-icon.outreach {
    color: #7a4a25;
    background: #f7eee4;
}

.chat-suggestion-icon.profile {
    color: #33445b;
    background: #eef1f4;
}

.chat-suggestion-icon span {
    width: 17px;
    height: 17px;
    background: currentColor;
}

.chat-suggestion-icon.find span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.leads span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.review span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%206h13'/%3E%3Cpath%20d='M8%2012h13'/%3E%3Cpath%20d='M8%2018h13'/%3E%3Cpath%20d='M3%206h.01'/%3E%3Cpath%20d='M3%2012h.01'/%3E%3Cpath%20d='M3%2018h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%206h13'/%3E%3Cpath%20d='M8%2012h13'/%3E%3Cpath%20d='M8%2018h13'/%3E%3Cpath%20d='M3%206h.01'/%3E%3Cpath%20d='M3%2012h.01'/%3E%3Cpath%20d='M3%2018h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.company span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2021h18'/%3E%3Cpath%20d='M5%2021V7l8-4v18'/%3E%3Cpath%20d='M19%2021V11l-6-4'/%3E%3Cpath%20d='M9%209v.01'/%3E%3Cpath%20d='M9%2013v.01'/%3E%3Cpath%20d='M9%2017v.01'/%3E%3Cpath%20d='M17%2015v.01'/%3E%3Cpath%20d='M17%2018v.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2021h18'/%3E%3Cpath%20d='M5%2021V7l8-4v18'/%3E%3Cpath%20d='M19%2021V11l-6-4'/%3E%3Cpath%20d='M9%209v.01'/%3E%3Cpath%20d='M9%2013v.01'/%3E%3Cpath%20d='M9%2017v.01'/%3E%3Cpath%20d='M17%2015v.01'/%3E%3Cpath%20d='M17%2018v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.profile span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%202h-6l-4%204v16h14V6z'/%3E%3Cpath%20d='M9%202v5H4'/%3E%3Cpath%20d='M8%2012h8'/%3E%3Cpath%20d='M8%2016h8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%202h-6l-4%204v16h14V6z'/%3E%3Cpath%20d='M9%202v5H4'/%3E%3Cpath%20d='M8%2012h8'/%3E%3Cpath%20d='M8%2016h8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.targeting span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3Cpath%20d='M12%202v3'/%3E%3Cpath%20d='M12%2019v3'/%3E%3Cpath%20d='M2%2012h3'/%3E%3Cpath%20d='M19%2012h3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3Cpath%20d='M12%202v3'/%3E%3Cpath%20d='M12%2019v3'/%3E%3Cpath%20d='M2%2012h3'/%3E%3Cpath%20d='M19%2012h3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.run span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='m10%208%206%204-6%204z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cpath%20d='m10%208%206%204-6%204z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.research span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='8'/%3E%3Cpath%20d='m21%2021-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='8'/%3E%3Cpath%20d='m21%2021-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-icon.outreach span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m22%202-7%2020-4-9-9-4z'/%3E%3Cpath%20d='M22%202%2011%2013'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m22%202-7%2020-4-9-9-4z'/%3E%3Cpath%20d='M22%202%2011%2013'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-suggestion-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.chat-suggestion-title {
    display: flex;
    align-items: center;
    min-width: 0;
}

.chat-suggestion-title > strong {
    min-width: 0;
    overflow: hidden;
    color: #203348;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 710;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-suggestion-list button.is-primary .chat-suggestion-title > strong {
    font-size: 14px;
}

.chat-suggestion-context {
    display: none;
}

.chat-suggestion-copy > span:not(.chat-suggestion-title, .chat-suggestion-context) {
    min-width: 0;
    overflow: hidden;
    color: #526174;
    font-size: 12px;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-suggestion-empty,
.chat-suggestion-placeholder {
    min-width: 0;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px solid #e6e1dd;
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.92);
}

.chat-suggestion-empty {
    display: grid;
    gap: 7px;
    align-content: center;
}

.chat-suggestion-empty strong {
    color: #203348;
    font-size: 15px;
    line-height: 1.3;
}

.chat-suggestion-empty span {
    color: #697789;
    font-size: 13px;
    line-height: 1.42;
}

.chat-suggestion-placeholder {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    height: 56px;
}

.chat-suggestion-placeholder > span:first-child {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef1f4;
}

.chat-suggestion-placeholder > span:last-child {
    display: grid;
    gap: 0;
}

.chat-suggestion-placeholder > span:last-child span {
    height: 12px;
    border-radius: 6px;
    background: #eef1f4;
}

.chat-suggestion-placeholder > span:last-child span:first-child {
    width: min(260px, 72%);
}

.chat-suggestion-placeholder > span:last-child span:nth-child(2) {
    display: none;
}

.chat-suggestion-placeholder > span:last-child span:last-child {
    display: none;
}

.chat-composer-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 12px;
    width: min(996px, calc(100% - 48px));
    justify-self: center;
    margin: 0 24px max(18px, calc(14px + env(safe-area-inset-bottom)));
}

.chat-composer-shell::before {
    position: absolute;
    z-index: -1;
    inset: -34px -28px -22px;
    background: linear-gradient(180deg, rgba(251, 250, 248, 0), #fbfaf8 56%);
    content: "";
    pointer-events: none;
}

.chat-scroll-bottom {
    position: absolute;
    z-index: 4;
    right: 50%;
    bottom: 98px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(9, 33, 61, 0.64);
    box-shadow: 0 12px 28px rgba(8, 28, 52, 0.18);
    opacity: 1;
    transform: translateX(50%);
    transition: background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.chat-scroll-bottom[hidden] {
    display: none;
}

.chat-scroll-bottom:hover,
.chat-scroll-bottom:focus-visible {
    background: #09213d;
    box-shadow: 0 14px 32px rgba(8, 28, 52, 0.24);
}

.chat-scroll-bottom:focus-visible {
    outline: 2px solid rgba(9, 33, 61, 0.35);
    outline-offset: 3px;
}

.chat-scroll-bottom span {
    width: 18px;
    height: 18px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14'/%3E%3Cpath%20d='m19%2012-7%207-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14'/%3E%3Cpath%20d='m19%2012-7%207-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-composer {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 46px 56px;
    align-items: center;
    gap: 12px;
    min-height: 90px;
    border: 1px solid #e2ddd8;
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 16px 34px rgba(8, 28, 52, 0.08), 0 1px 0 rgba(255, 255, 255, 0.84) inset;
    padding: 16px 18px 16px 26px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.chat-composer:focus-within {
    border-color: #c7d4df;
    box-shadow: 0 0 0 3px rgba(141, 182, 232, 0.18), 0 18px 38px rgba(8, 28, 52, 0.11);
}

.chat-composer.is-ready {
    border-color: #c3d3df;
}

.chat-composer.is-busy {
    background: #f8fafb;
}

.chat-composer textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    max-height: 168px;
    appearance: none;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #081c34;
    overflow: hidden;
    padding: 15px 0;
    caret-color: #09213d;
    line-height: 1.45;
    scrollbar-color: #c8d1dc transparent;
    scrollbar-width: thin;
}

.chat-composer textarea:disabled {
    color: #667387;
    cursor: not-allowed;
    -webkit-text-fill-color: #667387;
}

.chat-composer textarea::-webkit-scrollbar {
    width: 6px;
}

.chat-composer textarea::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8d1dc;
}

.chat-composer textarea::placeholder {
    color: #71757b;
    opacity: 1;
}

.chat-dictate,
.chat-send {
    position: relative;
    display: grid;
    height: 54px;
    place-items: center;
    border-radius: 9px;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chat-dictate {
    width: 46px;
    background: transparent;
    color: #6c727a;
}

.chat-dictate:hover {
    background: #eef3f8;
}

.chat-dictate:focus-visible,
.chat-send:focus-visible {
    outline: 2px solid rgba(9, 33, 61, 0.35);
    outline-offset: 2px;
}

.chat-dictate[aria-pressed="true"] {
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px #bcdcff;
}

.chat-composer.is-dictating {
    border-color: #8db6e8;
}

.chat-dictate:disabled,
.chat-dictate:disabled:hover,
.chat-dictate[aria-disabled="true"],
.chat-dictate[aria-disabled="true"]:hover {
    opacity: 1;
    background: transparent;
    cursor: not-allowed;
}

.chat-send {
    width: 56px;
    background: #e5e0dc;
    box-shadow: inset 0 -1px 0 rgba(8, 28, 52, 0.08);
}

.chat-composer.is-ready .chat-send {
    background: #09213d;
    box-shadow: 0 10px 22px rgba(9, 33, 61, 0.22);
}

.chat-composer.is-ready .chat-send:hover {
    background: #0d3156;
    transform: translateY(-1px);
}

.chat-composer.is-ready .chat-send:active {
    transform: translateY(0);
}

.chat-send:disabled {
    opacity: 1;
    background: #e5e0dc;
    box-shadow: none;
    transform: none;
}

.chat-dictate span,
.chat-send span {
    width: 21px;
    height: 21px;
    background: #fff;
}

.chat-dictate span {
    background: #5f6f82;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.25'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202a3%203%200%200%200-3%203v7a3%203%200%200%200%206%200V5a3%203%200%200%200-3-3Z'/%3E%3Cpath%20d='M19%2010v2a7%207%200%200%201-14%200v-2'/%3E%3Cpath%20d='M12%2019v3'/%3E%3Cpath%20d='M8%2022h8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.25'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202a3%203%200%200%200-3%203v7a3%203%200%200%200%206%200V5a3%203%200%200%200-3-3Z'/%3E%3Cpath%20d='M19%2010v2a7%207%200%200%201-14%200v-2'/%3E%3Cpath%20d='M12%2019v3'/%3E%3Cpath%20d='M8%2022h8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-dictate[aria-pressed="true"] span {
    background: #09213d;
}

.chat-dictate:disabled span,
.chat-dictate[aria-disabled="true"] span {
    background: #b5c0cc;
}

.chat-send span {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.65'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2019V5'/%3E%3Cpath%20d='m5%2012%207-7%207%207'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.65'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2019V5'/%3E%3Cpath%20d='m5%2012%207-7%207%207'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-send:disabled span {
    background: rgba(255, 255, 255, 0.86);
}

.chat-send span::after {
    display: none;
    content: "";
}

.page-primary {
    min-width: 0;
}

.data-panel,
.side-inspector,
.outreach-sidebar,
.outreach-main,
.draft-list-panel,
.draft-editor-panel,
.settings-card,
.profile-card {
    min-width: 0;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.data-panel,
.side-inspector,
.outreach-sidebar,
.draft-list-panel,
.draft-editor-panel,
.settings-card {
    padding: 18px;
}

.filter-row,
.filter-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-row.compact {
    justify-content: flex-end;
}

.filter-stack {
    flex-direction: column;
}

.filter-button {
    min-height: 38px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    padding: 0 14px;
    font-weight: 600;
}

.filter-button.active {
    box-shadow: inset 0 0 0 2px #f0f0ed;
}

.filter-input,
.filter-select {
    min-width: 142px;
    min-height: 38px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 650;
}

.filter-input {
    width: min(220px, 100%);
}

.filter-select {
    width: auto;
}

.runs-header-search {
    flex: 1 1 auto;
    width: 100%;
}

.runs-search-input {
    width: 100%;
    min-height: 46px;
}

.runs-page .page-primary {
    padding-top: 13px;
}

.runs-filter-row {
    align-items: center;
    margin: 0 0 28px;
}

.runs-filter-row .filter-select {
    flex: 0 1 220px;
    min-height: 40px;
    width: min(220px, 100%);
}

.runs-filter-row .carter-dropdown-trigger {
    min-height: 40px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 23px;
}

.stat-tile {
    min-height: 116px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 18px;
}

.runs-page .stat-tile {
    min-height: 148px;
    background: #fff;
    padding: 20px 20px 18px;
}

.stat-icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0ebe4;
}

.stat-icon.success {
    background: #e4f4df;
}

.stat-icon.info {
    background: #e6efff;
}

.stat-icon.warning {
    background: #fff1df;
}

.stat-icon.neutral {
    background: #f0f1f3;
}

.runs-page .stat-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(105, 116, 133, 0.18);
    border-radius: 999px;
    color: #697485;
    vertical-align: middle;
}

.runs-page .stat-icon::before {
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    -webkit-mask: var(--runs-stat-icon) center / contain no-repeat;
    mask: var(--runs-stat-icon) center / contain no-repeat;
}

.runs-page .stat-icon.success {
    background: #e9f7ee;
    color: #14754f;
    --runs-stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%2012l2%202%204-5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3C/svg%3E");
}

.runs-page .stat-icon.success::before {
    width: 20px;
    height: 20px;
}

.runs-page .stat-icon.info {
    background: #eef5ff;
    color: #1d75bd;
    --runs-stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2012a9%209%200%201%201-3-6.7'/%3E%3Cpath%20d='M21%203v6h-6'/%3E%3C/svg%3E");
}

.runs-page .stat-icon.info::before {
    width: 19px;
    height: 19px;
}

.runs-page .stat-icon.warning {
    background: #fff4e3;
    color: #b86000;
    --runs-stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10.3%204.4%202.5%2018a2%202%200%200%200%201.7%203h15.6a2%202%200%200%200%201.7-3L13.7%204.4a2%202%200%200%200-3.4%200Z'/%3E%3Cpath%20d='M12%209v4'/%3E%3Cpath%20d='M12%2017h.01'/%3E%3C/svg%3E");
}

.runs-page .stat-icon.warning::before {
    width: 20px;
    height: 20px;
}

.runs-page .stat-icon.neutral {
    background: #f2f4f7;
    color: #667387;
    --runs-stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2019V5'/%3E%3Cpath%20d='M4%2019h16'/%3E%3Cpath%20d='M8%2016v-4'/%3E%3Cpath%20d='M12%2016V8'/%3E%3Cpath%20d='M16%2016v-6'/%3E%3C/svg%3E");
}

.stat-tile p {
    margin: 10px 0 2px;
    color: #167337;
    font-size: 12px;
    font-weight: 600;
}

.stat-tile strong {
    display: block;
    font-size: 12px;
}

.stat-tile small {
    color: #33445b;
}

.runs-page .stat-tile p {
    display: inline-block;
    margin: 0 0 0 12px;
    color: #33445b;
    font-size: 12px;
    font-weight: 750;
    vertical-align: middle;
}

.runs-page .runs-stat-completed p {
    color: #14754f;
}

.runs-page .runs-stat-active p {
    color: #0b70e0;
}

.runs-page .runs-stat-failed p {
    color: #d96b00;
}

.runs-page .stat-tile strong {
    display: block;
    margin-top: 21px;
    color: #081c34;
    font-size: 28px;
    line-height: 1.05;
}

.runs-page .stat-tile small {
    display: block;
    margin-top: 7px;
    color: #536784;
    font-size: 12px;
    line-height: 1.3;
}

.data-panel h2,
.settings-card h2,
.profile-card h2,
.outreach-sidebar h2 {
    margin: 0 0 14px;
    font-size: 12px;
}

.leads-columns {
    grid-template-columns: 34px 1.25fr 0.35fr 0.6fr 0.8fr 0.75fr;
}

.runs-columns {
    grid-template-columns: 1.4fr 0.55fr 1fr 0.75fr 40px;
}

.research-columns {
    grid-template-columns: minmax(0, 1.7fr) 0.55fr 0.75fr 0.75fr 0.65fr;
}

.automations-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.automations-center {
    display: grid;
    place-items: center;
    min-height: 0;
    padding-bottom: clamp(56px, 8vh, 96px);
    width: 100%;
}

.automation-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 188px;
    border: 1px dashed #d8e0e8;
    border-radius: 8px;
    background: #fff;
    padding: 28px;
    text-align: center;
    width: min(720px, 100%);
}

.automation-empty-state h3,
.automation-empty-state p {
    margin: 0;
}

.automation-empty-state h3 {
    color: #081c34;
    font-size: 16px;
    font-weight: 760;
}

.automation-empty-state p {
    max-width: 380px;
    color: #52647e;
    font-size: 13px;
    line-height: 1.45;
}

.automation-simple-list {
    display: grid;
    overflow: hidden;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
    width: min(720px, 100%);
}

.automation-simple-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(136px, auto);
    gap: 18px;
    align-items: center;
    min-height: 78px;
    padding: 16px 18px;
}

.automation-simple-row + .automation-simple-row {
    border-top: 1px solid #edf1f5;
}

.automation-simple-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.automation-simple-row > div:last-child {
    justify-items: end;
    text-align: right;
}

.automation-simple-row strong {
    overflow: hidden;
    color: #081c34;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automation-simple-row small,
.automation-simple-row span {
    color: #52647e;
    font-size: 12px;
    font-weight: 540;
}

@media (max-width: 640px) {
    .automations-center {
        padding-bottom: clamp(80px, 14vh, 128px);
    }

    .automation-simple-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .automation-simple-row > div:last-child {
        justify-items: start;
        text-align: left;
    }
}

.research-artifact-columns {
    grid-template-columns: minmax(0, 1.5fr) 0.45fr 0.8fr 0.5fr;
}

.research-page .page-heading > div:first-child {
    max-width: 500px;
}

.research-page .page-heading .filter-row {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
}

.research-page .page-heading .filter-button {
    padding: 0 12px;
}

.research-alert {
    display: grid;
    gap: 6px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
    padding: 12px 14px;
}

.research-alert.failed {
    border-color: #f0c9c3;
    background: #fff8f7;
}

.research-alert strong {
    color: #081c34;
}

.research-alert p {
    margin: 0;
    color: #33445b;
    font-size: 12px;
}

.research-list {
    display: grid;
}

.research-row {
    display: grid;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: transparent;
    color: #081c34;
    padding: 12px 8px;
    text-align: left;
}

.research-row:hover,
.research-row.active {
    background: #eef7ff;
}

.lead-review-row {
    cursor: pointer;
}

.draft-review-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    cursor: pointer;
}

.draft-review-row > span:last-child {
    justify-self: end;
    text-align: right;
}

.selection-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.selection-cell input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.research-row > span {
    min-width: 0;
    color: #33445b;
    font-size: 12px;
}

.research-row strong,
.research-row small {
    display: block;
}

.research-row strong {
    overflow: hidden;
    color: #081c34;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.research-row small {
    overflow: hidden;
    margin-top: 3px;
    color: #5c6675;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.research-more-note {
    border-top: 1px solid #edf0f3;
    color: #5c6675;
    padding: 12px 8px 0;
    font-size: 12px;
    font-weight: 600;
}

.research-reader-page {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 18px 20px 16px;
    color: #071a35;
}

.research-corpus-panel,
.research-reader-panel,
.research-account-panel {
    min-width: 0;
    min-height: 0;
    border: 1px solid #d9e0ea;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.92);
}

.research-corpus-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 22px 14px 18px;
}

.corpus-heading {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.corpus-heading-icon {
    position: relative;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    background: #eef0ff;
}

.corpus-heading-icon::before {
    width: 11px;
    height: 14px;
    border: 2px solid #6374ff;
    border-radius: 2px;
    box-shadow: inset 0 -4px 0 rgba(99, 116, 255, 0.18);
    content: "";
}

.corpus-heading h2,
.source-reader-heading h2,
.account-heading h2 {
    margin: 0;
    color: #071a35;
    font-size: 12px;
    line-height: 1.2;
}

.corpus-heading p,
.source-reader-heading p,
.account-heading p {
    margin: 8px 0 0;
    color: #415574;
    font-size: 12px;
    line-height: 1.35;
}

.corpus-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    background: #fff;
    padding: 0 14px;
}

.corpus-search span {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #5b6f90;
    border-radius: 50%;
}

.corpus-search span::after {
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #5b6f90;
    content: "";
    transform: rotate(45deg);
}

.corpus-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #071a35;
    font: inherit;
}

.corpus-search input::placeholder {
    color: #65758e;
}

.corpus-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.corpus-controls .carter-dropdown {
    min-width: 0;
    min-height: 40px;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    background: #fff;
    color: #071a35;
    padding: 0 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
}

.brief-list,
.corpus-list {
    display: grid;
    align-content: start;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.research-item-group {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 0;
}

.research-item-group-fill {
    flex: 1 1 auto;
}

.research-item-group-fill > .corpus-list {
    flex: 1 1 auto;
    max-height: none;
    margin-bottom: 0;
}

.research-item-group-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    border: 0;
    border-top: 1px solid #e8edf3;
    background: transparent;
    color: #071a35;
    padding: 8px 4px 6px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.research-item-group-toggle span:first-child {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.research-item-group-toggle small {
    color: #526682;
    font-size: 11px;
    font-weight: 700;
}

.research-item-group-toggle:hover,
.research-item-group-toggle:focus-visible {
    color: #0e4b84;
}

.research-item-group-toggle:focus-visible {
    outline: 2px solid #b9cce2;
    outline-offset: 2px;
}

.research-item-group-chevron {
    width: 8px;
    height: 8px;
    justify-self: center;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.research-item-group-toggle[aria-expanded="true"] .research-item-group-chevron {
    transform: rotate(225deg) translate(-2px, -1px);
}

.brief-list[hidden],
.corpus-list[hidden] {
    display: none;
}

.corpus-list {
    flex: 1 1 auto;
}

.brief-list {
    flex: 0 0 auto;
    max-height: 270px;
    margin-bottom: 14px;
}

.brief-source-row,
.corpus-source-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: start;
    border-bottom: 1px solid #e8edf3;
}

.brief-source,
.corpus-source {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e8edf3;
    background: transparent;
    color: #071a35;
    padding: 15px 12px;
    text-align: left;
}

.brief-source {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    border-bottom: 0;
    padding: 14px 12px;
}

.corpus-source-row .corpus-source {
    border-bottom: 0;
}

.brief-source-row.active,
.corpus-source-row.active,
.corpus-source.active {
    border-bottom-color: transparent;
    border-radius: 7px;
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px #9cc4e6;
}

.brief-source-row:hover,
.brief-source-row:focus-within,
.corpus-source-row:hover,
.corpus-source-row:focus-within,
.corpus-source:hover {
    background: #f5f9fc;
}

.brief-source-row.active:hover,
.brief-source-row.active:focus-within,
.corpus-source-row.active:hover,
.corpus-source-row.active:focus-within,
.corpus-source.active:hover {
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px #9cc4e6;
}

.brief-delete-trigger {
    display: grid;
    width: 28px;
    height: 28px;
    margin-top: 12px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #536784;
    cursor: pointer;
    opacity: 0;
    padding: 0;
    pointer-events: none;
}

.brief-delete-trigger:hover,
.brief-delete-trigger:focus-visible {
    background: #fff1ee;
    color: #b42318;
}

.brief-delete-trigger:focus-visible {
    outline: 2px solid rgba(180, 35, 24, 0.24);
    outline-offset: 2px;
}

.brief-delete-trigger span::before {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.brief-source-row:hover .brief-delete-trigger,
.brief-source-row:focus-within .brief-delete-trigger,
.corpus-source-row:hover .research-delete-trigger,
.corpus-source-row:focus-within .research-delete-trigger {
    opacity: 1;
    pointer-events: auto;
}

.brief-delete-trigger:disabled {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
}

@media (hover: none) {
    .brief-delete-trigger {
        opacity: 1;
        pointer-events: auto;
    }

    .brief-delete-trigger:disabled {
        opacity: 0.35;
        pointer-events: none;
    }
}

.source-document-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 19px;
    border: 2px solid #132a48;
    border-radius: 2px;
}

.source-document-icon::before {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 5px;
    height: 2px;
    background: #132a48;
    box-shadow: 0 5px 0 #132a48;
    content: "";
}

.source-copy {
    min-width: 0;
}

.source-copy strong,
.source-copy small {
    display: block;
}

.source-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #071a35;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.source-copy small {
    overflow: hidden;
    margin-top: 5px;
    color: #405573;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-score,
.source-relevance strong {
    display: inline-grid;
    min-width: 42px;
    min-height: 24px;
    place-items: center;
    border-radius: 6px;
    background: #c8f0d4;
    color: #087533;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 780;
}

.source-score-muted {
    min-width: 54px;
    background: #eef1f5;
    color: #475b76;
}

.source-score.research-status-needs-repair,
.source-relevance strong.research-status-needs-repair {
    background: #fff2c9;
    color: #704600;
}

.view-all-sources {
    justify-self: end;
    min-height: 44px;
    border: 1px solid #d5deea;
    border-radius: 7px;
    background: #fff;
    color: #071a35;
    padding: 0 18px;
    font-weight: 650;
}

.corpus-empty,
.source-empty-state {
    border: 1px dashed #d8e0ea;
    border-radius: 7px;
    background: #fbfcfe;
    padding: 18px;
}

.corpus-empty strong,
.source-empty-state h2 {
    margin: 0;
    color: #071a35;
    font-size: 12px;
}

.corpus-empty p,
.source-empty-state p {
    margin: 6px 0 0;
    color: #516580;
    font-size: 12px;
    line-height: 1.45;
}

.research-reader-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 26px 28px 30px;
}

.research-brief-reader-panel {
    align-content: stretch;
    align-items: stretch;
    overflow: hidden;
}

.research-brief-reader {
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(260px, 340px);
    align-items: start;
    gap: 34px;
    width: 100%;
    max-width: 1190px;
}

.research-brief-reader-panel .research-brief-reader {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.research-brief-main {
    display: grid;
    gap: 22px;
    min-width: 0;
    min-height: 0;
}

.research-brief-reader-panel .research-brief-main {
    align-content: start;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
    scrollbar-gutter: stable;
}

.research-brief-masthead {
    display: grid;
    gap: 7px;
    border-bottom: 1px solid #e6edf5;
    padding-bottom: 18px;
}

.research-brief-masthead p,
.research-brief-masthead small {
    margin: 0;
    color: #516580;
    font-size: 12px;
    line-height: 1.4;
}

.research-brief-masthead p {
    color: #284766;
    font-weight: 800;
}

.research-brief-masthead h2 {
    margin: 0;
    color: #071a35;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.32;
}

.research-thesis-section,
.research-brief-section-stack,
.research-brief-suggestions {
    max-width: 78ch;
}

.research-brief-reader .research-thesis-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.research-brief-reader .research-thesis-copy h2,
.research-brief-reader .research-thesis-copy h3 {
    color: #071a35;
    font-size: 15px;
    line-height: 1.35;
}

.research-brief-reader .research-thesis-copy h4,
.research-brief-reader .research-thesis-copy h5 {
    font-size: 14px;
}

.research-brief-reader .research-thesis-copy h2,
.research-brief-reader .research-thesis-copy h3,
.research-brief-reader .research-thesis-copy h4,
.research-brief-reader .research-thesis-copy h5 {
    margin-top: 12px;
}

.research-brief-reader .research-thesis-copy h2:first-child,
.research-brief-reader .research-thesis-copy h3:first-child,
.research-brief-reader .research-thesis-copy h4:first-child,
.research-brief-reader .research-thesis-copy h5:first-child {
    margin-top: 0;
}

.research-brief-reader .research-thesis-copy p,
.research-brief-reader .research-thesis-copy li,
.research-brief-reader .research-thesis-copy blockquote {
    color: #10253f;
    font-size: 14px;
    line-height: 1.72;
}

.research-brief-section-stack {
    display: grid;
    gap: 18px;
}

.research-brief-section-block {
    display: grid;
    gap: 12px;
    border-top: 1px solid #e7edf4;
    padding-top: 16px;
}

.research-brief-section-block h3,
.research-brief-suggestions h3,
.research-sidecar-section h3 {
    margin: 0;
    color: #071a35;
    font-size: 12px;
    font-weight: 820;
    line-height: 1.35;
}

.research-section-body {
    gap: 10px;
}

.research-section-item-list p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.research-brief-suggestions {
    display: grid;
    gap: 12px;
    border-top: 1px solid #e7edf4;
    padding-top: 16px;
}

.research-brief-sidecar {
    position: sticky;
    top: 0;
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 164px);
    max-height: calc(100dvh - 164px);
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.research-sidecar-section {
    display: grid;
    gap: 10px;
    border-top: 1px solid #e7edf4;
    padding-top: 14px;
}

.research-sidecar-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.research-sidecar-section p {
    margin: 0;
    color: #405573;
    font-size: 12px;
    line-height: 1.55;
}

.research-brief-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.research-brief-facts div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
}

.research-brief-facts dt,
.research-brief-facts dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.research-brief-facts dt {
    color: #6a7890;
    font-weight: 720;
}

.research-brief-facts dd {
    color: #071a35;
    font-weight: 720;
}

.research-brief-facts dd.research-status-needs-repair {
    color: #704600;
}

.research-sidecar-source-list .source-ledger-item {
    grid-template-columns: minmax(30px, auto) minmax(0, 1fr);
    padding: 10px 0;
}

.research-sidecar-source-list .source-ledger-copy p {
    font-size: 11px;
    line-height: 1.55;
}

.source-reader-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    border-bottom: 1px solid #e8edf3;
    padding-bottom: 18px;
}

.source-reader-heading h2 {
    font-size: 15px;
    line-height: 1.35;
}

.source-reader-heading h2 a {
    display: inline-block;
    color: #234e82;
    font-size: 12px;
    text-decoration: none;
    transform: translateY(-1px);
}

.source-relevance {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.source-relevance span {
    color: #526682;
    font-size: 12px;
}

.source-reader-section,
.source-notes-section {
    display: grid;
    gap: 12px;
}

.source-reader-heading,
.source-reader-compact-section {
    max-width: 86ch;
}

.source-details-section {
    max-width: 96ch;
}

.source-reader-callout {
    display: grid;
    gap: 7px;
    border: 1px solid #dce7f3;
    border-radius: 6px;
    background: #f6faff;
    padding: 14px 16px;
}

.source-reader-callout span {
    color: #526682;
    font-size: 12px;
    font-weight: 750;
}

.source-reader-callout strong {
    color: #071a35;
    font-size: 12px;
    line-height: 1.55;
}

.source-reader-compact-section {
    border-top: 1px solid #e9eef5;
    background: #fbfcfe;
    padding: 14px 12px;
}

.source-reader-section h3,
.source-notes-section h3,
.account-section h3,
.account-outreach-panel h3 {
    margin: 0;
    color: #071a35;
    font-size: 12px;
    font-weight: 800;
}

.source-reader-section p,
.source-reader-section li,
.source-reader-section blockquote {
    color: #071a35;
    font-size: 13px;
    line-height: 1.75;
}

.source-reader-section p {
    margin: 0;
}

.source-reader-section .research-thesis-copy {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 14px;
}

.research-thesis-copy p,
.research-thesis-copy ul,
.research-thesis-copy ol,
.research-thesis-copy pre,
.research-thesis-copy blockquote,
.research-thesis-copy h2,
.research-thesis-copy h3,
.research-thesis-copy h4,
.research-thesis-copy h5 {
    margin: 0;
}

.research-thesis-copy h2,
.research-thesis-copy h3,
.research-thesis-copy h4,
.research-thesis-copy h5 {
    color: #071a35;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.research-thesis-copy ul,
.research-thesis-copy ol {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.research-thesis-copy p,
.research-thesis-copy li,
.research-thesis-copy blockquote {
    color: #10253f;
    font-size: 13px;
    line-height: 1.78;
}

.research-thesis-copy a {
    color: #173f70;
    font-weight: 700;
}

.research-thesis-copy .research-citation-link {
    display: inline-block;
    margin: 0 0 0 0.18em;
    border: 0;
    background: transparent;
    color: #1b5b96;
    font-family: inherit;
    font-size: 0.74em;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    vertical-align: 0.35em;
}

.research-thesis-copy button.research-citation-link {
    appearance: none;
    margin: 0 0 0 0.18em;
    padding: 0;
    cursor: pointer;
}

.research-thesis-copy .research-citation-link + .research-citation-link {
    margin-left: 0.34em;
}

.research-thesis-copy .research-citation-link:hover,
.research-thesis-copy .research-citation-link:focus-visible {
    color: #083765;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    outline: 1px solid #b9cce2;
    outline-offset: 2px;
}

.research-thesis-copy .research-citation-link.is-active-citation {
    background: linear-gradient(180deg, transparent 46%, #dcecff 46%);
    color: #071a35;
}

.research-thesis-copy code {
    border-radius: 4px;
    background: #eef2f7;
    padding: 1px 5px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.research-thesis-copy pre {
    overflow-x: auto;
    border: 1px solid #e1e8f1;
    border-radius: 6px;
    background: #f7f9fc;
    padding: 10px;
}

.research-thesis-copy pre code {
    display: block;
    background: transparent;
    padding: 0;
    white-space: pre;
}

.source-reader-section ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.source-highlight-list {
    gap: 8px;
}

.source-ledger-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-ledger-item {
    display: grid;
    grid-template-columns: minmax(34px, auto) minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid #e5ebf3;
    padding: 11px 0;
    scroll-margin-top: 18px;
}

.source-ledger-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.source-ledger-item:target,
.source-ledger-item.is-citation-target,
.source-ledger-item:focus-visible {
    outline: 1px solid #c8d8ec;
    outline-offset: 4px;
    background: #f4f8fd;
}

.source-ledger-token {
    display: inline-grid;
    min-width: 30px;
    min-height: 22px;
    place-items: center;
    align-self: start;
    border: 1px solid #d6e0ec;
    border-radius: 4px;
    background: #f7f9fc;
    color: #3c5878;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.source-ledger-item.is-citation-target .source-ledger-token,
.source-ledger-item:target .source-ledger-token {
    border-color: #0e4b84;
    background: #0e4b84;
    color: #fff;
}

.source-ledger-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.source-ledger-title,
.source-ledger-title a {
    color: #071a35;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.source-ledger-title a {
    text-decoration-color: #b7c4d5;
    text-underline-offset: 2px;
}

.source-ledger-title a:hover,
.source-ledger-title a:focus-visible {
    color: #0e4b84;
    text-decoration-color: #0e4b84;
}

.source-ledger-meta {
    color: #5d6e86;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.source-ledger-copy p {
    color: #31445f;
    font-size: 12px;
    line-height: 1.6;
}

.source-reader-section blockquote {
    margin: 2px 0 0;
    border-left: 3px solid #d8e5f8;
    color: #405573;
    padding-left: 12px;
}

.source-notes-section textarea {
    min-height: 94px;
    resize: vertical;
    border: 1px solid #dbe3ed;
    border-radius: 7px;
    outline: 0;
    color: #071a35;
    padding: 12px;
    font: inherit;
    line-height: 1.5;
}

.source-details-section {
    gap: 10px;
    border-top: 1px solid #e4eaf2;
    background: #f7f8fa;
    padding: 14px 12px;
}

.source-details-section dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.source-details-section dl > div {
    display: grid;
    grid-template-columns: minmax(76px, 0.32fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.source-details-section dt,
.source-details-section dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.source-details-section dt {
    color: #6b788c;
    font-weight: 750;
}

.source-details-section dd,
.source-details-section a {
    color: #334866;
}

.source-notes-section textarea::placeholder {
    color: #48607f;
}

.source-tip {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 64px;
    border-radius: 6px;
    background: #e8f3ff;
    color: #0764c7;
    padding: 0 14px;
}

.source-tip span {
    position: relative;
    width: 14px;
    height: 14px;
}

.source-tip span::before,
.source-tip span::after {
    position: absolute;
    background: #0b74d8;
    content: "";
    transform: rotate(45deg);
}

.source-tip span::before {
    top: 1px;
    left: 5px;
    width: 6px;
    height: 6px;
}

.source-tip span::after {
    right: 1px;
    bottom: 2px;
    width: 4px;
    height: 4px;
}

.source-tip p {
    margin: 0;
    font-size: 12px;
}

.research-account-panel {
    overflow: auto;
    overscroll-behavior: contain;
    padding-bottom: 24px;
}

.account-briefing-panel {
    border-color: #cbd6e3;
    background: #fff;
}

.account-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e8edf3;
    padding: 16px 20px;
}

.research-account-panel .empty-logo {
    width: 54px;
    height: 54px;
}

.account-metrics {
    display: grid;
    grid-template-columns: 1fr 1.24fr;
    border-bottom: 1px solid #e8edf3;
    padding: 14px 20px 18px;
}

.briefing-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #e8edf3;
    padding: 12px 20px 14px;
}

.briefing-tag-list span {
    border: 1px solid #d8e0ea;
    border-radius: 5px;
    background: #f7f9fc;
    color: #38506e;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
}

.account-metrics > div {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    align-items: center;
    gap: 8px;
}

.account-metrics > div + div {
    border-left: 1px solid #d9e0ea;
    padding-left: 24px;
}

.account-metrics span {
    flex: 0 0 100%;
    color: #5f718b;
    font-size: 12px;
}

.account-metrics strong {
    color: #071a35;
    font-size: 12px;
}

.account-metrics em {
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.account-metrics em.high {
    background: #d6f3dd;
    color: #16763a;
}

.account-metrics em.medium {
    background: #fff1d6;
    color: #95611f;
}

.account-metrics em.low,
.account-metrics em.unknown {
    background: #eef1f5;
    color: #526682;
}

.account-section,
.account-outreach-panel {
    margin: 0 20px;
}

.account-section {
    display: grid;
    gap: 10px;
    border-top: 1px solid #edf0f3;
    padding: 16px 0;
}

.account-section-primary {
    margin-top: 18px;
    border-top: 0;
    border-radius: 6px;
    background: #f6faff;
    padding: 15px 16px;
}

.account-next-move {
    border-top: 0;
    border-radius: 6px;
    background: #f6faf5;
    padding: 15px 16px;
}

.account-section p,
.account-section li,
.account-outreach-panel p {
    margin: 0;
    color: #071a35;
    font-size: 12px;
    line-height: 1.55;
}

.account-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.account-outreach-panel {
    display: grid;
    gap: 10px;
    border-radius: 6px;
    background: #f0f6e8;
    padding: 16px;
}

.related-research > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-research span {
    border-radius: 5px;
    background: #eef1f5;
    color: #38506e;
    padding: 7px 12px;
    font-size: 12px;
}

.related-research small {
    align-self: center;
    color: #38506e;
    font-size: 12px;
    font-weight: 700;
}

.source-signal-list {
    display: grid;
    gap: 10px;
}

.source-signal-item {
    display: grid;
    gap: 5px;
    border-bottom: 1px solid #edf0f3;
    padding-bottom: 10px;
}

.source-signal-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.source-signal-item strong {
    color: #081c34;
    font-size: 12px;
}

.source-signal-item span,
.source-signal-item p {
    margin: 0;
    color: #5c6675;
    font-size: 12px;
    line-height: 1.45;
}

.source-signal-item a {
    color: #081c34;
    font-size: 12px;
    font-weight: 700;
}

.queue-empty.tall {
    min-height: 112px;
}

.side-inspector {
    align-self: start;
    overflow: hidden;
    padding: 0;
}

.orange-logo {
    background: #df5d06;
    color: #fff;
}

.pale-logo {
    background: #edf3ff;
    color: #09213d;
}

.small-logo {
    width: 32px;
    height: 32px;
}

.soft-blue {
    background: #eef3ff;
}

.step-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.step-list li,
.gate-list li,
.settings-list li {
    color: #17283b;
    font-size: 12px;
}

.step-list li span,
.gate-list li span,
.settings-list li span {
    float: right;
    color: #5c6675;
}

.outreach-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fbfaf8;
}

.outreach-inspector {
    display: none;
}

.outreach-header-actions a[href="#outreach-gates"] {
    display: none;
}

.outreach-main {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 28px 28px 22px;
}

.outreach-ops-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.outreach-title-block {
    min-width: 220px;
}

.outreach-title-block h1 {
    margin: 0;
    color: #081c34;
    font-size: 12px;
    line-height: 1.1;
}

.outreach-title-block p {
    margin: 6px 0 0;
    color: #536784;
    font-size: 12px;
}

.outreach-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.outreach-queue-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(124px, 1fr));
    overflow: hidden;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
}

.outreach-queue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 72px;
    border-right: 1px solid #e7eaed;
    color: #081c34;
    padding: 14px 16px;
}

.outreach-queue-card:last-child {
    border-right: 0;
}

.outreach-queue-card.active {
    box-shadow: inset 0 0 0 2px #ff7a1a;
    background: #fff9f0;
}

.outreach-queue-card small {
    color: #536784;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.outreach-queue-card strong {
    color: #081c34;
    font-size: 12px;
}

.outreach-draft-workbench {
    display: grid;
    grid-template-columns: minmax(260px, 0.4fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.outreach-list-panel,
.outreach-editor-panel {
    overflow: hidden;
}

.outreach-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 12px;
    margin: 14px 0;
}

.outreach-filter-row .field-line {
    margin-bottom: 0;
}

.outreach-filter-row .secondary-action {
    min-height: 38px;
}

.queue-nav {
    display: grid;
    gap: 8px;
    margin: 16px 0 28px;
}

.queue-nav span {
    display: flex;
    justify-content: space-between;
    border-radius: 6px;
    padding: 12px;
    color: #081c34;
    font-weight: 600;
    text-decoration: none;
}

.queue-nav span.active {
    background: #fff1df;
    color: #e85d04;
}

.queue-nav b {
    border-radius: 6px;
    background: #fff;
    padding: 2px 8px;
}

.draft-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.draft-meta-grid div {
    display: grid;
    gap: 6px;
}

.draft-meta-grid span,
.field-line span {
    color: #5c6675;
    font-size: 12px;
}

.field-line {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field-line input,
.field-line .carter-dropdown {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #081c34;
    padding: 0 12px;
}

.field-line textarea,
.draft-body-input {
    width: 100%;
    min-height: 210px;
    resize: vertical;
    border: 0;
    background: #fff;
    color: #081c34;
    padding: 18px;
    line-height: 1.5;
}

.review-note-field textarea {
    min-height: 88px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    padding: 10px 12px;
}

.review-helper {
    display: block;
    margin: -4px 0 14px;
    color: #5c6675;
    font-size: 12px;
}

.bulk-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fbfcfd;
    margin-bottom: 14px;
    padding: 12px;
}

.bulk-action-bar strong,
.bulk-action-bar small {
    display: block;
}

.bulk-action-bar small {
    color: #5c6675;
    font-size: 12px;
}

.bulk-action-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.draft-edit-grid,
.review-action-grid {
    display: grid;
    gap: 12px;
}

.draft-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-alert a {
    color: #e85d04;
    font-weight: 700;
    text-decoration: none;
}

.message-box {
    min-height: 260px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #d9dcd8;
    padding: 8px;
}

.editor-toolbar button {
    min-height: 30px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
}

.editor-toolbar span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #5c6675;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 780;
}

.empty-message {
    padding: 28px;
    color: #5c6675;
}

.outreach-top-controls {
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(220px, 1fr) minmax(160px, 196px) minmax(150px, 180px) auto auto auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.outreach-compose-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: #061a33;
    color: #fff;
    cursor: pointer;
    font-weight: 850;
    padding: 0 18px;
}

.outreach-compose-icon {
    width: 18px;
    height: 18px;
    fill: none;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.outreach-unsaved-draft-row .outreach-draft-row-time {
    color: #ff7a1a;
}

.outreach-compose-button:disabled,
.outreach-select-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.outreach-compose-button.is-active {
    border-color: #ff7a1a;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.14);
}

.outreach-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #526178;
    padding: 0 10px;
}

.outreach-search-field span {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.outreach-search-field::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #5d6b82;
    border-radius: 50%;
}

.outreach-search-field::after {
    content: "";
    width: 7px;
    height: 2px;
    margin-left: -3px;
    background: #5d6b82;
    transform: rotate(45deg);
}

.outreach-search-field input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #081c34;
    font: inherit;
    padding: 0 10px;
}

.outreach-search-field kbd {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    border: 1px solid #d9dcd8;
    border-radius: 5px;
    background: #fbfcfd;
    color: #637086;
    font-size: 12px;
    font-weight: 800;
}

.outreach-filter-dropdown .carter-dropdown-trigger,
.outreach-filter-button,
.outreach-select-button {
    min-height: 42px;
}

.outreach-filter-button,
.outreach-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.outreach-select-button {
    justify-self: end;
}

.outreach-select-box {
    width: 14px;
    height: 14px;
    border: 1px solid #9aa7b8;
    border-radius: 3px;
    background: #fff;
}

.outreach-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #526178;
    padding: 10px 12px;
}

.outreach-review-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr) minmax(300px, 360px);
    gap: 14px;
    min-width: 0;
    min-height: 0;
}

.outreach-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
}

.outreach-list-head strong {
    color: #081c34;
}

.outreach-list-head span {
    color: #5c6675;
    font-size: 12px;
    font-weight: 700;
}

.outreach-draft-list {
    display: grid;
    align-content: start;
    min-height: 0;
}

.outreach-draft-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    border: 0;
    border-top: 1px solid #edf0f3;
    background: transparent;
    color: #081c34;
    cursor: pointer;
    min-height: 56px;
    padding: 9px 12px;
    text-align: left;
}

.outreach-draft-row.active {
    border-top-color: transparent;
    border-radius: 7px;
    background: #eef7ff;
}

.outreach-draft-row:hover {
    background: #eef7ff;
}

.outreach-draft-row .selection-cell {
    grid-row: span 2;
    align-self: center;
}

.outreach-draft-row-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.outreach-draft-row-primary,
.outreach-draft-row-primary strong,
.outreach-draft-row-primary span,
.outreach-draft-row-copy small,
.outreach-draft-row-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outreach-draft-row-primary {
    display: grid;
    grid-template-columns: minmax(72px, 0.44fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.outreach-draft-row-primary strong,
.outreach-draft-row-primary span {
    color: #081c34;
    font-size: 13px;
    line-height: 1.25;
}

.outreach-draft-row-primary strong {
    font-weight: 760;
}

.outreach-draft-row-primary span {
    font-weight: 700;
}

.outreach-draft-row-copy small,
.outreach-draft-row-time {
    color: #5c6675;
    font-size: 11px;
    font-weight: 650;
}

.outreach-draft-row-time {
    align-self: start;
    padding-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    margin-top: 2px;
    border-radius: 999px;
    background: #8b97a8;
}

.status-dot.needs-review {
    background: #ff7a1a;
}

.status-dot.ready {
    background: #1f7ae0;
}

.status-dot.reviewed {
    background: #8a3ffc;
}

.status-dot.queued {
    background: #0f8194;
}

.status-dot.sent {
    background: #139c4a;
}

.status-dot.rejected {
    border: 2px solid #dc2626;
    background: #fff;
}

.status-dot.trashed {
    border: 2px solid #6b7280;
    background: #f3f4f6;
}

.outreach-draft-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 18px;
}

.outreach-draft-header,
.outreach-draft-title,
.outreach-draft-header-meta {
    display: flex;
    align-items: center;
    min-width: 0;
}

.outreach-draft-header {
    justify-content: space-between;
    gap: 14px;
}

.outreach-draft-title {
    gap: 12px;
}

.outreach-draft-title h2 {
    margin: 0;
    overflow: hidden;
    color: #081c34;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outreach-state-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 6px;
    background: #fff0df;
    color: #e85d04;
    font-size: 12px;
    font-weight: 850;
    padding: 0 14px;
}

.outreach-draft-header-meta {
    justify-content: flex-end;
    gap: 12px;
    color: #5c6675;
    font-size: 12px;
    font-weight: 700;
}

.icon-action {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #364760;
    cursor: pointer;
    font-weight: 850;
}

.icon-action:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.provenance-list a {
    color: #006fe6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.success-copy {
    color: #0c8f44 !important;
}

.warning-copy {
    color: #e85d04 !important;
}

.danger-copy {
    color: #c91f37 !important;
}

.outreach-address-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
    gap: 12px 16px;
    align-items: end;
}

.outreach-address-grid .field-line {
    margin: 0;
}

.outreach-address-grid .field-line:nth-of-type(3),
.outreach-address-grid .field-line:nth-of-type(4),
.outreach-address-grid .subject-field {
    grid-column: 1 / -1;
}

.subject-field {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
}

.subject-field span {
    grid-column: 1;
}

.subject-field input {
    grid-column: 2;
}

.outreach-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    align-items: start;
}

.outreach-message-box {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 292px;
    overflow: hidden;
    resize: vertical;
}

.outreach-message-box .editor-toolbar {
    align-items: center;
    overflow-x: auto;
}

.outreach-message-box .editor-toolbar button {
    min-width: 34px;
    color: #243952;
    font-weight: 850;
}

.outreach-message-box .editor-toolbar .editor-toolbar-pill {
    min-width: 34px;
    justify-content: center;
    color: #243952;
    font-weight: 850;
}

.draft-body-preview {
    min-height: 196px;
    padding: 18px;
    color: #081c34;
    line-height: 1.55;
}

.draft-body-preview p {
    margin: 0 0 12px;
}

.draft-body-preview p:last-child {
    margin-bottom: 0;
}

.draft-body-preview mark {
    border-radius: 4px;
    background: #fff08a;
    color: #081c34;
    padding: 1px 4px;
}

.editor-footer {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-top: 1px solid #d9dcd8;
    color: #5c6675;
    padding: 8px;
    font-size: 12px;
    font-weight: 800;
}

.editor-footer span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 10px;
}

.editor-footer span.active {
    background: #f1f3f5;
    color: #081c34;
}

.editor-footer span:last-child {
    justify-self: end;
}

.outreach-review-rail {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.outreach-rail-card {
    display: grid;
    gap: 12px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.outreach-rail-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.outreach-rail-card h3 {
    margin: 0;
    color: #081c34;
}

.provenance-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.provenance-list div {
    display: grid;
    grid-template-columns: minmax(82px, 0.6fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.provenance-list dt {
    color: #536784;
    font-size: 12px;
    font-weight: 800;
}

.provenance-list dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #081c34;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.targeting-page {
    display: block;
}

.targeting-setup-panel {
    display: grid;
    gap: 0;
}

.setup-section {
    margin-top: 28px;
}

.targeting-setup-panel .setup-section:first-child {
    margin-top: 0;
}

.choice-grid,
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.choice-card,
.criteria-card,
.upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.choice-card.selected {
    border-color: #e85d04;
    background: #fff9f0;
}

.small-ring {
    width: 52px;
    height: 52px;
    border-width: 6px;
}

.criteria-card strong,
.choice-card h3 {
    margin: 0 0 4px;
}

.criteria-card p,
.choice-card p,
.upload-row p {
    margin: 0;
    font-size: 12px;
}

.criteria-card span {
    color: #081c34;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.criteria-card.editable-criteria {
    align-items: stretch;
}

.criteria-input {
    width: min(260px, 100%);
    min-height: 38px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #081c34;
    padding: 8px 10px;
}

.criteria-textarea {
    min-height: 84px;
    resize: vertical;
}

.run-compose {
    display: grid;
    gap: 18px;
    margin: 9px 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.run-compose .field-line {
    gap: 14px;
    min-height: 95px;
    margin-bottom: 0;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
}

.run-compose .field-line span {
    color: #536784;
}

.run-compose textarea {
    width: 100%;
    min-height: 36px;
    resize: vertical;
    border: 0;
    background: transparent;
    color: #081c34;
    padding: 0 8px;
    line-height: 1.45;
}

.run-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.run-compose-footer .primary-action {
    flex: 0 0 auto;
    min-width: 160px;
    min-height: 43px;
    white-space: nowrap;
}

.run-compose-footer div {
    display: grid;
    gap: 4px;
}

.run-compose-footer small {
    color: #5c6675;
}

.run-gate-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 70px;
    min-width: 0;
    width: min(748px, 100%);
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
}

.run-gate-note > div {
    min-width: 0;
}

.run-gate-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #b8d7ff;
    border-radius: 999px;
    background: #eef6ff;
    color: #1d75bd;
    font-size: 12px;
    font-weight: 850;
}

.run-gate-icon::before {
    content: "i";
}

.runs-page .next-step-panel .action-stack {
    flex-wrap: wrap;
}

.runs-page .next-step-panel .primary-action,
.runs-page .next-step-panel .secondary-action {
    flex: 1 1 140px;
}

.run-detail-list {
    display: grid;
    gap: 10px;
}

.run-detail-item {
    display: grid;
    gap: 5px;
    border-bottom: 1px solid #edf0f3;
    padding-bottom: 10px;
}

.run-detail-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.run-detail-item strong {
    color: #081c34;
    font-size: 12px;
}

.run-detail-item span,
.run-detail-item small,
.run-detail-empty {
    color: #5c6675;
    font-size: 12px;
    line-height: 1.45;
}

.run-detail-item a {
    width: fit-content;
    color: #1d75bd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.run-detail-item.failure {
    border-left: 3px solid #c5392f;
    padding-left: 10px;
}

.runs-panel {
    padding: 22px;
}

.runs-panel .section-inline-title {
    margin-bottom: 9px;
}

.runs-panel .table-head {
    margin-top: 4px;
    padding-right: 10px;
    padding-left: 10px;
}

.runs-page .research-list {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    overflow: hidden;
}

.runs-empty-state {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 260px;
    border-top: 1px solid #edf0f3;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.78), rgba(255, 255, 255, 0.96));
    padding: 34px 18px;
    text-align: center;
}

.runs-empty-state h3 {
    margin: 0;
    font-size: 14px;
}

.runs-empty-state p {
    max-width: 430px;
    line-height: 1.45;
}

.runs-empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cdd5df;
    border-radius: 8px;
    background: #fff;
    color: #667387;
}

.runs-empty-icon::before {
    content: "";
    width: 20px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-width: 3px;
    border-radius: 3px 3px 5px 5px;
    box-shadow: inset 0 4px 0 rgba(102, 115, 135, 0.12);
}

.runs-inspector .inspector-top {
    border-bottom: 1px solid #edf0f3;
    padding: 28px 28px 42px;
}

.runs-inspector .empty-logo {
    width: 48px;
    height: 48px;
    background: #08213d;
    color: #ff7a1a;
}

.runs-inspector .inspector-tabs {
    border-bottom: 1px solid #edf0f3;
    overflow-x: visible;
    padding: 0 16px;
}

.runs-inspector .inspector-tabs::-webkit-scrollbar {
    display: none;
}

.runs-inspector .inspector-panel,
.runs-inspector .inspector-section,
.runs-inspector .next-step-panel {
    margin: 16px;
}

.runs-inspector .inspector-panel {
    border: 1px solid #ffe2ae;
    background: #fff3dc;
    min-height: 122px;
}

.runs-inspector .inspector-section {
    margin-top: 16px;
}

.runs-inspector .inspector-panel + .inspector-section {
    margin-top: 35px;
}

.runs-inspector .next-step-panel {
    margin-top: 14px;
}

.runs-inspector .step-list {
    padding-left: 0;
    list-style-position: inside;
}

.runs-inspector .step-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.runs-inspector .step-list li span {
    float: none;
    flex: 0 0 auto;
    color: #667387;
}

.runs-actions-panel {
    display: grid;
    gap: 12px;
}

.runs-actions-panel .action-stack {
    display: grid;
    gap: 10px;
}

.runs-actions-panel .primary-action {
    background: #7fbcb4;
    box-shadow: none;
}

.runs-actions-panel .primary-action:not(:disabled):hover {
    background: #6bacA4;
}

.upload-row {
    margin-top: 14px;
    border-style: dashed;
}

.upload-actions {
    display: flex;
    flex: 0 1 480px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.file-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    max-width: 220px;
    overflow: hidden;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #081c34;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}

.file-picker span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.targeting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.targeting-wishlist-page {
    padding-bottom: 0;
}

.targeting-wishlist-page .page-heading-actions {
    align-items: center;
    gap: 12px;
}

.targeting-wishlist-canvas {
    display: grid;
    align-content: start;
    gap: 0;
    min-height: calc(100vh - 160px);
    color: #081c34;
}

.targeting-wishlist-canvas > .research-alert {
    align-self: start;
}

.targeting-action-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 80;
    display: grid;
    max-width: min(380px, calc(100vw - 32px));
    border: 1px solid #b9ded5;
    border-radius: 8px;
    background: #f4fffb;
    box-shadow: 0 16px 36px rgba(8, 28, 52, 0.16);
    color: #07594e;
    padding: 12px 14px;
    pointer-events: none;
    transform: translateX(-50%);
    animation: targeting-toast-lifecycle 3s ease forwards;
}

.targeting-action-toast strong {
    font-size: 13px;
    font-weight: 780;
    line-height: 1.35;
}

@keyframes targeting-toast-lifecycle {
    0%,
    76% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
}

.targeting-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px);
    column-gap: 18px;
    align-items: start;
    padding: 10px 0 0;
}

.targeting-main-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.targeting-directive {
    min-width: 0;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
    padding: 20px 22px;
    box-shadow: none;
}

.targeting-eyebrow,
.targeting-tune h2,
.targeting-assistant-strip h2,
.readiness-list h3 {
    margin: 0;
    color: #52627c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.targeting-sentence {
    display: grid;
    gap: 8px;
    max-width: 940px;
    margin: 16px 0 0;
    color: #071d39;
}

.targeting-sentence-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 34px;
}

.sentence-copy {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #33445b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.target-token {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: min(100%, 320px);
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    padding: 0 11px;
    cursor: pointer;
}

.target-token::after {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 1.6px solid currentColor;
    border-right: 1.6px solid currentColor;
    opacity: 0.72;
    transform: rotate(-45deg);
}

.token-companies,
.chip-companies {
    border-color: #c8d8eb;
    background: #f5f9fe;
    color: #24548c;
}

.token-buyers,
.chip-buyers {
    border-color: #d8d0eb;
    background: #f8f6fd;
    color: #59448e;
}

.token-signals,
.chip-signals {
    border-color: #cddfc7;
    background: #f7fbf4;
    color: #416d34;
}

.chip-proof {
    border-color: #c6dee6;
    background: #f6fbfc;
    color: #286d7d;
}

.token-avoid,
.chip-avoid {
    border-color: #edcdcc;
    background: #fff8f7;
    color: #9c2f2b;
}

.chip-examples {
    border-color: #ead7bc;
    background: #fffaf2;
    color: #795a2a;
}

.targeting-hint {
    margin: 10px 0 0;
    color: #52627c;
    font-size: 13px;
}

.suggestion-list button,
.chip-add,
.chip-editor button {
    border: 0;
    background: transparent;
    color: #007c75;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
}

.chip-add:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.targeting-tune {
    min-width: 0;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
    padding: 18px 20px;
    box-shadow: none;
}

.targeting-tune h2 {
    margin-bottom: 10px;
}

.tune-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(236px, 0.46fr) minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    min-height: 54px;
    border-top: 1px solid #e7edf4;
    background: transparent;
    padding: 9px 32px 9px 0;
    transition: background-color 150ms ease;
}

.tune-row + .tune-row {
    margin-top: 0;
}

.tune-row:hover,
.tune-row:focus-within {
    background: #fbfcfd;
}

.tune-row::after {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #8a98aa;
    border-bottom: 1.5px solid #8a98aa;
    content: "";
    transform: translateY(-50%) rotate(-45deg);
}

.tune-label {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    color: #0b203d;
    font-size: 14px;
    font-weight: 650;
}

.tune-label strong,
.tune-label small {
    display: block;
}

.tune-label strong {
    font-weight: 650;
    line-height: 1.2;
}

.tune-label small {
    margin-top: 2px;
    color: #52627c;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.25;
}

.tune-row-icon {
    position: relative;
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #dfe6ee;
    background: #fff;
    box-shadow: none;
}

.tune-row-icon::before,
.tune-row-icon::after {
    position: absolute;
    content: "";
}

.tune-row-icon::before {
    inset: 7px;
    border: 1.6px solid currentColor;
    border-radius: 4px;
}

.tune-row-icon::after {
    top: 13px;
    right: 7px;
    left: 7px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.icon-companies {
    background: #f5f9fe;
    color: #416a9d;
}

.icon-buyers {
    background: #f8f6fd;
    color: #66518e;
}

.icon-signals {
    background: #f7fbf4;
    color: #527946;
}

.icon-proof {
    background: #fff9f1;
    color: #8c6230;
}

.icon-avoid {
    background: #fff8f7;
    color: #9c4a45;
}

.icon-examples {
    background: #f5f9fe;
    color: #526f9e;
}

.tune-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.wishlist-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 28px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
    padding: 0 9px;
    cursor: pointer;
}

.wishlist-chip span {
    font-weight: 700;
    opacity: 0.72;
}

.chip-add {
    min-height: 28px;
    padding: 0 4px;
}

.tune-chips .chip-add:first-of-type {
    margin-left: auto;
}

.chip-editor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.chip-editor input {
    width: min(220px, 58vw);
    min-height: 30px;
    border: 0;
    border-bottom: 1px solid #9aa7b8;
    background: transparent;
    color: #081c34;
    font-size: 13px;
    font-weight: 500;
    outline: none;
}

.targeting-assistant-strip {
    position: sticky;
    top: 24px;
    display: grid;
    align-content: start;
    gap: 0;
    min-width: 0;
}

.targeting-rail-card {
    min-width: 0;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.targeting-rail-section {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.targeting-rail-section + .targeting-rail-section {
    border-top: 1px solid #e7edf4;
}

.targeting-rail-header {
    display: grid;
    gap: 4px;
}

.targeting-rail-header span {
    color: #52627c;
    font-size: 12px;
    font-weight: 650;
}

.targeting-assistant-strip p {
    margin: 0;
    color: #52627c;
    font-size: 13px;
}

.suggestion-list {
    display: grid;
    gap: 0;
    margin-top: 4px;
    border: 1px solid #e7edf4;
    border-radius: 7px;
    overflow: hidden;
}

.suggestion-list button {
    justify-self: stretch;
    width: 100%;
    min-height: 34px;
    border-radius: 0;
    color: #0b203d;
    text-align: left;
    padding: 0 10px;
}

.suggestion-list button + button {
    border-top: 1px solid #e7edf4;
}

.suggestion-list .suggestion-negative {
    color: #c22121;
}

.readiness-list {
    display: grid;
    gap: 11px;
}

.readiness-list div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
}

.readiness-list strong {
    color: #081c34;
    font-size: 13px;
}

.readiness-list small {
    grid-column: 2;
    color: #52627c;
    font-size: 12px;
}

.readiness-dot {
    width: 11px;
    height: 11px;
    margin-top: 4px;
    border-radius: 999px;
    background: #d7dde4;
}

.readiness-dot.ready {
    background: #0b9b75;
}

.readiness-dot.warning,
.readiness-dot.optional {
    border: 2px solid #ff6b00;
    background: transparent;
}

.targeting-wishlist-note {
    margin: 0;
    border: 1px solid #e6ebef;
    border-radius: 8px;
    background: #f8fafc;
    color: #52627c;
    font-size: 13px;
    line-height: 1.45;
    padding: 12px 14px;
}

@media (max-width: 980px) {
    .targeting-workspace {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .targeting-assistant-strip {
        position: static;
        top: auto;
    }
}

@media (max-width: 760px) {
    .targeting-wishlist-page .page-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .target-token {
        max-width: 100%;
        min-height: 32px;
        font-size: 14px;
        padding: 0 10px;
    }

    .tune-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 11px 28px 11px 0;
    }

    .tune-chips .chip-add:first-of-type {
        margin-left: 0;
    }

    .chip-editor {
        width: 100%;
        flex-wrap: wrap;
    }

    .chip-editor input {
        flex: 1 1 120px;
        width: auto;
        min-width: 0;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-card.wide {
    grid-column: 1 / -1;
}

.settings-page-grid {
    align-items: start;
}

.settings-polished-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(8, 28, 52, 0.06);
}

.settings-billing-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    align-items: stretch;
}

.settings-billing-page {
    display: grid;
    gap: 30px;
    min-width: 0;
}

.settings-billing-section h3,
.settings-billing-section p {
    margin: 0;
}

.settings-billing-portal-action {
    gap: 10px;
    min-width: 176px;
    min-height: 38px;
    border-radius: 7px;
    background: #fff;
}

.settings-billing-alert {
    margin-top: -12px;
    max-width: 720px;
}

.settings-billing-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px 0 0;
}

.settings-billing-summary-strip div {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    padding-right: 26px;
}

.settings-billing-summary-strip div + div {
    padding-left: 28px;
}

.settings-billing-summary-strip div + div::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 1px;
    background: #cfd6df;
    content: "";
}

.settings-billing-summary-strip dt,
.settings-billing-summary-strip dd {
    grid-column: 2;
    min-width: 0;
}

.settings-billing-summary-strip dt {
    color: #526682;
    font-size: var(--type-caption);
    font-weight: 720;
    line-height: 1.2;
}

.settings-billing-summary-strip dd {
    margin: 4px 0 0;
    overflow: hidden;
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 820;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-billing-summary-icon {
    display: inline-grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eaf8f1;
    color: #239a73;
}

.settings-billing-summary-icon::before,
.settings-external-icon::before {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    content: "";
    -webkit-mask: var(--settings-billing-icon) center / contain no-repeat;
    mask: var(--settings-billing-icon) center / contain no-repeat;
}

.settings-billing-summary-icon.tier {
    --settings-billing-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l2.6%205.4%206%20.9-4.3%204.2%201%205.9L12%2016.6%206.7%2019.4l1-5.9-4.3-4.2%206-.9L12%203Z'/%3E%3C/svg%3E");
}

.settings-billing-summary-icon.price {
    --settings-billing-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M15%209.5c-.7-.7-1.7-1-3-1-1.7%200-3%20.8-3%202.2%200%203.5%206%201.2%206%204.6%200%201.4-1.3%202.2-3%202.2-1.4%200-2.5-.4-3.3-1.2'/%3E%3Cpath%20d='M12%207v10'/%3E%3C/svg%3E");
}

.settings-billing-summary-icon.seats {
    --settings-billing-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E");
}

.settings-billing-section {
    display: grid;
    gap: 18px;
    border-top: 1px solid #dfe5ec;
    padding-top: 28px;
}

.settings-billing-section-head {
    display: grid;
    gap: 8px;
}

.settings-billing-section h3 {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 820;
    line-height: 1.35;
}

.settings-billing-section p {
    color: #40516a;
    line-height: 1.45;
}

.settings-external-icon::before {
    width: 16px;
    height: 16px;
    --settings-billing-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M15%203h6v6'/%3E%3Cpath%20d='M10%2014%2021%203'/%3E%3Cpath%20d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3C/svg%3E");
}

.settings-team-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
    align-items: stretch;
}

.settings-workspace-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 18px;
}

.settings-workspace-details-card,
.settings-profile-card,
.settings-export-card {
    box-shadow: 0 12px 28px rgba(8, 28, 52, 0.06);
}

.settings-workspace-details-card,
.settings-profile-card {
    min-height: 420px;
}

.settings-card-intro {
    display: grid;
    gap: 8px;
    margin-bottom: 26px;
}

.settings-compact-card-intro {
    margin-bottom: 18px;
}

.settings-card-intro h2,
.settings-card-intro p {
    margin: 0;
}

.settings-card-intro p {
    color: #33445b;
    line-height: 1.45;
}

.settings-field-stack {
    display: grid;
    gap: 20px;
}

.settings-field-line {
    margin-bottom: 0;
}

.settings-field-line > span {
    color: #081c34;
    font-weight: 720;
}

.settings-input-shell,
.settings-select-shell {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #d9dcd8;
    border-radius: 7px;
    background: #fff;
    color: #081c34;
    overflow: hidden;
}

.settings-input-shell {
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.settings-input-shell:hover,
.settings-input-shell:focus-within {
    border-color: #b9c1ca;
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.07), 0 0 0 3px rgba(9, 33, 61, 0.05);
}

.settings-input-shell input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #081c34;
    padding: 0 12px;
}

.settings-input-shell input[readonly] {
    cursor: text;
}

.settings-input-shell input:focus-visible {
    outline: 0;
}

.settings-input-end-icon {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-right: 12px;
    border: 2px solid #8190a3;
    border-radius: 3px;
}

.settings-input-end-icon::after {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: #8190a3;
    content: "";
}

.settings-copy-button {
    gap: 8px;
    align-self: stretch;
    min-height: 44px;
    border-width: 0 0 0 1px;
    border-color: #d9dcd8;
    border-radius: 0;
    background: #fff;
    color: #081c34;
    padding: 0 14px;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.settings-copy-button span {
    color: inherit;
    font-size: inherit;
}

.settings-copy-button:hover {
    background: #f7fafc;
    color: #e85d04;
}

.settings-copy-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -3px;
}

.settings-copy-icon {
    position: relative;
    width: 15px;
    height: 15px;
}

.settings-copy-icon::before,
.settings-copy-icon::after {
    position: absolute;
    width: 9px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
}

.settings-copy-icon::before {
    top: 0;
    left: 4px;
    opacity: 0.72;
}

.settings-copy-icon::after {
    right: 4px;
    bottom: 0;
    background: #fff;
}

.settings-success-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -8px 0 8px;
    color: #40516a;
    font-size: var(--type-copy);
    line-height: 1.35;
}

.settings-success-note span {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: #26b66a;
}

.settings-success-note span::after {
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(42deg);
}

.settings-detail-row {
    margin-top: 26px;
}

.settings-detail-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #081c34;
    cursor: pointer;
    font: inherit;
    padding: 7px 8px;
    text-align: left;
    transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.settings-detail-trigger span:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.settings-detail-trigger strong {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 760;
}

.settings-detail-trigger small {
    color: #5b6b82;
    font-size: var(--type-copy);
    font-weight: 500;
    line-height: 1.3;
}

.settings-detail-trigger:hover {
    background: #f7fafc;
    box-shadow: inset 0 0 0 1px #e4eaf0;
}

.settings-detail-row.open .settings-detail-trigger {
    background: #f7fafc;
}

.settings-detail-trigger:hover .settings-detail-chevron {
    border-color: #e85d04;
}

.settings-detail-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.settings-detail-chevron,
.settings-select-chevron,
.settings-action-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #51657f;
    border-bottom: 2px solid #51657f;
    transform: rotate(45deg);
    transition: border-color 150ms ease, transform 220ms ease;
}

.settings-detail-row.open .settings-detail-chevron {
    transform: rotate(225deg);
}

.settings-detail-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 220ms ease, opacity 180ms ease;
}

.settings-detail-row.open .settings-detail-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.settings-detail-panel-inner {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: padding 220ms ease;
}

.settings-detail-row.open .settings-detail-panel-inner {
    padding-top: 12px;
}

.settings-internal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.settings-internal-facts div {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 10px 12px;
}

.settings-internal-facts dt {
    color: #5b6b82;
    font-size: var(--type-caption);
    font-weight: 760;
    line-height: 1.2;
}

.settings-internal-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-profile-card {
    display: grid;
    align-content: start;
}

.settings-profile-callout {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    min-height: 218px;
    border: 1px solid #f4c690;
    border-radius: 7px;
    background:
        radial-gradient(circle at 100% 100%, rgba(255, 173, 84, 0.22) 0 23%, transparent 24%),
        linear-gradient(105deg, rgba(255, 248, 239, 0.96) 0%, rgba(255, 252, 248, 0.96) 56%, rgba(255, 238, 218, 0.86) 100%);
    padding: 28px;
    overflow: hidden;
}

.settings-profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(244, 167, 89, 0.5);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(238, 91, 0, 0.13);
}

.settings-profile-avatar img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.settings-profile-copy {
    display: grid;
    gap: 8px;
    align-content: start;
    max-width: 430px;
}

.settings-profile-copy strong {
    color: #081c34;
    font-weight: 760;
}

.settings-profile-copy p {
    margin: 0;
    color: #33445b;
    font-size: var(--type-copy);
    line-height: 1.6;
}

.settings-profile-action {
    grid-column: 1 / span 2;
    gap: 12px;
    min-height: 46px;
    margin-top: 12px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.82);
}

.settings-action-chevron {
    transform: rotate(-45deg);
}

.settings-profile-arc {
    position: absolute;
    right: -96px;
    bottom: -100px;
    width: 218px;
    height: 218px;
    border: 42px solid rgba(251, 174, 91, 0.24);
    border-radius: 50%;
}

.settings-profile-arc::after {
    position: absolute;
    inset: 34px;
    border: 32px solid rgba(251, 174, 91, 0.24);
    border-radius: 50%;
    content: "";
}

.settings-export-card {
    min-height: 314px;
}

.settings-export-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(280px, 1fr);
    align-items: center;
    gap: 28px;
}

.settings-export-controls {
    display: grid;
    gap: 22px;
}

.settings-export-format-dropdown {
    min-height: 46px;
}

.settings-export-format-dropdown .carter-dropdown-trigger {
    min-height: 46px;
    border-radius: 7px;
}

.settings-export-format-dropdown .carter-dropdown-menu {
    top: calc(100% + 7px);
    bottom: auto;
}

.settings-select-shell {
    justify-content: space-between;
    padding: 0 14px;
}

.settings-select-shell > span:first-child {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 600;
}

.settings-select-chevron {
    transform: rotate(45deg);
}

.settings-export-toggle {
    position: relative;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.settings-export-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-export-toggle input:focus-visible + .toggle {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.settings-export-toggle > span:last-child {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #081c34;
}

.settings-export-toggle strong {
    font-size: var(--type-copy);
}

.settings-export-toggle small {
    color: #5b6b82;
    font-size: var(--type-copy);
    line-height: 1.35;
}

.settings-export-art {
    position: relative;
    min-height: 194px;
    overflow: hidden;
}

.settings-export-art::before {
    position: absolute;
    right: 7%;
    bottom: 22px;
    left: 14%;
    height: 108px;
    border-radius: 58% 42% 48% 52%;
    background: rgba(255, 177, 92, 0.12);
    content: "";
    transform: rotate(10deg);
}

.settings-export-art::after {
    position: absolute;
    right: 12%;
    bottom: 44px;
    left: 18%;
    height: 54px;
    border-bottom: 2px solid rgba(246, 154, 58, 0.38);
    border-radius: 50%;
    content: "";
    transform: rotate(5deg);
}

.settings-export-sheet {
    position: absolute;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    width: 58px;
    height: 72px;
    border: 2px solid rgba(244, 167, 89, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.58);
    color: rgba(238, 120, 20, 0.42);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    z-index: 1;
}

.settings-export-sheet::before {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-left: 2px solid rgba(244, 167, 89, 0.5);
    border-bottom: 2px solid rgba(244, 167, 89, 0.5);
    background: #fff8f0;
    content: "";
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.settings-export-sheet strong {
    width: 24px;
    height: 16px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.settings-export-sheet em {
    font-style: normal;
}

.settings-export-sheet-left {
    right: 48%;
    bottom: 46px;
}

.settings-export-sheet-top {
    right: 30%;
    top: 8px;
}

.settings-export-sheet-right {
    right: 14%;
    bottom: 46px;
}

.settings-export-wave {
    position: absolute;
    right: 8%;
    bottom: 24px;
    left: 10%;
    height: 1px;
    background: rgba(246, 154, 58, 0.18);
    z-index: 0;
}

.settings-link-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    text-decoration: none;
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #33445b;
    font-size: 12px;
}

.toggle {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d6d8da;
}

.toggle::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.toggle.on {
    background: #e85d04;
}

.toggle.on::after {
    left: 19px;
}

.gate-list,
.settings-list {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.settings-alert {
    margin-top: 14px;
    border: 1px solid #cde8d4;
    border-radius: 8px;
    background: #f0f8f1;
    color: #14754f;
    padding: 12px 14px;
}

.settings-alert.failed {
    border-color: #f0c7c1;
    background: #fff4f2;
    color: #9b2c25;
}

.settings-alert strong,
.settings-alert p {
    margin: 0;
}

.settings-alert p {
    margin-top: 4px;
    color: inherit;
    font-size: 12px;
}

.settings-fact-grid {
    display: grid;
    gap: 10px;
    margin: 0;
}

.settings-billing-facts,
.settings-team-facts,
.sender-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-fact-grid div {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 12px 14px;
}

.settings-fact-grid dt {
    color: #5b6b82;
    font-size: var(--type-caption);
    font-weight: 760;
    line-height: 1.2;
    text-transform: uppercase;
}

.settings-fact-grid dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 760;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-panel-list {
    display: grid;
    gap: 10px;
}

.settings-panel-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 12px 14px;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.settings-panel-list > div:hover {
    border-color: #d2dce6;
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.05);
}

.settings-panel-list span,
.settings-panel-list strong {
    min-width: 0;
    color: #081c34;
    font-size: var(--type-copy);
    line-height: 1.35;
}

.settings-panel-list span {
    color: #33445b;
    font-weight: 620;
}

.settings-panel-list strong {
    font-weight: 760;
    text-align: right;
}

.settings-card-actions {
    margin-top: 18px;
}

.settings-subheading {
    margin: 16px 0 0;
    color: #081c34;
    font-size: 12px;
    font-weight: 800;
}

.team-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.team-summary span,
.settings-member-copy span,
.settings-member-meta span,
.team-member-card small {
    color: #5c6675;
    font-size: 12px;
}

.team-summary strong {
    color: #081c34;
}

.team-member-list,
.team-create-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.settings-add-member-card {
    align-self: stretch;
}

.settings-team-card-head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-bottom: 28px;
}

.settings-team-card-head .settings-card-intro {
    margin-bottom: 0;
    padding-top: 4px;
}

.settings-team-card-head .settings-card-intro h2 {
    margin-bottom: 8px;
}

.settings-team-visual-icon,
.settings-team-fact-icon {
    display: inline-grid;
    place-items: center;
    color: #e85d04;
}

.settings-team-visual-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff6ef, #f8eee8);
}

.settings-team-visual-icon.add {
    color: #3b9f82;
    background: linear-gradient(135deg, #f5faf5, #edf2ef);
}

.settings-team-visual-icon::before,
.settings-team-fact-icon::before,
.settings-search-icon,
.settings-shield-icon::before,
.settings-button-icon::before,
.settings-eye-icon::before,
.settings-more-icon::before {
    display: block;
    background: currentColor;
    content: "";
    -webkit-mask: var(--settings-team-icon) center / contain no-repeat;
    mask: var(--settings-team-icon) center / contain no-repeat;
}

.settings-team-visual-icon::before {
    width: 31px;
    height: 31px;
}

.settings-team-visual-icon.team {
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E");
}

.settings-team-visual-icon.add,
.settings-button-icon.user-add {
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M19%208v6'/%3E%3Cpath%20d='M22%2011h-6'/%3E%3C/svg%3E");
}

.settings-team-facts {
    gap: 12px;
}

.settings-team-facts div {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
}

.settings-team-facts dt,
.settings-team-facts dd {
    grid-column: 2;
}

.settings-team-fact-icon {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #fff6ef;
}

.settings-team-fact-icon.group {
    color: #319371;
    background: #eef8f3;
}

.settings-team-fact-icon.person {
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='8'%20r='4'/%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3C/svg%3E");
}

.settings-team-fact-icon.group {
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E");
}

.settings-team-fact-icon::before {
    width: 22px;
    height: 22px;
}

.settings-team-divider {
    height: 1px;
    margin: 28px 0 24px;
    background: #edf0f3;
}

.settings-team-members-head {
    display: grid;
    gap: 8px;
}

.settings-team-members-head .settings-subheading,
.settings-team-members-head p {
    margin: 0;
}

.settings-team-members-head p {
    color: #40516a;
    font-size: var(--type-copy);
    line-height: 1.35;
}

.settings-team-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(126px, 154px);
    gap: 14px;
    margin-top: 22px;
}

.settings-search-shell {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #d9dcd8;
    border-radius: 7px;
    background: #fff;
    color: #5b6b82;
    padding: 0 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.settings-search-shell:hover,
.settings-search-shell:focus-within {
    border-color: #b9c1ca;
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.07), 0 0 0 3px rgba(9, 33, 61, 0.05);
}

.settings-search-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-4-4'/%3E%3C/svg%3E");
}

.settings-search-shell input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #081c34;
    font: inherit;
    outline: 0;
}

.settings-team-role-filter .carter-dropdown-trigger {
    min-height: 46px;
    border-radius: 7px;
}

.team-member-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.settings-team-member-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 80px;
    padding: 14px 16px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.settings-team-member-row:hover,
.settings-team-member-row:focus-within {
    border-color: #d2dce6;
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.05);
}

.settings-member-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5eaff, #eee2ff);
    color: #6d39c2;
    font-weight: 820;
}

.settings-member-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.team-member-card strong,
.settings-member-copy span,
.settings-member-meta span,
.team-member-card small {
    display: block;
}

.settings-member-copy span {
    margin-top: 3px;
}

.team-member-card small {
    margin-top: 6px;
    text-align: right;
}

.settings-member-meta {
    display: grid;
    grid-template-columns: auto 32px;
    gap: 5px 10px;
    align-items: center;
    justify-items: end;
    min-width: 0;
}

.team-member-card .settings-member-role-text,
.settings-sender-status {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 720;
    line-height: 1.35;
}

.team-member-card .settings-member-role-text {
    color: #5d35b0;
}

.settings-member-meta small {
    grid-column: 1 / -1;
}

.settings-member-icon-button,
.settings-input-icon-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #51657f;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.settings-member-icon-button:hover,
.settings-member-icon-button:focus-visible,
.settings-input-icon-button:hover,
.settings-input-icon-button:focus-visible {
    background: #f4f7fa;
    color: #e85d04;
}

.settings-member-icon-button:focus-visible,
.settings-input-icon-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.settings-more-icon::before {
    width: 18px;
    height: 18px;
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='1'/%3E%3Ccircle%20cx='19'%20cy='12'%20r='1'/%3E%3Ccircle%20cx='5'%20cy='12'%20r='1'/%3E%3C/svg%3E");
}

.settings-member-detail {
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    max-height: 0;
    overflow: hidden;
    color: #5b6b82;
    font-size: var(--type-caption);
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, padding-top 220ms ease;
}

.settings-team-member-row.open .settings-member-detail {
    max-height: 64px;
    padding-top: 10px;
    opacity: 1;
}

.team-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf0f3;
    padding-top: 16px;
}

.team-create-form .primary-action {
    grid-column: 1 / -1;
}

.settings-form-grid.team-create-form,
.settings-form-grid.sender-setup-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.settings-form-grid .field-line {
    margin: 0;
}

.settings-form-grid .field-line > span,
.settings-form-header h3 {
    color: #081c34;
    font-weight: 740;
}

.settings-form-grid .field-line > span {
    font-size: var(--type-copy);
}

.settings-form-dropdown .carter-dropdown-trigger {
    min-height: 46px;
    border-radius: 7px;
}

.settings-card .settings-form-dropdown .carter-dropdown-menu,
.settings-card .settings-team-role-filter .carter-dropdown-menu {
    top: calc(100% + 7px);
    bottom: auto;
}

.settings-form-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
}

.settings-form-actions .primary-action {
    min-width: 154px;
    min-height: 42px;
}

.settings-input-icon-button {
    flex: 0 0 auto;
    margin-right: 6px;
}

.settings-eye-icon::before {
    width: 18px;
    height: 18px;
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012s3.5-6%2010-6%2010%206%2010%206-3.5%206-10%206S2%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3Cpath%20d='M3%203l18%2018'/%3E%3C/svg%3E");
}

.settings-eye-icon.open::before {
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012s3.5-6%2010-6%2010%206%2010%206-3.5%206-10%206S2%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E");
}

.settings-team-invite-note {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 72px;
    border: 1px solid #cde3dc;
    border-radius: 7px;
    background: linear-gradient(120deg, #f6fbf8, #fbfdfc);
    color: #268065;
    padding: 14px 16px;
}

.settings-team-invite-note p {
    margin: 0;
    color: #278066;
    font-size: var(--type-copy);
    line-height: 1.45;
}

.settings-shield-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #3b9f82;
}

.settings-shield-icon::before {
    width: 26px;
    height: 26px;
    --settings-team-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202 20%205v6c0%205-3.3%209-8%2011-4.7-2-8-6-8-11V5l8-3Z'/%3E%3Cpath%20d='m9%2012 2%202 4-5'/%3E%3C/svg%3E");
}

.settings-add-member-action {
    gap: 9px;
}

.settings-button-icon::before {
    width: 16px;
    height: 16px;
}

.billing-gate-grid,
.sender-gate-grid,
.sender-policy-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.billing-gate-grid,
.sender-gate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-gate-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sender-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-gate-grid div,
.sender-gate-grid div,
.sender-policy-grid div {
    border-top: 1px solid rgba(8, 28, 52, 0.12);
    padding-top: 8px;
}

.billing-gate-grid dt,
.sender-gate-grid dt,
.sender-policy-grid dt {
    color: #5c6675;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.billing-gate-grid dd,
.sender-gate-grid dd,
.sender-policy-grid dd {
    margin: 3px 0 0;
    color: #081c34;
    font-size: 12px;
    font-weight: 800;
}

.billing-action-row {
    margin-top: 16px;
}

.sender-account-list,
.sender-setup-form {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.sender-setup-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf0f3;
    padding-top: 14px;
}

.sender-setup-form .primary-action,
.sender-setup-form .settings-note,
.sender-toggle-line {
    grid-column: 1 / -1;
}

.sender-account-card {
    display: grid;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    padding: 12px;
}

.sender-account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sender-account-head strong,
.sender-account-head span {
    display: block;
}

.sender-account-head span {
    margin-top: 3px;
    color: #5c6675;
    font-size: 12px;
}

.sender-failure {
    margin: 0;
    border-left: 3px solid #c5392f;
    color: #7f3512;
    font-size: 12px;
    line-height: 1.45;
    padding-left: 10px;
}

.settings-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-note {
    margin: 0;
    color: #5c6675;
    font-size: 12px;
}

.settings-note code {
    color: #081c34;
    font-weight: 700;
}

.sender-toggle-line {
    align-items: center;
}

.sender-toggle-line input {
    width: 16px;
    height: 16px;
}

.settings-sender-layout {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(280px, 0.58fr);
    align-items: start;
    gap: 24px;
}

.settings-sender-status-column,
.settings-sender-form-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.settings-setup-callout {
    display: grid;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 14px;
}

.settings-setup-callout.ready {
    border-color: #d8e7dd;
    background: #fbfdfb;
}

.settings-setup-callout.attention {
    border-color: #ead8c3;
    background: #fffdf9;
}

.settings-console-card {
    border-color: #dfe6ee;
    background: #fff;
    box-shadow: none;
}

.settings-sender-header-row {
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
    align-items: start;
    gap: 16px;
}

.settings-sender-summary {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-self: end;
    justify-content: end;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fbfcfd;
    overflow: hidden;
}

.settings-sender-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    color: #52627c;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    padding: 0 9px;
    white-space: nowrap;
}

.settings-sender-summary span + span {
    border-left: 1px solid #e2e8f0;
}

.settings-sender-summary strong {
    color: #081c34;
    font-weight: 780;
}

.settings-readiness-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.settings-readiness-heading span {
    color: #8a4d17;
    font-size: 12px;
    font-weight: 780;
}

.settings-readiness-card.ready .settings-readiness-heading span {
    color: #287152;
}

.settings-setup-callout h3,
.settings-setup-callout p,
.settings-form-header h3,
.settings-form-header p,
.settings-empty-panel h3,
.settings-empty-panel p {
    margin: 0;
}

.settings-setup-callout h3,
.settings-form-header h3,
.settings-empty-panel h3 {
    color: #081c34;
    font-size: var(--type-card-title);
    line-height: 1.35;
}

.settings-setup-callout p,
.settings-form-header p,
.settings-empty-panel p {
    color: #33445b;
    font-size: var(--type-copy);
    line-height: 1.5;
}

.settings-setup-callout .sender-gate-grid {
    grid-template-columns: 1fr;
}

.settings-readiness-card .sender-gate-grid.settings-fact-grid {
    gap: 0;
    border-top: 1px solid #e7edf4;
}

.settings-readiness-card .sender-gate-grid.settings-fact-grid div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #e7edf4;
    border-radius: 0;
    background: transparent;
    padding: 9px 0;
}

.settings-readiness-card .sender-gate-grid.settings-fact-grid div:last-child {
    border-bottom: 0;
}

.settings-readiness-card .sender-gate-grid dt {
    text-transform: none;
}

.settings-readiness-card .sender-gate-grid dd {
    text-align: right;
}

.settings-empty-panel {
    display: grid;
    gap: 8px;
    min-height: 108px;
    align-content: center;
    border: 1px dashed #d8e0e8;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 18px;
}

.settings-form-header {
    display: grid;
    gap: 6px;
}

.settings-preference-list {
    display: grid;
    gap: 12px;
}

.settings-preference-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 70px;
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 14px;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.settings-preference-toggle:hover {
    border-color: #d2dce6;
    background: #fff;
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.05);
}

.settings-preference-toggle.sender-toggle-line {
    grid-column: 1 / -1;
}

.settings-preference-toggle input,
.sender-toggle-line.settings-preference-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.settings-preference-toggle strong,
.settings-preference-toggle small {
    display: block;
}

.settings-preference-toggle small {
    margin-top: 4px;
}

.billing-gate-grid.settings-fact-grid,
.sender-gate-grid.settings-fact-grid,
.sender-policy-grid.settings-fact-grid {
    margin: 0;
}

.settings-billing-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-setup-callout .sender-gate-grid {
    grid-template-columns: 1fr;
}

.billing-gate-grid.settings-fact-grid div,
.sender-gate-grid.settings-fact-grid div,
.sender-policy-grid.settings-fact-grid div {
    border: 1px solid #e3e8ee;
    border-radius: 7px;
    background: #fbfcfd;
    padding: 12px 14px;
}

.settings-compliance-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.settings-compliance-table {
    display: grid;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.settings-compliance-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    background: #fff;
    padding: 10px 14px;
}

.settings-compliance-table > div + div {
    border-top: 1px solid #e7edf4;
}

.settings-compliance-copy,
.settings-compliance-copy strong,
.settings-compliance-copy small {
    display: block;
    min-width: 0;
}

.settings-compliance-copy strong {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 740;
    line-height: 1.35;
}

.settings-compliance-copy small {
    margin-top: 2px;
    color: #5b6b82;
    font-size: 12px;
    line-height: 1.35;
}

.settings-compliance-status {
    color: #6b7280;
    font-size: 12px;
    font-weight: 760;
}

.profile-card {
    min-height: 176px;
    padding: 16px;
}

.profile-empty {
    border: 1px dashed #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #5c6675;
    padding: 16px;
    font-size: 12px;
}

.warning-empty {
    border-color: #f5c883;
    background: #fff8ed;
}

.danger-empty {
    border-color: #f2a5a5;
    background: #fff1f1;
}

.profile-card small {
    display: block;
    margin-top: 12px;
    color: #5c6675;
}

@media (max-width: 1180px) {
    .split-page,
    .research-reader-page {
        grid-template-columns: 1fr;
    }

    .research-reader-page {
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .research-corpus-panel,
    .research-reader-panel,
    .research-account-panel {
        overflow: visible;
    }

    .outreach-draft-workbench {
        grid-template-columns: 1fr;
    }

    .outreach-queue-strip {
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    }

}

@media (max-width: 760px) {
    .page-shell,
    .split-page,
    .targeting-page {
        padding: 14px;
    }

    .chat-page {
        min-height: calc(100svh - 154px);
    }

    .chat-messages {
        padding: 0;
    }

    .page-heading,
    .outreach-ops-header,
    .review-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .outreach-main {
        padding: 18px 14px;
    }

    .outreach-title-block h1 {
        font-size: 12px;
    }

    .outreach-header-actions,
    .outreach-header-actions > *,
    .outreach-filter-row .secondary-action {
        width: 100%;
    }

    .outreach-filter-row,
    .draft-edit-grid {
        grid-template-columns: 1fr;
    }

    .table-head,
    .research-row.research-columns,
    .research-row.runs-columns,
    .research-row.leads-columns,
    .research-row.research-artifact-columns,
    .draft-meta-grid {
        grid-template-columns: 1fr;
    }

    .research-page .page-heading .filter-row {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .research-reader-page {
        padding: 14px;
    }

    .research-corpus-panel,
    .research-reader-panel {
        padding: 18px 16px;
    }

    .corpus-controls {
        grid-template-columns: 1fr;
    }

    .source-reader-heading,
    .account-metrics {
        grid-template-columns: 1fr;
    }

    .source-relevance {
        justify-items: start;
    }

    .account-metrics > div + div {
        border-left: 0;
        border-top: 1px solid #d9e0ea;
        padding-top: 14px;
        padding-left: 0;
    }

    .stat-strip,
    .choice-grid,
    .criteria-grid,
    .criteria-grid.two,
    .settings-grid,
    .draft-meta-grid,
    .draft-edit-grid,
    .review-action-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions,
    .targeting-actions,
    .bulk-action-bar {
        flex-direction: column;
        width: 100%;
    }

    .bulk-action-controls,
    .bulk-action-controls > button {
        width: 100%;
    }

    .bulk-action-controls {
        justify-content: stretch;
    }

    .upload-row {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-actions,
    .file-picker,
    .upload-actions .secondary-action {
        justify-content: center;
        width: 100%;
        max-width: none;
    }

    .billing-gate-grid,
    .sender-gate-grid,
    .sender-policy-grid,
    .sender-setup-form,
    .team-create-form {
        grid-template-columns: 1fr;
    }

    .sender-account-head,
    .team-member-card {
        align-items: stretch;
        flex-direction: column;
    }

    .team-member-card small {
        text-align: left;
    }

    .settings-member-meta {
        justify-items: start;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 100vh;
    background: #fbfaf8;
    color: #081c34;
}

.carter-header {
    display: grid;
    grid-template-columns: auto 214px minmax(280px, 560px) minmax(max-content, 1fr);
    align-items: center;
    gap: 28px;
    padding: 18px 28px 14px;
}

.brand {
    gap: 12px;
    color: #08213d;
}

.brand strong {
    font-family: var(--font-brand);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
}

.brand-spark,
.mini-spark {
    position: relative;
    display: inline-block;
    color: #e85d04;
}

.brand-spark {
    width: 28px;
    height: 28px;
}

.brand-spark span,
.mini-spark::before,
.mini-spark::after {
    position: absolute;
    display: block;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
}

.brand-spark span:nth-child(1) {
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
}

.brand-spark span:nth-child(2) {
    top: 0;
    left: 13px;
    width: 5px;
    height: 5px;
}

.brand-spark span:nth-child(3) {
    right: 0;
    bottom: 7px;
    width: 6px;
    height: 6px;
}

.brand-spark span:nth-child(4) {
    bottom: 2px;
    left: 2px;
    width: 5px;
    height: 5px;
}

.mini-spark {
    width: 18px;
    height: 18px;
}

.mini-spark::before {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
}

.mini-spark::after {
    right: 1px;
    bottom: 2px;
    width: 4px;
    height: 4px;
}

.workspace-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

.workspace-switcher .workspace-select {
    min-height: 0;
    border: 0;
    background: transparent;
    color: #081c34;
    padding: 0;
    font-weight: 600;
}

.workspace-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 4px;
    background: #09213d;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.global-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 0 16px;
}

.global-search span {
    width: 16px;
    height: 16px;
    border: 2px solid #667387;
    border-radius: 50%;
}

.global-search span::after {
    display: block;
    width: 7px;
    height: 2px;
    margin: 11px 0 0 11px;
    background: #667387;
    content: "";
    transform: rotate(45deg);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #081c34;
}

.carter-header .topbar-actions {
    justify-content: flex-end;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #f0ebe4;
    color: #081c34;
    font-weight: 700;
}

.chevron-button,
.close-button {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
}

.chevron-button::before {
    position: absolute;
    top: 9px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #081c34;
    border-bottom: 2px solid #081c34;
    content: "";
    transform: rotate(45deg);
}

.close-button::before,
.close-button::after {
    position: absolute;
    top: 13px;
    left: 6px;
    width: 16px;
    height: 2px;
    background: #081c34;
    content: "";
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.primary-nav {
    display: block;
    border-bottom: 1px solid #d9dcd8;
    background: #fbfaf8;
}

.primary-nav-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 46px;
    padding: 0 28px;
    scrollbar-width: none;
}

.primary-nav-inner::-webkit-scrollbar {
    display: none;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    border-radius: 0;
    color: #081c34;
    padding: 0;
    font-weight: 600;
    text-decoration: none;
}

.primary-nav a.active,
.primary-nav a:hover {
    background: transparent;
    color: #081c34;
}

.primary-nav a.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #e85d04;
    content: "";
}

.workspace-main {
    min-width: 0;
    padding: 0;
}

.overview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.52fr);
    gap: 12px;
    padding: 8px 16px 22px;
}

.overview-work {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.overview-block,
.overview-inspector {
    min-width: 0;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.overview-block {
    padding: 14px;
}

.overview-step,
.queue-title,
.inspector-top,
.fit-summary,
.section-inline-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.queue-title,
.section-inline-title {
    justify-content: space-between;
}

.overview-step > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #09213d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.overview-step > span.orange {
    background: #df5d06;
}

.overview-step > span.purple {
    background: #6b58a9;
}

.overview-step h1,
.overview-step h2 {
    margin: 0;
    color: #081c34;
    font-size: 12px;
}

.overview-step h1 {
    font-size: 12px;
}

.overview-step b {
    border-radius: 6px;
    background: #eef8ef;
    color: #176c36;
    padding: 4px 8px;
    font-size: 12px;
}

.overview-step .orange + h2 + b {
    background: #fff1df;
    color: #d75500;
}

.overview-step .purple + h2 + b {
    background: #f0ecff;
    color: #5840a0;
}

.queue-title > a,
.section-inline-title > a {
    color: #e85d04;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.run-status-card {
    display: grid;
    grid-template-columns: auto minmax(190px, 1fr) minmax(280px, 0.92fr) auto;
    align-items: center;
    gap: 22px;
    min-width: 0;
    margin-top: 12px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fffdfa;
    padding: 20px 18px;
}

.run-ring {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 8px solid #f0ddbf;
    border-top-color: #df5d06;
    border-radius: 50%;
}

.run-copy h2 {
    margin: 0 0 6px;
    font-size: 12px;
}

.run-copy,
.run-steps {
    min-width: 0;
}

.run-copy p {
    margin-bottom: 2px;
    font-size: 12px;
}

.run-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.run-stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #081c34;
    text-align: center;
}

.run-stage:not(:last-child)::after {
    position: absolute;
    top: 18px;
    left: calc(50% + 28px);
    width: calc(100% - 44px);
    height: 1px;
    background: #d8c8ad;
    content: "";
}

.run-stage > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #f0ebe4;
}

.run-stage > span::before {
    color: #081c34;
    font-size: 12px;
    font-weight: 700;
}

.stage-search::before {
    content: "?";
}

.stage-doc::before {
    content: "#";
}

.stage-pencil::before {
    content: "/";
}

.run-stage strong {
    max-width: 92px;
    font-size: 12px;
    line-height: 1.25;
}

.overview-table {
    margin-top: 14px;
}

.table-head {
    display: grid;
    grid-template-columns: 1.15fr 0.35fr 1.2fr 1fr 0.55fr;
    gap: 14px;
    border-bottom: 1px solid #d9dcd8;
    padding: 0 8px 9px;
    color: #5c6675;
    font-size: 12px;
}

.queue-empty {
    padding: 18px 8px 4px;
}

.queue-empty h3 {
    margin-bottom: 4px;
    color: #081c34;
    font-size: 12px;
}

.queue-empty p {
    margin: 0;
    color: #5c6675;
    font-size: 12px;
}

.overview-inspector {
    position: sticky;
    top: 8px;
    align-self: start;
    overflow: hidden;
}

.inspector-top {
    padding: 20px;
}

.empty-logo {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: #09213d;
    color: #ff7a1a;
}

.inspector-top h2 {
    margin: 0 0 4px;
    color: #081c34;
    font-size: 12px;
}

.inspector-top p {
    margin: 0;
    color: #5c6675;
    font-size: 12px;
}

.inspector-top .close-button {
    margin-left: auto;
}

.fit-summary {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    border-top: 1px solid #ebe4da;
    padding: 12px 20px 16px;
}

.fit-summary > div {
    display: grid;
    gap: 8px;
}

.fit-summary > div + div {
    border-left: 1px solid #d9dcd8;
    padding-left: 24px;
}

.fit-summary span {
    color: #5c6675;
    font-size: 12px;
}

.inspector-tabs {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    border-bottom: 1px solid #d9dcd8;
    padding: 0 20px;
}

.inspector-tabs span {
    position: relative;
    white-space: nowrap;
    padding: 14px 0 10px;
    color: #081c34;
    font-size: 12px;
    font-weight: 600;
}

.inspector-tabs .active {
    color: #e85d04;
}

.inspector-tabs .active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #e85d04;
    content: "";
}

.inspector-panel,
.inspector-section,
.next-step-panel {
    margin: 14px 16px;
    padding: 14px;
}

.inspector-panel,
.next-step-panel {
    border-radius: 8px;
}

.soft-green {
    background: #f0f6e8;
}

.soft-orange {
    background: #fff1db;
}

.inspector-panel h3,
.inspector-section h3,
.next-step-panel h3 {
    margin: 0 0 8px;
    color: #081c34;
    font-size: 12px;
}

.inspector-panel p,
.inspector-section p,
.next-step-panel p,
.inspector-panel li,
.inspector-section li {
    color: #17283b;
    font-size: 12px;
}

.check-list,
.inspector-panel ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.empty-research {
    border-top: 1px solid #ebe4da;
    padding-top: 12px;
}

.next-step-panel {
    border: 1px solid #d9dcd8;
    background: #fff;
}

.overview-loading {
    padding: 28px;
}

.route-loading-placeholder {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.chat-loading-state.route-loading-placeholder {
    height: 100%;
    min-height: 100%;
}

@media (max-width: 1180px) {
    .carter-header {
        grid-template-columns: auto minmax(190px, 1fr) minmax(260px, 1.2fr);
    }

    .carter-header .topbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .overview-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-inspector {
        position: static;
    }

    .run-status-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .run-steps {
        grid-column: 1 / -1;
    }

    .run-status-card .secondary-action {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .carter-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .brand strong {
        font-size: 12px;
    }

    .primary-nav-inner {
        gap: 18px;
        overflow-x: auto;
        padding: 0 16px;
    }

    .overview-shell {
        padding: 8px;
    }

    .run-status-card,
    .fit-summary,
    .table-head {
        grid-template-columns: 1fr;
    }

    .run-steps {
        grid-template-columns: 1fr;
    }

    .run-stage:not(:last-child)::after {
        display: none;
    }

    .fit-summary > div + div {
        border-left: 0;
        border-top: 1px solid #d9dcd8;
        padding-top: 12px;
        padding-left: 0;
    }
}

.profile-page {
    display: block;
    min-height: auto;
    padding: 22px 28px 28px;
}

.profile-topline,
.profile-hero,
.profile-title-row,
.profile-card-head,
.profile-tip-bar,
.profile-summary-item {
    display: flex;
    align-items: center;
}

.profile-topline {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: #5c6675;
    font-size: 12px;
}

.profile-back-link {
    color: #081c34;
    font-weight: 600;
    text-decoration: none;
}

.profile-back-link::before {
    margin-right: 8px;
    content: "<";
}

.profile-hero {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-title-row {
    flex-wrap: wrap;
    gap: 12px;
}

.profile-title-row h1 {
    margin: 0;
    color: #081c34;
    font-size: 12px;
}

.profile-hero p {
    margin: 8px 0 0;
    color: #33445b;
    font-size: 12px;
    font-weight: 600;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.profile-actions .primary-action,
.profile-actions .secondary-action {
    min-height: 42px;
}

.profile-actions .primary-action {
    background: #09213d;
    color: #fff;
}

.profile-proposal-summary {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.profile-proposal-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-proposal-counts span,
.profile-proposal-state {
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #f8fafc;
    color: #33445b;
    font-size: 12px;
}

.profile-proposal-counts span {
    padding: 7px 9px;
}

.profile-proposal-counts strong {
    color: #081c34;
}

.profile-proposal-state {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.profile-proposal-state strong {
    color: #081c34;
}

.profile-decision-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
    padding: 4px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #f8fafc;
}

.profile-decision-button {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #33445b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.profile-decision-button:not(:disabled):hover,
.profile-decision-button.selected {
    border-color: #9fb4ce;
    background: #fff;
    color: #081c34;
}

.profile-decision-button.accept.selected {
    border-color: #8fc8b2;
    background: #edf9f4;
    color: #0c6f4b;
}

.profile-decision-button.skip.selected {
    border-color: #c7cfd9;
    background: #eef2f7;
    color: #405576;
}

.profile-decision-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.profile-decision-button:only-child {
    grid-column: 1 / -1;
}

.profile-actions .icon-button {
    position: relative;
    min-height: 42px;
    width: 42px;
    background: #09213d;
    color: #fff;
}

.profile-actions .icon-button::before {
    position: absolute;
    top: 14px;
    left: 15px;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.profile-summary-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.profile-summary-item {
    gap: 14px;
    min-height: 88px;
    padding: 16px 20px;
}

.profile-summary-item + .profile-summary-item {
    border-left: 1px solid #ebe4da;
}

.profile-summary-item > span {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #fff;
}

.profile-summary-item > span::before {
    font-size: 12px;
    font-weight: 700;
}

.profile-summary-item.approved > span {
    color: #14754f;
}

.profile-summary-item.approved > span::before {
    content: "OK";
    font-size: 12px;
}

.profile-summary-item.review > span {
    color: #e85d04;
}

.profile-summary-item.review > span::before {
    content: "!";
}

.profile-summary-item.missing > span {
    color: #6b58a9;
}

.profile-summary-item.missing > span::before {
    content: "i";
}

.profile-summary-item.completeness > span {
    color: #2563a8;
}

.profile-summary-item.completeness > span::before {
    content: "#";
}

.profile-summary-item strong,
.profile-summary-item b,
.profile-summary-item small {
    display: block;
}

.profile-summary-item strong {
    margin-bottom: 4px;
    font-size: 12px;
}

.profile-summary-item b {
    color: #081c34;
    font-size: 12px;
}

.profile-summary-item small {
    color: #5c6675;
    font-size: 12px;
}

.profile-progress {
    width: min(320px, 100%);
    height: 8px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e0e1df;
}

.profile-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1d75bd;
}

.profile-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 14px;
}

.profile-section-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 156px;
    padding: 16px;
}

.profile-card-head {
    justify-content: space-between;
    gap: 12px;
}

.profile-card-head h2 {
    margin: 0;
    font-size: 12px;
}

.profile-card-head .toolbar {
    flex: 0 0 auto;
}

.profile-card-head .secondary-action {
    min-height: 32px;
}

.profile-section-card .status-danger {
    border-color: #d4c7f0;
    background: #f6f2ff;
    color: #6b58a9;
}

.profile-section-card p {
    margin: 0;
    color: #17283b;
    font-size: 12px;
}

.profile-card-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.profile-card-list li {
    color: #17283b;
    font-size: 12px;
    line-height: 1.35;
}

.profile-section-card .profile-empty {
    min-height: 44px;
    padding: 10px 12px;
}

.profile-empty.missing-empty {
    border-color: #d4c7f0;
    background: #f6f2ff;
}

.profile-footer-approved,
.profile-footer-review,
.profile-footer-missing {
    position: relative;
    padding-left: 18px;
}

.profile-footer-approved::before,
.profile-footer-review::before,
.profile-footer-missing::before {
    position: absolute;
    top: 1px;
    left: 0;
    font-weight: 700;
}

.profile-footer-approved {
    color: #14754f;
}

.profile-footer-approved::before {
    content: "OK";
    font-size: 10px;
}

.profile-footer-review {
    color: #e85d04;
}

.profile-footer-review::before {
    content: "!";
}

.profile-footer-missing {
    color: #6b58a9;
}

.profile-footer-missing::before {
    content: "o";
}

.profile-tip-bar {
    gap: 8px;
    margin-top: 18px;
    border: 1px solid #f2d8b6;
    border-radius: 8px;
    background: #fff8ed;
    padding: 14px 16px;
    color: #17283b;
    font-size: 12px;
}

.profile-tip-bar span {
    flex: 1;
}

.profile-tip-bar a {
    color: #1d75bd;
    font-weight: 600;
}

@media (max-width: 1320px) {
    .profile-section-grid,
    .profile-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-summary-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #ebe4da;
    }

    .profile-summary-item:nth-child(4) {
        border-top: 1px solid #ebe4da;
    }
}

@media (max-width: 760px) {
    .profile-page {
        padding: 16px;
    }

    .profile-topline,
    .profile-hero,
    .profile-tip-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-actions {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }

    .profile-actions .primary-action,
    .profile-actions .secondary-action {
        flex: 0 0 auto;
        width: 100%;
    }

    .profile-actions .icon-button {
        flex: 0 0 auto;
        width: 100%;
    }

    .profile-actions .icon-button::before {
        left: calc(50% - 5px);
    }

    .profile-summary-strip,
    .profile-section-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-item + .profile-summary-item,
    .profile-summary-item:nth-child(3),
    .profile-summary-item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #ebe4da;
    }

    .profile-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .run-compose-footer {
        align-items: stretch;
        flex-direction: column;
    }

}

@media (max-width: 900px) {
    .chat-workspace {
        --chat-rail-min: 160px;
        --chat-rail-width: clamp(160px, 36vw, 260px);
        --chat-rail-max: 320px;
        --chat-thread-min: 340px;
    }

    .chat-scroll {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 760px) {
    .chat-shell {
        --chat-top-offset: 136px;
    }

    .chat-shell .carter-header {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 22px 20px 16px;
    }

    .chat-shell .workspace-switcher,
    .chat-shell .global-search,
    .chat-shell .topbar-actions {
        display: none;
    }

    .chat-shell .brand {
        gap: 14px;
    }

    .chat-shell .brand strong {
        font-size: 12px;
    }

    .chat-shell .brand-spark {
        width: 36px;
        height: 36px;
    }

    .chat-shell .brand-spark span:nth-child(1) {
        top: 10px;
        left: 10px;
        width: 15px;
        height: 15px;
    }

    .chat-shell .brand-spark span:nth-child(2) {
        left: 17px;
        width: 6px;
        height: 6px;
    }

    .chat-shell .brand-spark span:nth-child(3) {
        width: 7px;
        height: 7px;
    }

    .chat-shell .brand-spark span:nth-child(4) {
        width: 6px;
        height: 6px;
    }

    .chat-shell .primary-nav-inner {
        gap: 18px;
        min-height: 58px;
        overflow-x: auto;
        padding: 0 20px;
    }

    .chat-shell .primary-nav a {
        min-height: 58px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .chat-shell .primary-nav a:nth-child(n+7) {
        display: none;
    }

    .chat-page {
        grid-template-rows: minmax(0, 1fr);
        min-height: calc(100vh - var(--chat-top-offset));
        min-height: calc(100dvh - var(--chat-top-offset));
        background: #fff;
    }

    .chat-workspace {
        --chat-rail-width: 122px;
        grid-template-columns: 122px minmax(0, 1fr);
        height: calc(100vh - var(--chat-top-offset));
        height: calc(100dvh - var(--chat-top-offset));
        min-height: 420px;
    }

    .chat-conversation-rail {
        grid-column: 1;
        border-right: 1px solid #e6e0d8;
        padding: 18px 0 12px;
    }

    .chat-rail-resizer {
        display: none;
    }

    .conversation-list {
        gap: 8px;
    }

    .conversation-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        min-height: 82px;
        padding: 8px 9px 8px 12px;
    }

    .conversation-item.active::before {
        width: 3px;
    }

    .conversation-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .conversation-icon::before {
        width: 13px;
        height: 10px;
    }

    .conversation-icon::after {
        bottom: 7px;
        left: 12px;
        width: 5px;
        height: 5px;
    }

    .conversation-item strong {
        display: -webkit-box;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
        line-height: 1.22;
    }

    .conversation-item small {
        margin-top: 4px;
        font-size: 12px;
    }

    .conversation-empty {
        margin: 4px 12px;
        font-size: 12px;
    }

    .new-conversation {
        gap: 8px;
        min-height: 54px;
        padding: 12px;
        font-size: 12px;
        line-height: 1.2;
    }

    .new-conversation span:first-child {
        font-size: 12px;
    }

    .chat-thread {
        grid-column: 2;
        overflow: hidden;
        padding: 0;
    }

    .chat-scroll {
        padding: 18px 12px 16px;
    }

    .chat-day-divider {
        gap: 12px;
        width: 100%;
        margin: 12px 0 8px;
    }

    .chat-day-divider:first-child {
        margin-top: 0;
    }

    .chat-day-divider span {
        font-size: 12px;
    }

    .chat-messages {
        width: 100%;
        gap: 14px;
        padding: 0;
    }

    .chat-message {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
    }

    .chat-message.user {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat-message.user .chat-avatar {
        display: none;
    }

    .chat-message.user .chat-bubble {
        max-width: 100%;
    }

    .chat-assistant-mark {
        width: 24px;
        height: 24px;
    }

    .chat-assistant-mark span:nth-child(1) {
        top: 8px;
        left: 8px;
        width: 10px;
        height: 10px;
    }

    .chat-assistant-mark span:nth-child(2) {
        top: 2px;
        left: 13px;
        width: 5px;
        height: 5px;
    }

    .chat-assistant-mark span:nth-child(3) {
        right: 0;
        bottom: 5px;
        width: 5px;
        height: 5px;
    }

    .chat-assistant-mark span:nth-child(4) {
        bottom: 2px;
        left: 1px;
        width: 5px;
        height: 5px;
    }

    .chat-bubble {
        padding: 14px;
    }

    .chat-bubble time {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .chat-markdown {
        font-size: 12px;
        line-height: 1.55;
    }

    .chat-links a {
        grid-template-columns: 22px minmax(0, 1fr) 14px;
        gap: 10px;
        min-height: 42px;
        padding: 9px 11px;
        font-size: 12px;
    }

    .chat-action-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 11px;
    }

    .chat-action-copy strong {
        font-size: 12px;
    }

    .chat-action-copy span,
    .chat-action-copy small {
        font-size: 12px;
    }

    .chat-action-control {
        min-width: 0;
        width: 100%;
        min-height: 36px;
        font-size: 12px;
    }

    .chat-empty-state {
        padding: 0;
    }

    .chat-page.empty .chat-scroll {
        padding-top: clamp(92px, 18vh, 150px);
        padding-bottom: 14px;
    }

    .chat-empty-greeting {
        gap: 6px;
    }

    .chat-empty-greeting-title {
        gap: 9px;
    }

    .chat-empty-greeting-mark {
        width: 24px;
        height: 24px;
    }

    .chat-empty-greeting-title strong {
        font-size: 24px;
    }

    .chat-empty-greeting span {
        font-size: 14px;
    }

    .chat-suggestion-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chat-suggestion-list button {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 9px;
        height: 54px;
        padding: 8px 10px;
    }

    .chat-suggestion-icon {
        width: 34px;
        height: 34px;
    }

    .chat-suggestion-icon span {
        width: 17px;
        height: 17px;
    }

    .chat-suggestion-title > strong,
    .chat-suggestion-list button.is-primary .chat-suggestion-title > strong {
        font-size: 13px;
    }

    .chat-suggestion-empty,
    .chat-suggestion-placeholder {
        min-height: 54px;
        padding: 8px 10px;
    }

    .chat-suggestion-placeholder {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        height: 54px;
    }

    .chat-suggestion-placeholder > span:first-child {
        width: 34px;
        height: 34px;
    }

    .chat-composer-shell {
        gap: 9px;
        width: calc(100% - 24px);
        margin: 0 12px 14px;
    }

    .chat-scroll-bottom {
        bottom: 86px;
        width: 32px;
        height: 32px;
    }

    .chat-composer {
        grid-template-columns: minmax(0, 1fr) 38px 44px;
        gap: 8px;
        padding: 8px;
    }

    .chat-composer textarea {
        min-height: 44px;
        font-size: 12px;
        padding: 11px 5px;
    }

    .chat-dictate {
        width: 38px;
        height: 44px;
    }

    .chat-send {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .chat-shell .primary-nav-inner {
        gap: 12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .chat-shell .primary-nav a {
        font-size: 12px;
    }

    .chat-workspace {
        --chat-rail-width: 116px;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .conversation-item {
        padding-right: 8px;
        padding-left: 10px;
    }

    .chat-scroll {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Chat side-navbar shell */
.chat-route-host {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fbfaf8;
}

.chat-shell.chat-page {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fbfaf8;
    color: #081c34;
}

.carter-sidebar {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid #d9dcd8;
    background: rgba(252, 251, 249, 0.96);
    padding: 20px 14px 0;
    scrollbar-width: none;
}

.carter-sidebar::-webkit-scrollbar,
.sidebar-conversation-items::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    color: #08213d;
    text-decoration: none;
}

.sidebar-brand-icon {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    margin-left: -4px;
}

.sidebar-brand-icon .sidebar-brand-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-left: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-brand-logo {
    width: 32px;
    height: 32px;
    margin-left: -4px;
}

.sidebar-brand-logo-static {
    opacity: 1;
    transform: scale(1);
}

.sidebar-brand-logo-spinner {
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
}

.sidebar-brand:hover .sidebar-brand-logo-static,
.sidebar-brand:focus-visible .sidebar-brand-logo-static {
    opacity: 0;
    transform: scale(1);
}

.sidebar-brand:hover .sidebar-brand-logo-spinner,
.sidebar-brand:focus-visible .sidebar-brand-logo-spinner {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-brand-icon .sidebar-brand-logo {
        transition: opacity 80ms linear;
    }

    .sidebar-brand:hover .sidebar-brand-logo-static,
    .sidebar-brand:focus-visible .sidebar-brand-logo-static {
        transform: none;
    }

    .sidebar-brand-logo-spinner,
    .sidebar-brand:hover .sidebar-brand-logo-spinner,
    .sidebar-brand:focus-visible .sidebar-brand-logo-spinner {
        transform: scale(1);
    }
}

.sidebar-brand .brand-spark {
    width: 24px;
    height: 24px;
}

.sidebar-brand .brand-spark span:nth-child(1) {
    top: 7px;
    left: 7px;
    width: 10px;
    height: 10px;
}

.sidebar-brand .brand-spark span:nth-child(2) {
    left: 12px;
}

.sidebar-brand .brand-spark span:nth-child(3) {
    bottom: 6px;
}

.sidebar-brand strong {
    font-size: 12px;
    font-weight: 720;
    line-height: 1;
}

.sidebar-desktop-toggle,
.sidebar-mobile-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #09213d;
    cursor: pointer;
    padding: 0;
}

.sidebar-mobile-toggle {
    display: none;
}

.sidebar-desktop-toggle .sidebar-mobile-toggle-icon {
    transform: rotate(180deg);
}

.app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-desktop-toggle .sidebar-mobile-toggle-icon {
    transform: rotate(0deg);
}

.sidebar-desktop-toggle:hover,
.sidebar-desktop-toggle:focus-visible,
.sidebar-mobile-toggle:hover,
.sidebar-mobile-toggle:focus-visible {
    border-color: #b9c1ca;
    background: #f4f2ef;
}

.sidebar-desktop-toggle:focus-visible,
.sidebar-mobile-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sidebar-mobile-toggle-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    transition: transform 160ms ease;
}

.sidebar-mobile-toggle-icon::before,
.sidebar-mobile-toggle-icon::after {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 11px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform-origin: right center;
}

.sidebar-mobile-toggle-icon::before {
    transform: rotate(42deg);
}

.sidebar-mobile-toggle-icon::after {
    transform: rotate(-42deg);
}

.carter-sidebar.is-mobile-expanded .sidebar-mobile-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-workspace-switcher {
    position: relative;
    min-width: 0;
}

.sidebar-workspace-trigger {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(8, 28, 52, 0.03);
    color: #081c34;
    cursor: pointer;
    font: inherit;
    padding: 0 12px;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sidebar-workspace-trigger:hover,
.sidebar-workspace-switcher:focus-within .sidebar-workspace-trigger {
    border-color: #b9c1ca;
    box-shadow: 0 12px 26px rgba(8, 28, 52, 0.09), 0 0 0 3px rgba(9, 33, 61, 0.06);
}

.sidebar-workspace-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sidebar-workspace-trigger:disabled {
    cursor: default;
    opacity: 0.72;
}

.sidebar-workspace-icon {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 5px;
    background: #09213d;
}

.sidebar-workspace-icon::before,
.sidebar-workspace-icon::after {
    position: absolute;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    content: "";
}

.sidebar-workspace-icon::after {
    transform: rotate(90deg);
}

.sidebar-workspace-current,
.sidebar-workspace-name,
.sidebar-workspace-kicker {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-workspace-current {
    display: grid;
    gap: 2px;
}

.sidebar-workspace-kicker {
    color: #667387;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.sidebar-workspace-name {
    display: block;
    color: #081c34;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.18;
}

.sidebar-select-chevron,
.account-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #667387;
    border-bottom: 2px solid #667387;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.sidebar-workspace-switcher:focus-within .sidebar-select-chevron {
    transform: rotate(225deg);
}

.sidebar-workspace-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 40;
    display: grid;
    gap: 4px;
    max-height: min(320px, calc(100vh - 128px));
    overflow-y: auto;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(8, 28, 52, 0.18);
    opacity: 0;
    padding: 7px;
    pointer-events: none;
    transform: translateY(-5px) scale(0.98);
    transform-origin: top center;
    transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
    visibility: hidden;
}

.sidebar-workspace-switcher:focus-within .sidebar-workspace-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.sidebar-workspace-dropdown-head {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid #e6e8e5;
    padding: 7px 9px 9px;
}

.sidebar-workspace-dropdown-head span,
.sidebar-workspace-dropdown-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-workspace-dropdown-head span {
    color: #081c34;
    font-size: 11px;
    font-weight: 760;
}

.sidebar-workspace-dropdown-head small {
    color: #667387;
    font-size: 10px;
    font-weight: 650;
}

.sidebar-workspace-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #09213d;
    cursor: pointer;
    font: inherit;
    padding: 6px 9px;
    text-align: left;
}

.sidebar-workspace-option:hover,
.sidebar-workspace-option:focus-visible {
    background: #f4f2ef;
    outline: 0;
}

.sidebar-workspace-option.is-active {
    background: #eef7ff;
}

.workspace-option-mark {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #c7d1dc;
    border-radius: 6px;
    background: #fff;
}

.sidebar-workspace-option.is-active .workspace-option-mark {
    border-color: #0f62d6;
    background: #0f62d6;
}

.sidebar-workspace-option.is-active .workspace-option-mark::before {
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.workspace-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.workspace-option-copy strong,
.workspace-option-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-option-copy strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 730;
    line-height: 1.16;
}

.workspace-option-copy small {
    color: #667387;
    font-size: 10px;
    font-weight: 620;
    line-height: 1.25;
}

.carter-dropdown {
    position: relative;
    display: block;
    min-width: 142px;
    min-height: 38px;
    color: #081c34;
}

.carter-dropdown.filter-select,
.carter-dropdown.criteria-input,
.field-line .carter-dropdown,
.corpus-controls .carter-dropdown {
    border: 0;
    background: transparent;
    padding: 0;
}

.field-line .carter-dropdown,
.corpus-controls .carter-dropdown {
    width: 100%;
    min-width: 0;
}

.corpus-controls .carter-dropdown {
    min-height: 40px;
}

.carter-dropdown-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: inherit;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(8, 28, 52, 0.03);
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    padding: 0 12px;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-line .carter-dropdown-trigger,
.carter-dropdown.criteria-input .carter-dropdown-trigger {
    border-radius: 6px;
}

.corpus-controls .carter-dropdown-trigger {
    border-color: #dbe3ed;
    border-radius: 7px;
    color: #071a35;
}

.carter-dropdown-trigger:hover,
.carter-dropdown.is-open .carter-dropdown-trigger {
    border-color: #b9c1ca;
    box-shadow: 0 12px 26px rgba(8, 28, 52, 0.09), 0 0 0 3px rgba(9, 33, 61, 0.06);
}

.carter-dropdown-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.carter-dropdown.is-disabled .carter-dropdown-trigger {
    cursor: default;
    opacity: 0.72;
}

.carter-dropdown-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carter-dropdown-trigger-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.carter-dropdown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border: 1px solid #f0b37e;
    border-radius: 999px;
    background: #fff3df;
    color: #9a4c00;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.carter-dropdown-badge.option-badge {
    justify-self: end;
}

.carter-dropdown-chevron {
    width: 8px;
    height: 8px;
    justify-self: end;
    border-right: 2px solid #667387;
    border-bottom: 2px solid #667387;
    transform: rotate(45deg);
    transition: transform 150ms ease;
}

.carter-dropdown.is-open .carter-dropdown-chevron {
    transform: rotate(225deg);
}

.carter-dropdown-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 80;
    display: grid;
    gap: 4px;
    min-width: min(260px, calc(100vw - 32px));
    max-height: min(320px, calc(100vh - 128px));
    overflow-y: auto;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(8, 28, 52, 0.18);
    padding: 7px;
}

.settings-card .carter-dropdown-menu,
.criteria-card .carter-dropdown-menu {
    top: auto;
    bottom: calc(100% + 7px);
}

.carter-dropdown-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #09213d;
    cursor: pointer;
    font: inherit;
    padding: 6px 9px;
    text-align: left;
}

.carter-dropdown-option:hover,
.carter-dropdown-option:focus-visible {
    background: #f4f2ef;
    outline: 0;
}

.carter-dropdown-option.is-active {
    background: #eef7ff;
}

.carter-dropdown-option-mark {
    position: relative;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #c7d1dc;
    border-radius: 6px;
    background: #fff;
}

.carter-dropdown-option.is-active .carter-dropdown-option-mark {
    border-color: #0f62d6;
    background: #0f62d6;
}

.carter-dropdown-option.is-active .carter-dropdown-option-mark::before {
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.carter-dropdown-option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.carter-dropdown-option-copy strong,
.carter-dropdown-option-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carter-dropdown-option-copy strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 730;
    line-height: 1.16;
}

.carter-dropdown-option-copy small {
    color: #667387;
    font-size: 10px;
    font-weight: 620;
    line-height: 1.25;
}

.sidebar-primary-nav {
    display: grid;
    gap: 4px;
    padding-top: 0;
}

.sidebar-nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 40px;
    border-radius: 8px;
    color: #09213d;
    padding: 0 12px 0 22px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-nav-item::before,
.conversation-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: #e85d04;
    content: "";
    opacity: 0;
}

.sidebar-nav-item:hover {
    background: #f4f2ef;
}

.sidebar-nav-item.active {
    background: #f0f1f2;
    color: #081c34;
}

.sidebar-nav-item.active::before,
.conversation-item.active::before {
    opacity: 1;
}

.sidebar-nav-icon {
    width: 19px;
    height: 19px;
    background: currentColor;
    -webkit-mask: var(--sidebar-nav-icon) center / contain no-repeat;
    mask: var(--sidebar-nav-icon) center / contain no-repeat;
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: #e85d04;
}

.sidebar-nav-icon.chat,
.chat-header-icon {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2011.5a8.4%208.4%200%200%201-8.4%208.4H7l-4%202v-5.5A8.4%208.4%200%201%201%2021%2011.5Z'/%3E%3Cpath%20d='M8%2011h.01M12%2011h.01M16%2011h.01'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.overview {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%3E%3Cpath%20d='M5%2020V10M12%2020V4M19%2020v-7'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.leads {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.runs {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='m10%208%206%204-6%204V8Z'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.research {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-4-4'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.outreach {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m22%202-7%2020-4-9-9-4%2020-7Z'/%3E%3Cpath%20d='M22%202%2011%2013'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.targeting {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3Cpath%20d='M12%202v3M12%2019v3M2%2012h3M19%2012h3'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.campaigns {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2019V5'/%3E%3Cpath%20d='M4%206h11l-.8%204L15%2014H4'/%3E%3Cpath%20d='M19%205v14'/%3E%3Cpath%20d='M17%2019h4'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.profile {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.settings {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2015.5a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207Z'/%3E%3Cpath%20d='M19.4%2015a1.7%201.7%200%200%200%20.34%201.88l.05.05a2%202%200%201%201-2.83%202.83l-.05-.05a1.7%201.7%200%200%200-1.88-.34%201.7%201.7%200%200%200-1%201.55V21a2%202%200%201%201-4%200v-.08a1.7%201.7%200%200%200-1-1.55%201.7%201.7%200%200%200-1.88.34l-.05.05a2%202%200%201%201-2.83-2.83l.05-.05A1.7%201.7%200%200%200%204.6%2015a1.7%201.7%200%200%200-1.55-1H3a2%202%200%201%201%200-4h.08a1.7%201.7%200%200%200%201.55-1%201.7%201.7%200%200%200-.34-1.88l-.05-.05a2%202%200%201%201%202.83-2.83l.05.05A1.7%201.7%200%200%200%209%204.6a1.7%201.7%200%200%200%201-1.55V3a2%202%200%201%201%204%200v.08a1.7%201.7%200%200%200%201%201.55%201.7%201.7%200%200%200%201.88-.34l.05-.05a2%202%200%201%201%202.83%202.83l-.05.05A1.7%201.7%200%200%200%2019.4%209c.14.33.22.68.22%201.04H21a2%202%200%201%201%200%204h-.08A1.7%201.7%200%200%200%2019.4%2015Z'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.billing {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='14'%20rx='2'/%3E%3Cpath%20d='M3%2010h18M7%2015h3'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.notifications {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%208a6%206%200%200%200-12%200c0%207-3%207-3%209h18c0-2-3-2-3-9'/%3E%3Cpath%20d='M10%2021h4'/%3E%3C/svg%3E");
}

.sidebar-nav-icon.features {
    --sidebar-nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l1.6%204.4L18%209l-4.4%201.6L12%2015l-1.6-4.4L6%209l4.4-1.6L12%203Z'/%3E%3Cpath%20d='M19%2015l.8%202.2L22%2018l-2.2.8L19%2021l-.8-2.2L16%2018l2.2-.8L19%2015ZM5%2014l.7%201.8L7.5%2016.5l-1.8.7L5%2019l-.7-1.8-1.8-.7%201.8-.7L5%2014Z'/%3E%3C/svg%3E");
}

.sidebar-conversations {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding-top: 4px;
}

.sidebar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 0 8px;
    color: #536784;
    font-size: 12px;
    font-weight: 650;
}

.sidebar-icon-button {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    background: transparent;
    color: #09213d;
}

.sidebar-icon-button:hover {
    background: #f0f1f2;
}

.sidebar-icon-button span::before,
.sidebar-icon-button span::after {
    position: absolute;
    top: 13px;
    left: 8px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.sidebar-icon-button span::after {
    transform: rotate(90deg);
}

.sidebar-conversation-items {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0;
    scrollbar-width: none;
}

.conversation-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 2px;
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #081c34;
    padding: 0 6px 0 0;
    text-align: left;
}

.conversation-item:hover {
    background: #f4f7f8;
}

.conversation-item.active {
    background: #eef7ff;
}

.conversation-item.pending::after {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e85d04;
    content: "";
}

.conversation-select {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 8px 4px 8px 16px;
    text-align: left;
}

.conversation-select:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.38);
    outline-offset: -2px;
}

.conversation-menu-trigger {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #536784;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    padding: 0;
    pointer-events: none;
}

.conversation-menu-trigger:hover,
.conversation-menu-trigger:focus-visible,
.conversation-menu-trigger[aria-expanded="true"] {
    background: #e8ecef;
    color: #081c34;
}

.conversation-menu-trigger:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.38);
    outline-offset: 2px;
}

.conversation-item:hover .conversation-menu-trigger,
.conversation-item:focus-within .conversation-menu-trigger {
    opacity: 1;
    pointer-events: auto;
}

.conversation-menu-trigger:disabled {
    cursor: default;
    opacity: 0;
    pointer-events: none;
}

.conversation-row-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% - 4px);
    right: 6px;
    display: grid;
    width: 126px;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(8, 28, 52, 0.15);
}

.conversation-row-menu button {
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #081c34;
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
    padding: 0 12px;
    text-align: left;
}

.conversation-row-menu button:hover,
.conversation-row-menu button:focus-visible {
    background: #f4f7f8;
}

.conversation-row-menu button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.34);
    outline-offset: -2px;
}

.conversation-row-menu button.danger {
    color: #b42318;
}

.conversation-row-menu button:disabled {
    color: #9aa5b1;
    cursor: default;
}

.conversation-modal-backdrop {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 18, 29, 0.38);
    padding: 18px;
}

.conversation-modal {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    width: min(432px, 100%);
    border: 1px solid rgba(223, 229, 236, 0.96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 28, 52, 0.25);
    padding: 22px;
}

.conversation-modal-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
}

.conversation-modal-mark::before {
    width: 20px;
    height: 20px;
    background: currentColor;
    content: "";
}

.conversation-modal-mark.rename {
    background: #e8f1fb;
    color: #245ca8;
}

.conversation-modal-mark.rename::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020h9'/%3E%3Cpath%20d='M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020h9'/%3E%3Cpath%20d='M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.conversation-modal-mark.delete {
    background: #fff1ee;
    color: #b42318;
}

.conversation-modal-mark.delete::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.conversation-modal-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.conversation-modal h2 {
    margin: 0;
    color: #081c34;
    font-size: 17px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.2;
}

.conversation-modal p {
    margin: 0;
    color: #536784;
    font-size: 13px;
}

.conversation-modal p strong {
    color: #26384f;
    font-weight: 740;
}

.conversation-rename-form {
    display: grid;
    grid-column: 1 / -1;
    gap: 14px;
    margin-top: 4px;
}

.conversation-rename-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    font: inherit;
    font-size: 14px;
    padding: 0 12px;
}

.conversation-rename-form input:focus {
    border-color: rgba(37, 99, 235, 0.56);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.conversation-modal-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.conversation-modal-actions .primary-action,
.conversation-modal-actions .secondary-action,
.conversation-modal-actions .danger-action {
    min-width: 86px;
    border-radius: 8px;
    font-size: 13px;
}

.conversation-modal-actions .danger-action {
    border: 1px solid #b42318;
    background: #b42318;
    color: #fff;
}

.conversation-modal-actions .danger-action:hover {
    background: #8f1d14;
}

.conversation-modal-actions button:disabled {
    cursor: default;
    opacity: 0.55;
}

.conversation-icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.conversation-icon::before {
    width: 13px;
    height: 10px;
    border: 2px solid #09213d;
    border-radius: 3px;
    content: "";
}

.conversation-icon::after {
    position: absolute;
    bottom: 7px;
    left: 11px;
    width: 5px;
    height: 5px;
    border-bottom: 2px solid #09213d;
    border-left: 2px solid #09213d;
    background: #fff;
    content: "";
    transform: rotate(-45deg);
}

.conversation-copy,
.conversation-copy strong,
.conversation-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-copy strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.22;
    white-space: nowrap;
}

.conversation-copy small,
.conversation-empty {
    color: #536784;
    font-size: 11px;
}

.conversation-empty {
    margin: 4px 8px;
    line-height: 1.45;
}

.account-menu {
    position: sticky;
    bottom: 0;
    z-index: 25;
    border-top: 1px solid #d9dcd8;
    background: rgba(252, 251, 249, 0.98);
    margin: 0 -14px;
}

.account-footer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    list-style: none;
    padding: 14px 20px;
    cursor: pointer;
}

.account-footer::-webkit-details-marker {
    display: none;
}

.account-footer::marker {
    content: "";
}

.account-menu[open] .account-footer,
.account-footer:hover {
    background: #f4f2ef;
}

.account-menu[open] .account-chevron {
    transform: rotate(225deg);
}

.account-dropdown {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 8px);
    left: 12px;
    z-index: 30;
    display: grid;
    gap: 4px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(8, 28, 52, 0.16);
    padding: 8px;
}

.account-dropdown-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
    border-bottom: 1px solid #e6e8e5;
    padding: 7px 10px 10px;
}

.account-dropdown-identity strong,
.account-dropdown-identity span,
.account-dropdown-identity small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-identity strong {
    color: #081c34;
    font-size: 12px;
    font-weight: 760;
}

.account-dropdown-identity span,
.account-dropdown-identity small {
    color: #536784;
    font-size: 11px;
}

.account-dropdown form {
    margin: 0;
}

.account-dropdown a,
.account-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #09213d;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
}

.account-dropdown button {
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f4f2ef;
}

.account-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #f0ebe4;
    color: #081c34;
    font-size: 12px;
    font-weight: 780;
}

.account-name {
    min-width: 0;
    overflow: hidden;
    color: #081c34;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-main-pane {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fbfaf8;
}

.chat-local-header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 76px;
    border-bottom: 1px solid #d9dcd8;
    background: rgba(255, 255, 255, 0.58);
    padding: 0 30px;
}

.chat-header-icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.chat-header-icon::before {
    width: 19px;
    height: 19px;
    background: #09213d;
    content: "";
    -webkit-mask: var(--sidebar-nav-icon) center / contain no-repeat;
    mask: var(--sidebar-nav-icon) center / contain no-repeat;
}

.chat-local-header h1 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: #081c34;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-title-edit {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: #667387;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020h9'/%3E%3Cpath%20d='M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4%2012.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020h9'/%3E%3Cpath%20d='M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4%2012.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-thread {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.chat-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px min(6vw, 64px) 18px;
}

.chat-messages {
    width: min(996px, 100%);
}

.chat-composer-shell {
    width: min(996px, calc(100% - 56px));
    margin: 0 28px max(18px, calc(14px + env(safe-area-inset-bottom)));
}

.chat-loading-state {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 28px 30px;
}

.chat-loading-state h1 {
    margin: 0;
    color: #081c34;
}

.chat-loading-state p {
    margin: 0;
    color: #536784;
}

@media (max-width: 900px) {
    .chat-shell.chat-page {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .carter-sidebar {
        position: relative;
        z-index: 70;
        gap: 12px;
        padding: 18px 10px 0;
    }

    .sidebar-topbar {
        display: grid;
        justify-items: center;
        gap: 8px;
    }

    .sidebar-brand {
        justify-self: center;
    }

    .sidebar-mobile-toggle {
        display: grid;
        width: 42px;
        height: 42px;
    }

    .sidebar-brand strong,
    .sidebar-workspace-current,
    .sidebar-select-chevron,
    .sidebar-nav-item span:last-child,
    .sidebar-section-head span,
    .conversation-copy,
    .account-name,
    .account-chevron {
        display: none;
    }

    .sidebar-workspace-switcher {
        justify-self: center;
        width: 46px;
    }

    .sidebar-workspace-trigger {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 46px;
        padding: 0;
    }

    .sidebar-workspace-dropdown {
        top: 0;
        right: auto;
        left: calc(100% + 8px);
        width: 246px;
        max-height: min(320px, calc(100vh - 64px));
        transform: translateX(-5px) scale(0.98);
        transform-origin: left top;
    }

    .sidebar-workspace-switcher:focus-within .sidebar-workspace-dropdown {
        transform: translateX(0) scale(1);
    }

    .sidebar-primary-nav {
        justify-items: center;
    }

    .sidebar-nav-item {
        width: 48px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        padding: 0;
    }

    .sidebar-conversations {
        justify-items: center;
    }

    .sidebar-section-head {
        justify-content: center;
        padding: 0;
    }

    .conversation-item {
        width: 52px;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 48px;
        padding: 0;
    }

    .conversation-select {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 48px;
        padding: 0;
    }

    .conversation-menu-trigger,
    .conversation-row-menu {
        display: none;
    }

    .account-menu {
        margin: 0 -10px;
    }

    .account-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 70px;
        padding: 14px 0;
    }

    .account-dropdown {
        right: auto;
        bottom: 8px;
        left: calc(100% + 8px);
        width: 230px;
    }

    .carter-sidebar.is-mobile-expanded {
        z-index: 90;
        width: min(292px, calc(100vw - 16px));
        padding-right: 14px;
        padding-left: 14px;
        background: rgba(252, 251, 249, 0.99);
        box-shadow: 22px 0 48px rgba(8, 28, 52, 0.18);
    }

    .carter-sidebar.is-mobile-expanded .sidebar-topbar {
        display: flex;
        justify-content: space-between;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-brand {
        justify-self: stretch;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-brand strong,
    .carter-sidebar.is-mobile-expanded .sidebar-nav-item span:last-child,
    .carter-sidebar.is-mobile-expanded .sidebar-section-head span,
    .carter-sidebar.is-mobile-expanded .conversation-copy,
    .carter-sidebar.is-mobile-expanded .account-name,
    .carter-sidebar.is-mobile-expanded .sidebar-select-chevron,
    .carter-sidebar.is-mobile-expanded .account-chevron {
        display: block;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-current {
        display: grid;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-switcher,
    .carter-sidebar.is-mobile-expanded .sidebar-nav-item,
    .carter-sidebar.is-mobile-expanded .conversation-item {
        width: 100%;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-switcher,
    .carter-sidebar.is-mobile-expanded .sidebar-primary-nav,
    .carter-sidebar.is-mobile-expanded .sidebar-conversations {
        justify-self: stretch;
        justify-items: stretch;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-trigger {
        grid-template-columns: 22px minmax(0, 1fr) 18px;
        justify-items: stretch;
        padding: 0 12px;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-dropdown {
        top: calc(100% + 7px);
        right: 0;
        left: 0;
        width: auto;
        max-height: min(320px, calc(100vh - 128px));
        transform: translateY(-5px) scale(0.98);
        transform-origin: top center;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-workspace-switcher:focus-within .sidebar-workspace-dropdown {
        transform: translateY(0) scale(1);
    }

    .carter-sidebar.is-mobile-expanded .sidebar-nav-item {
        grid-template-columns: 24px minmax(0, 1fr);
        justify-items: stretch;
        gap: 12px;
        padding: 0 12px 0 22px;
    }

    .carter-sidebar.is-mobile-expanded .sidebar-section-head {
        justify-content: space-between;
        padding: 0 8px;
    }

    .carter-sidebar.is-mobile-expanded .conversation-item {
        grid-template-columns: minmax(0, 1fr) 30px;
        justify-items: stretch;
        min-height: 58px;
        padding: 0 6px 0 0;
    }

    .carter-sidebar.is-mobile-expanded .conversation-select {
        grid-template-columns: 34px minmax(0, 1fr);
        justify-items: stretch;
        min-height: 58px;
        padding: 8px 4px 8px 16px;
    }

    .carter-sidebar.is-mobile-expanded .conversation-menu-trigger {
        display: grid;
    }

    .carter-sidebar.is-mobile-expanded .conversation-row-menu {
        display: grid;
    }

    .carter-sidebar.is-mobile-expanded .account-menu {
        margin: 0 -14px;
    }

    .carter-sidebar.is-mobile-expanded .account-footer {
        grid-template-columns: 44px minmax(0, 1fr) 18px;
        justify-items: stretch;
        min-height: 76px;
        padding: 14px 20px;
    }

    .carter-sidebar.is-mobile-expanded .account-dropdown {
        right: 12px;
        bottom: calc(100% + 8px);
        left: 12px;
        width: auto;
    }

    .chat-local-header {
        min-height: 68px;
        padding: 0 18px;
    }

    .chat-scroll {
        padding-right: 18px;
        padding-left: 18px;
    }

    .chat-composer-shell {
        width: calc(100% - 28px);
        margin-right: 14px;
        margin-left: 14px;
    }
}

@media (max-width: 560px) {
    .chat-shell.chat-page {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .carter-sidebar {
        padding-right: 8px;
        padding-left: 8px;
    }

    .sidebar-brand .brand-spark {
        width: 22px;
        height: 22px;
    }

    .sidebar-brand-icon {
        width: 30px;
        height: 30px;
        margin-left: 0;
    }

    .sidebar-brand-logo {
        width: 30px;
        height: 30px;
        margin-left: 0;
    }

    .sidebar-workspace-switcher {
        width: 42px;
        min-height: 42px;
    }

    .sidebar-workspace-trigger {
        min-height: 42px;
    }

    .sidebar-workspace-dropdown {
        width: min(242px, calc(100vw - 86px));
    }

    .sidebar-nav-item {
        width: 42px;
        min-height: 40px;
    }

    .conversation-item {
        width: 44px;
    }

    .conversation-icon {
        width: 26px;
        height: 26px;
    }

    .account-avatar {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .account-dropdown {
        width: min(224px, calc(100vw - 88px));
    }

    .chat-header-icon {
        width: 34px;
        height: 34px;
    }

    .chat-local-header {
        gap: 12px;
        padding: 0 12px;
    }
}

@media (max-height: 760px) {
    .carter-sidebar {
        gap: 8px;
        padding-top: 14px;
    }

    .sidebar-workspace-trigger {
        min-height: 42px;
    }

    .sidebar-primary-nav {
        gap: 3px;
    }

    .sidebar-nav-item {
        min-height: 36px;
    }

    .sidebar-conversations {
        gap: 6px;
        padding-top: 0;
    }

    .sidebar-section-head {
        min-height: 28px;
    }

    .conversation-item {
        min-height: 50px;
    }

    .account-footer {
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-height: 620px) {
    .sidebar-brand-icon,
    .sidebar-brand-logo {
        width: 28px;
        height: 28px;
    }

    .sidebar-workspace-trigger {
        min-height: 38px;
    }

    .sidebar-nav-item {
        min-height: 32px;
    }

    .sidebar-conversation-items {
        gap: 4px;
    }

    .conversation-item {
        min-height: 46px;
    }

    .account-footer {
        min-height: 58px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .account-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Shared dashboard side-navbar shell */
.app-shell.sidebar-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fbfaf8;
    color: #081c34;
}

@media (min-width: 901px) {
    .app-shell.sidebar-shell.is-sidebar-collapsed {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .carter-sidebar {
        gap: 10px;
        padding: 16px 8px 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-topbar {
        display: grid;
        justify-content: center;
        justify-items: center;
        gap: 8px;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-brand {
        display: grid;
        width: 40px;
        min-height: 36px;
        justify-self: center;
        place-items: center;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-brand-icon,
    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-brand-logo {
        width: 30px;
        height: 30px;
        margin-left: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-desktop-toggle {
        width: 36px;
        height: 36px;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-brand strong,
    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-workspace-current,
    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-select-chevron,
    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-nav-item span:last-child,
    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-section-head span,
    .app-shell.sidebar-shell.is-sidebar-collapsed .conversation-copy,
    .app-shell.sidebar-shell.is-sidebar-collapsed .account-name,
    .app-shell.sidebar-shell.is-sidebar-collapsed .account-chevron {
        display: none;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-workspace-switcher {
        justify-self: center;
        width: 40px;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-workspace-trigger {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 40px;
        padding: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-workspace-dropdown {
        top: 0;
        right: auto;
        left: calc(100% + 6px);
        width: 246px;
        max-height: min(320px, calc(100vh - 64px));
        transform: translateX(-5px) scale(0.98);
        transform-origin: left top;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-workspace-switcher:focus-within .sidebar-workspace-dropdown {
        transform: translateX(0) scale(1);
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-primary-nav {
        justify-items: center;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-nav-item {
        width: 40px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        padding: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-conversations {
        justify-items: center;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .sidebar-section-head {
        justify-content: center;
        padding: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .conversation-item {
        width: 40px;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 44px;
        padding: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .conversation-select {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 44px;
        padding: 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .conversation-menu-trigger,
    .app-shell.sidebar-shell.is-sidebar-collapsed .conversation-row-menu {
        display: none;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .account-menu {
        margin: 0 -8px;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .account-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 60px;
        padding: 10px 0;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .account-avatar {
        width: 36px;
        height: 36px;
    }

    .app-shell.sidebar-shell.is-sidebar-collapsed .account-dropdown {
        right: auto;
        bottom: 8px;
        left: calc(100% + 6px);
        width: 230px;
    }
}

.sidebar-shell .workspace-main {
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fbfaf8;
    padding: 0;
}

.sidebar-shell.chat-sidebar-shell .workspace-main {
    overflow: hidden;
}

.app-shell.setup-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #fbfaf8;
    color: #081c34;
}

.setup-shell .workspace-main,
.setup-workspace-main {
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fbfaf8;
}

.onboarding-chat-page {
    min-height: 100vh;
    min-height: 100dvh;
    color: #081c34;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(251, 250, 248, 0.96)),
        #fbfaf8;
}

.onboarding-chat-shell {
    display: grid;
    width: min(1120px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 32px 0;
}

.setup-details-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(251, 250, 248, 0.88);
    padding: 28px;
    backdrop-filter: blur(16px);
}

.setup-details-modal {
    display: grid;
    width: min(560px, 100%);
    gap: 18px;
    border: 1px solid rgba(213, 205, 196, 0.9);
    border-radius: 8px;
    background: #fffdfb;
    padding: clamp(24px, 4vw, 38px);
    box-shadow:
        0 28px 90px rgba(8, 28, 52, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.setup-details-modal header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.setup-details-modal header img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.setup-details-modal header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.setup-details-modal header p {
    margin: 0;
    color: #006b68;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.setup-details-modal h1 {
    margin: 0;
    color: #081c34;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1.04;
}

.setup-details-copy {
    max-width: 468px;
    margin: -4px 0 0;
    color: #53657b;
    font-size: 15px;
    line-height: 1.5;
}

.setup-details-form {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.setup-page-window {
    position: relative;
    display: grid;
    min-height: 120px;
    min-width: 0;
    overflow: hidden;
}

.setup-details-page {
    display: grid;
    grid-area: 1 / 1;
    gap: 8px;
    min-width: 0;
}

.setup-page-advancing .setup-details-page.active {
    animation: setup-page-slide-next 220ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.setup-page-returning .setup-details-page.active {
    animation: setup-page-slide-previous 220ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes setup-page-slide-next {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes setup-page-slide-previous {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.setup-details-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.setup-details-form label span {
    color: #5f6b78;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
}

.setup-details-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ded8d2;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
}

.setup-details-form input:focus {
    border-color: rgba(0, 107, 104, 0.58);
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.16);
}

.setup-details-form input:disabled {
    background: #f6f2ee;
    color: #7a8491;
}

.setup-field-hint {
    margin: 0;
    color: #667076;
    font-size: 12px;
    line-height: 1.45;
}

.setup-details-actions {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.setup-details-form .primary-action {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
}

.setup-details-actions .primary-action:first-child {
    grid-column: 1 / -1;
}

.setup-back-action {
    min-height: 48px;
    border-color: #d9dcd8;
    background: #fff;
    color: #33445b;
}

.setup-details-form .primary-action:disabled {
    background: #d8d5cf;
    color: #7c8791;
    opacity: 1;
    box-shadow: none;
}

.setup-details-error {
    border: 1px solid rgba(176, 47, 47, 0.24);
    border-radius: 8px;
    background: #fff4f1;
    color: #8f2525;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.4;
}

.onboarding-chat-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.onboarding-chat-header span {
    display: block;
    margin-bottom: 8px;
    color: #6d7786;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.onboarding-chat-header h1 {
    margin: 0;
    color: #081c34;
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.02;
}

.onboarding-chat-header p {
    min-width: 0;
    max-width: 320px;
    margin: 0;
    color: #526174;
    font-size: 13px;
    line-height: 1.42;
    text-align: right;
}

.onboarding-thread-panel {
    display: grid;
    grid-template-areas:
        "setup-header"
        "selected-path"
        "messages"
        "setup-state"
        "composer";
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 16px;
    min-width: 0;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
}

.onboarding-thread-panel.is-welcome {
    grid-template-areas: none;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    justify-items: center;
    gap: clamp(24px, 4.2vh, 44px);
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding: clamp(18px, 3.8vh, 58px) 0;
}

.onboarding-welcome {
    display: grid;
    justify-items: center;
    gap: 22px;
    max-width: 720px;
    text-align: center;
}

.onboarding-welcome-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 0;
}

.onboarding-welcome-heading img {
    display: block;
    width: clamp(50px, 5vw, 72px);
    height: clamp(50px, 5vw, 72px);
    object-fit: contain;
}

.onboarding-welcome h1 {
    margin: 0;
    color: #081c34;
    font-size: clamp(42px, 5.8vw, 70px);
    font-weight: 780;
    letter-spacing: 0;
    line-height: 1;
}

.onboarding-welcome p {
    max-width: 610px;
    margin: 0;
    color: #53657b;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.5;
}

.onboarding-option-grid {
    display: grid;
    width: min(1080px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.onboarding-option-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 28px;
    min-width: 0;
    min-height: 164px;
    border: 1px solid #e4ded8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #081c34;
    padding: 28px 32px;
    text-align: left;
    box-shadow: 0 16px 38px rgba(8, 28, 52, 0.06);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.onboarding-option-card:hover,
.onboarding-option-card:focus-visible,
.onboarding-option-card.active {
    border-color: rgba(232, 93, 4, 0.34);
    background: #fffdfb;
    box-shadow: 0 20px 46px rgba(8, 28, 52, 0.1);
    transform: translateY(-1px);
}

.onboarding-option-card:focus-visible {
    outline: 2px solid rgba(232, 93, 4, 0.24);
    outline-offset: 3px;
}

.onboarding-option-icon {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #f3f1ef, #ebe9e7);
}

.onboarding-option-icon::before {
    width: 38px;
    height: 38px;
    background: #f97316;
    content: "";
}

.onboarding-option-icon.about::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-option-icon.context::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-option-copy {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.onboarding-option-copy strong {
    color: #081c34;
    font-size: 18px;
    font-weight: 780;
    line-height: 1.24;
}

.onboarding-option-copy span {
    color: #53657b;
    font-size: 16px;
    line-height: 1.48;
}

.onboarding-option-arrow {
    width: 22px;
    height: 22px;
    background: #8a96a5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-ask-divider {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
    align-items: center;
    gap: 18px;
    width: min(420px, 100%);
    color: #79828d;
}

.onboarding-ask-divider span {
    height: 1px;
    background: #dfddd9;
}

.onboarding-ask-divider strong {
    color: #79828d;
    font-size: 14px;
    font-weight: 560;
}

.onboarding-thread-panel.is-welcome .chat-composer-shell {
    grid-area: auto;
    width: min(1040px, 100%);
    margin: 0;
}

.onboarding-thread-panel.is-welcome .chat-composer-shell::before {
    display: none;
}

.onboarding-thread-panel.is-welcome .chat-composer {
    min-height: 108px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 16px 34px rgba(8, 28, 52, 0.08);
}

.onboarding-thread-panel > .chat-composer-shell {
    grid-area: composer;
}

.onboarding-thread-header {
    grid-area: setup-header;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(996px, 100%);
    justify-self: center;
    padding: 6px 8px 2px;
    animation: onboarding-thread-in 220ms ease both;
}

.onboarding-thread-header img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.onboarding-thread-header div {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.onboarding-thread-header strong {
    color: #081c34;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.2;
}

.onboarding-thread-header span {
    color: #6b7788;
    font-size: 12px;
    line-height: 1.25;
}

.onboarding-selected-path {
    grid-area: selected-path;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(996px, 100%);
    justify-self: center;
    border: 1px solid #e3ded8;
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.86);
    padding: 12px 14px;
    box-shadow: 0 10px 26px rgba(8, 28, 52, 0.045);
    animation: onboarding-thread-in 220ms ease both;
}

.onboarding-selected-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #f2efeb;
}

.onboarding-selected-icon::before {
    width: 21px;
    height: 21px;
    background: #e85d04;
    content: "";
}

.onboarding-selected-icon.about::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-selected-icon.context::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-selected-path div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.onboarding-selected-path strong {
    color: #081c34;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.2;
}

.onboarding-selected-path span:not(.onboarding-selected-icon) {
    color: #657283;
    font-size: 12px;
    line-height: 1.3;
}

.onboarding-selected-path button {
    min-height: 34px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #33445b;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 740;
    cursor: pointer;
}

.onboarding-selected-path button:hover,
.onboarding-selected-path button:focus-visible {
    border-color: #c7d4df;
    background: #f8fbff;
}

.onboarding-selected-path button:focus-visible {
    outline: 2px solid rgba(9, 33, 61, 0.2);
    outline-offset: 2px;
}

.onboarding-messages {
    grid-area: messages;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 8px 4px 0;
    animation: onboarding-thread-in 240ms ease both;
}

@keyframes onboarding-thread-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.onboarding-message.user {
    grid-template-columns: minmax(0, 1fr) 34px;
}

.onboarding-message.user .chat-avatar {
    grid-column: 2;
    grid-row: 1;
}

.onboarding-message.user .chat-bubble {
    grid-column: 1;
    justify-self: end;
    max-width: min(620px, 100%);
    background: #eef7ff;
}

.onboarding-message.assistant .chat-bubble {
    max-width: min(660px, 100%);
}

.onboarding-message.assistant + .onboarding-message.assistant {
    margin-top: -6px;
}

.onboarding-message.assistant + .onboarding-message.assistant .chat-assistant-mark {
    visibility: hidden;
}

.onboarding-message.assistant + .onboarding-message.assistant .chat-bubble time {
    display: none;
}

.onboarding-message.pending {
    grid-template-columns: 34px minmax(0, 1fr);
}

.onboarding-thread-panel > .research-alert {
    grid-area: setup-state;
    width: min(996px, 100%);
    justify-self: center;
}

.onboarding-composer {
    display: grid;
    gap: 12px;
    border: 1px solid #e6e1dd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 14px;
    box-shadow: 0 16px 42px rgba(8, 28, 52, 0.08);
}

.onboarding-mode-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.onboarding-mode-row button {
    min-width: 0;
    min-height: 42px;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    background: #fff;
    color: #33445b;
    font-size: 12px;
    font-weight: 740;
    cursor: pointer;
}

.onboarding-mode-row button.active {
    border-color: rgba(232, 93, 4, 0.34);
    background: #fff3eb;
    color: #9a3d00;
}

.onboarding-mode-row button:focus-visible,
.onboarding-file-picker:focus-within {
    outline: 2px solid rgba(232, 93, 4, 0.26);
    outline-offset: 2px;
}

.onboarding-composer textarea {
    width: 100%;
    min-height: 118px;
    resize: vertical;
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: #fff;
    color: #17283b;
    padding: 13px 14px;
    font: inherit;
    font-size: 13px;
    line-height: 1.48;
}

.onboarding-composer textarea:focus {
    border-color: rgba(232, 93, 4, 0.44);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.onboarding-file-picker {
    position: relative;
    display: grid;
    min-height: 126px;
    place-items: center;
    border: 1px dashed #b9c8d8;
    border-radius: 8px;
    background: #f7fbff;
    color: #26445f;
    padding: 18px;
    text-align: center;
    cursor: pointer;
}

.onboarding-file-picker span {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 720;
}

.onboarding-file-picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.onboarding-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.onboarding-composer-footer span {
    min-width: 0;
    color: #66768a;
    font-size: 12px;
    line-height: 1.4;
}

.onboarding-next-actions {
    grid-area: setup-state;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.onboarding-workspace-cta {
    position: relative;
    display: inline-grid;
    grid-template-columns: 40px minmax(0, auto) 28px;
    align-items: center;
    gap: 12px;
    width: min(372px, 100%);
    min-width: 0;
    min-height: 64px;
    border: 1px solid rgba(0, 107, 104, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 250, 0.98) 58%, rgba(255, 248, 242, 0.98)),
        #fff;
    padding: 11px 13px;
    color: #081c34;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(8, 28, 52, 0.12), 0 2px 0 rgba(255, 255, 255, 0.72) inset;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.onboarding-workspace-cta:hover {
    border-color: rgba(232, 93, 4, 0.38);
    box-shadow: 0 22px 46px rgba(8, 28, 52, 0.16), 0 2px 0 rgba(255, 255, 255, 0.78) inset;
    transform: translateY(-1px);
}

.onboarding-workspace-cta:focus-visible {
    outline: 3px solid rgba(232, 93, 4, 0.2);
    outline-offset: 3px;
}

.onboarding-workspace-cta-mark,
.onboarding-workspace-cta-arrow {
    display: grid;
    place-items: center;
    min-width: 0;
}

.onboarding-workspace-cta-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 107, 104, 0.12);
}

.onboarding-workspace-cta-mark::before {
    width: 21px;
    height: 21px;
    background: #006b68;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%209.5%2012%203l9%206.5V20a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%209.5%2012%203l9%206.5V20a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onboarding-workspace-cta strong {
    min-width: 0;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.25;
    text-align: center;
}

.onboarding-workspace-cta-arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #081c34;
}

.onboarding-workspace-cta-arrow::before {
    width: 15px;
    height: 15px;
    background: #fff;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14'/%3E%3Cpath%20d='m13%206%206%206-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14'/%3E%3Cpath%20d='m13%206%206%206-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chat-workspace-main .chat-page {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fbfaf8;
    color: #081c34;
}

.chat-workspace-main .chat-loading-state {
    min-height: 0;
}

@media (max-width: 900px) {
    .app-shell.sidebar-shell {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .sidebar-desktop-toggle {
        display: none;
    }
}

@media (max-width: 560px) {
    .app-shell.sidebar-shell {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .onboarding-chat-shell {
        width: calc(100% - 28px);
        padding: 22px 0;
    }

    .setup-details-backdrop {
        align-items: start;
        padding: 18px;
    }

    .setup-details-modal {
        margin-top: 18px;
        padding: 22px;
    }

    .setup-details-modal h1 {
        font-size: 28px;
    }

    .setup-details-modal header {
        align-items: flex-start;
    }

    .setup-details-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .setup-back-action {
        width: 100%;
    }

    .onboarding-thread-panel,
    .onboarding-thread-panel.is-welcome {
        min-height: calc(100vh - 44px);
        min-height: calc(100dvh - 44px);
    }

    .onboarding-thread-panel.is-welcome {
        grid-template-areas: none;
        align-content: start;
        gap: 22px;
        padding: 24px 0;
    }

    .onboarding-chat-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-chat-header h1 {
        font-size: 34px;
    }

    .onboarding-chat-header p {
        max-width: none;
        text-align: left;
    }

    .onboarding-welcome {
        gap: 16px;
    }

    .onboarding-welcome-heading {
        flex-direction: column;
        gap: 14px;
    }

    .onboarding-welcome h1 {
        font-size: 40px;
    }

    .onboarding-welcome p {
        font-size: 16px;
    }

    .onboarding-option-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .onboarding-option-card {
        grid-template-columns: 64px minmax(0, 1fr) 20px;
        gap: 16px;
        min-height: 124px;
        padding: 18px;
    }

    .onboarding-option-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .onboarding-option-icon::before {
        width: 32px;
        height: 32px;
    }

    .onboarding-option-copy {
        gap: 7px;
    }

    .onboarding-option-copy strong {
        font-size: 16px;
    }

    .onboarding-option-copy span,
    .onboarding-ask-divider strong {
        font-size: 13px;
    }

    .onboarding-thread-panel.is-welcome .chat-composer-shell {
        grid-area: auto;
        width: 100%;
    }

    .onboarding-selected-path {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px;
    }

    .onboarding-selected-icon {
        width: 34px;
        height: 34px;
    }

    .onboarding-selected-path span:not(.onboarding-selected-icon) {
        font-size: 11px;
    }

    .onboarding-messages {
        padding-right: 0;
    }

    .onboarding-mode-row {
        grid-template-columns: 1fr;
    }

    .onboarding-workspace-cta {
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        width: 100%;
        min-height: 60px;
        gap: 10px;
        padding: 10px 12px;
    }

    .onboarding-workspace-cta-mark {
        width: 36px;
        height: 36px;
    }

    .onboarding-composer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-composer-footer .primary-action {
        width: 100%;
    }
}

/* Leads operations workspace */
.leads-ops-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fbfaf8;
    color: #081c34;
}

.leads-ops-workspace.inspector-collapsed {
    grid-template-columns: minmax(0, 1fr) 40px;
}

.leads-ops-main {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 28px 28px 22px;
}

.leads-ops-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.leads-title-block {
    min-width: 220px;
}

.leads-title-block h1 {
    margin: 0;
    color: #081c34;
    font-size: 12px;
    line-height: 1.1;
}

.leads-title-block p,
.lead-table-toolbar p {
    margin: 6px 0 0;
    color: #536784;
    font-size: 12px;
}

.leads-top-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: min(720px, 100%);
}

.leads-top-controls .secondary-action,
.leads-top-controls .filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.lead-search-shell {
    position: relative;
    display: block;
    width: min(360px, 100%);
}

.lead-search-input {
    width: 100%;
    padding-left: 36px;
}

.lead-control-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: var(--lead-control-icon) center / contain no-repeat;
    mask: var(--lead-control-icon) center / contain no-repeat;
}

.lead-control-icon.search {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #69758a;
    transform: translateY(-50%);
    --lead-control-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-4-4'/%3E%3C/svg%3E");
}

.lead-control-icon.filters {
    --lead-control-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%206h16'/%3E%3Cpath%20d='M7%2012h10'/%3E%3Cpath%20d='M10%2018h4'/%3E%3C/svg%3E");
}

.lead-control-icon.refresh {
    --lead-control-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.25'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2012a9%209%200%201%201-3-6.7'/%3E%3Cpath%20d='M21%203v6h-6'/%3E%3C/svg%3E");
}

.lead-control-icon.sparkle {
    color: #5a37d6;
    --lead-control-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l1.9%205.1L19%2010l-5.1%201.9L12%2017l-1.9-5.1L5%2010l5.1-1.9L12%203Z'/%3E%3Cpath%20d='M19%2015l.9%202.1L22%2018l-2.1.9L19%2021l-.9-2.1L16%2018l2.1-.9L19%2015Z'/%3E%3C/svg%3E");
}

.lead-view-select {
    width: 170px;
}

.lead-sort-select {
    width: 178px;
}

.lead-advanced-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.lead-advanced-filters .field-line {
    display: grid;
    gap: 5px;
    margin-bottom: 0;
}

.lead-advanced-filters .field-line > span {
    color: #536784;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.lead-queue-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(118px, 1fr));
    overflow: hidden;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
}

.lead-queue-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 8px;
    min-height: 68px;
    border-right: 1px solid #e7eaed;
    background: #fff;
    color: #081c34;
    padding: 12px 14px;
    text-align: left;
}

.lead-queue-filter:last-child {
    border-right: 0;
}

.lead-queue-filter:hover,
.lead-queue-filter.active {
    background: #f8fbff;
}

.lead-queue-filter.active {
    box-shadow: inset 0 0 0 2px #4d7bd9;
}

.lead-queue-filter > span:not(.lead-filter-dot) {
    color: #243654;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.lead-queue-filter strong {
    grid-column: 2;
    color: #081c34;
    font-size: 12px;
    line-height: 1;
}

.lead-filter-dot {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: #eef1f4;
}

.lead-filter-dot.success {
    background: #d9f1e5;
}

.lead-filter-dot.warning,
.lead-filter-dot.amber {
    background: #ffebc2;
}

.lead-filter-dot.danger {
    background: #ffe0dd;
}

.lead-filter-dot.info {
    background: #e1eaff;
}

.lead-table-panel,
.lead-queue-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.lead-queue-panel {
    overflow: visible;
}

.lead-table-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(560px, auto);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f3;
    padding: 14px 16px;
}

.lead-table-toolbar > div:first-child {
    min-width: 0;
}

.lead-table-toolbar h2 {
    margin: 0;
    color: #081c34;
    font-size: 12px;
}

.lead-queue-panel .queue-empty {
    padding-right: 16px;
    padding-left: 16px;
}

.lead-queue-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 170px auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.lead-queue-toolbar-actions .secondary-action {
    gap: 8px;
    min-height: 38px;
    white-space: nowrap;
}

.lead-queue-toolbar-actions .lead-search-shell {
    width: 100%;
}

.lead-queue-toolbar-actions .lead-view-select {
    width: 170px;
}

.lead-queue-list {
    display: grid;
    gap: 8px;
    padding: 8px 12px 12px;
}

.lead-queue-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(124px, 1.12fr) 64px 94px minmax(120px, 1.24fr) minmax(128px, 0.72fr);
    align-items: center;
    gap: 12px;
    min-height: 92px;
    border: 0;
    border-radius: var(--workspace-selected-radius);
    background: transparent;
    padding: 14px 54px 14px 16px;
    cursor: pointer;
    overflow: hidden;
}

.lead-queue-row:hover,
.lead-queue-row.active {
    background: #f5fbff;
}

.lead-queue-row:focus {
    outline: 2px solid #4d7bd9;
    outline-offset: 2px;
}

.lead-queue-row::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    content: "";
    pointer-events: none;
}

.lead-queue-row > * {
    position: relative;
    z-index: 1;
}

.lead-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lead-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #061b35;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lead-score-block {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}

.lead-score-label {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #536784;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-score-label.success {
    color: #14754f;
}

.lead-score-label.warning,
.lead-score-label.amber {
    color: #a56315;
}

.lead-score-label.info {
    color: #245ca8;
}

.lead-score-label.danger {
    color: #c43127;
}

.lead-signal-line {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.lead-readiness-signal {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
    color: #69758a;
    font-size: 11px;
    font-weight: 820;
    line-height: 1.25;
}

.lead-readiness-signal::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
}

.lead-readiness-signal > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-readiness-signal.success {
    color: #14754f;
}

.lead-readiness-signal.warning,
.lead-readiness-signal.amber {
    color: #a56315;
}

.lead-readiness-signal.info {
    color: #245ca8;
}

.lead-readiness-signal.danger {
    color: #c43127;
}

.lead-ai-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #17283b;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lead-next-queue {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.lead-next-queue > span {
    color: #69758a;
    font-size: 11px;
    font-weight: 700;
}

.lead-bulk-action-bar {
    border-width: 0 0 1px;
    border-radius: 0;
    margin: 0;
    background: #f8fbff;
    padding: 10px 14px;
}

.lead-table-scroll {
    max-width: 100%;
    min-width: 0;
    overflow: auto;
}

.lead-ops-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.lead-ops-table th,
.lead-ops-table td {
    overflow: hidden;
    border-bottom: 1px solid #edf0f3;
    padding: 8px 10px;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.lead-ops-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fbfcfd;
    color: #69758a;
    font-size: 11px;
    font-weight: 800;
}

.lead-ops-table th:nth-child(1),
.lead-ops-table td:nth-child(1) {
    width: 40px;
}

.lead-ops-table th:nth-child(2),
.lead-ops-table td:nth-child(2) {
    width: 150px;
}

.lead-ops-table th:nth-child(3),
.lead-ops-table td:nth-child(3) {
    width: 78px;
}

.lead-ops-table th:nth-child(4),
.lead-ops-table td:nth-child(4) {
    width: 76px;
}

.lead-ops-table th:nth-child(5),
.lead-ops-table td:nth-child(5),
.lead-ops-table th:nth-child(6),
.lead-ops-table td:nth-child(6),
.lead-ops-table th:nth-child(7),
.lead-ops-table td:nth-child(7),
.lead-ops-table th:nth-child(8),
.lead-ops-table td:nth-child(8) {
    width: 110px;
}

.lead-ops-table th:nth-child(9),
.lead-ops-table td:nth-child(9) {
    width: 104px;
}

.lead-ops-table th:nth-child(10),
.lead-ops-table td:nth-child(10) {
    width: 86px;
}

.lead-ops-table th:nth-child(11),
.lead-ops-table td:nth-child(11) {
    width: 112px;
}

.lead-ops-table tbody tr {
    cursor: pointer;
}

.lead-ops-table tbody tr:hover,
.lead-ops-table tbody tr.active {
    background: #eef7ff;
}

.lead-ops-table tbody tr:focus {
    outline: 2px solid #4d7bd9;
    outline-offset: -2px;
}

.lead-select-column {
    text-align: center;
}

.lead-select-column input {
    width: 16px;
    height: 16px;
    accent-color: #174ea6;
}

.lead-company-cell strong,
.lead-score-cell strong,
.lead-source-cell strong {
    display: block;
    overflow: hidden;
    color: #081c34;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-company-cell small,
.lead-score-cell small,
.lead-source-cell small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #69758a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-score-cell strong {
    color: #14754f;
}

.lead-updated-cell {
    color: #536784;
    font-weight: 650;
}

.lead-next-cell button {
    overflow: hidden;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: #174ea6;
    padding: 0;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-next-queue button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    line-height: 1.3;
    white-space: normal;
}

.lead-next-queue button > span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lead-action-arrow {
    display: block;
    width: 24px;
    height: 24px;
    color: #e85d04;
    transition: color 140ms ease, transform 140ms ease;
}

.lead-action-arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lead-queue-row:hover .lead-action-arrow,
.lead-queue-row.active .lead-action-arrow {
    color: #ff7a1a;
    transform: translateX(2px);
}

.lead-delete-trigger {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #536784;
    cursor: pointer;
    padding: 0;
}

.lead-queue-row .lead-delete-trigger {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.lead-delete-trigger:hover,
.lead-delete-trigger:focus-visible {
    background: #fff1ee;
    color: #b42318;
}

.lead-delete-trigger:focus-visible {
    outline: 2px solid rgba(180, 35, 24, 0.24);
    outline-offset: 2px;
}

.lead-delete-trigger span::before {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead-queue-row:hover .lead-delete-trigger,
.lead-queue-row:focus-within .lead-delete-trigger {
    opacity: 1;
    pointer-events: auto;
}

.lead-delete-trigger:disabled {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
}

.lead-inspector-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.lead-delete-inline {
    flex: 0 0 auto;
}

@media (hover: none) {
    .lead-queue-row .lead-delete-trigger {
        opacity: 1;
        pointer-events: auto;
    }

    .lead-queue-row .lead-delete-trigger:disabled {
        opacity: 0.35;
        pointer-events: none;
    }
}

.lead-state-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 22px;
    border: 1px solid #d9dcd8;
    border-radius: 999px;
    background: #f6f7f8;
    color: #526067;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.lead-state-chip.success {
    border-color: #bce3ca;
    background: #e8f7ee;
    color: #14754f;
}

.lead-state-chip.warning {
    border-color: #f1d0a1;
    background: #fff3df;
    color: #a56315;
}

.lead-state-chip.amber {
    border-color: #f1d990;
    background: #fff7db;
    color: #8a6300;
}

.lead-state-chip.danger {
    border-color: #f4bab2;
    background: #fff0ee;
    color: #c43127;
}

.lead-state-chip.info {
    border-color: #c2d5f2;
    background: #edf5ff;
    color: #245ca8;
}

.lead-state-chip.purple {
    border-color: #dac8f7;
    background: #f5efff;
    color: #6d3fb0;
}

.lead-state-chip.neutral {
    border-color: #d9dfe5;
    background: #f1f3f5;
    color: #53606b;
}

.lead-state-chip.priority {
    border-radius: 6px;
}

.lead-table-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf0f3;
    padding: 12px 14px;
}

.lead-table-footer > span {
    color: #536784;
    font-size: 12px;
}

.lead-pagination-preview {
    display: flex;
    gap: 6px;
}

.lead-pagination-preview button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #536784;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.lead-pagination-preview button.active {
    background: #eef1f4;
    color: #081c34;
}

.lead-ops-inspector {
    position: sticky;
    isolation: isolate;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    overflow: visible;
    border-left: 1px solid #d9dcd8;
    background: rgba(255, 255, 255, 0.92);
}

.lead-ops-inspector.is-collapsed {
    border-color: transparent;
    background: transparent;
}

.lead-inspector-content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.lead-inspector-edge-toggle {
    position: absolute;
    top: 50%;
    left: -18px;
    z-index: 5;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7ddd6;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(8, 28, 52, 0.13), 0 0 0 4px rgba(255, 255, 255, 0.76);
    color: #071a35;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.lead-inspector-edge-toggle:hover,
.lead-inspector-edge-toggle:focus-visible {
    border-color: #0f7f73;
    color: #0f7f73;
    box-shadow: 0 14px 30px rgba(8, 28, 52, 0.16), 0 0 0 5px rgba(15, 127, 115, 0.11);
}

.lead-inspector-edge-toggle:focus-visible {
    outline: 2px solid #0f7f73;
    outline-offset: 3px;
}

.lead-inspector-edge-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

.lead-inspector-edge-arrow {
    display: inline-block;
    width: 17px;
    height: 17px;
    background: currentColor;
    transform: rotate(180deg);
    transition: transform 150ms ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m15%2018-6-6%206-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m15%2018-6-6%206-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead-ops-inspector.is-collapsed .lead-inspector-edge-toggle {
    left: 2px;
}

.lead-ops-inspector.is-collapsed .lead-inspector-edge-arrow {
    transform: rotate(0deg);
}

.lead-inspector-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "avatar title"
        "avatar status";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding: 18px 16px;
}

.inspector-avatar {
    width: 50px;
    height: 50px;
}

.lead-inspector-top .inspector-avatar {
    grid-area: avatar;
}

.lead-inspector-title {
    grid-area: title;
    min-width: 0;
}

.lead-inspector-title h2,
.lead-inspector-title p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-inspector-top .lead-state-chip {
    grid-area: status;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
}

.lead-ai-brief-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 16px 0;
    color: #081c34;
    font-size: 12px;
    font-weight: 850;
    text-transform: none;
}

.lead-fit-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 14px 16px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.lead-recommended-pill {
    grid-column: 1 / -1;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border-radius: 6px;
    background: #e8f7ee;
    color: #14754f;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.lead-fit-score-ring {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 4px solid #d9dfe5;
    border-radius: 50%;
    color: #081c34;
}

.lead-fit-score-ring.success {
    border-color: #91d8aa;
}

.lead-fit-score-ring.warning,
.lead-fit-score-ring.amber {
    border-color: #f1d990;
}

.lead-fit-score-ring.danger {
    border-color: #f1a8a0;
}

.lead-fit-score-ring.neutral {
    border-color: #d9dfe5;
}

.lead-fit-summary-card h3 {
    margin: 0 0 3px;
    color: #14754f;
    font-size: 12px;
}

.lead-fit-summary-card p {
    margin: 0;
    color: #536784;
    font-size: 12px;
}

.lead-inspector-compact {
    margin: 14px 16px;
    padding: 0;
}

.lead-inspector-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.lead-inspector-list li {
    position: relative;
    color: #17283b;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.45;
}

.lead-inspector-list li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #91d8aa;
    content: "";
    transform: translateY(-50%);
}

.risk-list li::before {
    background: #ff5a1f;
}

.lead-readiness-panel,
.lead-review-card,
.lead-review-details,
.lead-detail-meta {
    margin: 14px 16px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.lead-review-card {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.lead-review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lead-review-card-header > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lead-review-card-header span:first-child {
    color: #536784;
    font-size: 11px;
    font-weight: 850;
}

.lead-review-card-header h3 {
    margin: 0;
    color: #081c34;
    font-size: 14px;
    line-height: 1.2;
}

.lead-review-card .review-helper {
    display: block;
    color: #536784;
    font-size: 12px;
    line-height: 1.35;
}

.lead-flag-button.is-active,
.lead-flag-button.is-active:disabled {
    border-color: #8acdb6;
    background: #e8f7ee;
    color: #0d6f5c;
    opacity: 1;
}

.danger-action.lead-flag-button.is-active,
.danger-action.lead-flag-button.is-active:disabled {
    border-color: #efb2bd;
    background: #fff0f3;
    color: #c4163a;
}

.lead-readiness-panel h3,
.lead-detail-meta h3 {
    margin: 0 0 10px;
    color: #081c34;
    font-size: 12px;
}

.lead-readiness-panel > div,
.lead-detail-meta dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f3;
    padding: 8px 0 0;
}

.lead-readiness-panel > div + div,
.lead-detail-meta dl > div + div {
    margin-top: 8px;
}

.lead-readiness-panel span,
.lead-detail-meta dt {
    color: #536784;
    font-size: 12px;
    font-weight: 700;
}

.lead-readiness-panel strong,
.lead-detail-meta dd {
    margin: 0;
    color: #081c34;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.lead-next-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.lead-next-actions:has(> :only-child) {
    grid-template-columns: 1fr;
}

.lead-next-actions > .secondary-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.lead-primary-cta {
    width: 100%;
    margin-top: 12px;
}

.lead-review-details summary {
    color: #081c34;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.lead-review-details[open] summary {
    margin-bottom: 12px;
}

.lead-detail-meta dl {
    margin: 0;
}

@media (max-width: 1280px) {
    .leads-ops-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-ops-inspector {
        position: relative;
        height: auto;
        border-top: 1px solid #d9dcd8;
        border-left: 0;
    }
}

@media (max-width: 1100px) {
    .leads-ops-header,
    .lead-table-toolbar,
    .lead-table-footer {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .lead-queue-toolbar-actions {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) auto;
    }

    .leads-top-controls {
        justify-content: flex-start;
        min-width: 0;
    }

    .lead-queue-strip {
        display: flex;
        overflow-x: auto;
    }

    .lead-queue-filter {
        min-width: 138px;
        border-right: 1px solid #e7eaed;
    }

    .lead-table-footer {
        display: flex;
        flex-wrap: wrap;
    }

    .lead-queue-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .lead-score-block,
    .lead-signal-line,
    .lead-ai-summary,
    .lead-next-queue {
        grid-column: 1 / -1;
    }

    .lead-score-block {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .leads-ops-main {
        padding: 18px 14px;
    }

    .leads-title-block h1 {
        font-size: 12px;
    }

    .leads-top-controls > *,
    .lead-search-input,
    .lead-view-select,
    .lead-sort-select,
    .lead-advanced-filters .field-line,
    .lead-advanced-filters .filter-select,
    .lead-table-toolbar .secondary-action {
        width: 100%;
    }

    .lead-bulk-action-bar,
    .lead-bulk-action-bar .bulk-action-controls {
        align-items: stretch;
    }

    .lead-search-shell,
    .lead-queue-toolbar-actions,
    .lead-queue-toolbar-actions > *,
    .lead-queue-toolbar-actions .lead-view-select {
        width: 100%;
    }

    .lead-queue-toolbar-actions {
        grid-template-columns: 1fr;
    }

    .lead-queue-row {
        gap: 12px;
        padding: 14px 52px 14px 14px;
    }
}

/* Compact Carter type scale: copy stays at 12px max; headings stay intentionally modest. */
:root {
    --type-copy: 12px;
    --type-caption: 11px;
    --type-heading-sm: 12px;
    --type-heading-md: 14px;
    --type-heading-lg: 18px;
    --type-display: 16px;
    --type-brand: 22px;
    --type-sidebar-brand: 18px;
}

body {
    font-size: var(--type-copy);
    line-height: 1.45;
}

button,
input,
select,
textarea,
.primary-action,
.secondary-action,
.danger-action,
.filter-button,
.filter-input,
.filter-select,
.file-picker,
.data-table,
.lead-ops-table,
.chat-markdown,
.chat-links a,
.chat-action-control,
.chat-composer textarea,
.conversation-item strong,
.conversation-copy strong,
    .sidebar-workspace-name,
.sidebar-nav-item,
.sidebar-section-head,
.account-name,
.lead-company-cell strong,
.lead-score-cell strong,
.lead-source-cell strong,
.lead-table-footer > span {
    font-size: var(--type-copy);
}

h1,
.page-heading h1,
.outreach-title-block h1,
.leads-title-block h1,
.profile-title-row h1 {
    font-size: var(--type-heading-lg);
    line-height: 1.16;
}

h2,
.data-panel h2,
.settings-card h2,
.profile-card h2,
.outreach-sidebar h2,
.lead-table-toolbar h2,
.inspector-top h2 {
    font-size: var(--type-heading-md);
    line-height: 1.24;
}

h3,
h4,
h5,
h6,
    .chat-markdown h3,
    .chat-markdown h4,
    .chat-markdown h5,
    .chat-action-copy strong,
    .chat-empty-state > strong,
    .queue-empty h3,
.inspector-panel h3,
.inspector-section h3,
.next-step-panel h3,
.lead-fit-summary-card h3,
.lead-readiness-panel h3,
.lead-detail-meta h3,
.lead-review-details summary,
.profile-card-head h2,
.settings-subheading {
    font-size: var(--type-heading-sm);
    line-height: 1.3;
}

.overview-step h1,
.overview-step h2,
.corpus-heading h2,
.source-reader-heading h2,
.account-heading h2,
.run-copy h2,
.chat-local-header h1,
.chat-loading-state h1 {
    font-size: var(--type-heading-md);
    line-height: 1.24;
}

.metric-panel strong,
.stat-tile strong,
.outreach-queue-card strong,
.lead-queue-filter strong,
.account-metrics strong,
.lead-fit-score-ring {
    font-size: var(--type-display);
    line-height: 1.05;
}

.brand strong,
.chat-shell .brand strong {
    font-size: var(--type-brand);
}

.sidebar-brand strong {
    font-size: var(--type-sidebar-brand);
}

.eyebrow,
.data-table th,
.lead-ops-table th,
.conversation-item small,
.conversation-copy small,
.conversation-empty,
.lead-company-cell small,
.lead-score-cell small,
.lead-source-cell small,
.lead-state-chip,
.status-pill,
.chat-bubble time {
    font-size: var(--type-caption);
}

@media (max-width: 760px) {
    .brand strong,
    .chat-shell .brand strong {
        font-size: 20px;
    }
}

/* Workspace consistency pass */
:root {
    --workspace-gutter: 28px;
    --workspace-gap: 14px;
    --workspace-inspector-gap: 24px;
    --workspace-inspector-width: 340px;
    --workspace-card-radius: 8px;
    --workspace-card-border: #d9dcd8;
    --workspace-selected: #eef7ff;
    --workspace-selected-radius: 7px;
    --workspace-muted: #536784;
}

/* Shared workspace viewport layout */
.overview-shell,
.leads-ops-workspace,
.split-page,
.outreach-page,
.research-reader-page.research-reader-page-with-header,
.targeting-page,
.campaigns-page,
.profile-page,
.settings-page {
    min-width: 0;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
}

.overview-shell,
.leads-ops-workspace,
.split-page,
.outreach-page,
.research-reader-page.research-reader-page-with-header {
    overflow: hidden;
}

.targeting-page,
.campaigns-page,
.profile-page,
.settings-page {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.overview-shell,
.leads-ops-workspace,
.split-page {
    align-items: stretch;
}

.overview-work,
.leads-ops-main,
.page-primary,
.outreach-main {
    min-height: 0;
}

.overview-work,
.leads-ops-main,
.page-primary {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.shared-inspector,
.overview-inspector {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
}

.inspector-scroll {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.lead-ops-inspector,
.runs-inspector {
    position: static;
    top: auto;
    align-self: stretch;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
}

.outreach-main {
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
}

.outreach-draft-workbench {
    min-height: 0;
}

.outreach-list-panel,
.outreach-editor-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar-shell .workspace-main,
.overview-shell,
.split-page,
.outreach-page,
.targeting-page,
.profile-page,
.settings-page,
.campaigns-page,
.leads-ops-workspace,
.research-reader-page {
    max-width: 100%;
    overflow-x: hidden;
}

.page-shell,
.campaigns-page.page-shell,
.settings-page.page-shell {
    padding: var(--workspace-gutter);
}

.page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
}

.page-heading-copy {
    min-width: 0;
    max-width: 760px;
}

.page-heading-copy h1 {
    margin: 0 0 6px;
}

.page-heading-copy p,
.context-note {
    margin: 0;
    color: var(--workspace-muted);
    font-size: var(--type-copy);
    line-height: 1.45;
}

.page-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.leads-ops-header .page-heading-actions,
.outreach-ops-header .page-heading-actions {
    flex: 1 1 auto;
}

.leads-top-controls,
.outreach-header-actions {
    min-width: 0;
}

.overview-shell,
.leads-ops-workspace {
    grid-template-columns: minmax(0, 1fr) var(--workspace-inspector-width);
}

.leads-ops-workspace {
    gap: var(--workspace-inspector-gap);
    padding: var(--workspace-gutter);
}

.leads-ops-main {
    padding: 0;
}

.split-page {
    grid-template-columns: minmax(0, 1fr) var(--workspace-inspector-width);
    gap: var(--workspace-gap);
    padding: var(--workspace-gutter);
}

.runs-page {
    grid-template-columns: minmax(0, 1fr) var(--workspace-inspector-width);
    gap: var(--workspace-inspector-gap);
}

.leads-ops-workspace .lead-ops-inspector,
.runs-page .side-inspector {
    width: 100%;
    max-width: var(--workspace-inspector-width);
}

.targeting-page {
    padding: var(--workspace-gutter);
}

.data-panel,
.settings-card,
.profile-card,
.lead-table-panel,
.lead-queue-panel,
.draft-list-panel,
.draft-editor-panel,
.research-corpus-panel,
.research-reader-panel,
.research-account-panel,
.side-inspector,
.lead-ops-inspector,
.overview-inspector {
    border-color: var(--workspace-card-border);
    border-radius: var(--workspace-card-radius);
}

.shared-inspector,
.side-inspector,
.lead-ops-inspector,
.overview-inspector,
.research-account-panel {
    min-width: 0;
    width: 100%;
    max-width: var(--workspace-inspector-width);
    overflow-x: hidden;
}

.leads-ops-workspace .lead-ops-inspector {
    position: relative;
    overflow: visible;
}

.shared-inspector {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-self: stretch;
    min-height: 0;
    height: auto;
    border-left: 1px solid var(--workspace-card-border);
    background: rgba(255, 255, 255, 0.94);
    overflow: hidden;
}

.inspector-scroll {
    display: grid;
    gap: 14px;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 18px;
}

.inspector-title {
    min-width: 0;
    flex: 1 1 auto;
}

.inspector-title h2,
.inspector-title p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspector-tabs {
    min-width: 0;
    overflow-x: auto;
}

.inspector-tabs span {
    flex: 0 0 auto;
}

.overview-inspector .fit-summary,
.overview-inspector .inspector-panel,
.overview-inspector .inspector-section,
.overview-inspector .next-step-panel {
    margin-right: 16px;
    margin-left: 16px;
}

.overview-research-list {
    display: grid;
    gap: 8px;
}

.overview-research-list span,
.overview-queue-row > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-table .table-head,
.overview-queue-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(112px, 0.62fr) minmax(160px, 1.3fr) minmax(126px, 0.78fr) minmax(118px, 0.76fr);
    gap: 12px;
    align-items: center;
}

.overview-queue-row {
    border-top: 1px solid #edf0f3;
    color: #33445b;
    padding: 11px 12px;
    font-size: var(--type-copy);
}

.overview-queue-row strong {
    color: #081c34;
}

.queue-empty {
    border-radius: var(--workspace-card-radius);
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.status-pill,
.lead-state-chip {
    max-width: 100%;
    overflow: hidden;
    line-height: 1.18;
    text-overflow: ellipsis;
}

.lead-state-chip {
    min-height: 24px;
}

.lead-ops-table th:nth-child(5),
.lead-ops-table td:nth-child(5),
.lead-ops-table th:nth-child(6),
.lead-ops-table td:nth-child(6),
.lead-ops-table th:nth-child(7),
.lead-ops-table td:nth-child(7),
.lead-ops-table th:nth-child(8),
.lead-ops-table td:nth-child(8) {
    width: 126px;
}

.lead-ops-table {
    min-width: 1180px;
}

.research-row:hover,
.research-row.active,
.brief-source-row:hover,
.brief-source-row:focus-within,
.brief-source-row.active,
.corpus-source-row:hover,
.corpus-source-row:focus-within,
.corpus-source-row.active,
.corpus-source:hover,
.corpus-source.active,
.outreach-draft-row:hover,
.outreach-draft-row.active,
.lead-queue-row:hover,
.lead-queue-row.active,
.lead-ops-table tbody tr:hover,
.lead-ops-table tbody tr.active {
    background: var(--workspace-selected);
}

.research-row:hover,
.research-row.active,
.brief-source-row:hover,
.brief-source-row:focus-within,
.brief-source-row.active,
.corpus-source-row:hover,
.corpus-source-row:focus-within,
.corpus-source-row.active,
.corpus-source:hover,
.corpus-source.active,
.outreach-draft-row:hover,
.outreach-draft-row.active,
.lead-queue-row:hover,
.lead-queue-row.active {
    border-bottom-color: transparent;
    border-radius: var(--workspace-selected-radius);
}

.lead-queue-row:hover,
.lead-queue-row.active {
    background: transparent;
}

.lead-queue-row:hover::before,
.lead-queue-row.active::before {
    background: var(--workspace-selected);
}

.research-reader-page.research-reader-page-with-header {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--workspace-gap);
    height: 100vh;
    height: 100dvh;
    padding: 22px var(--workspace-gutter);
}

.research-reader-page.research-reader-page-with-header.is-empty {
    grid-template-columns: minmax(300px, 428px) minmax(0, 1fr);
}

.research-reader-header {
    grid-column: 1 / -1;
    min-width: 0;
}

.research-reader-page-with-header .research-account-panel {
    max-width: none;
}

.research-reader-page-with-header .research-corpus-panel,
.research-reader-page-with-header .research-reader-panel,
.research-reader-page-with-header .research-account-panel {
    min-height: 0;
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
}

.research-reader-page-with-header.is-empty .research-corpus-panel,
.research-reader-page-with-header.is-empty .research-empty-panel {
    overflow: auto;
}

.research-empty-panel {
    align-content: start;
    min-height: 260px;
}

.research-empty-panel .source-empty-state {
    max-width: 720px;
}

.header-count-pill {
    border: 1px solid var(--workspace-card-border);
    border-radius: var(--workspace-card-radius);
    background: #fff;
}

.header-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: #081c34;
    font-weight: 700;
}

.context-note {
    margin: -10px 0 18px;
}

.settings-debug-details:not(.settings-detail-row) {
    border-top: 1px solid #edf0f3;
    padding-top: 10px;
}

.settings-debug-details:not(.settings-detail-row) summary {
    color: var(--workspace-muted);
    cursor: pointer;
    font-weight: 700;
}

.settings-debug-details:not(.settings-detail-row)[open] summary {
    margin-bottom: 10px;
}

.profile-topline {
    align-items: center;
}

.profile-hero .page-heading-actions {
    align-items: stretch;
}

.settings-page.settings-page-with-nav.page-shell {
    display: grid;
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.settings-secondary-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--workspace-card-border);
    background: rgba(255, 255, 255, 0.44);
    padding: 30px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.settings-secondary-title {
    margin: 0;
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 760;
    line-height: 1.25;
}

.settings-secondary-nav {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.settings-secondary-nav-link {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: var(--workspace-card-radius);
    color: #09213d;
    padding: 9px 12px;
    text-decoration: none;
}

.settings-secondary-nav-link::before {
    display: none;
}

.settings-secondary-nav-link:hover {
    border-color: #e5ebf1;
    background: #f8fafc;
}

.settings-secondary-nav-link.active {
    border-color: #dfe8f1;
    background: #f3f8fc;
}

.settings-secondary-nav-link.active .sidebar-nav-icon {
    color: #0f766e;
}

.settings-secondary-nav-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.settings-secondary-nav-copy strong,
.settings-secondary-nav-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-secondary-nav-copy strong {
    color: #081c34;
    font-size: var(--type-copy);
    font-weight: 760;
    line-height: 1.2;
    white-space: nowrap;
}

.settings-secondary-nav-copy small {
    color: var(--workspace-muted);
    font-size: var(--type-caption);
    line-height: 1.25;
}

.settings-section-main {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px var(--workspace-gutter) var(--workspace-gutter);
}

.settings-page-header {
    margin-bottom: 22px;
}

.settings-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.settings-grid-single .settings-card.wide {
    grid-column: auto;
}

@media (max-width: 1180px) {
    .settings-page.settings-page-with-nav.page-shell {
        grid-template-columns: minmax(200px, 224px) minmax(0, 1fr);
    }

    .settings-secondary-sidebar {
        padding: 24px 10px;
    }

    .settings-section-main {
        padding-top: 26px;
    }

    .settings-secondary-nav-link {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
        padding-right: 10px;
    }

    .settings-workspace-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-billing-grid,
    .settings-team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-sender-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-workspace-details-card,
    .settings-profile-card {
        min-height: 0;
    }

    .settings-export-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-export-art {
        min-height: 166px;
    }
}

@media (max-width: 900px) {
    .settings-page.settings-page-with-nav.page-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .settings-secondary-sidebar {
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid var(--workspace-card-border);
        padding: 14px;
        overflow: visible;
    }

    .settings-secondary-nav {
        grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
        gap: 8px;
    }

    .settings-secondary-nav-link {
        min-height: 58px;
    }

    .settings-secondary-nav-link::before {
        top: auto;
        right: 10px;
        bottom: 0;
        left: 10px;
        width: auto;
        height: 3px;
    }

    .settings-section-main {
        padding: 18px 14px;
    }

    .settings-workspace-grid {
        gap: 14px;
    }

    .settings-billing-portal-action {
        justify-self: start;
    }

    .settings-card-intro {
        margin-bottom: 20px;
    }

    .settings-sender-header-row,
    .settings-compliance-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-sender-summary {
        grid-template-columns: minmax(0, 1fr);
        justify-self: start;
        justify-content: start;
        width: min(100%, 340px);
    }

    .settings-sender-summary span + span {
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }

    .settings-profile-callout {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        min-height: 196px;
        padding: 20px;
    }

    .settings-profile-avatar {
        width: 44px;
        height: 44px;
    }

    .settings-profile-avatar img {
        width: 34px;
        height: 34px;
    }

    .settings-profile-arc {
        right: -116px;
        bottom: -116px;
    }

    .settings-export-card {
        min-height: 0;
    }

    .settings-form-grid.team-create-form,
    .settings-form-grid.sender-setup-form,
    .settings-billing-facts,
    .settings-team-facts,
    .sender-policy-grid.settings-fact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-team-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(124px, 150px);
    }

    .settings-panel-list > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-compliance-table > div {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 6px;
    }

    .settings-compliance-status {
        justify-self: start;
    }

    .settings-panel-list strong {
        text-align: left;
    }

}

@media (max-width: 520px) {
    .settings-secondary-nav {
        grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    }

    .settings-secondary-nav-copy strong {
        white-space: normal;
    }

    .settings-copy-shell {
        flex-wrap: wrap;
    }

    .settings-copy-shell input {
        flex-basis: 100%;
    }

    .settings-copy-button {
        width: 100%;
        border-width: 1px 0 0;
    }

    .settings-success-note {
        align-items: flex-start;
    }

    .settings-profile-callout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-profile-action {
        grid-column: 1;
    }

    .settings-billing-page {
        gap: 24px;
    }

    .settings-billing-summary-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .settings-billing-summary-strip div,
    .settings-billing-summary-strip div + div {
        padding: 0;
    }

    .settings-billing-summary-strip div + div::before {
        display: none;
    }

    .settings-billing-portal-action {
        width: 100%;
    }

    .settings-team-card-head {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 22px;
    }

    .settings-team-visual-icon {
        width: 48px;
        height: 48px;
    }

    .settings-team-visual-icon::before {
        width: 25px;
        height: 25px;
    }

    .settings-team-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-team-member-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .settings-member-meta {
        grid-column: 2;
        justify-items: start;
        margin-top: 8px;
    }

    .settings-member-detail {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-export-art {
        min-height: 132px;
    }

    .settings-export-sheet {
        width: 50px;
        height: 62px;
        font-size: 10px;
    }

    .settings-preference-toggle {
        align-items: start;
        min-height: 0;
    }

    .settings-form-actions .primary-action,
    .settings-card-actions .primary-action,
    .settings-card-actions .secondary-action {
        width: 100%;
    }
}

.profile-actions {
    align-items: center;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(22px, 4vw, 56px);
    background:
        linear-gradient(90deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.96) 46%, rgba(240, 235, 228, 0.82) 100%),
        #fbfaf8;
}

.auth-portal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 438px);
    align-items: center;
    gap: clamp(38px, 7vw, 112px);
    width: min(1180px, 100%);
}

.auth-wordmark-column {
    position: relative;
    min-height: 620px;
    display: grid;
    align-content: center;
}

.auth-wordmark {
    display: inline-flex;
    align-items: center;
    gap: clamp(16px, 2.8vw, 32px);
    width: fit-content;
    color: #081c34;
    font-size: clamp(76px, 11vw, 164px);
    font-weight: 680;
    line-height: 0.82;
    text-decoration: none;
}

.auth-wordmark span {
    display: block;
}

.auth-wordmark-logo {
    width: clamp(72px, 10vw, 142px);
    height: clamp(72px, 10vw, 142px);
}

.auth-wordmark:focus-visible,
.oauth-action:focus-visible,
.auth-mode-tabs button:focus-visible,
.auth-text-action:focus-visible,
.auth-return-link:focus-visible {
    outline: 3px solid rgba(0, 107, 104, 0.24);
    outline-offset: 4px;
}

.auth-wordmark-column > p {
    max-width: 470px;
    margin: 34px 0 0;
    color: #536784;
    font-size: 18px;
    line-height: 1.45;
}

.auth-intelligence-layer {
    position: relative;
    height: clamp(252px, 27vw, 320px);
    margin-top: 34px;
    overflow: visible;
    pointer-events: none;
}

.auth-signal-handoff {
    position: absolute;
    top: -56px;
    left: -78px;
    display: block;
    width: min(760px, calc(100% + 132px));
    max-width: none;
    height: auto;
    filter: drop-shadow(0 28px 72px rgba(31, 38, 41, 0.06));
}

.auth-dossier-card,
.auth-signal-card {
    position: absolute;
    border: 1px solid rgba(24, 33, 38, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 26px 72px rgba(31, 38, 41, 0.12);
    backdrop-filter: blur(14px);
}

.auth-dossier-card {
    left: 0;
    bottom: 18px;
    width: min(330px, 58%);
    padding: 22px;
}

.auth-dossier-card span,
.auth-signal-card span {
    display: block;
    color: #667076;
    font-size: 12px;
    font-weight: 720;
    text-transform: uppercase;
}

.auth-dossier-card strong {
    display: block;
    margin: 12px 0 22px;
    color: #006b68;
    font-size: 42px;
    font-weight: 650;
    line-height: 1;
}

.auth-dossier-card div {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(8, 28, 52, 0.12);
}

.auth-dossier-card div:nth-of-type(2) {
    width: 78%;
}

.auth-dossier-card div:nth-of-type(3) {
    width: 54%;
}

.auth-signal-card {
    right: 12%;
    top: 34px;
    width: 190px;
    padding: 16px;
}

.auth-signal-card strong {
    display: block;
    margin-top: 10px;
    color: #081c34;
    font-size: 18px;
    line-height: 1.15;
}

.auth-node-map {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    height: 150px;
    border: 1px solid rgba(0, 107, 104, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(32deg, transparent 0 36%, rgba(8, 28, 52, 0.09) 37% 38%, transparent 39% 100%),
        linear-gradient(130deg, transparent 0 44%, rgba(0, 107, 104, 0.12) 45% 46%, transparent 47% 100%),
        #f8f5ef;
}

.auth-node-map span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #006b68;
    box-shadow: 0 0 0 8px rgba(0, 107, 104, 0.11);
}

.auth-node-map span:nth-child(1) {
    top: 32%;
    left: 26%;
}

.auth-node-map span:nth-child(2) {
    top: 56%;
    left: 54%;
}

.auth-node-map span:nth-child(3) {
    top: 28%;
    left: 78%;
}

.auth-access-card {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 72px rgba(31, 38, 41, 0.14);
    padding: 22px;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card-logo {
    width: 38px;
    height: 38px;
    margin-left: -3px;
}

.auth-card-header strong,
.auth-card-header span {
    display: block;
}

.auth-card-header strong {
    color: #081c34;
}

.auth-card-header span {
    color: #536784;
    font-size: 13px;
}

.auth-mode-tabs {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #f4f2ef;
    padding: 4px;
}

.auth-mode-tabs::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 12px) / 2);
    border: 1px solid rgba(8, 28, 52, 0.06);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 38, 41, 0.1);
    transition: transform 160ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.auth-mode-tabs.register-active::before {
    transform: translateX(calc(100% + 4px));
}

.auth-mode-tabs button {
    position: relative;
    z-index: 1;
    min-height: 38px;
    border-radius: 6px;
    background: transparent;
    color: #536784;
    font-size: 13px;
    font-weight: 720;
    transition: color 140ms ease, transform 140ms ease;
}

.auth-mode-tabs button:hover {
    color: #081c34;
}

.auth-mode-tabs button.active {
    background: transparent;
    color: #081c34;
    box-shadow: none;
}

.auth-oauth-grid {
    display: grid;
    gap: 10px;
}

.auth-legal-note {
    margin: -4px 0 0;
    color: #667076;
    font-size: 12px;
    line-height: 1.45;
}

.auth-legal-note a,
.auth-check a,
.legal-document a {
    color: #006b68;
    font-weight: 760;
    text-decoration: none;
}

.auth-legal-note a:hover,
.auth-check a:hover,
.legal-document a:hover {
    text-decoration: underline;
}

.oauth-action {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: #081c34;
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.oauth-action:hover {
    border-color: #b9c4ca;
    background: #fbfcfd;
    box-shadow: 0 8px 22px rgba(31, 38, 41, 0.08);
    transform: translateY(-1px);
}

.oauth-action:active {
    transform: translateY(0);
}

.oauth-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.microsoft-logo rect {
    shape-rendering: crispEdges;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #667076;
    font-size: 12px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #edf0f3;
}

.auth-form-stage {
    display: grid;
    grid-template-areas: "auth-form";
    align-items: start;
    overflow: visible;
}

.auth-form {
    grid-area: auth-form;
    display: grid;
    gap: 14px;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
    visibility: hidden;
}

.auth-form.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
}

.auth-single-form {
    grid-area: auto;
    width: 100%;
}

.auth-form h1 {
    color: #081c34;
    font-size: 24px;
    font-weight: 800;
}

.auth-form-copy {
    margin: -4px 0 0;
    color: #536784;
    font-size: 13px;
    line-height: 1.45;
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.auth-text-action,
.auth-return-link {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    color: #006b68;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, transform 100ms ease;
}

.auth-text-action {
    flex: 0 0 auto;
}

.auth-text-action:hover,
.auth-return-link:hover {
    text-decoration: underline;
}

.auth-text-action:active,
.auth-text-action.is-pressed,
.auth-return-link:active,
.auth-return-link.is-pressed {
    background: rgba(0, 107, 104, 0.08);
    color: #004f4d;
    transform: translateY(1px);
}

.auth-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 9px 11px;
}

.auth-form input:focus {
    border-color: rgba(0, 107, 104, 0.58);
    outline: 3px solid rgba(0, 107, 104, 0.16);
}

.auth-check {
    position: relative;
    align-items: center;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    width: fit-content;
    min-height: 32px;
    color: #5d6873;
    cursor: pointer;
}

.auth-check-long {
    width: 100%;
    align-items: start;
    line-height: 1.4;
}

.auth-check-long .auth-check-box {
    margin-top: 2px;
}

.auth-check input[type="checkbox"] {
    position: absolute;
    inset: 4px auto auto 0;
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    opacity: 0;
    padding: 0;
    cursor: pointer;
}

.auth-check-box {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #b9c4ca;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #f7faf9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(31, 38, 41, 0.08);
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-check-box::after {
    content: "";
    width: 6px;
    height: 11px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.72);
    transition: opacity 120ms ease, transform 140ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.auth-check:hover .auth-check-box {
    border-color: rgba(0, 107, 104, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 16px rgba(0, 107, 104, 0.12);
}

.auth-check input[type="checkbox"]:checked + .auth-check-box {
    border-color: #006b68;
    background: #006b68;
    box-shadow: 0 8px 18px rgba(0, 107, 104, 0.2);
}

.auth-check input[type="checkbox"]:checked + .auth-check-box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.auth-check input[type="checkbox"]:focus-visible + .auth-check-box {
    outline: 3px solid rgba(0, 107, 104, 0.18);
    outline-offset: 3px;
}

.auth-turnstile {
    display: block;
    min-width: 0;
    line-height: 0;
    overflow: visible;
}

.auth-turnstile iframe {
    display: block;
    max-width: 100%;
}

.auth-form .primary-action {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 8px;
    background: #006b68;
    box-shadow: 0 8px 18px rgba(0, 107, 104, 0.18);
    transition: background 120ms ease, box-shadow 120ms ease, transform 100ms ease;
}

.auth-form .primary-action:not(:disabled):hover {
    background: #007773;
    box-shadow: 0 10px 22px rgba(0, 107, 104, 0.22);
    transform: translateY(-1px);
}

.auth-form .primary-action:not(:disabled):active {
    background: #005f5c;
    box-shadow: inset 0 2px 6px rgba(0, 31, 30, 0.26), 0 3px 8px rgba(0, 107, 104, 0.16);
    transform: translateY(1px) scale(0.997);
}

.auth-return-link {
    justify-self: center;
    margin-top: -2px;
}

.auth-alert {
    display: grid;
    gap: 6px;
    border: 1px solid #e2cbc6;
    border-radius: 8px;
    background: #fff8f6;
    color: #7a2f22;
    padding: 12px 14px;
}

.auth-alert strong {
    color: inherit;
    font-size: 13px;
    line-height: 1.25;
}

.auth-alert span {
    color: #704e48;
    font-size: 13px;
    line-height: 1.45;
}

.auth-alert.is-info {
    border-color: #b9d8d5;
    background: #f2fbfa;
    color: #075d59;
}

.auth-alert.is-info span {
    color: #335e63;
}

.auth-alert.is-success {
    border-color: #bad9c5;
    background: #f4fbf6;
    color: #145c35;
}

.auth-alert.is-success span {
    color: #3b654a;
}

.auth-alert.is-warning {
    border-color: #e8d29a;
    background: #fff9e9;
    color: #705308;
}

.auth-alert.is-warning span {
    color: #765f24;
}

.auth-alert.is-error {
    border-color: #f1c7cd;
    background: #fff4f5;
    color: #7f1d27;
}

.auth-alert.is-error span {
    color: #8a3740;
}

.legal-shell {
    display: grid;
    width: min(100%, 980px);
    gap: 22px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

.legal-wordmark {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: #081c34;
    font-size: 22px;
    font-weight: 820;
    text-decoration: none;
}

.legal-wordmark-logo {
    width: 44px;
    height: 44px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #d9dcd8;
    padding-bottom: 12px;
}

.legal-nav a {
    min-height: 36px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #536784;
    font-size: 13px;
    font-weight: 760;
    line-height: 36px;
    padding: 0 12px;
    text-decoration: none;
}

.legal-nav a.active,
.legal-nav a[aria-current="page"],
.legal-nav a:hover {
    border-color: #b9c4ca;
    color: #081c34;
}

.legal-document {
    display: grid;
    gap: 14px;
    color: #344255;
    font-size: 15px;
    line-height: 1.62;
}

.legal-document .eyebrow {
    margin: 0;
}

.legal-document h1 {
    max-width: 760px;
    color: #081c34;
    font-size: 34px;
    line-height: 1.1;
}

.legal-document h2 {
    margin-top: 14px;
    color: #081c34;
    font-size: 18px;
    line-height: 1.25;
}

.legal-document p {
    max-width: 860px;
}

.auth-link-button {
    display: inline-flex;
    margin-top: 16px;
    text-decoration: none;
}

.access-denied-panel {
    width: min(520px, 100%);
}

@media (max-width: 1280px) {
    .overview-shell,
    .leads-ops-workspace,
    .split-page,
	    .research-reader-page.research-reader-page-with-header {
	        align-content: start;
	        grid-auto-rows: max-content;
	        grid-template-columns: minmax(0, 1fr);
	        grid-template-rows: none;
	        min-height: 0;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .overview-work,
    .leads-ops-main,
    .page-primary {
        overflow-y: visible;
    }

    .shared-inspector,
    .side-inspector,
    .lead-ops-inspector,
    .overview-inspector,
    .research-account-panel {
        position: relative;
        top: auto;
        max-width: none;
        height: auto;
        max-height: none;
        border-top: 1px solid var(--workspace-card-border);
        border-left: 0;
    }

	    .inspector-scroll,
	    .research-reader-page-with-header .research-corpus-panel,
	    .research-reader-page-with-header .research-reader-panel,
	    .research-reader-page-with-header .research-account-panel {
	        max-height: none;
	    }

	    .research-reader-page-with-header .brief-list,
	    .research-reader-page-with-header .corpus-list {
	        flex: 0 0 auto;
	    }

	    .research-reader-page-with-header .research-item-group-fill > .corpus-list {
	        max-height: none;
	        margin-bottom: 0;
	    }

	    .research-reader-page-with-header .corpus-list {
	        flex-basis: 420px;
	        height: 420px;
	        max-height: 420px;
	        overflow: auto;
	    }

	    .research-reader-header {
	        grid-column: auto;
	    }

	    .research-reader-page-with-header .research-reader-header {
	        order: 1;
	    }

	    .research-reader-page-with-header .research-reader-panel {
	        order: 2;
	    }

	    .research-reader-page-with-header .research-corpus-panel {
	        order: 3;
	    }

    .runs-page .side-inspector {
        min-height: auto;
        margin-top: 0;
    }
}

@media (max-width: 1560px) {
    .research-brief-reader-panel {
        align-content: start;
        align-items: start;
        overflow: auto;
    }

    .research-brief-reader-panel .research-brief-reader {
        align-self: start;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .research-brief-reader-panel .research-brief-main {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    .research-brief-reader {
        grid-template-columns: minmax(0, 860px);
        max-width: 900px;
    }

    .research-brief-sidecar {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 980px) {
    .auth-shell {
        align-items: start;
    }

    .auth-portal {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .auth-wordmark-column {
        min-height: auto;
        padding-top: 8px;
    }

    .auth-wordmark-column > p {
        max-width: 620px;
        margin-top: 18px;
    }

    .auth-intelligence-layer {
        position: relative;
        inset: auto;
        height: 230px;
        margin-top: 26px;
    }

    .auth-signal-handoff {
        top: -46px;
        left: -44px;
        width: min(700px, calc(100% + 88px));
    }

    .auth-access-card {
        width: min(438px, 100%);
    }
}

@media (max-width: 760px) {
    .auth-shell {
        padding: 20px 14px;
    }

    .auth-wordmark {
        gap: 14px;
        font-size: clamp(56px, 17vw, 96px);
    }

    .auth-wordmark-logo {
        width: clamp(54px, 16vw, 88px);
        height: clamp(54px, 16vw, 88px);
    }

    .auth-wordmark-column > p {
        font-size: 15px;
    }

    .auth-intelligence-layer {
        display: none;
    }

    .auth-access-card {
        padding: 18px;
    }

	    .page-shell,
	    .campaigns-page.page-shell,
	    .settings-page.page-shell,
	    .leads-ops-workspace,
	    .split-page,
	    .targeting-page,
	    .research-reader-page.research-reader-page-with-header {
	        padding: 18px 14px;
	    }

	    .research-reader-page-with-header .research-corpus-panel,
	    .research-reader-page-with-header .research-reader-panel,
	    .research-reader-page-with-header .research-account-panel {
	        width: 100%;
	    }

	    .source-details-section dl > div,
	    .account-metrics {
	        grid-template-columns: minmax(0, 1fr);
	    }

	    .source-reader-callout,
	    .source-reader-compact-section,
	    .source-details-section,
	    .account-section-primary,
	    .account-next-move {
	        padding: 13px 12px;
	    }

	    .briefing-tag-list {
	        padding-right: 16px;
	        padding-left: 16px;
	    }

	    .research-reader-page-with-header .corpus-list {
	        flex-basis: 320px;
	        height: 320px;
	        max-height: 320px;
	    }

	    .research-reader-page-with-header .brief-source,
	    .research-reader-page-with-header .corpus-source {
	        grid-template-columns: 22px minmax(0, 1fr);
	        gap: 10px;
	        padding: 12px 8px;
	    }

	    .research-reader-page-with-header .brief-source .source-score,
	    .research-reader-page-with-header .corpus-source .source-score {
	        display: none;
	    }

	    .research-reader-page-with-header .source-copy strong {
	        display: -webkit-box;
	        -webkit-box-orient: vertical;
	        -webkit-line-clamp: 2;
	        white-space: normal;
	    }

		    .research-reader-page-with-header .source-copy small {
		        max-width: 100%;
		    }

            .research-reader-page-with-header .research-reader-panel {
                padding: 22px 18px 24px;
            }

            .research-brief-reader {
                gap: 22px;
            }

            .research-brief-masthead h2 {
                font-size: 16px;
            }

            .research-brief-reader .research-thesis-copy p,
            .research-brief-reader .research-thesis-copy li,
            .research-brief-reader .research-thesis-copy blockquote {
                font-size: 13px;
                line-height: 1.68;
            }

            .research-brief-facts div {
                grid-template-columns: minmax(0, 1fr);
                gap: 2px;
            }

    .page-heading,
    .leads-ops-header,
    .outreach-ops-header,
    .profile-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading-actions,
    .leads-top-controls,
    .outreach-header-actions,
    .profile-actions {
        justify-content: flex-start;
    }

    .page-heading-actions > *,
    .leads-top-controls > *,
    .outreach-header-actions > *,
    .profile-actions > * {
        width: 100%;
    }

    .runs-header-search,
    .runs-filter-row {
        width: 100%;
    }

    .runs-filter-row {
        justify-content: flex-start;
        margin-top: -6px;
    }

    .runs-filter-row .filter-select,
    .runs-filter-row .filter-button {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .overview-table .table-head,
    .overview-queue-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Profile layout balance pass. */
.profile-page {
    display: grid;
    align-content: start;
    gap: 16px;
    width: 100%;
    padding: 24px 28px 32px;
}

.profile-topline {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 0;
}

.profile-topline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-width: 0;
}

.profile-topline > span:last-child {
    flex: 0 0 auto;
}

.profile-hero {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

.profile-hero .page-heading-copy {
    max-width: 720px;
}

.profile-hero .page-heading-actions {
    align-items: flex-start;
}

.profile-hero .profile-actions {
    justify-content: flex-end;
}

.profile-actions {
    gap: 10px;
}

.context-note {
    max-width: 800px;
    margin: -4px 0 2px;
}

.profile-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
    border: 0;
    background: transparent;
}

.profile-summary-item {
    align-items: flex-start;
    min-height: 76px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
}

.profile-summary-item + .profile-summary-item,
.profile-summary-item:nth-child(3),
.profile-summary-item:nth-child(4) {
    border-left: 1px solid #d9dcd8;
    border-top: 1px solid #d9dcd8;
}

.profile-summary-item > span {
    width: 36px;
    height: 36px;
}

.profile-summary-item.approved > span::before,
.profile-summary-item.review > span::before,
.profile-summary-item.missing > span::before,
.profile-summary-item.completeness > span::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    font-size: 0;
}

.profile-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.profile-section-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.profile-card-head {
    align-items: flex-start;
}

.profile-card-head h2 {
    min-width: 0;
}

.profile-card-head .toolbar {
    margin-left: auto;
}

.profile-card-head .run-status-text {
    flex: 0 0 auto;
}

.profile-section-card .profile-empty {
    min-height: 0;
}

.profile-section-card > small:last-child {
    margin-top: auto;
}

.profile-footer-approved::before,
.profile-footer-review::before,
.profile-footer-missing::before {
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    font-size: 0;
}

@media (max-width: 1180px) {
    .profile-summary-strip,
    .profile-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .profile-page {
        gap: 14px;
        padding: 18px 18px 28px;
    }

    .profile-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-topline-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .profile-topline > span:last-child {
        flex: 0 1 auto;
    }

    .profile-hero {
        gap: 16px;
    }

    .profile-hero .page-heading-actions,
    .profile-hero .profile-actions {
        width: 100%;
    }

    .profile-hero .profile-actions {
        align-items: stretch;
        margin-left: 0;
    }

    .profile-hero .profile-actions .run-status-text {
        width: auto;
        align-self: flex-start;
    }

    .profile-summary-strip,
    .profile-section-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-summary-item {
        align-items: center;
        min-height: 0;
        padding: 14px;
    }

    .profile-summary-item > span {
        width: 34px;
        height: 34px;
    }

    .profile-card-head {
        flex-direction: row;
    }
}

.profile-document-page {
    gap: 20px;
}

.profile-document-hero .page-heading-copy h1 {
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.profile-document-actions {
    align-items: center;
    gap: 14px;
}

.profile-document-actions .primary-action,
.profile-document-actions .secondary-action {
    min-width: 86px;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
}

.profile-document-actions .primary-action {
    border: 0;
    background: #ff5a0a;
    box-shadow: 0 8px 20px rgba(255, 90, 10, 0.2);
}

.profile-document-actions .primary-action:not(:disabled):hover {
    background: #ec4f00;
}

.profile-document-actions .primary-action:disabled {
    background: #eef0f3;
    color: #657386;
    box-shadow: none;
}

.profile-document-layout {
    --profile-document-editor-min-height: 620px;
    --profile-document-history-height: calc(var(--profile-document-editor-min-height) + 60px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
}

.profile-document-main,
.profile-document-panel {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.profile-document-main {
    min-width: 0;
    overflow: hidden;
}

.profile-document-main.viewing-version {
    border-color: #fed7aa;
}

.profile-document-main.viewing-version.current-version {
    border-color: #b7dcc5;
}

.profile-document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid #dfe3e8;
    padding: 14px 18px;
}

.profile-document-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    color: #617083;
    font-size: 15px;
    font-weight: 700;
}

.profile-document-toolbar strong {
    color: #132238;
    font-size: 15px;
}

.profile-document-toolbar-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.profile-document-toolbar-actions .secondary-action {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.profile-document-preview-chip {
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.profile-document-preview-chip.current {
    background: #ecfdf3;
    color: #047857;
}

.profile-document-inline-note {
    border-radius: 999px;
    background: #eef0f3;
    color: #536274;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.profile-version-preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
    padding: 12px 18px;
}

.profile-document-main.current-version .profile-version-preview-banner {
    border-bottom-color: #b7dcc5;
    background: #f0fdf4;
    color: #14532d;
}

.profile-document-main.current-version .profile-version-preview-banner span,
.profile-document-main.current-version .profile-version-preview-banner small {
    color: #166534;
}

.profile-version-preview-banner > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-version-preview-banner strong {
    color: #132238;
    font-size: 13px;
}

.profile-version-preview-banner span,
.profile-version-preview-banner small {
    color: #8a4b24;
    font-size: 12px;
}

.profile-version-preview-banner small {
    flex: 0 1 360px;
    text-align: right;
}

.profile-document-editor-shell {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: stretch;
    background: #ffffff;
}

.profile-document-lines,
.profile-document-editor {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.78;
    letter-spacing: 0;
    tab-size: 2;
}

.profile-document-lines {
    min-height: var(--profile-document-editor-min-height);
    border-right: 1px solid #dfe3e8;
    background: #fbfcfd;
    color: #ff5a0a;
    padding: 20px 18px 20px 8px;
    text-align: right;
    user-select: none;
}

.profile-document-editor {
    width: 100%;
    min-height: var(--profile-document-editor-min-height);
    resize: vertical;
    border: 0;
    outline: none;
    background: #ffffff;
    color: #10233d;
    padding: 20px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    caret-color: #ff5a0a;
}

.profile-document-editor:disabled {
    color: #617083;
    opacity: 1;
}

.profile-document-editor:read-only {
    caret-color: transparent;
}

.profile-document-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    align-self: start;
}

.profile-document-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    height: var(--profile-document-history-height);
    min-height: 0;
    overflow: hidden;
    padding: 16px;
}

.profile-document-panel .profile-card-head {
    align-items: center;
}

.profile-document-panel .profile-card-head h2 {
    font-size: 16px;
}

.profile-document-panel .profile-card-head span {
    border-radius: 999px;
    background: #eef0f3;
    color: #132238;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.profile-version-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.profile-version-item {
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #ffffff;
    color: #172334;
    padding: 14px 16px;
    text-align: left;
}

.profile-version-item:hover,
.profile-version-item:focus-visible {
    border-color: #b8c2cc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    outline: none;
}

.profile-version-item.current {
    border-color: #b7dcc5;
    background: #f0fdf4;
}

.profile-version-item.selected {
    border-color: #fed7aa;
    background: #fff7ed;
    box-shadow: 0 8px 20px rgba(255, 90, 10, 0.08);
}

.profile-version-item.current.selected {
    border-color: #86efac;
    background: #ecfdf3;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.08);
}

.profile-version-item strong {
    font-size: 15px;
}

.profile-version-item span,
.profile-version-item small {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #536274;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .profile-document-layout {
        grid-template-columns: 1fr;
    }

    .profile-document-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .profile-document-layout {
        --profile-document-editor-min-height: 420px;
    }

    .profile-document-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-document-toolbar-actions {
        justify-content: flex-start;
    }

    .profile-version-preview-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-version-preview-banner small {
        flex-basis: auto;
        text-align: left;
    }

    .profile-document-editor-shell {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .profile-document-lines,
    .profile-document-editor {
        font-size: 12px;
    }

    .profile-document-lines {
        padding-right: 8px;
    }

    .profile-document-editor {
        padding: 16px 12px;
    }

    .profile-document-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Measured visual QA fixes: keep dense controls readable without page overflow. */
.carter-sidebar {
    overflow-x: hidden;
}

.inspector-tabs {
    gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
}

.lead-queue-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
}

.lead-queue-filter {
    flex: 1 0 118px;
}

.corpus-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.corpus-controls .carter-dropdown {
    width: 100%;
}

.criteria-card.editable-criteria {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.criteria-card.editable-criteria > div {
    min-width: 0;
}

.criteria-card.editable-criteria .criteria-input {
    width: 100%;
}

.section-inline-title,
.toggle-line {
    min-width: 0;
}

.section-inline-title {
    flex-wrap: wrap;
}

.toggle-line {
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .inspector-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        row-gap: 0;
    }

    .criteria-card.editable-criteria {
        grid-template-columns: minmax(0, 1fr);
    }

    .upload-actions {
        flex: 0 1 auto;
        align-items: stretch;
    }

    .file-picker,
    .upload-actions .secondary-action {
        min-height: 38px;
        height: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 1100px) {
    .runs-page .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .runs-page .stat-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Overview command-center redesign */
.overview-shell {
    display: block;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 36px 32px;
    background: #fbfaf8;
}

.overview-heading {
    margin-bottom: 24px;
}

.overview-heading .page-heading-copy h1 {
    color: #081c34;
    font-size: 30px;
    line-height: 1.05;
}

.overview-date-range {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid #d8dce0;
    border-radius: 8px;
    background: #fff;
    color: #17283b;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(11, 29, 50, 0.06);
}

.overview-calendar-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.overview-calendar-icon::before {
    position: absolute;
    top: 3px;
    right: -2px;
    left: -2px;
    height: 2px;
    background: currentColor;
    content: "";
}

.overview-caret {
    width: 0;
    height: 0;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.overview-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.49fr);
    gap: 22px;
    align-items: start;
}

.overview-main-column,
.overview-side-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.overview-side-column {
    position: sticky;
    top: 16px;
}

.overview-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.overview-card {
    min-width: 0;
    border: 1px solid #dde1e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 26, 44, 0.07);
}

.overview-run-hero,
.overview-leads-card,
.overview-review-card,
.overview-recent-card,
.overview-drafts-card,
.overview-summary-card,
.overview-insights-card {
    padding: 18px;
}

.overview-card-title,
.overview-section-head,
.overview-head-actions,
.overview-summary-top {
    display: flex;
    align-items: center;
    min-width: 0;
}

.overview-card-title {
    gap: 12px;
}

.overview-section-head {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.overview-head-actions {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.overview-section-head > a,
.overview-head-actions > a,
.overview-insight-section a {
    color: #e85d04;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.overview-card h2,
.overview-card h3,
.overview-card strong {
    color: #081c34;
}

.overview-card h2,
.overview-card h3,
.overview-card p {
    margin: 0;
}

.overview-card h2 {
    font-size: 15px;
    line-height: 1.25;
}

.overview-card h3 {
    font-size: 14px;
    line-height: 1.3;
}

.overview-card p,
.overview-card small,
.overview-card em,
.overview-meta {
    color: #536784;
    font-size: 12px;
    line-height: 1.45;
}

.overview-card em {
    font-style: normal;
}

.overview-icon-badge,
.overview-empty-icon,
.overview-action-icon,
.overview-mini-icon,
.overview-workspace-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.overview-icon-badge {
    width: 34px;
    height: 34px;
}

.overview-icon-badge.navy {
    background: #08213d;
    color: #fff;
}

.overview-icon-badge.green,
.overview-empty-icon.green {
    background: #e7f7ed;
    color: #14754f;
}

.overview-icon-badge.orange,
.overview-empty-icon.orange {
    background: #fff0df;
    color: #e85d04;
}

.overview-icon-badge.purple,
.overview-empty-icon.purple {
    background: #f0ebff;
    color: #6d4bb5;
}

.overview-icon-badge.blue,
.overview-empty-icon.blue {
    background: #e8f4ff;
    color: #2563a8;
}

.overview-icon-badge.soft {
    width: 32px;
    height: 32px;
}

.overview-icon-dot {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.overview-people-icon,
.overview-review-icon,
.overview-search-icon,
.overview-send-icon,
.overview-document-icon,
.overview-chart-icon,
.overview-metric-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.overview-people-icon::before,
.overview-people-icon::after {
    position: absolute;
    border: 2px solid currentColor;
    content: "";
}

.overview-people-icon::before {
    top: 1px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.overview-people-icon::after {
    right: 2px;
    bottom: 1px;
    left: 2px;
    height: 7px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 0;
}

.overview-review-icon::before,
.overview-search-icon::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
}

.overview-review-icon::after,
.overview-search-icon::after {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    content: "";
}

.overview-send-icon::before {
    position: absolute;
    inset: 2px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skew(-18deg) rotate(18deg);
    content: "";
}

.overview-send-icon::after {
    position: absolute;
    right: 6px;
    bottom: 3px;
    width: 2px;
    height: 8px;
    background: currentColor;
    transform: rotate(28deg);
    content: "";
}

.overview-document-icon::before,
.overview-metric-icon.document::before {
    position: absolute;
    inset: 1px 3px;
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
}

.overview-document-icon::after,
.overview-metric-icon.document::after {
    position: absolute;
    top: 7px;
    right: 6px;
    left: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
    content: "";
}

.overview-chart-icon::before,
.overview-metric-icon.people::before,
.overview-metric-icon.send::before {
    position: absolute;
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 4px;
    content: "";
}

.overview-chart-icon::after,
.overview-metric-icon.people::after,
.overview-metric-icon.send::after {
    position: absolute;
    right: 3px;
    bottom: 3px;
    left: 3px;
    height: 2px;
    background: currentColor;
    box-shadow: 4px -4px 0 currentColor, 8px -8px 0 currentColor;
    content: "";
}

.overview-run-body {
    display: grid;
    grid-template-columns: auto minmax(210px, 0.8fr) minmax(320px, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: 22px;
}

.overview-run-visual {
    position: relative;
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#e85d04 0 86deg, #f3ddba 86deg 360deg);
}

.overview-run-visual::before {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.overview-run-visual.active {
    background: conic-gradient(#14754f 0 150deg, #d9f0e2 150deg 360deg);
}

.overview-run-visual.failed {
    background: conic-gradient(#b4232f 0 110deg, #f7d7db 110deg 360deg);
}

.overview-run-mark {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border: 7px solid #e85d04;
    border-radius: 5px;
    transform: rotate(45deg);
}

.overview-run-mark::after {
    position: absolute;
    right: -18px;
    bottom: -10px;
    width: 10px;
    height: 10px;
    border: 5px solid #e85d04;
    border-radius: 3px;
    content: "";
}

.overview-run-visual.active .overview-run-mark,
.overview-run-visual.active .overview-run-mark::after {
    border-color: #14754f;
}

.overview-run-visual.failed .overview-run-mark,
.overview-run-visual.failed .overview-run-mark::after {
    border-color: #b4232f;
}

.overview-run-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.overview-run-copy h3 {
    font-size: 18px;
}

.overview-run-copy p {
    max-width: 380px;
    color: #17283b;
}

.overview-shell .overview-run-action {
    justify-self: start;
    gap: 10px;
    min-height: 40px;
    background: #09213d;
    color: #fff;
    box-shadow: 0 8px 18px rgba(9, 33, 61, 0.18);
}

.overview-shell .overview-run-action:hover,
.overview-shell .overview-run-action:focus-visible {
    background: #e85d04;
    color: #fff;
}

.overview-workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.overview-workflow li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
}

.overview-workflow li:not(:last-child)::after {
    position: absolute;
    top: 22px;
    left: calc(50% + 34px);
    width: calc(100% - 46px);
    height: 1px;
    border-top: 1px dashed #d8cbb9;
    content: "";
}

.overview-workflow li > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fbfaf8;
    color: #081c34;
}

.overview-workflow li > span::before {
    font-size: 16px;
    font-weight: 800;
}

.overview-workflow small {
    display: block;
    color: #536784;
    font-size: 12px;
    line-height: 1.2;
}

.overview-workflow strong {
    display: block;
    max-width: 120px;
    font-size: 13px;
    line-height: 1.35;
}

.overview-count-pill,
.overview-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.overview-count-pill.green,
.overview-status-chip.success {
    background: #e8f7ee;
    color: #14754f;
}

.overview-count-pill.orange,
.overview-status-chip.warning {
    background: #fff1df;
    color: #c54f00;
}

.overview-count-pill.purple {
    background: #f0ebff;
    color: #6d4bb5;
}

.overview-status-chip.neutral {
    background: #f1f3f5;
    color: #53606b;
}

.overview-status-chip.info {
    background: #edf5ff;
    color: #245ca8;
}

.overview-status-chip.danger {
    background: #fff0ee;
    color: #b4232f;
}

.overview-empty-state {
    display: grid;
    min-height: 168px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed #d8dce0;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    text-align: center;
}

.overview-empty-state.compact-empty {
    min-height: 134px;
    justify-items: start;
    place-items: stretch;
    text-align: left;
}

.overview-empty-icon {
    width: 46px;
    height: 46px;
}

.overview-empty-state p {
    max-width: 310px;
}

.overview-lead-tile-grid {
    display: grid;
    gap: 12px;
}

.overview-lead-tile-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-lead-tile,
.overview-company-tile,
.overview-draft-preview,
.overview-action-tile,
.overview-source-signal-item {
    min-width: 0;
    border: 1px solid #e4e7ea;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.overview-lead-tile,
.overview-company-tile {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.overview-lead-tile:hover,
.overview-company-tile:hover,
.overview-draft-preview:hover,
.overview-action-tile:hover {
    border-color: #f1c08d;
    box-shadow: 0 10px 22px rgba(232, 93, 4, 0.09);
}

.overview-lead-tile strong,
.overview-company-tile strong,
.overview-draft-preview strong,
.overview-source-signal-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-lead-tile > span:not(.lead-state-chip),
.overview-company-tile > small {
    overflow: hidden;
    color: #536784;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-action-tiles {
    display: grid;
    gap: 12px;
}

.overview-action-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.overview-action-tile small {
    display: block;
    margin-top: 4px;
}

.overview-action-tile b,
.overview-reason-item b {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #f4f6f8;
    color: #081c34;
    font-size: 12px;
}

.overview-action-tile i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
}

.overview-action-tile.orange .overview-action-icon,
.overview-action-tile.orange i {
    background: #fff1df;
    color: #e85d04;
}

.overview-action-tile.purple .overview-action-icon,
.overview-action-tile.purple i {
    background: #f0ebff;
    color: #6d4bb5;
}

.overview-action-icon {
    width: 44px;
    height: 44px;
}

.overview-company-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.overview-company-icon {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #b7d7d0;
    border-radius: 6px;
    background: #eef8f5;
}

.overview-company-tile em {
    padding-top: 2px;
}

.overview-draft-list {
    display: grid;
    gap: 10px;
}

.overview-draft-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.overview-draft-preview small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-summary-card {
    display: grid;
    gap: 16px;
}

.overview-summary-top {
    gap: 12px;
}

.overview-summary-top > div {
    min-width: 0;
    flex: 1 1 auto;
}

.overview-summary-top h2,
.overview-summary-top p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-summary-top p {
    margin-top: 3px;
}

.overview-workspace-avatar {
    width: 44px;
    height: 44px;
    background: #09213d;
    color: #ff7a1a;
    font-weight: 900;
}

.overview-summary-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.overview-metric-tile {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.overview-metric-tile strong {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
}

.overview-metric-tile span:not(.overview-metric-icon) {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-metric-icon {
    width: 20px;
    height: 20px;
}

.overview-metric-tile.green {
    color: #14754f;
}

.overview-metric-tile.blue {
    color: #2563a8;
}

.overview-metric-tile.navy {
    color: #09213d;
}

.overview-recommendation {
    position: relative;
    display: grid;
    gap: 8px;
    overflow: hidden;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.overview-recommendation h3 {
    font-size: 12px;
}

.overview-spark {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 16px;
    height: 16px;
    color: #ff7a1a;
    transform: rotate(45deg);
}

.overview-spark::before,
.overview-spark::after {
    position: absolute;
    background: currentColor;
    content: "";
}

.overview-spark::before {
    top: 7px;
    right: 0;
    left: 0;
    height: 2px;
}

.overview-spark::after {
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
}

.overview-insights-card {
    display: grid;
    gap: 18px;
}

.overview-insight-section {
    display: grid;
    gap: 12px;
}

.overview-reason-list {
    display: grid;
    gap: 10px;
}

.overview-reason-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #17283b;
    font-size: 12px;
    font-weight: 700;
}

.overview-reason-item > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-mini-icon {
    width: 22px;
    height: 22px;
    background: #f2f5f8;
    color: #09213d;
    font-size: 12px;
    font-weight: 900;
}

.overview-mini-icon::before {
    content: "#";
}

.overview-mini-icon.reason-runs::before {
    content: "R";
}

.overview-mini-icon.reason-leads::before {
    content: "L";
}

.overview-mini-icon.reason-drafts::before {
    content: "D";
}

.overview-mini-icon.reason-fit::before {
    content: "?";
}

.overview-mini-icon.source-signal::before {
    content: "E";
}

.overview-mini-icon.question {
    background: #fff0d8;
    color: #a56315;
}

.overview-mini-icon.question::before {
    content: "?";
}

.overview-source-signal-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed #d8dce0;
    border-radius: 8px;
    padding: 14px;
}

.overview-source-signal-empty p {
    margin-top: 3px;
}

.overview-source-signal-list {
    display: grid;
    gap: 10px;
}

.overview-source-signal-item {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.overview-source-signal-item p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.overview-uncertainty-box {
    display: grid;
    gap: 10px;
    border-radius: 8px;
    background: #fff2dc;
    padding: 14px;
}

.overview-uncertainty-box ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.overview-uncertainty-box li {
    color: #33445b;
    font-size: 12px;
    line-height: 1.45;
}

.overview-next-step {
    display: grid;
    gap: 10px;
    border-top: 1px solid #edf0f2;
    padding-top: 16px;
}

.overview-next-step .action-stack {
    flex-wrap: wrap;
}

.overview-next-step .primary-action {
    background: #e85d04;
    color: #fff;
}

.overview-next-step .secondary-action {
    border-color: #d8dce0;
    color: #081c34;
}

@media (max-width: 1320px) {
    .overview-command-grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.5fr);
        gap: 18px;
    }

    .overview-run-body {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .overview-workflow {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1120px) {
    .overview-command-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-side-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 860px) {
    .overview-shell {
        padding: 22px 18px 28px;
    }

    .overview-card-grid,
    .overview-side-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-lead-tile-grid.compact,
    .overview-company-grid,
    .overview-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .overview-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .overview-heading .page-heading-actions,
    .overview-date-range {
        width: 100%;
    }

    .overview-command-grid {
        display: flex;
        flex-direction: column;
    }

    .overview-main-column,
    .overview-side-column {
        display: contents;
    }

    .overview-run-hero {
        order: 1;
    }

    .overview-summary-card {
        order: 2;
    }

    .overview-card-grid {
        order: 3;
    }

    .overview-insights-card {
        order: 4;
    }

    .overview-run-body {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .overview-run-copy {
        justify-items: center;
    }

    .overview-run-copy p {
        max-width: none;
    }

    .overview-workflow {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-workflow li:not(:last-child)::after {
        display: none;
    }

    .overview-section-head,
    .overview-summary-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-head-actions {
        justify-content: flex-start;
    }

    .overview-action-tile,
    .overview-draft-preview {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .overview-action-tile b,
    .overview-action-tile i,
    .overview-draft-preview .status-pill,
    .overview-draft-preview em {
        justify-self: start;
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .overview-shell {
        padding: 18px 12px 24px;
    }

    .overview-run-visual {
        width: 104px;
        height: 104px;
    }

    .overview-lead-tile-grid.compact,
    .overview-company-grid,
    .overview-summary-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview-run-hero,
    .overview-leads-card,
    .overview-review-card,
    .overview-recent-card,
    .overview-drafts-card,
    .overview-summary-card,
    .overview-insights-card {
        padding: 14px;
    }
}

.sidebar-workspace-switcher:not(:focus-within) .sidebar-workspace-dropdown,
.account-menu:not([open]) .account-dropdown {
    display: none;
}

.lead-next-cell button,
.source-signal-item a,
.profile-back-link,
.profile-footer-review a,
.profile-card a,
.profile-tip-bar a,
.source-reader-heading h2 a,
.lead-review-details summary,
.settings-debug-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.auth-check {
    min-height: 36px;
}

.source-reader-heading h2 a {
    justify-content: center;
    min-width: 32px;
}

.close-button {
    width: 34px;
    height: 34px;
}

.close-button::before,
.close-button::after {
    top: 16px;
    left: 9px;
}

@media (max-width: 560px) {
    .app-shell.sidebar-shell,
    .chat-shell.chat-page {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .carter-sidebar {
        padding-right: 4px;
        padding-left: 4px;
    }

    .sidebar-topbar {
        justify-content: center;
    }

    .sidebar-brand {
        display: grid;
        width: 36px;
        min-height: 36px;
        justify-self: center;
        place-items: center;
    }

    .sidebar-brand-icon,
    .sidebar-brand-logo {
        width: 28px;
        height: 28px;
        margin-left: 0;
    }

    .sidebar-mobile-toggle {
        width: 36px;
        height: 36px;
    }

    .sidebar-workspace-switcher,
    .sidebar-nav-item,
    .conversation-item {
        width: 36px;
        justify-self: center;
    }

    .sidebar-workspace-trigger,
    .sidebar-nav-item,
    .conversation-item {
        min-height: 38px;
    }

    .sidebar-section-head {
        min-height: 36px;
    }

    .sidebar-icon-button {
        width: 32px;
        height: 32px;
    }

    .sidebar-icon-button span::before,
    .sidebar-icon-button span::after {
        top: 15px;
        left: 10px;
    }

    .sidebar-workspace-dropdown {
        left: calc(100% + 6px);
        width: min(242px, calc(100vw - 60px));
    }

    .account-menu {
        margin-right: -4px;
        margin-left: -4px;
    }

    .account-footer {
        min-height: 56px;
        padding-right: 0;
        padding-left: 0;
    }

    .account-avatar {
        width: 34px;
        height: 34px;
    }

    .account-dropdown {
        left: calc(100% + 6px);
        width: min(230px, calc(100vw - 60px));
    }

    .workspace-main,
    .chat-page,
    .chat-thread,
    .chat-scroll,
    .chat-composer-shell,
    .chat-composer {
        min-width: 0;
    }

    .chat-scroll {
        padding-right: 14px;
        padding-left: 14px;
    }

    .chat-composer-shell {
        width: calc(100% - 20px);
        margin-right: 10px;
        margin-left: 10px;
    }

    .chat-composer-shell::before {
        right: 0;
        left: 0;
    }

    .chat-composer {
        grid-template-columns: minmax(0, 1fr) 36px 42px;
        gap: 6px;
    }

    .chat-dictate {
        width: 36px;
    }

    .chat-send {
        width: 42px;
    }

    .sender-setup-form {
        gap: 12px;
    }
}

/* Simplified Runs page. */
.runs-history-page {
    display: block;
}

.runs-history-page .runs-panel {
    width: 100%;
    border-color: #d8dfe8;
    background: #fff;
    padding: 28px 31px 24px;
    box-shadow: 0 15px 38px rgba(16, 33, 57, 0.08);
}

.runs-history-page .runs-panel .section-inline-title {
    margin-bottom: 28px;
}

.runs-history-page .runs-panel .section-inline-title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 720;
}

.runs-history-page .runs-columns {
    grid-template-columns: minmax(0, 1.42fr) minmax(124px, 0.38fr) minmax(126px, 0.44fr) minmax(156px, 0.52fr) minmax(132px, 0.38fr);
}

.runs-history-page .table-head {
    margin: 0;
    border-bottom-color: #d8dfe8;
    padding: 0 24px 14px;
    color: #405576;
    font-size: 12px;
    font-weight: 560;
}

.runs-history-page .research-list {
    gap: 8px;
    border-radius: 0;
    overflow: visible;
    padding: 8px 12px 0;
}

.runs-row {
    position: relative;
    min-height: 100px;
    border-bottom: 0;
    padding: 0;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
    overflow: hidden;
}

.runs-row::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    content: "";
    pointer-events: none;
}

.runs-row > * {
    position: relative;
    z-index: 1;
}

.runs-row-open {
    display: grid;
    grid-column: 1 / 5;
    grid-template-columns: minmax(0, 1.42fr) minmax(124px, 0.38fr) minmax(126px, 0.44fr) minmax(156px, 0.52fr);
    gap: inherit;
    align-items: center;
    min-height: 100px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 22px 12px;
    text-align: left;
    font: inherit;
}

.runs-row-open > span {
    display: grid;
    gap: 0;
    min-width: 0;
}

.runs-row:hover,
.runs-row.active {
    border-bottom-color: transparent;
    border-radius: var(--workspace-selected-radius);
    background: transparent;
}

.runs-row:hover::before,
.runs-row.active::before {
    background: var(--workspace-selected);
}

.runs-row:focus-within {
    border-bottom-color: transparent;
    border-radius: var(--workspace-selected-radius);
}

.runs-row:focus-within::before {
    background: var(--workspace-selected);
}

.runs-row-open:focus-visible,
.runs-control-button:focus-visible {
    outline: 2px solid #9cc8ff;
    outline-offset: 3px;
}

.runs-row strong {
    color: #071d3c;
    font-size: 13px;
    font-weight: 690;
    line-height: 1.35;
}

.runs-row small {
    margin-top: 7px;
    color: #405576;
    font-size: 12px;
    font-weight: 450;
}

.run-status-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #071d3c;
    font-size: 12px;
    font-weight: 690;
    line-height: 1;
}

.run-status-text > span {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #708096;
}

.run-status-text.complete > span {
    background: #0b9862;
}

.run-status-text.complete > span::before {
    position: absolute;
    inset: 3px;
    background: #fff;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.run-status-text.failed > span {
    background: #c83b32;
}

.run-status-text.failed > span::before,
.run-status-text.failed > span::after {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
}

.run-status-text.failed > span::before {
    transform: rotate(45deg);
}

.run-status-text.failed > span::after {
    transform: rotate(-45deg);
}

.run-status-text.active > span {
    border: 2px solid #2276c9;
    background: #fff;
}

.run-status-text.active > span::before {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #2276c9;
    content: "";
}

.run-status-text.canceled > span,
.run-status-text.queued > span {
    border: 2px solid #708096;
    background: #fff;
}

.run-status-text.paused > span {
    border: 2px solid #a56315;
    background: #fff;
}

.run-status-text.paused > span::before,
.run-status-text.paused > span::after {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: #a56315;
    content: "";
}

.run-status-text.paused > span::before {
    left: 5px;
}

.run-status-text.paused > span::after {
    right: 5px;
}

.runs-row-controls,
.runs-control-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.runs-row-controls {
    min-width: 0;
    padding: 22px 12px 22px 0;
}

.runs-control-button {
    min-height: 32px;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.runs-control-button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.runs-control-actions {
    justify-content: flex-start;
}

.runs-action-feedback {
    border: 1px solid #c8dccf;
    border-radius: 8px;
    background: #f4fbf6;
    color: #0b6f48;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 620;
}

.runs-action-feedback.error {
    border-color: #f3c6c1;
    background: #fff6f4;
    color: #9b2c24;
}

.row-arrow {
    justify-self: end;
    color: #183a64;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 120ms ease;
}

.runs-row:hover .row-arrow,
.runs-row:focus-within .row-arrow {
    transform: translateX(2px);
}

.runs-empty-action {
    margin-top: 8px;
    background: #071d3c;
}

.runs-detail-backdrop {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(8, 18, 29, 0.42);
    padding: 22px;
}

.runs-detail-modal {
    display: grid;
    gap: 16px;
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(207, 216, 227, 0.96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(8, 28, 52, 0.28);
    padding: 24px;
}

.runs-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 16px;
    align-items: start;
    border-bottom: 1px solid #dfe5ec;
    padding-bottom: 15px;
}

.runs-detail-header > div {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.runs-detail-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.runs-detail-kicker > span:last-child {
    color: #52647e;
    font-size: 12px;
    font-weight: 650;
}

.runs-detail-header h2 {
    margin: 0;
    color: #071d3c;
    font-size: 19px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.2;
}

.runs-detail-goal {
    display: grid;
    gap: 6px;
    max-width: 720px;
}

.runs-detail-goal p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    color: #405576;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.runs-detail-goal.expanded p {
    display: block;
    max-height: min(180px, 24vh);
    overflow: auto;
}

.runs-detail-goal button {
    width: fit-content;
    border: 0;
    background: transparent;
    color: #185a9d;
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 740;
}

.runs-detail-goal button:hover,
.runs-detail-goal button:focus-visible {
    color: #0e3f72;
    text-decoration: underline;
}

.runs-detail-close {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d8dfe8;
    border-radius: 8px;
    background: #fff;
    color: #405576;
    cursor: pointer;
}

.runs-detail-close:hover,
.runs-detail-close:focus-visible {
    border-color: #b8c6d8;
    background: #f6f8fb;
    color: #071d3c;
}

.runs-detail-close span::before,
.runs-detail-close span::after {
    position: absolute;
    top: 18px;
    left: 10px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.runs-detail-close span::before {
    transform: rotate(45deg);
}

.runs-detail-close span::after {
    transform: rotate(-45deg);
}

.runs-detail-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.85fr) minmax(150px, 1fr) minmax(118px, 0.78fr) minmax(96px, 0.58fr) minmax(86px, 0.56fr);
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #f8fafc;
}

.runs-detail-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    border-left: 1px solid #e3e8ef;
    padding: 10px 12px;
}

.runs-detail-grid > div:first-child {
    border-left: 0;
}

.runs-detail-grid span,
.runs-artifacts-heading span,
.runs-artifact-row small {
    color: #52647e;
    font-size: 12px;
    font-weight: 540;
}

.runs-detail-grid strong {
    overflow: hidden;
    color: #071d3c;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.runs-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.runs-detail-actions .secondary-action {
    min-height: 36px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
}

.runs-artifacts-section {
    display: grid;
    gap: 12px;
}

.runs-artifacts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.runs-artifacts-heading h3 {
    margin: 0;
    color: #071d3c;
    font-size: 14px;
    font-weight: 740;
}

.runs-detail-empty {
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #405576;
    padding: 16px;
    font-size: 13px;
    font-weight: 560;
}

.runs-detail-empty.error {
    border-color: #f3c6c1;
    background: #fff6f4;
    color: #9b2c24;
}

.runs-artifact-list {
    display: grid;
    border-top: 1px solid #dfe5ec;
}

.runs-artifact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr);
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid #dfe5ec;
    padding: 14px 0;
}

.runs-artifact-row > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.runs-artifact-row > div:last-child {
    justify-items: end;
    text-align: right;
}

.runs-artifact-row a,
.runs-artifact-row strong {
    overflow: hidden;
    color: #071d3c;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.runs-artifact-row a {
    color: #185a9d;
    text-decoration: none;
}

.runs-artifact-row a:hover,
.runs-artifact-row a:focus-visible {
    text-decoration: underline;
}

.runs-artifact-import-note {
    max-width: 360px;
    color: #54657e;
    line-height: 1.35;
    white-space: normal;
}

.runs-artifact-import-note.error {
    color: #9b2c24;
}

.runs-artifact-kind {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
}

.runs-artifact-kind.leads {
    background: #eaf7f0;
    color: #0b6f48;
}

.runs-artifact-kind.research {
    background: #e9f2ff;
    color: #185a9d;
}

.runs-artifact-kind.neutral {
    background: #eef1f5;
    color: #405576;
}

@media (max-width: 760px) {
    .runs-history-page .runs-panel {
        padding: 20px 16px;
    }

    .runs-history-page .table-head {
        display: none;
    }

    .runs-history-page .runs-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .runs-row {
        min-height: 0;
        gap: 12px;
        padding: 0;
    }

    .runs-row-open {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 12px;
        padding: 18px 12px 0;
    }

    .runs-row-controls {
        justify-content: flex-start;
        padding: 0 12px 18px;
    }

    .row-arrow {
        display: none;
    }

    .runs-detail-backdrop {
        align-items: start;
        padding: 14px;
    }

    .runs-detail-modal {
        max-height: none;
        padding: 18px;
    }

    .runs-detail-header,
    .runs-detail-grid,
    .runs-artifact-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .runs-detail-grid > div {
        border-top: 1px solid #e3e8ef;
        border-left: 0;
    }

    .runs-detail-grid > div:first-child {
        border-top: 0;
    }

    .runs-artifact-row > div:last-child {
        justify-items: start;
        text-align: left;
    }
}

/* Outreach mockup parity pass. Keep this near the end so it wins over shared workspace scroll rules. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sidebar-shell .outreach-page {
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

html:has(.outreach-page),
body:has(.outreach-page),
.app-shell.sidebar-shell:has(.outreach-page),
.app-shell.sidebar-shell:has(.outreach-page) .workspace-main {
    overflow: hidden;
}

.sidebar-shell .outreach-main {
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    height: 100%;
    min-width: 0;
    padding: 24px 24px 16px;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
}

.outreach-main .page-heading {
    margin: 0;
}

.outreach-main .page-heading h1 {
    font-size: 21px;
    line-height: 1.1;
}

.outreach-top-controls {
    grid-template-columns: minmax(220px, 300px) minmax(240px, 1fr) minmax(158px, 190px) minmax(148px, 176px) auto auto auto;
}

.outreach-header-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid #d9dcd8;
    border-radius: 6px;
    background: #fff;
    color: #243952;
    cursor: pointer;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.outreach-header-edit:disabled {
    cursor: not-allowed;
    color: #8a96a6;
    opacity: 0.7;
}

.outreach-header-edit.primary {
    border-color: #071a35;
    background: #071a35;
    color: #fff;
}

.outreach-header-edit.primary:disabled {
    border-color: #d9dcd8;
    background: #eef2f5;
    color: #7b8797;
    opacity: 1;
}

.outreach-edit-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.outreach-more-icon {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.outreach-menu-anchor {
    position: relative;
    display: inline-flex;
    min-width: 0;
}

.outreach-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 178px;
    gap: 4px;
    border: 1px solid #d9dcd8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(8, 28, 52, 0.14);
    padding: 6px;
}

.outreach-action-menu button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #081c34;
    cursor: pointer;
    padding: 0 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
}

.outreach-action-menu button:hover,
.outreach-action-menu button:focus-visible {
    background: #f4f7fa;
}

.outreach-action-menu button:disabled {
    cursor: not-allowed;
    color: #8a96a6;
}

.outreach-filter-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.outreach-filter-icon::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    content: "";
    transform: skewX(-12deg);
}

.outreach-filter-icon::after {
    position: absolute;
    top: 8px;
    left: 7px;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.outreach-search-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 10px 0 38px;
}

.outreach-search-field::before {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -8px;
    border: 2px solid #5d6b82;
    border-radius: 50%;
    content: "";
}

.outreach-search-field::after {
    position: absolute;
    left: 25px;
    top: 50%;
    width: 7px;
    height: 2px;
    margin-top: 4px;
    border-radius: 999px;
    background: #5d6b82;
    content: "";
    transform: rotate(45deg);
}

.outreach-search-field input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px 0 0;
}

.outreach-search-field kbd {
    flex: 0 0 auto;
}

.outreach-gate-note {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fbfcfd;
    color: #536784;
    padding: 8px 12px;
    font-size: 12px;
}

.outreach-gate-note strong {
    color: #081c34;
    white-space: nowrap;
}

.outreach-gate-note p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outreach-review-workspace {
    grid-template-columns: minmax(280px, 300px) minmax(560px, 1fr) minmax(320px, 340px);
    align-items: stretch;
    gap: 12px;
    overflow: hidden;
}

.outreach-list-panel,
.outreach-editor-panel,
.outreach-review-rail {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.outreach-list-panel {
    align-self: stretch;
}

.outreach-draft-card {
    gap: 10px;
    padding: 16px;
}

.outreach-draft-row {
    min-height: 56px;
    padding: 9px 12px;
}

.outreach-draft-row.active {
    border: 0;
    border-top: 1px solid transparent;
    border-radius: var(--workspace-selected-radius);
    background: #eef7ff;
    box-shadow: none;
}

.outreach-address-grid {
    grid-template-columns: minmax(0, 1fr) minmax(198px, 238px);
    gap: 8px 14px;
}

.outreach-address-grid .field-line {
    --compose-field-label-width: 56px;
    position: relative;
    display: block;
    min-width: 0;
}

.outreach-address-grid .field-line input,
.outreach-address-grid .field-line .carter-dropdown,
.outreach-address-grid .carter-dropdown-trigger {
    min-height: 36px;
}

.outreach-address-grid .field-line > span {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    color: #5c6675;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    white-space: nowrap;
}

.outreach-address-grid .field-line > input {
    padding-left: calc(var(--compose-field-label-width) + 12px);
}

.outreach-address-grid .field-line > .carter-dropdown {
    width: 100%;
}

.outreach-address-grid .field-line > .carter-dropdown {
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.outreach-address-grid .field-line .carter-dropdown-trigger {
    padding-left: calc(var(--compose-field-label-width) + 12px);
}

.outreach-address-grid > .field-line:nth-of-type(1) {
    grid-column: 1 / -1;
}

.outreach-address-grid > .field-line:nth-of-type(2),
.outreach-address-grid > .field-line:nth-of-type(3) {
    grid-column: 1 / -1;
}

.outreach-address-grid > .subject-field {
    grid-column: 1 / -1;
}

.outreach-address-grid > .field-line.subject-field:nth-of-type(4) {
    grid-column: 1 / -1;
}

.compose-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compose-address-grid > .field-line:nth-of-type(n) {
    grid-column: auto;
}

.compose-address-grid > .field-line:nth-of-type(1),
.compose-address-grid > .subject-field {
    grid-column: 1 / -1;
}

.recipient-field,
.company-field {
    --compose-field-label-width: 86px;
}

.subject-field {
    --compose-field-label-width: 72px;
}

.outreach-editor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.outreach-message-box {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    height: 224px;
    min-height: 204px;
    max-height: max(260px, min(620px, calc(100vh - 300px)));
    overflow: hidden;
    resize: vertical;
}

.outreach-message-box .draft-body-preview {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.outreach-message-box .draft-body-input {
    height: 100%;
    min-height: 0;
    max-height: none;
    outline: 0;
    overflow-y: auto;
    resize: none;
}

.outreach-message-box .editor-toolbar {
    min-width: 0;
    overflow-x: auto;
}

.review-note-field {
    display: none;
}

.outreach-rail-card {
    gap: 10px;
    padding: 12px;
}

.provenance-list div {
    grid-template-columns: minmax(70px, 0.5fr) minmax(0, 1fr) auto;
}

.outreach-editor-panel,
.outreach-review-rail,
.draft-body-preview {
    scrollbar-width: none;
}

.outreach-editor-panel::-webkit-scrollbar,
.outreach-review-rail::-webkit-scrollbar,
.draft-body-preview::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 1460px) {
    .outreach-top-controls {
        grid-template-columns: minmax(190px, 270px) minmax(220px, 1fr) minmax(150px, 176px) minmax(140px, 164px) auto auto auto;
        gap: 10px;
    }

    .outreach-review-workspace {
        grid-template-columns: minmax(260px, 286px) minmax(520px, 1fr) minmax(304px, 326px);
        gap: 10px;
    }

}

@media (max-width: 1180px) {
    .sidebar-shell .outreach-main {
        height: auto;
        min-height: 100%;
    }

    .outreach-top-controls,
    .outreach-review-workspace {
        grid-template-columns: 1fr;
    }

    .outreach-address-grid {
        grid-template-columns: 1fr;
    }

    .outreach-address-grid > .field-line,
    .outreach-address-grid > .subject-field {
        grid-column: 1 / -1;
    }
}

.carter-reconnect-status {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
    border: 1px solid #cbd7e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(8, 28, 52, 0.18);
    color: #243952;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.35;
    padding: 12px 14px;
}

.carter-reconnect-status[hidden] {
    display: none;
}

.carter-reconnect-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ff7a1a;
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

.carter-reconnect-status[data-state="reload"] .carter-reconnect-status-dot {
    background: #1f7ae0;
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.14);
}

.carter-reconnect-status[data-state="waiting"] .carter-reconnect-status-dot {
    background: #8a96a6;
    box-shadow: 0 0 0 4px rgba(138, 150, 166, 0.14);
}

@media (max-width: 640px) {
    .carter-reconnect-status {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }
}
