.refresh-page { background: #eff2ed; color: #1c3228; }
.refresh-page .refresh-main { padding-top: 12px; }
.refresh-skip { position: absolute; left: 12px; top: -80px; padding: 10px 14px; background: #fff; z-index: 20; }
.refresh-skip:focus { top: 8px; }
.refresh-intro { max-width: 720px; margin: 14px 0 25px; }
.refresh-path { margin: 0 0 9px; color: #506759; font-size: .86rem; }
.refresh-intro h1 { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.2rem, 5vw, 3.45rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; }
.refresh-intro > p:last-child { margin: 13px 0 0; max-width: 62ch; color: #425b4c; font-size: 1.04rem; line-height: 1.55; }
.refresh-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); grid-template-areas: "sheet answer"; gap: 18px; align-items: start; }
.refresh-answer { grid-area: answer; position: sticky; top: 12px; min-width: 0; padding: 22px 23px 24px; color: #f4f6ee; background: #214537; border: 1px solid #173829; border-radius: 10px; }
.refresh-answer-head p { margin: 0 0 4px; color: #c5d8bd; font-size: .81rem; font-weight: 700; }
.refresh-answer h2 { margin: 0; font-size: 1.38rem; line-height: 1.22; letter-spacing: -.025em; }
.refresh-status { min-height: 3.5em; margin: 12px 0 17px; color: #d8e4d4; font-size: .88rem; line-height: 1.5; }
.refresh-prime { padding: 12px 0 16px; border-top: 1px solid #6d8d76; border-bottom: 1px solid #6d8d76; }
.refresh-prime > span { display: block; color: #d4e3cb; font-size: .86rem; }
.refresh-prime strong { display: block; color: #fbdfab; font-size: clamp(3.5rem, 7vw, 5.4rem); font-variant-numeric: tabular-nums; line-height: 1.08; letter-spacing: -.06em; }
.refresh-prime small { display: block; color: #d4e3cb; line-height: 1.42; }
.refresh-metrics { margin: 11px 0; }
.refresh-metrics div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #5a7b65; }
.refresh-metrics dt { font-size: .84rem; color: #d9e7d5; }
.refresh-metrics dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.refresh-answer-note { margin: 14px 0 15px; font-size: .82rem; line-height: 1.5; color: #cfddca; }
.refresh-answer button { padding: 10px 13px; border: 1px solid #d6e6cd; border-radius: 5px; color: #173829; background: #f7f7ed; font-weight: 750; }
.refresh-answer button:disabled { opacity: .55; cursor: not-allowed; }
#refresh-copy-status { display: block; margin-top: 7px; font-size: .79rem; }
#refresh-copy-fallback { width: 100%; margin-top: 10px; padding: 9px; border-radius: 4px; font-size: .8rem; }
.refresh-sheet { grid-area: sheet; min-width: 0; background: #fffef9; border: 1px solid #cddacf; border-left: 5px solid #75917c; border-radius: 4px 10px 10px 4px; }
.refresh-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 21px 22px 14px; }
.refresh-sheet-head h2 { margin: 0 0 3px; font-size: 1.36rem; letter-spacing: -.025em; }
.refresh-sheet-head p { margin: 0; color: #52695b; font-size: .85rem; line-height: 1.48; }
.refresh-add { flex: none; border: 1px solid #276349; border-radius: 5px; padding: 8px 10px; color: #17472e; background: #f2f9f0; font-size: .83rem; font-weight: 750; }
.refresh-add:disabled { opacity: .5; cursor: not-allowed; }
.refresh-rows { padding: 0 22px; }
.refresh-bed { padding: 17px 0 20px; border-top: 1px solid #d8e1d8; }
.refresh-bed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.refresh-bed-number { font-size: .93rem; }
.refresh-remove { border: 0; border-bottom: 1px solid #728679; border-radius: 0; padding: 2px; color: #4c6252; background: none; font-size: .8rem; }
.refresh-remove:disabled { visibility: hidden; }
.refresh-bed-fields { display: grid; grid-template-columns: minmax(0, 1.22fr) repeat(3, minmax(0, .8fr)); gap: 9px; }
.refresh-bed-fields label, .refresh-order-fields label { min-width: 0; color: #244638; font-size: .79rem; font-weight: 750; }
.refresh-bed-fields label span, .refresh-order-fields label span { color: #596f60; font-weight: 550; }
.refresh-bed-fields input, .refresh-order-fields input { display: block; width: 100%; min-width: 0; height: 42px; margin-top: 5px; padding: 8px 9px; border: 1px solid #bdcfc1; border-radius: 4px; color: #19382a; background: #fff; font-size: .95rem; }
.refresh-bed-fields input::placeholder, .refresh-order-fields input::placeholder { color: #7a897f; }
.refresh-bed-fields input:disabled { color: #67746b; background: #edf1eb; }
.refresh-readings-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 8px; color: #244638; font-size: .9rem; cursor: pointer; }
.refresh-readings-toggle input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #286b4e; }
.refresh-readings-panel { padding-top: 2px; }
.refresh-readings-panel[hidden] { display: none; }
.refresh-readings-panel label { display: block; color: #244638; font-size: .85rem; font-weight: 750; }
.refresh-readings-panel textarea { display: block; width: 100%; min-height: 72px; margin-top: 6px; padding: 9px 10px; border: 1px solid #bdcfc1; border-radius: 4px; background: #fff; color: #19382a; font: inherit; font-size: 16px; resize: vertical; }
.refresh-readings-help { margin: 7px 0 0; color: #52695b; font-size: .82rem; line-height: 1.5; }
.refresh-readings-demo { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #75917c; background: #f7f9f5; }
.refresh-readings-demo summary { min-height: 28px; cursor: pointer; font-weight: 750; }
.refresh-readings-demo img { display: block; width: 100%; max-width: 600px; height: auto; margin: 14px 0 8px; }
.refresh-readings-demo p { margin: 6px 0; font-size: .9rem; }
.refresh-order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 16px 22px; border-top: 1px solid #d8e1d8; background: #f7f9f5; }
.refresh-order-fields small { display: block; margin-top: 5px; color: #5b7161; font-size: .74rem; font-weight: 500; line-height: 1.4; }
.refresh-error { margin: 9px 22px; padding: 9px 11px; color: #803b29; background: #fff2e8; border: 1px solid #e3b49d; border-radius: 4px; }
.refresh-actions { display: flex; flex-wrap: wrap; gap: 9px 15px; align-items: center; padding: 19px 22px 22px; }
.refresh-actions button { min-height: 41px; border: 0; padding: 8px 3px; color: #236248; background: transparent; font-weight: 750; }
.refresh-actions .refresh-calculate { border-radius: 5px; padding: 9px 16px; color: #fff; background: #286b4e; }
.refresh-page button:hover:not(:disabled) { filter: brightness(.94); }
.refresh-page :is(a, button, input, textarea, summary):focus-visible { outline: 3px solid #d69e44; outline-offset: 3px; }
.refresh-ledger-section { display: grid; grid-template-columns: minmax(210px, .65fr) 1fr; gap: 26px; margin-top: 19px; padding: 22px 25px; border: 1px solid #cddacf; border-radius: 7px; background: #fffef9; }
.refresh-ledger-section h2 { margin: 0 0 5px; font-size: 1.28rem; }
.refresh-ledger-section p { margin: 0; color: #52695b; font-size: .86rem; line-height: 1.5; }
.refresh-ledger-section ol { margin: 0; padding-left: 22px; }
.refresh-ledger-section li { padding: 7px 0; border-bottom: 1px solid #e0e7dd; }
.refresh-ledger-section li:last-child { border-bottom: 0; }
.refresh-ledger-section li strong { display: block; }
.refresh-ledger-section li span { display: block; color: #5a6a5f; font-size: .82rem; }
.refresh-ledger-section li b { display: block; font-variant-numeric: tabular-nums; }
.refresh-figure { margin: 19px 0 0; padding: 15px 20px; border: 1px solid #cddacf; border-radius: 7px; background: #fffef9; }
.refresh-figure img { display: block; width: 100%; height: auto; }
.refresh-figure figcaption { margin-top: 7px; color: #52695b; font-size: .82rem; }
.refresh-guidance, .refresh-faq { max-width: 840px; padding: 26px 0 0; }
.refresh-guidance h2, .refresh-faq h2 { margin: 0 0 11px; font-size: 1.48rem; }
.refresh-guidance p { max-width: 78ch; line-height: 1.65; }
.refresh-faq details { padding: 14px 0; border-top: 1px solid #bed1c3; }
.refresh-faq details:last-child { border-bottom: 1px solid #bed1c3; }
.refresh-faq summary { cursor: pointer; font-weight: 750; }
.refresh-faq details p { margin-bottom: 0; max-width: 78ch; }
@media (max-width: 820px) { .refresh-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "answer" "sheet"; } .refresh-answer { position: static; } .refresh-status { min-height: 0; } .refresh-ledger-section { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 540px) { .refresh-intro h1 { font-size: 2.28rem; } .refresh-intro > p:last-child { font-size: .96rem; } .refresh-answer { padding: 19px; } .refresh-prime strong { font-size: 4.2rem; } .refresh-sheet-head, .refresh-rows, .refresh-order-fields, .refresh-actions { padding-left: 16px; padding-right: 16px; } .refresh-bed-fields { grid-template-columns: 1fr 1fr; } .refresh-bed-fields label:nth-child(-n+2) { grid-column: span 2; } .refresh-order-fields { grid-template-columns: 1fr; } .refresh-ledger-section { padding: 18px; } .refresh-figure { padding: 9px; } }
