/* HubSpot Customer Success workspace (CSM setup). Scoped under .hs; re-themes shared components via tokens. */
.hs {
  --canvas: #f5f8fa; --surface: #ffffff; --surface-sunken: #f0f3f7; --line: #dfe3eb; --line-strong: #99a9ba;
  --ink: #213343; --ink-muted: #5c6c7d; --pine: #213343; --on-pine: #ffffff; --pine-wash: #eef2f7;
  --fairway: #00805c; --flag: #c9283e; --caution: #a35f00; --water: #0b67a8; --focus: #0b67a8;
  --ai: #6b45d6; --ai-ink: #4f2fb0; --ai-wash: #f3efff; --ai-line: #d9ccfb;
  --font-sans: "Lexend Deca", system-ui, sans-serif; --font-display: "Lexend Deca", system-ui, sans-serif;
  --nav: #10161c;
  position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-weight: 300;
}
.hs button { font-family: inherit; }
.hs b, .hs strong { font-weight: 500; }

/* chrome */
.hs-top { height: 52px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px; background: var(--nav); color: #dbe3ec; }
.hs-logo { display: flex; align-items: center; width: 220px; }
.hs-logo img { height: 28px; width: auto; display: block; }
.hs-logo-text { font: 500 15px/1 var(--font-sans); color: #ffffff; letter-spacing: -.01em; }
.hs-search { flex: 0 1 520px; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 14px; border: 1px solid #333f4b; border-radius: 999px; font-size: 14px; color: #c7d2de; }
.hs-search svg { width: 16px; height: 16px; order: 2; }
.hs-top-icons { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.hs-top-icons svg { width: 17px; height: 17px; }
.hs-round { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #333f4b; border-radius: 999px; }
.hs-sep { width: 1px; height: 22px; background: #2a343e; }
.hs-breeze-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #ffffff; }
.hs-breeze-btn svg { width: 16px; height: 16px; color: #c7b6ff; }
.hs-account { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #ffffff; }
.hs-account svg { width: 14px; height: 14px; }
.hs-top > .hs-sep:first-of-type { margin-left: auto; }
.hs-body { flex: 1; min-height: 0; display: flex; }
.hs-rail { width: 64px; padding-bottom: 120px; flex: none; background: var(--nav); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; color: #b6c3d1; }
.hs-rail span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.hs-rail span svg { width: 18px; height: 18px; }
.hs-rail .is-home { margin-bottom: 12px; position: relative; }
.hs-rail .is-home::after { content: ""; position: absolute; bottom: -12px; width: 28px; height: 1px; background: #2a343e; }
.hs-rail .is-active { background: #26313c; color: #ffffff; }
.hs-dots { font-size: 10px; letter-spacing: 2px; }
.hs-main { flex: 1; min-width: 0; overflow: auto; background: var(--canvas); }
.hs-app-head { background: var(--surface); padding: 28px 40px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.hs-app-head h1 { margin: 0 0 18px; font: 400 26px/32px var(--font-sans); letter-spacing: -.01em; }
.hs-app-tabs { display: flex; gap: 28px; }
.hs-app-tabs span { padding-bottom: 12px; font-size: 14px; color: var(--ink-muted); border-bottom: 2px solid transparent; }
.hs-app-tabs .is-active { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.hs-content { padding: 24px 40px 170px; max-width: 1360px; }

/* buttons */
.hs-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 400 14px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.hs-btn svg { width: 15px; height: 15px; }
.hs-btn--primary { background: var(--ink); color: #ffffff; }
.hs-btn--primary:hover { background: #33475b; }
.hs-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.hs-btn--secondary:hover { background: var(--surface-sunken); }
.hs-btn--ghost { background: transparent; color: var(--ink); }
.hs-btn--ghost:hover { background: var(--surface-sunken); }
.hs-btn--danger { background: var(--flag); color: #ffffff; }
.hs-btn--danger-ghost { background: transparent; color: var(--flag); padding-left: 12px; }
.hs-btn--danger-ghost:hover { background: #fdeef0; }
.hs-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.hs-icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.hs-icon-btn:hover { background: var(--surface-sunken); }
.hs-icon-btn svg { width: 16px; height: 16px; }
.hs :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* cards, badges */
.hs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.hs-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--font-sans); background: var(--surface-sunken); color: var(--ink-muted); }
.hs-badge--draft { background: #eaf0f6; color: #33475b; }
.hs-badge--active { background: #e5f5ef; color: #00664a; }
.hs-badge--risk { background: #fdecee; color: #b3213a; }
.hs-badge--complete { background: #f0f3f7; color: #5c6c7d; }
.hs-person { display: inline-flex; align-items: center; gap: 8px; }

/* plans list */
.hs-list-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.hs-h2 { margin: 0; font: 400 22px/28px var(--font-sans); }
.hs-sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.hs-table-card { overflow: hidden; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hs-table th { text-align: left; padding: 12px 16px; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.hs-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hs-table tbody tr:last-child td { border-bottom: 0; }
.hs-plans th:first-child, .hs-plans td:first-child { padding-left: 24px; }
.hs-plans tr.is-link { cursor: pointer; }
.hs-plans tr.is-link:hover { background: #f7f9fc; }
.hs-plans tr.is-link .hs-plan-name { color: var(--water); }
.hs-plans tr.is-sample { color: var(--ink-muted); }
.hs-plan-name { font-weight: 500; }
.hs-plan-sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.hs-progress { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted); }
.hs-bar { width: 120px; height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.hs-bar span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
/* progress fill matches the row's status badge */
.hs-bar--draft span { background: #7c98b6; }
.hs-bar--active span { background: #00a37a; }
.hs-bar--risk span { background: #e0465e; }
.hs-bar--complete span { background: #b4c1ce; }
.hs-footnote { margin: 14px 4px 0; font-size: 12px; color: var(--ink-muted); }

/* plan editor */
.hs-editor-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hs-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.hs-back svg { width: 16px; height: 16px; }
.hs-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.hs-plan { padding: 36px 40px 40px; }
.hs-plan-head { display: flex; align-items: center; gap: 12px; }
.hs-plan-title { margin: 0; font: 300 34px/42px var(--font-sans); letter-spacing: -.015em; }
.hs-meta { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 10px 0 0; font-size: 14px; }
.hs-meta div { display: flex; gap: 6px; }
.hs-meta dt { color: var(--ink-muted); }
.hs-meta dt::after { content: ":"; }
.hs-meta dd { margin: 0; }
.hs-plan-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 20px; }
.hs-plan-count { display: flex; gap: 12px; align-items: baseline; font-size: 14px; white-space: nowrap; }
.hs-plan-count span { color: var(--ink-muted); }
.hs-add-wrap { position: relative; }
.hs-add-wrap > .hs-btn svg:last-child { width: 13px; height: 13px; }
.hs-menu { position: absolute; right: 0; top: 46px; z-index: 20; width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(33, 51, 67, .14); display: grid; }
.hs-menu button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.hs-menu button:hover { background: var(--surface-sunken); }
.hs-menu svg { width: 15px; height: 15px; }

/* Breeze */
.hs-breeze { min-width: 0; display: grid; gap: 10px; }
.hs-prompt { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid transparent; background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(90deg, #7c5cff, #c04fd6 55%, #ff7a59); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 2px 10px rgba(107, 69, 214, .08); }
.hs-prompt:focus-within { box-shadow: 0 0 0 4px var(--ai-wash), 0 2px 10px rgba(107, 69, 214, .1); }
.hs-prompt-icon { width: 22px; height: auto; display: block; flex: none; }
.hs-prompt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 300 14px/20px var(--font-sans); color: var(--ink); }
.hs-prompt input::placeholder { color: var(--ink-muted); }
.hs-mic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-muted); }
.hs-mic svg { width: 15px; height: 15px; }
.hs-prompt-send { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--ink); color: #ffffff; cursor: pointer; }
.hs-prompt-send:disabled { opacity: .4; cursor: default; }
.hs-prompt-send svg { width: 16px; height: 16px; }
.hs-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-suggest button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ai-line); background: var(--ai-wash); color: var(--ai-ink); font: 400 12px/1 var(--font-sans); cursor: pointer; }
.hs-suggest button:hover { border-color: var(--ai); }
.hs-proposal { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--ai-line); background: linear-gradient(180deg, var(--ai-wash), #ffffff 70%); display: grid; gap: 12px; }
.hs-proposal.is-fresh, .hs-toast.is-fresh { animation: hs-in .2s ease; }
@keyframes hs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hs-proposal--busy { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ai-ink); overflow: hidden; position: relative; }
.hs-proposal--busy svg { width: 16px; height: 16px; color: var(--ai); animation: hs-pulse 1s ease-in-out infinite; }
.hs-shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); background-size: 200% 100%; animation: hs-shimmer 1.2s linear infinite; pointer-events: none; }
@keyframes hs-pulse { 50% { transform: scale(.8); opacity: .6; } }
@keyframes hs-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .hs-shimmer, .hs-proposal--busy svg, .hs-proposal { animation: none; } }
.hs-proposal-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hs-proposal-head svg { width: 16px; height: 16px; color: var(--ai); }
.hs-proposal-meta { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.hs-proposal-sub { margin: -4px 0 0; font-size: 13px; color: var(--ink-muted); }
.hs-diff { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ai-line); }
.hs-diff li { display: grid; grid-template-columns: minmax(0, 1.2fr) 110px minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ece6ff; font-size: 13px; }
.hs-diff-task { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-diff-field { color: var(--ink-muted); }
.hs-diff-val { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hs-diff-val s { color: var(--ink-muted); }
.hs-diff-val b { color: var(--ai-ink); font-weight: 500; }
.hs-diff-val svg { width: 13px; height: 13px; color: var(--ink-muted); }
.hs-proposal-actions { display: flex; align-items: center; gap: 8px; }
.hs-proposal-note { margin-right: auto; font-size: 12px; color: var(--ink-muted); }

/* milestones + tasks table */
.hs-milestone { margin-top: 16px; border-color: var(--line); box-shadow: 0 1px 2px rgba(33, 51, 67, .03); }
.hs-ms-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px 12px; }
.hs-ms-toggle { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--ink); }
.hs-ms-toggle:hover { background: var(--surface-sunken); }
.hs-ms-toggle svg { width: 15px; height: 15px; transition: transform .15s; }
.hs-ms-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.hs-ms-icon svg { width: 15px; height: 15px; color: var(--ink-muted); display: block; }
.hs-ms-head h3 { margin: 0; font: 400 15px/20px var(--font-sans); }
.hs-ms-count { margin-left: 12px; font-size: 13px; color: var(--ink-muted); }
.hs-tasks th { padding-top: 6px; padding-bottom: 8px; font-size: 12px; }
.hs-tasks td { padding-top: 10px; padding-bottom: 10px; }
.hs-tasks .hs-grip { width: 28px; padding-left: 12px; padding-right: 0; color: #b8c4d1; }
.hs-tasks .hs-grip svg { width: 14px; height: 14px; display: block; cursor: grab; }
.hs-tasks tr:hover .hs-grip { color: var(--ink-muted); }
.hs-tasks tbody tr { transition: background-color .15s; }
.hs-tasks tbody tr:hover { background: #fafbfd; }
.hs-tasks tr.is-proposed { background: var(--ai-wash); box-shadow: inset 3px 0 0 var(--ai); }
.hs-tasks tr.is-proposed:hover { background: var(--ai-wash); }
.hs-task { min-width: 0; }
.hs-task-name { border: 0; background: none; padding: 0; font: 400 14px/20px var(--font-sans); color: var(--ink); cursor: pointer; text-align: left; }
.hs-task-name:hover { color: var(--water); text-decoration: underline; text-underline-offset: 3px; }
.hs-tasks tr.is-done .hs-task-name { color: var(--ink-muted); }
.hs-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--surface-sunken); font-size: 12px; color: var(--ink-muted); vertical-align: 1px; }
.hs-chip svg { width: 12px; height: 12px; }
.hs-internal, .hs-new { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; vertical-align: 1px; }
.hs-internal { background: #f3efff; color: #5a3cc4; }
.hs-new { background: var(--ai); color: #ffffff; }
.hs-type span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.hs-type svg { width: 14px; height: 14px; }
.hs-actions { width: 72px; text-align: right; padding-right: 16px !important; }

/* inline controls: quiet until hover, real native pickers underneath */
.hs-status, .hs-date, .hs-assignee { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s; }
.hs-status:hover, .hs-date:hover, .hs-assignee:hover, .hs-status:focus-within, .hs-date:focus-within, .hs-assignee:focus-within { border-color: var(--line); background: var(--surface); }
.hs-status select, .hs-assignee select, .hs-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.hs-status > svg, .hs-assignee > svg { width: 12px; height: 12px; color: var(--ink-muted); opacity: 0; transition: opacity .15s; }
.hs-status:hover > svg, .hs-assignee:hover > svg { opacity: 1; }
.hs-dot { width: 8px; height: 8px; border-radius: 999px; background: #b8c4d1; }
.hs-status--in-progress .hs-dot { background: #d9a400; }
.hs-status--completed .hs-dot { background: var(--fairway); }
.hs-date svg { width: 14px; height: 14px; color: var(--ink-muted); }
.hs-date.is-overdue { color: var(--flag); }
.hs-date.is-overdue svg { color: var(--flag); }
.hs-date s, .hs-assignee s { color: var(--ink-muted); }
.hs-date.is-proposed span, .hs-assignee.is-proposed span { color: var(--ai-ink); font-weight: 500; }
.hs-date.is-proposed, .hs-assignee.is-proposed { border-color: var(--ai-line); background: var(--surface); }

/* toast */
.hs-toast { position: fixed; left: calc(50% + 32px); bottom: 96px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--ink); color: #ffffff; font-size: 14px; box-shadow: 0 10px 30px rgba(33, 51, 67, .3); }
.hs-toast > svg { width: 16px; height: 16px; color: #7ee0b8; }
.hs-toast button { border: 0; background: none; color: #ffffff; font: 500 14px/1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.hs-toast .hs-toast-x { text-decoration: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; opacity: .7; }
.hs-toast .hs-toast-x svg { width: 14px; height: 14px; }

/* dialog */
.hs .scrim { position: fixed; inset: 0; background: rgba(28, 39, 51, .45); z-index: 40; }
.hs-dialog { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); padding: 28px; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 60px rgba(28, 39, 51, .3); display: grid; gap: 18px; }
.hs-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.hs-dialog-head h2 { margin: 0; font: 400 22px/28px var(--font-sans); }
.hs-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; }
.hs-recipients { display: grid; gap: 8px; }
.hs-recipient { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); }
.hs-recipient em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-muted); }
.hs-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ai-wash); color: var(--ai-ink); font-size: 13px; }
.hs-note svg { width: 14px; height: 14px; flex: none; }

/* form fields */
.hs-field { display: grid; gap: 8px; font-size: 14px; }
.hs-field > span:first-child { font-weight: 400; color: var(--ink); }
.hs-field i { font-style: normal; color: var(--flag); }
.hs-field input, .hs-field textarea, .hs-select { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: 300 14px/20px var(--font-sans); color: var(--ink); }
.hs-field textarea { resize: vertical; }
.hs-field input:focus, .hs-field textarea:focus, .hs-select:focus-within { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--pine-wash); }
.hs-field input.is-invalid { border-color: var(--flag); box-shadow: 0 0 0 3px #fdeef0; }
.hs-field input:disabled { background: var(--surface-sunken); color: var(--ink-muted); }
.hs-select { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.hs-select select, .hs-select input { flex: 1; min-width: 0; height: 42px; border: 0 !important; outline: 0; background: transparent; font: 300 14px/20px var(--font-sans); color: var(--ink); appearance: none; -webkit-appearance: none; padding: 0; box-shadow: none !important; min-height: 0; cursor: pointer; }
.hs-select > svg { width: 14px; height: 14px; color: var(--ink-muted); flex: none; }
.hs-select > svg:last-child { pointer-events: none; }
.hs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-help { margin: 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }

/* drawer */
.hs-drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--surface); box-shadow: -20px 0 60px rgba(28, 39, 51, .18); display: flex; flex-direction: column; }
.hs-drawer.is-fresh { animation: hs-slide .22s ease; }
@keyframes hs-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 8px; }
.hs-drawer-head h2 { margin: 0; font: 400 24px/30px var(--font-sans); }
.hs-dtabs { display: flex; gap: 28px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.hs-dtabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; font: 300 14px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.hs-dtabs button[aria-selected="true"] { color: var(--ink); font-weight: 400; border-bottom-color: var(--ink); }
.hs-dtabs button:disabled { opacity: .45; cursor: default; }
.hs-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-sunken); font-size: 11px; display: inline-grid; place-items: center; color: var(--ink); }
.hs-drawer-body { flex: 1; overflow: auto; padding: 22px 28px 28px; display: grid; align-content: start; gap: 20px; }
.hs-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hs-types button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 300 14px/1 var(--font-sans); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hs-types button:hover { border-color: var(--line-strong); }
.hs-types button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 400; }
.hs-types svg { width: 16px; height: 16px; }
.hs-label-row { display: flex; align-items: center; justify-content: space-between; }
.hs-write { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid #c6b2f7; border-radius: 999px; background: var(--ai-wash); color: var(--ai-ink); font: 400 12px/1 var(--font-sans); cursor: pointer; }
.hs-write svg { width: 13px; height: 13px; }
.hs-write:disabled { cursor: default; opacity: .8; }
.hs-rich { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.hs-rich:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--pine-wash); }
.hs-rich textarea { border: 0 !important; box-shadow: none !important; border-radius: 0; min-height: 84px; }
.hs-rich.is-writing { border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-wash); }
.hs-rich.is-writing textarea { color: var(--ink-muted); }
.hs-rich-bar { display: flex; gap: 14px; padding: 8px 14px 10px; color: var(--ink-muted); }
.hs-rich-bar svg { width: 15px; height: 15px; }
.hs-config { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--line); }
.hs-config-head { display: flex; justify-content: space-between; font-size: 14px; }
.hs-config-head span { color: var(--ink-muted); font-size: 13px; }
.hs-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-fields li { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.hs-field-kind { flex: none; width: 76px; font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.hs-fields input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; font: 300 14px/20px var(--font-sans); color: var(--ink); background: transparent; }
.hs-req-tag { font-size: 11px; color: var(--flag); }
.hs-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 19px; color: var(--ink-muted); cursor: pointer; }
.hs-toggle b { color: var(--ink); }
.hs-toggle input { position: absolute; opacity: 0; }
.hs-switch { flex: none; position: relative; width: 36px; height: 20px; margin-top: 1px; border-radius: 999px; background: #cbd6e2; transition: background-color .15s; }
.hs-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.hs-toggle input:checked + .hs-switch { background: var(--ai); }
.hs-toggle input:checked + .hs-switch::after { transform: translateX(16px); }
.hs-toggle input:focus-visible + .hs-switch { outline: 2px solid var(--focus); outline-offset: 2px; }
.hs-drawer-foot { display: flex; align-items: center; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.hs-drawer-foot .ob-composer { flex: 1; }
.hs-confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--flag); }
.hs-thread { gap: 18px; }
.hs .ob-c-team { background: #fff1ec; color: #b4462a; }

/* responsive */
@media (max-width: 1180px) {
  .hs-logo { width: auto; } .hs-top-icons, .hs-top > .hs-sep { display: none; }
  .hs-content { padding: 20px 24px 120px; } .hs-plan { padding: 28px 24px; }
}
@media (max-width: 860px) { .hs-rail { display: none; } .hs-search { display: none; } }

/* prototype view switch on the HubSpot side: dark, to sit over HubSpot's rail */
.is-hubspot .view-switch { background: #1b232b; border-color: #2a343e; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-family: "Lexend Deca", system-ui, sans-serif; }
.is-hubspot .view-switch-label { color: #8b9aaa; font-family: inherit; font-weight: 500; }
.is-hubspot .view-switch button { color: #b6c3d1; }
.is-hubspot .view-switch button:hover { background: #26313c; color: #ffffff; }
.is-hubspot .view-switch button[aria-pressed="true"] { background: #ffffff; color: #213343; }
.is-hubspot .view-switch button::after { background: #ffffff; color: #213343; font-family: inherit; font-weight: 400; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }

/* floating Breeze bar (plan editor) */
.hs-float { position: fixed; z-index: 30; left: calc(50% + 32px); transform: translateX(-50%); bottom: 22px; width: min(720px, calc(100vw - 160px)); display: grid; gap: 10px; }
.hs-float .hs-prompt { height: 54px; padding-left: 18px; box-shadow: 0 12px 36px rgba(33, 51, 67, .18), 0 2px 6px rgba(33, 51, 67, .08); }
.hs-float .hs-prompt:focus-within { box-shadow: 0 0 0 4px var(--ai-wash), 0 12px 36px rgba(33, 51, 67, .18); }
.hs-float .hs-proposal { max-height: min(52vh, 460px); overflow: auto; background: linear-gradient(180deg, var(--ai-wash), #ffffff 80px); box-shadow: 0 18px 50px rgba(33, 51, 67, .2), 0 2px 6px rgba(33, 51, 67, .06); }
.hs-float .hs-proposal--busy { background: #ffffff; padding: 14px 18px; }
@media (max-width: 860px) { .hs-float, .hs-toast { left: 50%; width: calc(100vw - 32px); } }

/* horizontal scrolling: fixed minimum widths, no wrapping, pinned first column */
.hs-tasks { min-width: 980px; }
.hs-plans { min-width: 820px; }
.hs-tasks td, .hs-tasks th, .hs-plans td, .hs-plans th { white-space: nowrap; }
.hs-task-inner { display: inline-flex; align-items: center; }
.hs-task-inner .hs-chip, .hs-task-inner .hs-internal, .hs-task-inner .hs-new { flex: none; }
.hs-milestone .scroll-x-wrap::after { border-radius: 0 0 16px 0; }
/* task tables: grip + task name stay put */
.hs-tasks td.hs-grip, .hs-tasks th.hs-grip { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.hs-tasks td.hs-task, .hs-tasks th:nth-child(2) { position: sticky; left: 28px; z-index: 2; background: var(--surface); }
.hs-tasks tbody tr:hover > td.hs-grip, .hs-tasks tbody tr:hover > td.hs-task { background: #fafbfd; }
.hs-tasks tr.is-proposed > td.hs-grip, .hs-tasks tr.is-proposed > td.hs-task { background: var(--ai-wash); }
.scroll-x-wrap.has-left .hs-tasks td.hs-task, .scroll-x-wrap.has-left .hs-tasks th:nth-child(2) { box-shadow: 8px 0 10px -8px rgba(33, 51, 67, .28); }
/* plans list: plan name stays put */
.hs-plans th:first-child, .hs-plans td:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.hs-plans tr.is-link:hover td:first-child { background: #f7f9fc; }
.scroll-x-wrap.has-left .hs-plans th:first-child, .scroll-x-wrap.has-left .hs-plans td:first-child { box-shadow: 8px 0 10px -8px rgba(33, 51, 67, .28); }
.hs-tasks tr.is-proposed > td.hs-grip { box-shadow: inset 3px 0 0 var(--ai); }
.scroll-x-wrap.has-left .hs-tasks td.hs-task, .scroll-x-wrap.has-left .hs-tasks th:nth-child(2),
.scroll-x-wrap.has-left .hs-plans th:first-child, .scroll-x-wrap.has-left .hs-plans td:first-child { box-shadow: inset -1px 0 0 var(--line), 10px 0 12px -10px rgba(33, 51, 67, .35); }
.hs-tasks tr.is-proposed > td.hs-task { box-shadow: none; }
.scroll-x-wrap.has-left .hs-tasks tr.is-proposed > td.hs-task { box-shadow: inset -1px 0 0 var(--ai-line), 10px 0 12px -10px rgba(33, 51, 67, .35); }

/* inputs inside a field that already shows focus get no second ring */
:is(.mg-field, .composer, .hs-prompt, .hs-wiz-search, .ob-composer-row) :is(input, textarea):focus-visible { outline: none; }

/* Breeze bar: compact until you use it */
.hs-float { width: min(400px, calc(100vw - 160px)); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.hs-float:focus-within, .hs-float.has-proposal, .hs-float.is-busy { width: min(640px, calc(100vw - 160px)); }
.hs-float .hs-prompt { height: 46px; }
.hs-float .hs-prompt input { text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .hs-float { transition: none; } }

/* create-plan wizard */
.hs-wiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hs-steps { display: flex; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hs-steps li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.hs-steps li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-sunken); font-size: 12px; font-weight: 500; }
.hs-steps li > span svg { width: 12px; height: 12px; }
.hs-steps li.is-current { border-color: var(--ink); color: var(--ink); }
.hs-steps li.is-current > span { background: var(--ink); color: #ffffff; }
.hs-steps li.is-done > span { background: var(--fairway); color: #ffffff; }
.hs-h3 { margin: 0; font: 500 18px/24px var(--font-sans); }
.hs-wiz-section { margin-top: 28px; padding: 24px; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.hs-wiz-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hs-wiz-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-muted); }
.hs-wiz-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--pine-wash); }
.hs-wiz-search svg { width: 16px; height: 16px; flex: none; }
.hs-wiz-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 300 14px/20px var(--font-sans); color: var(--ink); }
.hs-wiz-empty { padding: 12px 0; }
.hs-cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hs-cust { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.hs-cust:hover { border-color: var(--line-strong); background: #fafbfd; }
.hs-cust.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hs-mono { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--pine-wash); color: var(--ink); font: 500 13px/1 var(--font-sans); }
.hs-mono--lg { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.hs-cust-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hs-cust-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.hs-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 300; color: var(--ink-muted); }
.hs-kind svg { width: 12px; height: 12px; }
.hs-cust-sub { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-radio { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; color: #ffffff; }
.hs-radio svg { width: 12px; height: 12px; }
.hs-cust.is-selected .hs-radio { background: var(--ink); border-color: var(--ink); }
.hs-wiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hs-wiz-2 { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.hs-describe { padding: 24px; display: grid; gap: 16px; }
.hs-describe-head { display: flex; align-items: flex-start; gap: 12px; }
.hs-ai-icon { width: 26px; height: auto; flex: none; margin-top: 2px; }
.hs-describe-text { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font: 300 14px/22px var(--font-sans); color: var(--ink); resize: vertical; }
.hs-describe-text:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--pine-wash); }
.hs-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-muted); }
.hs-try button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ai-line); border-radius: 999px; background: var(--ai-wash); color: var(--ai-ink); font: 400 12px/1 var(--font-sans); cursor: pointer; }
.hs-try button svg { width: 12px; height: 12px; }
.hs-cust-card { padding: 20px; display: grid; gap: 16px; }
.hs-kicker { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hs-cust-id { display: flex; align-items: center; gap: 12px; }
.hs-cust-dl { margin: 0; display: grid; gap: 10px; font-size: 13px; }
.hs-cust-dl dt { font-size: 12px; color: var(--ink-muted); }
.hs-cust-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.hs-tip { margin: 0; display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ai-wash); color: var(--ai-ink); font-size: 12px; line-height: 17px; }
.hs-tip svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.hs-gen { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.hs-gen li { display: flex; align-items: center; gap: 10px; }
.hs-gen li.is-done, .hs-gen li.is-active { color: var(--ink); }
.hs-gen-dot { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; color: #ffffff; }
.hs-gen-dot svg { width: 12px; height: 12px; }
.hs-gen li.is-done .hs-gen-dot { background: var(--fairway); border-color: var(--fairway); }
.hs-gen li.is-active .hs-gen-dot { border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-wash); }
.hs-ellipsis::after { content: "…"; }
.hs-gen-skeleton { display: grid; gap: 10px; }
.hs-skel-ms { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; opacity: .35; transition: opacity .4s; }
.hs-skel-ms.is-in { opacity: 1; }
.hs-skel-ms span { height: 10px; border-radius: 6px; background: var(--surface-sunken); }
.hs-skel-ms span:first-child { width: 40%; height: 12px; }
.hs-skel-ms span:nth-child(2) { width: 85%; }
.hs-skel-ms span:nth-child(3) { width: 62%; }
.hs-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 12px 12px 16px; border: 1px solid var(--ai-line); border-radius: 12px; background: var(--ai-wash); color: var(--ai-ink); font-size: 14px; }
.hs-banner > svg { width: 16px; height: 16px; flex: none; }
.hs-banner > span { flex: 1; }
.hs-banner .hs-icon-btn svg { width: 14px; height: 14px; }
/* one calm focus ring on composite fields: a darker border and a soft wash, no offset outline */
.composer:focus-within, .mg-field:focus-within { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-wash); }
