/* Intake shares the journal's answer cards and the app's twilight palette. */
.patient-dialog[data-intake-screen] {
  --j-peach:#edb596; --j-soft:#c5c9bd;
  box-sizing:border-box;width:min(880px,calc(100vw - 48px));max-width:100%;max-height:94dvh;padding:0;
  border:1px solid #e7d6be45;border-radius:28px;overflow-y:auto;color:var(--ink);
  background:radial-gradient(ellipse at 90% 5%,#4e342b 0,transparent 63%),radial-gradient(ellipse at 5% 96%,#213f40 0,transparent 65%),#111918;
}
.sc-shell {display:flex;flex-direction:column;min-height:min(590px,86dvh);padding:clamp(22px,4vw,44px);}
.sc-head {display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;min-height:44px;}
.sc-head.steps {grid-template-columns:1fr auto 1fr;}
.sc-counter {color:var(--j-soft);font-size:.9rem;font-variant-numeric:tabular-nums;}
.sc-bars {display:flex;gap:6px;margin:22px 0 3px;}
.sc-bars i {flex:1;height:3px;overflow:hidden;background:#cfccb735;border-radius:99px;}
.sc-bars b {display:block;height:100%;background:linear-gradient(90deg,#a8c4bb,#e5b391);}
.sc-cover {max-width:600px;margin:auto;display:grid;gap:16px;justify-items:center;text-align:center;padding:36px 0;}
#night-root .sc-tag,#night-root .pg-kicker {margin:0;color:#e6ba96;font:560 .73rem/1.45 var(--sans);letter-spacing:.11em;text-transform:uppercase;}
#night-root .sc-cover h2,#night-root .sc-prompt h2,#night-root .sc-review h2 {margin:0;color:var(--ink);font:400 clamp(2.2rem,5vw,3.75rem)/1.09 var(--serif);letter-spacing:-.045em;text-wrap:balance;}
#night-root .sc-cover>p:not(.sc-tag) {max-width:49ch;margin:0;color:#e4e4d6;font-size:1.04rem;line-height:1.55;}
#night-root .sc-cover>p.sc-small {color:var(--j-soft);font-size:.9rem;}
.sc-cover-actions {display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;margin-top:12px;}
.sc-body {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;flex:1;gap:clamp(25px,5vw,62px);padding:30px 0 8px;}
.sc-prompt,.sc-pane {min-width:0;}
#night-root .sc-prompt h2 {margin-top:12px;font-size:clamp(2.1rem,4vw,3.1rem);}
#night-root .sc-context,#night-root .sc-support {margin:15px 0 0;color:var(--j-soft);font-size:.92rem;line-height:1.5;}
#night-root .sc-support {font-size:.86rem;}.sc-support a {color:var(--ink);}
.sc-pane {display:grid;gap:14px;justify-items:stretch;}
.sc-pane .j-answers {display:grid;gap:8px;}
#night-root .sc-pane .j-primary {max-width:none;margin-top:3px;}
#night-root .sc-pane .j-choice {min-height:46px;}
#night-root .sc-pane .p-form-error:empty {display:none;}
.sc-review {padding:28px 0;}.sc-review .sc-tag {margin-bottom:8px!important;}
.sc-review details,.pg-answers details {border-bottom:1px solid var(--p-line);}
.sc-review details:first-of-type {margin-top:24px;}
.sc-review summary,.pg-answers summary {min-height:51px;padding:13px 0;cursor:pointer;font-weight:550;}
.sc-review dl,.pg-answers dl {display:grid;gap:15px;margin:0 0 20px;}
.sc-review dt,.pg-answers dt {color:var(--p-muted);font-size:.89rem;}
.sc-review dd,.pg-answers dd {margin:5px 0 0;color:var(--p-cream);overflow-wrap:anywhere;white-space:pre-line;}
.sc-immediate:not(:empty) {margin-top:15px;padding:12px 14px;border-left:2px solid var(--j-peach);border-radius:0 12px 12px 0;background:#e9ba920c;text-align:left;}
#night-root .sc-immediate p {margin:0;color:#f0e3d4;font:.89rem/1.5 var(--sans);}
#night-root .sc-immediate .sc-support {margin-top:5px;}
#night-root .sc-review .sc-scores {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 12px;}
.sc-scores div {min-width:0;border:1px solid #dec9ae40;border-radius:14px;padding:10px;background:#121b1a82;}
#night-root .sc-scores dt {font-size:.72rem;font-weight:600;}
#night-root .sc-scores dd {margin:3px 0 0;color:var(--p-cream);font:400 1.5rem/1.15 var(--serif);}
.sc-scores small {font:.74rem var(--sans);color:var(--j-soft);}
.pg-acute-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-width:490px;margin-top:22px;}
.pg-acute-days div {display:grid;place-content:center;text-align:center;min-height:56px;gap:3px;border:1px solid var(--p-line);border-radius:13px;}
.pg-acute-days .logged {background:#9fc8b81c;border-color:#9fc8b880;}
.pg-acute-days span {color:var(--p-muted);font-size:.7rem;}.pg-acute-days b {font:400 1.15rem var(--serif);}
@media(max-width:390px){#night-root .sc-review .sc-scores {grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Programme overview and Anna conversations. */
.pg-switch {display:inline-flex;gap:3px;padding:3px;margin:0 0 20px;border:1px solid var(--p-line);border-radius:99px;background:#0c191960;}
#night-root .pg-switch button {min-height:39px;padding:6px 17px;border-radius:99px;color:var(--p-muted);font-size:.89rem;}
#night-root .pg-switch [aria-pressed=true] {color:#f4eadb;background:#ddd5b91e;box-shadow:inset 0 0 0 1px #dfdbc724;}
.pg-overview,.pg-stats {min-width:0;}
.pg-hero {overflow:hidden;padding:clamp(22px,4vw,40px);border:1px solid #e7d9bb36;border-radius:25px;
  background:radial-gradient(ellipse at 92% 4%,#68442d85,transparent 68%),radial-gradient(ellipse at 0% 100%,#34585891,transparent 65%),#18201f;}
#night-root .pg-hero h2 {margin:9px 0 10px;color:var(--p-cream);font:400 clamp(2.18rem,6.1vw,3.7rem)/1.02 var(--serif);letter-spacing:-.049em;text-wrap:balance;}
#night-root .pg-hero>p:not(.pg-kicker) {max-width:53ch;color:#d1d6c9;font-size:.98rem;line-height:1.52;margin:0 0 18px;}
.pg-weeks {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:25px;max-width:660px;}
.pg-weeks>div>span {display:block;margin-bottom:7px;color:#d7d8c7;font-size:.69rem;letter-spacing:.02em;}
.pg-weeks>div>div {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
.pg-weeks i {height:4px;border-radius:5px;background:#e3dfc135;}
.pg-weeks i.past {background:#93b6aa;}.pg-weeks i.now {background:#f0ac83;box-shadow:0 0 7px #e5a07766;}
.pg-notice {display:flex;align-items:center;gap:11px;padding:10px 12px;margin-bottom:14px;border:1px solid #d3c2a438;border-radius:17px;background:#f6dda409;}
.pg-bell,.pg-symbol {color:var(--p-accent);display:grid;place-items:center;flex:none;}
.pg-notice>div {min-width:0;flex:1;}.pg-notice strong,.pg-notice small {display:block;overflow-wrap:anywhere;}
.pg-notice strong {font-size:.91rem;font-weight:550;}.pg-notice small {margin-top:3px;color:var(--p-muted);font-size:.72rem;}
#night-root .pg-notice button,#night-root .pg-pause {min-height:44px;color:#efd0ad;font-size:.84rem;white-space:nowrap;padding:4px 6px;}
.pg-columns {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(18px,4vw,38px);}
.pg-heading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:27px 0 12px;}
#night-root .pg-heading h2 {margin:0;color:var(--p-cream);font:400 clamp(1.48rem,3vw,1.95rem)/1.11 var(--serif);letter-spacing:-.027em;}
.pg-heading>span,.pg-meta,.pg-muted,.pg-visit-note {color:var(--p-muted);font-size:.82rem;}
.pg-modules,.pg-meetings,.pg-knowledge {list-style:none;margin:0;padding:0;border:1px solid var(--p-line);border-radius:19px;background:#16232260;overflow:hidden;}
.pg-modules li+li,.pg-meetings button+button,.pg-knowledge button+button {border-top:1px solid var(--p-line);}
#night-root .pg-modules button,#night-root .pg-meetings button,#night-root .pg-knowledge button {display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;min-height:60px;color:var(--p-cream);text-align:left;}
#night-root .pg-modules button:disabled {cursor:default;color:#b5b8ab;opacity:1;}
.pg-num,.pg-day {display:grid;place-content:center;text-align:center;flex:none;width:34px;height:34px;border-radius:50%;border:1px solid #babfa75c;color:#e1c9a7;font:400 1.16rem/1 var(--serif);}
.pg-num.started,.pg-num.done {border-color:#dba780;}.pg-num.done {color:#a6cabe;border-color:#a6cabe;}
.pg-row-text {flex:1;min-width:0;}.pg-row-text b,.pg-row-text small{display:block;}
.pg-row-text b {font-size:.98rem;font-weight:510;line-height:1.22;}.pg-row-text small {margin-top:4px;color:var(--p-muted);font-size:.76rem;}
.pg-modules button>svg,.pg-meetings button>svg,.pg-knowledge button>svg {flex:none;color:#c6bba7;}
.pg-mini {display:flex;align-items:flex-start;gap:14px;margin:16px 0 0;padding:18px;border:1px solid #c3d6bc33;border-radius:19px;background:linear-gradient(120deg,#29423d99,#15201e44);}
.pg-symbol {margin-top:4px; color:#a7cbc4;}
#night-root .pg-mini h3 {margin:5px 0;font:400 1.5rem/1.13 var(--serif);}
#night-root .pg-mini p:not(.pg-kicker) {margin:0;font-size:.86rem;line-height:1.45;color:var(--p-muted);}
.pg-day {height:41px;width:41px;border-radius:12px;gap:2px;background:#e7d4ac0d;border-color:#c2b89c35;}
.pg-day small {font:500 .6rem/1 var(--sans);letter-spacing:.07em;text-transform:uppercase;}
#night-root .pg-knowledge button {min-height:50px;font-size:.91rem;}
.pg-demo-link,.pg-dialogue footer a {display:inline-flex;align-items:center;min-height:44px;color:#e9bc97;font-size:.84rem;text-decoration:underline;text-underline-offset:3px;}
.patient-nav [data-p-tab=diary] {position:relative;}
.pg-nav-badge {position:absolute;top:5px;left:calc(50% + 7px);height:8px;width:8px;border-radius:50%;background:#efaa80;box-shadow:0 0 0 2px #242b28;}
.pg-notices {display:grid;gap:6px;}#night-root .pg-notices button:not(.p-inline) {display:grid;justify-items:start;gap:4px;min-height:51px;padding:10px 12px;text-align:left;background:#e7d9b90a;border-radius:11px;}
.pg-notices b {font-weight:530;}.pg-notices span,.pg-quote small {display:block;color:var(--p-muted);font-size:.75rem;}
.pg-quote {border-left:2px solid var(--p-accent);margin:16px 0;padding:5px 13px;overflow-wrap:anywhere;}.pg-quote small{margin-bottom:5px;}
.pg-stat-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--p-line);border-radius:18px;padding:17px 4px;background:#14222170;}
.pg-stat-counts>div {padding:0 11px;}.pg-stat-counts>div+div{border-left:1px solid var(--p-line);}
.pg-stat-counts b,.pg-stat-counts span,.pg-answers summary b,.pg-answers summary small {display:block;}
.pg-stat-counts b {font:400 1.98rem var(--serif);}
.pg-stat-counts span,.pg-answers small,.pg-meta {font-size:.75rem;color:var(--p-muted);}
.pg-answers summary {display:flex;justify-content:space-between;gap:10px;align-items:center;list-style:none;}
.pg-answers summary::-webkit-details-marker{display:none;}.pg-answers details[open] summary>svg{transform:rotate(90deg);}
.pg-answers summary b {margin:4px 0;font-weight:520;}.pg-meta {display:inline-flex;align-items:center;gap:6px;}
.pg-anna-shortcut,.pg-replies,.pg-finish-actions {display:flex;flex-wrap:wrap;gap:7px;}
#night-root .pg-chip,#night-root .pg-replies button {min-height:43px;padding:9px 15px;border:1px solid #d1c1a44a;border-radius:25px;color:#f0d8b4;background:#e2c79d0c;font-size:.87rem;text-align:left;}
.pg-dialogue {max-width:660px;margin:auto;min-width:0;}.pg-dialogue>header {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font-size:1.1rem;font-weight:530;}
.pg-dialogue>header .round-control{justify-self:start;}.pg-dialogue>header .pg-pause{justify-self:end;}
.pg-dialogue-title {margin:clamp(30px,5.5svh,58px) 0 24px;}
#night-root .pg-dialogue-title h1 {margin:6px 0 5px;font:400 clamp(2.25rem,6.5vw,3.45rem)/1.08 var(--serif);letter-spacing:-.044em;overflow-wrap:anywhere;}
#night-root .pg-dialogue-title>p:last-child,#night-root .pg-transcript p {color:#cbd0c1;font-size:.95rem;line-height:1.5;}
.pg-transcript {display:grid;gap:15px;}.pg-exchange {display:grid;gap:8px;}
.pg-exchange blockquote {justify-self:end;max-width:90%;margin:0;border:1px solid var(--p-line);border-radius:17px 17px 4px 17px;background:#e0c8a510;padding:10px 14px;white-space:pre-wrap;overflow-wrap:anywhere;}
.pg-current small {display:block;margin:2px 0 5px;color:var(--p-accent);font-size:.8rem;}
#night-root .pg-current h2 {font:400 clamp(1.4rem,3.9vw,1.9rem)/1.24 var(--serif);letter-spacing:-.018em;margin:0;text-wrap:pretty;}
.pg-response,.pg-finish-actions {margin:18px 0 9px;}
.pg-response form {margin-top:22px;}.pg-response label {color:var(--p-muted);font-size:.82rem;}
.pg-response form>div {display:flex;align-items:center;gap:9px;margin-top:5px;}
.pg-response textarea {width:100%;min-width:0;min-height:49px;border:1px solid var(--p-line);border-radius:13px;background:#131b1bc9;color:var(--p-cream);padding:10px;font:400 1rem/1.3 var(--sans);resize:vertical;}
.pg-response form button {flex:none;}
.pg-dialogue footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;}
.pg-finish {display:flex;align-items:center;gap:10px;color:var(--aqua);}
@media(hover:hover) {
  #night-root .pg-modules button:enabled:hover,#night-root .pg-meetings button:hover,#night-root .pg-knowledge button:hover,#night-root .pg-replies button:hover {background:#eee5c911;}
}
@media(max-width:739px){
  .patient-dialog[data-intake-screen] {width:100%;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;}
  .sc-shell {box-sizing:border-box;min-height:100%;padding:max(15px,env(safe-area-inset-top)) max(21px,env(safe-area-inset-right)) max(21px,env(safe-area-inset-bottom)) max(21px,env(safe-area-inset-left));}
  .sc-body {width:min(100%,450px);margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:22px;padding:25px 0 4px;}
  .sc-prompt {text-align:center;}#night-root .sc-prompt h2 {font-size:clamp(1.94rem,7.4vw,2.65rem);}
  .sc-bars {margin-top:15px;}.sc-cover-actions{flex-direction:column;gap:4px;}
  .sc-cover-actions .p-primary,.sc-cover-actions .p-secondary {min-width:180px;}
  .pg-columns {grid-template-columns:1fr;gap:0;}.pg-hero{padding:21px 18px;}
  .pg-notice {gap:8px;}.pg-weeks {gap:6px;}.pg-weeks>div>div {gap:2px;}
}
@media(max-width:380px){
  .pg-stat-counts>div{padding:0 7px;}.pg-notice strong{font-size:.84rem;}
  #night-root .pg-notice button{font-size:.76rem;}
}
