:root { font-family: Arial, Helvetica, sans-serif; color: #173442; background: #f4f8f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.app { max-width: 1150px; margin: auto; padding: 18px; }
.hero { background: #116b72; color: #fff; border-radius: 18px; padding: 24px 28px; }
.hero h1 { font-size: clamp(1.5rem, 3.1vw, 2.1rem); margin: 7px 0; }
.hero p { margin: 4px 0; }
.eyebrow { font-size: .77rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
button { cursor: pointer; border: 2px solid #116b72; border-radius: 10px; padding: 10px 14px; background: white; color: #07545c; font: inherit; font-weight: 700; }
button:hover, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f2a149; outline-offset: 2px; }
button[aria-selected="true"], button.primary { background: #116b72; color: white; }
button.quiet { border: 0; padding-left: 0; text-decoration: underline; background: transparent; }
[hidden] { display: none !important; }
h2, h3, h4 { margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { margin: 21px 0 9px; }
p { line-height: 1.48; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 16px 2px; }
.section-head p { max-width: 410px; margin: 5px 0; }
.section-head .eyebrow { color: #a94e15; }
.layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: 16px; align-items: start; }
.card { background: white; border: 1px solid #c9dadd; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(17,70,77,.04); }
.card.practice { border-top: 5px solid #e28a36; }
label { display: block; font-weight: 700; }
input, select { font: inherit; color: #173442; border: 1px solid #80a1a6; border-radius: 8px; padding: 10px; background: #fff; width: 100%; margin-top: 6px; }
input[type=number] { max-width: 190px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.controls label { flex: 1 1 115px; }
.formula { background: #eaf5f4; border-left: 5px solid #137780; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 1.12rem; overflow-wrap: anywhere; }
.formula.light { background: #fff2e6; border-color: #dd812c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; background: #eaf5f4; border: 1px solid #b7d9d6; border-radius: 999px; padding: 6px 11px; font-weight: 700; }
.chip.accent { background: #fff0df; border-color: #edbd87; }
.steps { display: grid; gap: 8px; }
.step { background: #f5f9fa; padding: 9px 12px; border-radius: 8px; border-left: 3px solid #6da9a9; line-height: 1.45; }
.step strong { color: #07545c; }
.note { color: #465f67; }
.question { font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.feedback { background: #edf4f5; border-radius: 9px; min-height: 48px; padding: 11px 13px; line-height: 1.45; }
.feedback.good { background: #dff4e5; color: #135832; }
.feedback.try { background: #fff0db; color: #71430a; }
.flow { display: flex; gap: 10px; flex-wrap: wrap; }
.flow span { flex: 1 1 155px; text-align: center; background: #fff0df; border-radius: 9px; padding: 10px; font-weight: 700; color: #83410d; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 410px; text-align: center; }
caption { text-align: left; color: #465f67; margin: 0 0 7px; font-size: .91rem; }
th, td { border: 1px solid #c9dadd; padding: 8px; }
th { background: #edf5f5; }
td.selected { background: #ffe8c9; color: #673900; font-weight: 800; }
footer { color: #465f67; font-size: .9rem; padding: 12px 2px 25px; }
@media (max-width: 780px) { .layout { grid-template-columns: 1fr; } .section-head { display: block; } .app { padding: 10px; } .card { padding: 16px; } }
