:root{--ink:#101d3f;--coral:#f45440;--paper:#fcfbf7}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:repeating-linear-gradient(90deg,transparent 0 47px,#12203e04 48px),var(--paper);font:16px 'Arial Narrow',Arial,sans-serif}header{display:flex;align-items:center;gap:24px;border-bottom:2px solid var(--ink);padding:16px 3%;height:114px;background:#fffdfb}header img{width:76px;height:76px;object-fit:contain}header strong{font:bold 48px Georgia,serif;letter-spacing:-2px}header span{color:#68686b;font-size:16px}nav{margin-left:auto;display:flex;gap:22px;align-items:center}a{color:inherit;text-decoration:none}nav a:first-child{border-bottom:3px solid var(--coral);padding:10px 0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #7f8490;background:transparent;padding:10px 14px;border-radius:2px}button:hover{background:#f4544018}nav button{border:0;padding:0}main#tank{display:grid;grid-template-columns:19% 55% 22%;gap:2%;padding:28px 3%;min-height:870px}h3{font-size:16px;font-weight:700;letter-spacing:.3px;margin:15px 0 20px;border-bottom:1px solid var(--ink);padding-bottom:10px}article{background:#ffffff80;border:1px solid #93949c;box-shadow:0 2px 6px #151c3a14;border-radius:8px;padding:38px 42px;position:relative;overflow:hidden}h1{font:bold 42px Georgia,serif;margin:18px 0 24px;border-bottom:3px solid var(--coral);padding-bottom:18px}p{line-height:1.5}.sub{font-size:12px;letter-spacing:2px}label{display:block;font-size:14px;margin:12px 0}input:not([type=range]),textarea{display:block;width:100%;border:1px solid #d0ced0;border-radius:2px;padding:10px;background:#fff9;margin-top:7px}textarea{resize:vertical}input[type=range]{width:100%;accent-color:var(--coral);margin:22px 0}output{float:right}.numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.numbers label{border:1px solid #d4d1d2;padding:10px}.actions{display:flex;gap:8px;flex-wrap:wrap}.coral{background:var(--coral);color:white;border-color:var(--coral)}.mascot{width:230px;height:230px;object-fit:contain;display:block;margin:22px 0 0 auto}.ledger{padding:0 8px}.ledger #ledger div{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid #ddd}.ledger small{display:block;line-height:1.7;margin:20px 0}.ledger button{width:100%;margin-top:10px}.ledger pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.ledger p{font-size:13px}.ledger h3:not(:first-child){margin-top:25px}#cases button{width:100%;text-align:left;padding:18px 8px;border:0;border-bottom:1px solid #ddd;font-weight:bold}#cases input{display:inline-block;width:auto;margin-right:12px}#new{width:100%;margin-top:16px}#auth{margin-top:35px}#message{font-size:13px;color:#b63829}meter{width:100%;height:20px}#comparison{white-space:pre-wrap}footer{border-top:1px solid #bbb;padding:20px 3%;font-size:12px}footer span{float:right}#about{max-width:950px;margin:35px auto;padding:0 20px}#about article{padding:40px} [hidden]{display:none!important}@media(min-width:1800px){main#tank{min-height:900px}article{padding:42px 50px}h1{font-size:48px}}@media(max-width:800px){header{height:auto;padding:12px;gap:10px;flex-wrap:wrap}header img{width:44px;height:44px}header strong{font-size:28px;letter-spacing:-1px}header span{font-size:10px}nav{width:100%;justify-content:space-around;gap:8px}main#tank{display:flex;flex-direction:column;padding:16px;gap:20px}article{padding:20px}h1{font-size:30px}.numbers{gap:6px}.numbers label{padding:5px;font-size:12px}.numbers input{padding:6px}.mascot{width:160px;height:160px}#auth{margin-top:10px}.ledger{padding:10px}footer span{float:none;display:block;margin-top:8px}}
/* Casebook refinement: readable editors and medallion artwork. */
label{font-size:16px}input:not([type=range]),textarea{font-size:16px}article{border-color:#92939b;box-shadow:0 2px 5px #101d3f12}article .mascot{border-radius:50%;object-fit:cover;width:230px;height:230px}#formula{line-height:1.6}article .actions{margin-top:12px;margin-bottom:18px}input[type=range]{height:8px}header strong{font-family:Georgia,serif} @media(max-width:700px){article{padding:24px 20px}label{font-size:16px}.numbers{gap:8px}.numbers label{padding:7px}.numbers input{padding:8px 4px}article .mascot{width:170px;height:170px}}

.totals{display:grid;grid-template-columns:1fr auto;margin:16px 0 22px}.totals dt,.totals dd{margin:0;padding:14px 0;border-bottom:1px solid #ddd}.totals dd{font:600 22px Georgia;text-align:right}.totals dd:last-child{color:#ed503d}.scenario{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:14px}.scenario span{width:42px}.scenario i{height:10px;background:#14213d;max-width:35%}.scenario:last-child i{background:#f55340}.scenario b{margin-left:auto;font-weight:400}.mascot{width:210px!important;height:210px!important;object-fit:contain;display:block;margin:8px 0 0 auto!important}#comparison:empty{display:none}#editor textarea{height:64px;min-height:64px}#editor label{margin-bottom:8px}.dossier{padding-top:24px!important;padding-bottom:12px!important}.ledger small{font-size:11px} @media(min-width:1100px){.ledger button{margin:8px 0}.ledger h3{margin:14px 0}.ledger p{margin:8px 0}} @media(max-width:700px){.totals dd{font-size:20px}.mascot{width:160px!important;height:160px!important}.scenario{max-width:100%}}
