:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #627d98;
  --navy: #102a43;
  --navy-soft: #243b53;
  --line: #d9e2ec;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --teal: #127475;
  --teal-dark: #0b4f50;
  --coral: #e76f51;
  --danger: #b42318;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0%, #d9f0ef 0, transparent 28rem), var(--canvas); }
a { color: var(--teal-dark); }
.shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.site-header { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.site-header::after { position: absolute; right: -5rem; bottom: -7rem; width: 22rem; height: 22rem; border: 3rem solid rgba(231,111,81,.22); border-radius: 50%; content: ""; }
.header-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 3rem 0 2.4rem; }
.eyebrow, .kicker { margin: 0 0 .7rem; color: #8fb9bb; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-header h1 { max-width: 42rem; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; line-height: 1.05; }
.site-header h1 em { color: #f4b19d; font-style: normal; }
.header-copy { max-width: 37rem; margin: .9rem 0 0; color: #bcccdc; line-height: 1.6; }
.service-pill { padding: .65rem .9rem; border: 1px solid #486581; border-radius: 999px; color: #d9e2ec; font-size: .78rem; white-space: nowrap; }
.site-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-inner { display: flex; align-items: center; gap: .35rem; min-height: 4.2rem; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 4.2rem; padding: 0 1rem; color: var(--navy-soft); font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal-dark); }
.nav-link.active::after { position: absolute; right: 1rem; bottom: 0; left: 1rem; height: 3px; background: var(--coral); content: ""; }
main { padding: 3rem 0 5rem; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; }
.page-heading h2, .hero h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.05; }
.page-heading p:not(.kicker) { max-width: 44rem; margin: .55rem 0 0; color: var(--muted); line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.split-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 1.2rem; align-items: start; }
.card { padding: 1.45rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(16,42,67,.07); }
.card h3 { margin: 0 0 1rem; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.card-accent { border-top: 4px solid var(--coral); }
.card-teal { border-top: 4px solid var(--teal); }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 1.2rem; align-items: stretch; margin-bottom: 1.2rem; }
.hero-copy { padding: clamp(1.5rem, 4vw, 3.2rem); border-radius: 1rem; color: #fff; background: linear-gradient(135deg, var(--navy), #1d5660); box-shadow: 0 18px 40px rgba(16,42,67,.16); }
.hero-copy .kicker { color: #f4b19d; }
.hero-copy h2 { max-width: 30rem; }
.hero-copy p:not(.kicker) { max-width: 36rem; margin: 1rem 0 1.5rem; color: #d9e2ec; line-height: 1.7; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .65rem 1rem; border: 0; border-radius: .55rem; color: #fff; background: var(--teal); cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover, button:hover { transform: translateY(-1px); color: #fff; background: var(--teal-dark); box-shadow: 0 7px 16px rgba(18,116,117,.22); }
.button.secondary, button.secondary { color: var(--navy); background: #d9e2ec; }
.button.secondary:hover, button.secondary:hover { background: #bcccdc; }
.button.danger, button.danger { background: var(--danger); }
.button.danger:hover, button.danger:hover { background: #912018; }
.metric-panel { display: grid; gap: .8rem; padding: 1.45rem; border: 1px solid #f4b19d; border-radius: 1rem; background: #fff8f5; }
.metric-panel h3 { margin-bottom: .3rem; }
.metric-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #f9d5ca; }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { color: var(--teal-dark); }
.form-grid { display: grid; gap: .9rem; }
label { display: grid; gap: .35rem; color: var(--navy-soft); font-size: .88rem; font-weight: 700; }
input, select { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid #9fb3c8; border-radius: .55rem; color: var(--ink); background: #fff; font: inherit; }
input:focus, select:focus { border-color: var(--teal); outline: 3px solid rgba(18,116,117,.14); }
.notice { margin: 1rem 0; padding: .85rem 1rem; border-radius: .6rem; color: var(--teal-dark); background: #d9f0ef; line-height: 1.5; }
.notice.error, .validation-summary-errors { color: #912018; background: #fee4e2; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2rem; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:hover { background: #f7fafc; }
.money { color: var(--teal-dark); font-variant-numeric: tabular-nums; font-weight: 700; }
.stock { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; color: var(--teal-dark); background: #d9f0ef; font-size: .82rem; font-weight: 700; }
.stock.low { color: #9a3412; background: #ffedd5; }
.order-card + .order-card { margin-top: .8rem; }
.order-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.order-id { color: var(--navy); font-family: Georgia, serif; font-size: 1.3rem; }
.order-items { margin: 1rem 0 0; padding: .9rem 0 0 1.2rem; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.8; }
.diag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.diag-link { display: block; min-height: 8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--navy); background: #fff; text-decoration: none; white-space: pre-line; }
.diag-link:hover { border-color: var(--teal); box-shadow: 0 7px 18px rgba(16,42,67,.08); }
.diag-link strong { display: block; margin-bottom: .45rem; }
.diag-link span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.diag-link.danger { border-color: #f5b8b2; color: var(--danger); background: #fff8f7; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.5rem 0; }
.detail-list div { padding: 1rem; border-radius: .7rem; background: #f4f7f9; }
.detail-list dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.detail-list dd { margin: .35rem 0 0; color: var(--navy); font-size: 1.2rem; font-weight: 700; }
footer { padding: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .86rem; }
@media (max-width: 780px) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .header-inner, .page-heading, .order-meta { align-items: flex-start; flex-direction: column; }
  .header-inner { padding: 2.2rem 0 1.8rem; }
  .service-pill { white-space: normal; }
  .nav-inner { overflow-x: auto; }
  .nav-link { min-height: 3.5rem; padding: 0 .75rem; }
  .hero, .split-grid { grid-template-columns: 1fr; }
  .diag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  main { padding-top: 2rem; }
  .diag-grid, .detail-list { grid-template-columns: 1fr; }
  th, td { padding: .7rem .55rem; }
}
