/* Performance sheet: compact headings, clear inputs, and editable recorded rows. */
.sheet-routines{margin:2px 0 12px;scroll-margin-top:12px}
.sheet-routines .record-library-heading{min-height:36px}
.sheet-routines .record-library-heading h2{font-size:13px;font-weight:500;color:var(--muted)}
.sheet-routine-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);min-width:0}
.sheet-routine-row>.sheet-routine-start{display:flex;align-items:center;justify-content:space-between;flex:1;gap:8px;min-width:0;min-height:48px;padding:5px 0;border:0;background:transparent;text-align:left;color:var(--ink)}
.sheet-routine-start>span{min-width:0}.sheet-routine-start strong{display:block;font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.sheet-routine-start small{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5}
.sheet-routine-start>.icon{width:17px;height:17px;flex-shrink:0}
.sheet-routine-row>.text-button{font-size:12px;min-height:44px;padding:6px 0;white-space:nowrap}
.record-sheet{border-top:1px solid var(--line);margin:0}
.sheet-entry{position:relative;margin:0;padding:12px 8px;border-bottom:1px solid var(--line);scroll-margin-top:12px;min-width:0}
.sheet-entry.is-current{background:#f2f5f6}
.sheet-entry .set-form.sheet-set-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) 88px;gap:6px 8px;align-items:end;margin:0;padding:0;border:0;background:transparent}
.sheet-entry .sheet-set-form>.set-inputs{display:contents}
.sheet-entry-heading{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0}
.sheet-entry-menu{position:relative;flex:1;min-width:0;margin:0}
.sheet-entry-heading>.sheet-fill-previous{font-size:12px;min-height:44px;padding:4px 0 4px 6px;color:var(--ink);flex-shrink:0}
.sheet-entry-title{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;min-height:44px;padding:0;list-style:none;cursor:pointer}
.sheet-entry-title::-webkit-details-marker{display:none}
.sheet-entry-title>.exercise-icon{width:44px;height:44px;display:block;flex-shrink:0;background:transparent;border:0;border-radius:0;color:var(--ink)}
.sheet-entry-title>span{min-width:0}
.sheet-entry-title strong{display:block;font-size:17px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;color:var(--ink)}
.sheet-entry-title small{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400;margin-top:2px}
.sheet-entry-title>.icon{display:none}
.sheet-entry-title strong>.icon{display:inline-block;width:13px;height:13px;margin-left:3px;vertical-align:-2px;color:var(--muted)}
.sheet-entry-title:hover{background:var(--soft)}
.sheet-entry .sheet-set-form .numeric-field{display:block;min-width:0;margin:0;border:0}
.sheet-entry .sheet-set-form .set-inputs>.numeric-field{grid-column:auto;grid-row:auto;max-width:none;width:auto;justify-self:stretch}
.sheet-entry .sheet-set-form.unweighted .set-inputs>.numeric-field{grid-column:1/span 2}
.sheet-entry .sheet-set-form .numeric-field>label{display:flex;justify-content:space-between;gap:4px;margin:0 0 3px;padding:0;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap}
.sheet-entry .sheet-set-form .numeric-field>label>small{font-size:11px}
.sheet-entry .sheet-set-form .number-control{display:block;min-width:0;border:0;border-radius:6px;background:#edf1f3;overflow:visible}
.sheet-entry.is-current .number-control{background:#fff}
.sheet-entry .sheet-set-form .number-control input{width:100%;min-width:0;height:44px;min-height:44px!important;padding:4px 3px!important;background:transparent;color:var(--ink);border:0;border-radius:6px;font:600 26px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;text-align:center;letter-spacing:0;box-shadow:none;appearance:textfield;-moz-appearance:textfield}
.sheet-entry .sheet-set-form .number-control input.long-value{font-size:20px!important}
.sheet-entry .sheet-set-form .number-control input.very-long-value{font-size:16px!important}
.sheet-entry .sheet-set-form .number-control input::placeholder{font-size:16px;color:#71818b;font-weight:400}
.sheet-entry .sheet-set-form .number-control input::-webkit-inner-spin-button,.sheet-entry .sheet-set-form .number-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.sheet-entry .sheet-set-form .number-control:focus-within{outline:2px solid #4f7185;outline-offset:2px}
.sheet-entry .sheet-set-form .set-inputs>.sheet-submit{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;justify-content:center;gap:1px;min-height:44px;height:44px;width:88px;padding:3px 0;font-size:13px;line-height:1.3;letter-spacing:0;border-radius:6px}
.sheet-submit>[data-sheet-next]{font-size:11px;font-weight:600;white-space:nowrap}
.sheet-load-line{grid-column:1/-1;margin:2px 0 0;padding:0;border:0;font-size:12px;color:var(--muted)}
.sheet-load-line[hidden]{display:none}
.sheet-entry-options{position:absolute;left:0;top:calc(100% + 6px);z-index:30;width:320px;max-width:calc(100vw - 32px);max-height:min(72dvh,620px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);box-shadow:0 7px 24px #10263518;padding:12px;color:var(--ink);font-size:14px}
.sheet-entry-options .sheet-option-context{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 8px}
.sheet-entry-options .set-form-title{display:block}.sheet-entry-options .set-form-title strong{font-size:13px}.sheet-entry-options .set-form-title>span{display:block;max-width:none;text-align:left;font-size:12px}
.sheet-entry-actions{display:grid;gap:0;margin-top:8px;border-top:1px solid var(--line)}
.sheet-entry-actions>.btn{justify-content:flex-start;text-align:left;white-space:normal;width:100%;min-height:44px;padding:8px 4px;font-size:14px;border:0;background:#fff}
.sheet-entry-actions>.btn>.icon{width:16px;height:16px}
.sheet-entry-options .set-options{display:block;margin:8px 0}
.sheet-entry-options .set-more,.sheet-entry-options .batch-entry{margin:0;border-bottom:1px solid var(--line)}
.sheet-entry-options summary{min-height:44px;display:flex;align-items:center;font-size:13px}
.sheet-entry-options .set-detail-fields{display:grid;grid-template-columns:1fr;gap:10px;padding:8px 0 12px}
.sheet-entry-options .set-detail-fields label,.sheet-entry-options .batch-entry label{display:grid;gap:4px;font-size:13px}
.sheet-entry-options input,.sheet-entry-options select,.sheet-entry-options textarea{font-size:16px!important;min-height:44px;max-width:100%;width:100%}
.sheet-entry-options .batch-entry label{margin:4px 0 10px}
.sheet-entry-options .previous-record{display:block;margin:0;padding:0;border:0;font-size:13px}
.sheet-entry-options .previous-record summary{display:block;padding:12px 0;font-size:13px}
.sheet-entry-options .previous-record>.btn,.sheet-entry-options .previous-record .btn{min-height:44px;font-size:13px;padding:6px 0}
.sheet-entry-options .previous-sets{margin:4px 0 8px;padding-left:24px}
.sheet-entry-options .input-comparison,.sheet-entry-options .input-hint{font-size:12px;line-height:1.65;margin:6px 0;padding:0;min-height:0}
.sheet-entry-options .entry-note{margin:6px 0}.sheet-entry-options .entry-note textarea{min-height:80px}
.sheet-adjustments{display:grid;gap:4px;margin:6px 0}
.sheet-adjustments>div{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px;align-items:center;font-size:13px}
.sheet-adjustments .btn{min-width:44px;min-height:44px;padding:4px;font-size:22px;background:var(--soft);color:var(--ink);border:0}
.sheet-saved-sets{display:grid;gap:0;margin:6px 0 0;min-width:0}
.sheet-saved-row{display:grid;grid-template-columns:20px minmax(0,1fr) 44px 44px;gap:4px;align-items:center;min-height:44px;min-width:0;margin:0}
.sheet-set-number{font-size:11px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}
.sheet-saved-row>.sheet-saved-value{justify-content:flex-start;text-align:left;min-height:44px;min-width:0;padding:3px 2px;background:transparent;border:0;color:var(--ink);font-size:15px;font-weight:500;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sheet-saved-value:hover:not(:disabled){text-decoration:underline;text-underline-offset:4px}
.sheet-saved-value>.icon{width:12px;height:12px;color:var(--muted);flex-shrink:0}
.sheet-entry:has(.sheet-inline-edit) .sheet-set-form .sheet-submit:not(:hover){background:#e1e8eb;border-color:#e1e8eb;color:var(--ink)}
.sheet-saved-row>.sheet-set-action{width:44px;min-width:44px;height:44px;padding:10px;border:0;background:transparent;color:var(--muted)}
.sheet-set-action>.icon{width:18px;height:18px}
.sheet-set-delete:hover:not(:disabled){color:#a22c35;background:#fceef0}
.sheet-inline-edit .sheet-inline-fields{display:grid;grid-template-columns:1fr;gap:5px;min-width:0}
.sheet-inline-edit .sheet-inline-fields.weighted{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.sheet-inline-fields>label{display:flex;align-items:center;gap:3px;min-width:0;font-size:11px;color:var(--muted)}
.sheet-inline-fields>label>span{white-space:nowrap;flex-shrink:0}
.sheet-inline-fields input{width:100%;min-width:0;min-height:44px!important;height:44px;padding:4px 2px!important;border:1px solid #a6b8c4;background:#fff;font:500 16px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;border-radius:5px;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.sheet-inline-fields input::-webkit-inner-spin-button,.sheet-inline-fields input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.sheet-inline-edit>.sheet-inline-save{width:44px;min-width:44px;min-height:44px;padding:4px 1px;border-radius:5px;font-size:12px}
.sheet-saved-row:focus-within{outline:1px solid #809ba9;outline-offset:2px}
.sheet-inline-edit input:focus-visible{outline:2px solid #4f7185;outline-offset:1px}
.sheet-entry.is-finished{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.sheet-entry.is-finished>.sheet-saved-sets{grid-column:1/-1}.sheet-entry.is-finished .finished-summary{display:flex;flex-direction:column;align-items:flex-end;gap:0;padding:0;margin:0;font-size:11px}.sheet-entry.is-finished .finished-summary>span{display:none}.sheet-entry.is-finished .finished-summary>.btn{min-height:44px;font-size:12px;padding:6px}
.sheet-entry.is-finished>.sheet-entry-heading{grid-column:1}
.record-library.sheet-library{display:block;margin-top:16px;padding-top:4px;border-top:1px solid var(--line)}
.sheet-library .record-library-heading h2{font-size:16px}
.sheet-library .record-exercise-row{display:block}
.sheet-library .record-exercise-select{min-height:56px;grid-template-columns:40px minmax(0,1fr) 24px;gap:8px}
.sheet-library .record-exercise-select strong{font-size:14px}
.sheet-library .record-exercise-select small{font-size:12px}
.record-muscle-jumps{display:flex;flex-wrap:wrap;gap:0 4px;margin:8px 0 4px;border-bottom:1px solid var(--line)}
.record-muscle-jumps>.btn{min-width:44px;min-height:44px;padding:6px;font-size:13px}
.record-muscle-section{scroll-margin-top:12px}
.record-muscle-section>.record-library-subheading{font-size:14px;font-weight:650;min-height:36px;margin:12px 0 0;color:var(--ink)}
.record-library-subheading>i{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.record-recent-exercises>.record-library-subheading{font-size:13px}
@media(min-width:721px){.record-sheet{max-width:900px}.sheet-entry .set-form.sheet-set-form{grid-template-columns:minmax(0,1fr) 120px 100px 88px;gap:16px}.sheet-entry-heading{grid-column:1;align-self:center}.sheet-entry .sheet-set-form.unweighted .set-inputs>.numeric-field{grid-column:2/span 2}.sheet-saved-sets{max-width:500px;margin-left:auto}.sheet-entry.is-finished>.sheet-saved-sets{margin-left:0;max-width:none;width:100%}.sheet-library .record-all-exercises{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}.sheet-routines{max-width:900px}.sheet-routines .record-routine-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}}
@media(max-width:720px){body[data-page=record] main{padding-bottom:calc(110px + env(safe-area-inset-bottom))}.compact-record-header{border:0}.compact-record-tools{min-height:44px}.compact-record-tools>select{width:100%;max-width:none;flex:1}.sheet-routines .record-library-heading{min-height:36px}.sheet-entry-options{max-width:calc(100vw - 32px)}}
@media(max-width:350px){body[data-page=record] main{padding-left:12px;padding-right:12px}.sheet-entry{padding:10px 6px}.sheet-entry .set-form.sheet-set-form{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) 80px;gap:5px 6px}.sheet-entry-title{grid-template-columns:38px minmax(0,1fr);gap:5px}.sheet-entry-title>.exercise-icon{width:38px;height:40px}.sheet-entry-title strong{font-size:16px}.sheet-entry-heading>.sheet-fill-previous{font-size:11px}.sheet-entry .sheet-set-form .set-inputs>.sheet-submit{width:80px}.sheet-entry-options{max-width:calc(100vw - 36px)}.sheet-routine-row>.text-button{font-size:11px}.sheet-saved-row{grid-template-columns:16px minmax(0,1fr) 44px 44px;gap:2px}.sheet-saved-row>.sheet-saved-value{font-size:14px}.sheet-inline-fields>label{gap:1px}}
