/* Same design system as the HBP portal: Libre Franklin, blue / teal / sage / charcoal, light and dark. */
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/LibreFranklin-Light.ttf) format('truetype'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/LibreFranklin-Regular.ttf) format('truetype'); }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/LibreFranklin-SemiBold.ttf) format('truetype'); }

:root { --font-sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --color-fg: #1d1d1b; --color-fg-muted: #6b6a66; --color-bg: #faf9f7; --color-panel: #ffffff; --color-border-line: #e3e1dc; --color-ok: #2f7a4a; --color-warn: #9a6a00; --color-bad: #b3362c;
  --cds-font-size-caption: 12px; --cds-font-size-body: 14px; --cds-font-size-heading: 16px; --cds-font-size-title: 28px; --cds-font-weight-medium: 600;
  --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap-md: 16px; --cds-gap-lg: 24px; --cds-gap-xl: 40px; --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-pad-lg: 20px; --cds-pad-xl: 40px; --cds-radius: 10px;
  --cds-chart-grid: #ecebe7; --cds-chart-axis: #c9c7c1; --cds-surface-popover: #ffffff; --cds-border: #e3e1dc; --cds-shadow-popover: 0 4px 16px rgba(0,0,0,.12); --cds-text-secondary: #6b6a66; --cds-dur-slow: .3s; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --color-fg: #ecebe7; --color-fg-muted: #a3a19b; --color-bg: #1b1b19; --color-panel: #252523; --color-border-line: #3a3936; --color-ok: #6cc58b; --color-warn: #e8b64a; --color-bad: #f07a6e;
  --cds-chart-grid: #33322f; --cds-chart-axis: #55534f; --cds-surface-popover: #2c2c2a; --cds-border: #3a3936; --cds-text-secondary: #a3a19b; color-scheme: dark; } }
:root[data-theme="dark"] { --color-fg: #ecebe7; --color-fg-muted: #a3a19b; --color-bg: #1b1b19; --color-panel: #252523; --color-border-line: #3a3936; --color-ok: #6cc58b; --color-warn: #e8b64a; --color-bad: #f07a6e;
  --cds-chart-grid: #33322f; --cds-chart-axis: #55534f; --cds-surface-popover: #2c2c2a; --cds-border: #3a3936; --cds-text-secondary: #a3a19b; color-scheme: dark; }
html, body { margin: 0; background: var(--color-bg); color: var(--color-fg); font-family: var(--font-sans); font-size: var(--cds-font-size-body); }
#dash-root { max-width: 2400px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 48px; }

.hb { --hb-font: "Libre Franklin", var(--font-sans); font-family: var(--hb-font); --hb-blue: #2C60A4; --hb-teal: #03A687; --hb-sage: #CCD4C9; --hb-charcoal: #3F3E44; --hb-green: #03A687; --hb-yellow: #e2b93b; --hb-orange: #e07b2f; --hb-red: #c9473d; --hb-title: color-mix(in srgb, var(--hb-blue) 72%, var(--color-fg)); }
.hb * { font-family: var(--hb-font); box-sizing: border-box; }
.hb [hidden] { display: none !important; }

/* brand mark: blue square frame, charcoal initials (the logo doubles as the home button) */
.hb-mark { width: 48px; height: 48px; flex: none; border: 4px solid var(--hb-blue); display: flex; align-items: center; justify-content: center; font-weight: 600; letter-spacing: .02em; color: var(--hb-charcoal); background: #fff; font-size: 15px; cursor: pointer; padding: 0; }
.hb-mark.lg { width: 64px; height: 64px; font-size: 20px; border-width: 5px; align-self: center; cursor: default; }
.hb-mark:focus-visible { outline: 2px solid var(--hb-teal); outline-offset: 2px; }
.hb-brand { display: flex; align-items: center; gap: var(--cds-gap-md); }
.hb-firm { font-size: var(--cds-font-size-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); }
.hb-foot { display: block; width: 100%; margin-top: var(--cds-gap-xl); padding-top: var(--cds-gap-md); border-top: 1px solid var(--color-border-line); color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); text-align: center; letter-spacing: .04em; }

/* sign in */
.hb-login { display: flex; justify-content: center; width: 100%; padding: var(--cds-pad-xl) 16px; }
.hb-login-card { margin: 0 auto; width: min(100%, 22rem); background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
.hb-login-card h2 { font-weight: 300; color: var(--hb-title); text-align: center; font-size: var(--cds-font-size-title); margin: 0; }
.hb-login-card p { text-align: center; margin: 0; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.hb-login-card label { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); display: flex; flex-direction: column; gap: var(--cds-gap-xs); }
.hb input, .hb select, .hb textarea { font: inherit; padding: var(--cds-pad-xs) var(--cds-pad-sm); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); background: var(--color-bg); color: var(--color-fg); }
.hb input:focus-visible, .hb select:focus-visible, .hb textarea:focus-visible { outline: 2px solid var(--hb-blue); outline-offset: 1px; }
.hb-btn { font: inherit; padding: var(--cds-pad-xs) var(--cds-pad-md); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); background: var(--color-bg); color: var(--color-fg); cursor: pointer; white-space: nowrap; }
.hb-btn.primary { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff; font-weight: 600; }
.hb-btn:disabled { opacity: .5; cursor: default; }
.hb .hb-btn.go:hover:not(:disabled), .hb .hb-btn.go:focus-visible { background: var(--hb-teal); border-color: var(--hb-teal); color: #fff; transition: background-color .12s, border-color .12s; }
.hb .hb-btn.danger:hover { border-color: var(--hb-red); color: var(--hb-red); }
.hb-err { color: var(--color-bad); font-size: var(--cds-font-size-caption); min-height: 1.2em; }
.hb-okmsg { color: var(--color-ok); font-size: var(--cds-font-size-caption); min-height: 1.2em; }
.hb-linkbtn { background: none; border: none; padding: 0 2px; font: inherit; font-weight: 600; color: var(--hb-title); cursor: pointer; text-decoration: underline dotted; }
.hb-linkbtn:hover { color: var(--hb-blue); }

/* page header */
.hb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--cds-gap-md); flex-wrap: wrap; }
.hb-head h1 { font-weight: 300; color: var(--hb-title); font-size: var(--cds-font-size-title); margin: 0; line-height: 1.15; }
.hb-psub { color: var(--color-fg-muted); margin: var(--cds-gap-xs) 0 0; max-width: 60rem; }
.hb-headbtns { display: flex; gap: var(--cds-gap-sm); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hb-crumb { margin: var(--cds-gap-md) 0 0; display: flex; gap: var(--cds-gap-sm); flex-wrap: wrap; align-items: center; }
.hb-theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.hb-theme-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--color-border-line); transition: background var(--cds-dur-slow); }
.hb-theme-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-panel); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left var(--cds-dur-slow); }
.hb-theme[aria-checked="true"] .hb-theme-track { background: var(--hb-blue); }
.hb-theme[aria-checked="true"] .hb-theme-knob { left: 19px; }
.hb-theme:focus-visible { outline: 2px solid var(--hb-blue); outline-offset: 2px; border-radius: 6px; }

/* cards, tiles */
.hb-card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-top: 3px solid var(--hb-blue); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); min-width: 0; }
.hb-card h3 { font-size: var(--cds-font-size-heading); font-weight: 600; color: var(--hb-title); margin: 0 0 var(--cds-gap-sm); padding-bottom: var(--cds-gap-xs); border-bottom: 1px solid var(--hb-sage); }
.hb-note { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); margin: var(--cds-gap-xs) 0 var(--cds-gap-md); }
.hb-kpis { display: grid; gap: var(--cds-gap-md); margin: var(--cds-gap-lg) 0; }
.hb-kpis-tiles { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1180px) { .hb-kpis-tiles { grid-template-columns: repeat(var(--n2, 3), minmax(0, 1fr)); } }
@media (max-width: 700px) { .hb-kpis-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .hb-kpis-tiles { grid-template-columns: minmax(0, 1fr); } }
.hb-kpis-tiles .hb-kpi { display: flex; flex-direction: column; padding: var(--cds-pad-md) var(--cds-pad-lg); }
.hb-kpi .lbl { color: var(--color-fg-muted); min-height: 2.5em; line-height: 1.25; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hb-kpi .big { font-weight: 300; color: var(--hb-title); font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; font-size: clamp(1.45rem, 0.9rem + 0.8vw, 1.95rem); }
.hb-kpi .cap { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--color-border-line); color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); line-height: 1.35; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--cds-gap-md); }
.hb-wide { grid-column: 1 / -1; }
.hb-stack { display: grid; gap: var(--cds-gap-md); }

/* landing: category and model cards */
.hb-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cds-gap-md); margin-top: var(--cds-gap-lg); }
.hb-pgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .hb-pgrid, .hb-pgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hb-pgrid, .hb-pgrid.three { grid-template-columns: 1fr; } }
.hb-prowlbl { grid-column: 1 / -1; font-size: var(--cds-font-size-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); margin-top: var(--cds-gap-xs); }
.hb-pcard { text-align: left; cursor: pointer; font: inherit; color: var(--color-fg); display: flex; flex-direction: column; gap: var(--cds-gap-sm); min-height: 9rem; border: 1px solid var(--color-border-line); border-top: 3px solid var(--hb-teal); }
.hb-pcard:hover:not(:disabled), .hb-pcard:focus-visible { border-color: var(--hb-teal); outline: none; box-shadow: 0 0 0 1px var(--hb-teal); background: color-mix(in srgb, var(--hb-teal) 10%, var(--color-panel)); }
.hb .hb-pcard:hover:not(:disabled) .chip, .hb .hb-pcard:focus-visible .chip { border-color: var(--hb-teal); background: var(--hb-teal); color: #fff; }
.hb-pcard .k { font-size: var(--cds-font-size-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); }
.hb-pcard .t { font-size: 1.2rem; color: var(--hb-title); font-weight: 600; line-height: 1.3; }
.hb-pcard .d { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); line-height: 1.45; }
.hb-pcard .chip { align-self: flex-start; margin-top: auto; font-size: var(--cds-font-size-caption); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hb-teal); color: var(--hb-teal); }
.hb-pcard.locked { border-top-color: var(--hb-sage); cursor: default; opacity: .7; }
.hb-pcard.locked .chip { border-color: var(--color-border-line); color: var(--color-fg-muted); }

/* workspace inputs */
.hb-ld-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: var(--cds-gap-md); align-items: start; }
.hb-ld-group { padding: var(--cds-pad-md) var(--cds-pad-lg); border-top-width: 1px; }
.hb-ld-group h4 { margin: 0 0 6px; color: var(--hb-title); font-size: var(--cds-font-size-body); }
.hb-ld-in { display: grid; grid-template-columns: minmax(0, 1fr) 8.75rem; gap: 8px; align-items: center; padding: 3px 0; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.hb-ld-in .hint { display: block; opacity: .8; font-size: 11px; margin-top: 1px; }
.hb-ld-in input, .hb-ld-in select { width: 100%; text-align: right; }
.hb-ld-in select { text-align: left; }
.hb-ld-in input[type=checkbox] { width: auto; justify-self: end; transform: scale(1.25); }
.hb-affix { position: relative; }
.hb-affix input { padding-right: 1.6rem; }
.hb-affix::after { content: attr(data-suffix); position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); color: var(--color-fg-muted); pointer-events: none; }
input.hb-ld-edited, select.hb-ld-edited { outline: 2px solid color-mix(in srgb, var(--hb-orange) 70%, transparent); }
.hb-in-table { margin-top: 6px; }
.hb-in-table table input, .hb-in-table table select { width: 100%; min-width: 5.2rem; text-align: right; }
.hb-in-table table input.txt { text-align: left; min-width: 10rem; }
.hb .hb-in-table td { padding: 3px 6px; }
.hb .hb-in-table tbody tr { cursor: default; }
.hb-rowdel { border: 1px solid var(--color-border-line); background: none; color: inherit; border-radius: 999px; width: 1.4rem; height: 1.4rem; line-height: 1; cursor: pointer; }
.hb-rowdel:hover { border-color: var(--hb-red); color: var(--hb-red); }
.hb-exportrow { display: flex; justify-content: space-between; align-items: center; gap: var(--cds-gap-sm); margin: var(--cds-gap-lg) 0 0; flex-wrap: wrap; }
.hb-exportrow .hb-note { margin: 0; }
.hb-sect { font-size: var(--cds-font-size-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); margin: var(--cds-gap-lg) 0 var(--cds-gap-sm); }
.hb-results.stale { opacity: .55; transition: opacity .2s; }
.hb-warnbox { margin: var(--cds-gap-md) 0 0; padding: var(--cds-pad-sm) var(--cds-pad-md); border: 1px solid var(--hb-orange); border-left-width: 3px; border-radius: 4px; color: var(--color-warn); font-size: var(--cds-font-size-caption); }
.hb-warnbox ul, .hb-notes ul { margin: 0; padding-left: 1.1rem; }
.hb-notes li { margin: 6px 0; line-height: 1.45; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }

/* tables */
.hb-tablewrap { max-height: 34rem; overflow: auto; }
.hb table { width: 100%; border-collapse: collapse; font-size: var(--cds-font-size-caption); font-variant-numeric: tabular-nums; }
.hb th { position: sticky; top: 0; background: var(--hb-blue); color: #fff; text-align: left; font-weight: 600; padding: 8px 14px; border-bottom: 1px solid var(--color-border-line); white-space: nowrap; z-index: 2; }
.hb td { padding: 7px 14px; border-bottom: 1px solid var(--color-border-line); }
.hb tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--hb-sage) 14%, var(--color-panel)); }
.hb td.num, .hb th.num { text-align: right; white-space: nowrap; }
.hb .hb-tablewrap tbody td:first-child { white-space: nowrap; position: sticky; left: 0; z-index: 1; background: var(--color-panel); }
.hb .hb-tablewrap tbody tr:nth-child(even) td:first-child { background: color-mix(in srgb, var(--hb-sage) 14%, var(--color-panel)); }
.hb .hb-tablewrap thead th:first-child { left: 0; z-index: 3; }
.hb tr.tot td { font-weight: 600; border-top: 1px solid var(--color-fg-muted); }
.hb tr.sec td { font-weight: 600; color: var(--hb-title); background: color-mix(in srgb, var(--hb-blue) 9%, var(--color-panel)) !important; }
.hb td.neg { color: var(--color-bad); }

/* charts */
.hb-chart { position: relative; }
.hb-chart svg { display: block; width: 100%; height: auto; }
.hb-chart text { fill: var(--color-fg-muted); font-size: 11px; }
.hb-legend { display: flex; gap: var(--cds-gap-md); flex-wrap: wrap; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin-top: var(--cds-gap-sm); }
.hb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hb-dot { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; flex: none; }
.hb-tip { position: absolute; pointer-events: none; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); border-radius: var(--cds-radius); box-shadow: var(--cds-shadow-popover); padding: var(--cds-pad-xs) var(--cds-pad-sm); font-size: var(--cds-font-size-caption); max-width: 16rem; z-index: 5; white-space: nowrap; }
.hb-tip b { color: var(--hb-title); }

/* admin */
.hb-tabs { display: flex; gap: var(--cds-gap-xs); border-bottom: 1px solid var(--color-border-line); margin: var(--cds-gap-lg) 0; flex-wrap: wrap; }
.hb-tabs button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--cds-pad-sm) var(--cds-pad-md); color: var(--color-fg-muted); cursor: pointer; }
.hb-tabs button[aria-selected=true] { color: var(--hb-title); border-bottom-color: var(--hb-blue); font-weight: 600; }
.hb-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--cds-gap-md); align-items: end; }
.hb-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); min-width: 0; }
.hb-form input, .hb-form select, .hb-form textarea { width: 100%; }
.hb-form .wide { grid-column: 1 / -1; }
.hb-perm { display: flex; flex-wrap: wrap; gap: 6px var(--cds-gap-md); font-size: var(--cds-font-size-caption); color: var(--color-fg); }
.hb-perm label { flex-direction: row; display: inline-flex; gap: 6px; align-items: center; color: var(--color-fg); }
.hb-perm input { width: auto; }
.hb-dl-row { display: flex; gap: var(--cds-gap-sm); align-items: center; flex-wrap: wrap; margin-top: var(--cds-gap-md); }
.hb-chip { display: inline-block; font-size: var(--cds-font-size-caption); font-weight: 600; border-radius: 999px; padding: 1px 9px; border: 1px solid currentColor; white-space: nowrap; }
.hb-chip.ok { color: var(--color-ok); } .hb-chip.bad { color: var(--color-bad); } .hb-chip.warn { color: var(--color-warn); } .hb-chip.mute { color: var(--color-fg-muted); }
.hb-users tbody tr { cursor: default; }
.hb-users .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hb-users .acts button { font: inherit; font-size: var(--cds-font-size-caption); cursor: pointer; border: 1px solid var(--color-border-line); background: var(--color-bg); color: var(--color-fg); border-radius: var(--cds-radius); padding: 3px 10px; }
.hb-users .acts button:hover { border-color: var(--hb-blue); }
.hb-users .acts button.del:hover { border-color: var(--hb-red); color: var(--hb-red); }
.hb-users tr.editor td { background: color-mix(in srgb, var(--hb-blue) 7%, var(--color-panel)) !important; white-space: normal !important; position: static !important; }
.hb-secret { margin-top: var(--cds-gap-md); padding: var(--cds-pad-md); border: 1px solid var(--hb-teal); border-radius: var(--cds-radius); background: color-mix(in srgb, var(--hb-teal) 8%, transparent); }
.hb-secret code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; padding: 4px 8px; border: 1px solid var(--color-border-line); border-radius: 6px; user-select: all; background: var(--color-panel); }
.hb-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.hb-modal .hb-login-card { width: min(100%, 24rem); }
.hb-modal h4 { margin: 0; color: var(--hb-title); font-size: var(--cds-font-size-heading); }
.hb-busy { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); padding: var(--cds-pad-lg) 0; }

.hb-logo { width: 56px; height: 56px; flex: none; padding: 3px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; display: block; }
.hb-logo img { width: 100%; height: 100%; display: block; }
.hb-logo.lg { width: 96px; height: 96px; align-self: center; cursor: default; }
.hb-logo:focus-visible { outline: 2px solid var(--hb-teal); outline-offset: 2px; }
/* dark theme: no white tile behind the logo; the purple frame is lifted so it stays readable on the dark page */
:root[data-theme="dark"] .hb-logo img { filter: brightness(1.75) saturate(.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb-logo img { filter: brightness(1.75) saturate(.8); } }

/* two-step sign-in set-up */
.hb-2s-steps { margin: 0 0 var(--cds-gap-md); padding-left: 1.2rem; display: grid; gap: var(--cds-gap-md); font-size: var(--cds-font-size-body); text-align: left; }
.hb-qr { display: block; width: 13rem; height: 13rem; margin: var(--cds-gap-sm) 0; border: 1px solid var(--color-border-line); border-radius: 6px; background: #fff; }
.hb-2s-form { display: flex; flex-direction: column; gap: var(--cds-gap-sm); max-width: 18rem; }
.hb-2s-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.hb-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; line-height: 1.7; margin: 0; padding: var(--cds-pad-md); background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: 6px; columns: 2; user-select: all; }
.hb-login-card .hb-2s p { text-align: left; }

/* drag and drop import */
.hb-drop { border: 2px dashed var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); text-align: center; cursor: pointer; margin-bottom: var(--cds-gap-md); background: var(--color-panel); transition: border-color .15s, background .15s; }
.hb-drop:hover, .hb-drop:focus-visible, .hb-drop.over { border-color: var(--hb-blue); background: color-mix(in srgb, var(--hb-blue) 8%, var(--color-panel)); outline: none; }
.hb-drop-t { font-size: 1.15rem; font-weight: 600; color: var(--hb-title); }
.hb-drop-s { margin: 4px auto 0; max-width: 46rem; }
.hb-drop.busy { opacity: .75; cursor: progress; }
.hb-import { border-top-color: var(--hb-teal); margin-bottom: var(--cds-gap-md); }
.hb-import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--cds-gap-lg); }
.hb-import h4 { margin: 0 0 6px; font-size: var(--cds-font-size-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); }
.hb-import ul { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow: auto; }
.hb-import li { padding: 6px 0; border-bottom: 1px solid var(--color-border-line); font-size: var(--cds-font-size-caption); }
.hb-import li b { color: var(--hb-title); }
.hb-import .src { display: block; color: var(--color-fg-muted); margin-top: 2px; overflow-wrap: anywhere; }
.hb-import details { margin-top: var(--cds-gap-md); font-size: var(--cds-font-size-caption); }
.hb-import summary { cursor: pointer; color: var(--hb-title); font-weight: 600; }

/* dice roll */
.hb-dice { display: flex; gap: var(--cds-gap-lg); align-items: center; margin-top: var(--cds-gap-lg); border-top-color: var(--hb-teal); }
.hb-die { font-size: 5rem; line-height: 1; color: var(--hb-title); flex: none; width: 5.2rem; text-align: center; }
.hb-die.won { color: var(--hb-teal); }
.hb-dice h3 { border-bottom: 0; padding-bottom: 0; }
.hb-dice-msg { margin: 0 0 var(--cds-gap-sm); max-width: 44rem; }

/* temporary subscribe preview */
.hb-demo-card { border-style: dashed; border-top-style: solid; border-top-color: var(--hb-orange); }
.hb-demo-card .chip { border-color: var(--hb-orange); color: var(--hb-orange); }
.hb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px var(--cds-gap-lg); margin: 0 0 var(--cds-gap-lg); padding: 0 0 var(--cds-gap-sm); border-bottom: 1px solid var(--color-border-line); font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.hb-steps li.on { color: var(--hb-title); font-weight: 600; } .hb-steps li.past { color: var(--color-ok); }
.hb-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: var(--cds-gap-md); }
.hb-seg button { font: inherit; padding: 6px 16px; border: 1px solid var(--color-border-line); border-radius: 999px; background: transparent; color: var(--color-fg); cursor: pointer; }
.hb-seg button[aria-pressed=true] { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff; font-weight: 600; }
.hb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--cds-gap-md); align-items: stretch; }
.hb-plan { text-align: left; font: inherit; color: var(--color-fg); cursor: pointer; display: flex; flex-direction: column; gap: 6px; border-top-color: var(--hb-sage); }
.hb-plan.featured { border-top-color: var(--hb-teal); }
.hb-plan.picked { border-color: var(--hb-blue); box-shadow: 0 0 0 2px var(--hb-blue); }
.hb-plan .name { font-size: 1.2rem; font-weight: 600; color: var(--hb-title); }
.hb-plan .price { font-size: 2.2rem; font-weight: 300; color: var(--hb-title); line-height: 1.1; } .hb-plan .price span { font-size: var(--cds-font-size-body); color: var(--color-fg-muted); }
.hb-plan ul { margin: var(--cds-gap-sm) 0; padding-left: 1.1rem; font-size: var(--cds-font-size-body); line-height: 1.7; flex: 1; }
.hb-plan li.no { color: var(--color-fg-muted); text-decoration: line-through; }
.hb-plan .pick { align-self: flex-start; font-size: var(--cds-font-size-caption); font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--color-border-line); }
.hb-plan.picked .pick { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff; }
.hb-due { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--cds-gap-md); padding-top: var(--cds-gap-md); border-top: 1px solid var(--color-border-line); }
.hb-due b { font-size: 1.8rem; font-weight: 300; color: var(--hb-title); }
.hb-plan .hb-chip { align-self: flex-start; }

/* policy pages */
.hb-legal-links { display: flex; gap: var(--cds-gap-md); flex-wrap: wrap; justify-content: center; margin-top: var(--cds-gap-lg); font-size: var(--cds-font-size-caption); }
.hb-legal-links a, .hb-agree a { color: var(--hb-title); text-decoration: underline dotted; }
.hb-legal-links + .hb-foot { margin-top: var(--cds-gap-sm); }
.hb-legal { max-width: 52rem; line-height: 1.6; }
.hb-legal h3 { margin-top: var(--cds-gap-lg); }
.hb-legal h3:first-child { margin-top: 0; }
.hb-legal p, .hb-legal li { font-size: var(--cds-font-size-body); margin: 0 0 var(--cds-gap-sm); }
.hb-legal ul { margin: 0 0 var(--cds-gap-md); padding-left: 1.2rem; }
.hb-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--cds-gap-md); font-size: var(--cds-font-size-caption); color: var(--color-fg); line-height: 1.5; }
.hb-agree input { margin-top: 3px; flex: none; transform: scale(1.2); }

/* help assistant */
.hb-help { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: var(--cds-gap-sm); pointer-events: none; }
.hb-help > * { pointer-events: auto; }
.hb-help-fab { font: inherit; font-weight: 600; letter-spacing: .02em; background: var(--hb-blue); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; box-shadow: var(--cds-shadow-popover); }
.hb-help-fab:hover, .hb-help-fab:focus-visible { background: var(--hb-teal); outline: none; }
.hb-help-panel { width: min(23rem, calc(100vw - 32px)); height: min(33rem, calc(100vh - 88px)); background: var(--color-panel); border: 1px solid var(--color-border-line); border-top: 3px solid var(--hb-blue); border-radius: var(--cds-radius); box-shadow: var(--cds-shadow-popover); display: flex; flex-direction: column; overflow: hidden; }
.hb-help-panel[hidden] { display: none; }
.hb-help-head { display: flex; justify-content: space-between; align-items: center; padding: var(--cds-pad-sm) var(--cds-pad-md); border-bottom: 1px solid var(--color-border-line); color: var(--hb-title); }
.hb-help-head span { display: flex; align-items: center; gap: var(--cds-gap-md); font-size: var(--cds-font-size-caption); }
.hb-help-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--color-fg-muted); cursor: pointer; padding: 0 2px; }
.hb-help-list { flex: 1; overflow-y: auto; padding: var(--cds-pad-md); display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
.hb-help-msg { max-width: 88%; padding: var(--cds-pad-sm) var(--cds-pad-md); border-radius: var(--cds-radius); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.hb-help-msg.bot { align-self: flex-start; background: color-mix(in srgb, var(--hb-sage) 35%, var(--color-panel)); }
.hb-help-msg.me { align-self: flex-end; background: var(--hb-blue); color: #fff; }
.hb-help-msg.wait { color: var(--color-fg-muted); font-style: italic; }
.hb-help-msg.bad { background: none; color: var(--color-bad); padding-left: 0; }
.hb-help-try { display: flex; flex-direction: column; align-items: flex-start; gap: var(--cds-gap-xs); }
.hb-help-try .hb-btn { white-space: normal; text-align: left; font-size: var(--cds-font-size-caption); }
.hb-help-form { display: flex; gap: var(--cds-gap-sm); align-items: flex-end; padding: var(--cds-pad-sm) var(--cds-pad-md) 0; border-top: 1px solid var(--color-border-line); }
.hb-help-form textarea { flex: 1; resize: none; min-width: 0; }
.hb-help-note { margin: 0; padding: var(--cds-pad-xs) var(--cds-pad-md) var(--cds-pad-sm); font-size: 11px; color: var(--color-fg-muted); }
@media print { .hb-help { display: none; } }
.hb-help-panel { transform-origin: bottom right; animation: hb-help-in .18s ease-out; }
@keyframes hb-help-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.hb-help-msg { animation: hb-help-in .16s ease-out; }
.hb-help-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-teal); margin-right: 8px; vertical-align: 1px; }
.hb-help-msg.dots { display: flex; gap: 5px; align-items: center; padding: 12px 14px; }
.hb-help-msg.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-fg-muted); animation: hb-help-dot 1s infinite ease-in-out; }
.hb-help-msg.dots i:nth-child(2) { animation-delay: .15s; } .hb-help-msg.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hb-help-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.hb-help-cta { align-self: stretch; padding: var(--cds-pad-sm) var(--cds-pad-md); white-space: normal; }
.hb-help-tease { display: flex; align-items: center; gap: 6px; max-width: min(19rem, calc(100vw - 32px)); background: var(--color-panel); border: 1px solid var(--color-border-line); border-left: 3px solid var(--hb-blue); border-radius: var(--cds-radius); box-shadow: var(--cds-shadow-popover); padding: var(--cds-pad-sm) var(--cds-pad-sm) var(--cds-pad-sm) var(--cds-pad-md); animation: hb-help-in .25s ease-out; }
.hb-help-tease[hidden] { display: none; }
.hb-help-teasetext { background: none; border: 0; padding: 0; font: inherit; color: var(--color-fg); text-align: left; cursor: pointer; }
.hb-help-fab.pulse { animation: hb-help-pulse 2.4s 3 ease-out 2s; }
@keyframes hb-help-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hb-blue) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) { .hb-help-panel, .hb-help-msg, .hb-help-tease, .hb-help-fab.pulse, .hb-help-msg.dots i { animation: none; } }
.hb-help-cta.hot { font-size: var(--cds-font-size-heading); padding: var(--cds-pad-md); animation: hb-help-pulse 2s 2 ease-out .6s; }
.hb-help-score { font-size: 11px; color: var(--color-fg-muted); border-top: 1px dashed var(--color-border-line); padding-top: 4px; }
.hb-help-head .hb-help-live { display: inline-block; }

.hb-chatlog { display: flex; flex-direction: column; gap: 6px; max-width: 46rem; padding: var(--cds-pad-sm) 0; }
.hb-chatlog .hb-help-msg { animation: none; }

/* welcome card, upgrade prompt, email previews */
.hb-welcome { border-top-color: var(--hb-teal); margin-bottom: var(--cds-gap-lg); }
.hb-welcome h3 { margin-top: 0; } .hb-welcome p { margin: 0 0 var(--cds-gap-md); max-width: 52rem; }
.hb-pcard.locked { cursor: pointer; }
.hb-mailpre { white-space: pre-wrap; font: inherit; font-size: var(--cds-font-size-caption); background: var(--color-bg); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-md); margin: var(--cds-gap-md) 0 0; max-width: 46rem; }
.hb-mailpre[hidden] { display: none; }

.hb-straight { margin: var(--cds-gap-md) 0 0; padding: var(--cds-pad-sm) var(--cds-pad-md); border-left: 3px solid var(--hb-teal); color: var(--color-fg); max-width: 52rem; }

/* funding offer */
.hb-fund-card { border-left: 3px solid var(--hb-teal); }
.hb-fund-card p { margin: 0 0 var(--cds-gap-sm); }
.hb-modal .hb-login-card.hb-fund { width: min(100%, 44rem); max-height: calc(100vh - 32px); overflow: auto; }
.hb-fund p, .hb-fund h5 { text-align: left; }
.hb-fund > p, .hb-fund form > p { font-size: var(--cds-font-size-body); color: var(--color-fg); }
.hb-fund p.hb-note { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.hb-fund form { display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
.hb-fund h5 { margin: var(--cds-gap-sm) 0 0; color: var(--hb-title); font-size: var(--cds-font-size-body); }
.hb-fund-rows { border-top: 1px solid var(--color-border-line); }
.hb-fund-row { display: flex; justify-content: space-between; gap: var(--cds-gap-md); padding: 6px 0; border-bottom: 1px solid var(--color-border-line); font-size: var(--cds-font-size-body); color: var(--color-fg); }
.hb-fund-row span:last-child, .hb-fund-row strong:last-child { text-align: right; white-space: nowrap; }
.hb .hb-tick { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: var(--cds-font-size-body); color: var(--color-fg); }
.hb .hb-tick input { width: auto; margin-top: 3px; flex: none; }
.hb-fund-flags { margin: 0; padding-left: 1.2rem; color: var(--color-warn); }

/* number inputs: aligned digits, a quiet $ in front of dollar amounts */
.hb input[inputmode="decimal"] { font-variant-numeric: tabular-nums; }
.hb-affix.pre input { padding-right: .6rem; padding-left: 1.5rem; }
.hb-affix.pre::after { content: none; }
.hb-affix.pre::before { content: attr(data-prefix); position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--color-fg-muted); pointer-events: none; }

.hb-fund p.hb-fund-legal { border-top: 1px solid var(--color-border-line); padding-top: var(--cds-gap-sm); line-height: 1.45; }

.hb-form .hb-affix { display: block; }

.hb-addr-list { display: flex; flex-direction: column; gap: 4px; }
.hb-addr-list[hidden] { display: none; }
.hb-addr { font: inherit; text-align: left; padding: 6px 10px; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); background: var(--color-bg); color: var(--color-fg); cursor: pointer; }
.hb-addr:hover, .hb-addr:focus-visible { border-color: var(--hb-teal); }

/* a funding request read back: titled blocks, every label on one line */
.hb-lead { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr)); gap: var(--cds-gap-md); margin-top: var(--cds-gap-md); align-items: start; }
.hb-lead[hidden] { display: none; }
.hb-lead-sec { border: 1px solid var(--color-border-line); border-top: 2px solid var(--hb-blue); border-radius: var(--cds-radius); padding: var(--cds-pad-md); background: var(--color-bg); }
.hb-lead-sec h4 { margin: 0 0 8px; color: var(--hb-title); font-size: var(--cds-font-size-body); font-weight: 600; letter-spacing: .01em; }
.hb-lead-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--cds-gap-lg, 1.25rem); padding: 7px 0; border-top: 1px solid var(--color-border-line); font-size: var(--cds-font-size-body); line-height: 1.3; }
.hb-lead-row span { color: var(--color-fg-muted); flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hb-lead-row strong { color: var(--color-fg); font-weight: 600; text-align: right; flex: 1 0 auto; max-width: 62%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hb-lead-foot { grid-column: 1 / -1; }
/* the workspace numbers: one full-width box below the others, read across in columns */
.hb-lead-sec.wide { grid-column: 1 / -1; }
.hb-lead-cols { columns: 20rem; column-gap: 2.5rem; column-rule: 1px solid var(--color-border-line); }
.hb-lead-cols .hb-lead-row { break-inside: avoid; }
.hb-lead-cols .hb-lead-row:first-child { border-top: 0; }

/* a lender's read of the deal */
.hb-read { margin: var(--cds-gap-lg) 0; }
.hb-read-head { margin: 0 0 var(--cds-gap-md); font-size: var(--cds-font-size-body); color: var(--color-fg); }
.hb-read-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--cds-gap-lg); }
.hb-read-col h4 { margin: 0 0 6px; font-size: var(--cds-font-size-body); }
.hb-read-col.ok h4 { color: var(--color-ok); } .hb-read-col.ask h4 { color: var(--color-warn); }
.hb-read-col ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 6px; font-size: var(--cds-font-size-caption); color: var(--color-fg); line-height: 1.45; }
.hb-read-col.fix h4, .hb-read-col.add h4 { color: var(--hb-title); }
.hb-read .hb-note { margin-top: var(--cds-gap-md); }
.hb-read-locked { border-left: 3px solid var(--hb-teal); }

/* every button turns the site green when pointed at; delete buttons keep their red warning */
.hb .hb-btn:hover:not(:disabled):not(.danger), .hb .hb-btn:focus-visible:not(.danger) { background: var(--hb-teal); border-color: var(--hb-teal); color: #fff; transition: background-color .12s, border-color .12s, color .12s; }
.hb .hb-linkbtn:hover, .hb .hb-linkbtn:focus-visible { color: var(--hb-teal); }
.hb .hb-plan:hover, .hb .hb-plan:focus-visible { border-color: var(--hb-teal); }
.hb .hb-plan:hover .pick { color: var(--hb-teal); }
.hb .hb-seg button:hover, .hb .hb-tabs button:hover { color: var(--hb-teal); border-color: var(--hb-teal); }
.hb .hb-pcard:hover:not(.locked) { border-color: var(--hb-teal); }
.hb .hb-help-fab:hover, .hb .hb-addr:hover { border-color: var(--hb-teal); }

/* tables: rounded, and a short table sits at its natural width instead of stretching across the page */
.hb-tablewrap { border: 1px solid var(--color-border-line); border-radius: 10px; }
.hb-tablewrap.narrow { width: fit-content; min-width: min(100%, 42rem); max-width: 100%; }
.hb-tablewrap.narrow td:not(:first-child), .hb-tablewrap.narrow th:not(:first-child) { text-align: right; padding-left: 3rem; }
.hb .hb-tablewrap tbody tr:last-child td { border-bottom: 0; }
.hb th { border-bottom: 0; }
.hb-card h3 { border-bottom-color: color-mix(in srgb, var(--hb-sage) 60%, transparent); }
.hb-plan-dice { color: var(--hb-teal); font-weight: 600; font-size: var(--cds-font-size-caption); }

/* input tables: a rounded panel at its natural width, a quiet header, columns sized to what they hold */
.hb-in-table .hb-tablewrap { width: fit-content; max-width: 100%; border-radius: 12px; max-height: none; }
.hb-in-table table { width: auto; }
.hb .hb-in-table th { position: static; background: color-mix(in srgb, var(--hb-blue) 16%, var(--color-panel)); color: var(--hb-title); font-weight: 600; font-size: var(--cds-font-size-caption); padding: 9px 10px; white-space: normal; vertical-align: bottom; line-height: 1.25; }
.hb .hb-in-table th.num { text-align: right; }
.hb .hb-in-table td { padding: 5px 6px; border-bottom: 0; background: none !important; position: static !important; }
.hb .hb-in-table tbody tr:first-child td { padding-top: 8px; } .hb .hb-in-table tbody tr:last-child td { padding-bottom: 8px; }
.hb-in-table table input { width: 9.5rem; min-width: 0; }
.hb-in-table table input.txt { width: 15rem; min-width: 0; }
.hb-in-table table select { width: auto; min-width: 9.5rem; max-width: 16rem; text-align: left; }
.hb-in-table table .hb-affix { display: block; }
.hb-in-table td:last-child, .hb-in-table th:last-child { width: 2.2rem; padding-left: 0; }
/* a single field under a table keeps its box beside its label, and a choice box is wide enough to read */
.hb-ld-group.hb-wide > .hb-ld-in { max-width: 34rem; }
.hb-ld-in:has(select) { grid-template-columns: minmax(0, 1fr) minmax(8.75rem, max-content); }
.hb-ld-in select { width: auto; max-width: 18rem; justify-self: end; }
/* input table headers cut up: one rounded label above each column, not a single bar */
.hb-in-table .hb-tablewrap { border: 0; border-radius: 0; overflow-x: auto; }
.hb-in-table table { border-collapse: separate; border-spacing: 6px 4px; margin-left: -6px; }
.hb .hb-in-table th { border-radius: 8px; padding: 7px 10px; }
.hb .hb-in-table th:last-child { background: none; }
.hb .hb-in-table td { padding: 0; }
.hb .hb-in-table tbody tr:first-child td, .hb .hb-in-table tbody tr:last-child td { padding: 0; }
.hb-in-table td:last-child { text-align: center; }
/* each box fills its column so numbers line up under their label */
.hb-in-table table input { width: 100%; min-width: 9.5rem; }
.hb-in-table table input.txt { width: 100%; min-width: 15rem; }
.hb-in-table table select { width: 100%; }
.hb-in-table table .hb-affix { display: block; min-width: 9.5rem; }
/* a table with many columns uses narrower boxes so it fits without scrolling sideways */
.hb-in-table table:has(th:nth-child(8)) input, .hb-in-table table:has(th:nth-child(8)) .hb-affix { min-width: 6.25rem; }
.hb-in-table table:has(th:nth-child(8)) input.txt { min-width: 9rem; }
.hb-ld-in select { max-width: 28rem; }
/* dark version only: the column labels on input tables are in the site green */
:root[data-theme="dark"] .hb .hb-in-table th { color: #35c9a9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb .hb-in-table th { color: #35c9a9; } }
/* a choice box under a table: the label keeps a readable width and the box sits beside it */
.hb-ld-group.hb-wide > .hb-ld-in:has(select) { max-width: 52rem; grid-template-columns: minmax(16rem, 1fr) auto; }
/* results tables: the same look as the input tables. One rounded label over each column, the table at its natural width. */
.hb-tablewrap { border: 0; border-radius: 0; width: fit-content; max-width: 100%; }
.hb-tablewrap.narrow { min-width: 0; }
.hb-tablewrap table { width: auto; border-collapse: separate; border-spacing: 0; }
.hb .hb-tablewrap th { background: color-mix(in srgb, var(--hb-blue) 16%, var(--color-panel)); background-clip: padding-box; color: var(--hb-title); border: 0; border-left: 3px solid var(--color-panel); border-right: 3px solid var(--color-panel); border-bottom: 5px solid var(--color-panel); border-radius: 11px; padding: 8px 12px; }
.hb .hb-tablewrap th:first-child { border-left-width: 0; } .hb .hb-tablewrap th:last-child { border-right-width: 0; }
.hb .hb-tablewrap th:empty { background: none; }
.hb .hb-tablewrap td { padding: 7px 15px; }
.hb .hb-tablewrap tbody tr:first-child td:first-child { border-top-left-radius: 8px; } .hb .hb-tablewrap tbody tr:first-child td:last-child { border-top-right-radius: 8px; }
.hb .hb-tablewrap tbody tr:last-child td:first-child { border-bottom-left-radius: 8px; } .hb .hb-tablewrap tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }
:root[data-theme="dark"] .hb .hb-tablewrap th { color: #35c9a9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb .hb-tablewrap th { color: #35c9a9; } }
/* the input tables keep their own spacing */
.hb .hb-in-table .hb-tablewrap th { border: 0; border-radius: 8px; }
.hb .hb-in-table .hb-tablewrap td { padding: 0; }
.hb-in-table .hb-tablewrap table { border-collapse: separate; border-spacing: 6px 4px; }

/* Deal Room */
.hb-deal-att { margin: var(--cds-gap-md) 0 var(--cds-gap-sm); font-size: var(--cds-font-size-caption); color: var(--color-fg); }
.hb-deal-reply { margin: 0; padding: var(--cds-pad-sm) var(--cds-pad-md); border-left: 3px solid var(--hb-teal); white-space: pre-wrap; }
.hb-lead-row.long { flex-direction: column; gap: 4px; } .hb-lead-row.long span { white-space: normal; } .hb-lead-row.long strong { text-align: left; max-width: none; font-weight: 400; white-space: pre-wrap; }

.hb .hb-deal-card { border-top-color: var(--hb-teal); }
