:root{font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;font-size:18px;line-height:1.8;color:#183b38;background:#f3f6f1;--ink:#193b38;--green:#176448;--line:#bccdc3;--muted:#4c665e;--paper:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#145c42;text-underline-offset:.2em;overflow-wrap:anywhere}a:hover{text-decoration-thickness:2px}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #ae641a;outline-offset:3px}header,main,footer{max-width:1160px;margin:auto;padding:22px 28px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{font-weight:800;font-size:26px;text-decoration:none;letter-spacing:-.04em;white-space:nowrap}.brand small{font-size:16px;letter-spacing:0;font-weight:500}nav{display:flex;flex-wrap:wrap;gap:8px 20px}nav a{display:flex;align-items:center;min-height:48px;font-size:16px}main{padding-top:32px;padding-bottom:64px}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:38px;line-height:1.4;letter-spacing:-.035em;margin:6px 0 14px}h2{font-size:26px;line-height:1.5;margin:0 0 14px}h3{font-size:20px;line-height:1.5;margin:0 0 12px}p{margin:0 0 16px}.lead{font-size:20px;color:var(--muted);max-width:860px}.eyebrow{font-size:14px;font-weight:750;letter-spacing:.05em;color:var(--muted);margin-bottom:8px}.badge{display:inline-block;padding:7px 13px;background:#e4eddc;border:1px solid #bacdaf;border-radius:6px;font-size:15px;margin-bottom:14px}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:40px;align-items:center;padding:16px 0 38px}.hero h1{font-size:52px;max-width:640px}.hero p{max-width:600px}.session-board{border:1px solid #2a5548;background:#1c4338;color:#eff6e8;border-radius:12px;padding:28px}.session-board .eyebrow{color:#bacdbd}.session-board ol{list-style:none;padding:0;margin:0;counter-reset:steps}.session-board li{display:grid;grid-template-columns:38px 1fr;gap:8px;padding:17px 0;border-bottom:1px solid #54715e;counter-increment:steps;font-size:21px;font-weight:650}.session-board li:last-child{border-bottom:0}.session-board li:before{content:'0' counter(steps);color:#d8e2a6;font-variant-numeric:tabular-nums;font-size:15px;padding-top:7px}.session-board small{display:block;font-weight:400;color:#ccdace;font-size:15px}.quick-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px}.quick-links a{min-height:48px;padding:9px 16px;border:1px solid var(--line);border-radius:6px;background:white;font-size:16px}.section-title{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin:32px 0 18px}.section-title h2{margin:0}.section-title p{margin:0;font-size:16px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:24px;display:flex;flex-direction:column;min-width:0}.card h3{font-size:23px}.card h3 a{text-decoration:none}.card p{font-size:17px;color:var(--muted)}.card .card-action{margin-top:auto;display:block;padding-top:12px;min-height:48px;font-size:16px;font-weight:650}.tool-head{max-width:960px;margin:0 auto 22px}.crumb{font-size:15px;margin-bottom:12px}.crumb a{display:inline-flex;min-height:48px;align-items:center}#workspace{max-width:960px;margin:auto}.panel{background:var(--paper);border:1px solid #aebeaf;border-radius:12px;padding:28px;width:100%;min-width:0}#result{margin-top:24px;background:#fbfff7}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}.panel-head h2{margin:0}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{min-width:0}label{display:block;font-weight:650;font-size:16px;line-height:1.5;margin-bottom:7px}input,select,textarea{font-size:20px;min-height:50px;display:block;width:100%;max-width:100%;min-width:0;border:1px solid #889f91;border-radius:6px;background:#fff;color:#183b38;padding:10px 12px;line-height:1.6}textarea{resize:vertical;white-space:pre-wrap}input[aria-invalid=true],select[aria-invalid=true]{border:2px solid #a32921}input[type=checkbox]{width:22px;min-height:22px;height:22px;flex-shrink:0;accent-color:var(--green);margin:0}button{background:var(--green);border:1px solid var(--green);border-radius:6px;color:white;font-size:17px;font-weight:650;min-height:50px;padding:10px 18px;cursor:pointer}button:hover{background:#104d37}.secondary{background:#fff;color:#225640;border-color:#809c89}.secondary:hover{background:#edf3e8}button:disabled{opacity:.5;cursor:not-allowed}.text-button{background:white;border-color:#9bab9e;color:#325f4b;font-size:15px;min-height:48px;padding:8px 12px}.text-button:hover{background:#edf3e8}.help,small{font-size:15px;line-height:1.7;color:var(--muted)}.field .help{margin:7px 0 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.actions button{flex:0 1 auto}.input-group{margin-top:26px}.input-group>h3{font-size:21px}.entries{display:grid;gap:14px;margin-bottom:14px}.entry{border:1px solid #ccd6c9;border-radius:8px;padding:18px;background:#f7faf3}.entry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.entry-heading h3{font-size:16px;margin:0;color:#4c6651}.row-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.input-group[data-group=inventory] .row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.input-group[data-group=targets] .row-fields{grid-template-columns:1fr}.input-group[data-group=records] .row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.entry .field label{font-size:15px}fieldset{border:0;padding:0;margin:0;min-width:0}.local-save,.conditions{border:1px solid var(--line);border-radius:8px;padding:14px 17px;margin-top:22px;background:#fff}.local-save p{margin-top:12px}.local-save .actions{margin-top:12px}.local-save button{font-size:15px}.local-save p:last-child{margin-bottom:0}summary{font-weight:650;font-size:16px;min-height:48px;cursor:pointer;padding:9px 0}.local-save summary,.conditions summary{margin:-4px 0}.notice{padding:14px 17px;border:1px solid #bdcba9;background:#edf2dc;border-radius:8px;font-size:16px;margin:18px 0}.caution{margin-top:28px;padding-top:24px;border-top:1px solid var(--line);font-size:16px;color:var(--muted)}#status,#storage-status,#copy-status{font-size:16px;margin:16px 0 0;color:#285b3d;white-space:pre-line}#status:empty,#storage-status:empty,#copy-status:empty{margin:0}#summary{font-size:32px;font-weight:750;line-height:1.4;letter-spacing:-.03em;margin:8px 0 22px;font-variant-numeric:tabular-nums}.result-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:24px 0 12px}.result-heading h3{margin:0}.print-choice{display:flex;gap:9px;align-items:center;font-size:14px;font-weight:500;min-height:48px;margin:0}.table-scroll{max-width:100%;overflow-x:auto;border:1px solid #bdcdbd;border-radius:6px}table{border-collapse:collapse;width:100%;font-size:18px;background:#fff}th,td{padding:13px 16px;border-bottom:1px solid #d4dfcd;text-align:left;vertical-align:top;min-width:110px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}th{font-weight:650;background:#edf3e7}tbody th{background:#f8fbf4}tr:last-child td,tr:last-child th{border-bottom:0}.table-scroll th:first-child{min-width:90px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:15px;margin:14px 0}#result-notes{padding-left:24px;font-size:16px;margin:22px 0}#result-notes li{margin-bottom:10px}.notes{max-width:960px;margin:34px auto 0;padding-top:28px;border-top:1px solid var(--line)}.notes h2{font-size:24px;margin-top:26px}.notes h2:first-child{margin-top:0}.notes li{margin-bottom:12px}.source-list{font-size:16px;padding-left:24px}.source-list p{font-size:15px;margin:5px 0}.related{display:flex;gap:10px;flex-wrap:wrap}.related a{display:flex;min-height:48px;align-items:center;border:1px solid var(--line);padding:8px 14px;border-radius:6px;font-size:16px;background:white}.copy-label{font-size:15px;margin-top:15px}#copy-buffer{min-height:250px}.plain-page{max-width:900px}.plain-page h2{margin-top:32px}.skip{position:absolute;top:-100px;left:10px;background:white;padding:14px;z-index:10}.skip:focus{top:8px}footer{border-top:1px solid var(--line);padding-top:26px;padding-bottom:36px}footer p{font-size:15px}footer nav a{font-size:14px}.print-only{display:none}[hidden]{display:none!important}
@media(max-width:800px){header{flex-direction:column;align-items:flex-start;gap:5px;padding:14px 18px 8px}.brand{font-size:25px}header nav{gap:5px 17px}header nav a{font-size:14px}main{padding:22px 18px 44px}.hero{grid-template-columns:1fr;gap:20px;padding:0 0 25px}.hero h1{font-size:38px}.session-board{padding:20px}.session-board li{font-size:18px;padding:12px 0}.hero .lead,.lead{font-size:18px}.cards{grid-template-columns:1fr;gap:14px}.card{padding:20px}.card h3{font-size:23px}.section-title{margin-top:28px}.section-title h2{font-size:25px}.quick-links{margin-bottom:20px}.quick-links a{font-size:14px;padding:9px 12px}h1{font-size:29px}.panel{padding:20px 17px;border-radius:10px}.panel-head{align-items:flex-start;flex-wrap:wrap}.panel-head h2{font-size:23px}.panel-head button{font-size:15px}.fields,.row-fields,.input-group[data-group=inventory] .row-fields,.input-group[data-group=records] .row-fields{grid-template-columns:1fr;gap:17px}.input-group[data-group=inventory] .row-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.entry{padding:15px 13px}.entry-heading{gap:8px}.text-button{font-size:14px;padding:8px 10px}input,select,textarea{font-size:20px;padding:10px}.help{font-size:14px}.actions{gap:10px}.actions button{flex:1 1 auto;font-size:16px}.local-save{padding:12px}.local-save .actions button{font-size:15px}.notice{font-size:15px;padding:13px}#summary{font-size:27px}th,td{padding:11px 12px;font-size:18px}.notes h2{font-size:23px}.notes ul{padding-left:23px}.caution{font-size:15px}footer{padding:24px 18px}.table-scroll{border-radius:4px}}
@media print{html,body{background:#fff;color:#000;font-size:12pt}header,footer,.skip{display:none!important}main{max-width:none;padding:0}body.print-result main>*{display:none!important}body.print-result main>#workspace{display:block!important}body.print-result #workspace>*{display:none!important}body.print-result #workspace>#controls{display:block!important}body.print-result #controls>*{display:none!important}body.print-result #controls>#result{display:block!important;border:0;padding:0;margin:0;background:white}body.print-result #result>*{display:none!important}body.print-result #result>#print-content{display:block!important;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:11pt;line-height:1.7}.panel{box-shadow:none}}

/* Keep the lap tool’s interval and passage times together on narrow phones. */
.table-scroll[data-tool="splits"] th:first-child{min-width:52px;width:52px;padding-left:8px;padding-right:8px}.table-scroll[data-tool="splits"] th:nth-child(2),.table-scroll[data-tool="splits"] th:nth-child(3),.table-scroll[data-tool="splits"] td:nth-child(2),.table-scroll[data-tool="splits"] td:nth-child(3){min-width:88px;padding-left:8px;padding-right:8px;white-space:nowrap}

.table-scroll[data-tool="splits"] thead th:first-child{white-space:nowrap}

/* Rep conversion is a vertical reading list, never a sideways mobile table. */
.rep-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.rep-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 18px;align-items:center;background:white;border:1px solid #bbcdbb;border-radius:8px;padding:16px 18px}.rep-card.is-input{background:#e9f1df;border:2px solid #63865d}.rep-label{font-size:18px;font-weight:650}.rep-weight{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.4}.rep-note{grid-column:1/-1;font-size:14px;color:var(--muted)}.result-assumption{font-size:17px;font-weight:650;margin:0 0 16px}#result-context .notice{margin:12px 0}.result-section:has(.rep-cards){margin-top:24px}
@media(max-width:800px){.rep-card{padding:14px 13px;gap:5px 12px}.rep-weight{font-size:24px}.rep-label{font-size:18px}.rep-note{font-size:14px}.result-assumption{font-size:16px}}

.options{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:20px 0}.options>.fields{margin-top:15px}.options summary{font-size:15px}#workspace[data-tool="one-rep-max"] #exercise{font-weight:650}#workspace[data-tool="one-rep-max"] #input-panel>.fields>.field:has(#exercise){grid-column:1/-1}

.secondary-result{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:20px 0;background:#fff}.secondary-result>.result-heading{margin:4px 0 12px}.secondary-result>summary{font-size:16px}

/* Eleven nearby weights and all ten reps share one native horizontal scroller. */
.matrix-table{width:100%;max-width:100%;border:1px solid #a7b7a1;border-radius:4px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.matrix-table table{table-layout:fixed;min-width:1084px;border-collapse:separate;border-spacing:0}
.matrix-table caption{text-align:left;background:#fff;padding:10px;font-size:16px;font-weight:650}
.matrix-table th,.matrix-table td{min-width:0;padding:12px 7px;text-align:center;border-right:1px solid #d4dfcd;overflow-wrap:anywhere;font-size:18px;line-height:1.45}
.matrix-table th:last-child,.matrix-table td:last-child{border-right:0}
.matrix-table thead th:first-child{width:84px}
.matrix-table tr>th:first-child{position:sticky;left:0;z-index:1;box-shadow:2px 0 3px #193b3820;background:#f8fbf4}
.matrix-table thead tr>th:first-child{background:#edf3e7;z-index:2}
.matrix-value{display:block;font-size:20px;font-weight:650;line-height:1.5}
.matrix-value>span,.matrix-fraction{display:inline-block;white-space:nowrap}
.matrix-mark{display:block;font-size:13px;line-height:1.5;margin-top:5px}
.matrix-above .matrix-mark{font-weight:800;text-decoration:underline}
.matrix-reference{font-size:17px;font-weight:650;line-height:1.7}
.matrix-controls{margin:12px 0;max-width:230px}
.matrix-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.matrix-nav p{grid-column:1/-1;margin:0;text-align:center;font-size:16px}
.matrix-nav button{min-width:0;padding:9px 5px;font-size:15px}
.matrix-nav #matrix-home{grid-column:1/-1;font-size:14px}
.matrix-scroll-hint{margin:16px 0 8px;font-weight:650}
.matrix-legend{margin-top:14px}.result-section:has(.matrix-table){margin-top:16px}
@media(max-width:800px){.matrix-value{font-size:18px}.matrix-table th,.matrix-table td{padding:11px 5px}.matrix-table caption{padding:8px;font-size:15px}.matrix-table .matrix-mark{font-size:12px}.matrix-reference{font-size:16px}.matrix-controls{max-width:none}.matrix-controls label{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}.matrix-table th[scope=row]{font-size:18px}}
/* Ordinary data rows include their row header in the same subtle stripe. */
.table-scroll tbody tr:nth-child(odd)>th,.table-scroll tbody tr:nth-child(odd)>td{background:#fff}
.table-scroll tbody tr:nth-child(even)>th,.table-scroll tbody tr:nth-child(even)>td{background:#f1f5ef}
/* Text and symbols remain the source of comparison meaning, also in grayscale. */
.matrix-table tbody tr:nth-child(even)>th{background:#eef3e9}
.matrix-table td[data-comparison="above"]{background:#e9f3ea}
.matrix-table tbody tr:nth-child(even)>td[data-comparison="above"]{background:#dfeee1}
.matrix-table td[data-comparison="below"]{background:#eef3f8}
.matrix-table tbody tr:nth-child(even)>td[data-comparison="below"]{background:#e4edf4}
.matrix-table td[data-comparison="same-display"],.matrix-table td[data-comparison="unresolved"]{background:#fafaf5}
.matrix-table tbody tr:nth-child(even)>td[data-comparison="same-display"],.matrix-table tbody tr:nth-child(even)>td[data-comparison="unresolved"]{background:#f1f3eb}
.matrix-table tbody tr:nth-child(n)>td.matrix-input{background:#e6efd9;outline:3px solid #193b38;outline-offset:-3px}
@media(forced-colors:active){.matrix-table tbody tr:nth-child(n)>td.matrix-input{outline-color:Highlight}.matrix-above .matrix-mark{text-decoration:underline}}

.rm-title-tail{display:inline-block;white-space:nowrap}

/* Group the privacy heading words; allow each group to reflow at enlarged text sizes. */
.privacy-title>span{display:inline-block;max-width:100%}

/* Validation stays next to the field it describes. */
.field-error{color:#98251f;font-size:15px;font-weight:650;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}

/* Explicit-success discovery; no layout width changes or floating overlay. */
#result-preview,#output{scroll-margin-block-start:16px}
.result-preview{margin:18px 0 0;padding:16px;border:1px solid currentColor;border-radius:8px;background:#f2f7f2;overflow-wrap:anywhere}.result-preview h3{margin:0;font-size:1.2rem;line-height:1.6}.result-preview p{margin:10px 0 0;font-size:18px}.result-preview a{display:inline-block;padding:8px 0;min-height:44px}#result-preview-title:focus-visible{outline:3px solid currentColor;outline-offset:4px}@media print{#result-preview{display:none!important}}

/* Keep the current inputs and selected calculation method legible on mobile. */
.conditions pre,.result-method p{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.result-method{margin-block:1rem}

#handoff-fields{white-space:pre-wrap;overflow-wrap:anywhere}

/* Session planner only: names remain readable, export is a separate explicit action. */
[data-tool="session-time"] .entry .row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-tool="session-time"] .entry [data-field$="-name"]{grid-column:1/-1}
[data-tool="session-time"] input[type="date"]{min-width:0;max-width:100%}
.session-export{border-top:1px solid #bdcdb6;margin-top:24px;padding-top:20px}
.session-export button{white-space:normal;overflow-wrap:anywhere}
#session-export-text{width:100%;min-height:280px;white-space:pre-wrap}
@media(max-width:560px){[data-tool="session-time"] .entry .row-fields{grid-template-columns:minmax(0,1fr)}}
@media print{.session-export{display:none!important}}

.bench-reference{margin:1.25rem 0;max-width:100%}.bench-reference h2{font-size:1.25rem}.bench-reference summary{cursor:pointer;min-height:48px;padding:.65rem 0}.bench-table-scroll{max-width:100%;overflow-x:auto}.bench-table-scroll table{min-width:32rem;width:100%;font-variant-numeric:tabular-nums}.bench-table-scroll th,.bench-table-scroll td{padding:.5rem;text-align:right;white-space:nowrap}.bench-table-scroll caption{text-align:left}.bench-table-scroll:focus-visible{outline:3px solid #ae641a;outline-offset:3px}
