/* HR Chat scene for the product page. App rules captured from the running app (design/case-in-top-bar) on 30 Oct 2026 against this exact markup; :root/html/body map to :host inside the shadow root. */
:host { color-scheme: light; --opsyy-red: #EB001B; --opsyy-yellow: #F79E1B; --mark-dot: #CF4500; --whisper: #ADADB2; --ink: #131417; --charcoal: #26262A; --slate: #6B6B71; --granite: #55555B; --graphite: #56565B; --dust-taupe: #C9C9CE; --canvas: #F4F4F6; --canvas-lifted: #FCFCFD; --white: #FFFFFF; --surface: #FFFFFF; --soft-bone: #F1F1F3; --signal: #CF4500; --signal-light: #F37338; --clay: #9A3A0A; --link-blue: #3860BE; --ghost-1: #E9E9ED; --ghost-2: #ECECEF; --state-done: #4A7C55; --state-done-soft: #E4EDE5; --state-active: var(--ink); --state-pending: var(--dust-taupe); --cat-stat: var(--signal); --cat-stat-wash: #FCEFE8; --cat-stat-line: #F3D9CB; --cat-doc: #3860BE; --cat-doc-wash: #EDF1FB; --cat-doc-line: #D5DFF4; --cat-ppl: #3F7355; --cat-ppl-wash: #E9F1EC; --cat-ppl-line: #D2E3D8; --bubble-assistant: rgba(20, 20, 19, 0.045); --bubble-user: #E4E4E8; --bubble-hairline: rgba(20, 20, 19, 0.07); --fill-ink: #55555B; --fill-selected: var(--fill-ink); --action: #55555B; --ink-hover: #2C2C31; --on-fill: var(--canvas); --ink-fill: var(--ink); --rule-hairline: #E9E9ED; --rule-suggested: #C7C7CD; --surface-sample: #F2F2F4; --bg: var(--canvas); --bg-lifted: var(--canvas-lifted); --bg-inverse: var(--ink); --fg: var(--ink); --fg-on-inverse: var(--canvas); --fg-muted: var(--slate); --fg-whisper: var(--dust-taupe); --border-strong: var(--ink); --border-soft: rgba(20, 20, 19, 0.12); --border-divider-on-ink: rgba(255, 255, 255, 0.3); --font-sans: "Sofia Sans", "MarkForMC", Arial, sans-serif; --font-display: var(--font-sans); --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --weight-body: 450; --weight-medium: 500; --weight-bold: 700; --fs-hero: 64px; --fs-h2: 36px; --fs-h3: 24px; --fs-h4: 14px; --fs-eyebrow: 14px; --fs-body: 16px; --fs-small: 14px; --fs-micro: 12px; --lh-hero: 1.0; --lh-h2: 1.22; --lh-h3: 1.2; --lh-body: 1.4; --lh-eyebrow: 1.0; --lh-footer-link: 1.43; --ls-display: -0.02em; --ls-button: -0.03em; --ls-eyebrow: 0.04em; --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px; --section-pad-y: var(--space-7); --section-pad-y-lg: var(--space-8); --container-max: 1280px; --container-gutter: var(--space-5); --r-xs: 3px; --r-sm: 6px; --r-md: 20px; --r-consent: 24px; --r-lg: 40px; --r-circle: 50%; --r-pill: 10px; --elev-0: none; --elev-1: 0 4px 16px rgba(19, 20, 23, 0.06); --elev-2: 0 12px 34px rgba(19, 20, 23, 0.07); --elev-3: 0 40px 80px rgba(19, 20, 23, 0.16); --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); --dur-fast: 200ms; --dur-base: 300ms; --dur-slow: 500ms; }
:host([data-theme="light"]) { color-scheme: light !important; }
:host { text-size-adjust: 100%; }
:host { margin: 0px; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--weight-body); line-height: var(--lh-body); font-feature-settings: "ss01", "kern"; -webkit-font-smoothing: antialiased; text-rendering: optimizelegibility; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--weight-medium); letter-spacing: var(--ls-display); color: var(--fg); margin: 0px; text-wrap: balance; }
h1, .opsyy-hero { font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: -1.28px; }
p { margin: 0px; text-wrap: pretty; }
* { box-sizing: border-box; }
:host, :host { margin: 0px; height: 100%; }
:host { background: var(--canvas); color: var(--ink); }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; transition: grid-template-columns 200ms; }
.sidebar { background: var(--canvas-lifted); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.043)); position: sticky; top: 0px; height: 100vh; overflow: auto; min-width: 0px; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { width: 0px; height: 0px; display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 14px; }
.brand-mark { border-radius: 50%; background: radial-gradient(125% 125% at 30% 22%, rgb(72, 72, 78) 0%, rgb(30, 30, 34) 72%); box-shadow: light-dark(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.043)) 0px 0px 0px 0.5px inset, light-dark(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)) 0px -2px 4px inset; position: relative; overflow: hidden; display: inline-block; flex-shrink: 0; }
.brand .w { font: 500 23px/1 var(--font-sans); letter-spacing: -0.46px; color: var(--ink); }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section .label { font: 700 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); padding: 6px 14px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; font: 500 14.5px/1 var(--font-sans); letter-spacing: -0.3px; color: var(--granite); text-decoration: none; cursor: pointer; border: 0px; background: transparent; text-align: left; width: 100%; white-space: nowrap; outline: none; }
.nav-item > span { white-space: nowrap; }
.nav-ico { display: inline-flex; align-items: center; color: var(--granite); flex-shrink: 0; }
.nav-item:hover .nav-ico, .nav-item.active .nav-ico { color: var(--ink); }
.nav-item:hover { color: var(--ink); }
.nav-item.active { background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); box-shadow: var(--elev-1); color: var(--ink); font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 8px 8px 0px; border-top: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.067)); position: relative; }
.account-switcher { position: relative; }
.account-switcher__summary { width: 100%; display: grid; grid-template-columns: 34px minmax(0px, 1fr) auto; align-items: center; gap: 10px; padding: 10px 8px; border: 0px; border-radius: 18px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; transition: background var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard); }
.account-switcher__summary:hover, .account-switcher__summary[aria-expanded="true"] { background: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.035)); }
.account-switcher__summary:focus-visible { outline: none; box-shadow: light-dark(rgba(20, 20, 19, 0.22), rgba(255, 255, 255, 0.243)) 0px 0px 0px 2px; }
.account-switcher__identity { min-width: 0px; display: grid; gap: 3px; }
.account-switcher__identity strong { font: 500 13px/1.2 var(--font-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-switcher__identity small { font: 450 12px/1.2 var(--font-sans); color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-switcher__indicator { display: inline-flex; align-items: center; color: var(--slate); opacity: 0.55; transition: color var(--dur-fast) var(--ease-standard),
    opacity var(--dur-fast) var(--ease-standard),
    transform var(--dur-med, 240ms) var(--ease-standard); transform: rotate(180deg); }
.account-switcher__summary:hover .account-switcher__indicator { opacity: 1; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .account-switcher__indicator { transition-duration: 1ms; } }
.main { background: var(--canvas); min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 40px 0px; gap: 24px; flex-shrink: 0; }
.topbar__greet { display: flex; flex-direction: column; gap: 4px; min-width: 0px; flex: 1 1 0%; }
.topbar__greet .date { font: 700 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__greet:has(> .topbar__case:not(:empty)) > .date { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); border: 1px solid light-dark(rgb(228, 224, 219), rgb(58, 59, 61)); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; flex-shrink: 0; transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.icon-btn:hover { background: var(--canvas-lifted); border-color: light-dark(rgb(201, 201, 206), rgb(77, 78, 80)); }
@media (max-width: 760px) { .app, .app--chat { grid-template-columns: minmax(0px, 1fr); } }
@media (max-width: 760px) { .sidebar { position: fixed; inset: 0px auto 0px 0px; z-index: 100; width: min(280px, 86vw); transform: translateX(-100%); transition: transform 180ms; box-shadow: light-dark(rgba(20, 20, 19, 0.12), rgba(0, 0, 0, 0.3)) 12px 0px 30px; } }
@media (max-width: 760px) { .topbar { padding: 14px 16px 0px; gap: 12px; } }
.sidebar__toggle { margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; border: 0px; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--granite); cursor: pointer; }
.sidebar__toggle:hover { background: var(--hl-wash); color: var(--ink); }
.sidebar__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pcl { position: relative; }
:host { --ease-spring: linear(
    0, 0.0586, 0.1923, 0.3539, 0.5139, 0.6559, 0.7726, 0.8625, 0.9278,
    0.9722, 1.0002, 1.0159, 1.023, 1.0246, 1.0228, 1.0194, 1.0154, 1.0115,
    1.0081, 1.0053, 1.0031, 1.0016, 1.0006, 0.9999, 0.9996
  ); }
:host { --ease-slider: linear(
    0, 0.0441, 0.1461, 0.2729, 0.4036, 0.5259, 0.6336, 0.7244, 0.7982,
    0.8564, 0.901, 0.9344, 0.9586, 0.9757, 0.9874, 0.9951, 0.9998, 1.0025,
    1.0039, 1.0043, 1.0042, 1.0038, 1.0033
  ); --rslider-h: 46px; --rslider-knob: 34px; }
:host { --cal-accent: light-dark(#3860BE, #6F98F2); --cal-band: light-dark(rgba(56, 96, 190, 0.08), rgba(126, 163, 240, 0.144)); --cal-band-edge: light-dark(rgba(56, 96, 190, 0.16), rgba(121, 157, 233, 0.24)); }
:host { --spring-send: linear(0, .0599, .1976, .3648, .5308, .6778, .7977, .8889, .9536,
    .9959, 1.0207, 1.0327, 1.036, 1.034, 1.0291, 1.0231, 1.0171, 1.0117, 1.0074,
    1.0041, 1.0017, 1.0002, .9993, .9988, .9987, .9988); }
.send-btn { position: relative; flex: 0 0 auto; border: 0px; padding: 0px; border-radius: 12px; background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.043)); color: var(--ink); cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    transform 531ms var(--spring-send); }
.send-btn--sm { width: 34px; height: 34px; border-radius: 10px; }
.send-btn__g { display: grid; place-items: center; opacity: 0.3; transition: opacity 220ms var(--ease-standard), transform 260ms var(--ease-standard); }
.send-btn__g svg { display: block; }
.send-btn.is-live { background: var(--action); color: var(--on-fill); transform: scale(1.06); }
.send-btn.is-live .send-btn__g { opacity: 1; }
.send-btn.is-live:hover { filter: brightness(0.9); }
.send-btn:active { transform: scale(0.94); transition-duration: 90ms; }
.send-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .send-btn, .send-btn__g { transition-duration: 1ms; } }
@media (prefers-reduced-motion: reduce) { .send-btn.is-live { transform: none; } }
.row-flex { display: flex; align-items: center; gap: 10px; }
.doc-preview > .chat-head { flex-wrap: wrap; align-items: flex-start; padding: 12px 16px; gap: 10px; }
.doc-preview__identity { min-width: 0px; flex: 0 1 auto; }
.doc-preview__identity .doc-save-status { margin: 5px 0px 0px; padding: 0px; font: 450 12px/1.4 var(--font-sans); color: var(--slate); }
.doc-preview .doc-preview__actions { flex-wrap: wrap; max-width: 100%; gap: 6px; }
.doc-preview--letter > * { flex-shrink: 0; }
.chat-pane .chat-composer { padding: 12px 16px; }
.chat-pane .chat-composer__box { border-width: 1px; }
.chat-pane .chat-composer__people { gap: 6px; }
.chat-pane .ai-bubble { border-radius: 12px; box-shadow: none; }
.chat-pane { background: var(--canvas, #F4F4F6); display: flex; flex-direction: column; min-width: 0px; overflow: hidden; }
.doc-preview { background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.043)); }
.chat-head { padding: 14px 20px; border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.055)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 56px; }
.chat-body { flex: 1 1 0%; overflow: auto; padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 24px; background: var(--canvas); scrollbar-width: none; }
.chat-body::-webkit-scrollbar { width: 0px; height: 0px; display: none; }
.ai-msg { display: grid; grid-template-columns: 32px 1fr; gap: 12px; max-width: 92%; }
.ai-msg .ai-avatar { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(125% 125% at 30% 22%, rgb(72, 72, 78) 0%, rgb(30, 30, 34) 72%); box-shadow: light-dark(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.043)) 0px 0px 0px 0.5px inset, light-dark(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)) 0px -2px 4px inset; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; position: relative; overflow: hidden; }
.ai-avatar__liquid { position: absolute; inset: 0px; width: 100%; height: 100%; }
.ai-bubble { background: var(--canvas-lifted); border: 1px solid var(--rule-hairline); border-radius: 6px 20px 20px; padding: 15px 18px; box-shadow: var(--elev-1); max-width: 78ch; }
.ai-bubble--typing, .ai-bubble--thinking { background: transparent; border: 0px; box-shadow: none; padding: 6px 0px; }
.msg-stamp { font: var(--weight-medium) 10.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust-taupe); margin-bottom: 9px; }
.msg-stamp--right { text-align: right; }
.user-turn { align-self: flex-end; max-width: 78%; display: flex; flex-direction: column; align-items: flex-end; }
.user-msg { background: var(--bubble-user); border: none; color: var(--ink); padding: 12px 16px; border-radius: var(--r-md); border-top-right-radius: 6px; font: 450 14.5px/1.6 var(--font-sans); }
.options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.option { padding: 7px 13px; background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); border: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.11)); border-radius: 10px; font: 450 13px/1 var(--font-sans); color: var(--ink); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard); }
.option:hover { border-color: var(--ink); background: var(--canvas-lifted); }
.option--primary { background: var(--fill-ink); border-color: var(--fill-ink); color: var(--on-fill); }
.option--primary:hover { background: var(--ink-hover); }
.chat-composer { padding: 8px 20px 22px; background: var(--canvas, #F4F4F6); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.chat-composer__attach { flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: none; color: var(--slate); cursor: pointer; padding: 4px; transition: color var(--dur-fast); }
.chat-composer__attach:hover { color: var(--ink); }
.doc-preview { background: var(--soft-bone, #F1F1F3); }
.doc-preview .chat-head { background: var(--soft-bone, #F1F1F3); border-bottom: 1px solid var(--rule-hairline, #EEEEF1); }
.doc-preview__actions { gap: 6px; flex-shrink: 0; }
.doc-paper { flex: 1 1 0%; overflow: hidden auto; background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); padding: 40px 48px 32px; width: 100%; font: 400 14.5px/1.7 var(--font-sans); color: var(--ink); border: 1px solid var(--rule-hairline, #EEEEF1); border-radius: 14px; box-shadow: light-dark(rgba(16, 17, 20, 0.05), rgba(0, 0, 0, 0.4)) 0px 1px 2px, light-dark(rgba(19, 20, 23, 0.2), rgba(0, 0, 0, 0.6)) 0px 18px 40px -20px; max-width: min(640px, 100% - 32px); margin: 8px auto 24px; }
.doc-paper h1 { font: 600 20px/1.3 var(--font-sans); letter-spacing: -0.01em; margin: 0px 0px 18px; text-wrap: balance; }
.doc-paper p { margin: 0px 0px 13px; }
.cx-navnew { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--fill-ink); color: var(--on-fill); border-width: medium; border-style: none; border-color: currentcolor; border-image: none; font: 600 13px/1 var(--font-sans); letter-spacing: -0.24px; padding: 11px 13px; border-radius: 12px; cursor: pointer; transition: opacity var(--dur-fast) var(--ease-standard); margin: 2px 0px 6px; }
.cx-navnew:hover { opacity: 0.88; }
.cx-navsearch { display: flex; align-items: center; gap: 8px; width: 100%; background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); border: 1px solid var(--rule-hairline); border-radius: 11px; padding: 9px 11px; margin: 2px 0px; color: var(--slate); font: 450 13px/1 var(--font-sans); letter-spacing: -0.2px; cursor: text; transition: border-color var(--dur-fast) var(--ease-standard); }
.cx-navsearch:hover { border-color: light-dark(rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.243)); }
.cx-navsearch:focus-within { border-color: var(--ink); }
.cx-navsearch input { flex: 1 1 0%; min-width: 0px; background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; outline: none; padding: 0px; margin: 0px; color: var(--ink); font: inherit; letter-spacing: inherit; appearance: none; }
.cx-navsearch input::placeholder { color: var(--slate); opacity: 1; }
.cx-navsearch input::-webkit-search-cancel-button { appearance: none; display: none; }
.cx-hrow { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer; background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 8px; padding: 7px 9px; font: 450 13px/1.3 var(--font-sans); letter-spacing: -0.22px; transition: background var(--dur-fast) var(--ease-standard); }
.cx-hrow.active { background: light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.063)); }
.cx-hrow__label { flex: 1 1 0%; min-width: 0px; position: relative; overflow: hidden; mask-image: linear-gradient(90deg, rgb(0, 0, 0) calc(100% - 18px), transparent); }
.cx-hrow__label-txt { display: inline-block; white-space: nowrap; transform: translateX(0px); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .cx-hrow__label-txt { transition: none !important; transform: translateX(0px) !important; } }
.cx-hrow__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; }
.cx-hrow__dot.tone-doc { background: var(--cat-doc); }
.cx-hrow__dot.tone-none { border: 1.5px solid var(--charcoal); }
.cx-hrow__dot.tone-quiet { border: 1.5px solid light-dark(rgba(19, 20, 23, 0.34), rgba(255, 255, 255, 0.373)); }
.cx-hgroup { display: flex; flex-direction: column; gap: 1px; }
.cx-hgroup__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: var(--weight-medium) 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust-taupe); padding: 12px 9px 6px; }
.cx-hgroup__count { letter-spacing: 0.06em; color: var(--dust-taupe); }
@media (max-width: 760px) { .chat-head, .chat-head--context { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 760px) { .doc-preview .chat-head { align-items: flex-start; } }
@media (max-width: 760px) { .doc-paper { padding: 28px 24px 44px; } }
@media (max-width: 760px) { .chat-body { padding: 18px 10px 22px; gap: 18px; } }
@media (max-width: 760px) { .ai-msg { width: 100%; max-width: 100%; grid-template-columns: 28px minmax(0px, 1fr); gap: 8px; } }
@media (max-width: 760px) { .ai-msg .ai-avatar { width: 28px; height: 28px; } }
@media (max-width: 760px) { .ai-bubble { min-width: 0px; padding: 0px; } }
@media (max-width: 760px) { .user-msg { max-width: 92%; } }
@media (max-width: 760px) { .chat-composer { padding: 8px 10px 12px; } }
.ai-bubble .prose, .ch-msg__text .prose { font: 450 14.5px/1.6 var(--font-sans); color: var(--ink); }
.ai-bubble .prose > :first-child, .ch-msg__text .prose > :first-child { margin-top: 0px; }
.ai-bubble .prose > :last-child, .ch-msg__text .prose > :last-child { margin-bottom: 0px; }
.ai-bubble .prose p, .ch-msg__text .prose p { margin: 0px 0px 10px; }
.ai-bubble .prose strong, .ch-msg__text .prose strong { font-weight: 500; color: var(--ink); }
.ai-bubble .prose ul, .ch-msg__text .prose ul, .ai-bubble .prose ol, .ch-msg__text .prose ol { margin: 0px 0px 10px; padding-left: 0px; list-style: none; }
.ai-bubble .prose li, .ch-msg__text .prose li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.ai-bubble .prose ul > li::before, .ch-msg__text .prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--dust-taupe); }
.ai-bubble .prose ol, .ch-msg__text .prose ol { counter-reset: pr 0; }
.ai-bubble .prose ol > li, .ch-msg__text .prose ol > li { padding-left: 24px; counter-increment: pr 1; }
.ai-bubble .prose ol > li::before, .ch-msg__text .prose ol > li::before { content: counter(pr) "."; position: absolute; left: 2px; top: 0px; font: 500 13px/1.6 var(--font-sans); color: var(--slate); }
.ai-bubble .prose .statref, .ch-msg__text .prose .statref { display: block; margin: 12px 0px 10px; padding: 9px 12px 9px 13px; border-left: 2px solid var(--signal); background: light-dark(rgba(207, 69, 0, 0.05), rgba(228, 137, 107, 0.09)); border-radius: 0 var(--r-sm) var(--r-sm) 0; font: 450 13px/1.5 var(--font-sans); color: var(--charcoal); }
.ai-bubble .prose .statref strong, .ch-msg__text .prose .statref strong { font-weight: 500; color: var(--ink); }
.chat-body { scroll-behavior: smooth; }
.ai-bubble .ai-checks { margin: 4px 0px 14px; max-width: 64ch; }
.ai-bubble .ai-reply-text { transition: opacity 280ms var(--ease-standard); }
.cx-hrow-wrap { position: relative; }
.cx-hrow-wrap:hover .cx-hrow, .cx-hrow-wrap.menu-open .cx-hrow { padding-right: 32px; }
.cx-hrow__more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: transparent; border-radius: 8px; color: var(--slate); cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard); }
.cx-hrow__more:hover { background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.055)); color: var(--ink); }
.cx-hrow__more:focus-visible { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.ai-bubble--thinking { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ai-think__label { font: 450 13.5px/1.3 var(--font-sans); color: var(--slate); animation: ai-think-label 320ms var(--ease-standard, ease) both; }
.ai-msg .ai-avatar--thinking { background: none; box-shadow: none; overflow: visible; }
.ai-thinking-mark { position: absolute; left: -40%; top: -40%; width: 180%; height: 180%; overflow: visible; pointer-events: none; }
.ai-thinking-mark__rim { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 0.6; }
@media (prefers-reduced-motion: reduce) { .ai-think__label { animation: auto ease 0s 1 normal none running none; } }
.chat-composer__box { display: flex; flex-direction: column; background: var(--canvas-lifted, #FCFCFD); border: 1.5px solid light-dark(rgb(228, 224, 219), rgb(58, 59, 61)); border-radius: 16px; padding: 6px; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.chat-composer__box:focus-within { border-color: var(--ink); box-shadow: var(--elev-1); }
.chat-composer__bar { display: flex; align-items: flex-end; gap: 6px; padding: 2px; }
.chat-composer__box .chat-composer__attach { position: relative; flex-shrink: 0; margin-bottom: 2px; border: 0px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0px; border-radius: 10px; background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.043)); color: var(--slate); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.chat-composer__box .chat-composer__attach:hover { background: light-dark(rgba(0, 0, 0, 0.09), rgba(255, 255, 255, 0.082)); color: var(--ink); }
.chat-composer__box .chat-composer__attach:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.chat-composer__people { display: flex; align-items: center; gap: 6px; min-width: 0px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chat-composer__people::-webkit-scrollbar { display: none; }
.chat-person-chip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; min-height: 32px; padding: 0px 11px; border-radius: 10px; cursor: pointer; border: 1px solid var(--rule-hairline); background: light-dark(rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0.04)); color: var(--slate); font: 500 12.5px/1 var(--font-sans); white-space: nowrap; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.chat-person-chip:hover:not(:disabled) { color: var(--ink); border-color: var(--rule-suggested); }
.chat-person-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font: 500 11px/1 var(--font-sans); padding: 6px 11px; border-radius: 20px; }
.chat-status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentcolor; }
.chat-status--ongoing { background: light-dark(rgb(238, 246, 240), rgb(35, 35, 38)); color: light-dark(rgb(47, 122, 68), rgb(85, 159, 103)); }
.chat-headbtn { padding: 8px 13px; border: 1px solid var(--rule-hairline, #EEEEF1); border-radius: 10px; background: var(--canvas-lifted, #FCFCFD); color: var(--ink); font: 500 12.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: border-color var(--dur-fast), background var(--dur-fast); }
.chat-headbtn:hover { border-color: light-dark(rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.176)); background: light-dark(rgb(255, 255, 255), rgb(27, 28, 30)); }
.doc-lh { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-hairline, #EEEEF1); margin-bottom: 26px; }
.doc-lh__reg { margin: 0px; text-align: right; white-space: pre-line; font: 450 10.5px/1.5 var(--font-sans); color: var(--slate); }
.doc-date { margin: 0px 0px 22px; font: 450 12px/1 var(--font-sans); color: var(--slate); }
@media (max-width: 760px) { .doc-paper { padding: 28px 22px 26px; } }
@media (max-width: 760px) { .doc-lh { flex-direction: column; gap: 10px; } }
@media (max-width: 760px) { .doc-lh__reg { text-align: left; } }
.chat-case-options { position: relative; }
.chat-save-status, .doc-save-status { margin: 0px; padding: 6px 14px; font-size: 12px; flex-shrink: 0; }
.chat-shell, .chat-case-drawer, .cx-hgroup, .ch-panel { --slate: light-dark(#555963, #c6c9d2); --whisper: light-dark(#555963, #c6c9d2); --dust-taupe: light-dark(#555963, #c6c9d2); }
.chat-shell .chat-headbtn, .chat-head--topbar .chat-headbtn, .doc-preview .btn--secondary, .draft-review__actions .btn--ghost { border-color: light-dark(rgb(199, 203, 210), rgb(102, 107, 117)); box-shadow: none; border-radius: 10px; }
.chat-shell :focus-visible, .chat-head--topbar :focus-visible, .cx-hgroup :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cx-hrow__copy { flex: 1 1 0%; min-width: 0px; }
.cx-hrow__copy .cx-hrow__label { display: block; }
.cx-hrow__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-top: 4px; color: var(--slate); font: 450 11px/1.4 var(--font-sans); overflow-wrap: anywhere; }
.cx-hgroup__label, .cx-hgroup__count { font-size: 11px; }
@media (max-width: 560px) { .chat-head { flex-wrap: wrap; } }
.chat-head.chat-head--v3 { align-items: flex-start; flex-wrap: nowrap; gap: 16px; min-height: 0px; margin: 12px 16px 4px; padding: 14px 14px 14px 18px; background: var(--canvas-lifted); border: 1px solid var(--rule-hairline); border-radius: var(--r-md, 20px); box-shadow: var(--elev-1); }
.chat-h3__id { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 8px; }
.chat-h3__title { display: flex; align-items: center; gap: 10px; min-width: 0px; }
.chat-h3__name { display: block; min-width: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 17px/1.25 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.chat-h3__ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chat-h3__label { margin-right: 2px; font: 450 12.5px/1 var(--font-sans); color: var(--slate); }
.chat-h3__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0px 10px; border: 1px solid var(--rule-hairline); border-radius: 10px; background: var(--canvas); color: var(--ink); font: 500 12.5px/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.chat-h3__chip svg { color: var(--slate); flex-shrink: 0; }
.chat-h3__chip:hover:not(:disabled) { background: var(--soft-bone); border-color: var(--rule-suggested); }
.chat-h3__chip:focus-visible, .chat-h3__faces:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chat-h3__chip--ppl { padding-left: 4px; background: var(--cat-ppl-wash); border-color: var(--cat-ppl-line); }
.chat-h3__chip--ppl:hover:not(:disabled) { background: var(--cat-ppl-wash); border-color: var(--cat-ppl); }
.chat-h3__initials { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--canvas-lifted); color: var(--cat-ppl); font: 600 9.5px/1 var(--font-sans); letter-spacing: 0.02em; }
.chat-h3__chip--ppl .chat-h3__initials { background: light-dark(rgb(255, 255, 255), rgba(255, 255, 255, 0.08)); }
.chat-h3__act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chat-h3__share { display: inline-flex; align-items: center; gap: 7px; }
.chat-h3__more { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0px; }
.chat-head.chat-head--topbar { align-items: center; gap: 16px; margin: 0px; padding: 0px; background: none; border: 0px; border-radius: 0px; box-shadow: none; }
.chat-head--topbar .chat-h3__id { flex-flow: wrap; align-items: center; gap: 6px 14px; }
.chat-head--topbar .chat-h3__title { flex: 0 1 auto; min-width: min(200px, 100%); }
.chat-head--topbar .chat-h3__ctx { flex-wrap: nowrap; }
.chat-head--topbar .chat-h3__label { display: none; }
@media (max-width: 760px) { .chat-head.chat-head--v3 { gap: 8px; margin-inline: 10px; padding: 12px 10px 12px 14px; } }
@media (max-width: 760px) { .chat-h3__name { font-size: 15.5px; } }
@media (max-width: 760px) { .chat-h3__act { gap: 4px; } }
@media (max-width: 760px) { .chat-h3__share { width: 34px; height: 34px; padding: 0px; justify-content: center; font-size: 0px; gap: 0px; } }
.chat-composer__people { padding: 2px 2px 6px; }
.chat-person-chip { gap: 7px; min-height: 30px; padding: 0px 7px 0px 4px; }
.chat-person-chip__initials { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft-bone); color: var(--slate); font: 600 9.5px/1 var(--font-sans); }
.chat-person-chip__name { color: var(--ink); display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
.chat-person-add { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 30px; padding: 0px 9px; border: 0px; border-radius: 10px; background: none; color: var(--slate); font: 500 12.5px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.chat-person-add:hover:not(:disabled) { background: var(--soft-bone); color: var(--ink); }
.chat-person-add:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.doc-preview > .chat-head { position: relative; }
.chat-letters-switch { position: relative; min-width: 0px; }
.chat-letters-trigger { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 0px 0px 0px -6px; padding: 2px 6px; border: 0px; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.chat-letters-trigger:hover, .chat-letters-trigger[aria-expanded="true"] { background: var(--soft-bone); }
.chat-letters-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chat-letters-trigger svg { flex-shrink: 0; color: var(--slate); }
.chat-letters-trigger__t { min-width: 0px; }
.chat-h3__act { position: relative; }
.chat-composer__add { position: relative; flex-shrink: 0; }
@media (min-width: 761px) { .chat-pane .chat-body, .chat-pane .chat-composer { padding-inline: max(22px, 50% - 550px); } }
.doc-titlebar { display: flex; align-items: center; gap: 10px; min-width: 0px; }
.doc-titlebar__ic { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--cat-doc-wash); color: var(--cat-doc); }
.doc-titlebar__t { min-width: 0px; }
.doc-titlebar__name { margin: 0px; font: 600 14px/1.35 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.doc-preview__identity .doc-titlebar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 3px 0px 0px; padding: 0px; font: 450 12.5px/1.4 var(--font-sans); color: var(--slate); }
.doc-titlebar__pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--cat-doc-wash); color: var(--cat-doc); font: 600 11.5px/1.5 var(--font-sans); }
.doc-preview__more { width: 34px; padding: 0px; justify-content: center; }
.doc-preview--letter > .doc-float { position: sticky; bottom: 16px; z-index: 3; align-self: center; width: max-content; margin: -4px auto 16px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23, 23, 28, 0.86); backdrop-filter: blur(14px) saturate(160%); box-shadow: rgba(255, 255, 255, 0.14) 0px 1px 0px inset, rgba(0, 0, 0, 0.45) 0px 14px 30px -12px; }
.doc-float__b { display: inline-flex; align-items: center; height: 38px; padding: 0px 18px; border: 0px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.82); font: 500 14px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, transform 0.15s; }
.doc-float__b:hover:not(:disabled) { color: rgb(255, 255, 255); }
.doc-float__b--on { background: rgb(244, 244, 246); color: rgb(19, 20, 23); }
.doc-float__b--on:hover:not(:disabled) { background: rgb(255, 255, 255); color: rgb(19, 20, 23); }
.doc-float__b:active:not(:disabled) { transform: scale(0.97); }
.doc-float__b:focus-visible { outline: rgb(255, 255, 255) solid 2px; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .doc-float__b { transition: none; } }
.chat-composer__box { background: var(--surface); border-color: transparent; border-radius: 20px; padding: 10px; box-shadow: light-dark(rgba(19, 20, 23, 0.1), rgba(0, 0, 0, 0.5)) 0px 10px 30px, light-dark(rgba(19, 20, 23, 0.05), rgba(0, 0, 0, 0.3)) 0px 2px 6px; }
.chat-composer__box:focus-within { border-color: transparent; box-shadow: light-dark(rgba(19, 20, 23, 0.13), rgba(0, 0, 0, 0.6)) 0px 14px 40px, light-dark(rgba(19, 20, 23, 0.05), rgba(0, 0, 0, 0.3)) 0px 2px 6px; }
.chat-person-chip { height: 30px; min-height: 30px; padding: 0px 11px 0px 4px; gap: 7px; border: 0px; border-radius: 999px; background: var(--soft-bone); color: var(--ink); font: 500 13.5px/1 var(--font-sans); }
.chat-person-chip:hover:not(:disabled) { background: var(--hl-wash); border-color: transparent; }
.chat-person-chip__initials { background: var(--surface); }
.chat-composer__note { display: flex; align-items: center; gap: 6px; margin: 6px 0px 0px; padding: 8px 6px 0px; border-top: 1px solid var(--rule-hairline); font: 450 12.5px/1.4 var(--font-sans); color: var(--slate); }
.chat-composer__note svg { flex-shrink: 0; color: var(--slate); }
.nbell { position: relative; display: inline-flex; }
.nbell__btn { position: relative; }
.nbell__count { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--action); color: #fff; font: 600 10.5px/17px var(--font-sans); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--canvas); }
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; }
.help-fab--raised { bottom: 104px; }
.help-fab__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule-hairline); background: var(--surface); color: var(--ink); box-shadow: var(--elev-2); cursor: pointer; }
.help-fab__btn:hover { background: var(--soft-bone); }
.help-fab__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .help-fab { right: 16px; bottom: 16px; } }
@media (max-width: 760px) { .help-fab--raised { bottom: 96px; } }
.help-fab--chat-topbar { position: relative; inset: auto; }
.help-fab--chat-topbar .help-fab__btn { width: 40px; height: 40px; box-shadow: none; }
.theme-switch { --ts-h: 32px; --ts-w: 64px; position: relative; display: block; flex: 0 0 auto; width: var(--ts-w); height: var(--ts-h); padding: 0px; border: 2px solid rgb(216, 214, 224); border-radius: 999px; background: none; cursor: pointer; box-sizing: border-box; transition: border-color 150ms var(--ease-standard); }
.theme-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-switch__track { position: absolute; inset: 0px; border-radius: 999px; background: rgb(255, 255, 255); transition: background-color 400ms cubic-bezier(0, 0, 0.58, 1); }
.theme-switch__knob { position: absolute; left: -2px; top: -2px; z-index: 1; width: var(--ts-h); height: var(--ts-h); box-sizing: border-box; border: 2px solid rgb(216, 214, 224); border-radius: 999px; background: rgb(243, 242, 247); transform: translateX(0px); transition: transform 0.65s linear(0, 0.0307, 0.1094, 0.2182, 0.3423, 0.4703, 0.5937, 0.7065, 0.8052, 0.8878, 0.954, 1.0045, 1.0408, 1.0646, 1.078, 1.0832, 1.0821, 1.0765, 1.068, 1.0579, 1.0472, 1.0368, 1.027, 1.0185, 1.0112, 1.0053, 1.0007, 0.9973, 0.9951, 0.9937, 0.9931, 0.9931, 0.9935, 0.9941, 0.9949, 0.9958, 0.9967, 0.9975, 0.9983, 0.9989, 1),
    background-color 400ms cubic-bezier(0, 0, 0.58, 1),
    border-color 150ms var(--ease-standard); }
.theme-switch__slot { position: absolute; top: -2px; z-index: 2; width: var(--ts-h); height: var(--ts-h); display: grid; place-items: center; }
.theme-switch__slot--sun { left: -2px; color: rgb(104, 103, 113); transform: rotate(0deg); transition: transform 2.29s linear(0 0%, 0.0272 2.5%, 0.0908 5%, 0.1718 7.5%, 0.2586 10%, 0.3444 12.5%, 0.4253 15%, 0.4995 17.5%, 0.5662 20%, 0.6254 22.5%, 0.6773 25%, 0.7227 27.5%, 0.762 30%, 0.796 32.5%, 0.8253 35%, 0.8505 37.5%, 0.8722 40%, 0.8907 42.5%, 0.9066 45%, 0.9202 47.5%, 0.9318 50%, 0.9418 52.5%, 0.9503 55%, 0.9575 57.5%, 0.9637 60%, 0.969 62.5%, 0.9736 65%, 0.9774 67.5%, 0.9807 70%, 0.9836 72.5%, 0.986 75%, 0.988 77.5%, 0.9898 80%, 0.9913 82.5%, 0.9925 85%, 0.9936 87.5%, 0.9946 90%, 0.9954 92.5%, 0.996 95%, 0.9966 97.5%, 1 100%); }
.theme-switch__slot--moon { right: -2px; color: rgb(171, 171, 180); transform: rotate(15deg); transition: transform 3.7s linear(0 0%, 0.0573 2.5%, 0.1622 5%, 0.2702 7.5%, 0.3689 10%, 0.4556 12.5%, 0.5309 15%, 0.5959 17.5%, 0.6519 20%, 0.7002 22.5%, 0.7418 25%, 0.7776 27.5%, 0.8085 30%, 0.8351 32.5%, 0.8579 35%, 0.8777 37.5%, 0.8946 40%, 0.9092 42.5%, 0.9218 45%, 0.9327 47.5%, 0.942 50%, 0.9501 52.5%, 0.957 55%, 0.963 57.5%, 0.9681 60%, 0.9725 62.5%, 0.9763 65%, 0.9796 67.5%, 0.9825 70%, 0.9849 72.5%, 0.987 75%, 0.9888 77.5%, 0.9903 80%, 0.9917 82.5%, 0.9928 85%, 0.9938 87.5%, 0.9947 90%, 0.9954 92.5%, 0.9961 95%, 0.9966 97.5%, 1 100%); }
.theme-switch__ico { width: 14.4px; height: 14.4px; }
.topbar__actions { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .theme-switch, .theme-switch__track, .theme-switch__knob, .theme-switch__slot, .ap-theme, .as-theme__seg button { transition: none; } }
:host { --hl-wash: light-dark(#e9e9ec, #36373d); --hl-gap: 5px; }
:host([data-input="keys"]) [role="menu"] :is([role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus { box-shadow: inset 0 0 0 2px var(--ink); }
:host(:not([data-input="keys"])) :where(.settings-nav button, .nav-item, .cx-hrow, .ch-row, .sys-row--clickable, .emp-lrow--body, .dept-list-row, .doc-wf-row, .nbell__item, .ph-mini__row, .cd-row__head, .acard__head, .blx-rules summary):not(.active, .is-selected, [aria-current="page"], .home-v3 *):hover, :host(:not([data-input="pointer"])) :where(.settings-nav button, .nav-item, .cx-hrow, .ch-row, .sys-row--clickable, .emp-lrow--body, .dept-list-row, .doc-wf-row, .nbell__item, .ph-mini__row, .cd-row__head, .acard__head, .blx-rules summary):not(.active, .is-selected, [aria-current="page"], .home-v3 *):focus-visible { background: var(--hl-wash); border-color: transparent; border-radius: var(--hl-radius, 10px); box-shadow: inset 0 0 0 var(--hl-gap) var(--hl-frame, transparent); background-clip: padding-box; }
:host(:not([data-input="pointer"])) :where(.settings-nav button, .nav-item, .cx-hrow, .ch-row, .sys-row--clickable, .emp-lrow--body, .dept-list-row, .doc-wf-row, .nbell__item, .ph-mini__row, .cd-row__head, .acard__head, .blx-rules summary, .intake-row--editable):focus-visible { outline: none; border-color: transparent; border-radius: var(--hl-radius, 10px); box-shadow: inset 0 0 0 var(--hl-gap) var(--hl-frame, transparent), inset 0 0 0 calc(var(--hl-gap) + 2px) var(--ink); background-clip: padding-box; }
:host(:not([data-input="keys"])) .settings-nav button:hover .settings-nav__ic, .settings-nav button:focus-visible .settings-nav__ic, .nav-item:focus-visible .nav-ico { color: var(--ink); }
.doc-preview .chat-head { flex-direction: column; align-items: flex-start; height: auto; gap: 10px; }
.doc-preview .doc-preview__actions { flex-wrap: wrap; flex-shrink: 1; justify-content: flex-start; width: 100%; }
.doc-preview { overflow-y: auto; }
.document-review :is(button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--link-blue); outline-offset: 3px; }
@keyframes ai-think-label { 
  0% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0px); }
}
/* the living mark, copied from the app's chat.css: the page's own mark styles cannot reach into this shadow root */
.ai-avatar__liquid, .brand-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the build drops the template's michael-inline.css link, so its two rules live here */
.michael-inline-3 { position: absolute; } .michael-inline-4 { width: 30px; height: 30px; }
.lb1 { fill: #EB001B; } .lb2 { fill: #F79E1B; } .lb3 { fill: #F4F4F6; }
.lb-orbit--1 { animation: opsyy-lb1 5.5s ease-in-out infinite; }
.lb-orbit--2 { animation: opsyy-lb2 6.3s ease-in-out infinite; }
.lb-orbit--3 { animation: opsyy-lb3 4.9s ease-in-out infinite; }
@keyframes opsyy-lb1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, 10px); } }
@keyframes opsyy-lb2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, 12px); } }
@keyframes opsyy-lb3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -14px); } }
.is-gathering .lb-orbit { animation-play-state: paused; }
.is-gathering .lb { animation: 1931ms ease 0s 1 normal both running opsyy-gather; }
@keyframes opsyy-gather {
  0% { transform: translate(0px, 0px); animation-timing-function: linear(0 0%, 0.0558 3.8%, 0.1854 7.7%, 0.3451 11.5%, 0.5062 15.4%, 0.6515 19.2%, 0.7726 23.1%, 0.8671 26.9%, 0.9363 30.8%, 0.9835 34.6%, 1.0129 38.5%, 1.0289 42.3%, 1.0353 46.2%, 1.0355 50%, 1.0319 53.8%, 1.0266 57.7%, 1.0207 61.5%, 1.0151 65.4%, 1.0103 69.2%, 1.0064 73.1%, 1.0035 76.9%, 1.0014 80.8%, 1 84.6%, 0.9992 88.5%, 0.9988 92.3%, 0.9987 96.2%, 0.9988 100%); }
  27.5% { transform: translate(var(--gx), var(--gy)); animation-timing-function: linear; }
  58.57% { transform: translate(var(--gx), var(--gy)); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  100% { transform: translate(0px, 0px); }
}
@media (prefers-reduced-motion: reduce) {
  .is-gathering .lb { animation: auto ease 0s 1 normal none running none; }
  .lb-orbit--1, .lb-orbit--2, .lb-orbit--3 { animation: none; }
}
.j-eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }












.j-pin { position: relative; height: 760vh; }
/* Home's teaser (6 Nov 2026): the first two steps only, over a shorter scroll, one case. */
:host([data-teaser]) .j-pin { height: 230vh; }
:host([data-teaser]) .j-mode { display: none; }
.j-stage { position: sticky; top: var(--j-bar, 0px); height: calc(100vh - var(--j-bar, 0px)); height: calc(100svh - var(--j-bar, 0px)); overflow: hidden; }
.j-cap { position: absolute; left: 0; right: 0; top: 0; text-align: center; padding: 22px 16px 0; }
.j-cap small { font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.j-cap b { display: block; font: 500 26px/1.15 var(--font-sans); letter-spacing: -.015em; color: var(--ink); margin: 6px 0 4px; }
.j-cap span { display: block; font: 450 14.5px/1.4 var(--font-sans); color: var(--slate); }
.j-cap .dots { display: inline-flex; gap: 6px; margin-top: 10px; }
.j-cap .dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--border-soft); transition: background .3s; }
.j-cap .dots i.on { background: var(--ink); }
.j-mode { position: absolute; z-index: 6; right: max(16px, env(safe-area-inset-right, 0px)); top: 18px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--white); border: 1px solid var(--border-soft); box-shadow: var(--elev-1); }
@media (max-width: 819px) { .j-mode { position: static; margin: 10px auto 0; box-shadow: none; } .j-cap b { font-size: 21px; } }
.j-mode button { font: 500 13px var(--font-sans); border: 0; background: none; color: var(--slate); border-radius: 9px; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.j-mode button[aria-pressed="true"] { background: var(--soft-bone); color: var(--ink); }
.j-mode button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.j-scene { position: absolute; left: 50%; top: 0; transform-origin: 0 0; }
.j-scene.wide { width: 1440px; height: 840px; }
.j-scene.tall { width: 400px; height: 780px; }
.frame { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--canvas); box-shadow: 0 30px 70px rgb(19 20 23 / .16), 0 0 0 1px var(--border-soft); }
.frame .sidebar { position: absolute !important; left: 0; top: 0; bottom: 0; width: 260px; height: auto !important; transform: none !important; }
.fmain { position: absolute; left: 260px; right: 0; top: 0; bottom: 0; padding: 0 30px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.fmain .topbar { padding: 22px 0 0; }
.fshell { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.fshell > .chat-pane { min-height: 0; display: flex; flex-direction: column; }
.fshell > .chat-pane .chat-body { flex: 1; overflow: hidden; }
.fpane { position: relative; min-height: 0; }
.fpane .doc-preview { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.fpane .doc-preview .j-body { flex: 1; overflow: hidden; padding: 18px; }
.fpane .doc-preview .doc-paper { margin: 0; }
.j-scene.tall .frame .sidebar, .j-scene.tall .topbar__actions { display: none; }
.j-scene.tall .fmain { left: 0; padding: 12px; }
.j-scene.tall .fshell { grid-template-columns: minmax(0, 1fr); }
.j-scene.tall .fpane { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 520px; z-index: 4; }
.j-scene.tall .fpane .doc-preview .j-body { padding: 10px; }
.j-scene.tall .doc-paper.j-prep { padding: 16px 16px 10px; }
.j-scene.tall .j-prep ol { gap: 4px; margin-bottom: 8px; }
.j-scene.tall .j-prep li { font-size: 12.5px; line-height: 1.4; }
.j-scene.tall .j-ready .pcl__row { padding: 5px 0; }
.j-scene.tall .fpane .doc-preview { box-shadow: 0 -12px 40px rgb(19 20 23 / .2); }


.j-typed { min-height: 48px; padding: 12px 4px 4px; font: 450 15px/1.5 var(--font-sans); color: var(--ink); }
.j-typed.ph { color: var(--slate); }
.j-caret { display: inline-block; width: 1.5px; height: 17px; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: jblink 1s steps(1) infinite; }
@keyframes jblink { 50% { opacity: 0; } }
.j-lit { border-radius: 3px; transition: background .3s, box-shadow .3s; }
.j-lit.on { background: var(--cat-doc-soft, #edf1fb); box-shadow: inset 0 -1.5px 0 var(--cat-doc, #3860BE); }


.pcl { position: relative; }
.pcl__head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; height: 44px; padding: 0 14px 0 16px;
  border-radius: 999px; background: var(--soft-bone); border: 1px solid var(--border-soft); font: var(--weight-body) 14.5px/1.3 var(--font-sans); color: var(--ink); }
.pcl__segs { display: flex; gap: 4px; flex: none; }
.pcl__seg { width: 18px; height: 6px; border-radius: 3px; background: var(--border-soft); transition: background-color 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard); }
.pcl__seg.is-pending { background: var(--slate); animation: pcl-pulse 700ms ease-in-out infinite alternate; }
.pcl__seg.is-done { background: var(--state-done); }
.pcl__seg.is-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--slate); }
.pcl__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pcl-swap 260ms var(--ease-standard) both; }
.pcl__meta { flex: none; font-size: 13.5px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcl__chev { width: 16px; height: 16px; flex: none; color: var(--slate); transition: transform 260ms var(--ease-standard), opacity 200ms; }
.pcl.is-running .pcl__chev { opacity: 0; }
.pcl.is-open .pcl__chev { transform: rotate(180deg); }
.pcl__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-standard); }
.pcl.is-open .pcl__body { grid-template-rows: 1fr; }
.pcl__inner { overflow: hidden; min-height: 0; padding: 0 16px; }
.pcl.is-open .pcl__inner { padding-top: 6px; }
.pcl__row { display: grid; grid-template-columns: 18px minmax(0, 15em) minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 7px 0; }
.pcl__t { font-size: 14px; color: var(--ink); }
.pcl__v { font-size: 13.5px; color: var(--slate); }
.pcl__row.is-empty .pcl__t { color: var(--slate); }
.pcl__ic { width: 18px; height: 18px; display: block; }
.pcl__ic--done circle { fill: var(--state-done); }
.pcl__ic--done path { stroke: var(--surface); }
.pcl__ic--empty circle { stroke: var(--slate); }
@keyframes pcl-pulse { from { opacity: .35; } }
@keyframes pcl-swap { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pcl__seg.is-pending, .pcl__title { animation: none; } .pcl__body, .pcl__chev, .pcl__seg { transition: none; } }

.pcl__seg.is-hit { background: var(--signal); }
.pcl__ic--hit circle { fill: var(--signal); }
.pcl__ic--hit path { stroke: var(--surface); }
.pcl__row.is-hit .pcl__v { color: var(--signal); }

.j-thinkcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.j-trace { width: min(64ch, 520px); max-width: 100%; }
.j-ready { border-top: 1px solid var(--border-soft); padding-top: 4px; }
.j-ready .pcl__row { grid-template-columns: 18px minmax(0, 1fr) auto; }

.j-scene.tall .pcl__meta { display: none; }
.j-scene.tall .pcl__row { grid-template-columns: 18px minmax(0, 1fr); row-gap: 1px; }
.j-scene.tall .pcl__v { grid-column: 2; }
.j-scene.tall .j-ready .pcl__row { grid-template-columns: 18px minmax(0, 1fr) auto; }
.j-scene.tall .j-ready .pcl__v { grid-column: auto; }


.j-prep:focus-visible { outline: 2px solid var(--link-blue); outline-offset: -3px; }
.j-prep ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.j-prep li { font-size: 14px; line-height: 1.5; }
.j-chip { border-radius: 3px; padding: 0 3px; background: var(--cat-doc-soft, #edf1fb); box-shadow: inset 0 -1.5px 0 var(--cat-doc, #3860BE); }
.j-chip.stat { background: rgba(207,69,0,.07); box-shadow: inset 0 -1.5px 0 var(--signal); }
.j-ready { border-top: 1px solid var(--border-soft); padding-top: 4px; }

.j-flyer { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; white-space: nowrap; opacity: 0; border-radius: 3px; padding: 0 4px; font: 500 14px var(--font-sans); color: var(--ink); background: var(--cat-doc-soft, #edf1fb); box-shadow: inset 0 -1.5px 0 var(--cat-doc, #3860BE), 0 8px 22px rgb(0 0 0 / .18); }
.j-flyer.stat { background: #fbeee7; box-shadow: inset 0 -1.5px 0 var(--signal), 0 8px 22px rgb(0 0 0 / .18); }
.j-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 22px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .3)); }
.option.j-pressed { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {  }


:host { display: block; background: transparent; color-scheme: light; }
.j-cap .tag { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: -20px; font: 500 11px var(--font-mono); color: var(--slate); }
:host([data-ground="dark"]) .j-cap small, :host([data-ground="dark"]) .j-cap span { color: rgba(255,255,255,.62); }
:host([data-ground="dark"]) .j-cap b { color: #fff; }
:host([data-ground="dark"]) .j-cap .dots i { background: rgba(255,255,255,.16); }
:host([data-ground="dark"]) .j-cap .dots i.on { background: #fff; }
@media (max-width: 819px) { .j-cap .tag { display: none; } }
:host([data-ground="dark"]) .frame { box-shadow: 0 30px 70px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08); }

/* Scene additions for the app's letter layout (30 Oct 2026) */
.j-prep ol { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 8px; }
.j-prep li { line-height: 1.6; }
.fpane .doc-preview .j-body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 0 18px 18px; display: flex; flex-direction: column; }
.j-scene.tall .doc-preview__actions { display: none; }
.j-scene.tall .chat-h3__act { display: none; }
.j-scene.tall .doc-lh, .j-scene.tall .doc-date { display: none; }
.ai-avatar--thinking { background: none; }
.chat-composer__bar .j-typed { flex: 1; min-width: 0; min-height: 0; padding: 6px 4px; }
.j-prep .doc-lh { justify-content: flex-end; }
/* in the app the Edit / Download PDF bar floats over the bottom of the letter */
.fpane .doc-preview--letter > .doc-float { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; }
.fpane .j-prep.doc-paper { padding-bottom: 72px; }
/* the app sets the account avatar inline; the site allows no inline styles, so it lives here */
.account-switcher .opsyy-avatar { width: 34px; height: 34px; border-radius: 50%; background: light-dark(oklch(0.93 0.055 275), oklch(0.34 0.07 275)); color: light-dark(oklch(0.4 0.115 275), oklch(0.9 0.08 275)); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font: 600 12px/1 var(--font-sans); letter-spacing: 0.01em; user-select: none; }
