/* The portal uses a website shell at wide widths and compact app navigation below 760px. */
body { line-height: 1.5; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
nav { display: block; padding: 0 2rem; border-bottom-color: var(--border-subtle); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1136px; height: 80px; margin: auto; }
.nav-logo { height: 34px; }
.nav-links { gap: .5rem; height: 100%; }
.nav-link { display: flex; gap: .5rem; align-items: center; padding: .65rem 1rem; font-size: .875rem; border-radius: .6rem; }
.nav-link svg { display: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { background: var(--accent-tint); font-weight: 650; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.page-heading h1 { font-size: clamp(1.75rem, 3vw, 2.15rem); letter-spacing: -.035em; margin: 0; }
.page-heading p { color: var(--text-secondary); margin-top: .6rem; font-size: .9375rem; }
.checkout-steps { display: flex; list-style: none; gap: 2rem; align-items: center; padding: 0; margin: .5rem 0 2.5rem; font-size: .875rem; color: var(--text-secondary); }
.checkout-steps li, .checkout-steps a { display: flex; align-items: center; gap: .6rem; }
.checkout-steps a { color: inherit; text-decoration: none; }
.checkout-steps a:hover { text-decoration: underline; }
.checkout-steps span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--border); border-radius: 50%; font-size: .75rem; }
.checkout-steps [aria-current="step"] { color: var(--primary); font-weight: 650; }
.checkout-steps [aria-current="step"] > span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.checkout-steps .completed span { color: var(--primary); background: var(--accent-tint); border-color: transparent; }
.content-grid > *, .form-row > *, .info-grid > * { min-width: 0; }
.summary-panel { position: sticky; top: 1.5rem; }
.summary-panel .panel-title { margin-bottom: .75rem; }
.summary-panel > .btn { display: flex; }
.summary-section:first-of-type { padding-top: 0; }
.main-panel .form-row { gap: .75rem; }
.main-panel .form-group { margin-bottom: 1.25rem; }
.main-panel .form-group > select { min-height: calc(1.5em + 1.5rem + 2px); }
.main-panel .form-row .form-group { margin-bottom: 0; }
.order-details .detail-value, .info-value { overflow-wrap: anywhere; }
.container .back-link { margin-bottom: 1.5rem; }
.container .order-header, .container .section { box-shadow: none; }
@media (max-width: 1000px) {
.content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; }
}
@media (max-width: 900px) {
.content-grid { grid-template-columns: minmax(0, 1fr); }
.summary-panel { position: static; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
nav { padding: 0 1rem; }
.nav-inner { height: 62px; }
.nav-logo { height: 30px; }
.nav-links { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 0; height: auto; padding: .45rem .75rem calc(.45rem + env(safe-area-inset-bottom)); background: var(--card-solid); border-top: 1px solid var(--border-subtle); }
.nav-link { display: flex; flex-direction: column; justify-content: center; gap: .25rem; font-size: .6875rem; padding: .4rem .5rem; min-height: 54px; border-radius: .75rem; }
.nav-link svg { display: block; }
.container { padding: 1.25rem 1rem; }
.page-heading { align-items: start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading p { font-size: .875rem; }
.page-heading .btn { font-size: .875rem; padding: .6rem 1rem; }
.checkout-steps { justify-content: space-between; gap: .5rem; margin: 0 0 1.75rem; font-size: .75rem; }
.checkout-steps li, .checkout-steps a { gap: .35rem; }
.checkout-steps span { width: 1.5rem; height: 1.5rem; }
.content-grid { gap: 1rem; }
.form-grid { grid-template-columns: 1fr; }
.main-panel > .section, .review-panel > .section, .summary-panel { padding: 1.25rem; border-radius: .85rem; }
.main-panel .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.main-panel .form-row > :first-child { grid-column: 1 / -1; margin-bottom: 1rem; }
.summary-panel .summary-section { padding: .75rem 0; }
.summary-panel .summary-row { margin: .6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 760px) {
.container .order-header, .container .section { padding: 1.25rem; margin-bottom: 1rem; border-radius: .85rem; }
}
