
/* RWA Intake.
   The same family as RWA Demand. A navy bar with the mark on it, plain text tabs with a blue line
   under the one you are on, one centered column, a serif for names and headings, hairlines between
   rows, and navy for what you press. A person's page opens under a navy head with their name on it.
   Nothing expands and no box of writing sits above a form. No green anywhere on this screen.
   Shared colors and field sizes come from rwa-tokens.css, which every page loads first. The colors
   below are the ones demand.css uses, copied here so that this sheet does not load that one. */
:root{
  --navy:#14263f;--navy-2:#21395a;--sky:#a9cee6;--blue:#294bc5;--blue-wash:#e9efff;
  --rust:#a8431a;--rust-wash:#fbece2;--gold:#8f6a10;--gold-wash:#faf1d6;
  --serif:ui-serif,"New York","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --action:#14263f;--action-2:#21395a;--action-ink:#fff;
  --sky-2:#c2dcee;--mark-ink:#14263f;--mark-ring:rgba(20,38,63,.9);
  --on-navy:#fff;--on-navy-2:rgba(255,255,255,.74);--on-navy-edge:rgba(255,255,255,.28);--on-navy-wash:rgba(255,255,255,.12);
  --shade:rgba(10,20,35,.2);
  color-scheme:light dark;
}
@media(prefers-color-scheme:dark){:root{
  --navy:#0b1626;--navy-2:#1a2c45;--blue:#a9cee6;--blue-wash:#1d2b45;
  --rust:#f3a47d;--rust-wash:#3a2419;--gold:#e6c66f;--gold-wash:#342c14;
  --action:#a9cee6;--action-2:#c2dcee;--action-ink:#0b1626;
}}
*{box-sizing:border-box} [hidden]{display:none!important}
html{background:var(--ground)}body{margin:0 auto;padding:12px 16px max(24px,env(safe-area-inset-bottom));max-width:680px;min-height:100vh;min-height:100dvh;background:var(--paper);box-shadow:0 0 0 1px var(--edge);color:var(--ink);font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
h1,h2,h3,p{overflow-wrap:anywhere}h1{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.2;margin:0}h2{font-size:18px;font-weight:600;margin:20px 0 12px}h3{font-size:16px;font-weight:600;margin:20px 0 8px}p{margin:8px 0 16px}.muted,.small{font-size:14px;color:var(--ink-3)}
a{color:var(--blue)}

/* ---- the app screen. The bar and the tabs run edge to edge. Everything else sits in one centered column. */
html:has(body[data-stage]){background:var(--paper)}
body[data-stage]{--column:680px;--gutter:16px;display:grid;grid-template-columns:minmax(var(--gutter),1fr) minmax(0,var(--column)) minmax(var(--gutter),1fr);align-content:start;max-width:none;margin:0;padding:0 0 max(24px,env(safe-area-inset-bottom));box-shadow:none;-webkit-font-smoothing:antialiased}
body[data-stage]>*{grid-column:2;min-width:0}
body[data-stage]>.intake-heading,body[data-stage]>.app-navigation,body[data-stage]>.potentials-panel{grid-column:1/-1}
:where(body[data-stage]) h2{font-family:var(--serif);font-size:22px;line-height:1.2}
:where(body[data-stage]) h3{font-family:var(--serif);font-size:18px;line-height:1.25}

/* ---- the bar */
.intake-heading{display:flex;align-items:center;gap:12px;min-height:58px;padding:7px var(--gutter);background:var(--navy);color:var(--on-navy)}
.mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:9px;background:var(--sky);color:var(--mark-ink);font-weight:800;font-size:12px;letter-spacing:.06em;box-shadow:inset 0 0 0 2px var(--mark-ring),inset 0 0 0 4px var(--sky)}
.bar-name{flex:0 1 auto;min-width:0;margin:0;font-family:var(--serif);font-size:23px;font-weight:600;line-height:1.2;letter-spacing:.01em;white-space:nowrap;color:var(--on-navy)}
.utility-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
/* Home sits right after the app's name and looks like the other bar buttons. It shows only away from the opening screen. */
.bar-home{min-width:44px;margin-left:4px;padding:6px 13px;border-color:var(--on-navy-edge);background:transparent;color:var(--on-navy);font-size:14px;white-space:nowrap}.bar-home:hover:not(:disabled){background:var(--on-navy-wash)}.bar-home:focus-visible{outline-color:var(--sky)}
.utility-actions button{min-width:44px;padding:6px 13px;border-color:var(--on-navy-edge);background:transparent;color:var(--on-navy);font-size:14px;white-space:nowrap}
.utility-actions button:hover:not(:disabled){background:var(--on-navy-wash)}
.utility-actions button:focus-visible{outline-color:var(--sky)}
#update-ready{border-color:var(--sky);background:var(--sky);color:var(--mark-ink);font-weight:600}
#update-ready:hover:not(:disabled){background:var(--sky-2)}
#intake-title{margin:22px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--edge);font-size:28px;line-height:1.15;letter-spacing:-.005em}
#demo-picker{margin:0 0 12px}

/* ---- tabs. Plain words, the current one bold over a blue line, a count in a tinted pill. */
.app-navigation,.potential-sections{display:flex;align-items:stretch;gap:4px;border-bottom:1px solid var(--edge);background:var(--paper)}
.app-navigation{margin:0;padding:0 calc(var(--gutter) - 14px)}
.potential-sections{margin:0;padding:0 calc(var(--gutter) - 12px)}
.app-navigation button,.potential-sections button{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;min-width:44px;min-height:52px;margin-bottom:-1px;padding:8px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--ink-2);font-size:16px;white-space:nowrap}
.potential-sections button{min-height:48px;padding:8px 12px;font-size:15px}
.app-navigation button[aria-current=page],.potential-sections button[aria-pressed=true]{border-bottom-color:var(--blue);color:var(--ink);font-weight:700}
.app-navigation button:focus-visible,.potential-sections button:focus-visible{outline-offset:-4px}
.potential-count{min-width:22px;padding:1px 7px;border-radius:11px;background:var(--rust-wash);color:var(--rust);font-size:13px;font-weight:700;line-height:18px;text-align:center}

/* ---- what you press, and the fields */
button,input,select,textarea{font:inherit;color:var(--ink)}button{min-height:44px;max-width:100%;padding:9px 16px;border:1px solid var(--edge);border-radius:var(--field-radius,7px);background:var(--paper);cursor:pointer;line-height:1.3}button:hover:not(:disabled){background:var(--edge-2)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--action);color:var(--action-ink);border-color:var(--action);font-weight:600}button.primary:hover:not(:disabled){background:var(--action-2);border-color:var(--action-2)}button.secondary{background:var(--paper);color:var(--ink)}button.link,.quiet-button,.capture-tools button,.intake-utilities button{border-color:transparent;background:transparent;color:var(--ink-2);padding:8px 6px;font-size:14px;text-decoration:underline;text-decoration-color:var(--edge);text-underline-offset:3px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
label{display:block;font-size:14px;font-weight:400;color:var(--ink);margin:0 0 12px}input,select,textarea{display:block;width:100%;min-width:0;min-height:var(--field-height,46px);margin-top:5px;padding:10px 11px;background:var(--paper);border:1px solid var(--edge);border-radius:var(--field-radius,7px);font-size:16px}input::placeholder,textarea::placeholder{color:var(--ink-3)}textarea{resize:vertical;line-height:1.45}select{-webkit-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2365717b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}select,input[type=text],input[type=tel],input[type=email],input[type=date],input[type=search],input:not([type]){height:var(--field-height,46px)}input[type=date]{max-width:100%}input[type=checkbox],input[type=radio]{accent-color:var(--blue)}.row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.row>*{min-width:0}

/* ---- the intake form and its review */
.notes-heading{display:flex;align-items:center;justify-content:space-between;margin-top:2px}.notes-heading label{margin:0}.notes-heading button{margin:-6px -6px -6px 0}.capture-tools{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}.capture-tools button{min-height:44px}.capture-tools button:first-child,#open-questions{margin-left:-6px}.capture-tools button:last-child,#new-call{margin-right:-6px}.inline-status{font-size:14px;color:var(--ink-3);margin:6px 0 10px}.inline-status:empty{display:none}#call-notes{margin:5px 0 0}#draft-status[data-state=error],#draft-status[data-state=conflict]{color:var(--rust)}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.entry-actions{margin-top:12px}.entry-actions .primary{width:100%;min-height:48px}.review-actions .primary{flex:1}.intake-utilities{display:flex;justify-content:space-between;gap:12px;margin-top:12px;border-top:1px solid var(--edge);padding-top:6px}.review-only{display:none}body[data-stage=review] .review-only{display:block}body[data-stage=review] .entry-only{display:none}body[data-stage=entry][data-intake-mode=phone] .summary-fields{display:none}body[data-panel] .intake-main,body[data-panel] #mode-tabs{display:none!important}body[data-panel] #intake-title,body[data-panel] #demo-picker{display:none}
.utility-panel{padding-top:4px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--edge)}.panel-heading h2{margin:0;font-size:28px;line-height:1.15}.utility-panel>button,.utility-panel #session-options button{display:block;margin:12px 0}.utility-panel p{font-size:16px}.utility-panel .muted{font-size:14px}
#review-more{border-top:1px solid var(--edge);padding-top:16px}#review-target{border-top:1px solid var(--edge);margin-top:16px;padding-top:8px}.recheck{margin:0 0 0 -6px}.recheck button{font-size:14px}#email-footer{font-size:14px;margin-bottom:0}#ask ul{list-style:none;padding:0}#ask:has(#ai-questions:empty){display:none}#ask h2,#dupes h3{margin:18px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--edge);font-size:21px}#phone-flags{margin:12px 0}#banners:empty{display:none}#status{margin:14px 0 10px}#startup-retry,#mode-tabs{justify-self:start}#incoming-match-open,#incoming-return-intake{margin-left:-6px}
.intake-utilities #new-call.primary{margin-right:0;border:1px solid var(--action);padding:9px 14px;color:var(--ink);font-weight:600;text-decoration:none}
.field-error{color:var(--rust)}#save-feedback ul{margin:4px 0;padding-left:20px}
.banner{padding:12px 14px;margin:12px 0;border:1px solid var(--edge);border-left:4px solid var(--edge);border-radius:8px;background:var(--paper);overflow-wrap:anywhere}.banner b{display:block;font-weight:600;margin-bottom:4px}.banner p{margin:6px 0}.banner.warn{border-left-color:var(--rust)}.banner.ok{border-left-color:var(--blue);background:var(--blue-wash)}.banner ul{padding-left:20px;margin:8px 0 0}.banner h2,.banner h3{margin-top:0}
#confirm-box{position:sticky;top:8px;z-index:20;padding:14px 16px;border:2px solid var(--action);border-radius:10px;box-shadow:0 8px 24px var(--shade)}#confirm-box .actions{margin-bottom:0}.confirm-details p{margin:8px 0;font-size:15px;line-height:1.45}.confirm-details strong{display:block;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3)}.confirm-details .confirm-footer{font-size:14px;color:var(--ink-3)}
.choice{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--edge);border-radius:8px;font-size:16px}.choice:has(input:checked){border-color:var(--blue);background:var(--blue-wash)}.choice input,.check input{flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:2px 0 0}.check{display:flex;align-items:flex-start;gap:10px;font-size:16px;min-height:44px;padding:8px 0}.choice b{font-family:var(--serif);font-size:17px;font-weight:600}.reason,.level{display:inline-block;font-size:14px;color:var(--ink-3);margin:4px 6px 0 0}.level{font-weight:600}.level.possible{font-weight:400}
.tabs{display:inline-flex;gap:2px;padding:3px;margin:0 0 14px;border:1px solid var(--edge);border-radius:9px;background:var(--edge-2)}.tabs button{flex:none;min-height:44px;padding:6px 14px;font-size:14px;border:0;border-radius:6px;background:none;color:var(--ink-2)}.tabs button[aria-pressed=true]{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:0 0 0 1px var(--edge)}body[data-stage=review] #mode-tabs{display:none!important}
.referrer-picker{position:relative;margin:0 0 12px}.review-notes{margin:14px 0 2px;font-size:14px;color:var(--ink-2)}.review-notes b{display:block;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--ink-3)}.review-notes ul{margin:4px 0 0;padding-left:18px}.review-notes li{margin:2px 0}.intake-source{margin:22px 0 0;padding:14px 0 0;border-top:1px solid var(--edge)}.intake-source h2{margin:0 0 4px;font-size:20px}.intake-source .small{margin:0 0 10px;overflow-wrap:anywhere}.intake-source-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5;color:var(--ink)}body[data-panel] .intake-source{display:none}
/* The line under the intake form speaks about the form. It has nothing to say on the Potentials screen. */
body[data-panel="potentials-panel"] #status{display:none}
/* A new lead nobody has moved in two days or more. The age itself turns rust, and nothing else is added. */
.potential-row .potential-row-age.potential-row-late{color:var(--rust);font-weight:600}
.result-next{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 0}
.arrival-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
/* Calls to make today, and the contact log of one lead. Plain rows in the pipeline's own type. */
.potential-calls-heading{color:var(--navy,var(--ink))}.potential-call .potential-row-next{color:var(--ink)}.potential-row .potential-row-next.potential-row-late{color:var(--rust);font-weight:600}
.potential-contacts{margin:0 0 14px}.potential-contacts h3{margin:0 0 6px;font-size:16px}.potential-contacts .overview-quiet{color:var(--ink-2);margin:0 0 8px}
.potential-contact-due{margin:0 0 8px;font-size:16px}.potential-contact-now{font-weight:600}
.potential-contact-list{margin-bottom:10px}
.potential-contact-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px;align-items:end}.potential-contact-form .potential-contact-ways{grid-column:1/-1;display:flex;gap:18px;flex-wrap:wrap;margin:0 0 12px}.potential-contact-form .potential-contact-ways label{display:flex;align-items:center;gap:8px;margin:0;font-size:16px}.potential-contact-form .potential-contact-ways input{width:20px;min-height:20px;height:20px;margin:0;padding:0}.potential-contact-form .potential-contact-note{grid-column:1/-1}.potential-contact-form button{margin:0 0 12px;justify-self:start}
@media(max-width:520px){.potential-contact-form,.arrival-row{grid-template-columns:1fr}}
.incoming-clear{display:block;margin:8px var(--gutter) 0}
.incoming-confirm{margin:8px var(--gutter) 0}.incoming-confirm p{margin:0 0 4px}.incoming-confirm .incoming-clear{display:inline-block;margin:0 18px 0 0}@media(min-width:1000px){body[data-source][data-stage=review]:not([data-panel]){--column:1180px}body[data-source][data-stage=review]:not([data-panel]) .intake-main{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:36px;align-items:start}body[data-source][data-stage=review]:not([data-panel]) .intake-main>*{grid-column:2}body[data-source][data-stage=review]:not([data-panel]) .intake-source{grid-column:1;grid-row:1/span 6;position:sticky;top:12px;max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:16px 18px;border:1px solid var(--edge);border-radius:10px;background:var(--paper)}}.referrer-picker label{margin-bottom:0}#referrer-results{position:absolute;z-index:10;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;margin:2px 0 0;padding:4px;list-style:none;background:var(--paper);border:1px solid var(--edge);border-radius:10px;box-shadow:0 12px 32px var(--shade)}#referrer-results [role=option]{padding:12px;min-height:44px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}#referrer-results [role=option]:hover,#referrer-results [aria-selected=true]{background:var(--blue-wash)}#referrer-results [aria-selected=true]{box-shadow:inset 3px 0 0 var(--blue)}#referrer-search-help,#referrer-search-status{font-size:14px;margin:5px 0}#referrer-search-status:empty{display:none}.catalog-add{border:2px solid var(--action);border-radius:10px;padding:14px 16px;margin:12px 0}#referral-suggestion{margin-top:8px}
#draft-list button{display:block;width:100%;text-align:left;margin:12px 0 4px}#draft-list .link{margin-top:0}#draft-conflict{margin:12px 0}#draft-conflict p{font-size:14px}
.voice-live{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:sticky;top:8px;z-index:15;background:var(--paper);border:1px solid var(--edge);border-left:4px solid var(--red);border-radius:8px;margin:12px 0 8px;padding:10px}.voice-live button{margin-left:auto}.rec-dot{width:9px;height:9px;border-radius:50%;background:var(--red)}.mono{font-variant-numeric:tabular-nums}.transcript{white-space:pre-wrap;max-height:320px;overflow:auto}.mic-meter{width:100%;height:12px;accent-color:var(--blue)}.checklist{list-style:none;padding:0}.checklist .check{margin:0;padding:12px 0;border-bottom:1px solid var(--edge-2)}label.suggested input,label.suggested textarea,label.suggested select{border-color:var(--blue)}label.suggested::after{content:"AI suggestion — check this";display:block;font-size:14px;color:var(--ink-3);margin-top:4px}
.manual-signin{border-top:1px solid var(--edge);margin-top:16px;padding-top:8px}.manual-signin-origin{overflow-wrap:anywhere}.manual-signin input,#completion-code{font-family:ui-monospace,monospace}.auth-page{max-width:520px;margin:32px auto;padding:20px}

/* The workspace is another surface inside this authenticated RWA pane. */
#matter-workspace-overlay{position:fixed;inset:0;z-index:1000;margin:0;background:#f4f6f8;padding:0;width:100%;max-width:none;height:100dvh;display:flex;flex-direction:column}
#matter-workspace-overlay[hidden]{display:none}
#matter-workspace-frame{border:0;width:100%;height:100%;min-height:0;flex:1;display:block}
.workspace-frame-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;background:#fffefa;border-bottom:1px solid #d9dddc;flex:none}
.workspace-frame-toolbar button{min-height:44px;min-width:44px;margin:0;font-size:15px}
#workspace-frame-status{flex:1 1 150px;margin:0;font-size:13px;line-height:1.4;color:#56616c}
#workspace-frame-status[data-quiet="true"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#workspace-ai-dialog{max-width:520px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;border:1px solid var(--edge);border-radius:12px;padding:22px;background:var(--paper);color:var(--ink);box-shadow:0 18px 50px var(--shade)}
#workspace-ai-dialog::backdrop{background:#17304688}
#workspace-ai-dialog h2{margin-top:0}
#workspace-ai-message p{margin:0 0 16px;line-height:1.5}
#workspace-ai-message strong{display:block;margin:0 0 4px;font-size:15px;font-weight:600}
#workspace-ai-message .workspace-ai-footer{font-size:15px;color:var(--ink-3)}

@supports (font:-apple-system-body) and (-webkit-appearance:none){input[type=date][data-empty]:not(:focus)::-webkit-datetime-edit{opacity:0}}#match-status:empty,#referrer-search-status:empty{display:none}.referrer-picker .notes-heading{margin:0 0 2px}

/* ---- Potentials. The pipeline and Incoming are lists of rows. A serif name, a gray line under it, the age on the right, a hairline between rows. */
.potential-screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.potentials-panel{padding:0}
#potentials-list-view{width:100%;max-width:712px;margin-inline:auto}
#potentials-list-view>*,#incoming-view>*{margin-inline:var(--gutter)}
#potentials-list-view>.potential-sections,#potentials-list-view>.potential-list,#potentials-list-view>#incoming-view,#incoming-view>#incoming-list{margin-inline:0}
/* The search box gets its own line, on a phone and in the narrow list beside an open person, so its words are not cut off. */
.potential-find{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.potential-find input{flex:1 1 100%;min-width:0;margin:0}.potential-find select{flex:1;width:auto;max-width:none;margin:0}.potential-find button{flex:none}
.potential-options{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--edge)}.potential-options .inline-status{flex-basis:100%;margin:0}.potential-options [role=group]{display:flex;gap:4px}.potential-options button{font-size:14px;padding:8px 6px;min-width:44px}.potential-options>button:first-child{margin-left:-6px}.potential-options [aria-pressed=true]{border-color:var(--blue);background:var(--blue-wash);color:var(--ink)}
.incoming-group{margin:0;padding:20px var(--gutter) 7px;border-bottom:1px solid var(--edge);font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.potential-group{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.potential-group-count{letter-spacing:0;font-variant-numeric:tabular-nums}
.potential-list{margin-top:0}.potential-row{display:block;width:100%;min-height:0;padding:12px var(--gutter);border:0;border-bottom:1px solid var(--edge-2);border-radius:0;background:transparent;text-align:left;overflow-wrap:anywhere}.potential-row strong{display:block;font-family:var(--serif);font-size:17px;font-weight:600;line-height:1.3}.potential-row span{display:block;font-size:14px;line-height:1.45;margin-top:2px}.potential-row .potential-row-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:0}.potential-row-head strong{flex:1;min-width:0}.potential-row .potential-row-age{flex:none;margin:0;font-size:13px;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}.potential-row .potential-row-about{color:var(--ink-2)}.potential-row .potential-row-summary{color:var(--ink-3);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.potential-row .potential-row-state{color:var(--ink-3)}.potential-row .potential-row-next{color:var(--rust);font-weight:600}
.potential-row:focus-visible{outline-offset:-3px}
.potential-row[aria-current=true],.potential-row[aria-current=true]:hover:not(:disabled){background:var(--blue-wash);box-shadow:inset 3px 0 0 var(--blue)}
.potential-notice{font-size:14px;margin:0}.potential-notice:empty{display:none}
.potential-list-notice:has(.potential-notice:empty),.potential-more-actions:not(:has(button:not([hidden]))){display:none}
.potential-list-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px;margin-top:12px;padding:4px 12px;border-left:4px solid var(--blue);border-radius:6px;background:var(--blue-wash)}
.potential-list-notice .potential-notice{flex:1;padding:6px 0;font-weight:600}
.potential-list-recovery{margin-top:12px;padding:10px 12px;border:1px solid var(--edge);border-left:4px solid var(--rust);border-radius:8px}
.potential-list-recovery .inline-status{margin:0 0 4px}
#potentials-status,#incoming-status{margin-top:10px}#potentials-more{margin-top:8px}
.potential-coverage{font-size:14px;color:var(--ink-3);margin-top:16px;overflow-wrap:anywhere}.potential-coverage p{font-size:14px;margin:8px 0}.potential-empty{font-size:16px;color:var(--ink-3);padding:16px 0}.potential-list .potential-empty,#incoming-list .potential-empty{margin:0;padding:16px var(--gutter)}.potential-error{color:var(--rust)}
.potential-about summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-size:14px}.potential-about p{margin:6px 0}

/* ---- one person. The head carries the name on navy, the way a case does in Demand. */
.lead-head{padding:4px max(var(--gutter),calc(50% - 340px)) 12px;background:var(--navy);color:var(--on-navy)}
.lead-head .panel-heading{margin:0 -6px 2px;padding:0;border:0}
.lead-head .quiet-button{color:var(--sky);text-decoration-color:var(--on-navy-edge)}
.lead-head .quiet-button:hover:not(:disabled){background:var(--on-navy-wash)}
.lead-head :focus-visible{outline-color:var(--sky)}
.potentials-panel #potential-name{margin:0;font-size:28px;line-height:1.12;letter-spacing:-.01em;color:var(--on-navy)}
#potential-name:focus-visible{outline:2px solid var(--sky);outline-offset:4px}
.potential-standing{margin:5px 0 0;font-size:14px;color:var(--on-navy-2)}.potential-standing:empty{display:none}
.potential-contact{display:flex;flex-wrap:wrap;gap:0 20px;overflow-wrap:anywhere;margin:2px 0 0}.potential-contact:empty{display:none}
.potential-link{display:inline-flex;align-items:center;min-height:44px;color:var(--blue);text-decoration:none;font-size:16px}
.potential-link-quiet{color:var(--ink-2);font-size:14px}
.lead-head .potential-link{color:var(--sky);text-decoration:underline;text-decoration-color:var(--on-navy-edge);text-underline-offset:3px}
.lead-head .potential-link-quiet{color:var(--on-navy-2)}
.lead-body{padding:16px max(var(--gutter),calc(50% - 340px)) 28px}
.potential-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.potential-detail-actions:not(:has(button:not([hidden]))){display:none}
.potential-more-actions{margin:0 0 14px}.potential-more-actions .potential-detail-actions{margin:0}
.overview-facts,.potential-fields{display:grid;grid-template-columns:minmax(92px,32%) 1fr;margin:0 0 14px;border-top:1px solid var(--edge)}
.overview-facts dt,.potential-fields dt{padding:9px 12px 9px 0;border-bottom:1px solid var(--edge-2);font-size:14px;color:var(--ink-3)}
.overview-facts dd,.potential-fields dd{margin:0;padding:8px 0;border-bottom:1px solid var(--edge-2);font-size:16px;overflow-wrap:anywhere}
.potential-fields:empty{display:none}
.potential-overview{margin:22px 0 14px}
.potential-overview h3,.potential-history-title{margin:0 0 10px;font-size:21px;line-height:1.2;font-weight:600;color:var(--ink)}
.potential-overview h3{padding-bottom:8px;border-bottom:1px solid var(--edge)}
.potential-overview p{margin:0 0 8px;font-size:16px;line-height:1.5}.potential-overview .overview-quiet{color:var(--ink-2)}
.overview-next{display:grid;grid-template-columns:minmax(92px,32%) 1fr;gap:4px 12px;padding:11px 14px;border-left:4px solid var(--blue);border-radius:6px;background:var(--blue-wash)}.overview-label{font-size:14px;color:var(--ink-2);padding-top:2px}.overview-next span+span{font-weight:600}
.overview-missing{padding:0;border:0;border-radius:0;background:none}.overview-missing .overview-label{color:var(--ink-3)}.overview-missing span+span{font-weight:400}
.overview-source{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px!important;color:var(--ink-3);margin:2px 0 0!important}
.overview-sources{margin:0 0 8px;font-size:14px;overflow-wrap:anywhere}.overview-sources summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--blue)}.overview-sources strong{font-size:14px}.overview-sources blockquote{margin:4px 0 12px;padding-left:10px;border-left:2px solid var(--edge);white-space:pre-wrap}.potential-overview .overview-limit{font-size:14px;color:var(--rust)}
.potential-overview .overview-source-parts{font-size:13px;color:var(--ink-3);margin:2px 0 4px}
.overview-details{margin:0 0 4px}.overview-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;color:var(--blue)}
.overview-details summary::after,.overview-sources summary::after,.potential-about summary::after{content:"";width:8px;height:8px;border:solid var(--ink-3);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-4px 4px 0 auto;flex:none}.overview-details[open] summary::after,.overview-sources[open] summary::after,.potential-about[open] summary::after{transform:rotate(225deg);margin-top:4px}
.potential-decline-panel,.potential-note-panel{margin:0 0 14px;padding:14px 16px;border:2px solid var(--action);border-radius:10px;background:var(--paper)}
.potential-decline-panel p{margin:0 0 10px}.potential-decline-panel .actions{margin:0}.potential-decline-choices{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.potential-decline-choices [aria-pressed=true]{border-color:var(--blue);background:var(--blue-wash);font-weight:600}
.potential-note-panel h3{margin:0 0 12px}.potential-note-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.potential-note-review dl{margin:0}.potential-note-review dt{font-size:14px;color:var(--ink-3);margin-top:12px}.potential-note-review dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.potential-note-review p{font-size:14px;color:var(--ink-3)}
.potential-sign-state{white-space:pre-line;font-size:15px;color:var(--ink-2);margin:0 0 10px}.potential-sign-state:empty{display:none}#potential-sign-note{margin:-4px 0 10px -6px}#potential-sign-mail{padding:0 6px}
.potential-history-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:26px 0 0;padding-bottom:8px;border-bottom:1px solid var(--edge)}.potential-history-head .potential-history-title,.potential-history-head .inline-status{margin:0}
/* History. The subject is the serif line, and what it is and when sits under it in small gray. */
.potential-activity{display:flex;flex-direction:column;padding:12px 0;border-bottom:1px solid var(--edge-2)}
.potential-activity h3{order:0;margin:0;font-size:17px;line-height:1.35;font-weight:600}
.potential-activity .activity-date{order:3;font-size:13px;color:var(--ink-3);margin:2px 0 0}.potential-activity .activity-date:first-child{order:1}
.potential-activity .activity-wrap{order:2;margin-top:6px}
.potential-activity .activity-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.55;color:var(--ink-2);margin:0}
.activity-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.activity-more{min-height:44px;padding:6px 0;border:0;background:none;color:var(--blue);font-size:14px;text-decoration:underline;text-underline-offset:3px}.activity-more:hover:not(:disabled){background:none;color:var(--ink)}
#potential-activity-more{margin-top:12px}

/* ---- an incoming email that stops at the email */
#incoming-detail h2{margin:6px 0 12px;font-size:24px}#incoming-back{margin:6px 0 0 -6px}#incoming-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.55;margin:12px 0 0}#incoming-reason{font-size:14px;overflow-wrap:anywhere;margin-top:8px}#incoming-reason summary{cursor:pointer;min-height:44px;display:flex;align-items:center}#incoming-reason p{font-size:14px}#incoming-settings{border-top:1px solid var(--edge);padding-top:8px;margin-top:12px}#incoming-settings .inline-status{font-size:14px}#incoming-settings a,#incoming-settings button{display:block;margin:8px 0}

/* Wide screens such as an iPad. The list stays on the left and the open person sits on the right,
   and each side scrolls on its own. Below 760 pixels wide or 600 tall nothing here applies, so the
   phone (upright or sideways) and Outlook layouts are unchanged. */
.potential-pane-empty{display:none}
@media(min-width:760px) and (min-height:600px){
body:has(#potentials-panel:not([hidden])){display:flex;flex-direction:column;height:100dvh;padding-bottom:0;overflow:hidden}
:where(body:has(#potentials-panel:not([hidden])))>*{flex:none;align-self:center;width:calc(100% - 32px);max-width:680px}
.intake-heading,.app-navigation{align-self:stretch;width:auto;max-width:none}
.potentials-panel:not([hidden]){align-self:stretch;width:auto;max-width:none;flex:1;min-height:0;display:grid;grid-template-columns:clamp(280px,32%,400px) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.potentials-panel #potentials-list-view,.potentials-panel #potentials-list-view[hidden]{display:block!important;max-width:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;padding-bottom:24px;border-right:1px solid var(--edge)}
.potentials-panel .potential-sections{position:sticky;top:0;z-index:1}
/* The head stays put and the page under it scrolls, so the name is always in view. */
.potentials-panel #potential-detail{grid-column:2;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.potentials-panel .lead-head{flex:none;padding:6px 28px 12px}
.potentials-panel .lead-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 28px 40px}
.potentials-panel .lead-body>*{max-width:860px}
.potentials-panel #potential-name{font-size:30px;line-height:1.1}
.potentials-panel #potential-detail[hidden]+.potential-pane-empty{display:block;grid-column:2;margin:0;padding:96px 24px;text-align:center;font-family:var(--serif);font-size:22px;color:var(--ink-3)}
.potentials-panel #potentials-list-view:has(#incoming-view:not([hidden])){grid-column:1/-1;border-right:0}
.potentials-panel #potentials-list-view:has(#incoming-view:not([hidden]))>:not(.potential-sections){margin-inline:max(var(--gutter),calc(50% - 380px))}
.potentials-panel #potentials-list-view:has(#incoming-view:not([hidden]))>#incoming-view{margin-inline:max(0px,calc(50% - 380px - var(--gutter)))}
.potentials-panel:has(#incoming-view:not([hidden])) .potential-pane-empty{display:none!important}
.potentials-panel .potential-fields,.potentials-panel .overview-facts,.potentials-panel .overview-next{grid-template-columns:minmax(120px,22%) 1fr}
}
/* With room to spare, Back and Refresh sit to the right of the name and the head is one line shorter. */
@media(min-width:1180px) and (min-height:600px){
.potentials-panel .lead-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:start;padding-top:16px}
.potentials-panel .lead-head>*{grid-column:1}
.potentials-panel .lead-head .panel-heading{grid-column:2;grid-row:1/span 3;margin:-6px -6px 0 0}
}

/* ---- narrow. The bar tightens, and nothing runs off the side. */
@media(min-width:701px){body[data-stage]{--gutter:20px}}
@media(min-width:701px) and (pointer:fine){.utility-actions button,.bar-home{min-height:38px}}
@media(min-width:701px){.entry-actions .primary{width:auto;min-width:220px}.review-actions .primary{flex:0 1 auto;min-width:220px}}
@media(max-width:430px){.intake-heading{gap:10px}.bar-name{font-size:21px}.utility-actions{gap:6px}.utility-actions button{padding:6px 10px}#intake-title{margin:16px 0 12px;font-size:24px}.potentials-panel #potential-name{font-size:26px}}
@media(max-width:340px){#review-more .row{grid-template-columns:1fr}.capture-tools{gap:4px}.utility-actions{gap:4px}.intake-heading{gap:8px}.bar-name{font-size:19px}}

/* Fields that can be changed on a person's page. They open in place, in a frame, under the button that was pressed. */
.potential-update{margin:0 0 14px}
#potential-update-editor{padding:14px 16px 16px;border:2px solid var(--action);border-radius:10px;background:var(--paper)}
.potential-update-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}
.potential-update-form label{margin:0 0 10px}
.potential-update-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.potential-update .inline-status{margin:8px 0 0}
#potential-update-check{margin-left:-6px}
@media(max-width:430px){#potential-update-editor{padding:12px 12px 14px}}
@media(max-width:355px){.potential-update-form{grid-template-columns:minmax(0,1fr)}}
/* The moved-to-Completed line uses the screen's blue, not pale green. Owner taste, November 18, 2026. */
.potential-notice{color:var(--ink);background:none}
/* The contact log in one line (Dan, November 21, 2026). The call, when it is due, what happened, a note, Log. */
.potential-contact-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 6px}.potential-contact-line strong{font-size:16px}.potential-contact-when{color:var(--ink-2)}.potential-contact-now .potential-contact-when{font-weight:600;color:inherit}.potential-contact-line .potential-row-late{color:var(--rust);font-weight:600}.potential-contact-line select{width:auto;max-width:min(100%,300px)}.potential-contact-line .potential-contact-note{flex:1 1 110px;min-width:90px;width:auto}
.potential-contact-list{list-style:none;margin:0 0 8px;padding:0}.potential-contact-list li{margin:0 0 2px;overflow-wrap:anywhere}
/* Call questions on a person's screen. A numbered list in readable type. Tapping a question marks it asked. */
.potential-questions-list{list-style:none;margin:0;padding:0}.potential-questions-list li+li{border-top:1px solid var(--edge)}
.potential-question{display:flex;align-items:flex-start;gap:10px;width:100%;min-height:48px;padding:12px 0;border:0;border-radius:0;background:none;text-align:left;font-size:17px;line-height:1.45}
.potential-question-mark{flex:0 0 30px;color:var(--ink-3);font-variant-numeric:tabular-nums}.potential-question-text{flex:1;min-width:0;overflow-wrap:anywhere}
.potential-question[aria-pressed=true] .potential-question-text{color:var(--ink-3)}.potential-question[aria-pressed=true] .potential-question-mark{color:var(--blue);font-weight:600}
.potential-questions-panel .inline-status{margin:10px 0 0;font-size:14px}.potential-questions-panel .actions{margin:12px 0 0}
