:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f3f4f6; }

.site-header { background: #263746; border-bottom: 1px solid #1d2b36; }
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-width: 520px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { color: #ffffff; font-size: .95rem; font-weight: 600; text-decoration: none; }
.top-nav { display: flex; gap: 2px; height: 100%; }
.top-nav a { display: flex; align-items: center; padding: 0 12px; color: #d7e0e7; font-size: .88rem; text-decoration: none; }
.top-nav a:hover { background: #33495c; color: #ffffff; }
.header-caption { margin-left: auto; color: #c2cdd6; font-size: .82rem; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 28px auto 56px; }
.brief, .card, .summary-card, .orders { background: #ffffff; border: 1px solid #c9d0d7; border-radius: 0; box-shadow: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.breadcrumbs { margin: 0 0 5px; color: #6b7280; font-size: .8rem; }
.page-heading h1 { margin: 0; color: #222b33; font-size: 1.45rem; font-weight: 600; }
.environment-label { padding: 4px 8px; border: 1px solid #b6c1cb; background: #ffffff; color: #536270; font-size: .78rem; }
.brief { padding: 20px 24px; margin-bottom: 18px; background: #f8fafb; }
.brief h2 { margin-bottom: 8px; color: #263746; font-size: 1rem; }
.brief p { margin: 0 0 10px; color: #4b5563; font-size: .9rem; }
.requirements { border-top: 1px solid #d9dfe4; }
.requirements ul { margin: 10px 0 0; padding-left: 19px; color: #374151; font-size: .88rem; line-height: 1.55; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.card, .summary-card, .orders { padding: 24px; }
h2 { margin: 0 0 18px; color: #111827; font-size: 1.05rem; line-height: 1.3; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field-wide { grid-column: 1 / -1; }
.field { min-width: 0; }
label, legend { display: block; color: #374151; font-size: .85rem; font-weight: 700; }
legend { margin-bottom: 8px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
input, select {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #9ca3af;
  border-radius: 2px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: .92rem;
}
input::placeholder { color: #9ca3af; }
input:focus, select:focus { border-color: #1f5b99; outline: 2px solid rgb(31 91 153 / 16%); outline-offset: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, .brand:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 2px; }
.choices label, .terms { display: flex; align-items: center; gap: 7px; font-weight: 400; }
.choices input, .terms input { width: 16px; min-height: auto; margin: 0; accent-color: #1f5b99; }
.terms { margin-top: 20px; }
.field-error { min-height: 18px; margin: 4px 0 0; color: #b42318; font-size: .8rem; }
.submit-button {
  min-height: 40px;
  margin-top: 12px;
  padding: 9px 18px;
  border: 1px solid #154678;
  border-radius: 2px;
  background: #1769aa;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
}
.submit-button:hover { background: #145b93; }
.form-message { min-height: 20px; margin: 10px 0 0; color: #16703a; font-size: .9rem; font-weight: 700; }

.summary-card { position: sticky; top: 16px; background: #ffffff; }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #d1d5db; font-size: .9rem; }
.discount-line { color: #16703a; }
.summary-total { padding-bottom: 0; border: 0; color: #111827; font-size: 1rem; }
.muted { color: #6b7280; font-size: .85rem; }

.orders { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #d1d5db; }
.section-heading h2 { margin: 0; }
#order-count { min-width: 24px; padding: 3px 7px; border: 1px solid #b9cce2; border-radius: 2px; background: #eaf2fb; color: #174a7d; font-size: .78rem; font-weight: 700; text-align: center; }
.order-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #d1d5db; border-radius: 0; background: #fff; }
.order-item strong { display: block; color: #111827; }
.order-item span { display: inline-block; margin-top: 3px; color: #6b7280; font-size: .83rem; }
.status { padding: 3px 8px; border: 1px solid #a9d7b7; border-radius: 2px; background: #edf9f0; color: #16703a !important; font-size: .78rem !important; font-weight: 700; }

@media (max-width: 720px) {
  .workspace { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 24px); margin-top: 16px; }
  .brief, .card, .summary-card, .orders { padding: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
}
