@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --navy: #0a1428;
  --ink: #131f35;
  --muted: #50617a;
  --canvas: #f3f6fb;
  --surface: #fff;
  --blue: #1555e8;
  --blue-hover: #1045c5;
  --blue-tint: #eef4ff;
  --line: #dde5f0;
  --field-line: #b5c4d8;
  --danger: #a12d32;
  --warm-ink: #744414;
  --warm-tint: #fff8ea;
  --warm-line: #f2dcb2;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --shadow: 0 16px 44px rgb(17 38 72 / .07), 0 2px 5px rgb(17 38 72 / .04);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 15px/1.55 Manrope, 'Segoe UI', sans-serif;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: 1.28rem; line-height: 1.24; letter-spacing: -.025em; font-weight: 800; }
small { color: var(--muted); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { border: 1px solid var(--field-line); border-radius: 9px; }
button {
  min-block-size: 42px;
  padding: .62rem .95rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms, box-shadow 160ms;
}

button:hover:not(:disabled) { background: var(--blue-tint); border-color: #a4bbeb; }
button:disabled { opacity: .55; cursor: wait; }
button.primary { background: var(--blue); border-color: var(--blue); color: white; }
button.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input, select, textarea {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  margin-block-start: 6px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 550;
}

input::placeholder { color: var(--muted); }
textarea { resize: vertical; }
label { display: block; min-inline-size: 0; font-size: .85rem; font-weight: 750; }
.full { inline-size: 100%; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.between { justify-content: space-between; }
.icon-library { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon { display: block; inline-size: 20px; block-size: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.icon-button .icon { inline-size: 17px; block-size: 17px; }

.shell { inline-size: min(100% - 64px, 1216px); margin-inline: auto; }
.site-header { border-block-end: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 76px; }
.brand, .header-actions { display: flex; align-items: center; gap: 12px; }
.brand strong { color: var(--navy); font-size: 1.65rem; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.brand strong span { color: var(--blue); }
.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #d5e3fb;
  border-radius: 99px;
  background: #f6f9ff;
  color: #294777;
  font-size: .75rem;
  white-space: nowrap;
  font-weight: 800;
}

.pilot-badge::before, .eyebrow span { inline-size: 7px; block-size: 7px; flex: none; border-radius: 2px; background: var(--blue); }
.pilot-badge::before { content: ''; }
main.shell { flex: 1; padding-block: clamp(24px, 4.1vw, 58px) 40px; }
.site-footer { color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 18px; border-block-start: 1px solid var(--line); font-size: .76rem; }
.footer-inner strong { color: var(--ink); font-weight: 800; }
.footer-divider { display: inline-block; inline-size: 3px; block-size: 3px; margin: 0 9px 3px; border-radius: 50%; background: #7586a1; }
.footer-version { font: 600 .69rem/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-brand, .dashboard-heading { color: #f5f8ff; background-color: var(--navy); }
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 250px;
  padding: clamp(32px, 5vw, 72px) clamp(28px, 4.3vw, 64px) 26px;
  background-image: url('service-map.svg'), radial-gradient(ellipse at 85% 85%, #183b75, #0a1428 74%);
  background-position: center bottom 54px, center;
  background-repeat: no-repeat;
  background-size: 100% auto, cover;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font: 600 .705rem/1.5 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-brand .eyebrow, .dashboard-heading .eyebrow { color: #a8caff; }
.auth-brand .eyebrow span, .dashboard-heading .eyebrow span { background: #6da5ff; }
.brand-headline { margin-block: 24px 20px; font-size: clamp(2.65rem, 4.8vw, 4.65rem); line-height: 1; letter-spacing: -.068em; font-weight: 800; }
.brand-headline span { color: #6da5ff; }
.brand-description { max-inline-size: 34ch; color: #c0d0ec; font-size: clamp(.93rem, 1.38vw, 1.1rem); line-height: 1.68; }
.product-areas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-self: stretch;
  gap: 12px clamp(14px, 2.7vw, 36px);
  margin: 0;
  padding: 20px 0 0;
  border-block-start: 1px solid #41619a;
  color: #dbe8fc;
  list-style: none;
  font-size: .83rem;
  font-weight: 700;
}

.product-areas li { display: flex; align-items: center; gap: 8px; }
.product-areas .icon { inline-size: 17px; block-size: 17px; color: #91baff; }
.auth-panel { display: grid; place-items: center; min-inline-size: 0; padding: 42px clamp(24px, 4.4vw, 72px); }
.auth-content { inline-size: min(100%, 400px); overflow-wrap: anywhere; }
.auth-emblem, .stat-icon, .empty-icon { display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.auth-emblem { inline-size: 48px; block-size: 48px; margin-block-end: 20px; border: 1px solid #deebff; border-radius: 13px; }
.auth-emblem .icon { inline-size: 23px; block-size: 23px; }
.auth-panel h1 { margin-block: 8px 7px; }
#authHint { margin-block-end: 24px; color: var(--muted); }
.auth-panel form label + label { margin-block-start: 15px; }
.auth-panel input { min-block-size: 48px; background: #fcfdff; }
.auth-panel .primary { position: relative; min-block-size: 48px; margin-block-start: 21px; padding-inline: 36px; }
.auth-panel .primary::after { position: absolute; inset: 50% 17px auto auto; translate: 0 -50%; content: ''; inline-size: 15px; block-size: 15px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10m-4-4 4 4-4 4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.auth-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; column-gap: 12px; margin-block: 10px 18px; }
.auth-links.resend { margin-block: 5px -4px; }
.auth-links button { min-block-size: 40px; padding: 4px 0; border: 0; background: transparent; color: var(--blue); font-size: .8rem; }
.auth-links button:hover:not(:disabled) { background: transparent; color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
input.otp { text-align: center; letter-spacing: .32em; font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.notice { padding: 12px 14px; border: 1px solid #cbdcfc; border-radius: 10px; background: var(--blue-tint); color: #234581; font-size: .825rem; }
.notice.error { border-color: #fac9cb; background: #fff1f1; color: var(--danger); }
#status { margin-block-end: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pilot-notice { display: flex; align-items: start; gap: 10px; border-color: var(--warm-line); background: var(--warm-tint); color: var(--warm-ink); }
.pilot-notice .icon { inline-size: 17px; block-size: 17px; margin-block-start: 2px; }
.pilot-notice p { margin-block-start: 2px; }

.dashboard-heading {
  min-block-size: 164px;
  margin-block-end: 18px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 18px;
  background-image: url('service-map.svg'), radial-gradient(ellipse at 80% 90%, #1c3f79, #0a1428 75%);
  background-position: right bottom -60px, center;
  background-repeat: no-repeat;
  background-size: min(56%, 560px) auto, cover;
}

.dashboard-heading h1 { margin-block: 8px 6px; }
.dashboard-heading button { border-color: #7a9fda; background: #f5f8ff; color: #14294d; }
.dashboard-heading button:focus-visible { outline-color: #a8caff; }
#account { color: #c9daf7; overflow-wrap: anywhere; }
.dashboard-notice { margin-block-end: 20px; }
.dashboard-notice strong { margin-inline-end: 7px; }
.dashboard-notice p { display: inline; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block-end: 24px; }
.panel, .stat { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 6px rgb(17 38 72 / .035); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: clamp(13px, 1.8vw, 22px); border-radius: 14px; }
.stat small { font-size: .81rem; font-weight: 750; }
.stat b { grid-column: 1 / -1; font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-icon, .empty-icon { inline-size: 34px; block-size: 34px; border-radius: 9px; }
.stat-icon .icon { inline-size: 18px; block-size: 18px; }
.stat-icon.red { background: #fff0f1; color: var(--danger); }
.stat-icon.amber { background: var(--warm-tint); color: var(--warm-ink); }

.panel { --panel-pad: clamp(14px, 2.5vw, 28px); border-radius: 16px; }
.tabs { display: flex; align-items: stretch; gap: 14px; padding-inline: var(--panel-pad); border-block-end: 1px solid var(--line); }
.tabs button { position: relative; padding: 14px 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.tabs button:focus-visible { outline-offset: -4px; }
.tabs button[aria-pressed='true'] { color: var(--blue); }
.tabs button[aria-pressed='true']::after { position: absolute; inset: auto 0 -1px; block-size: 3px; border-radius: 3px 3px 0 0; background: var(--blue); content: ''; }
.panel-toolbar { display: grid; gap: 17px; padding: var(--panel-pad); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .wide { grid-column: 1 / -1; }
.filters { grid-template-columns: minmax(0, 1fr) minmax(0, 245px); max-inline-size: 680px; }
.filters input[type='search'] { padding-inline-start: 36px; background: 11px center / 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5' fill='none' stroke='%2350617a' stroke-width='1.8'/%3E%3Cpath d='m15 15 4 4' stroke='%2350617a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), #fff; }
.tablewrap { overflow: auto; border-radius: 0 0 16px 16px; }
table { inline-size: 100%; border-collapse: collapse; text-align: start; }
th, td { padding: 13px 10px; border-block-start: 1px solid var(--line); text-align: start; vertical-align: middle; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-inline-start: var(--panel-pad); }
th:last-child, td:last-child { padding-inline-end: var(--panel-pad); }
th { background: #f6f8fc; color: var(--muted); font-size: .77rem; font-weight: 800; }
td { font-size: .875rem; }
td > small { display: block; margin-block-start: 3px; font-size: .76rem; }
td b { font-weight: 800; }
.cell-label { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 5px; }
.actions button { min-block-size: 36px; padding: 6px 9px; font-size: .77rem; }
.danger, .late { color: var(--danger); }
.actions .danger:hover:not(:disabled) { background: #fff1f1; border-color: #e5a9ac; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--blue-tint); color: #294777; font-size: .75rem; font-weight: 750; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 26px 12px; text-align: center; }
.empty-state strong { font-weight: 800; }
.empty-state p { color: var(--muted); }
.empty-icon { margin-block-end: 4px; }

dialog { inline-size: min(560px, 100% - 24px); max-block-size: calc(100% - 24px); padding: clamp(18px, 4vw, 30px); overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(10 20 40 / .68); }
.dialog-heading { margin-block-end: 20px; }
.dialog-heading h2 { margin-block-start: 7px; }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 9px; margin-block-start: 22px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }

@media (max-width: 960px) {
  .auth-brand { gap: 215px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { inline-size: calc(100% - 36px); }
  .header-inner { min-block-size: 64px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .auth-brand { gap: 20px; padding: 25px 24px 20px; background-position: right -45px bottom -40px, center; background-size: min(84%, 410px) auto, cover; }
  .auth-copy { text-shadow: 0 1px 8px #0a1428; }
  .brand-headline { margin-block: 12px; }
  .brand-headline br { display: none; }
  .product-areas { padding-block-start: 12px; }
  .auth-panel { padding: 28px 24px 30px; }
  .dashboard-heading { background-position: right bottom -30px, center; }
  .tablewrap { padding: 0 var(--panel-pad) var(--panel-pad); }
  .tablewrap thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .tablewrap table, .tablewrap tbody, .tablewrap tr { display: block; }
  .tablewrap tr { margin-block-end: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
  .tablewrap tr:last-child { margin-block-end: 0; }
  .tablewrap td { display: block; padding: 6px 0; border: 0; }
  .tablewrap td:last-child:not([colspan]) { margin-block-start: 5px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
  .cell-label { display: block; margin-block-end: 3px; color: var(--muted); font-size: .74rem; font-weight: 750; }
  .actions button { min-block-size: 42px; }
}

@media (max-width: 460px) {
  .shell { inline-size: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand img { inline-size: 35px; block-size: 35px; }
  .brand strong { font-size: 1.48rem; }
  .header-actions:has(#logout:not([hidden])) .pilot-badge { display: none; }
  .auth-brand { padding: 22px 18px; background-position: right -90px bottom -35px, center; }
  .brand-headline { font-size: clamp(1.95rem, 8.5vw, 2.45rem); }
  .product-areas { display: none; }
  .auth-panel { padding: 22px 18px; }
  .auth-emblem { inline-size: 40px; block-size: 40px; margin-block-end: 14px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-inline: 7px; }
  .tabs button { flex-direction: column; gap: 4px; padding: 9px 3px; font-size: .76rem; }
  .stat { grid-template-columns: 1fr; }
  .stat-icon { grid-row: 1; inline-size: 30px; block-size: 30px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { padding-block: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
