/* Brand v3.0: architectural typography and semantic surfaces.
   Screen-only presentation. Court profiles and document/print styles remain authoritative.
   Font experiments load afterward in appearance.css. */
@media screen{
 html.pd-precision body{
  --pd-surface-vellum:var(--pd-system-vellum);
  --pd-ink-obsidian:var(--pd-system-obsidian);
  --pd-accent-brass:var(--pd-system-brass);
  --pd-accent-dark-brass:var(--pd-system-brass-text);
  --pd-surface-slate:var(--pd-system-slate);
  --pd-border:var(--pd-system-hairline);
  --pd-muted:var(--pd-system-muted);
  --palette-success:var(--pd-system-verified);
  --palette-warning:var(--pd-system-defect);
  --palette-error:var(--pd-system-conflict);
  --status-success:var(--pd-system-verified);
  --status-warning:var(--pd-system-defect);
  --status-error:var(--pd-system-conflict);
  --status-success-background:var(--pd-system-verified-surface);
  --status-warning-background:var(--pd-system-defect-surface);
  --status-error-background:var(--pd-system-conflict-surface);
  --focus-ring-color:var(--pd-system-brass-text);
  --pd-ease:var(--pd-system-ease);
  --font-sans:var(--jd-interface-font,var(--pd-system-ui-font));
  font-family:var(--jd-interface-font,var(--pd-system-ui-font));
  font-size:var(--pd-system-body-size);
  font-weight:400;
  line-height:var(--pd-system-body-leading);
  letter-spacing:0;
  color:var(--pd-ink-obsidian);
  background:var(--pd-surface-vellum);
  -webkit-font-smoothing:antialiased;
  font-kerning:normal;
  font-feature-settings:"cv02","cv03","cv04","cv11";
 }
 /* Keep language-specific Noto stacks. Selectable font alternatives only target English. */
 html.pd-precision body :is(.pd-assistant,.sb-workspace,.jd-site,.auth-layout){font-family:var(--jd-interface-font,var(--pd-system-ui-font))}
 html.pd-precision body :is(h1,h2,h3,h4,h5,h6,button,input,select,textarea):not(:where(#draft-editor,#draft-editor *,.draft-sheet,.draft-sheet *,.drafting-document,.drafting-document *,.drafting-partial-paper,.drafting-partial-paper *,.ai-paper,.ai-paper *,.document-page,.document-page *,.legal-paper,.legal-paper *,.doc-text,.doc-text *,.document-script-sample,.document-script-sample *,.pd-artifact-text,.pd-artifact-text *,#pd-artifact-editor,#pd-artifact-editor *,.sb-draft-paper,.sb-draft-paper *,.pd-wb-paper,.pd-wb-paper *)){
  font-family:var(--jd-interface-font,var(--pd-system-ui-font));font-optical-sizing:auto;
 }
 /* Voice 1: structured, confident interface typography. */
 html.pd-precision body :is(.site-hero h1,.site-subhero h1,.clarity-home-intro h1,.clarity-start h1,.brand-story h1){
  font-size:clamp(36px,4.15vw,var(--pd-system-display-size))!important;
  font-weight:var(--pd-system-display-weight)!important;
  line-height:var(--pd-system-display-leading)!important;
  letter-spacing:var(--pd-system-display-tracking)!important;
 }
 html.pd-precision body :is(.site-hero h1,.site-subhero h1){max-width:960px;margin-inline:auto}
 html.pd-precision body .site-hero h1>span{font-weight:inherit;letter-spacing:inherit}
 html.pd-precision body :is(.site-section-head h2,.pd-section-head h2,.site-product-copy h2,.site-final h2){font-size:clamp(28px,3vw,40px)!important;font-weight:750!important;line-height:1.16!important;letter-spacing:-.035em!important}
 html.pd-precision body :is(.app-pagehead h1,.client-main>h1,.pd-dictation-heading h1,.pd-library-heading h1,.pd-calendar-heading h1){font-size:30px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:-.035em!important}
 html.pd-precision body :is(.panel-head h2,.panel-head h3,.pd-home-workbench h2,.pd-home-conversations h2,.pd-attention-header h2){font-size:18px!important;font-weight:700!important;line-height:1.35!important;letter-spacing:-.025em!important}
 html.pd-precision body :is(.site-hero>p,.site-hero .site-lead,.site-subhero>p,.site-product-copy>p,.pd-section-head p:not(.site-eyebrow),.pd-workflow-card p,.site-feature p,.pd-resource-card p,.pd-film-chapters p,.site-faq p,.site-footer p){font-size:15px!important;line-height:1.6!important;letter-spacing:0}
 html.pd-precision body :is(.clarity-home-intro>p,.clarity-start>p,.pd-chat-welcome>p,.pd-message-text,.pd-source-picker,.ai-message-text,.drafting-agent-message,.app-pagehead>p,.panel-body>p,.record-note,.notice,.pd-document-details dd,.pd-dictation-status){font-size:15px!important;line-height:1.6!important;letter-spacing:0}
 html.pd-precision body :is(.clarity-recent-text strong,.audit-attention-row strong,.pd-home-workflows strong,.pd-history-item strong,.pd-document-title,.pd-source-choice strong){font-size:14px!important;line-height:1.5!important;font-weight:600}
 html.pd-precision body :is(.clarity-recent-text>span,.clarity-recent-text small,.audit-attention-row small,.pd-home-conversations button>small,.pd-history-item small,.pd-home-workflows small,.pd-source-choice small,.pd-selected-context,.pd-canvas-header small,.pd-composer-caption,.pd-canvas-footer>span,.pd-history-bottom){font-size:12px!important;line-height:1.6!important;color:var(--pd-muted)}
 html.pd-precision body :is(.pd-history-heading h2,.pd-document-details h3,.pd-source-groups summary){font-size:15px!important;line-height:1.5!important;font-weight:650!important}
 html.pd-precision body :is(.pd-session-header h1,.pd-canvas-header strong){font-size:15px!important;font-weight:650!important;line-height:1.4!important;letter-spacing:-.015em}
 html.pd-precision body .pd-chat-welcome{margin:clamp(16px,3vh,36px) auto 24px}
 html.pd-precision body .pd-chat-welcome h2{font-size:clamp(28px,2.6vw,36px)!important;font-weight:750!important;line-height:1.16!important;letter-spacing:-.035em!important}
 html.pd-precision body .pd-welcome-mark{margin-bottom:16px}
 html.pd-precision body .pd-welcome-suggestions{margin-top:20px}
 html.pd-precision body :is(.pd-composer textarea,.clarity-composer textarea){font-size:16px!important;line-height:1.6!important;letter-spacing:0}
 html.pd-precision body :is(.btn,.pd-tab-list button,.pd-history-switch button,.pd-welcome-suggestions .btn,.pd-followup-actions .btn,.pd-brief-actions .btn,.pd-context-chip,.pd-mode select,.pd-history-search input,.pd-mobile-panels button,.drafting-canvas-toolbar button){font-size:13px!important;line-height:1.5!important;font-weight:500}
 html.pd-precision body .pd-history-search input{min-height:40px!important;height:40px!important}
 html.pd-precision body :is(.pd-context-chip,.pd-mode select){min-height:36px!important;height:36px!important}
 html.pd-precision body .pd-mode select{max-width:145px}
 html.pd-precision body .pd-context-chip{max-width:245px}
 html.pd-precision body .pd-context-chip>span:first-of-type{max-width:185px}
 html.pd-precision body .pd-tab-list{gap:4px}
 html.pd-precision body .pd-tab-list button{min-height:36px;padding:7px 11px}
 html.pd-precision body :is(.pd-followup-actions,.pd-brief-actions,.pd-action-row,.workspace-actions){gap:8px;flex-wrap:wrap}
 html.pd-precision body :is(.data-table,.list-item,.meta-grid,.setting-menu,.record-settings){font-size:14px;line-height:1.6}
 html.pd-precision body .data-table :is(th,small){font-size:12px!important;line-height:1.6!important}
 html.pd-precision body .data-table td strong{font-size:14px!important;line-height:1.5!important}
 html.pd-precision body :is(.field,.field>label){font-size:13px;line-height:1.6}
 html.pd-precision body :is(.field small,.list-item small,.meta-grid small,.breadcrumb,.eyebrow){font-size:12px!important;line-height:1.6!important}
 html.pd-precision body .pd-conversations{background:#f1efe8}
 html.pd-precision body .pd-history-item>button:first-child{padding-block:10px}
 html.pd-precision body .pd-message{margin-bottom:32px}
 html.pd-precision body .pd-message-text{max-width:72ch}
 html.pd-precision body :is(.pd-message-avatar,.pd-welcome-mark){background:var(--pd-surface-vellum);border-color:var(--pd-border)}
 /* Voice 2: legal reading, kept separate from editable/filed court papers. */
 html.pd-precision body :is([data-pd-type=reading],.sb-source-paper,.sb-card-quote,.pd-source-inspector pre,.pd-wb-paper p:not(.pd-wb-label):not(.pd-wb-question),.pd-wb-outline,.pd-wb-paper blockquote){
  font-family:var(--pd-design-prose-font,var(--pd-system-prose-font))!important;
  font-size:var(--pd-system-prose-size)!important;
  font-weight:400;
  line-height:var(--pd-system-prose-leading)!important;
  letter-spacing:var(--pd-system-prose-tracking)!important;
  font-optical-sizing:auto;
  color:var(--pd-system-obsidian);
 }
 html.pd-precision body .pd-wb-paper h3{font-family:var(--pd-design-prose-font,var(--pd-system-prose-font))!important;font-size:26px!important;line-height:1.35!important;font-weight:500;letter-spacing:-.01em}
 html.pd-precision body .pd-wb-paper h4{font-family:var(--pd-design-prose-font,var(--pd-system-prose-font))!important;font-size:22px!important;line-height:1.5!important;font-weight:500;letter-spacing:-.01em}
 html.pd-precision body .pd-wb-paper{background:var(--pd-surface-vellum);padding:32px}
 html.pd-precision body .pd-wb-paper blockquote{font-style:italic}
 html.pd-precision body .pd-source-inspector pre{padding:24px;border:1px solid var(--pd-border);background:var(--pd-surface-vellum)}
 /* Voice 3: compact, aligned statutory and numeric data. Not whole tables of names. */
 html.pd-precision body :is([data-pd-type=reference],code,kbd,time,.sb-kind,.sb-review-state,.sb-source-meta,.pd-wb-label,.pd-wb-source,.pd-wb-status,.pd-paper-status,.site-eyebrow,.step-label):not(:where(#pd-appearance-root,#pd-appearance-root *,#draft-editor,#draft-editor *,.draft-sheet,.draft-sheet *,.drafting-document,.drafting-document *,.drafting-partial-paper,.drafting-partial-paper *,.ai-paper,.ai-paper *,.document-page,.document-page *,.legal-paper,.legal-paper *,.doc-text,.doc-text *,.pd-artifact-text,.pd-artifact-text *,#pd-artifact-editor,#pd-artifact-editor *,.sb-draft-paper,.sb-draft-paper *)){
  font-family:var(--pd-system-reference-font)!important;font-size:12px!important;font-weight:600!important;line-height:1.6!important;letter-spacing:.04em!important;font-variant-numeric:tabular-nums lining-nums;
 }
 html.pd-precision body :is([data-pd-type=metric],.data-table,.stat strong,.plan-price,.site-price,.price-amount,.clarity-number,.pd-dictation-timer,.pd-calendar,.tag,input[type=number],input[type=date],input[type=time]){font-variant-numeric:tabular-nums lining-nums}
 html.pd-precision body :is(.tag,.sb-pin){font-variant-numeric:tabular-nums lining-nums;letter-spacing:.025em}
 /* Semantic colors always retain labels/icons; no raw brass for small light-surface text. */
 html.pd-precision body :is(.tag.green,.tag.ok,.tag.success,.record-status.success,.pd-status-verified){background:var(--pd-system-verified-surface);color:var(--pd-system-verified)!important;border-color:#b8d9be}
 html.pd-precision body :is(.tag.amber,.tag.warn,.tag.warning,.sb-review-state.needs-review,.sb-link-warning,.pd-status-defect){background:var(--pd-system-defect-surface);color:var(--pd-system-defect)!important;border-color:#e6c6a5}
 html.pd-precision body :is(.tag.red,.tag.error,.tag.danger,.pd-status-conflict){background:var(--pd-system-conflict-surface);color:var(--pd-system-conflict)!important;border-color:#ecc1bb}
 html.pd-precision body :is(.error,.record-form-error,.form-error){color:var(--pd-system-conflict)!important}
 html.pd-precision body :is(.sb-source-reference,.sb-kind,.sb-pin,.sb-card-count,.sb-card>footer button,.sb-group,.pd-wb-source){color:var(--pd-accent-dark-brass)}
 html.pd-precision body :is(.sb-review-state,.sb-saved,.sb-source-meta,.sb-board-footer){color:var(--pd-muted)}
 html.pd-precision body .sb-group{font-size:12px;line-height:1.6}
 html.pd-precision body .sb-card-drag>span:last-child{font-size:11px;color:var(--pd-muted)}
 /* Calm multi-pane reading surface: ink/slate chrome, vellum text, brass references. */
 html.pd-precision body .pd-wb-assistant{background:var(--pd-system-obsidian);color:var(--pd-system-vellum);border-color:var(--pd-system-hairline-dark);padding:24px}
 html.pd-precision body .pd-wb-assistant :is(p,ul,ol,.pd-wb-label){color:#d6d3ca}
 html.pd-precision body .pd-wb-assistant .pd-wb-note{background:var(--pd-system-slate);color:var(--pd-system-vellum);border-color:#454952}
 html.pd-precision body .pd-wb-assistant .pd-wb-note strong{color:var(--pd-system-vellum)}
 html.pd-precision body .pd-wb-assistant :is(.pd-wb-source,.pd-wb-source strong,.pd-wb-step>span,.pd-wb-step svg){color:var(--pd-system-brass-light)}
 html.pd-precision body .pd-wb-assistant .pd-wb-status{background:var(--pd-system-slate);color:var(--pd-system-brass-light);border-color:#635239}
 html.pd-precision body .pd-wb-assistant .pd-wb-source{border-color:#454952}
 html.pd-precision body :is(.pd-wb-assistant,[data-pd-surface=dark]) :is(.tag.green,.tag.ok,.tag.success,.pd-status-verified){background:var(--pd-system-slate);color:var(--pd-system-verified-dark)!important}
 html.pd-precision body :is(.pd-wb-assistant,[data-pd-surface=dark]) :is(.tag.amber,.tag.warn,.tag.warning,.pd-status-defect){background:var(--pd-system-slate);color:var(--pd-system-defect-dark)!important}
 html.pd-precision body :is(.pd-wb-assistant,[data-pd-surface=dark]) :is(.tag.red,.tag.error,.tag.danger,.pd-status-conflict){background:var(--pd-system-obsidian-deep);color:var(--pd-system-conflict-dark)!important}
 /* Source Board keeps its two-row toolbar and generous canvas. */
 html.pd-precision body .sb-workspace{--sb-muted:var(--pd-system-muted);--sb-line:var(--pd-system-hairline)}
 html.pd-precision body .sb-workspace :is(.sb-header,.sb-pane-head,.sb-source-controls,.sb-draft-controls,.sb-canvas-toolbar){background:var(--pd-system-vellum)}
 html.pd-precision body .sb-header h1{font-weight:750;letter-spacing:-.035em}
 html.pd-precision body .sb-workspace :is(select,input[type=search]){font-size:13px!important;line-height:1.5}
 html.pd-precision body .sb-card{width:280px;border-radius:12px;box-shadow:0 2px 8px #181a1f06}
 html.pd-precision body .sb-card-main{padding:16px}
 html.pd-precision body .sb-card h3{font-size:15px!important;font-weight:650;line-height:1.45!important;letter-spacing:-.02em}
 html.pd-precision body .sb-card-quote{max-height:132px;-webkit-line-clamp:4}
 html.pd-precision body .sb-card-drag{background:#f1eee5;border-color:var(--pd-border)}
 html.pd-precision body .sb-card.is-authority .sb-card-drag{background:#edf3ee}
 html.pd-precision body .sb-card.is-note .sb-card-drag{background:#f0ede5}
 html.pd-precision body .sb-card.is-authority .sb-kind{color:var(--pd-system-verified)}
 html.pd-precision body .sb-card.is-note .sb-kind{color:var(--pd-system-slate)}
 html.pd-precision body .sb-card-annotation{font-size:13px!important;line-height:1.6!important;color:var(--pd-muted);border-color:var(--pd-border)}
 html.pd-precision body .sb-source-reference{font-size:12px!important;line-height:1.6}
 html.pd-precision body .sb-source-reference>span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 html.pd-precision body .sb-card>footer button{min-height:32px;font-size:12px}
 html.pd-precision body .sb-workspace .sb-action:not(.sb-icon){font-size:12px!important}
 html.pd-precision body :is(.sb-source-footer>span,.sb-saved,.sb-selection-status){font-size:12px!important;color:var(--pd-muted)}
 html.pd-precision body .sb-board-viewport{background-color:var(--pd-system-vellum);background-image:radial-gradient(#c9c2b4 1px,transparent 0);background-size:24px 24px}
 /* Authentication uses the same voice without expanding its existing flow. */
 html.pd-precision body.jd-auth .auth-layout h2{font-size:30px!important;font-weight:750;line-height:1.2;letter-spacing:-.035em}
 html.pd-precision body.jd-auth .auth-layout :is(.intro,.switch,.form-message){font-size:14px!important;line-height:1.6!important}
 html.pd-precision body.jd-auth .auth-layout .field>label{font-size:13px!important;line-height:1.5}
 html.pd-precision body.jd-auth .auth-layout :is(.form-options,.check,.helper,.fine-print,.social-signin-divider,.demo-role-field select,#demo-login-fill){font-size:12px!important;line-height:1.6!important}
 html.pd-precision body.jd-auth .brand-story>p:last-child{font-size:15px!important;line-height:1.6!important}
 /* Clear space uses existing containers; final logo pixels/geometry are not edited. */
 html.pd-precision body .clarity-rail-brand{margin-block:16px 24px}
 html.pd-precision body .clarity-topbar{column-gap:32px}
 html.pd-precision body .site-nav{column-gap:32px}
 html.pd-precision body .brand-link{margin-bottom:40px}
 /* Deliberate motion. No elastic effects, rotating marks or neon surfaces. */
 html.pd-precision body :is(.btn,.site-button,.pd-icon-button,.pd-context-chip,.sb-action,.sb-card,.site-nav a){transition-timing-function:var(--pd-system-ease)}
 html.pd-precision body :is(.field input,.field select,.field textarea,.site-contact-layout input,.site-contact-layout select,.site-contact-layout textarea,.pd-history-search input,.site-button-outline,.btn:not(.primary):not(.text):not(.sb-icon),.auth-layout .field input,.auth-layout .field select){border-color:var(--pd-system-control-border)}
 html.pd-precision body :is(button,a,input,select,textarea,summary,[tabindex],[contenteditable]):focus-visible{outline:2px solid var(--pd-system-brass-text);outline-offset:3px}
 html.pd-precision body :is(h1,h2,h3)[tabindex='-1']:focus{outline:none}
 html.pd-precision body ::selection{background:#e9dbbd;color:var(--pd-system-obsidian)}
 /* The optical Latin voices never displace local Indic script fonts. */
 html.pd-precision[data-ui-language]:not([data-ui-language=en]) body :is([data-pd-type=reading],.sb-source-paper,.sb-card-quote,.pd-source-inspector pre,.pd-wb-paper p,.pd-wb-outline,.pd-wb-paper blockquote){font-family:var(--jd-interface-font),var(--pd-system-prose-font)!important;letter-spacing:normal!important;line-height:1.75!important}
 html.pd-precision[data-ui-language]:not([data-ui-language=en]) body :is([data-pd-type=reference],code,kbd,time,.sb-kind,.sb-review-state,.sb-source-meta,.pd-wb-label,.pd-wb-source,.pd-wb-status,.site-eyebrow,.step-label){font-family:var(--pd-system-reference-font),var(--jd-interface-font)!important;letter-spacing:normal!important}
}
@media screen and (max-width:760px){
 html.pd-precision body :is(.site-hero h1,.site-subhero h1,.clarity-home-intro h1,.clarity-start h1){font-size:36px!important;line-height:1.1!important}
 html.pd-precision body :is(.app-pagehead h1,.pd-dictation-heading h1,.pd-library-heading h1,.pd-calendar-heading h1){font-size:26px!important}
 html.pd-precision body :is(.pd-composer textarea,.clarity-composer textarea,.pd-history-search input){font-size:16px!important}
 html.pd-precision body .pd-session-header{padding-inline:16px}
 html.pd-precision body .pd-session-header h1{font-size:14px!important;max-width:calc(100vw - 165px)}
 html.pd-precision body .pd-context-chip{max-width:180px}
 html.pd-precision body .pd-context-chip>span:first-of-type{max-width:120px}
 html.pd-precision body .pd-mode select{max-width:130px}
 html.pd-precision body .pd-wb-paper{padding:24px}
 html.pd-precision body .clarity-topbar{column-gap:12px}
 html.pd-precision body .clarity-rail-brand{margin:0}
}
@media screen and (min-width:601px){
 html.pd-precision body:is(.clarity-workspace,.clarity-client){--clarity-header-height:84px}
 /* The logo and header share one vertical center. Its slot supplies clear
    space instead of accumulating rail padding, logo margins and a nav gap. */
 html.pd-precision body .clarity-shell .app-side.clarity-rail{padding-top:0}
 html.pd-precision body .clarity-rail-brand{height:var(--clarity-header-height);min-height:var(--clarity-header-height);margin:0}
 html.pd-precision body .clarity-topbar{min-height:var(--clarity-header-height)}
 html.pd-precision body .clarity-rail-nav{margin-top:8px}
}
@media screen and (min-width:601px) and (max-width:1100px){
 /* Wrapped controls keep the chamber identity and rail mark on the first row. */
 html.pd-precision body:is(.clarity-workspace,.clarity-client){--clarity-header-height:64px}
 html.pd-precision body .clarity-topbar{height:auto;align-items:flex-start}
 html.pd-precision body .clarity-workspace-identity{min-height:44px}
}
@media screen and (min-width:761px){
 html.pd-precision body:is(.clarity-workspace,.clarity-client){--clarity-rail-width:96px}
 html.pd-precision body.jd-marketing .jd-site .site-nav{min-height:108px}
}
@media (prefers-reduced-motion:reduce){
 html.pd-precision body :is(.btn,.site-button,.pd-icon-button,.pd-context-chip,.sb-action,.sb-card,.pd-run-status>span){animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
