:root{font-family:system-ui,Arial,sans-serif;color:#e5e7eb;background:#101827}*{box-sizing:border-box}main{max-width:950px;margin:auto;padding:24px}header{text-align:center;padding:12px 0 24px}h1{color:#e8b94f;font-size:2.5rem;margin:0}nav{margin-top:24px}a{color:#e8b94f}section{background:#1d293b;border:1px solid #374151;padding:24px;border-radius:12px;margin:20px 0}label{display:block;margin:13px 0}input,select,textarea{display:block;width:100%;padding:11px;margin:5px 0 10px;border:1px solid #64748b;border-radius:6px;background:#0f172a;color:white}button{background:#e8b94f;color:#101827;font-weight:700;padding:10px 16px;border:0;border-radius:7px;cursor:pointer}.inline{display:inline}.inline button{background:transparent;color:#e8b94f;border:1px solid #e8b94f;padding:4px 8px}.error{color:#fecaca}.alert{color:#fde68a}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:9px;border-bottom:1px solid #475569}footer{margin:35px 0;color:#fcd34d;font-size:.85rem}small{color:#aab6ca}.row{display:flex;gap:12px;flex-wrap:wrap}.row>*{flex:1;min-width:180px}
.metric{display:flex;flex-direction:column;gap:8px;border:1px solid #374151;background:#141f30;border-radius:10px;padding:15px;min-width:0}.metric strong{font-size:1.6rem}.metric small{line-height:1.4}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.grade{display:inline-block;border-left:6px solid var(--grade);padding:5px 9px;background:#101827;border-radius:4px;color:#fff;font-weight:700;font-size:.85rem}.months{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.month{background:var(--grade);color:#fff;min-height:95px;border-radius:10px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.month b{font-size:1.5rem}.month small{color:#fff}.month.future{background:#354257;color:#d1d5db}.score-row{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto;gap:14px;align-items:center;border-bottom:1px solid #475569;padding:14px 0}.score-row strong,.score-row small{display:block}.score-row label{display:flex;gap:5px;align-items:center}.score-row input[type=radio]{width:auto;margin:0;accent-color:#e8b94f}.score-row button{white-space:nowrap}.muted{color:#acb9ce}.progress{height:10px;border-radius:12px;overflow:hidden;background:#334155}.progress div{height:100%;background:#e8b94f}.section-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border-bottom:1px solid #374151;flex-wrap:wrap}.section-summary small{color:#cbd5e1}@media(max-width:620px){.score-row{grid-template-columns:1fr 1fr}.score-row>div{grid-column:1 / -1}.months{grid-template-columns:repeat(3,1fr)}.month{padding:5px;min-height:75px}.month b{font-size:1.1rem}}

/* PDS ticker: centred advice and accessible navigation. */
.pds-ticker{background:#18263b;border:1px solid #46516a;border-radius:12px;padding:14px 18px;margin:0 0 20px}
.pds-ticker-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#e8b94f;font-size:.76rem;font-weight:700;letter-spacing:.035em}
.pds-ticker-head button,.pds-ticker-controls button{background:#253349;color:#f8e6b0;border:1px solid #64748b;padding:7px 12px;font-size:.9rem}
.pds-ticker-track{min-height:78px;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 12px}
.pds-ticker-track span{font-size:1.15rem;line-height:1.5;font-weight:600;color:white;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.pds-ticker-controls{display:flex;justify-content:center;align-items:center;gap:18px}
.pds-ticker-counter{font-size:.85rem;color:#d5deed;min-width:60px;text-align:center}
.pds-ticker-timing{text-align:center;color:#aebed2;font-size:.74rem;margin-top:9px}
@media(max-width:620px){.pds-ticker-head{font-size:.66rem}.pds-ticker-track span{font-size:1rem}.pds-ticker-track{min-height:110px}.pds-ticker-controls{gap:10px}}

/* Week 1.2 six-day entry */
main{max-width:1450px}.week-panel{overflow-x:auto}.week-grid{min-width:880px;font-size:.92rem}.week-grid th,.week-grid td{padding:8px 6px;text-align:center}.week-grid th:first-child,.week-grid td:first-child{text-align:left;min-width:275px;max-width:450px}.week-grid .section-head td{background:#2a3851;color:#ffe4a0;font-weight:800;text-align:left;padding:11px}.week-grid .subtotal td{background:#172c39;font-weight:700}.week-grid .total td{background:#233348;font-weight:800}.week-grid .selected-col{outline:1px solid #e8b94f;background:#252f41}.week-grid .score-btn{padding:7px 12px;min-width:53px;background:#192337;color:#cbd5e1;border:1px solid #64748b}.week-grid .score-btn.done{background:#24965b;color:#fff;border-color:#24965b}.week-grid .score-btn:disabled{opacity:.35;cursor:not-allowed}.week-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.week-tools button{font-size:.88rem}.week-note{color:#c4d1e3}.week-pill{padding:5px 10px;border:1px solid #526278;border-radius:16px}.unsaved{color:#fbbf24;font-weight:800}.save-ok{color:#86efac;font-weight:800}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.summary-cards>div{border:1px solid #43516b;border-radius:9px;padding:11px;background:#152439}.summary-cards strong{display:block;font-size:1.4rem}.bar-track{width:100%;height:11px;border-radius:12px;background:#39465a;overflow:hidden;margin:8px 0}.bar-fill{height:100%;background:var(--bar);width:var(--pct)}.metric .grade{width:max-content}.day-selected{background:#263449}.year-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.year-controls input{width:100px;margin:0}.warn{padding:12px;border:1px solid #c18b41;border-radius:9px;color:#ffe0a0}.compact{font-size:.82rem}.muted-small{font-size:.8rem;color:#9eacc1}@media(max-width:650px){main{padding:12px}.week-grid{font-size:.82rem}.week-tools{gap:5px}.week-tools button{padding:8px}}

/* V1.3: Overall daily performance grade. CSS specificity intentionally overrides
   .week-grid .total td and .week-grid .selected-col. */
.week-grid .total td.total-pct.grade-daily{font-weight:800;color:#fff;text-align:center;font-variant-numeric:tabular-nums;transition:background-color .15s ease-in-out}
.week-grid .total td.total-pct.grade-daily--mediocre{background:#b91c1c}
.week-grid .total td.total-pct.grade-daily--standard{background:#15803d}
.week-grid .total td.total-pct.grade-daily--bravo{background:#a16207}
.week-grid .total td.total-pct.grade-daily--ace{background:#7e22ce}
.week-grid .total td.total-pct.selected-col{outline:2px solid #fff;outline-offset:-2px}

/* V1.3 additive report / print formatting */
.report-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.report-filters label{min-width:135px;flex:1}.report-filters input,.report-filters select{width:100%}
.report-paper{background:#fff;color:#152238;border:1px solid #d9dfe9;border-radius:12px;padding:28px;margin:18px 0}
.report-cover{text-align:center;border-bottom:2px solid #e6e9f0;margin-bottom:20px;padding:20px 0}.report-cover h2{margin-bottom:10px}
.report-highlight{background:#f7f8fb;border-left:7px solid var(--report-colour);padding:18px 22px;margin:14px 0 28px;display:grid;gap:4px}.report-highlight strong{font-size:36px;color:var(--report-colour)}
.report-table{width:100%;border-collapse:collapse;margin:14px 0 24px;font-size:13px}.report-table th,.report-table td{border-bottom:1px solid #ddd;padding:8px;text-align:left}.report-table th{background:#edf1f7}
.report-bar{background:#e7e9ee;height:15px;border-radius:6px;min-width:80px;overflow:hidden}.report-bar span{height:100%;display:block}
.report-trends{display:grid;gap:8px;margin:15px 0 25px}.report-trend{display:grid;grid-template-columns:90px 1fr 75px;gap:12px;align-items:center;font-size:13px}
.report-footnote{font-size:11px;color:#586574;margin-top:25px}
@media print{ @page{size:A4;margin:14mm} body,main{background:white!important;color:#152238!important;box-shadow:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body>main>header,body>main>footer,.pds-ticker,.report-controls{display:none!important}.report-paper{padding:0;border:0;margin:0;box-shadow:none;break-inside:auto}.report-table thead{display:table-header-group}.report-table tr,.report-highlight,.report-trend{break-inside:avoid} .report-bar,.report-highlight{-webkit-print-color-adjust:exact;print-color-adjust:exact} h3{break-after:avoid}.report-cover{padding-top:12mm}}
