.private-account { --muted: #506571; --line: #dcded6; }
.private-account main { max-width:1180px; padding-top:42px; }
.private-account h1 { margin:4px 0 18px; font-size:clamp(2.1rem,4vw,3.1rem); font-weight:400; }
.private-account h2 { font:600 1.35rem/1.3 system-ui,sans-serif; margin:0 0 12px; }
.private-account p { line-height:1.55; }
.account-heading,.account-session { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.eyebrow { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.free-badge { padding:16px 22px; background:#e6eddd; border-radius:16px; display:flex; gap:24px; align-items:center; font-size:.9rem; }
.free-badge strong { font-size:1.6rem; white-space:nowrap; }
.private-account .intro { max-width:870px; font-size:1.12rem; margin:0 0 14px; }
.privacy-note { color:var(--muted); font-size:.9rem; max-width:930px; }
.auth-area { display:flex; flex-wrap:wrap; gap:16px 32px; padding:18px 0; border-bottom:1px solid var(--line); }
.auth-area details[open] { flex-basis:100%; }
.auth-area summary { cursor:pointer; text-underline-offset:5px; }
.account-session { border-block:1px solid var(--line); padding:12px 0; }
.private-account .quiet { color:#102a36; background:transparent; border:1px solid #b8c2bc; padding:10px 14px; font-size:.93rem; }
.people-section { padding:32px 0; }
.people-section>p { font-size:.94rem; color:var(--muted); }
.people-grid { display:flex; flex-wrap:wrap; gap:12px; margin:22px 0 16px; }
.person { position:relative; border:2px solid transparent; border-radius:17px; padding:19px 16px 13px; min-height:99px; width:180px; box-sizing:border-box; cursor:grab; user-select:none; }
.person.is-selected { border-color:#688879; }
.private-account .person.is-draft { padding-bottom:42px; }
.private-account .person .reset-pin{margin-top:12px;padding:8px;font-size:.8rem;width:100%;cursor:pointer}
.private-account #profile-pin-dialog{max-width:560px;width:calc(100% - 32px);box-sizing:border-box;border:2px solid #986000;border-radius:16px;padding:24px;color:#102a36;background:#fffdf8;overflow-wrap:anywhere}
.private-account #profile-pin-dialog::backdrop{background:#102a3699}
.private-account #reset-start-pin{font:700 2.2rem/1.4 ui-monospace,monospace;letter-spacing:.15em;white-space:nowrap}
.private-account #profile-pin-dialog form{padding:0;border:0;background:none}
.person.is-unselected { opacity:.65; }
.person label { display:block; padding-right:28px; font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.private-account .person input[type=checkbox] { position:absolute; top:14px; right:12px; width:19px; height:19px; accent-color:#2f5a49; margin:0; cursor:pointer; }
.person small { display:block; font-size:.72rem; margin-top:13px; overflow-wrap:anywhere; }
.private-account .person .remove-person { position:absolute; right:6px; bottom:4px; border:0; background:none; color:var(--muted); padding:4px 8px; font-size:1.1rem; }
.private-account .person-form { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:0; background:transparent; border:0; }
.person-form label { flex:0 1 315px; font-size:.88rem; }
.private-account .person-form input { background:#fffdf8; margin-top:7px; }
.private-account .add-person { border-style:dashed; min-height:46px; }
.choice-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr); gap:42px; padding:28px 0; border-top:1px solid var(--line); }
.pricing { min-width:0; }
.price-note { margin-top:0; color:var(--muted); font-size:.85rem; }
.table-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:17px; background:#fffdf8; }
.private-account table { width:100%; border-collapse:separate; border-spacing:0; min-width:430px; }
.private-account th,.private-account td { padding:0; border:0; border-bottom:1px solid #e5e6df; text-align:center; vertical-align:top; }
.private-account thead th { font-size:.8rem; padding:17px 8px; background:#eff0e8; font-weight:600; }
.private-account tbody th { width:31%; padding:22px 14px; text-align:left; font-size:.92rem; font-weight:500; }
.private-account td { width:23%; border-left:1px solid #e5e6df; }
.private-account tr:last-child>* { border-bottom:0; }
.private-account .price-choice { width:100%; height:100%; min-height:102px; border:0; border-radius:0; background:transparent; color:#102a36; padding:17px 6px 12px; display:flex; flex-direction:column; align-items:center; gap:5px; font-size:1.06rem; }
.private-account .price-choice:hover,.private-account .price-choice:focus-visible { background:#eef4ec; }
.private-account .price-choice.has-people { background:#f2f6ef; }
.price-choice.drag-over { outline:3px dashed #537663; outline-offset:-4px; }
.private-account .price-choice:disabled { opacity:1; color:#7b888a; cursor:default; }
.price-choice small { font-size:.68rem; color:var(--muted); }
.chips { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; }
.person-chip { display:inline-block; padding:3px 7px; border-radius:7px; color:#18342c; font-size:.72rem; max-width:105px; overflow-wrap:anywhere; }
.purchase-help { padding-top:2px; }
.purchase-help ol { padding-left:24px; margin:18px 0; }
.purchase-help li { padding:0 0 14px 8px; font-size:.94rem; line-height:1.6; }
.purchase-help li::marker { color:#648073; }
.minimum-note { border-left:3px solid #9eaf88; padding-left:15px; font-size:.93rem; }
.muted { color:var(--muted); font-size:.87rem; }
.summary { border-top:1px solid var(--line); padding:28px 0; display:grid; grid-template-columns:1fr auto; gap:6px 20px; }
.summary output { font-size:2.3rem; font-weight:500; white-space:nowrap; }
.summary #coverage { grid-column:1/-1; color:#796123; font-size:.9rem; }
.private-account #checkout { grid-column:1/-1; padding:22px; display:flex; gap:22px; flex-wrap:wrap; align-items:center; }
#checkout>label { flex:1 1 200px; font-size:.9rem; }
#checkout>div { flex:1 1 290px; font-size:.85rem; }
#checkout>div p { margin:5px 0; }
#legal-links { display:flex; flex-wrap:wrap; gap:16px; }
.private-account #buy { font-size:1rem; }
.private-account button:disabled { cursor:not-allowed; opacity:.5; }
.private-account #message:empty,.private-account #coverage:empty,.private-account #local-warning:empty { display:none; }
.private-account #issued { overflow-wrap:anywhere; }
.private-account #purchase-details { margin:16px 0; }
.private-account .purchase-history { min-width:680px; }
.private-account .purchase-history td { width:auto; padding:14px 12px; font-size:.88rem; overflow-wrap:anywhere; }
.summary #order-lines,.summary .checkout-info { grid-column:1/-1; }
#order-lines { list-style:none; padding:0; margin:6px 0 16px; }
#order-lines li { padding:12px 0; border-bottom:1px solid var(--line); }
#order-lines strong,#order-lines span { display:block; overflow-wrap:anywhere; }
#order-lines span { font-size:.9rem; color:var(--muted); margin-top:4px; }
.checkout-info { margin:0 0 10px; }
#checkout .email-purpose { display:block; margin-top:8px; line-height:1.5; }
.private-account #checkout .immediate-service { flex:1 0 100%; border-top:1px solid var(--line); padding-top:18px; }
.immediate-service label { display:flex; align-items:flex-start; gap:12px; line-height:1.6; font-size:.95rem; }
.private-account .immediate-service input[type=checkbox] { flex:0 0 20px; width:20px; height:20px; margin:4px 0 0; accent-color:#2f5a49; }
#checkout .immediate-service p { margin:12px 0 0 32px; }
#immediate-service[hidden],#order-lines[hidden] { display:none!important; }
.invoice-actions { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.private-account .invoice-select { width:20px; height:20px; accent-color:#2f5a49; }
.private-account #invoice-form { padding:20px; border:1px solid var(--line); border-radius:14px; background:#fffdf8; max-width:720px; }
#invoice-form label { margin:14px 0; line-height:1.6; }
#invoice-form input,#invoice-form textarea { margin-top:5px; }
#invoice-form[hidden],#invoice-cancel[hidden] { display:none!important; }
#invoice-list { padding:0; list-style:none; }
#invoice-list li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 20px; padding:14px 0; border-bottom:1px solid var(--line); }
#invoice-list a { white-space:nowrap; }
#invoice-message:empty { display:none; }
@media(max-width:800px) { .choice-layout { grid-template-columns:1fr; gap:22px; } .purchase-help { grid-row:1; } .purchase-help ol { margin:12px 0; } .purchase-help li { padding-bottom:8px; } .account-heading { align-items:start; } .free-badge { flex-direction:column; gap:3px; padding:13px; text-align:center; } }
@media(max-width:480px) { .private-account main { padding-top:20px; } .person { width:calc(50% - 6px); } .account-heading { flex-wrap:wrap; } .free-badge { flex-direction:row; gap:12px; } .summary output { font-size:1.8rem; } .private-account #checkout { padding:15px; } .private-account #buy { width:100%; } }
/* 2026-10-11: keep the guardian purchase flow compact without reducing touch targets. */
body.private-account main{padding-top:8px;margin-top:18px}
body.private-account h1{font-size:30px;margin-bottom:10px}
.private-account .free-badge{padding:10px 15px;border-radius:10px;gap:14px}
.private-account .intro{font-size:16px;margin-bottom:8px}
.private-account .people-section{padding:18px 0}
.private-account .people-grid{margin:12px 0;gap:10px}
.private-account .person{padding:13px 12px;min-height:82px;border-radius:12px}
.private-account .message:empty{display:none}
.private-account .price-choice{padding:10px;min-height:68px;gap:3px}
.private-account .choice-layout{gap:28px;padding:20px 0}
.private-account .summary{padding:20px 0}
.private-account #purchase-details,.private-account #invoice-details,.private-account #progress-details{margin-block:12px}

/* 2026-10-18: explain a disabled order next to the action, even in long baskets. */
#checkout #coverage{flex:1 0 100%;margin:0 0 12px;color:#98360c;font-weight:600}
#checkout #coverage[hidden]{display:none}

/* 2026-10-18: daily guardian workspace; commerce and account controls keep their existing flow. */
.private-account [hidden]{display:none!important}
body.private-account main{max-width:1440px}
.private-account.returning-account h1{font-size:24px;margin:0}
.returning-account .account-heading{padding:6px 0 10px;float:left}
.returning-account .free-badge,.returning-account .eyebrow{display:none}
.daily-toolbar{display:flex;align-items:flex-start;gap:14px;justify-content:flex-end;margin:0 0 14px}
.daily-toolbar details{max-width:700px;padding:8px 12px;background:#edf1eb;border-radius:8px;font-size:.88rem}
.daily-toolbar summary{cursor:pointer;padding:3px}
.account-tabs{display:flex;gap:5px;border-bottom:1px solid #b6c9cc;margin:0 0 20px;clear:both}
.private-account .account-tabs button{flex:1;max-width:260px;background:transparent;color:#294550;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;padding:13px 12px;font-size:1rem}
.private-account .account-tabs button[aria-selected=true]{background:#e4eeec;color:#0b4054;border-bottom-color:#126282;font-weight:650}
.private-account .choice-layout{display:block;padding:10px 0}
.private-account .purchase-help{margin-top:14px;font-size:.9rem}
.private-account .purchase-help summary{cursor:pointer;font-weight:600}
.private-account .person .rename-person{padding:6px 8px;font-size:.8rem;margin-top:6px;width:100%}
.current-access{font-size:.88rem;margin:12px 0 20px}
.current-access p{margin:7px 0}
.analysis-scroll{max-height:57vh;overflow:auto;border:1px solid #ccdadc;border-radius:12px;background:#fffdf9}
.private-account .analysis-scroll table{min-width:100%;width:max-content;max-width:none}
.private-account .analysis-scroll caption{text-align:left;padding:12px 16px;font-weight:600;background:#eff4f2}
.private-account .analysis-scroll th,.private-account .analysis-scroll td{width:210px;min-width:210px;max-width:210px;padding:0;border-right:1px solid #e3e8e5}
.private-account .analysis-scroll thead th{position:sticky;top:0;z-index:2;background:#e8efed;padding:14px 12px;overflow-wrap:anywhere;text-align:left;font-size:.93rem}
.private-account .analysis-scroll th:first-child{position:sticky;left:0;z-index:1;background:#f0f4ef;padding:14px 12px;font-weight:600}
.private-account .analysis-scroll thead th:first-child{z-index:3}
.private-account .analysis-cell{width:100%;min-height:96px;padding:10px 12px;text-align:left;border:0;border-radius:0;background:transparent;color:#294551;display:flex;gap:2px;flex-direction:column;font-size:.78rem}
.analysis-cell:hover,.analysis-cell:focus-visible{background:#e6f0ef!important;outline:2px solid #14617c;outline-offset:-2px}
.analysis-cell .accuracy{font-size:1.4rem;font-weight:650;color:#0f5169}
.analysis-cell small{font-size:.7rem;color:#677772}
.analysis-empty{padding:20px 10px;color:#526972}
#analysis-detail h2{margin:16px 0 10px}
.analysis-summary{display:flex;gap:6px 20px;flex-wrap:wrap;font-size:.9rem}
.analysis-summary strong{flex-basis:100%}
.analysis-filters{display:flex;gap:10px;align-items:end;margin:12px 0}
.analysis-filters label{display:flex;gap:12px;align-items:center;font-size:.9rem}
.analysis-filters select{width:auto;max-width:200px;font-size:.9rem;padding:8px}
#analysis-chart{max-width:850px;background:#f1f6f3;border-radius:12px;padding:0 16px;margin:10px 0}
#analysis-chart:empty{display:none}
#analysis-chart svg{width:100%;max-height:190px;display:block;overflow:visible}
#analysis-chart svg [role=button]{cursor:pointer}
#analysis-chart .chart-caption{margin:0;padding:8px 0 0;font-size:.85rem;font-weight:600}
#analysis-chart .muted{font-size:.75rem;margin:0;padding-bottom:8px}
.analysis-rows{max-height:300px;overflow:auto;border:1px solid #d4dfde;border-radius:10px;background:#fffdf9}
.private-account .analysis-rows td,.private-account .analysis-rows th{width:auto;padding:10px 12px;text-align:left;white-space:nowrap;font-size:.86rem}
.private-account .analysis-rows th{position:sticky;top:0;background:#edf3ef;z-index:1}
.private-account .session-link{padding:0;border:0;background:transparent;color:#075e80;text-decoration:underline;font-size:inherit}
#analysis-more{margin-top:12px}
#analysis-status:empty{display:none}
.private-account #analysis-session{width:min(620px,calc(100% - 36px));max-height:85vh;box-sizing:border-box;border:1px solid #b2c8cc;border-radius:14px;color:#183b46;background:#fffdf8;padding:22px}
#analysis-session::backdrop{background:#102a3688}
@media(max-width:600px){.returning-account .account-heading{float:none}.daily-toolbar{justify-content:space-between}.private-account .account-tabs button{font-size:.85rem;padding:12px 6px}.private-account .analysis-scroll th,.private-account .analysis-scroll td{width:180px;min-width:180px;max-width:180px}.private-account .analysis-scroll th:first-child{width:110px;min-width:110px;max-width:110px;font-size:.8rem;padding:10px 8px}.analysis-scroll{max-height:60vh}.analysis-filters{flex-wrap:wrap}#analysis-chart{padding:0 6px}.private-account .daily-toolbar .quiet{font-size:.8rem;padding:10px}.private-account main{padding-inline:14px}}

.negative-history-wrap{overflow:auto}.negative-history{white-space:nowrap;font-size:14px}.negative-history td{padding:10px}
