html { font-size: 93.75%; }
html[data-font-size="compact"] { font-size: 87.5%; }
html[data-font-size="large"] { font-size: 106.25%; }
html[data-font-size="extraLarge"] { font-size: 118.75%; }

body {
  --green: #006c39;
  --lime: #166b40;
  --accent-ink: #f8fff8;
  --brand-green: #1aa152;
  --warn: #70420e;
  --danger: #882a39;
}
body .skip { color: var(--accent); background: white; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn, .btn.primary { color: #fff; background: var(--accent); }
.btn:hover, .btn.primary:hover { background: #00572d; }
.btn.danger { color: #882a39; background: #f9e8ea; border-color: #eecbd2; }
.btn.danger:hover { background: #f5d8df; }
input, select, textarea { background-color: #fff; border-color: #bcd1c1; }
input::placeholder, textarea::placeholder { color: #637569; }
.notice, .feedback .notice { color: #214b31; background: #e9f5eb; border-color: #d0e6d4; }
.notice.info { color: #284f66; background: #edf6fb; border-color: #d1e5ee; }
.notice.warn, .feedback .notice.warn { color: #70420e; background: #fff5e2; border-color: #efdcb8; }
.notice.error, .feedback .notice.error { color: #882a39; background: #fcecee; border-color: #eed0d7; }
.tile-icon.blue { background: #eaf1fb; color: #385f84; }
.tile-icon.gray { background: #edf1ef; color: #4a6958; }
.fleet-button:hover, .fleet-button[aria-pressed=true] { background: #eef8f0; }
.trip-progress li span { color: #3e6550; background: #edf5ed; border-color: #d2e3d5; }
.trip-progress li.reached span { border-color: #83b18f; }
.trip-progress li[aria-current] span { color: white; background: var(--accent); }
.trip-progress li:not(:last-child)::after { background: #dae8dc; }
.trip-progress li.reached:not([aria-current]):not(:last-child)::after { background: #78a887; }

.operation-head {
  align-items: center;
  min-height: 124px;
  padding: clamp(16px, 2.4vw, 30px);
  margin-bottom: 20px;
  border: 1px solid #dbe9dc;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 15px, #0f6d3505 15px 16px),
    linear-gradient(100deg, white 22%, #e7f3df);
}
.operation-heading { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 20px); }
.operation-heading .tile-icon { width: 52px; height: 52px; border: 1px solid #cae3cf; background: white; }
.operation-heading .tile-icon .icon { width: 23px; height: 23px; }
.operation-head h1 { font-size: clamp(1.9rem, 3.7vw, 3.35rem); }
.operation-head p { margin-top: 5px; }
.operation-head .actions { flex-shrink: 0; }
.stage-strip, .stats-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  margin: 0 0 18px;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.stage-cell, .stats-strip div {
  min-height: 95px;
  display: grid;
  align-content: center;
  align-items: center;
  grid-template-columns: 24px 1fr;
  gap: 3px 7px;
  padding: 12px 17px;
  text-align: left;
  color: var(--ink);
}
.stage-cell { border: 0; border-bottom: 3px solid transparent; background: transparent; }
.stage-cell + .stage-cell, .stats-strip div + div { border-left: 1px solid var(--line); }
.stage-cell[aria-pressed="true"] { background: #e5f3e7; border-bottom-color: var(--accent); }
.stage-cell:hover { background: #edf7ec; }
.stage-cell:focus-visible { outline-offset: -3px; }
.stage-cell .icon, .stats-strip .icon { color: var(--accent); }
.stage-cell strong, .stats-strip dd { font: 2rem/1 var(--serif); margin: 0; color: var(--accent); }
.stage-cell span, .stats-strip dt { grid-column: 2; font-size: .84rem; color: var(--muted); }
.stats-strip dt { grid-row: 2; }
.stats-strip dd { grid-column: 2; grid-row: 1; }

.tracking-board { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.tracking-board .map.large { height: clamp(285px, 33vw, 460px); border-radius: 0; }
.tracking-list { margin: 0; padding: 0; list-style: none; }
.tracking-list li { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.tracking-list li:last-child { border-bottom: 0; }
.tracking-list a { flex: 1; min-width: 0; }
.tracking-list a:hover { color: var(--accent); text-decoration: underline; }
.tracking-list strong { display: block; font-size: .89rem; }
.tracking-list small { display: block; margin-top: 3px; }
.tracking-list .icon-btn { min-height: 36px; min-width: 36px; }

.aurora-panel {
  position: fixed;
  z-index: 14;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  height: min(590px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(363px, calc(100vw - 26px));
  overflow: hidden;
  color: var(--ink);
  background: white;
  border: 1px solid #cdded2;
  border-radius: 14px;
  box-shadow: 0 13px 40px #163d2b24;
}
.aurora-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #eaf5e9;
  border-bottom: 1px solid var(--line);
}
.aurora-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #126440; color: white; }
.aurora-header .icon-btn { margin-left: auto; }
.aurora-header p { color: var(--muted); font-size: .75rem; }
.aurora-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 11px; overflow: auto; overscroll-behavior: contain; }
.aurora-bubble {
  align-self: start;
  padding: 10px 12px;
  max-width: 96%;
  background: #f0f6f1;
  border: 1px solid #dfebe1;
  border-radius: 4px 12px 12px;
  font-size: .88rem;
  line-height: 1.55;
}
.aurora-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.aurora-bubble .btn { margin-top: 8px; min-height: 35px; }
.aurora-bubble.from-user { align-self: end; background: #1b6543; color: #fff; border-color: #1b6543; border-radius: 12px 4px 12px 12px; }
.aurora-prompts { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 11px; }
.aurora-prompts .btn { min-height: 34px; font-size: .75rem; padding-inline: 7px; }
.aurora-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 10px 11px; }
.aurora-form .btn { padding: 0 12px; }
.account-access { background: #fbfdf9; }
.account-access .auth-main { max-width: none; padding: 0; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 100dvh; }
.access-art {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 62px);
  color: #fbfff5;
  background:
    linear-gradient(180deg,#10342299,transparent 35%,#10342230 51%,#102d1edf 86%,#102d1e 100%),
    url('./assets/access-depot.webp') 63% center / cover no-repeat #173c28;
}
.access-brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; color: inherit; font-weight: 700; font-size: 1.03rem; }
.access-brand img { width: 61px; height: 48px; object-fit: contain; }
.access-brand small { display: block; color: #e1f0dc; font-size: .78rem; font-weight: 400; }
.access-story { max-width: 680px; padding-top: 30px; }
.access-story h2 { font: 400 clamp(2.8rem, 6vw, 6rem)/.99 var(--serif); letter-spacing: -.064em; text-wrap: balance; }
.access-route { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: .85rem; }
.access-route span { display: inline-flex; align-items: center; gap: 6px; color: #e8f5e3; }
.access-route .icon { color: #aeea9b; }
.access-art { box-shadow: inset 0 4px var(--brand-green); }
.nav-link.active::before { background: var(--brand-green); }
.map-art .route { stroke: var(--brand-green); }
.access-route i { display: block; width: clamp(22px, 7vw, 105px); border-top: 1px dashed #b8dca9; }
.access-content { display: grid; place-items: center; padding: clamp(24px, 5vw, 80px); }
.access-panel { width: min(100%, 470px); }
.access-modes { display: grid; grid-template-columns: .8fr .8fr 1.2fr; gap: 4px; margin-bottom: 26px; padding: 4px; background: #e9f2e9; border: 1px solid #dce9db; border-radius: 11px; }
.access-modes a { display: grid; min-height: 43px; place-items: center; text-align: center; padding: 5px 4px; font-size: clamp(.76rem, 1.1vw, .9rem); font-weight: 700; color: #446553; border-radius: 7px; }
.access-modes a:hover, .access-modes a[aria-current="page"] { background: white; color: var(--accent); }
.access-modes a[aria-current="page"] { box-shadow: 0 1px 5px #14432719; }
.access-panel h1 { font-size: clamp(2.05rem, 4vw, 3.5rem); }
.access-description { margin-top: 8px; line-height: 1.5; color: var(--muted); }
.access-fields { margin: 23px 0 13px; }
.access-fields input { min-height: 49px; }
.access-fields button { min-height: 49px; }
.access-example { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: .86rem; color: var(--muted); }
.access-example .btn { min-height: 35px; border: 0; padding-inline: 8px; }
.access-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.access-footer a { color: var(--accent); font-weight: 700; font-size: .87rem; text-decoration: underline; text-underline-offset: 3px; }
.access-note { margin-top: 20px; font-size: .78rem; color: var(--muted); }
.access-note .icon { width: 1rem; height: 1rem; margin-right: 3px; }
@media (max-width: 1050px) {
  .tracking-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 830px) {
  .access-content { padding-inline: 25px; }
  .access-story h2 { font-size: clamp(2.5rem,6vw,5rem); }
}
@media (max-width: 700px) {
  .access-layout { display: block; }
  .access-art { min-height: 235px; padding: 17px 23px 20px; background-position: 61% 44%; }
  .access-art .access-brand img { width: 50px; height: 36px; }
  .access-story h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .access-story { padding-top: 20px; }
  .access-route { margin-top: 13px; }
  .access-content { padding: 23px 20px 30px; }
  .access-modes { margin-bottom: 18px; }
  .operation-head { align-items: start; gap: 10px; }
  .operation-heading { align-items: start; }
  .operation-heading .tile-icon { width: 37px; height: 37px; }
  .operation-heading .tile-icon .icon { width: 18px; height: 18px; }
  .stage-strip { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stage-cell { min-height: 74px; padding: 8px 11px; }
  .stage-cell:nth-child(3) { border-left: 0; }
  .stage-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .aurora-panel { inset: auto 9px 9px auto; width: calc(100vw - 18px); height: min(590px, calc(100dvh - 18px)); }
}
@media (max-width: 460px) {
  .top-actions { flex-shrink: 0; }
  .top-actions .icon-btn, .top .avatar { min-width: 37px; width: 37px; }
  .top .profile { padding-left: 0; }
  .crumb strong { max-width: 30vw; }
}

body {
  --brand-blue: #1875cb;
  --brand-red: #d6383d;
  --brand-orange: #f2852c;
  --brand-yellow: #ffda4b;
  --brand-spectrum: linear-gradient(90deg, var(--brand-red) 0 20%, var(--brand-orange) 20% 40%, var(--brand-yellow) 40% 60%, var(--brand-blue) 60% 80%, var(--brand-green) 80%);
  background: #f6f9fc;
}
.sidebar {
  background: #fff;
  color: var(--ink);
  border-color: #dce7ef;
}
.sidebar .brand, .sidebar .side-footer { border-color: #e0e9f2; }
.brand strong { color: #163249; }
.brand small, .workspace-label, .nav-label { color: #526779; }
.nav-link { color: #29475c; }
.nav-link:hover { color: #163d60; background: #edf5ff; }
.nav-link.active { color: #0d4d88; background: #e6f2ff; border-color: #c8e0fa; }
.sidebar .nav-link.active::before { background: var(--brand-blue); }
.side-close, .side-close:hover { color: #163d60; border-color: #c8e0fa; background: #edf5ff; }
.overlay.open { background: #18334d73; }
.top { border-color: #dce7ef; }
.unread { background: var(--brand-red); }
.operation-head {
  border-color: #d9e7f4;
  background:
    var(--brand-spectrum) top / 100% 4px no-repeat,
    repeating-linear-gradient(135deg, transparent 0 15px, #1875cb08 15px 16px),
    linear-gradient(100deg,#fff 22%,#e9f4ff);
}
.operation-heading .tile-icon { color: #1266ad; border-color: #cde1f6; }
.manifest-head {
  color: #163852;
  background: #e6f2fd;
  border-top: 5px solid transparent;
  border-image: var(--brand-spectrum) 1;
}
.manifest-head::before { filter: saturate(.85); opacity: .76; }
.manifest-head::after { background: linear-gradient(90deg,#eaf5ff 26%, #eaf5fff0 52%, #eaf5ff6b 100%); }
.manifest-date { color: #285a7f; }
.manifest-date span { border-color: #abc6df; }
.manifest-head .btn.primary { color: white; background: #14644c; }
.manifest-head .btn.primary:hover { background: #0c5540; }
.manifest-head .btn.secondary { color: #17476e; background: #fff; border-color: #bed7ec; }
.manifest-head .btn.secondary:hover { background: #eef7ff; }
.manifest-signal { background: #fff7dc; border-color: #edc66b; box-shadow: 0 8px 22px #88651711; }
.manifest-signal-icon { color: #8f4c15; background: #ffe8b1; border-color: #edc66b; }
.manifest-signal-label { color: #744714; }
.manifest-signal strong { color: #582f10; }
.manifest-signal .signal-link, .manifest-signal .signal-link:hover { background: transparent; color: #78400e; }
.manifest-metrics { border-color: #dce7ef; background: white; }
.manifest-metric + .manifest-metric { border-color: #dce7ef; }
.manifest-metric:hover { background: #f0f6fc; }
.manifest-metric:nth-child(2) strong, .manifest-metric:nth-child(2) .icon { color: #a44e0e; }
.manifest-metric:nth-child(3) strong, .manifest-metric:nth-child(4) .icon { color: #1467bd; }
.btn.primary, .access-fields button[type="submit"] { background: #14704c; }
.btn.primary:hover, .access-fields button[type="submit"]:hover { background: #0b5c3d; }

.account-dropdown { position: relative; }
.profile-trigger { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; }
.profile-trigger .avatar {
  width: 42px;
  height: 42px;
  color: #174c7a;
  letter-spacing: .04em;
  border: 2px solid transparent;
  background: linear-gradient(#eef6ff,#eef6ff) padding-box, conic-gradient(var(--brand-red),var(--brand-orange),var(--brand-yellow),var(--brand-green),var(--brand-blue),var(--brand-red)) border-box;
}
.profile-trigger:hover .avatar, .profile-trigger[aria-expanded="true"] .avatar {
  background: linear-gradient(#daeaff,#daeaff) padding-box, conic-gradient(var(--brand-red),var(--brand-orange),var(--brand-yellow),var(--brand-green),var(--brand-blue),var(--brand-red)) border-box;
}
.account-options {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 9px);
  width: min(240px, calc(100vw - 28px));
  padding: 6px;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #fff;
  color: #173852;
  box-shadow: 0 12px 30px #1c426726;
}
.account-options[hidden] { display: none; }
.account-summary { display: grid; gap: 3px; padding: 10px; border-bottom: 1px solid #e1ebf4; overflow-wrap: anywhere; }
.account-options button, .account-options a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: .89rem;
}
.account-options button:hover, .account-options a:hover { background: #eef6ff; }
.account-options .account-exit { margin-top: 4px; color: #9b2e36; border-top: 1px solid #e1ebf4; }

.aurora-launcher {
  position: fixed;
  z-index: 14;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  min-height: 49px;
  color: #174872;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cfe2f4;
  border-radius: 999px;
  box-shadow: 0 8px 26px #16446a2b;
}
.aurora-launcher:hover { background: #eef7ff; }
.aurora-launcher[hidden] { display: none; }
.aurora-mark {
  flex: none;
  color: #fff;
  background: conic-gradient(from 220deg, #1469b9, #16a455, #e38b18, #d13d55, #1469b9);
}
.aurora-launcher .aurora-mark { width: 34px; height: 34px; border-radius: 50%; }
.aurora-header { background: #edf6ff; }
.aurora-bubble.from-user { background: #195383; border-color: #195383; }
.feedback { bottom: 83px; }
body.aurora-open .feedback { right: auto; left: 15px; }
.workspace > main { padding-bottom: 84px; }

.access-art {
  background:
    linear-gradient(180deg,#112b4380,transparent 35%,#18395826 51%,#183650bb 86%,#18354de8 100%),
    url('./assets/access-depot.webp') 63% center / cover no-repeat #28557c;
  box-shadow: none;
  border-top: 5px solid transparent;
  border-image: var(--brand-spectrum) 1;
}
.access-route .icon { color: var(--brand-yellow); }
.access-route i { border-color: #bbd9fb; }
.access-content { background: #fbfdff; }
.access-modes { background: #edf5ff; border-color: #dbeafb; }
.access-modes a { color: #245d8b; }
.access-modes a:hover, .access-modes a[aria-current="page"] { color: #135d9f; }
.access-fields { gap: 12px; }
.inline-link {
  color: #135d9f;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  padding: 0;
}
.inline-link:hover { color: #123c64; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 62px; }
.password-wrap .password-toggle {
  position: absolute;
  top: 0;
  right: 8px;
  min-width: 43px;
  min-height: 100%;
}
.forgot-link { justify-self: end; font-size: .85rem; }
.password-rules { display:grid; gap:5px; margin:2px 0 4px; padding:0; list-style:none; font-size:.8rem; font-weight:500; color:var(--muted); }
.password-rules li { display:flex; gap:7px; align-items:baseline; }
.password-rules li span { min-width:1em; font-weight:bold; }
.password-rules [data-met="true"] { color:var(--mouka-accent-text,var(--ink)); }
.password-rules [data-met="true"] span { color:var(--mouka-link); }
.remember-choice, .legal-all, .legal-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .87rem;
}
.remember-choice small { display: block; margin-top: 3px; }
.remember-choice input, .access-legal input {
  min-height: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #13704c;
}
.access-legal { display: grid; gap: 10px; border: 1px solid #dbe8f4; border-radius: 9px; padding: 10px 12px; margin: 0; background: #f7fbff; }
.access-legal[aria-invalid="true"] { border-color: var(--brand-red); }
.access-legal legend { padding: 0 5px; color: #315f83; font-weight: 700; font-size: .82rem; }
.legal-all { font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid #dbe8f4; }
.access-fields [data-auth-result] { flex-direction: column; }

@media (max-width: 700px) {
  .manifest-head::after { background: linear-gradient(90deg,#eaf5fff4 20%,#eaf5ffa5); }
  .access-art { background-position: 61% 44%; }
  .access-content { padding-bottom: 90px; }
  .aurora-launcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
