*{box-sizing:border-box}body{margin:0;background:#edf1f5;color:#152a45;font:18px/1.5 Arial,sans-serif}
.shell{width:calc(100% - 32px);max-width:1120px;margin:32px auto;padding:32px;background:white;border-radius:16px}
header{border-bottom:2px solid #e78136;margin-bottom:28px}header span{font-weight:800;letter-spacing:3px}
h1{font-size:40px;line-height:1.15;overflow-wrap:break-word}.layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:48px}
.layout>*{min-width:0}
aside{background:#152a45;color:white;padding:28px;border-radius:12px;align-self:start}
label{display:block;margin-top:12px;font-weight:bold}
input,button{font:inherit;padding:12px;width:100%;max-width:100%;min-height:48px;border:1px solid #6f7d92;border-radius:6px}
input{color:#152a45;background:white}
input:focus-visible,button:focus-visible{outline:3px solid #e78136;outline-offset:2px}
input[aria-invalid="true"]{border-color:#a3261b;border-width:2px}
button{margin-top:20px;background:#e78136;color:#152a45;font-weight:bold;cursor:pointer}
button:disabled{opacity:.6;cursor:progress}
#total{display:block;font-size:32px;line-height:1.2;overflow-wrap:break-word}
.field-error{margin:6px 0 0;color:#a3261b;font-size:16px}.field-error:empty{display:none}
#status{margin:16px 0 0;padding:12px 14px;border-left:4px solid #e78136;background:#edf1f5;border-radius:4px;font-weight:bold}
#status:empty{display:none}
#status.error{border-left-color:#a3261b;color:#a3261b;background:#fbeeec}

/* Tablet and phone: single column, tighter spacing */
@media (max-width:760px){
  .shell{width:calc(100% - 24px);margin:12px auto;padding:20px;border-radius:12px}
  .layout{grid-template-columns:minmax(0,1fr);gap:28px}
  h1{font-size:30px}
  h2{font-size:22px}
  aside{padding:20px}
  #total{font-size:28px}
}
