@charset "UTF-8";
:root{--paper:#f7f6f2;--white:#fff;--ink:#222423;--muted:#62665f;--line:#e4e4dd;--red:#b82c35;--red-pale:#faeaea;--dark:#202522;--radius:14px;--shadow:0 4px 18px #17221b04}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}a:hover{text-decoration:underline}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3.2vw,44px);line-height:1.14;letter-spacing:-1.7px;font-weight:650;margin-bottom:12px}h2{font-size:19px;line-height:1.3;letter-spacing:-.45px;margin-bottom:6px}h3{font-size:15px;margin-bottom:5px}small,.muted{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:750;color:var(--muted);text-transform:uppercase;margin-bottom:12px}.skip-link{position:absolute;left:15px;top:-100px;padding:12px;background:white;z-index:10}.skip-link:focus{top:10px}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;padding:38px 24px 24px;background:var(--dark);color:#f1f2ed;display:flex;flex-direction:column;z-index:2}.brand{font-size:26px;font-weight:800;letter-spacing:1.6px;display:flex;align-items:center;gap:9px;line-height:1;white-space:nowrap}.brand:hover{text-decoration:none}.sidebar-label{font-size:9px;letter-spacing:1.8px;color:#89948e;margin:55px 12px 14px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:11px 12px;border-radius:8px;color:#bfc7c1;font-size:13px;display:flex;align-items:center;gap:12px}.sidebar nav a span{width:18px;font-size:20px;line-height:1}.sidebar nav a[aria-current=page]{background:#343d36;color:white}.sidebar nav a:hover{background:#303832;text-decoration:none}.sidebar-bottom{margin-top:auto}.sidebar-bottom p{font-size:23px;letter-spacing:-.5px;line-height:1.3;color:#96a198;margin:55px 12px 30px}.member-chip{display:flex;gap:11px;align-items:center;border-top:1px solid #41483f;padding:22px 4px 12px}.member-chip strong{display:block;font-size:13px;max-width:145px;overflow:hidden;text-overflow:ellipsis}.member-chip small{color:#9faa9f;display:block;font-size:11px}.avatar{background:#586555;color:#eff3e9;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:13px;flex-shrink:0}.logout{border:0;background:transparent;color:#b7c0b8;width:100%;text-align:left;font-size:12px;padding:10px 5px}.logout span{float:right}.main{max-width:1450px;margin-left:242px;padding:40px 48px 20px}.footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:22px;margin-top:42px;font-size:12px;color:var(--muted)}.public-header{padding:32px 6%;display:flex;justify-content:space-between;align-items:center}.public-header>span{font-size:10px;color:var(--muted);letter-spacing:2px}.signed-out .main{margin:0 auto;max-width:1160px;min-height:80vh}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);margin:0;font-size:14px}.date-pill,.badge{border:1px solid var(--line);border-radius:30px;padding:7px 13px;font-size:11px;white-space:nowrap;background:#ffffff80}.badge{padding:4px 9px;color:var(--red);background:var(--red-pale);border:0;font-weight:650}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat-card,.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:22px}.stat-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-bottom:13px}.stat-number{font-size:31px;font-weight:650;letter-spacing:-1px;line-height:1.2}.stat-number span{font-size:13px;color:var(--muted);font-weight:400;letter-spacing:0}.stat-foot{font-size:11px;color:var(--muted);margin-top:10px}.panel{padding:26px;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.panel-header p{font-size:12px;color:var(--muted);margin:0}.text-link{font-size:12px;color:var(--red);font-weight:650}.two-col{display:grid;grid-template-columns:1.35fr 1fr;gap:22px}.two-col>.panel{min-width:0}.calendar-scroll{overflow-x:auto;padding:4px 1px 13px}.calendar-wrap{min-width:700px}.calendar-months{display:flex;justify-content:space-around;padding-left:25px;font-size:10px;color:var(--muted);margin-bottom:8px}.calendar-body{display:flex;gap:9px}.weekday-labels{display:grid;grid-template-rows:repeat(7,12px);gap:4px;font-size:8px;line-height:12px;width:20px}.weekday-labels span:nth-child(even){visibility:hidden}.calendar-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,12px);grid-auto-columns:minmax(8px,1fr);gap:4px;flex:1}.day-square{display:block;border-radius:2px;background:#f0f0eb;border:1px solid #e8e9e2;min-width:8px;position:relative}.day-square:hover{outline:2px solid var(--ink);outline-offset:2px;z-index:1}.day-square.today{outline:1px solid var(--ink);outline-offset:2px}.intensity-0{background:#f0f0eb;border-color:#e8e9e2}.intensity-1{background:#f1c3c4;border-color:#edb9bc}.intensity-2{background:#e58c91;border-color:#df8388}.intensity-3{background:#cb4c56;border-color:#c14650}.intensity-4{background:#9e202b;border-color:#94232a}.future{opacity:.35;pointer-events:none}.calendar-footer{display:flex;justify-content:space-between;gap:15px;margin-top:10px;color:var(--muted);font-size:10px}.legend{display:flex;align-items:center;gap:5px}.legend i{width:11px;height:11px;border-radius:2px;display:block}.list-row{display:flex;align-items:center;gap:15px;padding:17px 0;border-top:1px solid #efefe9}.list-row:first-child{border-top:0;padding-top:0}.list-row:last-child{padding-bottom:0}.row-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--paper);border:1px solid var(--line);border-radius:10px;color:#72786a;font-size:17px;flex-shrink:0}.row-body{flex:1;min-width:0}.row-body strong{font-size:13px;display:block;overflow-wrap:anywhere}.row-body small{display:block;font-size:11px;margin-top:3px}.row-end{font-size:12px;font-weight:600;white-space:nowrap;text-align:right}.row-end small{display:block;font-size:10px;font-weight:400}.empty-state{padding:35px 16px;text-align:center;border:1px dashed #dbdfd6;background:#fafbf8;border-radius:10px;color:var(--muted);font-size:13px}.empty-state strong{display:block;color:var(--ink);margin-bottom:6px;font-weight:600}.empty-state p{margin:0}.empty-icon{font-size:25px;color:#b5bbaf;margin-bottom:10px}.button,.btn,button[type=submit]{border:1px solid var(--red);border-radius:8px;background:var(--red);color:white;padding:10px 18px;font-size:13px;font-weight:650;display:inline-block;line-height:1.5}.button:hover,.btn:hover,button[type=submit]:hover{background:#9d252e;text-decoration:none}.button.secondary,.btn-secondary{background:transparent;color:var(--ink);border-color:#d6d9d0}.button.secondary:hover{background:#f0f1eb}.button.small{padding:7px 12px;font-size:11px}.button.danger{background:#fff;color:var(--red);border-color:#e4b6b8}.sidebar button.logout{background:transparent;border:0;padding:10px 5px;font-weight:400;color:#b7c0b8}.form-card{max-width:760px}.form-card form>div,.auth-card form>div,form .field{margin-bottom:18px}.form-card label,.auth-card label,form .field label{display:block;font-size:12px;font-weight:650;margin-bottom:6px}input:not([type=checkbox]):not([type=hidden]),select,textarea{width:100%;border:1px solid #d7dcd2;border-radius:7px;background:white;padding:10px 12px;color:var(--ink);font-size:14px;min-height:43px}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--red);outline:2px solid #b82c3520}.helptext{display:block;font-size:11px;color:var(--muted);margin-top:6px}.helptext ul{padding-left:18px;margin:5px 0}.errorlist{color:#a92532;font-size:12px;padding-left:18px;margin:4px 0 9px}.errorlist.nonfield{list-style:none;padding:10px 13px;background:#fff0ef;border:1px solid #efd1cd;border-radius:6px}.form-actions{display:flex;align-items:center;gap:15px;margin-top:26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-section{border:0;border-top:1px solid var(--line);padding:24px 0 0;margin:25px 0 0}.form-section legend{font-size:15px;font-weight:650;padding:0 10px 0 0}.auth-shell{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;min-height:58vh;padding:20px 0 55px}.auth-card{background:white;border:1px solid var(--line);border-radius:16px;padding:38px;max-width:500px;width:100%;margin:auto}.auth-card h1{font-size:29px;letter-spacing:-1px}.auth-card form button[type=submit]{width:100%;margin-top:12px}.auth-card>p{font-size:13px;color:var(--muted)}.auth-intro{padding:30px 0}.auth-intro h1{font-size:clamp(38px,5vw,66px);letter-spacing:-2.9px;line-height:1.04;max-width:480px}.auth-intro h1 em{font-style:normal;color:var(--red)}.auth-intro p{color:var(--muted);font-size:15px;max-width:370px;margin:24px 0}.auth-grid-art{display:grid;grid-template-columns:repeat(14,12px);gap:5px;margin:35px 0}.auth-grid-art i{width:12px;height:12px;background:#ead5d3;border-radius:2px}.auth-grid-art i:nth-child(3n){background:#d97078}.auth-grid-art i:nth-child(7n){background:#a52531}.auth-grid-art i:nth-child(5n){background:#ebece5}.auth-links{font-size:12px;margin-top:20px;display:flex;justify-content:space-between;gap:12px}.auth-links a{color:var(--red)}.notice{border:1px solid #dce4d5;background:#f0f5eb;color:#435b35;padding:13px 16px;border-radius:9px;font-size:13px;margin-bottom:20px}.notice.error{color:#a92532;background:#fff0ef;border-color:#efd1cd}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.filter-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.filter-form label{font-size:11px;color:var(--muted)}.filter-form input,.filter-form select{min-width:130px;width:auto}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.tabs a{font-size:12px;padding:7px 13px;border:1px solid var(--line);border-radius:30px;background:#fff}.tabs a[aria-current=page]{color:white;background:var(--dark);border-color:var(--dark)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:600;letter-spacing:.6px;background:#f8f9f5}th,td{padding:13px 12px;border-bottom:1px solid #edeee8;vertical-align:top}td a{color:var(--red);font-weight:600}.actions-cell{white-space:nowrap}.record-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.record-card{padding:20px 0;border-top:1px solid var(--line)}.record-card:first-of-type{border-top:0}.record-card p{font-size:13px;color:var(--muted);white-space:pre-line;overflow-wrap:anywhere}.record-meta{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin:8px 0 12px}.macro-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}.macro-row strong{display:block;font-size:21px;letter-spacing:-.5px}.macro-row span{font-size:10px;color:var(--muted)}.nutrition-line{display:flex;justify-content:space-between;font-size:12px;margin:14px 0 7px}.progress-track{height:6px;background:#eeeae5;border-radius:4px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--red);border-radius:4px}.weight-chart{width:100%;height:135px;display:block;overflow:visible}.chart-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:12px}.analysis-details{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9f6;padding:14px;border-radius:8px}.pagination{display:flex;justify-content:center;gap:20px;padding-top:22px;font-size:12px}.back-link{font-size:12px;color:var(--muted);display:inline-block;margin-bottom:20px}.section-kicker{font-size:10px;letter-spacing:1px;color:var(--red);font-weight:750;margin-bottom:7px}.note{font-size:11px;color:var(--muted);margin-top:14px}.compact-input{max-width:240px}.record-form textarea{height:100px}.hero-note{background:var(--dark);border-radius:var(--radius);padding:28px;color:#fff;margin-bottom:22px}.hero-note p{font-size:13px;color:#c3cbc3;max-width:550px;margin-bottom:0}.hero-note h2{font-size:23px;letter-spacing:-.8px}.day-navigation{display:flex;align-items:center;gap:12px;font-size:12px}.delete-summary{padding:16px;background:#fff2f1;border:1px solid #efd3d0;border-radius:8px;margin:22px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.main{padding-left:65px;padding-right:65px}}@media(max-width:1100px){.sidebar{width:205px;padding:30px 18px}.main{margin-left:205px;padding:30px}.stats-grid{gap:10px}.stat-card{padding:17px}.two-col{grid-template-columns:1fr 1fr}.sidebar-label{font-size:8px}.sidebar nav a{font-size:12px}.stat-number{font-size:26px}.auth-shell{gap:35px}.auth-card{padding:30px}}@media(max-width:800px){.sidebar{position:static;width:100%;padding:20px 24px;display:block}.sidebar .brand{font-size:22px}.sidebar-label{display:none}.sidebar nav{display:flex;margin-top:19px;gap:8px}.sidebar nav a{padding:8px 10px;font-size:11px;flex:1;justify-content:center;white-space:nowrap}.sidebar nav a span{display:none}.main{margin:0;padding:27px 22px 18px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.two-col{grid-template-columns:1fr}.panel{padding:21px}.page-heading{align-items:flex-start}.page-heading .date-pill{display:none}.auth-shell{grid-template-columns:1fr;gap:20px;min-height:auto;padding-top:0}.auth-intro{padding:0}.auth-intro h1{font-size:43px;max-width:430px}.auth-intro p{margin:15px 0}.auth-grid-art{display:none}.auth-card{max-width:none}.public-header{padding:25px 22px}.public-header>span{display:none}.signed-out .main{padding-top:10px}.footer{margin-top:30px}.form-grid{grid-template-columns:1fr;gap:0}.macro-row{grid-template-columns:repeat(2,1fr)}.filter-form>*{flex:1}.filter-form input,.filter-form select{width:100%}.toolbar{gap:7px}.toolbar .button{font-size:11px}.panel-header{gap:10px}.calendar-footer{font-size:9px}.record-heading{align-items:flex-start}.record-heading .toolbar{justify-content:flex-end}.auth-card h1{font-size:28px}}
.auth-shell:has(> .auth-card:only-child){grid-template-columns:1fr}

/* Weekly plan follows the existing panel and form layout. */
.plan-day,.plan-onboarding{border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0}.plan-day legend,.plan-onboarding legend{font-weight:650;padding:0 6px}.plan-copy{overflow-wrap:anywhere}.plan-today{margin:12px 0}.plan-discard{margin-top:12px}details>summary{cursor:pointer;font-weight:650;margin-bottom:14px}.plan-day textarea{min-height:100px}
@media(max-width:800px){.sidebar nav{flex-wrap:wrap}}

/* Native form groups and pending state use the existing visual language. */
.full-reply{overflow-wrap:anywhere}
/* PX-07: use the existing panels while separating today from longer history. */
.dashboard-page>section{scroll-margin-top:20px}
.dashboard-page>.page-heading{margin-bottom:18px}
.dashboard-page #today-summary>.panel-header,.dashboard-page #history-summary>.panel-header{margin-bottom:14px}
.dashboard-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-page .stat-foot a{text-decoration:underline;text-underline-offset:3px}
.dashboard-page .calendar-footer{gap:14px}
.dashboard-page .calendar-footer>span{max-width:420px;font-size:12px;line-height:1.6}
.dashboard-page #availability{scroll-margin-top:20px}
.dashboard-page .panel-header h3{font-size:18px;margin-bottom:8px}
.dashboard-page .plan-today h4{font-size:14px;margin:0 0 8px}
.dashboard-page .calendar-scroll{padding-inline:4px}
.usage-page{max-width:1050px}.usage-page p,.usage-page li,.usage-page table{font-size:14px;line-height:1.65}
.usage-page th[scope=row]{text-transform:none;letter-spacing:normal;font-size:14px;background:transparent;color:var(--ink)}
.usage-page .table-wrap :is(th,td){padding:12px 6px}
.usage-page .reply-card{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.usage-page summary{min-height:44px;line-height:1.6}.usage-page .full-reply{font-size:15px;line-height:1.75;margin-bottom:20px}
.usage-page :is(section,article){scroll-margin-top:20px}.usage-page .pagination{flex-wrap:wrap;align-items:center}
.availability-note p{margin:8px 0 0}.availability-note{font-size:14px;line-height:1.6}
/* PX-02: shared readable text, native controls and responsive account access. */
/* Keep absolutely positioned accessible headers inside their table scroller. */
.table-wrap{position:relative}
h2{font-size:20px;line-height:1.35;margin-bottom:8px}
h3{font-size:16px;line-height:1.4}
.panel-header p,.helptext,.note,.auth-links{font-size:13px;line-height:1.6}
.stat-foot,.row-body small,.record-meta,.back-link,.chart-caption{font-size:12px}
.form-card label,.auth-card label,form .field label,.filter-form label{font-size:13px}
.main p a,.helptext a,.text-link,.back-link,.auth-links a,td a{text-decoration:underline;text-underline-offset:3px}
.main p a:is(.button,.btn){text-decoration:none}
.page-heading,.panel-header,.record-heading,.form-actions,.day-navigation,.calendar-footer,.footer{flex-wrap:wrap}
.page-heading>div,.panel-header>div,.record-heading>h3{min-width:0}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
fieldset{min-width:0}
input:not([type=checkbox]):not([type=hidden]),select,textarea{border-color:#858c80;max-width:100%}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--red)}
.button,.btn,button[type=submit]{min-height:44px;max-width:100%;white-space:normal}
.button.secondary,.btn-secondary{border-color:#858c80}
.button.secondary:hover,.btn-secondary:hover{background:#f0f1eb;color:var(--ink)}
.button.danger:hover{background:var(--red-pale);color:var(--red)}
.tabs a{min-height:44px;display:inline-flex;align-items:center}
.tabs a[aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:4px}
:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--red);outline-offset:4px}
.main :is(input,select,textarea)[aria-invalid=true]{border-color:#a92532}
.errorlist:focus{outline:2px solid #a92532;outline-offset:4px}
.sidebar{overflow-y:auto;scroll-padding-block:16px}
.sidebar>*{flex-shrink:0}
.sidebar nav a{min-height:44px;font-size:13px}
.sidebar nav a[aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:4px}
.sidebar nav a span{display:none}
.sidebar :is(a,button):focus-visible{outline-color:#f1f2ed}
.member-chip>div{min-width:0}
.member-chip strong{max-width:none;white-space:normal;overflow-wrap:anywhere}
.sidebar :is(button,a).logout{font-size:13px;min-height:44px}
.sidebar :is(button,a).logout:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-width:801px) and (max-height:760px){
  .sidebar-label{margin-top:28px}
  .sidebar-bottom>p{display:none}
  .sidebar-bottom{padding-top:20px}
}
@media(max-width:800px){
  .sidebar{padding:20px 22px;overflow:visible}
  .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:20px}
  .sidebar nav a{white-space:normal;justify-content:flex-start;padding:10px 12px}
  .sidebar-bottom{display:flex;align-items:center;gap:16px;margin-top:16px;border-top:1px solid #41483f;padding-top:12px}
  .sidebar-bottom>p{display:none}
  .member-chip{border:0;padding:0;flex:1;min-width:0}
  .sidebar-bottom>:is(form,a.logout){flex-shrink:0}
  .sidebar :is(button,a).logout{width:auto;padding:10px 4px}
  .logout span{float:none;margin-left:8px}
  .form-grid{grid-template-columns:1fr}
  input:not([type=checkbox]):not([type=hidden]),select,textarea{font-size:16px}
}
/* PX-01: privacy choices and saved agreement state. */
.privacy-page{max-width:900px;overflow-wrap:anywhere}
.privacy-page .page-heading p{color:var(--ink)}
.privacy-page .panel>h2{font-size:22px;margin-bottom:18px}
.privacy-page p{font-size:14px;line-height:1.65}
.privacy-page p a,.privacy-page .notice a{text-decoration:underline;text-underline-offset:2px}
.privacy-state{border-left:3px solid var(--red);background:var(--paper);padding:16px 18px;margin-bottom:20px}
.privacy-state h3{font-size:18px;line-height:1.4;margin:0 0 8px}
.privacy-state p{margin:6px 0 0}
.privacy-page .privacy-meta{font-size:13px}
.privacy-notice{border-top:1px solid var(--line);margin:20px 0}
.privacy-notice summary{padding:15px 0;cursor:pointer;font-size:14px;font-weight:650}
.privacy-form{display:grid;gap:14px;margin-top:22px;justify-items:start}
.privacy-form fieldset{border:0;padding:0;margin:0;min-width:0;width:100%}
.privacy-form legend{font-size:16px;font-weight:650;margin-bottom:10px}
.privacy-form .privacy-check{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:12px 0;font-size:14px;line-height:1.6;cursor:pointer}
.privacy-check input{flex-shrink:0;width:18px;height:18px;margin:3px 0 0}
.privacy-withdraw{border-top:1px solid var(--line);padding-top:20px}
.privacy-page .button.danger:hover{background:var(--red-pale)}
.privacy-page :is(input,button,summary,a):focus-visible{outline:2px solid var(--red);outline-offset:4px}
.field>fieldset{border:0;padding:0;margin:0;min-width:0}.field>fieldset>legend{font-size:12px;font-weight:650;margin-bottom:6px}.form-status{margin-top:18px}.form-status:last-child{margin-bottom:0}form[aria-busy=true] [aria-disabled=true]{opacity:.65;cursor:wait}.day-square:focus-visible{outline:2px solid var(--ink);outline-offset:2px;z-index:1}

/* PX-08: history discovery and day/correction detail within the existing shell. */
.history-page .actions-cell a{display:block;margin-bottom:10px}
.history-page td:nth-child(2){max-width:260px;overflow-wrap:anywhere}
.history-page td:nth-child(3){max-width:430px;overflow-wrap:anywhere}
.history-page .table-wrap:focus-visible,.day-page .table-wrap:focus-visible{outline-offset:2px}
.day-page [id]{scroll-margin-top:20px}
.day-page :is(h3,td,dd),.correction-page :is(p,.delete-summary){overflow-wrap:anywhere}
.day-page .record-heading .toolbar{flex-shrink:0}
.day-page .table-wrap{margin-top:12px}
.day-page th:first-child,.day-page td:first-child{min-width:160px}
.day-page .day-table-help{display:none}
@media(max-width:800px){.day-page .day-table-help{display:block}}
.correction-page .form-card>p{font-size:14px}

/* PX-09: read the accepted week, then deliberately enter the existing editor. */
.plan-page [id]{scroll-margin-top:20px}
.plan-page :is(.panel-header,.form-actions){flex-wrap:wrap}
.plan-page .panel-header>.button{flex-shrink:0}
.plan-page :is(p,summary,legend,h3){overflow-wrap:anywhere}
.plan-page summary{min-height:44px}
.plan-week{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.plan-week-day{border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}
.plan-week-day h3{font-size:17px;margin-bottom:12px}
.plan-week-day h4{font-size:13px;color:var(--muted);margin:14px 0 6px}
.plan-week-day p,.plan-week-notes p{font-size:15px;line-height:1.65;white-space:pre-wrap}
.plan-week-day p:last-child{margin-bottom:0}
.plan-week-notes{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}
.plan-page .plan-day{min-width:0}
.plan-page .form-actions form{margin:0}
@media(max-width:800px){.plan-week{grid-template-columns:1fr}.plan-page .panel-header>.button{white-space:normal}}
/* Private video pages use the existing GET logout confirmation before POST. */
.sidebar-bottom>a.logout{display:block}
