:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #24212b;
  background: #f8f8fa;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
header { background: white; border-bottom: 1px solid #e6e4e8; }
nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
nav img { display: block; max-width: 100%; height: auto; }
nav a { color: #732451; text-decoration: none; font-size: .92rem; font-weight: 650; }
main { padding: clamp(32px, 5vw, 62px) 0; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.06; letter-spacing: -.052em; }
h2 { font-size: 1.26rem; line-height: 1.22; letter-spacing: -.025em; }
.intro, .hint, .muted, small { color: #665e69; }
.intro { margin: .7rem 0 2rem; line-height: 1.55; font-size: 1.04rem; }
.workspace { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(255px,1fr); gap: 20px; align-items: start; }
form, .estimate, details { border: 1px solid #e1dde3; border-radius: 18px; background: white; }
form { min-width: 0; }
form section, .estimate { padding: clamp(20px, 3vw, 32px); }
form section + section { border-top: 1px solid #e7e3e9; }
.trip-fields { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 18px; }
label, strong { font-weight: 650; }
label { font-size: .92rem; }
.muted { font-weight: 400; }
input, select, button { font: inherit; }
input, select { border-radius: 8px; border: 1px solid #cfc9d1; background: white; color: #25212a; }
input, select { padding: 11px 12px; }
select { width: 100%; min-height: 44px; }
.trip-fields select, .trip-fields .input-unit, .wifi select, .video-quality select { margin-top: 6px; }
.input-unit { display: block; position: relative; line-height: 1; }
.input-unit input { width: 100%; min-height: 44px; padding-right: 47px; }
.input-unit span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #655c68; font-size: .84rem; font-weight: 450; pointer-events: none; }
input[type="number"] { appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; }
input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ad1f75; outline-offset: 3px; }
.hint { font-size: .93rem; line-height: 1.5; margin-top: 5px; }
.profiles { display: grid; grid-template-columns: repeat(3,1fr); background: #f4f2f5; border: 1px solid #e4dfe6; border-radius: 11px; padding: 4px; gap: 3px; margin: 17px 0 8px; }
.profiles button { background: transparent; padding: 9px 6px; min-height: 42px; color: #514956; font-weight: 650; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.profiles button[aria-pressed="true"] { background: white; color: #901962; border-color: #dbd4dc; box-shadow: 0 1px 3px #30232d12; }
.usage-row { padding: 16px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(82px,102px); align-items: center; gap: 8px 14px; border-bottom: 1px solid #ece9ed; }
.usage-row strong, small { display: block; }
small { margin-top: 3px; font-size: .84rem; line-height: 1.45; font-weight: 400; }
.video-quality { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: #665e69; font-weight: 450; }
.video-quality select { width: auto; margin: 0; min-height: 38px; padding-block: 7px; }
.wifi { display: block; margin-top: 17px; }
aside { position: sticky; top: 16px; min-width: 0; }
.estimate { background: #fff7fb; border-color: #e9cedd; }
.estimate h2 { color: #5d354c; font-size: 1.04rem; }
.total { display: block; color: #842255; font-size: clamp(2.6rem,5vw,4rem); letter-spacing: -.065em; line-height: 1.08; margin: 11px 0 1px; overflow-wrap: anywhere; }
#context { color: #655260; font-size: .93rem; line-height: 1.5; }
.meter { display: flex; height: 6px; margin: 24px 0 15px; width: 100%; overflow: hidden; border-radius: 20px; background: #eadfe5; }
#bar-other, .other { background: #53283e; }
#bar-audio, .audio { background: #af2e75; }
#bar-video, .video-dot { background: #dca2c3; }
dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .92rem; line-height: 1.65; }
dt { display: flex; align-items: center; gap: 8px; }
dt i { width: 9px; height: 9px; border-radius: 50%; }
dd { font-variant-numeric: tabular-nums; }
.cta { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; margin-top: 22px; border-radius: 9px; background: #961964; color: white; text-decoration: none; font-weight: 700; }
.cta:hover { background: #7e1254; }
.cta[aria-disabled="true"] { background: #ddd7dc; color: #585359; cursor: default; }
details { margin-top: 14px; padding: 17px 20px; }
summary { cursor: pointer; font-size: .94rem; font-weight: 650; }
details p { margin-top: .85rem; font-size: .87rem; line-height: 1.55; color: #514c54; }
details a { color: #88255c; text-underline-offset: 2px; }
[hidden] { display: none !important; }
@media(max-width: 700px) {
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  aside { position: static; }
  .wrap { width: min(100% - 28px, 600px); }
  .intro { margin-bottom: 1.25rem; }
}
@media(max-width: 360px) { .trip-fields { grid-template-columns: 1fr; } .usage-row { grid-template-columns: minmax(0,1fr) 80px; } }
