:root {
  --font-manrope: Arial, sans-serif;
  --ink: #17213c;
  --muted: #6f7890;
  --subtle: #98a1b4;
  --line: #e5e8ef;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --navy: #111a31;
  --navy-soft: #1c2742;
  --blue: #4f61e8;
  --blue-deep: #3444c7;
  --teal: #159d8e;
  --orange: #e19b42;
  --purple: #835ccf;
  --shadow: 0 8px 30px rgba(30, 42, 73, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-manrope), Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(79, 97, 232, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 248px;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
  color: #dbe0ec;
}

.sidebar-brand {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sidebar-brand > span:last-of-type {
  display: grid;
}

.sidebar-brand small {
  margin-top: 2px;
  color: #7f8aa6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #6f7aff, #4052d9);
  box-shadow: 0 6px 16px rgba(74, 89, 229, 0.3);
}

.brand-mark i {
  position: absolute;
  width: 15px;
  height: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.brand-mark i:nth-child(2) {
  width: 11px;
  transform: translateY(4px) rotate(-12deg);
}

.brand-mark i:nth-child(3) {
  width: 7px;
  transform: translateY(8px) rotate(-12deg);
}

.brand-mark-dark {
  box-shadow: none;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 17px 12px;
  scrollbar-width: thin;
}

.sidebar-nav p {
  margin: 18px 12px 8px;
  color: #66738f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-nav p:first-child {
  margin-top: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9ca6bb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-active {
  background: linear-gradient(90deg, rgba(83, 99, 235, 0.2), rgba(83, 99, 235, 0.08));
  color: #fff;
}

.nav-active::before {
  position: absolute;
  left: -12px;
  width: 3px;
  height: 23px;
  border-radius: 0 3px 3px 0;
  background: #6e7bff;
  content: "";
}

.nav-icon {
  display: inline-grid;
  width: 18px;
  place-items: center;
  color: #7f8ca8;
  font-size: 17px;
}

.nav-active .nav-icon {
  color: #7c89ff;
}

.nav-item em {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #aeb7ca;
  font-size: 9px;
  font-style: normal;
}

.sidebar-account {
  padding: 17px 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-summary > span:last-child {
  display: grid;
  min-width: 0;
}

.account-summary strong {
  overflow: hidden;
  color: #f3f5fb;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary small {
  margin-top: 2px;
  color: #78849e;
  font-size: 9px;
}

.avatar {
  display: inline-grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #596aea, #3949c8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #8793ac;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.content-shell {
  min-height: 100vh;
  margin-left: 248px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.search-wrap {
  display: flex;
  width: min(380px, 42vw);
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #e4e7ee;
  border-radius: 9px;
  background: #f7f8fa;
  color: #8b94a8;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-expanded {
  border-color: rgba(79, 97, 232, 0.42);
  box-shadow: 0 0 0 3px rgba(79, 97, 232, 0.08);
}

.search-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-wrap input::placeholder {
  color: #9ca4b5;
}

.search-wrap kbd {
  padding: 3px 6px;
  border: 1px solid #e1e4eb;
  border-radius: 5px;
  background: #fff;
  color: #8b94a6;
  font-family: inherit;
  font-size: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #e6e9ef;
  border-radius: 9px;
  background: #fff;
  color: #6e7890;
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ef5b63;
}

.account-menu-wrap {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #707990;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.avatar-small {
  width: 33px;
  height: 33px;
  flex-basis: 33px;
  border-radius: 50%;
}

.account-menu {
  position: absolute;
  top: 45px;
  right: 0;
  width: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 38, 66, 0.16);
}

.account-menu p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.account-menu p strong {
  font-size: 12px;
}

.account-menu p span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.role-badge {
  display: inline-block;
  margin: 12px 0;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef0ff;
  color: #4f5ed0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-menu > a {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #d64c56;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.mobile-menu,
.mobile-wordmark,
.mobile-tabbar {
  display: none;
}

.dashboard {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px;
}

.preview-banner {
  display: flex;
  justify-content: space-between;
  margin: -8px 0 20px;
  padding: 9px 12px;
  border: 1px solid #d9ddfb;
  border-radius: 8px;
  background: #f0f2ff;
  color: #4e5bc1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.preview-banner span {
  color: #7b84ae;
  font-weight: 600;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #7e879b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-row h1 {
  margin: 0;
  color: #18213a;
  font-size: clamp(24px, 2.35vw, 32px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.welcome-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.primary-button {
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(79, 97, 232, 0.2);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-deep);
}

.secondary-button {
  border: 1px solid #dfe3eb;
  background: #fff;
  color: #505a70;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.metric-card,
.panel,
.status-strip {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 145px;
  padding: 17px;
  border-radius: 12px;
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.metric-blue { background: #eef0ff; color: #5868df; }
.metric-purple { background: #f3edfb; color: #865bca; }
.metric-teal { background: #e9f8f4; color: #159b87; }
.metric-orange { background: #fff4e8; color: #dc9138; }

.metric-top em {
  padding: 3px 6px;
  border-radius: 5px;
  background: #ebf7f2;
  color: #27836d;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.metric-top .metric-capacity {
  background: #f2f3f6;
  color: #747d8e;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: #697287;
  font-size: 10px;
  font-weight: 650;
}

.metric-value {
  display: block;
  margin-top: 2px;
  color: #18223d;
  font-size: 23px;
  font-weight: 770;
  letter-spacing: -0.04em;
}

.metric-detail,
.metric-storage small {
  display: block;
  margin-top: 6px;
  color: #9aa2b2;
  font-size: 8px;
  font-weight: 600;
}

.metric-storage > span {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #eef0f3;
}

.metric-storage > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e4a044;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 13px;
  padding: 12px 17px;
  border-radius: 10px;
}

.status-strip > div {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  color: #7d8597;
  font-size: 9px;
}

.status-strip > div:first-child {
  padding-left: 0;
}

.status-strip > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.status-strip span:last-child {
  display: grid;
}

.status-strip strong {
  color: #253049;
  font-size: 13px;
}

.status-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.status-icon.success { background: #e7f6f0; color: #269277; }
.status-icon.pending { background: #fff2e2; color: #d58a31; }
.status-icon.failure { background: #fdecef; color: #dc5260; }
.status-icon.neutral { background: #edf0ff; color: #5f6ed5; }

.operations-grid,
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.85fr);
  gap: 13px;
  margin-top: 13px;
}

.lower-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
}

.panel {
  border-radius: 12px;
}

.panel-heading {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 8px;
}

.panel-heading h2 {
  margin: 0;
  color: #222c45;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-heading-actions .secondary-button {
  min-height: 32px;
}

.panel-heading-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.text-button {
  border: 0;
  background: transparent;
  color: #5060d6;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.map-stage {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #e9edf0;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(33deg, transparent 48%, rgba(255,255,255,.8) 49%, rgba(255,255,255,.8) 51%, transparent 52%),
    linear-gradient(-28deg, transparent 46%, rgba(199,206,208,.7) 47%, rgba(199,206,208,.7) 49%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.42) 1px, transparent 1px);
  background-position: 0 0, 0 20px, 0 0, 0 0;
  background-size: 130px 90px, 170px 120px, 36px 36px, 36px 36px;
}

.map-water {
  position: absolute;
  border-radius: 45%;
  background: #c9e3e6;
  opacity: 0.8;
  transform: rotate(-15deg);
}

.map-water-one { right: -90px; bottom: -95px; width: 310px; height: 210px; }
.map-water-two { left: -80px; top: -125px; width: 260px; height: 170px; }

.map-road {
  position: absolute;
  height: 4px;
  border: 1px solid #e0cda2;
  border-right: 0;
  border-left: 0;
  background: #fff;
  opacity: 0.9;
  transform-origin: left center;
}

.road-one { top: 42%; left: -5%; width: 115%; transform: rotate(12deg); }
.road-two { top: 72%; left: 8%; width: 78%; transform: rotate(-25deg); }
.road-three { top: 10%; left: 58%; width: 70%; transform: rotate(67deg); }

.map-label {
  position: absolute;
  color: #76828b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.label-manila { top: 56%; left: 37%; }
.label-qc { top: 27%; left: 57%; }
.label-pasay { top: 74%; left: 48%; }

.boundary-box {
  position: absolute;
  top: 19%;
  right: 19%;
  bottom: 18%;
  left: 20%;
  border: 2px solid rgba(74, 91, 219, 0.78);
  background: rgba(83, 100, 231, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 2px 8px rgba(58,73,186,.15);
}

.boundary-corner {
  position: absolute;
  padding: 3px 5px;
  border-radius: 4px;
  background: #4c5cd5;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
}

.corner-sw { bottom: -10px; left: -11px; }
.corner-ne { top: -10px; right: -11px; }

.coverage-pin {
  position: absolute;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #4d5edc;
  box-shadow: 0 3px 8px rgba(34,48,95,.25);
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  transform: rotate(-45deg);
}

.coverage-pin::after {
  transform: rotate(45deg);
  content: attr(data-label);
}

.coverage-pin { line-height: 1; }
.pin-one { top: 38%; left: 36%; }
.pin-two { top: 48%; left: 55%; background: #14a190; }
.pin-three { top: 66%; left: 47%; background: #e1943f; }

.map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(40, 51, 76, 0.16);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(32,42,60,.13);
}

.map-controls button {
  width: 28px;
  height: 27px;
  border: 0;
  border-bottom: 1px solid #e2e5e9;
  background: #fff;
  color: #4d5669;
  cursor: pointer;
  font-size: 15px;
}

.map-controls button:last-child { border-bottom: 0; }

.map-legend {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(40, 51, 76, 0.1);
  border-radius: 5px;
  background: rgba(255,255,255,.9);
  color: #687285;
  font-size: 7px;
  font-weight: 700;
}

.map-legend span {
  width: 11px;
  height: 7px;
  border: 1px solid #5868df;
  background: rgba(88,104,223,.12);
}

.boundary-summary {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  min-height: 67px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}

.boundary-summary > div {
  display: grid;
  gap: 3px;
}

.boundary-summary span {
  color: #949cad;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.boundary-summary strong {
  color: #354057;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.boundary-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, #cbd0d9 0 4px, transparent 4px 7px);
}

.area-summary {
  justify-self: end;
  text-align: right;
}

.area-summary strong {
  font-family: inherit;
  font-size: 12px;
}

.queue-panel {
  overflow: hidden;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 10px;
  background: #e9f7f1;
  color: #269076;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-badge i,
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2aa183;
  box-shadow: 0 0 0 3px rgba(42,161,131,.12);
}

.primary-job {
  margin: 16px;
  padding: 13px;
  border: 1px solid #e3e6f4;
  border-radius: 9px;
  background: #f8f9fe;
}

.job-title,
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-title > span:nth-child(2),
.queue-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
}

.job-title strong,
.queue-item strong {
  overflow: hidden;
  color: #313b52;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-title small,
.queue-item small {
  margin-top: 3px;
  color: #9098aa;
  font-size: 7px;
}

.job-card .job-error {
  overflow: hidden;
  max-width: 520px;
  color: #c74d5a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-title em {
  color: #5262d7;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.project-tile {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  place-items: center;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 850;
}

.tile-indigo { background: #edf0ff; color: #5263d6; }
.tile-teal { background: #e7f7f3; color: #168c7d; }
.tile-amber { background: #fff2e4; color: #cb8334; }
.tile-slate { background: #eff1f4; color: #69758b; }

.progress-track {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 5px;
  background: #e4e7f1;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5867db, #6d7bf0);
  transition: width 400ms ease;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #8c95a8;
  font-size: 7px;
}

.queue-list {
  margin: 0 16px;
}

.queue-item {
  padding: 10px 0;
  border-bottom: 1px solid #eceef2;
}

.queue-item em {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f0f2f5;
  color: #7f899a;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.throughput {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 16px;
  padding: 11px;
  border-radius: 8px;
  background: #f7f8fa;
}

.throughput > div:first-child {
  display: grid;
}

.throughput span {
  color: #8e97a9;
  font-size: 7px;
}

.throughput strong {
  margin-top: 2px;
  color: #2b354c;
  font-size: 15px;
}

.throughput strong small {
  color: #9299a8;
  font-size: 7px;
  font-weight: 650;
}

.spark-bars {
  display: flex;
  height: 27px;
  align-items: end;
  gap: 3px;
}

.spark-bars i {
  width: 3px;
  border-radius: 3px 3px 1px 1px;
  background: #7884e4;
  opacity: 0.68;
}

.panel-button {
  display: flex;
  width: calc(100% - 32px);
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 15px;
  border: 1px solid #e2e5ec;
  border-radius: 7px;
  background: #fff;
  color: #59647a;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.projects-panel {
  overflow: hidden;
}

.project-table {
  width: 100%;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.3fr) repeat(3, minmax(62px, .65fr)) minmax(84px, .85fr) 84px;
  min-height: 61px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #eef0f3;
  color: #5d6679;
  font-size: 8px;
}

.project-row:last-child {
  border-bottom: 0;
}

.project-row-head {
  min-height: 34px;
  background: #fafbfc;
  color: #9aa1b0;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.project-name > span:last-child {
  display: grid;
  min-width: 0;
}

.project-name strong {
  overflow: hidden;
  color: #303a51;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-name small {
  margin-top: 3px;
  color: #949cad;
  font-size: 7px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 9px;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.project-status::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-completed { background: #e9f7f1; color: #298b72; }
.status-generating { background: #edf0ff; color: #5565d8; }
.status-ready { background: #fff3e7; color: #ca8538; }

.project-row > button {
  border: 0;
  background: transparent;
  color: #929aaa;
  cursor: pointer;
  font-size: 10px;
}

.mobile-status-time {
  display: none;
}

.activity-list {
  padding: 4px 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f3;
}

.activity-item > span:last-child {
  display: grid;
}

.activity-item strong {
  color: #354057;
  font-size: 8px;
}

.activity-item small {
  margin-top: 3px;
  color: #969eae;
  font-size: 7px;
}

.activity-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
}

.activity-success { background: #e7f7f0; color: #278e75; }
.activity-info { background: #edf0ff; color: #5968d8; }
.activity-warning { background: #fff2e5; color: #ce8736; }

.modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 26, 49, .58);
  cursor: default;
}

.confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
}

.confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f2;
  color: #c34857;
  font-size: 18px;
  font-weight: 900;
}

.confirm-card h2 {
  margin: 4px 0 8px;
  color: #202a43;
  font-size: 22px;
}

.confirm-card p {
  margin: 0;
  color: #687287;
  font-size: 11px;
  line-height: 1.65;
}

.confirm-card p strong {
  color: #303a51;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.danger-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #c34857;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.danger-button:hover {
  background: #aa3745;
}

.confirm-actions button:disabled {
  cursor: wait;
  opacity: .55;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #dce0e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25,35,58,.2);
  color: #4f596e;
  font-size: 10px;
  font-weight: 700;
  animation: toast-in 220ms ease-out;
}

.toast > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e7f6f0;
  color: #238e72;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sign in */
.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.06fr) minmax(400px, .94fr);
  background: #fff;
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px clamp(38px, 5vw, 74px);
  background:
    radial-gradient(circle at 72% 34%, rgba(93, 112, 234, .19), transparent 29%),
    linear-gradient(145deg, #11192f, #17223e 52%, #10182d);
  color: #fff;
}

.login-visual::after {
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
}

.login-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
}

.login-map {
  position: absolute;
  z-index: 1;
  top: 16%;
  right: 4%;
  width: 76%;
  aspect-ratio: 1.15;
  opacity: .9;
  transform: rotate(-7deg);
}

.contour {
  position: absolute;
  border: 1px solid rgba(146, 158, 238, .27);
  border-radius: 45% 55% 48% 52%;
}

.contour-a { inset: 12% 8% 15% 4%; transform: rotate(14deg); }
.contour-b { inset: 21% 19% 24% 15%; border-width: 2px; }
.contour-c { inset: 31% 29% 35% 26%; transform: rotate(-12deg); }

.route {
  position: absolute;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 141, 255, .62), transparent);
}

.route-a { top: 48%; left: 0; transform: rotate(22deg); }
.route-b { top: 64%; left: 10%; transform: rotate(-31deg); }

.coverage-box {
  position: absolute;
  inset: 23% 20% 22% 17%;
  border: 2px solid rgba(113, 132, 249, .72);
  background: rgba(84, 103, 225, .08);
  box-shadow: 0 0 40px rgba(64, 84, 218, .15);
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #6577ed;
  box-shadow: 0 0 0 5px rgba(102,119,237,.2);
}

.pin-a { top: 37%; left: 37%; }
.pin-b { top: 54%; left: 62%; background: #24a890; }
.pin-c { top: 69%; left: 44%; background: #e6a041; }

.coordinate-label {
  position: absolute;
  top: 27%;
  left: 21%;
  color: rgba(204, 211, 255, .6);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.login-promise {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.eyebrow-light {
  color: #8f9ef4;
}

.login-promise h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.login-promise p {
  max-width: 470px;
  margin: 18px 0 25px;
  color: #9da8c1;
  font-size: 13px;
  line-height: 1.7;
}

.security-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #afb8cb;
  font-size: 9px;
  font-weight: 700;
}

.security-row span::before {
  margin-right: 6px;
  color: #6d7cf1;
  content: "✓";
}

.login-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 46px;
  background: #fbfbfc;
}

.login-mobile-brand {
  display: none;
}

.login-card {
  width: min(100%, 420px);
  padding: 46px 40px 36px;
  border: 1px solid #e4e7ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(30, 40, 70, .08);
}

.login-lock {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 13px;
  background: #eef0ff;
  color: #5363d7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.login-card h1 {
  margin: 0;
  color: #1b2540;
  font-size: 31px;
  font-weight: 760;
  letter-spacing: -.045em;
}

.login-intro {
  margin: 12px 0 28px;
  color: #758096;
  font-size: 12px;
  line-height: 1.65;
}

.login-button {
  width: 100%;
  min-height: 49px;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
}

.chatgpt-symbol {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: 17px;
}

.login-note {
  margin: 15px 0 26px;
  color: #9aa2b1;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #eceef2;
  color: #7c8699;
  font-size: 8px;
  font-weight: 700;
}

.system-status span:last-child {
  margin-left: auto;
  color: #a0a7b4;
}

.login-footer {
  position: absolute;
  bottom: 22px;
  margin: 0;
  color: #a3aab7;
  font-size: 8px;
}

@media (max-width: 1120px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
  }

  .activity-panel .panel-heading {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .activity-list {
    display: flex;
    padding: 0 14px;
  }

  .activity-item {
    min-width: 0;
    flex: 1;
    border-right: 1px solid #eef0f3;
    border-bottom: 0;
    padding: 10px;
  }

  .activity-item:last-child {
    border-right: 0;
  }

  .activity-panel .panel-button {
    margin: 0 16px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 274px;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    border: 0;
    background: rgba(10, 16, 31, .52);
    backdrop-filter: blur(2px);
  }

  .content-shell {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  .mobile-menu {
    display: grid;
    width: 36px;
    height: 36px;
    place-content: center;
    gap: 5px;
    border: 1px solid #e3e6ec;
    border-radius: 9px;
    background: #fff;
  }

  .mobile-menu span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: #3f4960;
  }

  .mobile-wordmark {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-wordmark .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .search-wrap {
    width: min(280px, 35vw);
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .queue-panel {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
  }

  .queue-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .primary-job {
    margin-bottom: 10px;
  }

  .queue-list {
    margin-top: 6px;
  }

  .throughput {
    margin-top: 0;
  }

  .queue-panel .panel-button {
    align-self: end;
  }

  .login-page {
    grid-template-columns: .82fr 1.18fr;
  }
}

@media (max-width: 720px) {
  body {
    background: #f4f6f9;
  }

  .topbar {
    height: 60px;
    gap: 12px;
    padding: 0 14px;
  }

  .mobile-wordmark {
    margin-right: auto;
  }

  .search-wrap {
    display: none;
  }

  .account-trigger-name,
  .account-trigger > span:last-child {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .dashboard {
    padding: 20px 14px 92px;
  }

  .preview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-top: -4px;
  }

  .welcome-row {
    display: block;
    margin-bottom: 18px;
  }

  .welcome-row h1 {
    font-size: 25px;
  }

  .welcome-actions {
    margin-top: 17px;
  }

  .welcome-actions button {
    flex: 1;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    min-height: 137px;
    padding: 14px;
  }

  .metric-value {
    font-size: 21px;
  }

  .status-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 5px 12px;
  }

  .status-strip > div {
    min-height: 48px;
    padding: 0 8px;
  }

  .status-strip > div:nth-child(2) {
    border-right: 0;
  }

  .status-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .map-stage {
    height: 248px;
  }

  .boundary-summary {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 13px 16px;
  }

  .boundary-line {
    display: none;
  }

  .area-summary {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .queue-panel {
    display: block;
  }

  .projects-panel .panel-heading {
    border-bottom: 0;
  }

  .project-row-head {
    display: none;
  }

  .project-row {
    position: relative;
    display: grid;
    min-height: 124px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 15px;
  }

  .project-name {
    grid-column: 1 / -1;
    padding-right: 92px;
  }

  .project-actions {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .project-row > span[data-label] {
    display: grid;
    gap: 3px;
  }

  .project-row > span[data-label]::before {
    color: #9ba2b1;
    font-size: 7px;
    font-weight: 750;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .project-row > span:nth-of-type(4) {
    display: none;
  }

  .project-row > button {
    position: absolute;
    top: 18px;
    right: 14px;
  }

  .mobile-status-time {
    display: block;
    margin-top: 4px;
    color: #9aa2b1;
    font-size: 7px;
  }

  .activity-panel {
    display: block;
  }

  .activity-panel .panel-heading {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activity-list {
    display: block;
    padding: 4px 16px;
  }

  .activity-item {
    border-right: 0;
    border-bottom: 1px solid #eef0f3;
  }

  .activity-panel .panel-button {
    margin: 0 16px 15px;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 21;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding: 8px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #e0e3ea;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -7px 24px rgba(33,44,72,.07);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar button {
    display: grid;
    min-height: 48px;
    place-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #8b94a5;
    font-size: 7px;
    font-weight: 700;
  }

  .mobile-tabbar button span {
    font-size: 17px;
  }

  .mobile-tabbar .mobile-tab-active {
    color: #5161d4;
  }

  .mobile-tabbar .mobile-create {
    width: 44px;
    min-height: 44px;
    margin: -19px auto 0;
    border: 5px solid #f4f6f9;
    border-radius: 50%;
    background: #5363da;
    box-shadow: 0 7px 18px rgba(64,80,200,.3);
    color: #fff;
    font-size: 21px;
  }

  .toast {
    right: 14px;
    bottom: 82px;
    left: 14px;
  }

  .login-page {
    display: block;
    min-height: 100svh;
    background:
      radial-gradient(circle at 50% 0%, rgba(93, 111, 230, .12), transparent 36%),
      #f8f9fc;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: 72px 20px 52px;
    background: transparent;
  }

  .login-mobile-brand {
    position: absolute;
    top: 22px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1a243e;
    font-size: 15px;
    font-weight: 800;
  }

  .login-mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .login-card {
    padding: 34px 24px 28px;
    border-radius: 17px;
  }

  .login-card h1 {
    font-size: 28px;
  }

  .login-footer {
    bottom: 17px;
  }
}

@media (max-width: 390px) {
  .dashboard {
    padding-right: 11px;
    padding-left: 11px;
  }

  .welcome-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 124px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Portable PHP application extensions */
.nav-item {
  text-decoration: none;
}

.sidebar-account form,
.mobile-logout-form,
.mobile-tabbar form {
  margin: 0;
}

.sidebar-logout {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.welcome-actions a,
.panel-heading a,
.panel-button {
  text-decoration: none;
}

.form-alert {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #f1cbd0;
  border-radius: 8px;
  background: #fff1f3;
  color: #b33f4d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.transport-alert {
  margin: 18px;
}

.auth-form,
.data-form {
  display: grid;
  gap: 15px;
}

.auth-form label,
.data-form label {
  display: grid;
  gap: 7px;
  color: #59647a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

.auth-form input,
.data-form input,
.data-form select,
.data-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #253049;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus,
.data-form input:focus,
.data-form select:focus,
.data-form textarea:focus {
  border-color: rgba(79, 97, 232, .55);
  box-shadow: 0 0 0 3px rgba(79, 97, 232, .09);
}

.data-form textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.55;
}

.data-form label small {
  color: #9aa2b2;
  font-weight: 600;
}

.auth-form .login-button {
  margin-top: 4px;
}

.page-welcome {
  align-items: center;
}

.form-panel {
  margin-bottom: 13px;
}

.data-form {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-result {
  align-self: center;
  color: #627086;
  font-size: 9px;
  font-weight: 700;
}

.form-result.result-success {
  color: #25856f;
}

.form-result.result-error {
  color: #c74d5a;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.file-drop {
  min-height: 130px;
  place-content: center;
  padding: 18px;
  border: 1px dashed #cfd5e2;
  border-radius: 10px;
  background: #f9fafc;
  text-align: center;
}

.file-drop input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.file-drop span {
  color: #929bad;
  font-size: 8px;
  font-weight: 600;
}

.data-form .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-form .check-row input {
  width: 16px;
  min-height: 16px;
}

.real-map {
  position: relative;
  z-index: 1;
  height: 326px;
  background: #e9edf0;
}

.map-empty,
.empty-list {
  display: grid;
  min-height: 250px;
  place-content: center;
  justify-items: center;
  padding: 28px;
  color: #8a94a8;
  text-align: center;
}

.map-empty > span {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 13px;
  background: #edf0ff;
  color: #5868df;
  font-size: 20px;
}

.map-empty strong {
  color: #39445b;
  font-size: 12px;
}

.map-empty p {
  max-width: 330px;
  margin: 7px 0 15px;
  font-size: 9px;
  line-height: 1.6;
}

.map-empty .primary-button {
  color: #fff;
  text-decoration: none;
}

.empty-list {
  min-height: 110px;
  font-size: 9px;
}

.queue-list-main {
  min-height: 246px;
}

.projects-section {
  margin-top: 13px;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.project-actions a,
.project-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f1f3f7;
  color: #68748b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.project-actions .delete-project {
  background: #fff0f2;
  color: #c34857;
  font-size: 14px;
}

.project-actions .delete-project:hover {
  background: #fbdde2;
}

.project-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(420px, 1.22fr);
  gap: 13px;
}

.analysis-layout .form-panel {
  margin: 0;
}

.analysis-results {
  overflow: hidden;
}

.analysis-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.analysis-summary > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 8px;
  background: #f7f8fb;
}

.analysis-summary span {
  color: #8d96a8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.analysis-summary strong {
  color: #334059;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.analysis-map {
  height: 250px;
}

.job-table {
  padding: 8px 18px;
}

.job-card {
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, .65fr) 48px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #eceef2;
}

.job-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-card > div:first-child > span:last-child {
  display: grid;
}

.job-card strong {
  color: #354057;
  font-size: 9px;
}

.job-card small {
  margin-top: 3px;
  color: #929bad;
  font-size: 7px;
}

.job-card > strong {
  text-align: right;
}

.progress-track span[data-progress="0"] { width: 0; }
.progress-track span.progress-10 { width: 10%; }
.progress-track span.progress-20 { width: 20%; }
.progress-track span.progress-30 { width: 30%; }
.progress-track span.progress-40 { width: 40%; }
.progress-track span.progress-50 { width: 50%; }
.progress-track span.progress-60 { width: 60%; }
.progress-track span.progress-70 { width: 70%; }
.progress-track span.progress-80 { width: 80%; }
.progress-track span.progress-90 { width: 90%; }
.progress-track span.progress-100 { width: 100%; }

.storage-metrics {
  margin-top: 0;
}

.metric-path {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.settings-list {
  padding: 8px 18px;
}

.settings-list > div {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eceef2;
}

.settings-list > div span {
  color: #7c8699;
  font-size: 9px;
  font-weight: 700;
}

.settings-list > div strong {
  color: #354057;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-align: right;
  overflow-wrap: anywhere;
}

.settings-list p {
  color: #8a94a6;
  font-size: 9px;
  line-height: 1.6;
}

.audit-list {
  padding: 4px 18px;
}

.audit-list > div:not(.empty-list) {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eceef2;
}

.audit-list > div > span:last-child {
  display: grid;
}

.audit-list strong {
  color: #354057;
  font-size: 9px;
}

.audit-list small {
  margin-top: 3px;
  color: #949cad;
  font-size: 7px;
}

.status-partially-completed { background: #fff3e7; color: #c67f32; }
.status-failed { background: #fdecef; color: #d5505d; }
.status-queued,
.status-generating { background: #edf0ff; color: #5565d8; }
.status-draft { background: #f0f2f5; color: #737d90; }
.status-archived { background: #eceef2; color: #6e7788; }

.mobile-tabbar a {
  display: grid;
  min-height: 48px;
  place-content: center;
  gap: 3px;
  color: #8b94a5;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mobile-tabbar a span {
  font-size: 17px;
}

.mobile-tabbar form button {
  width: 100%;
}

.confirm-modal[hidden],
.toast[hidden],
.sidebar-backdrop[hidden] {
  display: none;
}

.leaflet-container {
  font-family: Arial, sans-serif;
}

.leaflet-control-attribution {
  font-size: 8px;
}

.preview-select {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-select select {
  min-width: 220px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: #fff;
  color: #445068;
  font-size: 9px;
  font-weight: 700;
}

.split-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.split-labels span {
  padding: 9px 14px;
  color: #7f899c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.split-labels span:first-child {
  border-right: 1px solid var(--line);
}

.split-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 410px;
}

.split-map {
  min-height: 410px;
  background: #e9edf0;
}

.split-map:first-child {
  border-right: 1px solid #fff;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar .role-badge {
    display: none;
  }

  .mobile-logout-form .account-trigger {
    gap: 0;
  }

  .mobile-logout-form .account-trigger > span:last-child {
    display: block;
    margin-left: 4px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .data-form {
    padding: 15px;
  }

  .panel-heading-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }

  .confirm-card {
    padding: 22px;
  }

  .confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-summary {
    grid-template-columns: 1fr;
  }

  .job-card {
    grid-template-columns: 1fr 48px;
    gap: 10px;
    padding: 13px 0;
  }

  .job-card .progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .job-card > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .real-map {
    height: 280px;
  }

  .split-panel .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .preview-select {
    width: 100%;
  }

  .preview-select select {
    min-width: 0;
    flex: 1;
  }

  .split-labels {
    grid-template-columns: 1fr;
  }

  .split-labels span:last-child {
    display: none;
  }

  .split-maps {
    grid-template-columns: 1fr;
  }

  .split-map {
    min-height: 300px;
  }

  .split-map:first-child {
    border-right: 0;
    border-bottom: 4px solid #fff;
  }
}
