/* Live application adapters for Forge's read-only newspaper components. */
:root{--ink:var(--text-strong);--deep:var(--p-night-900);--accent:var(--fill-highlight);--chalk:var(--bg-sunken);--paper:var(--bg-card);--line:var(--rule-soft);--muted:var(--text-muted);--soft:var(--bg-sunken);--error:var(--text-danger);background:var(--bg-page);font-family:var(--font-mono)}
body{background:var(--bg-page) url(../assets/contours.svg) repeat;color:var(--text-body)}
:focus-visible{outline:2px solid var(--text-brand)!important;outline-offset:3px!important;box-shadow:var(--focus)}
.skip-link{position:fixed;top:-100px;left:16px;z-index:1000;background:var(--bg-card);padding:12px}.skip-link:focus{top:8px}
.daily-workspace.workspace{max-width:1376px;margin:0 auto;padding:0 32px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;min-height:100vh}
.daily-header{padding-top:1px}.daily-workspace .content,.daily-workspace[data-page="dashboard"] .content{padding:0 0 32px;max-width:none;margin:0;min-width:0}
.daily-workspace .office-tabs{position:static;margin:0 0 16px;padding:0;display:flex;gap:2px;flex-wrap:wrap;overflow:visible;background:transparent;border-radius:0;border-bottom:1.5px solid var(--rule-strong);width:auto;min-height:44px}
.daily-workspace .office-tab{font:700 12px/1.4 var(--font-mono);padding:12px 10px;color:var(--text-strong);border:0;border-radius:0;min-height:44px;background:transparent;white-space:normal}
.daily-workspace .office-tab.active{background:var(--p-ink-900);color:var(--p-lime-500)}
.daily-workspace .sample-banner{line-height:1.5;margin-left:auto;font-size:12px;padding:10px 12px}
.daily-bottom{display:none}.daily-workspace .office-footer{display:flex;background:transparent;border-top:3px double var(--rule-strong);margin:24px 0 0;padding:16px 0;gap:16px;flex-wrap:wrap;color:var(--text-muted);font:12px var(--font-mono)}
.daily-workspace .btn,dialog .btn{border-radius:2px;min-height:44px;font-family:var(--font-head);white-space:normal}
.daily-workspace input,.daily-workspace select,.daily-workspace textarea,dialog input,dialog select,dialog textarea{border-radius:2px;min-height:44px;border-color:var(--rule-strong);background:var(--bg-card);color:var(--text-strong);max-width:100%}
.daily-workspace .text-btn,.daily-workspace .dash-text-btn{color:var(--text-brand);font-family:var(--font-head);min-height:44px;white-space:normal}
.daily-workspace .fee-card,.daily-workspace .form-section{background:var(--bg-card);border-radius:2px;border-color:var(--rule-strong)}
.loading-state{padding:24px;background:var(--bg-card);border:1.5px solid var(--rule-strong);margin-bottom:24px}.loading-state p{margin-bottom:16px}
.error-summary{margin:16px 0;padding:20px;overflow-wrap:anywhere}.error-summary h2{font-size:20px}.error-summary p{margin:12px 0}.error-summary pre{white-space:pre-wrap;max-height:240px;overflow:auto;font-size:12px}
[aria-invalid=true]{border:2px solid var(--text-danger)!important}.empty-state{margin-bottom:24px}.empty-state p{margin-top:12px}
/* Morning brief: square rules, editorial heads, legible tabular figures. */
.daily-workspace .dashboard-topline{margin:0 0 24px;padding:0;align-items:end;gap:24px}.daily-workspace .dashboard-topline h1{font:800 var(--fs-h1)/1.08 var(--font-head);color:var(--text-strong);letter-spacing:-.03em}
.daily-workspace .dash-eyebrow{font:700 12px var(--font-mono);color:var(--text-accent);letter-spacing:.08em;margin-bottom:12px;display:block}
.daily-workspace .dashboard-date{font:12px var(--font-mono);color:var(--text-muted)}.daily-workspace .dashboard-actions{gap:12px}.daily-workspace .dash-create{background:var(--fill-brand);color:white;border:1.5px solid var(--rule-strong);border-radius:2px;min-height:44px;font-family:var(--font-head)}
.daily-workspace .dashboard-filterbar{padding:12px 0 20px;margin:0 0 24px;border-bottom:3px double var(--rule-strong);gap:16px;flex-wrap:wrap;background:transparent}.daily-workspace .dash-scope{font:12px var(--font-mono);color:var(--text-muted)}
.daily-workspace .dash-filters{gap:12px;flex-wrap:wrap}.daily-workspace .dash-filters label{font:12px var(--font-mono);color:var(--text-strong)}.daily-workspace .dash-filters select{font:13px var(--font-mono);border:1.5px solid var(--rule-strong)}
.daily-workspace .dashboard-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:24px}.daily-workspace .dashboard-main,.daily-workspace .dashboard-insights{min-width:0;gap:28px}
.daily-workspace .dashboard-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.daily-workspace .dash-kpi{background:var(--bg-card);border:2.5px solid var(--rule-strong);border-radius:0;padding:20px 16px;min-height:0;color:var(--text-strong)}.daily-workspace .dash-kpi.lime{background:var(--bg-card)}
.daily-workspace .kpi-head{gap:8px;margin-bottom:16px}.daily-workspace .kpi-head h2{font:700 16px var(--font-head)}.daily-workspace .dash-tile-icon{border:0;background:transparent;color:var(--text-brand);border-radius:0;width:28px;height:28px}.daily-workspace .dash-icon-link{color:var(--text-brand);min-width:44px;min-height:44px}
.daily-workspace .kpi-number{font:800 32px var(--font-head);color:var(--text-brand);flex-wrap:wrap;gap:8px;letter-spacing:-.02em}.daily-workspace .kpi-percent{font:500 13px var(--font-figures);color:var(--text-accent)}.daily-workspace .kpi-detail{font:500 15px var(--font-figures);color:var(--text-strong);margin:12px 0;overflow-wrap:anywhere}
.daily-workspace .kpi-bottom{font:12px var(--font-mono);flex-wrap:wrap;gap:8px;color:var(--text-muted);border-color:var(--rule-soft)}.daily-workspace .kpi-bottom strong{font:500 14px var(--font-figures);color:var(--text-strong)}
.daily-workspace .capsule-meter{gap:3px}.daily-workspace .capsule-meter i{border-radius:0;border:1px solid var(--rule-strong);background:repeating-linear-gradient(135deg,var(--p-red-100),var(--p-red-100) 3px,var(--p-red-700) 3px,var(--p-red-700) 4px)}.daily-workspace .capsule-meter i.filled{background:var(--fill-accent)}
.daily-workspace .today-brief h2{font-size:20px;margin-bottom:12px}.daily-workspace .today-brief p{margin:12px 0}.daily-workspace .today-brief .big-money{font-size:30px}
.daily-workspace .dash-panel{padding:24px 20px;background:var(--bg-card);border:2.5px solid var(--rule-strong);border-radius:0;box-shadow:none;min-width:0}.daily-workspace .dash-panel h2{font:700 23px var(--font-head);color:var(--text-strong)}.daily-workspace .dash-panel h3{margin:16px 0 8px}.daily-workspace .dash-card-head{gap:12px;margin-bottom:20px;flex-wrap:wrap}.daily-workspace .dash-card-head p{font:12px/1.6 var(--font-mono);color:var(--text-muted)}
.daily-workspace .dashboard-pair{gap:24px}.daily-workspace .chart-stat-line strong,.daily-workspace .pulse-number strong,.daily-workspace .method-total strong{font-family:var(--font-head);color:var(--text-brand)}.daily-workspace .chart-legend,.daily-workspace .chart-foot,.daily-workspace .metric-note,.daily-workspace .dashboard-definition{font:12px/1.6 var(--font-mono);color:var(--text-muted)}
.daily-workspace .capsule-chart{width:100%;height:auto;overflow:visible}.daily-workspace .capsule-chart text{font:12px var(--font-figures);fill:var(--text-strong)}.daily-workspace .pending-track{background:var(--p-red-100);border-radius:0}.daily-workspace .pending-track i{background:repeating-linear-gradient(135deg,var(--p-red-700),var(--p-red-700) 3px,var(--p-red-100) 3px,var(--p-red-100) 5px);border-radius:0}.daily-workspace .pending-class strong{font:500 15px var(--font-figures);color:var(--text-brand)}.daily-workspace .pending-class small{font:12px var(--font-mono);color:var(--text-muted)}
.daily-workspace .dash-table-wrap table{font-family:var(--font-mono);font-size:12px}.daily-workspace .dash-table-wrap th{font:700 12px var(--font-mono);color:var(--text-strong);background:transparent;border-color:var(--rule-strong)}.daily-workspace .dash-table-wrap td{color:var(--text-strong);border-color:var(--rule-soft)}.daily-workspace .td-money{font:500 15px var(--font-figures)}
.daily-workspace .class-strength i{background:var(--fill-brand);border-radius:0}.daily-workspace .pulse-panel,.daily-workspace .dash-data-note{background:var(--bg-card);color:var(--text-strong);border-radius:0}.daily-workspace .pulse-facts,.daily-workspace .side-description,.daily-workspace .side-empty{color:var(--text-muted);font-family:var(--font-mono)}.daily-workspace .dash-quick-grid button{border:1.5px solid var(--rule-strong);border-radius:0;background:var(--bg-card);font-family:var(--font-head);min-height:44px}.daily-workspace .method-pill,.daily-workspace .conversion-pill,.daily-workspace .student-status{border-radius:2px}.daily-workspace .owner-desk p{font-size:12px;overflow-wrap:anywhere;margin:12px 0}.daily-workspace .pending-decision{margin-top:20px}
/* Student record */
.student-detail>.tab{margin-top:20px}.detail-actions{margin:24px 0 32px}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px}.detail-grid>*{min-width:0}.detail-grid .box{margin-bottom:32px}.detail-grid .box p{margin-top:12px;font-size:12px}.detail-grid h3{font-size:18px;margin:20px 0 12px}.detail-grid .kv{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.detail-grid dd{overflow-wrap:anywhere}.detail-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 24px}.detail-totals .big-money{font-size:28px}.detail-grid .table td{overflow-wrap:anywhere;font:500 14px var(--font-figures)}
@media(max-width:1100px){.daily-workspace .dashboard-layout{grid-template-columns:1fr}.daily-workspace .dashboard-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.daily-workspace .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-grid{grid-template-columns:1fr}.daily-workspace .kpi-number{font-size:28px}.daily-workspace .chart-stat-line{flex-wrap:wrap}}
@media(max-width:560px){.daily-workspace.workspace{padding:0 16px 72px}.daily-workspace .dateline{font-size:12px;gap:8px}.daily-workspace .masthead-inner{gap:16px;justify-content:flex-start}.daily-workspace .masthead-title{font-size:32px}.daily-workspace .crest{width:48px;height:48px}.daily-workspace .tagline{font-size:12px}.daily-workspace .office-tabs{gap:0;border-bottom:0;margin-bottom:8px}.daily-workspace .office-tab{font-size:12px;padding:8px;flex:1 1 30%}.daily-bottom{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));bottom:0;left:0;right:0;z-index:50;background:var(--p-ink-900);padding-bottom:env(safe-area-inset-bottom)}.daily-bottom button{min-height:56px;border:0;border-radius:0;background:transparent;color:var(--p-lime-500);font:700 12px var(--font-mono);padding:8px 4px}.daily-bottom button[aria-current]{background:var(--fill-brand);color:white}.daily-workspace .toolbar{gap:8px}.daily-workspace .sample-banner{margin-left:0;width:100%}.daily-workspace .dashboard-topline{display:block}.daily-workspace .dashboard-actions{margin-top:16px;align-items:flex-start}.daily-workspace .dashboard-filterbar{display:block}.daily-workspace .dash-scope{margin-bottom:12px}.daily-workspace .dash-filters{display:flex;gap:8px}.daily-workspace .dash-filters label{flex:1 1 110px}.daily-workspace .dash-filters select{width:100%;min-width:0}.daily-workspace .dashboard-kpis,.daily-workspace .dashboard-pair,.daily-workspace .dashboard-insights{display:grid;grid-template-columns:1fr}.daily-workspace .dashboard-kpis .kpi-number{font-size:36px}.daily-workspace .dash-kpi{padding:20px}.daily-workspace .dash-panel{padding:24px 16px}.daily-workspace .dash-table-wrap{overflow:auto}.daily-workspace .dash-table-wrap table{min-width:0;width:100%}.daily-workspace .dash-table-wrap th,.daily-workspace .dash-table-wrap td{padding:8px 4px;font-size:12px;white-space:normal;overflow-wrap:anywhere}.daily-workspace .dash-table-wrap small{white-space:normal}.daily-workspace .pulse-panel{grid-column:auto}.daily-workspace .dash-data-note{margin:0}.daily-workspace .dashboard-date{font-size:12px}.daily-workspace .content{width:100%}.detail-totals{grid-template-columns:1fr}.detail-totals .big-money{font-size:32px}.detail-grid .box{padding:24px 16px}.detail-grid .table td{white-space:normal}.daily-workspace button,.daily-workspace input,.daily-workspace select,.daily-workspace a{min-height:44px}.student-detail .text-btn{padding:8px}.error-summary{padding:16px}dialog .dialog-content{padding:24px 16px}}
@media print{.daily-header,.daily-bottom,.skip-link,.office-footer{display:none!important}.daily-workspace.workspace{padding:0}.detail-grid{display:block}.box{break-inside:avoid}}
.daily-workspace .workspace-name{display:inline-flex;position:static;color:var(--text-strong);font:12px var(--font-mono);white-space:normal}
.daily-menu{display:none}
@media(max-width:560px){.daily-menu{display:inline-flex}.daily-workspace .office-tabs{display:none}.daily-workspace .office-tabs.mobile-open{display:flex}.daily-workspace .dashboard-actions .dash-round-btn{display:none}}
.detail-grid .detail-totals .big-money{font:800 28px/1.1 var(--font-head);overflow-wrap:anywhere}
.detail-grid .table td.r{text-align:right}
@media(max-width:560px){.detail-grid .detail-totals .big-money{font-size:32px}.detail-grid .table.stack-m thead{display:table-header-group;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.detail-grid .table.stack-m tr{display:block}.detail-grid .table.stack-m td{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px;padding:6px 0;text-align:left}.detail-grid .table.stack-m td::before{content:attr(data-label);font:400 12px/1.5 var(--font-mono);color:var(--text-muted)}.detail-grid .table.stack-m td.r{text-align:left}}
.error-summary h1{font-size:24px}.pending-decision>strong:first-child{display:inline-block;background:var(--p-ink-900);color:white;padding:6px 8px;font:700 12px/1.5 var(--font-mono)}
/* Approved usability review, 3 Nov 2026: retain the existing layout and tokens. */
html{scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom))}
[hidden]{display:none!important}
.daily-workspace .text-btn,dialog .text-btn{min-width:44px;min-height:44px;padding:8px}
.daily-workspace .dash-round-btn{min-width:44px;min-height:44px;width:auto;height:auto;padding:10px;color:var(--text-brand)}
.daily-workspace .dashboard-actions>div{gap:8px}
.daily-workspace #metric-definitions{min-width:44px;min-height:44px;padding:8px}
.daily-workspace .dash-table-wrap table{min-width:0;table-layout:auto}
.daily-workspace .dash-table-wrap{overflow:visible}
.daily-workspace .dash-panel{overflow:visible}
.daily-workspace .dash-scope span,.daily-workspace .dash-table-wrap small{color:var(--text-muted)}
.daily-workspace .dash-table-wrap th,.daily-workspace .dash-table-wrap td{padding:12px}
.table th.r,.table td.r{text-align:right;font-variant-numeric:tabular-nums}
.daily-workspace .table th,.daily-workspace .table td{padding:12px}
.dialog-content .dialog-actions{justify-content:flex-start;gap:12px;flex-wrap:wrap}
.dialog-content>form+button,.dialog-content>.btn+.btn{margin-top:12px}
.dialog-content .dialog-cancel{display:flex;margin-top:12px;text-decoration:underline;color:var(--text-muted)}
.btn.danger:hover:not(:disabled),.btn.danger:active:not(:disabled){background:#881b12;color:white}
.checkbox-label{min-height:44px;min-width:44px;gap:8px;padding:8px;cursor:pointer}
.seg{display:inline-flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.seg button{min-width:44px;min-height:44px;padding:10px 16px;border:1.5px solid var(--rule-strong);background:var(--bg-card);color:var(--text-strong);font:700 14px var(--font-head)}
.seg [aria-pressed=true]{background:var(--bg-inverse);color:var(--text-on-inverse)}
.account-card>h2{padding:20px 24px 0;margin:0}
.account-email{margin:16px 0;overflow-wrap:anywhere}
.portal-content [data-report]{width:156px;flex:0 0 156px;white-space:nowrap;border:2.5px solid var(--rule-strong)}
@media(max-width:560px){
  .daily-workspace.workspace,.portal-page{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body:has(form .school-actions) .daily-bottom{display:none}
  .office-page #admission-form .school-actions{bottom:0}
  .daily-workspace .dashboard-actions .dash-round-btn{display:inline-flex}
  .daily-workspace .dash-table-wrap .stack-m thead{display:none}
  .daily-workspace .dash-table-wrap .stack-m tr{display:block;padding:12px 0}
  .daily-workspace .dash-table-wrap .stack-m td{display:block;white-space:normal;overflow-wrap:anywhere;text-align:left;padding:8px}
  .daily-workspace .dash-table-wrap .stack-m td[data-label]::before{content:attr(data-label) ': ';color:var(--text-muted);font:12px var(--font-mono)}
}
@media(max-width:480px){.alert{grid-template-columns:1fr}.daily-workspace .page-heading{display:flex;flex-direction:column;align-items:stretch;gap:16px}.daily-workspace .page-heading .school-actions{position:static;width:100%}}
/* Restore the token system's 16px rem base over the legacy stylesheet's :root. */
:root{font-size:100%}
code{font-size:max(12px,.9em)}
.office-desk-tabs [aria-pressed=true]:hover:not(:disabled){background:var(--bg-inverse);color:var(--text-on-inverse)}

/* The same visible sample/warning strip is used by office, family and sign-in. */
.sample-banner,.daily-workspace>.sample-banner{position:sticky;top:0;z-index:60;display:block;width:100%;margin:0;padding:12px 16px;background:var(--fill-highlight);color:var(--text-strong);font:500 12px/1.5 var(--font-mono);white-space:normal;overflow-wrap:anywhere}
.sample-warning{background:var(--fill-warning,#fff0cc);border:2px solid currentColor}
.daily-workspace .kpi-number{white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.daily-workspace .dashboard-pair:has(>section:only-child){grid-template-columns:minmax(0,1fr)}
@media print{.sample-banner{display:block!important;position:static}}

.sample-banner strong,.daily-workspace>.sample-banner strong{color:var(--text-strong)}
