:root {
  --ink: #12201d;
  --forest: #102a26;
  --green: #285e51;
  --lime: #c9ed73;
  --mint: #e8f0e8;
  --cream: #f5f3eb;
  --white: #fff;
  --muted: #65716e;
  --line: #d9dfda;
  --danger: #a53d3d;
  --urgent-red: #c2413b;
  --urgent-red-bg: #fff1f0;
  --urgent-yellow: #9a6b13;
  --urgent-yellow-bg: #fff8df;
  --urgent-green: #2f7659;
  --urgent-green-bg: #edf8f2;
  --shadow: 0 20px 55px rgba(17, 41, 36, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; color: var(--ink); background: #f7f8f5; font: 16px/1.55 "Inter", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { margin-bottom: 8px; font-family: "Manrope", sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(25px, 3vw, 36px); }
h3 { font-size: 18px; }
.overline { margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.primary-button, .quiet-button, .text-button, .icon-button { border: 0; font-weight: 700; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 6px; color: var(--forest); background: var(--lime); }
.primary-button:hover { background: #d9fa94; }
.primary-button:disabled, .quiet-button:disabled { cursor: wait; opacity: .55; }
.quiet-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.text-button { padding: 6px 0; color: var(--green); background: transparent; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; color: var(--muted); background: var(--mint); font-size: 21px; }
.danger-button { color: var(--danger); }
.hidden { display: none !important; }
.unread-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: #d63c3c; box-shadow: 0 0 0 3px rgba(214,60,60,.1); }
.unread-dot-title { width: 9px; height: 9px; vertical-align: top; }

.workspace-header { height: 72px; position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 25px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.workspace-header > .workspace-context { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }.workspace-header p { margin: 0; }.workspace-header b { color: var(--green); }
.workspace-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }.workspace-actions .quiet-button { min-height: 36px; padding: 0 11px; font-size: 12px; }.appearance-button[aria-pressed="true"] { color: var(--forest); border-color: var(--green); background: var(--mint); }
.workspace-brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Manrope"; letter-spacing: .08em; }
.workspace-brand span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; font-size: 12px; }
.workspace-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.workspace-nav { height: calc(100vh - 72px); position: sticky; top: 72px; display: grid; align-content: start; gap: 5px; padding: 28px 18px; border-right: 1px solid var(--line); background: var(--white); }
.workspace-nav a { padding: 11px 13px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }.workspace-nav a:hover, .workspace-nav a.active { color: var(--forest); background: var(--mint); }.workspace-nav .inbox-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.external-link-mark { color: var(--green); font-size: 11px; }
.workspace-main { min-width: 0; }
.workspace-section { padding: 56px clamp(20px, 5vw, 70px); border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.workspace-section:nth-child(even) { background: var(--white); }
.workspace-page-section { min-height: calc(100vh - 72px); border-bottom: 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.section-title p:not(.overline) { max-width: 650px; margin: 0; color: var(--muted); }
.section-actions { display: flex; align-items: center; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 13px; }
.stat-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 25px rgba(17,41,36,.03); }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.stat-card strong { font: 800 33px "Manrope"; letter-spacing: -.06em; }.stat-card small { color: var(--muted); font-size: 12px; }
.hero-stat { color: var(--white); border-color: var(--forest); background: var(--forest); }.hero-stat span,.hero-stat small { color: rgba(255,255,255,.55); }.hero-stat strong { color: var(--lime); }
.outreach-target-card { border-color: #e5b8b5; background: var(--urgent-red-bg); }.outreach-target-card strong { color: var(--urgent-red); }.outreach-target-card.target-complete { border-color: #acd8c2; background: var(--urgent-green-bg); }.outreach-target-card.target-complete strong { color: var(--urgent-green); }
.panel-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.panel { padding: 26px; border: 1px solid var(--line); background: var(--white); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 25px; }
.dashboard-tasks-panel { margin-top: 14px; }.dashboard-tasks-panel .panel-heading p:not(.overline) { margin: 0; color: var(--muted); }.dashboard-task-list { display: grid; gap: 8px; }.dashboard-task-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf7; }.dashboard-task-item div { min-width: 0; }.dashboard-task-item span { display: block; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }.dashboard-task-item strong { display: block; margin-top: 3px; font: 600 14px "Manrope"; }.dashboard-task-item p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.dashboard-task-item .complete-task-button { min-height: 36px; flex: 0 0 auto; padding: 0 13px; border: 0; border-radius: 6px; color: #fff; background: var(--green); font-weight: 600; }.compact-empty { padding: 28px 18px; }
.progress-block { margin-top: 20px; }.progress-block div { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 13px; }.progress-block span { color: var(--muted); }
progress { width: 100%; height: 11px; overflow: hidden; border: 0; border-radius: 20px; background: var(--mint); }progress::-webkit-progress-bar { background: var(--mint); }progress::-webkit-progress-value { background: var(--green); }progress::-moz-progress-bar { background: var(--green); }
.focus-panel { color: var(--white); border: 0; background: var(--forest); }.focus-panel .overline { color: var(--lime); }.focus-panel ul { margin: 24px 0; padding-left: 18px; color: rgba(255,255,255,.7); }.focus-panel li { margin: 9px 0; }
.daily-outreach-progress { margin: 22px 0; }.daily-outreach-progress div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: 12px; }.daily-outreach-progress progress::-webkit-progress-bar { background: rgba(255,255,255,.15); }.daily-outreach-progress progress::-webkit-progress-value { background: var(--lime); }.daily-outreach-progress progress::-moz-progress-bar { background: var(--lime); }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); outline: 0; }input, select { min-height: 41px; padding: 0 10px; }textarea { padding: 10px; resize: vertical; }input:focus,select:focus,textarea:focus { border-color: var(--green); }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 6px; }.input-action .quiet-button { min-height: 41px; }.research-field { padding: 15px; border: 1px solid var(--line); background: #f8faf7; }.research-field small { color: var(--green); font-weight: 500; letter-spacing: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }th,td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }th { color: var(--muted); background: #f8faf7; text-transform: uppercase; letter-spacing: .06em; }td input,td select { width: 86px; min-height: 34px; font-size: 12px; }td input[type="date"] { width: 125px; }td input[name="notes"] { width: 150px; }
.filter-bar { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 8px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 7px 24px rgba(17,41,36,.035); }.filter-bar input,.filter-bar select { min-height: 44px; border-color: transparent; border-radius: 8px; background: #f3f6f3; }.filter-bar input:focus,.filter-bar select:focus { border-color: var(--green); background: var(--white); }
.import-status { min-height: 22px; margin: -12px 0 14px; color: var(--muted); font-size: 13px; }.import-status.success { color: var(--green); }.import-status.error { color: var(--danger); }
.crm-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }.crm-summary-card { display: grid; gap: 2px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }.crm-summary-card span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }.crm-summary-card strong { color: var(--ink); font: 800 26px "Manrope"; letter-spacing: -.05em; }.crm-summary-card small { color: var(--muted); font-size: 11px; }.crm-summary-card.email-priority { border-color: #a8d4c1; background: #edf7f2; }.crm-summary-card.email-priority strong { color: var(--green); }
.crm-view-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; margin-bottom: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.crm-view-tab { min-height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-weight: 700; }.crm-view-tab span { min-width: 23px; padding: 3px 7px; border-radius: 20px; color: var(--muted); background: #edf1ee; font-size: 10px; text-align: center; }.crm-view-tab.active { color: var(--white); background: var(--forest); }.crm-view-tab.active span { color: var(--forest); background: var(--lime); }.crm-view-note { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.pagination-bar { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 22px; }.pagination-bar span { min-width: 180px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }.pagination-bar button:disabled { cursor: default; opacity: .45; }
.contacts-toolbar { display: grid; grid-template-columns: minmax(240px,1fr) minmax(180px,.3fr); gap: 8px; margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.contacts-toolbar input,.contacts-toolbar select { min-height: 44px; border-color: transparent; border-radius: 8px; background: #f3f6f3; }.contacts-table-wrap { border-radius: 12px; box-shadow: 0 8px 28px rgba(17,41,36,.04); }.contacts-table td { vertical-align: top; }.contacts-table td strong,.contacts-table td small,.contacts-table td a { display: block; }.contacts-table td small { margin-top: 2px; color: var(--muted); }.contacts-table td a { max-width: 230px; overflow: hidden; color: var(--green); font-size: 11px; font-weight: 600; text-overflow: ellipsis; }.contacts-table .contact-email-link { font-size: 12px; }.contacts-export-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.card-list, .task-list { display: grid; gap: 14px; }
.task-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: -12px 0 18px; }.task-legend span { padding: 5px 9px; border-radius: 20px; font-size: 10px; }.legend-urgent { color: #9c302c; background: #f8d8d5; }.legend-soon { color: #80570d; background: #f7e8b9; }.legend-planned { color: #236346; background: #dff2e7; }.legend-neutral { color: #59635f; background: #e8ecea; }
.empty-state { padding: 55px 20px; border: 1px dashed var(--line); color: var(--muted); background: var(--white); text-align: center; }
.prospect-card { --card-accent: #386b5e; --card-tint: #edf5f1; position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(420px,.9fr); overflow: hidden; border: 1px solid color-mix(in srgb,var(--card-accent) 24%,var(--line)); border-radius: 14px; background: var(--white); box-shadow: 0 8px 28px rgba(17,41,36,.055); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }.prospect-card::before { width: 5px; position: absolute; inset: 0 auto 0 0; z-index: 1; content: ""; background: var(--card-accent); }.prospect-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--card-accent) 50%,var(--line)); box-shadow: 0 16px 38px rgba(17,41,36,.1); }
.prospect-tone-0 { --card-accent: #2f7664; --card-tint: #e9f5f0; }.prospect-tone-1 { --card-accent: #4d67a7; --card-tint: #edf1fa; }
.prospect-card-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 23px 25px 21px 28px; background: linear-gradient(110deg,var(--card-tint),var(--white) 45%); }.prospect-heading { min-width: 0; display: flex; align-items: center; gap: 13px; }.prospect-profile { width: 46px; height: 46px; position: relative; display: grid; flex: 0 0 46px; overflow: hidden; place-items: center; border: 1px solid color-mix(in srgb,var(--card-accent) 22%,transparent); border-radius: 12px; color: var(--card-accent); background: var(--card-tint); font: 800 17px "Manrope"; }.prospect-profile img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; padding: 5px; object-fit: contain; background: var(--white); }.prospect-card h3 { margin: 0; color: var(--ink); font-size: 19px; }.prospect-detail-line { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 5px; color: var(--muted); font-size: 12px; }.prospect-detail-line span + span { position: relative; }.prospect-detail-line span + span::before { position: absolute; left: -9px; color: var(--card-accent); content: "/"; }
.prospect-card p { margin: 0; color: var(--muted); font-size: 12px; }.prospect-website { max-width: 100%; margin-top: 14px!important; overflow: hidden; color: var(--card-accent)!important; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.prospect-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px!important; }.prospect-contact span { margin-left: 2px; padding-left: 8px; border-left: 1px solid var(--line); }.email-readiness { padding: 3px 7px; border-radius: 20px; color: var(--muted); background: #eef1ef; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }.email-ready .email-readiness { color: #176146; background: #dff3e9; }.prospect-card .research-summary { display: -webkit-box; max-width: 720px; margin-top: 12px; overflow: hidden; color: var(--ink); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.crm-view-marker { padding: 3px 7px; border-radius: 20px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }.active-outreach-marker { color: #176146; background: #dff3e9; }.archive-marker { color: #6d5b45; background: #eee9e1; }.priority-marker { color: #244f7a; background: #e5f0fb; }
.prospect-actions { display: flex; flex-wrap: wrap; gap: 7px; }.prospect-actions button,.prospect-actions a { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); font-size: 11px; font-weight: 700; }.prospect-card .prospect-actions { justify-content: flex-start; margin-top: 18px; }.prospect-card .prospect-actions button,.prospect-card .prospect-actions a { transition: transform .15s ease,border-color .15s ease,background .15s ease; }.prospect-card .prospect-actions button:hover,.prospect-card .prospect-actions a:hover { transform: translateY(-1px); border-color: var(--card-accent); background: var(--card-tint); }.prospect-card .prospect-actions .generate-prospect-button { color: #fff; border-color: var(--card-accent); background: var(--card-accent); }.prospect-card .prospect-actions .generate-prospect-button:hover { color: #fff; background: color-mix(in srgb,var(--card-accent) 88%,#000); }.prospect-card .prospect-actions .email-prospect-button { color: var(--card-accent); border-color: color-mix(in srgb,var(--card-accent) 35%,var(--line)); }.prospect-card .prospect-actions .linkedin-profile-link { color: #245d91; border-color: #b7cde1; background: #eef5fb; }.prospect-card .prospect-actions .linkedin-log-button { color: #245d91; border-color: #b7cde1; }.prospect-actions .danger-button { color: var(--danger); }.prospect-card .prospect-actions .danger-button:hover { border-color: #e6bcbc; background: #fff5f5; }
.prospect-facts { display: grid; grid-template-columns: 1fr 1fr; align-content: center; border-left: 1px solid var(--line); background: color-mix(in srgb,var(--card-tint) 48%,var(--white)); }.prospect-fact { min-width: 0; min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }.prospect-fact:nth-child(odd) { border-right: 1px solid var(--line); }.prospect-fact:nth-last-child(-n+2) { border-bottom: 0; }.prospect-fact > span,.task-card span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }.prospect-fact p { margin-top: 7px; color: var(--ink); font-size: 12px; }.prospect-fact strong { margin-top: 5px; color: var(--card-accent); font: 800 21px "Manrope"; }.prospect-fact strong small { color: var(--muted); font-size: 11px; }.qualification-meter { width: 100%; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 10px; background: color-mix(in srgb,var(--card-accent) 13%,var(--white)); }.qualification-meter i { height: 100%; display: block; border-radius: inherit; background: var(--card-accent); }.followup-due { color: var(--danger)!important; font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 5px 9px; border: 1px solid transparent; border-radius: 20px; color: var(--green)!important; background: var(--mint); font-size: 10px!important; font-weight: 700; }.badge-hot,.rating-hot { color: #9a3333!important; background: #fbe7e5; }.badge-won,.status-won { color: #174f3c!important; background: #dff3e9; }.status-new-prospect { color: #416072!important; background: #eaf2f6; }.status-qualified { color: #486b24!important; background: #eff6e6; }.status-contacted { color: #3d5d9a!important; background: #edf1fb; }.status-replied,.status-meeting-booked { color: #72438a!important; background: #f3eafa; }.status-proposal-sent { color: #8a5725!important; background: #fbefe2; }.status-lost,.status-not-a-fit { color: #7a6262!important; background: #f2eded; }.status-email-undeliverable { color: #8a3131!important; background: #fbe7e7; }.rating-warm { color: #805d1e!important; background: #fbf0d7; }.rating-cold { color: #376582!important; background: #e7f2f8; }.rating-not-qualified { color: #6d6767!important; background: #efeded; }.priority-score-badge { color: #244f7a!important; background: #e5f0fb; }
.priority-reason-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }.priority-reason-list span { padding: 4px 7px; border: 1px solid #d6e4ef; border-radius: 20px; color: #456272; background: #f4f8fb; font-size: 9px; font-weight: 700; }
.message-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.message-grid .empty-state { grid-column: 1 / -1; }.message-card { min-height: 250px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); background: var(--white); }.message-card p { flex: 1; color: var(--muted); font-size: 14px; white-space: pre-line; }.message-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.message-actions button { align-self: center; }
.dynamic-message-panel { margin-bottom: 32px; padding: clamp(20px,3vw,32px); border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 25px rgba(17,41,36,.03); }.dynamic-message-panel .panel-heading p:not(.overline) { margin: 0; color: var(--muted); }.dynamic-message-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }.generator-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.dynamic-message-result { display: grid; gap: 15px; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }.generator-research { padding: 18px; border: 1px solid var(--line); background: #f8faf7; }.generator-research p:not(.overline) { margin-bottom: 8px; color: var(--muted); }.generator-research a { color: var(--green); font-weight: 700; }.dynamic-message-result textarea { min-height: 260px; }
.prospect-generator-tools { display: grid; gap: 14px; margin: 4px 0 8px; padding: 17px; border: 1px solid var(--line); background: #f8faf7; }.prospect-generator-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }.prospect-generator-heading div { display: grid; gap: 4px; }.prospect-generator-heading strong { font: 400 14px "Inter"; }.prospect-generator-heading span,.prospect-generator-status { color: var(--muted); font-size: 12px; }.prospect-generator-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.prospect-generator-settings textarea { min-height: 82px; }.prospect-generator-status { min-height: 18px; margin: 0; }.prospect-generator-status.success { color: var(--green); }.prospect-generator-status.error { color: var(--danger); }.prospect-generator-research { padding: 14px; border: 1px solid var(--line); background: var(--white); }.prospect-generator-research p:not(.overline) { margin: 6px 0; color: var(--muted); font-size: 12px; }.prospect-generator-research a { color: var(--green); font-size: 12px; font-weight: 500; }
.email-status { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid var(--line); background: var(--white); font-size: 12px; }.email-status strong { font-family: "Manrope"; }.email-status span { color: var(--muted); }.email-status.configured { border-color: #a9d5a8; background: #eff8ed; }.email-status.not-configured { border-color: #ead6a8; background: #fff9e9; }
.subsection-heading { margin: 38px 0 14px; }.email-log { display: grid; gap: 7px; }.email-log-item { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid var(--line); background: var(--white); }.email-log-item div { display: grid; gap: 3px; }.email-log-item strong { font-size: 13px; }.email-log-item span,.email-log-item time,.email-note { color: var(--muted); font-size: 11px; }.email-note { margin: 16px 0 0; }
.proposal-sheet { max-width: 900px; padding: clamp(24px,5vw,65px); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }.proposal-sheet header { margin-bottom: 35px; padding-bottom: 25px; border-bottom: 4px solid var(--forest); }.proposal-sheet header p { color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }.proposal-sheet header strong { color: var(--green); font: 800 23px "Manrope"; }.proposal-sheet section { padding: 20px 0; border-bottom: 1px solid var(--line); }.proposal-sheet section p,.proposal-sheet li { color: var(--muted); font-size: 14px; }
.task-card { position: relative; display: grid; grid-template-columns: 1.4fr repeat(4,.7fr) auto; gap: 15px; align-items: center; overflow: hidden; padding: 15px 18px 15px 22px; border: 1px solid var(--line); background: var(--white); }.task-card::before,.dashboard-task-item::before { width: 5px; position: absolute; inset: 0 auto 0 0; content: ""; background: var(--urgent-green); }.task-card h3 { margin: 0; font-size: 16px; }.task-card.task-done { opacity: .72; }.task-card.task-done h3 { color: var(--muted); text-decoration: line-through; }.task-card .complete-task-button { color: #fff; border-color: var(--green); background: var(--green); }.task-complete-label { display: inline-flex; align-items: center; min-height: 35px; padding: 0 10px; border-radius: 20px; color: var(--green)!important; background: var(--mint); font-size: 10px!important; font-weight: 700; letter-spacing: .04em!important; text-transform: uppercase; }.task-urgent { border-color: #e5b8b5; background: var(--urgent-red-bg); }.task-urgent::before { background: var(--urgent-red); }.task-soon { border-color: #ead69d; background: var(--urgent-yellow-bg); }.task-soon::before { background: #d69b22; }.task-normal { border-color: #b8d8c8; background: var(--urgent-green-bg); }.task-normal::before { background: var(--urgent-green); }.task-deferred::before,.task-done::before { background: #87928d; }.task-urgency-label { width: max-content; margin: 0; padding: 4px 8px; border-radius: 20px; color: var(--urgent-green); background: #dff2e7; font-size: 10px; }.task-urgent .task-urgency-label { color: #9c302c; background: #f8d8d5; }.task-soon .task-urgency-label { color: #80570d; background: #f7e8b9; }
.mail-page { min-height: calc(100vh - 72px); padding: 34px clamp(16px,3vw,42px); }.mail-title { margin-bottom: 18px; }.mail-title h1 { font-size: clamp(30px,4vw,46px); }.mail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 10px; }.mail-toolbar-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }.mail-folder-tabs { display: flex; gap: 4px; }.mail-folder-tabs button { min-width: 96px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 700; }.mail-folder-tabs button:hover,.mail-folder-tabs button.active { color: var(--forest); background: var(--mint); }.mail-count { color: var(--danger); font-size: 9px; }.mail-shell { min-height: 620px; display: grid; grid-template-columns: minmax(390px,.9fr) minmax(460px,1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 10px 35px rgba(17,41,36,.05); }.mail-list-panel { min-width: 0; border-right: 1px solid var(--line); background: #f8faf7; }.mail-list { max-height: 720px; overflow-y: auto; }.mail-row { width: 100%; min-height: 69px; display: grid; grid-template-columns: 8px minmax(105px,.6fr) minmax(180px,1.4fr) auto 60px; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #f8faf7; text-align: left; }.mail-row:hover { position: relative; z-index: 1; background: var(--white); box-shadow: 0 2px 12px rgba(17,41,36,.08); }.mail-row.unread { background: var(--white); }.mail-row.selected { background: var(--mint); }.mail-row.unread .mail-person,.mail-row.unread .mail-summary strong,.mail-row.unread time { color: var(--ink); font-weight: 700; }.mail-person,.mail-summary strong,.mail-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mail-person { color: var(--muted); font-size: 11px; }.mail-summary { min-width: 0; display: grid; gap: 3px; }.mail-summary strong { font: 600 11px "Manrope"; letter-spacing: -.02em; }.mail-summary span { color: var(--muted); font-size: 10px; }.mail-row time { color: var(--muted); font-size: 9px; text-align: right; }.attachment-indicator { padding: 3px 6px; border-radius: 20px; color: var(--green); background: var(--mint); font-size: 7px; font-weight: 700; text-transform: uppercase; }.mail-load-more { width: calc(100% - 24px); margin: 12px; }.mail-reader { min-width: 0; max-height: 720px; overflow-y: auto; background: var(--white); }.mail-reader-empty { min-height: 520px; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }.mail-reader-empty span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font: 700 12px "Manrope"; }.mail-reader-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 28px 30px 20px; }.mail-reader-heading h2 { max-width: 650px; font-size: clamp(22px,3vw,31px); }.mail-reader-back { display: none; }.mail-message-meta { display: grid; gap: 7px; margin: 0 30px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.mail-message-meta div { display: grid; grid-template-columns: 55px 1fr; gap: 10px; }.mail-message-meta dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }.mail-message-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; }.mail-message-notice { margin: 0 30px 12px; padding: 10px 13px; border: 1px solid #ead6a8; color: #795a19; background: #fff9e9; font-size: 10px; }.mail-message-body { min-height: 220px; padding: 8px 30px 35px; color: var(--ink); background: #fff; font: 13px/1.75 "DM Sans", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }.mail-attachments { padding: 24px 30px 32px; border-top: 1px solid var(--line); }.mail-attachments h3 { margin-bottom: 14px; font-size: 15px; }.attachment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.attachment-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f8faf7; }.attachment-card img { width: 100%; max-height: 230px; display: block; object-fit: contain; background: var(--white); }.attachment-card div { display: grid; gap: 3px; padding: 11px; }.attachment-card strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.attachment-card span { color: var(--muted); font-size: 8px; }.attachment-card a { color: var(--green); font-size: 9px; font-weight: 700; }.skeleton { display: block; overflow: hidden; border-radius: 5px; background: linear-gradient(90deg,#edf1ec 25%,#f8faf7 50%,#edf1ec 75%); background-size: 200% 100%; animation: mail-shimmer 1.2s infinite; }.skeleton-dot { width: 7px; height: 7px; border-radius: 50%; }.skeleton-person { width: 80%; height: 10px; }.skeleton-subject { width: 92%; height: 12px; }.skeleton-date { width: 45px; height: 9px; }.mail-reader-loading { display: grid; gap: 14px; padding: 35px 30px; }.skeleton-reader-title { width: 65%; height: 28px; }.skeleton-reader-line { width: 45%; height: 10px; }.skeleton-reader-body { width: 100%; height: 280px; margin-top: 25px; }@keyframes mail-shimmer { to { background-position: -200% 0; } }

dialog { width: min(760px, calc(100% - 24px)); max-height: 92vh; padding: 0; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(17,41,36,.3); }dialog::backdrop { background: rgba(7,25,21,.65); }
.dialog-form { padding: clamp(20px,4vw,38px); }.dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.full-width { grid-column: 1 / -1; }
#email-dialog .dialog-form *,#message-dialog .dialog-form *,.dynamic-message-panel * { font-weight: 400!important; }
fieldset { margin: 22px 0 0; padding: 18px; border: 1px solid var(--line); }legend { color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.check-grid label { display: flex; align-items: start; gap: 8px; font-weight: 500; }.check-grid input { width: auto; min-height: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }.form-status,.form-error,.form-notice { font-size: 13px; }.form-status,.form-error { color: var(--danger); }.form-notice { color: var(--green); }
.bulk-outreach-dialog { width: min(1040px,calc(100% - 24px)); }.bulk-outreach-dialog .dialog-form { padding: clamp(18px,3vw,30px); }.bulk-outreach-dialog .dialog-heading p:not(.overline) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.bulk-outreach-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #bad8c9; border-radius: 10px; background: #edf7f1; }.bulk-outreach-summary strong { font: 700 14px "Manrope"; }.bulk-outreach-summary span { color: var(--muted); font-size: 12px; }.bulk-outreach-list { max-height: 58vh; display: grid; gap: 12px; overflow-y: auto; padding-right: 5px; }.bulk-outreach-draft { display: grid; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.bulk-draft-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 12px; }.bulk-draft-heading h3 { margin: 0; font-size: 15px; }.bulk-draft-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }.bulk-approve { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0; }.bulk-approve input { width: auto; min-height: auto; }.bulk-draft-state { width: max-content; padding: 5px 8px; border-radius: 20px; color: #456272; background: #f4f8fb; font-size: 10px; font-weight: 700; }.bulk-outreach-draft textarea { min-height: 168px; font-size: 13px; line-height: 1.55; }.bulk-booking-note { margin: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.bulk-booking-note a { color: var(--green); font-weight: 700; }.bulk-sent { border-color: #acd8c2; background: #f4fbf7; }.bulk-sent .bulk-draft-state { color: #176146; background: #dff3e9; }.bulk-failed { border-color: #e5b8b5; background: #fff7f6; }.bulk-failed .bulk-draft-state { color: #9c302c; background: #f8d8d5; }
.bulk-template-tools { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(220px,1fr); gap: 12px; align-items: end; margin: 0 0 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf7; }.bulk-template-tools p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.bulk-template-tools select { background: #fff; }
.prospect-card .prospect-actions .history-prospect-button { border-color: color-mix(in srgb,var(--card-accent) 24%,var(--line)); background: var(--card-tint); }.history-dialog { width: min(900px,calc(100% - 24px)); }.history-dialog .dialog-heading p:not(.overline) { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.prospect-history-list { max-height: 62vh; display: grid; gap: 10px; overflow-y: auto; padding-right: 5px; }.prospect-history-item { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }.prospect-history-item header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line); background: #f8faf7; }.prospect-history-item header h3 { margin: 0; font-size: 16px; }.prospect-history-item header .overline { margin-bottom: 5px; font-size: 9px; }.prospect-history-item time { flex: 0 0 auto; color: var(--muted); font-size: 11px; }.prospect-history-item > p { margin: 0; padding: 17px 18px 20px; color: var(--ink); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.automatic-sequence-note { align-self: stretch; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #bad8c9; border-radius: 8px; background: #edf7f1; }.automatic-sequence-note span { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }.automatic-sequence-note p { margin: 0; font-size: 12px; font-weight: 500; }.automatic-sequence-note small { color: var(--muted); font-size: 10px; line-height: 1.5; }.inbound-reply { border-color: #a9c9e6; }.inbound-reply header { background: #eff6fc; }.reply-address { padding: 9px 18px; border-bottom: 1px solid var(--line); color: #365f83; font-size: 10px; font-weight: 600; }
.prospect-record-linkedin-control { align-items: center; }.prospect-record-linkedin-control .quiet-button { min-height: 41px; flex: 0 0 auto; padding: 0 11px; white-space: nowrap; }.linkedin-log-profile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #b7cde1; border-radius: 8px; background: #eef5fb; }.linkedin-log-profile span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.linkedin-log-profile a { color: #245d91; font-size: 11px; font-weight: 700; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; color: var(--white); background: var(--forest); }.login-card { width: min(430px,100%); padding: 38px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }.login-card .workspace-brand { margin-bottom: 45px; }.login-card > p:not(.overline) { color: var(--muted); }.login-card form { display: grid; gap: 13px; margin-top: 26px; }
.login-secondary-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.login-secondary-actions .text-button { font-size: 12px; }
.forgot-password-button { justify-self: start; font-size: 12px; }.password-guidance { margin: 0; color: var(--muted); font-size: 11px; }
.contracts-layout { display: grid; grid-template-columns: minmax(220px,.3fr) minmax(0,1fr); gap: 16px; align-items: start; }.contract-library { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.contract-library-heading { padding: 20px; border-bottom: 1px solid var(--line); }.contract-library-heading h3 { margin: 0; }.contract-list { max-height: calc(100vh - 250px); display: grid; overflow-y: auto; }.contract-list .empty-state { border: 0; }.contract-list-item { display: grid; gap: 4px; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }.contract-list-item:hover,.contract-list-item.active { background: var(--mint); }.contract-list-item strong { font: 700 13px "Manrope"; }.contract-list-item span,.contract-list-item small { color: var(--muted); font-size: 11px; }.contract-editor-shell { min-width: 0; display: grid; gap: 14px; }.contract-form { padding: clamp(20px,3vw,30px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }.contract-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.contract-fields textarea { min-height: 480px; font: 13px/1.65 Consolas,monospace; }.contract-export-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.contract-export-bar .danger-button { margin-right: auto; }.contract-document { max-width: 850px; min-height: 1050px; justify-self: center; padding: clamp(35px,6vw,75px); border: 1px solid var(--line); color: #17231f; background: #fff; box-shadow: var(--shadow); }.contract-document header { position: relative; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 4px solid #285e51; }.contract-document header p { margin: 0 0 7px; color: #285e51; font-size: 11px; font-weight: 700; letter-spacing: .16em; }.contract-document header h2 { max-width: 650px; margin: 0; font-size: clamp(24px,4vw,38px); }.contract-document header > span { position: absolute; top: 0; right: 0; padding: 5px 9px; border-radius: 20px; color: #285e51; background: #e8f0e8; font-size: 10px; font-weight: 700; }.contract-document-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 30px; padding: 16px; border: 1px solid #d9dfda; background: #f8faf7; }.contract-document-meta div { display: grid; gap: 4px; }.contract-document-meta b { color: #65716e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }.contract-document-meta span { font-size: 12px; font-weight: 600; }.contract-document-body { font: 13px/1.75 Arial,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }

.mail-toolbar-actions { font-size: 12px; }
.mail-count { font-size: 11px; }
.mail-person { font-size: 13px; }
.mail-summary strong { font-size: 13px; }
.mail-summary span { font-size: 12px; }
.mail-row time { font-size: 11px; }
.attachment-indicator { font-size: 9px; }
.mail-reader-actions { display: flex; align-items: center; gap: 7px; }
.mail-message-meta dt { font-size: 11px; }
.mail-message-meta dd { font-size: 13px; }
.mail-message-notice { font-size: 12px; }
.mail-message-body { font-size: 15px; }
.attachment-card strong { font-size: 12px; }
.attachment-card span { font-size: 10px; }
.attachment-card a { font-size: 11px; }

html.workspace-large-text body { font-size: 18px; }
html.workspace-large-text .workspace-nav a,
html.workspace-large-text .message-card p,
html.workspace-large-text .proposal-sheet section p,
html.workspace-large-text .proposal-sheet li,
html.workspace-large-text .mail-person,
html.workspace-large-text .mail-summary strong,
html.workspace-large-text .mail-summary span,
html.workspace-large-text .mail-message-meta dd { font-size: 16px; }
html.workspace-large-text label,
html.workspace-large-text .stat-card span,
html.workspace-large-text .stat-card small,
html.workspace-large-text .prospect-card p,
html.workspace-large-text .email-status,
html.workspace-large-text .mail-toolbar-actions,
html.workspace-large-text .mail-message-meta dt,
html.workspace-large-text .mail-message-notice { font-size: 14px; }
html.workspace-large-text .mail-message-body { font-size: 18px; }
html.workspace-large-text .prospect-fact > span,
html.workspace-large-text .task-card span,
html.workspace-large-text .prospect-actions button,
html.workspace-large-text .mail-row time,
html.workspace-large-text .attachment-card span,
html.workspace-large-text .attachment-card a { font-size: 13px; }

html.workspace-night {
  --ink: #edf5f1;
  --forest: #071c17;
  --green: #9ed6c3;
  --lime: #c9ed73;
  --mint: #1a362f;
  --cream: #101b17;
  --white: #10231d;
  --muted: #a8bbb4;
  --line: #355149;
  --danger: #ff9b9b;
  --shadow: 0 20px 55px rgba(0, 0, 0, .32);
  color-scheme: dark;
}
html.workspace-night body { background: #091510; }
html.workspace-night .workspace-header { background: rgba(12, 29, 24, .96); }
html.workspace-night .workspace-brand span { border-color: var(--green); }
html.workspace-night .workspace-nav a:hover,
html.workspace-night .workspace-nav a.active,
html.workspace-night .appearance-button[aria-pressed="true"] { color: var(--ink); }
html.workspace-night .research-field,
html.workspace-night th,
html.workspace-night .filter-bar input,
html.workspace-night .filter-bar select,
html.workspace-night .contacts-toolbar input,
html.workspace-night .contacts-toolbar select,
html.workspace-night .dashboard-task-item,
html.workspace-night .mail-list-panel,
html.workspace-night .mail-row,
html.workspace-night .attachment-card,
html.workspace-night .generator-research,
html.workspace-night .prospect-generator-tools { background: #142820; }
html.workspace-night .mail-row:hover,
html.workspace-night .mail-row.unread { background: #183128; }
html.workspace-night .mail-row.selected { background: var(--mint); }
html.workspace-night .mail-message-body,
html.workspace-night .attachment-card img { background: var(--white); }
html.workspace-night .prospect-tone-0 { --card-accent: #75bca7; --card-tint: #162c25; }
html.workspace-night .prospect-tone-1 { --card-accent: #8ca4d9; --card-tint: #1b263d; }
html.workspace-night .crm-summary-card.email-priority { border-color: #436c59; background: #153326; }
html.workspace-night .crm-view-tab span { color: #b8c6c0; background: #243630; }html.workspace-night .crm-view-tab.active { color: #10221c; background: var(--lime); }html.workspace-night .crm-view-tab.active span { color: #fff; background: #285b49; }html.workspace-night .archive-marker { color: #e5d1b5; background: #463c2e; }
html.workspace-night .prospect-history-item header { background: #142820; }
html.workspace-night .automatic-sequence-note { border-color: #365c49; background: #142820; }html.workspace-night .inbound-reply { border-color: #385d78; }html.workspace-night .inbound-reply header { background: #142633; }.tracking-activity-item.reply-received .tracking-event-icon { color: #365f83; background: #dcebf7; }
html.workspace-night .task-urgent { border-color: #70423f; background: #321d1c; }html.workspace-night .task-soon { border-color: #6b5b2f; background: #312a16; }html.workspace-night .task-normal { border-color: #365c49; background: #142820; }
html.workspace-night .contract-document { color: #17231f; background: #fff; }
html.workspace-night .prospect-fact .badge { color: var(--ink)!important; border-color: var(--line); background: #203b32; }
html.workspace-night .prospect-card .prospect-actions .danger-button:hover { border-color: #754646; background: #3a2222; }
html.workspace-night .email-status.configured { border-color: #436c59; background: #153326; }
html.workspace-night .email-status.not-configured,
html.workspace-night .mail-message-notice { color: #f4d697; border-color: #6f5d31; background: #352b14; }
html.workspace-night .badge-hot { color: #ffc0ba!important; background: #4f2422; }
html.workspace-night .skeleton { background: linear-gradient(90deg,#1b3029 25%,#29433a 50%,#1b3029 75%); background-size: 200% 100%; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .prospect-card { grid-template-columns: 1fr; }.prospect-facts { border-top: 1px solid var(--line); border-left: 0; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }.filter-bar input { grid-column: span 2; }
  .message-grid { grid-template-columns: repeat(2,1fr); }
  .task-card { grid-template-columns: 1.3fr repeat(3,.7fr) auto; }.task-card > div:nth-child(5) { display: none; }
  .contracts-layout { grid-template-columns: 1fr; }.contract-library { position: static; }.contract-list { max-height: 280px; }
}
@media (max-width: 800px) {
  .workspace-header { grid-template-columns: 1fr auto; padding: 0 14px; }.workspace-header > .workspace-context { display: none; }.workspace-actions { gap: 4px; }.workspace-actions .quiet-button { padding: 0 8px; font-size: 11px; }
  .workspace-layout { display: block; }.workspace-nav { height: auto; position: sticky; top: 72px; z-index: 15; display: flex; gap: 3px; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }.workspace-nav a { white-space: nowrap; }
  .workspace-section { padding: 42px 14px; scroll-margin-top: 125px; }.section-title { align-items: stretch; flex-direction: column; }.section-actions { display: grid; grid-template-columns: 1fr 1fr; }.section-title .primary-button,.section-title .quiet-button { width: 100%; }.crm-view-tabs { align-items: stretch; flex-direction: column; }.crm-view-tab { justify-content: space-between; width: 100%; }
  .panel-grid,.message-grid { grid-template-columns: 1fr; }.crm-summary { grid-template-columns: 1fr; }.filter-bar,.contacts-toolbar { grid-template-columns: 1fr 1fr; }.filter-bar input { grid-column: 1 / -1; }.dashboard-task-item { align-items: stretch; flex-direction: column; }.dashboard-task-item .complete-task-button { align-self: flex-start; }
  .task-card { grid-template-columns: 1fr 1fr; }.task-card > div:first-child,.task-card .prospect-actions { grid-column: 1 / -1; }.task-card > div:nth-child(5) { display: block; }.task-card .prospect-actions { justify-content: flex-end; }
  .inline-form,.form-grid,.check-grid,.dynamic-message-form,.prospect-generator-settings,.contract-fields { grid-template-columns: 1fr; }.full-width { grid-column: auto; }
  .prospect-generator-heading { align-items: stretch; flex-direction: column; }.prospect-generator-heading .quiet-button { width: 100%; }
  .input-action { grid-template-columns: 1fr; }
  .email-status,.email-log-item,.prospect-history-item header { align-items: start; flex-direction: column; }
  .mail-page { padding: 24px 12px; }.mail-shell { display: block; min-height: 0; }.mail-list-panel { border-right: 0; }.mail-list { max-height: none; }.mail-reader { max-height: none; border-top: 1px solid var(--line); }.mail-row { grid-template-columns: 7px minmax(90px,.5fr) minmax(0,1.5fr) 48px; gap: 8px; }.mail-row > span:nth-child(4) { display: none; }.mail-toolbar { align-items: stretch; flex-direction: column; }.mail-toolbar-actions { justify-content: space-between; }.mail-folder-tabs button { flex: 1; }.mail-folder-tabs { display: flex; }.mail-reader-back { display: inline-flex; }.mail-reader-heading { flex-wrap: wrap; }.mail-reader-actions { margin-left: auto; }.mail-message-body,.mail-attachments { padding-left: 18px; padding-right: 18px; }.mail-message-meta,.mail-message-notice { margin-left: 18px; margin-right: 18px; }.attachment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .workspace-brand strong { display: none; }.workspace-actions .quiet-button { min-height: 34px; padding: 0 6px; font-size: 10px; }.stat-grid { grid-template-columns: 1fr; }.filter-bar,.contacts-toolbar { grid-template-columns: 1fr; }.filter-bar input { grid-column: auto; }.login-card { padding: 28px 20px; }.prospect-card-main { padding: 19px 17px 18px 21px; }.prospect-fact { min-height: 82px; padding: 14px; }.prospect-contact span { display: block; margin: 3px 0 0; padding: 0; border-left: 0; }.prospect-card .prospect-actions button { flex: 1 1 auto; }.pagination-bar { justify-content: space-between; }.pagination-bar span { min-width: 0; }
}

.tracking-control { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf7; }.tracking-control > span { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; }.tracking-control input { width: auto; min-height: auto; }.tracking-control small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.email-quality-checklist { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdf9; }.quality-checklist-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }.quality-checklist-heading h3 { margin: 2px 0 4px; font-size: 15px; }.quality-checklist-heading span,.email-quality-hint,.meeting-note-help { color: var(--muted); font-size: 11px; line-height: 1.55; }.quality-checklist-heading strong { flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; color: #245b45; background: #e1f1e8; font-size: 10px; }.quality-checklist-heading strong.quality-warning { color: #8a570b; background: #fff0c7; }.quality-flag-list { display: flex; flex-wrap: wrap; gap: 7px; }.quality-flag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid #f0d39b; border-radius: 999px; color: #8a570b; background: #fff8e6; font-size: 11px; font-weight: 700; }.quality-flag.quality-good { color: #245b45; border-color: #c9e8d6; background: #eaf7ef; }.email-quality-hint { margin: 0; color: #966327; }.email-quality-hint.quality-ready { color: var(--green); }.meeting-note-help { margin: 14px 0 0; }
.engagement-fact { background: color-mix(in srgb,var(--card-accent) 7%,transparent); }.engagement-fact p { color: var(--card-accent); font-weight: 700; }
.email-tracking-metrics { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 18px 0; }.email-tracking-metrics span { padding: 4px 8px; border-radius: 20px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 700; }
.timeline-signal { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf7; }.timeline-signal-dot { width: 10px; height: 10px; margin-top: 4px; border: 2px solid var(--white); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--mint); }.timeline-signal strong { font-size: 13px; }.timeline-signal p { margin: 3px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.timeline-signal time { color: var(--muted); font-size: 10px; }.signal-clicked .timeline-signal-dot { background: #4d67a7; box-shadow: 0 0 0 2px #e2e9f8; }
.signal-linkedin-sent .timeline-signal-dot { background: #2f72a8; box-shadow: 0 0 0 2px #dcebf7; }
.report-stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }.report-stat { position: relative; display: grid; gap: 5px; overflow: hidden; padding: 19px 19px 18px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg,var(--white),#f7faf7); box-shadow: 0 8px 24px rgba(17,41,36,.045); }.report-stat::before { height: 4px; position: absolute; inset: 0 0 auto; content: ""; background: var(--green); }.report-stat-clicked::before { background: #4d67a7; }.report-stat-replied::before { background: #8b6aa0; }.report-stat-meetings::before { background: #b77b35; }.report-stat span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.report-stat strong { color: var(--green); font: 700 30px "Manrope"; }.report-stat-clicked strong { color: #4d67a7; }.report-stat-replied strong { color: #7b568f; }.report-stat-meetings strong { color: #9a6428; }.report-stat small { color: var(--muted); font-size: 10px; }
.report-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; margin-top: 14px; }.engagement-panel { overflow: hidden; }.engagement-lead-list,.tracking-activity-list { display: grid; gap: 9px; }.engagement-lead { display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(120px,auto) auto; gap: 15px; align-items: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg,#f7faf7,var(--white)); transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; }.engagement-lead:hover { transform: translateY(-1px); border-color: #a8cdbc; box-shadow: 0 9px 24px rgba(17,41,36,.08); }.engagement-lead-main { min-width: 0; display: grid; gap: 4px; }.engagement-lead span { color: var(--muted); font-size: 10px; }.organization-history-link { width: max-content; max-width: 100%; min-height: auto; padding: 0; overflow: hidden; border: 0; color: var(--green); background: transparent; font: 700 12px "Manrope"; text-align: left; text-overflow: ellipsis; white-space: nowrap; }.organization-history-link:hover,.organization-history-link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }.engagement-meter { width: min(170px,100%); height: 4px; margin-top: 4px; overflow: hidden; border-radius: 10px; background: #e4ece7; }.engagement-meter i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#6cad91,var(--green)); }.engagement-score { min-width: 48px; display: grid; justify-items: center; padding: 7px 9px; border: 1px solid #d7e7df; border-radius: 9px; background: var(--white); }.engagement-score b { color: var(--green); font: 700 21px "Manrope"; }.engagement-signals { min-width: 115px; display: flex; flex-wrap: wrap; gap: 5px; }.engagement-signals span { padding: 4px 7px; border-radius: 20px; color: #35614f; background: #e5f1eb; font-size: 9px; font-weight: 700; }.engagement-signals .engagement-signal-click { color: #40598e; background: #e7ecf8; }.engagement-signals .engagement-signal-followup { color: #8a5725; background: #fbefe2; }.engagement-lead-actions { display: flex; gap: 5px; opacity: .62; transition: opacity .16s ease; }.engagement-lead:hover .engagement-lead-actions,.engagement-lead:focus-within .engagement-lead-actions { opacity: 1; }.engagement-lead-actions button,.engagement-lead-actions a,.tracking-record-link { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--white); font-size: 10px; font-weight: 700; }
.tracking-activity-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 11px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: linear-gradient(135deg,#f7faf7,var(--white)); transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; }.tracking-activity-item:hover { transform: translateY(-1px); border-color: #a8cdbc; box-shadow: 0 8px 22px rgba(17,41,36,.075); }.tracking-event-icon { min-width: 43px; padding: 6px 8px; border-radius: 20px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }.tracking-activity-item.clicked .tracking-event-icon { color: #40598e; background: #e2e9f8; }.tracking-activity-copy { min-width: 0; display: grid; gap: 3px; }.tracking-activity-copy p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.45; }.tracking-activity-copy .organization-history-link { display: inline; font: inherit; font-weight: 700; }.tracking-activity-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.tracking-activity-item time { color: var(--muted); font-size: 9px; white-space: nowrap; }.tracking-record-link { min-height: 29px; }.tracking-disclaimer { margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.engagement-alert-link { display: inline-flex; align-items: center; gap: 6px; }.engagement-alert-badge { min-width: 18px; padding: 2px 5px; border-radius: 20px; color: #fff; background: #d63c3c; font-size: 9px; font-weight: 700; text-align: center; }.engagement-toast-container { width: min(390px,calc(100% - 24px)); position: fixed; right: 14px; bottom: 14px; z-index: 100; display: grid; gap: 8px; }.engagement-toast { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid #a8d4c1; border-left: 5px solid var(--green); border-radius: 10px; color: var(--ink); background: var(--white); box-shadow: 0 14px 38px rgba(17,41,36,.2); }.engagement-toast.clicked { border-left-color: #4d67a7; }.engagement-toast.reply-received { border-left-color: #2f78ad; }.engagement-toast-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }.engagement-toast p { margin: 0; font-size: 11px; line-height: 1.5; }.engagement-toast a { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-color: #b8d4c7; text-underline-offset: 3px; }
.task-quick-actions { display: flex; flex: 0 0 auto; gap: 6px; }.task-quick-actions button,.task-quick-actions a,.task-email-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--white); font-size: 10px; font-weight: 700; }.task-card .prospect-actions .task-email-link { min-height: 35px; padding: 0 12px; }
.prospect-website-control { max-width: 100%; position: relative; display: flex; align-items: center; gap: 7px; margin-top: 14px; }.prospect-website-control .prospect-website { min-width: 0; max-width: 100%; margin-top: 0!important; }.prospect-website-actions { display: inline-flex; flex: 0 0 auto; gap: 4px; opacity: 0; transform: translateX(-5px); pointer-events: none; transition: opacity .16s ease,transform .16s ease; }.prospect-website-control:hover .prospect-website-actions,.prospect-website-control:focus-within .prospect-website-actions { opacity: 1; transform: translateX(0); pointer-events: auto; }.prospect-website-actions button,.prospect-website-actions a { min-height: 27px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid color-mix(in srgb,var(--card-accent) 28%,var(--line)); border-radius: 6px; color: var(--card-accent); background: var(--white); font-size: 9px; font-weight: 700; }.prospect-website-actions button:hover,.prospect-website-actions a:hover { border-color: var(--card-accent); background: var(--card-tint); }
.prospect-record-website-control { align-items: center; }.prospect-record-website-actions,.prospect-record-website-shortcuts { display: inline-flex; align-items: center; gap: 5px; }.prospect-record-website-shortcuts { opacity: 0; transform: translateX(-5px); pointer-events: none; transition: opacity .16s ease,transform .16s ease; }.prospect-record-website-control:hover .prospect-record-website-shortcuts,.prospect-record-website-control:focus-within .prospect-record-website-shortcuts { opacity: 1; transform: translateX(0); pointer-events: auto; }.prospect-record-website-actions .quiet-button { min-height: 41px; padding: 0 11px; font-size: 10px; white-space: nowrap; }
html.workspace-night .tracking-control,html.workspace-night .timeline-signal,html.workspace-night .engagement-lead,html.workspace-night .tracking-activity-item,html.workspace-night .report-stat,html.workspace-night .email-quality-checklist { background: #142820; }html.workspace-night .quality-checklist-heading strong { color: #c6f0de; background: #214337; }html.workspace-night .quality-checklist-heading strong.quality-warning { color: #ffe2a3; background: #4a3518; }html.workspace-night .quality-flag { color: #ffe2a3; border-color: #6b4c21; background: #2d2519; }html.workspace-night .quality-flag.quality-good { color: #c6f0de; border-color: #365c49; background: #193128; }html.workspace-night .engagement-meter { background: #29443a; }html.workspace-night .engagement-score { border-color: #365c49; background: #193128; }html.workspace-night .engagement-signals .engagement-signal-open { color: #b7dece; background: #214337; }html.workspace-night .engagement-toast { border-color: #365c49; background: #193128; }html.workspace-night .organization-history-link { color: var(--lime); }
html.workspace-night .priority-marker,html.workspace-night .priority-score-badge,html.workspace-night .priority-reason-list span { color: #b9daf2!important; border-color: #385d78; background: #142633; }
html.workspace-night .linkedin-log-profile { border-color: #385d78; background: #142633; }html.workspace-night .prospect-card .prospect-actions .linkedin-profile-link { color: #a9cce8; border-color: #385d78; background: #142633; }
@media (max-width: 1100px) { .report-stat-grid { grid-template-columns: repeat(3,1fr); }.report-layout { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .report-stat-grid { grid-template-columns: 1fr 1fr; }.engagement-lead { grid-template-columns: 1fr auto; }.engagement-signals { grid-column: 1 / -1; }.engagement-lead-actions { grid-column: 1 / -1; opacity: 1; }.engagement-lead-actions a,.engagement-lead-actions button { flex: 1; }.timeline-signal,.tracking-activity-item { grid-template-columns: auto 1fr auto; }.timeline-signal time,.tracking-activity-item time { grid-column: 2; }.tracking-record-link { grid-column: 3; grid-row: 1 / span 2; }.task-quick-actions { width: 100%; }.task-quick-actions button,.task-quick-actions a { flex: 1; }.prospect-website-control { align-items: flex-start; flex-direction: column; }.prospect-website-actions,.prospect-record-website-shortcuts { opacity: 1; transform: none; pointer-events: auto; }.prospect-record-website-actions { flex-wrap: wrap; }.prospect-record-website-actions .quiet-button { flex: 1; }.prospect-record-linkedin-control { align-items: stretch; flex-direction: column; }.linkedin-log-profile { align-items: flex-start; flex-direction: column; } }
@media (max-width: 480px) { .report-stat-grid { grid-template-columns: 1fr; }.workspace-actions .engagement-alert-link { padding: 0 5px; font-size: 0; }.engagement-alert-badge { font-size: 9px; } }

@media print {
  body[data-workspace-page="contracts"] { background: #fff; }
  body[data-workspace-page="contracts"] .workspace-header,
  body[data-workspace-page="contracts"] .workspace-nav,
  body[data-workspace-page="contracts"] .section-title,
  body[data-workspace-page="contracts"] .contract-library,
  body[data-workspace-page="contracts"] .contract-form,
  body[data-workspace-page="contracts"] .contract-export-bar { display: none!important; }
  body[data-workspace-page="contracts"] .workspace-layout,
  body[data-workspace-page="contracts"] .contracts-layout,
  body[data-workspace-page="contracts"] .contract-editor-shell { display: block; }
  body[data-workspace-page="contracts"] .workspace-section { min-height: 0; padding: 0; }
  body[data-workspace-page="contracts"] .contract-document { max-width: none; min-height: 0; padding: 20mm; border: 0; box-shadow: none; }
}

/* 2026 CRM interface refresh */
:root {
  --crm-blue: #2e75b6;
  --crm-blue-soft: #eaf3fb;
  --crm-orange: #e97836;
  --crm-page: #f5f7f9;
  --crm-border: #dfe5ea;
  --crm-shadow: 0 1px 3px rgba(32,52,66,.08);
}
body { background: var(--crm-page); font-size: 15px; }
h1 { font-size: clamp(28px,4vw,40px); }
h2 { font-size: clamp(20px,2vw,26px); }
.workspace-header { height: 64px; grid-template-columns: 214px 1fr auto; gap: 18px; padding: 0 22px; border-color: var(--crm-border); box-shadow: 0 1px 3px rgba(32,52,66,.04); }
.workspace-brand { letter-spacing: -.01em; }.workspace-brand span { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #fff; background: var(--crm-orange); }.workspace-brand strong { font-size: 14px; }
.workspace-context { font-size: 12px!important; }.workspace-context b { color: var(--ink); }
.workspace-actions .quiet-button { min-height: 34px; border-color: var(--crm-border); border-radius: 6px; font-size: 11px; }
.mobile-nav-toggle,.mobile-nav-backdrop { display: none; }
.workspace-layout { grid-template-columns: 214px minmax(0,1fr); }
.workspace-nav { height: calc(100vh - 64px); top: 64px; gap: 2px; padding: 18px 12px; border-color: var(--crm-border); }
.workspace-nav-heading { padding: 5px 10px 7px; color: #89959e; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.workspace-tools-heading { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--crm-border); }
.workspace-nav a { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.workspace-nav a:hover { color: var(--crm-blue); background: #f1f6fa; }.workspace-nav a.active { color: #175d91; background: var(--crm-blue-soft); box-shadow: inset 3px 0 var(--crm-blue); }
.workspace-nav .inbox-nav-link { justify-content: flex-start; }.workspace-nav .inbox-nav-link .external-link-mark { margin-left: auto; }
.workspace-signout-link { margin-top: auto; color: var(--muted)!important; }
.nav-icon { width: 16px; height: 16px; position: relative; display: inline-block; flex: 0 0 16px; color: currentColor; }
.nav-icon::before,.nav-icon::after { position: absolute; content: ""; }
.nav-icon-home::before { width: 11px; height: 11px; left: 2px; top: 3px; border: 1.5px solid currentColor; border-radius: 3px; }
.nav-icon-users::before { width: 6px; height: 6px; left: 1px; top: 1px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 7px 2px 0 -1px var(--white),7px 2px 0 .5px currentColor; }.nav-icon-users::after { width: 13px; height: 6px; left: 1px; bottom: 0; border: 1.5px solid currentColor; border-radius: 8px 8px 3px 3px; }
.nav-icon-activity::before { width: 14px; height: 8px; top: 3px; border-bottom: 1.5px solid currentColor; transform: skewY(-25deg); }
.nav-icon-pipeline::before { width: 14px; height: 12px; top: 2px; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(90deg,transparent 31%,currentColor 32%,currentColor 36%,transparent 37%,transparent 64%,currentColor 65%,currentColor 69%,transparent 70%); }
.nav-icon-check::before { width: 12px; height: 7px; left: 2px; top: 2px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.nav-icon-calendar::before { width: 14px; height: 13px; left: 1px; top: 2px; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor,currentColor) 0 3px/100% 1.5px no-repeat; }.nav-icon-calendar::after { width: 9px; height: 2px; left: 4px; top: 0; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.nav-icon-mail::before { width: 14px; height: 10px; top: 3px; border: 1.5px solid currentColor; border-radius: 2px; }.nav-icon-mail::after { width: 8px; height: 8px; left: 4px; top: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-icon-chart::before { width: 14px; height: 13px; top: 1px; background: linear-gradient(to top,currentColor 0 100%) 1px 8px/3px 5px no-repeat,linear-gradient(to top,currentColor 0 100%) 6px 4px/3px 9px no-repeat,linear-gradient(to top,currentColor 0 100%) 11px 0/3px 13px no-repeat; }
.nav-icon-settings::before { width: 11px; height: 11px; left: 2px; top: 2px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--white); }
.nav-icon-message::before,.nav-icon-file::before,.nav-icon-contract::before { width: 12px; height: 13px; left: 2px; top: 1px; border: 1.5px solid currentColor; border-radius: 2px; }.nav-icon-message::after { width: 5px; height: 5px; left: 4px; bottom: 0; border-left: 1.5px solid currentColor; transform: skewX(-30deg); }
.nav-icon-logout::before { width: 10px; height: 12px; left: 1px; top: 2px; border: 1.5px solid currentColor; border-right: 0; border-radius: 2px; }.nav-icon-logout::after { width: 8px; height: 8px; right: 0; top: 4px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.workspace-section { padding: 34px clamp(18px,4vw,52px); }.workspace-page-section { min-height: calc(100vh - 64px); }
.section-title { align-items: center; margin-bottom: 22px; }.section-title p:not(.overline) { font-size: 13px; }.overline { margin-bottom: 5px; color: var(--crm-blue); font-size: 10px; letter-spacing: .12em; }
.primary-button { min-height: 38px; border-radius: 6px; color: #fff; background: var(--crm-blue); font-size: 12px; }.primary-button:hover { background: #245f94; }
.quiet-button { min-height: 38px; border-color: var(--crm-border); border-radius: 6px; font-size: 12px; }.text-button { color: var(--crm-blue); font-size: 11px; }
.panel { padding: 20px; border-color: var(--crm-border); border-radius: 8px; box-shadow: var(--crm-shadow); }.panel-heading { margin-bottom: 18px; }.panel-heading p:not(.overline) { margin: 0; color: var(--muted); font-size: 11px; }
.crm-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.crm-stat-grid .stat-card { min-height: 112px; display: grid; grid-template-columns: auto 1fr; align-items: center; justify-content: initial; gap: 13px; padding: 17px; border-color: var(--crm-border); border-radius: 8px; box-shadow: var(--crm-shadow); }.crm-stat-grid .stat-card div { display: grid; gap: 1px; }.crm-stat-grid .stat-card strong { color: #253642; font-size: 26px; letter-spacing: -.04em; }.crm-stat-grid .stat-card span:not(.stat-icon) { font-size: 11px; }.crm-stat-grid .stat-card small { font-size: 11px; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--crm-blue); background: var(--crm-blue-soft); }.stat-icon::before { font: 700 12px "Manrope"; }.stat-icon-users::before { content: "P"; }.stat-icon-mail::before { content: "S"; }.stat-icon-open::before { content: "O"; }.stat-icon-click::before { content: "C"; }.stat-icon-meeting::before { content: "M"; }.stat-icon-hot::before { content: "H"; }.hot-lead-stat .stat-icon { color: #a34f26; background: #fff0e8; }
.target-strip { margin-top: 12px; }.target-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.target-strip-heading h2 { margin: 0; font-size: 18px; }.target-strip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 18px; }.target-item div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: 12px; }.target-item b { color: var(--ink); }.target-item progress { height: 7px; }
.dashboard-tasks-panel { margin-top: 12px; }.dashboard-task-item { padding: 12px 14px 12px 17px; border-color: var(--crm-border); border-radius: 7px; background: var(--white); }.dashboard-task-item strong { font-size: 12px; }.dashboard-task-item .complete-task-button { background: var(--crm-blue); }
.filter-bar,.crm-view-tabs,.crm-summary-card,.contacts-toolbar,.table-wrap { border-color: var(--crm-border); box-shadow: var(--crm-shadow); }.crm-view-tab.active { background: var(--crm-blue); }.crm-view-tab.active span { background: #fff; }.crm-summary-card.email-priority { border-color: #bcd7eb; background: #f0f7fc; }
.card-list { gap: 10px; }.prospect-card { grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); border-color: var(--crm-border); border-radius: 8px; box-shadow: var(--crm-shadow); }.prospect-card::before { display: none; }.prospect-card:hover { transform: translateY(-1px); border-color: #b8cad8; box-shadow: 0 5px 14px rgba(32,52,66,.1); }.prospect-card-main { padding: 18px; background: var(--white); }.prospect-profile { width: 40px; height: 40px; flex-basis: 40px; border-radius: 7px; }.prospect-card h3 { font-size: 16px; }.prospect-detail-line,.prospect-card p { font-size: 12px; }.prospect-website-control { margin-top: 9px; }.prospect-contact { margin-top: 5px!important; }.prospect-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }.followup-needed-badge { color: #945d11!important; background: #fff4d7; }.meeting-booked-badge { color: #335f91!important; background: #eaf3fb; }
.prospect-card .prospect-actions { margin-top: 14px; gap: 5px; }.prospect-card .prospect-actions button,.prospect-card .prospect-actions a { min-height: 33px; padding: 0 10px; border-color: var(--crm-border); border-radius: 5px; font-size: 11px; }.prospect-card .prospect-actions .primary-card-action { color: #fff; border-color: var(--crm-blue); background: var(--crm-blue); }
.prospect-facts { grid-template-columns: 1fr; border-color: var(--crm-border); background: #fafbfc; }.prospect-fact { min-height: auto; padding: 14px 16px; border-right: 0!important; border-color: var(--crm-border); }.prospect-fact:last-child { border-bottom: 0; }.prospect-fact > span { font-size: 10px; }.prospect-fact p { margin-top: 3px; font-size: 12px; }.prospect-fact strong { margin-top: 2px; color: var(--crm-blue); font-size: 20px; }
.pipeline-board { display: grid; grid-template-columns: repeat(8,minmax(240px,1fr)); gap: 10px; overflow-x: auto; padding-bottom: 14px; }.pipeline-column { min-height: 500px; padding: 10px; border: 1px solid var(--crm-border); border-radius: 8px; background: #eef2f5; }.pipeline-column > header { margin-bottom: 9px; }.pipeline-column > header div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.pipeline-column h2 { margin: 0; font-size: 13px; }.pipeline-column header span { min-width: 22px; padding: 2px 6px; border-radius: 20px; color: var(--muted); background: #fff; font-size: 10px; text-align: center; }.pipeline-column-list { display: grid; align-content: start; gap: 8px; }.pipeline-card { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--crm-border); border-radius: 7px; background: #fff; box-shadow: var(--crm-shadow); }.pipeline-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.pipeline-card strong { font-size: 13px; }.pipeline-card p { margin: 0; color: var(--muted); font-size: 11px; }.pipeline-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.pipeline-card-metrics span { padding: 6px; border-radius: 5px; color: var(--muted); background: #f5f7f9; font-size: 10px; }.pipeline-card-metrics b { display: block; margin-top: 2px; color: var(--ink); font-size: 11px; }.pipeline-card label { font-size: 10px; }.pipeline-card select { min-height: 34px; font-size: 11px; }.pipeline-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.pipeline-card-actions button,.pipeline-card-actions a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--crm-border); border-radius: 5px; background: #fff; font-size: 10px; font-weight: 700; }.pipeline-empty { padding: 30px 10px; color: #98a3aa; font-size: 11px; text-align: center; }
.history-dialog { width: min(820px,calc(100% - 24px)); }.prospect-history-list { position: relative; gap: 0; padding: 0 0 0 20px; }.prospect-history-list::before { width: 2px; position: absolute; inset: 0 auto 0 7px; content: ""; background: var(--crm-border); }.crm-timeline-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 0 0 18px 13px; }.crm-timeline-icon { width: 12px; height: 12px; position: absolute; left: -19px; top: 2px; z-index: 1; border: 3px solid #fff; border-radius: 50%; background: var(--crm-blue); box-shadow: 0 0 0 1px var(--crm-blue); }.timeline-clicked .crm-timeline-icon { background: #6b62b5; box-shadow: 0 0 0 1px #6b62b5; }.timeline-reply-received .crm-timeline-icon,.timeline-meeting-booked .crm-timeline-icon,.timeline-meeting-note .crm-timeline-icon { background: #2e8b67; box-shadow: 0 0 0 1px #2e8b67; }.timeline-note-added .crm-timeline-icon,.timeline-task-created .crm-timeline-icon { background: var(--crm-orange); box-shadow: 0 0 0 1px var(--crm-orange); }.timeline-email-bounced .crm-timeline-icon,.timeline-delivery-failed .crm-timeline-icon { background: #b65252; box-shadow: 0 0 0 1px #b65252; }.crm-timeline-item > div { padding: 11px 13px; border: 1px solid var(--crm-border); border-radius: 7px; background: #fff; }.crm-timeline-item span:not(.crm-timeline-icon) { color: var(--crm-blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.crm-timeline-item h3 { margin: 3px 0; font-size: 13px; }.crm-timeline-item p { max-height: 70px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; }.crm-timeline-item time { padding-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.timeline-message-item > div { padding: 15px 16px; }.crm-timeline-item .timeline-message-meta { max-height: none; margin: 5px 0 12px; overflow: visible; color: var(--muted); font-size: 10px; }.crm-timeline-item .timeline-message-body { max-height: none; padding-top: 12px; overflow: visible; border-top: 1px solid var(--crm-border); color: var(--ink); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.settings-card { display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; justify-content: space-between; }.settings-card p:not(.overline) { color: var(--muted); font-size: 11px; }.settings-actions { display: flex; flex-wrap: wrap; gap: 7px; }

html.workspace-night { --crm-page: #091510; --crm-border: #355149; --crm-blue-soft: #142d3c; }.workspace-night .pipeline-column { background: #0c1d17; }.workspace-night .pipeline-card,.workspace-night .crm-timeline-item > div { background: var(--white); }.workspace-night .crm-timeline-icon { border-color: var(--white); }.workspace-night .prospect-facts { background: #142820; }.workspace-night .stat-icon { background: #183748; }
@media (max-width: 1100px) { .crm-stat-grid { grid-template-columns: repeat(2,1fr); }.target-strip-grid,.settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .workspace-header { height: 58px; grid-template-columns: auto 1fr auto; padding: 0 12px; }.workspace-brand { justify-self: start; }.workspace-header > .workspace-context,.header-settings-link { display: none; }.mobile-nav-toggle { width: 34px; height: 34px; display: grid; align-content: center; gap: 3px; padding: 8px; border: 1px solid var(--crm-border); border-radius: 6px; background: var(--white); }.mobile-nav-toggle span { height: 1.5px; display: block; background: var(--ink); }.workspace-layout { display: block; }.workspace-nav { width: min(270px,84vw); height: calc(100vh - 58px); position: fixed; top: 58px; left: 0; z-index: 40; display: grid; transform: translateX(-105%); transition: transform .2s ease; border-right: 1px solid var(--crm-border); border-bottom: 0; }.workspace-nav-open .workspace-nav { transform: translateX(0); }.mobile-nav-backdrop { position: fixed; inset: 58px 0 0; z-index: 35; border: 0; background: rgba(17,31,38,.35); }.workspace-nav-open .mobile-nav-backdrop { display: block; }.workspace-section { padding: 25px 12px; }.crm-stat-grid { grid-template-columns: 1fr 1fr; }.prospect-card { grid-template-columns: 1fr; }.prospect-facts { grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--crm-border); border-left: 0; }.prospect-fact { border-right: 1px solid var(--crm-border)!important; border-bottom: 0; }.prospect-fact:last-child { border-right: 0!important; }.pipeline-board { grid-template-columns: repeat(8,minmax(215px,1fr)); }.engagement-alert-link { font-size: 0!important; }.engagement-alert-badge { font-size: 9px; }
}
@media (max-width: 520px) { .crm-stat-grid { grid-template-columns: 1fr; }.target-strip-heading { align-items: flex-start; flex-direction: column; }.prospect-facts { grid-template-columns: 1fr; }.prospect-fact { border-right: 0!important; border-bottom: 1px solid var(--crm-border); }.settings-grid,.quality-check-grid { grid-template-columns: 1fr; }.quality-checklist-heading { flex-direction: column; } }

/* Final navigation and command-bar refresh */
:root { --workspace-chrome: #2d2f30; --workspace-sidebar: #243038; --workspace-sidebar-hover: #33434c; --workspace-sidebar-active: #3d5665; }
.workspace-header { height: 58px; grid-template-columns: 214px minmax(260px,620px) 1fr; gap: 18px; padding: 0 18px; border: 0; color: #fff; background: var(--workspace-chrome); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.workspace-brand { color: #fff; }.workspace-brand span { width: 31px; height: 31px; background: var(--crm-orange); }.workspace-brand strong { color: #fff; }
.workspace-global-search { height: 40px; position: relative; display: flex; align-items: center; }
.workspace-global-search input { width: 100%; height: 40px; padding: 0 45px 0 17px; border: 1px solid #777d80; border-radius: 22px; color: #fff; background: #393b3c; outline: 0; }
.workspace-global-search input::placeholder { color: #e3e5e6; }.workspace-global-search input:focus { border-color: #b5c7d1; box-shadow: 0 0 0 2px rgba(167,204,225,.18); }
.workspace-global-search button { width: 38px; height: 38px; position: absolute; right: 2px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: transparent; }
.workspace-global-search button span { width: 14px; height: 14px; position: relative; display: block; border: 2px solid currentColor; border-radius: 50%; }.workspace-global-search button span::after { width: 6px; height: 2px; position: absolute; right: -5px; bottom: -2px; content: ""; transform: rotate(45deg); background: currentColor; }
.workspace-actions { min-width: 0; gap: 2px; }.header-tool-button,.header-account-link { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 0; border-left: 1px solid #55595b; border-radius: 0; color: #f5f6f6; background: transparent; font-size: 11px; font-weight: 600; white-space: nowrap; }.header-tool-button:hover,.header-account-link:hover { background: #3b3e3f; }.header-tool-button[aria-pressed="true"] { color: #fff; background: #43515a; }.header-tool-button b,.header-account-link b { font: 600 11px "Inter"; }
.header-tool-icon { width: 17px; height: 17px; position: relative; display: inline-block; flex: 0 0 17px; }.night-icon::before { width: 12px; height: 12px; position: absolute; left: 1px; top: 1px; content: ""; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 4px 1px 0 -1px var(--workspace-chrome); }.automation-icon::before { width: 13px; height: 13px; position: absolute; left: 2px; top: 2px; content: ""; border: 1.5px solid currentColor; border-radius: 50%; }.automation-icon::after { width: 5px; height: 4px; position: absolute; left: 7px; top: 4px; content: ""; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }.notification-icon::before { width: 12px; height: 12px; position: absolute; left: 2px; top: 1px; content: ""; border: 1.5px solid currentColor; border-radius: 8px 8px 4px 4px; }.notification-icon::after { width: 4px; height: 2px; position: absolute; left: 6px; bottom: 1px; content: ""; border-bottom: 1.5px solid currentColor; }
.header-account-link { margin-left: 4px; padding-right: 4px; }.header-account-link span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #2d3a41; background: #e8eff2; font-size: 10px; font-weight: 700; }.engagement-alert-link { position: relative; }.engagement-alert-link .engagement-alert-badge { position: absolute; right: 3px; top: 2px; }
.workspace-layout { grid-template-columns: 214px minmax(0,1fr); }
.workspace-nav { height: calc(100vh - 58px); top: 58px; gap: 3px; padding: 18px 10px; border: 0; color: #dce4e8; background: var(--workspace-sidebar); }
.workspace-nav-heading { padding: 7px 12px; color: #8fa2ad; }
.workspace-tools-heading { border-color: #40505a; }
.workspace-nav a,.workspace-nav .inbox-nav-link { min-height: 40px; display: grid; grid-template-columns: 18px minmax(0,1fr) 14px; align-items: center; justify-content: initial; column-gap: 10px; padding: 8px 10px; color: #d4dee3; border-radius: 5px; font-size: 13px; }
.workspace-nav a:hover { color: #fff; background: var(--workspace-sidebar-hover); }.workspace-nav a.active { color: #fff; background: var(--workspace-sidebar-active); box-shadow: inset 3px 0 #69a9ce; }
.workspace-nav a > .nav-icon { grid-column: 1; justify-self: center; }.workspace-nav a > span:nth-child(2) { grid-column: 2; justify-self: start; }.workspace-nav .inbox-nav-link .external-link-mark { grid-column: 3; justify-self: center; margin-left: 0; color: #a7c8da; }
.workspace-signout-link { color: #bdcbd2!important; }.workspace-nav .nav-icon-users::before { box-shadow: 7px 2px 0 -1px var(--workspace-sidebar),7px 2px 0 .5px currentColor; }.workspace-nav .nav-icon-settings::before { box-shadow: inset 0 0 0 3px var(--workspace-sidebar); }
.settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.automation-switch { min-height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px 0 7px; border: 1px solid var(--crm-border); border-radius: 22px; color: var(--muted); background: var(--white); }.automation-switch > span { width: 32px; height: 19px; position: relative; display: block; border-radius: 20px; background: #aeb8bd; transition: background .18s ease; }.automation-switch > span::after { width: 15px; height: 15px; position: absolute; left: 2px; top: 2px; content: ""; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2); }.automation-switch.automation-enabled > span { background: #2e8b67; }.automation-switch.automation-enabled > span::after { transform: translateX(13px); }.automation-switch b { font-size: 11px; }.settings-actions small { display: block; width: 100%; color: var(--muted); font-size: 10px; }
html.workspace-night .workspace-header { background: #202324; }.workspace-night .workspace-global-search input { background: #303334; }.workspace-night .night-icon::before { box-shadow: 4px 1px 0 -1px #202324; }.workspace-night .workspace-nav { background: #17232a; }.workspace-night .workspace-nav a:hover { background: #263943; }.workspace-night .workspace-nav a.active { background: #314b59; }.workspace-night .workspace-nav .nav-icon-users::before { box-shadow: 7px 2px 0 -1px #17232a,7px 2px 0 .5px currentColor; }.workspace-night .workspace-nav .nav-icon-settings::before { box-shadow: inset 0 0 0 3px #17232a; }
@media (max-width: 1050px) { .workspace-header { grid-template-columns: 214px minmax(220px,1fr) auto; }.header-tool-button b,.header-account-link b { display: none; }.header-tool-button,.header-account-link { width: 39px; padding: 0; }.settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .workspace-header { height: 58px; grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 10px; }.workspace-global-search { display: none; }.workspace-actions { justify-self: end; }.automation-header-toggle { display: none; }.header-account-link { display: none; }.header-tool-button { width: 36px; border-left: 0; }.mobile-nav-toggle { color: #fff; border-color: #606668; background: #36393a; }.mobile-nav-toggle span { background: #fff; }.workspace-nav { top: 58px; background: var(--workspace-sidebar); }
}

/* Keep compact CRM actions and Sales Tools navigation aligned at every text-size setting. */
.prospect-card .prospect-actions button,
.prospect-card .prospect-actions a,
html.workspace-large-text .prospect-card .prospect-actions button,
html.workspace-large-text .prospect-card .prospect-actions a {
  min-height: 34px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.workspace-nav .workspace-tools-heading ~ a,
html.workspace-large-text .workspace-nav .workspace-tools-heading ~ a {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 11px;
  line-height: 1.2;
}
.workspace-nav .workspace-tools-heading ~ a > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Prospect record drawer */
.prospect-record-backdrop {
  position: fixed;
  inset: 58px 0 0;
  z-index: 55;
  border: 0;
  background: rgba(20,31,38,.28);
}
.prospect-record-panel {
  width: min(760px,calc(100vw - 238px));
  position: fixed;
  top: 58px;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateX(104%);
  transition: transform .22s ease;
  pointer-events: none;
}
.prospect-record-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.prospect-record-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  border-left: 1px solid var(--crm-border);
  background: #f6f8fa;
  box-shadow: -18px 0 38px rgba(20,31,38,.18);
}
.prospect-record-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--crm-border);
  background: #fff;
}
.prospect-record-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.prospect-record-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -.04em;
}
.prospect-record-title-row p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.prospect-record-avatar {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9d9e4;
  border-radius: 12px;
  color: #2b6f9f;
  background: #eaf4fb;
  font: 700 15px "Manrope",sans-serif;
}
.prospect-record-avatar img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.prospect-record-content {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
}
.prospect-record-card {
  padding: 16px;
  border: 1px solid var(--crm-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--crm-shadow);
}
.prospect-record-overview {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,.55fr);
  gap: 14px;
}
.record-overview-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.record-field {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: #f6f8fa;
}
.record-field-wide {
  grid-column: 1 / -1;
}
.record-field span,
.record-link-stack span,
.record-score span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.record-field strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.record-link-stack {
  display: grid;
  gap: 9px;
}
.record-link-stack > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  background: #fbfcfd;
}
.record-link-stack p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.record-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.record-inline-actions button,
.record-inline-actions a,
.record-action-grid button,
.record-action-grid a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.record-inline-actions button:hover,
.record-inline-actions a:hover,
.record-action-grid button:hover,
.record-action-grid a:hover {
  border-color: #9dbbd0;
  background: #f0f7fc;
}
.record-action-grid .primary-card-action {
  color: #fff;
  border-color: var(--crm-blue);
  background: var(--crm-blue);
}
.record-action-grid .danger-button {
  color: var(--danger);
  border-color: #efc4c4;
  background: #fff7f7;
}
.record-action-grid .danger-button:hover {
  border-color: #d88f8f;
  background: #fff0f0;
}
.record-score-card {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.record-score {
  padding: 12px;
  border-radius: 8px;
  background: #f6f8fa;
}
.record-score strong {
  display: block;
  margin-bottom: 8px;
  color: var(--crm-blue);
  font-size: 25px;
  letter-spacing: -.04em;
}
.record-score small {
  color: var(--muted);
  font-size: 11px;
}
.record-next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #c9dfef;
  background: linear-gradient(135deg,#fff,#f0f7fc);
}
.record-next-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.record-next-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.record-next-card > span {
  min-width: 128px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #285f86;
  background: #dff0fa;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.record-next-due {
  border-color: #f2d69d;
  background: linear-gradient(135deg,#fff,#fff7e6);
}
.record-next-due > span {
  color: #8d5c12;
  background: #fff0c7;
}
.record-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.record-section-heading h3 {
  margin: 0;
  font-size: 15px;
}
.record-section-heading small {
  color: var(--muted);
  font-size: 11px;
}
.record-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.record-notes-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.record-history-card .record-history-list {
  max-height: none;
  overflow: visible;
  padding-left: 20px;
}
.record-history-card .crm-timeline-item p {
  max-height: none;
  overflow: visible;
}
html.workspace-night .prospect-record-shell {
  background: #0d1b18;
}
html.workspace-night .prospect-record-header,
html.workspace-night .prospect-record-card,
html.workspace-night .record-link-stack > div,
html.workspace-night .record-inline-actions button,
html.workspace-night .record-inline-actions a,
html.workspace-night .record-action-grid button,
html.workspace-night .record-action-grid a {
  background: var(--white);
}
html.workspace-night .record-action-grid .danger-button {
  color: #ffb4b4;
  border-color: #754646;
  background: #2a1818;
}
html.workspace-night .record-action-grid .danger-button:hover {
  background: #3a2222;
}
html.workspace-night .record-field,
html.workspace-night .record-score {
  background: #142820;
}
html.workspace-night .record-next-card {
  background: linear-gradient(135deg,#10241d,#132b36);
}
.booking-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
  gap: 14px;
  margin-bottom: 14px;
}
.booking-slot-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.booking-slot-form .full-width,
.booking-slot-form .form-status,
.booking-slot-form button {
  grid-column: 1 / -1;
}
.booking-link-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #f8faf7;
}
.booking-link-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--crm-blue);
  font: 600 12px/1.5 Consolas, monospace;
}
.booking-link-card small {
  color: var(--muted);
  font-size: 11px;
}
.booking-list-panel {
  margin-top: 14px;
}
.booking-admin-list {
  display: grid;
  gap: 8px;
}
.booking-calendar-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.65fr);
  gap: 12px;
  margin-bottom: 14px;
}
.booking-location-picker,
.booking-duration-picker {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #f8faf7;
}
.booking-location-picker .overline,
.booking-duration-picker .overline {
  margin: 0;
}
.booking-location-picker div,
.booking-duration-picker div {
  display: grid;
  gap: 7px;
}
.booking-location-picker div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.booking-duration-picker div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.booking-location-picker button,
.booking-duration-picker button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--crm-border);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.booking-location-picker button:hover,
.booking-location-picker button.selected,
.booking-duration-picker button:hover,
.booking-duration-picker button.selected {
  border-color: var(--crm-blue);
  color: #fff;
  background: var(--crm-blue);
}
.booking-location-picker small,
.booking-duration-picker small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.booking-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,.55fr);
  gap: 14px;
  align-items: start;
}
.booking-calendar-stack {
  display: grid;
  gap: 14px;
}
.booking-calendar-month {
  padding: 14px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #fff;
}
.booking-calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.booking-calendar-title h3 {
  margin: 0;
  font-size: 14px;
}
.booking-calendar-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.booking-calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.booking-date-blank,
.booking-date-button {
  min-height: 42px;
}
.booking-date-button {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8b9692;
  background: transparent;
  text-align: center;
}
.booking-date-button strong {
  font-size: 13px;
  line-height: 1;
}
.booking-date-button span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.booking-date-button.available {
  cursor: pointer;
  color: var(--ink);
  border-color: #cbd8d2;
  background: #fff;
}
.booking-date-button.available:hover,
.booking-date-button.available.selected {
  border-color: var(--crm-blue);
  background: #eff6ff;
}
.booking-date-button.available.selected strong {
  color: var(--crm-blue);
}
.booking-times-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #fff;
}
.booking-times-panel h3 {
  margin: 0;
  font-size: 14px;
}
.booking-times-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.booking-admin-time-list {
  display: grid;
  gap: 8px;
}
.booking-admin-time-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #f8faf7;
}
.booking-admin-time-item strong,
.booking-admin-time-item span,
.booking-admin-time-item small {
  display: block;
}
.booking-admin-time-item strong {
  font-size: 13px;
}
.booking-admin-time-item span,
.booking-admin-time-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.booking-admin-time-item button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}
.booking-admin-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--crm-border);
  border-radius: 7px;
  background: #fff;
}
.booking-admin-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.booking-admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.booking-admin-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.booking-admin-actions a,
.booking-admin-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--crm-border);
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}
.booking-status-pill {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #245b45;
  background: #e1f1e8;
  font-size: 10px;
  font-weight: 800;
}
html.workspace-night .booking-link-card,
html.workspace-night .booking-admin-item,
html.workspace-night .booking-location-picker,
html.workspace-night .booking-duration-picker,
html.workspace-night .booking-calendar-month,
html.workspace-night .booking-times-panel,
html.workspace-night .booking-admin-time-item {
  background: var(--white);
}
@media (max-width: 900px) {
  .prospect-record-panel {
    width: min(100vw,720px);
  }
  .prospect-record-overview,
  .record-score-card {
    grid-template-columns: 1fr;
  }
  .booking-workspace-grid,
  .booking-slot-form,
  .booking-calendar-controls,
  .booking-calendar-layout {
    grid-template-columns: 1fr;
  }
  .booking-admin-item {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .prospect-record-panel {
    width: 100vw;
  }
  .prospect-record-header {
    padding: 14px;
  }
  .prospect-record-content {
    padding: 10px;
  }
  .record-overview-grid {
    grid-template-columns: 1fr;
  }
  .record-next-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .record-next-card > span {
    min-width: 0;
  }
}

/* Workspace readability controls */
:root {
  --workspace-font-scale: 1.08;
  --ink: #07110f;
  --muted: #44514d;
  --line: #ccd7d2;
  --crm-border: #cbd6de;
}
html {
  font-size: 108%;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: grayscale;
}
body {
  color: var(--ink);
  font-size: .9375rem;
}
body[data-workspace-page] h1,
body[data-workspace-page] h2,
body[data-workspace-page] h3,
.workspace-brand strong,
.panel-heading strong,
.prospect-card strong,
.pipeline-card strong,
.task-card h3,
.booking-admin-item h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}
body[data-workspace-page] h1 { font-size: 2.5rem; }
body[data-workspace-page] h2 { font-size: 1.625rem; }
body[data-workspace-page] h3 { font-size: 1.125rem; }
.workspace-brand strong,
.workspace-nav a,
.workspace-nav .inbox-nav-link {
  font-size: .8125rem;
}
.workspace-nav-heading,
.overline,
.crm-summary-card span,
.prospect-fact > span,
.task-card span,
.pipeline-column header span,
.crm-timeline-item span:not(.crm-timeline-icon),
.booking-status-pill {
  font-size: .625rem;
  font-weight: 800;
}
.header-tool-button,
.header-account-link,
.header-tool-button b,
.header-account-link b,
.primary-button,
.quiet-button,
.text-button,
.automation-switch b,
.workspace-context,
label,
input,
select,
textarea,
table th,
table td,
.crm-view-tab,
.dashboard-task-item strong,
.dashboard-task-item p,
.dashboard-task-item .complete-task-button,
.target-item div,
.prospect-detail-line,
.prospect-card p,
.prospect-card .prospect-actions button,
.prospect-card .prospect-actions a,
.prospect-fact p,
.pipeline-card p,
.pipeline-card select,
.pipeline-card-actions button,
.pipeline-card-actions a,
.crm-timeline-item p,
.crm-timeline-item time,
.timeline-message-body,
.settings-card p:not(.overline),
.settings-actions small,
.booking-admin-item p,
.booking-admin-actions a,
.booking-admin-actions button {
  font-size: .75rem;
}
.section-title p:not(.overline),
.panel-heading p:not(.overline),
.import-status,
.email-status,
.email-log-item strong,
.history-dialog .dialog-heading p:not(.overline),
.prospect-history-item > p,
.mail-person,
.mail-summary strong,
.mail-message-meta dd,
.contract-list-item strong,
.contract-document-body {
  font-size: .8125rem;
}
.message-card p,
.proposal-sheet section p,
.proposal-sheet li,
.form-status,
.form-error,
.form-notice,
.booking-link-card input {
  font-size: .875rem;
}
.workspace-main,
.workspace-main td,
.workspace-main input,
.workspace-main select,
.workspace-main textarea,
.workspace-main .panel,
.workspace-main .table-wrap,
.workspace-main .prospect-card,
.workspace-main .task-card {
  color: var(--ink);
}
.workspace-main p,
.section-title p:not(.overline),
.panel-heading p:not(.overline),
.dashboard-task-item p,
.crm-view-note,
.contacts-export-note,
.prospect-detail-line,
.prospect-card p,
.prospect-fact strong small,
.pipeline-card p,
.pipeline-empty,
.crm-timeline-item p,
.crm-timeline-item time,
.settings-card p:not(.overline),
.settings-actions small,
.booking-admin-item p {
  color: var(--muted);
}
.crm-stat-grid .stat-card strong {
  color: #17242e;
  font-size: 1.75rem;
}
.crm-summary-card strong {
  color: var(--ink);
  font-size: 1.6875rem;
}
.prospect-card h3 {
  font-size: 1.125rem;
}
.prospect-fact strong,
.record-score strong {
  font-size: 1.3125rem;
}
.pipeline-column h2 {
  font-size: .875rem;
}
.pipeline-card strong {
  font-size: .875rem;
}
.prospect-record-title-row h2 {
  font-size: 1.375rem;
}
.prospect-record-title-row p:last-child,
.record-field p,
.record-next-card p,
.record-link-stack p,
.booking-link-card p {
  color: var(--muted);
  font-size: .75rem;
}
.record-action-grid button,
.record-action-grid a,
.record-inline-actions button,
.record-inline-actions a {
  font-size: .6875rem;
}
.font-size-control {
  width: min(380px,100%);
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  background: #f7f9fa;
}
.font-size-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 0;
}
.font-size-control output {
  color: var(--crm-blue);
  font: 700 .8125rem "Manrope",sans-serif;
}
.font-size-control input[type="range"] {
  min-height: 28px;
  padding: 0;
  border: 0;
  accent-color: var(--crm-blue);
  background: transparent;
}
.font-size-scale-marks {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 800;
}
.settings-actions.display-settings {
  width: 100%;
  align-items: flex-end;
}
html.workspace-night {
  --ink: #f4f8f5;
  --muted: #c2cec9;
  --line: #3a574e;
}
html.workspace-night .font-size-control {
  background: #142820;
}
html.workspace-night .crm-stat-grid .stat-card strong,
html.workspace-night .crm-summary-card strong {
  color: var(--ink);
}
@media (max-width: 700px) {
  body[data-workspace-page] h1 { font-size: 1.9375rem; }
  body[data-workspace-page] h2 { font-size: 1.375rem; }
  .settings-actions.display-settings {
    align-items: stretch;
  }
}

/* Codex-style workspace type stack */
:root {
  --workspace-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --workspace-mono: "Cascadia Mono", "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
html,
body,
button,
input,
select,
textarea {
  font-family: var(--workspace-sans);
  font-optical-sizing: auto;
}
body[data-workspace-page],
body[data-workspace-page] h1,
body[data-workspace-page] h2,
body[data-workspace-page] h3,
body[data-workspace-page] p,
body[data-workspace-page] a,
body[data-workspace-page] button,
body[data-workspace-page] input,
body[data-workspace-page] select,
body[data-workspace-page] textarea,
body[data-workspace-page] table,
body[data-workspace-page] th,
body[data-workspace-page] td,
.workspace-brand,
.workspace-brand strong,
.workspace-nav,
.workspace-actions,
.header-tool-button,
.header-tool-button b,
.header-account-link,
.header-account-link b,
.panel,
.stat-card strong,
.crm-summary-card strong,
.dashboard-task-item strong,
.prospect-profile,
.prospect-fact strong,
.prospect-generator-heading strong,
.email-status strong,
.proposal-sheet header strong,
.mail-summary strong,
.mail-reader-empty span,
.contract-list-item strong,
.report-stat strong,
.organization-history-link,
.engagement-score b,
.stat-icon::before,
.prospect-record-avatar,
.font-size-control output {
  font-family: var(--workspace-sans) !important;
}
body[data-workspace-page] h1,
body[data-workspace-page] h2,
body[data-workspace-page] h3,
.workspace-brand strong,
.panel-heading h2,
.stat-card strong,
.crm-summary-card strong,
.prospect-card h3,
.prospect-fact strong,
.pipeline-column h2,
.pipeline-card strong,
.task-card h3,
.mail-reader-heading h2,
.report-stat strong,
.engagement-score b,
.prospect-record-title-row h2,
.booking-admin-item h3 {
  font-weight: 650;
  letter-spacing: 0;
}
.workspace-main,
.workspace-main p,
.workspace-main span,
.workspace-main small,
.workspace-main td,
.workspace-main th,
.workspace-main label,
.workspace-main input,
.workspace-main select,
.workspace-main textarea {
  font-weight: 450;
}
.workspace-nav a,
.primary-button,
.quiet-button,
.text-button,
.header-tool-button,
.header-account-link,
.crm-view-tab,
.prospect-actions button,
.prospect-actions a,
.pipeline-card-actions button,
.pipeline-card-actions a,
.record-action-grid button,
.record-action-grid a,
.booking-admin-actions button,
.booking-admin-actions a {
  font-weight: 600;
}
.overline,
.workspace-nav-heading,
th,
.crm-summary-card span,
.prospect-fact > span,
.task-card span,
.badge,
.booking-status-pill {
  font-weight: 700;
}
.contract-fields textarea,
code,
pre {
  font-family: var(--workspace-mono) !important;
}

/* Final readability polish for the command bar and prospect history. */
.workspace-header,
.workspace-header .workspace-brand,
.workspace-header .workspace-brand strong,
.workspace-header .header-tool-button,
.workspace-header .header-tool-button b,
.workspace-header .header-account-link,
.workspace-header .header-account-link b,
.workspace-header .workspace-global-search input {
  color: #fff !important;
}
.workspace-header .workspace-global-search input::placeholder {
  color: #dce4e8;
}
.workspace-header .header-account-link span {
  color: #2d3a41 !important;
}
body[data-workspace-page] .crm-timeline-item > div {
  padding: 10px 12px;
  border-radius: 6px;
}
body[data-workspace-page] .timeline-message-item > div {
  padding: 12px;
}
body[data-workspace-page] .crm-timeline-item span:not(.crm-timeline-icon) {
  color: var(--crm-blue);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
}
body[data-workspace-page] .crm-timeline-item h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
body[data-workspace-page] .crm-timeline-item p,
body[data-workspace-page] .crm-timeline-item .timeline-message-meta,
body[data-workspace-page] .crm-timeline-item .timeline-message-body {
  max-height: none;
  overflow: visible;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
body[data-workspace-page] .crm-timeline-item .timeline-message-meta {
  margin: 4px 0 8px;
}
body[data-workspace-page] .crm-timeline-item .timeline-message-body {
  padding-top: 8px;
  color: var(--ink);
  line-height: 1.55;
}
body[data-workspace-page] .crm-timeline-item time {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}

/* Keep light-mode email actions readable while clicked or temporarily disabled. */
html:not(.workspace-night) body[data-workspace-page] .primary-button,
html:not(.workspace-night) body[data-workspace-page] .primary-button:hover,
html:not(.workspace-night) body[data-workspace-page] .primary-button:active,
html:not(.workspace-night) body[data-workspace-page] .primary-button:focus-visible,
html:not(.workspace-night) body[data-workspace-page] .primary-button:disabled {
  color: #fff !important;
  border-color: var(--crm-blue) !important;
  background: var(--crm-blue) !important;
  opacity: 1;
}
html:not(.workspace-night) body[data-workspace-page] .primary-button:hover,
html:not(.workspace-night) body[data-workspace-page] .primary-button:active,
html:not(.workspace-night) body[data-workspace-page] .primary-button:focus-visible,
html:not(.workspace-night) body[data-workspace-page] .primary-button:disabled {
  background: #1f5f93 !important;
}
html:not(.workspace-night) body[data-workspace-page] .primary-button:disabled {
  cursor: wait;
}
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action,
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:hover,
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:active,
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:focus-visible {
  color: #fff !important;
  border-color: var(--crm-blue) !important;
  background: var(--crm-blue) !important;
}
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:hover,
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:active,
html:not(.workspace-night) body[data-workspace-page] .prospect-card .prospect-actions .primary-card-action:focus-visible {
  background: #1f5f93 !important;
}

/* ADJS retained features layered onto the refreshed workspace shell. */
.nav-presence-card {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  margin: 0 10px 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #dbe6ea;
  background: rgba(255,255,255,.06);
}
.workspace-presence-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: #d69b22;
  box-shadow: 0 0 0 1px #d69b22;
}
.workspace-presence.both-online .workspace-presence-dot {
  background: #35c66b;
  box-shadow: 0 0 0 1px #35c66b,0 0 0 5px rgba(53,198,107,.12);
}
.nav-presence-card p,
.nav-presence-card b {
  display: block;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-size: .6875rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}
.nav-presence-card b {
  color: #9eb1ba;
  font-weight: 500;
}
.daily-prospect-targets {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.daily-target-card {
  min-height: 170px;
}
.daily-target-card strong {
  color: var(--urgent-red);
}
.daily-target-card.target-complete {
  border-color: #acd8c2;
  background: var(--urgent-green-bg);
}
.daily-target-card.target-complete strong {
  color: var(--urgent-green);
}
.daily-target-card small {
  display: block;
}
.connect-page {
  min-height: calc(100vh - 58px);
  padding: 0;
  background: #fff!important;
}
.connect-app {
  height: calc(100vh - 58px);
  min-height: 620px;
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  overflow: hidden;
}
.connect-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #f5f2f7;
  background: #3f164f;
}
.connect-workspace-name {
  display: grid;
  gap: 10px;
  padding: 18px 17px 15px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.connect-workspace-name > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.connect-workspace-name strong {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-workspace-logo {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  color: #3f164f;
  background: #fff;
  font-size: .625rem;
  font-weight: 800;
}
.connect-sidebar .connect-status {
  width: max-content;
  padding: 4px 8px;
  border-radius: 20px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.1);
  font-size: .6875rem;
  font-weight: 700;
}
.connect-sidebar .connect-status.connected {
  color: #d9ffe5;
  background: rgba(58,190,105,.22);
}
.connect-sidebar-section {
  padding: 16px 9px 4px;
}
.connect-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 7px;
  color: rgba(255,255,255,.68);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.connect-sidebar-heading button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 18px;
  line-height: 1;
}
.connect-channel-list {
  display: grid;
  gap: 2px;
}
.connect-channel-link {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  gap: 3px;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: rgba(255,255,255,.76);
  background: transparent;
  text-align: left;
}
.connect-channel-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.connect-channel-link.active {
  color: #fff;
  background: #1264a3;
}
.connect-channel-link span {
  font-size: 18px;
}
.connect-channel-link strong {
  overflow: hidden;
  font-size: .8125rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-channel-link small {
  color: inherit;
  font-size: .5625rem;
  opacity: .7;
}
.connect-people-section {
  margin-top: auto;
  padding-bottom: 16px;
}
.connect-people {
  display: grid;
  gap: 4px;
}
.connect-person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  color: rgba(255,255,255,.76);
  font-size: .6875rem;
}
.connect-person-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}
.connect-person-dot.online {
  border-color: #35c66b;
  background: #35c66b;
}
.connect-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  background: #fff;
}
.connect-channel-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid #ddd9df;
  background: #fff;
}
.connect-channel-header h1 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #1d1c1d;
  font-size: 1.125rem;
}
.connect-channel-header p,
.connect-channel-meta {
  margin: 3px 0 0;
  color: #616061;
  font-size: .625rem;
}
.connect-messages {
  min-height: 0;
  display: block;
  overflow-y: auto;
  padding: 18px 0 22px;
  background: #fff;
}
.connect-channel-welcome {
  margin: auto 22px 20px;
  padding-top: 35px;
}
.connect-channel-welcome > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #3f164f;
  background: #eee6f1;
  font-size: 34px;
}
.connect-message,
.connect-message-mine {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 7px 22px;
}
.connect-message:hover,
.connect-message-mine:hover {
  background: #f8f8f8;
}
.connect-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #3f164f;
  font-size: .6875rem;
  font-weight: 700;
}
.connect-message-mine .connect-avatar {
  background: #1264a3;
}
.connect-message-content header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 2px;
}
.connect-message-content strong {
  color: #1d1c1d;
  font-size: .75rem;
}
.connect-message-content time {
  color: #616061;
  font-size: .5625rem;
}
.connect-message-content p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #1d1c1d;
  font-size: .75rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.connect-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.connect-attachment-card {
  max-width: min(280px,100%);
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 7px;
  border: 1px solid #ddd9df;
  border-radius: 8px;
  color: #1d1c1d;
  background: #fff;
}
.connect-attachment-card img,
.connect-file-icon {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f1f2f3;
  object-fit: cover;
}
.connect-file-icon {
  color: #616061;
  font-size: .5625rem;
  font-weight: 700;
}
.connect-attachment-card strong,
.connect-attachment-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-attachment-card small {
  color: #616061;
  font-size: .625rem;
}
.connect-composer {
  display: grid;
  gap: 7px;
  margin: 0 20px 18px;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.connect-composer textarea {
  min-height: 70px;
  padding: 11px 12px 4px;
  border: 0;
  background: transparent;
}
.connect-composer input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.connect-composer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 7px 7px 12px;
}
.connect-composer small {
  margin-right: auto;
  color: #616061;
  font-size: .5625rem;
}
.connect-attachment-name {
  max-width: 240px;
  overflow: hidden;
  color: #616061;
  font-size: .625rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connect-attach-button {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: .6875rem;
}
.connect-composer .primary-button {
  min-height: 31px;
  padding: 0 13px;
  border-radius: 5px;
  background: #007a5a;
}
#connect-channel-dialog {
  max-width: 520px;
}
html.workspace-night .nav-presence-card {
  background: rgba(255,255,255,.04);
}
html.workspace-night .connect-main,
html.workspace-night .connect-channel-header,
html.workspace-night .connect-messages,
html.workspace-night .connect-composer,
html.workspace-night .connect-attachment-card {
  background: #151515;
}
html.workspace-night .connect-channel-header,
html.workspace-night .connect-composer,
html.workspace-night .connect-attachment-card {
  border-color: #393939;
}
html.workspace-night .connect-channel-header h1,
html.workspace-night .connect-channel-welcome h2,
html.workspace-night .connect-message-content strong,
html.workspace-night .connect-message-content p,
html.workspace-night .connect-attachment-card {
  color: #f4f4f4;
}
html.workspace-night .connect-channel-header p,
html.workspace-night .connect-channel-meta,
html.workspace-night .connect-channel-welcome p,
html.workspace-night .connect-message-content time,
html.workspace-night .connect-composer small,
html.workspace-night .connect-attachment-name,
html.workspace-night .connect-attachment-card small {
  color: #aaa;
}
html.workspace-night .connect-message:hover,
html.workspace-night .connect-message-mine:hover {
  background: #222;
}
@media (max-width: 800px) {
  .daily-prospect-targets {
    grid-template-columns: 1fr;
  }
  .connect-page,
  .connect-app {
    min-height: calc(100vh - 58px);
  }
  .connect-app {
    grid-template-columns: 180px minmax(0,1fr);
  }
  .connect-workspace-logo,
  .connect-channel-header p,
  .connect-channel-meta,
  .connect-composer small {
    display: none;
  }
  .connect-composer {
    margin-left: 10px;
    margin-right: 10px;
  }
}
@media (max-width: 520px) {
  .connect-app {
    grid-template-columns: 112px minmax(0,1fr);
  }
  .connect-workspace-name strong,
  .connect-channel-link strong {
    font-size: .625rem;
  }
  .connect-people-section,
  .connect-channel-link small,
  .connect-attachment-name {
    display: none;
  }
  .connect-message,
  .connect-message-mine {
    grid-template-columns: 29px minmax(0,1fr);
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .connect-avatar {
    width: 28px;
    height: 28px;
    font-size: .5rem;
  }
  .connect-composer > div {
    justify-content: flex-end;
  }
}
