    /* Tokens and device shell */
    :root {
      color-scheme: light;
      --navy: #0F2A43;
      --navy-2: #173B57;
      --orange: #F58220;
      --orange-dark: #AD5108;
      --bg: #F4F7FA;
      --card: #fff;
      --ink: #1B2733;
      --muted: #607080;
      --line: #DEE5EB;
      --green: #21845A;
      --red: #C43737;
      --yellow: #A66F00;
      --blue: #2874B7;
      --shadow: 0 2px 6px #10273b0a, 0 12px 30px #10273b0b;
      --radius: 18px;
      --ease: cubic-bezier(.2, .8, .2, 1)
    }

    @media(prefers-color-scheme:dark) {
      :root {
        color-scheme: dark;
        --bg: #0B1722;
        --card: #142637;
        --ink: #F1F5F7;
        --muted: #A7B7C4;
        --line: #304556;
        --navy: #1B3D59;
        --navy-2: #234D6C;
        --orange-dark: #FFAA61;
        --green: #57C493;
        --red: #FF7474;
        --yellow: #F6C855;
        --blue: #78B7EE;
        --shadow: 0 6px 24px #0003
      }
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden
    }

    body {
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
      color: var(--ink);
      background: radial-gradient(circle at 12% 10%, #24445f 0, #12283b 38%, #071521 100%);
      -webkit-tap-highlight-color: transparent
    }

    button,
    input,
    select,
    textarea {
      font: inherit
    }

    button {
      cursor: pointer
    }

    button:disabled {
      cursor: not-allowed;
      opacity: .45
    }

    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 3px solid var(--orange);
      outline-offset: 2px
    }

    svg {
      display: block
    }

    h1,
    h2,
    h3,
    p {
      margin: 0
    }

    .hidden {
      display: none !important
    }

    .ico {
      width: 20px;
      height: 20px;
      flex: none;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round
    }

    .ico.sm {
      width: 16px;
      height: 16px
    }

    .ico.lg {
      width: 24px;
      height: 24px
    }

    .app-layout {
      height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 40px;
      padding: 24px
    }

    .phone {
      width: 390px;
      height: min(844px, calc(100dvh - 48px));
      min-height: 620px;
      border: 7px solid #172330;
      border-radius: 42px;
      background: var(--bg);
      box-shadow: 0 40px 100px #0008, 0 0 0 1px #ffffff30;
      overflow: hidden;
      position: relative;
      flex: none
    }

    .phone:before {
      content: "";
      position: absolute;
      z-index: 8;
      left: 50%;
      top: 9px;
      transform: translateX(-50%);
      width: 90px;
      height: 23px;
      border-radius: 20px;
      background: #172330;
      pointer-events: none
    }

    .statusbar {
      height: 36px;
      padding: 8px 25px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--card);
      font-size: 11px;
      font-weight: 800;
      position: relative;
      z-index: 4
    }

    .status-icons {
      display: flex;
      align-items: center;
      gap: 5px
    }

    .status-icons svg {
      width: 15px;
      height: 15px;
      fill: currentColor
    }

    .app {
      height: calc(100% - 36px);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden
    }

    .side-panel {
      width: 240px;
      color: #fff
    }

    .side-logo {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      background: var(--orange);
      border-radius: 14px;
      margin-bottom: 22px;
      color: #172330
    }

    .side-panel h2 {
      font-size: 27px;
      line-height: 1.15;
      letter-spacing: -.04em
    }

    .side-panel p {
      color: #B6C4D0;
      font-size: 13px;
      line-height: 1.7;
      margin: 13px 0 28px
    }

    .side-label {
      text-transform: uppercase;
      letter-spacing: .14em;
      font-size: 10px;
      font-weight: 800;
      color: #9EB2C3;
      margin-bottom: 9px
    }

    .side-role {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
      padding: 11px 12px;
      border-radius: 12px;
      border: 1px solid #ffffff1f;
      background: #ffffff0d;
      color: #D9E4EC;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 7px;
      min-height: 44px
    }

    .side-role.active {
      background: #F5822029;
      border-color: #F58220;
      color: #fff
    }

    .side-role .ico {
      width: 17px;
      height: 17px
    }

    .side-reset {
      width: 100%;
      margin-top: 16px;
      min-height: 44px;
      border: 1px solid #ffffff55;
      background: transparent;
      border-radius: 12px;
      color: #fff;
      font-size: 12px;
      font-weight: 800
    }

    .side-foot {
      font-size: 10px;
      color: #8298AA;
      margin-top: 16px;
      line-height: 1.5
    }

    @media(max-width:480px) {
      body {
        background: var(--bg)
      }

      .app-layout {
        padding: 0;
        display: block;
        height: 100dvh
      }

      .phone {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none
      }

      .phone:before,
      .side-panel,
      .statusbar {
        display: none
      }

      .app {
        height: 100dvh;
        padding-top: env(safe-area-inset-top)
      }
    }

    /* Main surfaces and navigation */
    .topbar {
      background: var(--card);
      padding: 13px 20px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex: none;
      border-bottom: 1px solid var(--line)
    }

    .brandline {
      font-size: 10px;
      color: var(--orange-dark);
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
      margin-bottom: 3px
    }

    .topbar h1 {
      font-size: 20px;
      letter-spacing: -.04em;
      line-height: 1.2
    }

    .topbar p {
      font-size: 10.5px;
      color: var(--muted);
      margin-top: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 270px
    }

    .top-actions {
      display: flex;
      gap: 8px
    }

    .icon-btn {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--card);
      color: var(--ink);
      position: relative;
      flex: none
    }

    .notify-dot {
      position: absolute;
      right: 6px;
      top: 5px;
      min-width: 16px;
      height: 16px;
      padding: 0 3px;
      border-radius: 9px;
      background: var(--red);
      color: #fff;
      font-size: 9px;
      line-height: 16px;
      text-align: center;
      font-weight: 800;
      border: 2px solid var(--card);
      box-sizing: content-box
    }

    .page-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      scrollbar-width: none;
      padding: 18px 18px 126px;
      animation: pageIn .28s var(--ease) both
    }

    .page-scroll::-webkit-scrollbar {
      display: none
    }

    @keyframes pageIn {
      from {
        opacity: 0;
        transform: translateY(8px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    .dock {
      position: absolute;
      bottom: calc(12px + env(safe-area-inset-bottom));
      left: 12px;
      right: 12px;
      display: flex;
      align-items: stretch;
      justify-content: space-around;
      padding: 7px 5px 5px;
      min-height: 68px;
      border: 1px solid #ffffffa8;
      border-radius: 24px;
      background: color-mix(in srgb, var(--card) 91%, transparent);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      box-shadow: 0 8px 30px #102b3d27;
      z-index: 5
    }

    .dock button {
      position: relative;
      border: 0;
      background: transparent;
      color: var(--muted);
      min-width: 0;
      flex: 1;
      min-height: 54px;
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: 9px;
      font-weight: 700;
      transition: transform .22s var(--ease), color .22s
    }

    .dock button .ico {
      width: 20px;
      height: 20px;
      position: relative;
      z-index: 1
    }

    .dock button span {
      position: relative;
      z-index: 1;
      white-space: nowrap
    }

    .dock button.active {
      color: var(--navy-2)
    }

    .dock button.active:before {
      content: "";
      position: absolute;
      inset: 2px 3px;
      background: #F582202e;
      border-radius: 17px;
      animation: pillIn .3s var(--ease) both
    }

    @keyframes pillIn {
      from {
        opacity: 0;
        transform: scale(.7)
      }

      to {
        opacity: 1;
        transform: scale(1)
      }
    }

    .dock .nav-badge {
      position: absolute;
      top: 0;
      left: calc(50% + 7px);
      background: var(--red);
      color: #fff;
      border-radius: 8px;
      padding: 1px 4px;
      font-size: 9px
    }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 16px;
      margin-bottom: 14px;
      min-width: 0
    }

    .card.tight {
      padding: 13px
    }

    .card.ink {
      background: linear-gradient(130deg, #102D48, #1A4667);
      color: #fff;
      border: 0
    }

    .card.ink .muted,
    .card.ink .eyebrow {
      color: #B8CAD7
    }

    .card.safety {
      background: linear-gradient(135deg, #F58220, #E36C0C);
      color: #fff;
      border: 0
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin: 22px 0 11px
    }

    .section-head h2 {
      font-size: 15px;
      letter-spacing: -.025em
    }

    .section-head button {
      border: 0;
      background: transparent;
      color: var(--orange-dark);
      font-weight: 800;
      font-size: 11px;
      padding: 8px
    }

    .eyebrow {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--muted);
      font-weight: 800
    }

    .muted {
      color: var(--muted)
    }

    .small {
      font-size: 11px;
      line-height: 1.5
    }

    .strong {
      font-weight: 800
    }

    .big-number {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: -.06em;
      line-height: 1.1
    }

    .row {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .between {
      justify-content: space-between
    }

    .wrap {
      flex-wrap: wrap
    }

    .grow {
      flex: 1;
      min-width: 0
    }

    .stack {
      display: grid;
      gap: 10px
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px
    }

    .three-col {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px
    }

    .divider {
      height: 1px;
      background: var(--line);
      margin: 14px 0
    }

    .pill,
    .chip,
    .status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap
    }

    .pill {
      padding: 7px 9px;
      background: var(--bg);
      color: var(--ink)
    }

    .status {
      padding: 6px 9px;
      background: var(--bg);
      color: var(--muted)
    }

    .status.green {
      background: #2E9E6B1f;
      color: var(--green)
    }

    .status.blue {
      background: #2874B71d;
      color: var(--blue)
    }

    .status.orange {
      background: #F5822026;
      color: var(--orange-dark)
    }

    .status.red {
      background: #D6454520;
      color: var(--red)
    }

    .chip {
      min-height: 34px;
      padding: 7px 12px;
      background: var(--card);
      color: var(--muted);
      border: 1px solid var(--line)
    }

    .chip.active {
      background: var(--navy-2);
      color: #fff;
      border-color: var(--navy-2)
    }

    .chips {
      display: flex;
      gap: 7px;
      overflow-x: auto;
      scrollbar-width: none;
      margin: 0 -18px 14px;
      padding: 0 18px
    }

    .chips::-webkit-scrollbar {
      display: none
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
      flex: none
    }

    .dot.green {
      color: var(--green)
    }

    .dot.blue {
      color: var(--blue)
    }

    .dot.orange {
      color: var(--orange)
    }

    .dot.red {
      color: var(--red)
    }

    .dot.gray {
      color: #8A98A6
    }

    .btn {
      min-height: 44px;
      border: 0;
      border-radius: 12px;
      padding: 10px 15px;
      font-size: 12px;
      font-weight: 800;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 7px;
      white-space: normal;
      text-align: center;
      transition: transform .16s var(--ease), background .2s
    }

    .btn:active,
    .icon-btn:active,
    .chip:active,
    .dock button:active,
    .side-role:active {
      transform: scale(.97)
    }

    .btn.primary {
      background: var(--orange);
      color: #172330
    }

    .btn.navy {
      background: var(--navy-2);
      color: #fff
    }

    .btn.light {
      background: var(--bg);
      color: var(--ink);
      border: 1px solid var(--line)
    }

    .btn.danger {
      background: #D645451c;
      color: var(--red)
    }

    .btn.ghost {
      background: transparent;
      color: var(--orange-dark)
    }

    .btn.full {
      width: 100%
    }

    .btn.sm {
      min-height: 36px;
      padding: 7px 11px;
      font-size: 11px
    }

    .list-item {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 13px 0;
      border-bottom: 1px solid var(--line);
      min-width: 0
    }

    .list-item:last-child {
      border-bottom: 0;
      padding-bottom: 0
    }

    .list-item:first-child {
      padding-top: 0
    }

    .avatar,
    .unit-icon {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: #F5822022;
      color: var(--orange-dark);
      font-weight: 800;
      font-size: 13px;
      flex: none
    }

    .unit-icon {
      background: #2874B71d;
      color: var(--blue)
    }

    .list-title {
      font-size: 12px;
      font-weight: 800;
      line-height: 1.4
    }

    .list-sub {
      font-size: 10px;
      color: var(--muted);
      margin-top: 3px;
      line-height: 1.4
    }

    .progress-track {
      height: 6px;
      background: var(--line);
      border-radius: 9px;
      overflow: hidden
    }

    .progress-track span {
      display: block;
      height: 100%;
      background: var(--orange);
      border-radius: 9px
    }

    .metric {
      min-width: 0
    }

    .metric b {
      display: block;
      font-size: 18px;
      letter-spacing: -.04em
    }

    .metric span {
      display: block;
      font-size: 9px;
      color: var(--muted);
      line-height: 1.4;
      margin-top: 2px
    }

    .hero-title {
      font-size: 21px;
      letter-spacing: -.045em;
      line-height: 1.25;
      margin: 8px 0
    }

    .hero-sub {
      font-size: 11px;
      color: #C9D6DF;
      line-height: 1.6
    }

    .hero-art {
      width: 76px;
      height: 76px;
      background: #ffffff17;
      border: 1px solid #ffffff27;
      border-radius: 22px;
      display: grid;
      place-items: center;
      transform: rotate(-8deg)
    }

    .hero-art .ico {
      width: 40px;
      height: 40px;
      color: #fff
    }

    .quick-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px
    }

    .quick-place {
      border: 1px solid var(--line);
      background: var(--card);
      border-radius: 14px;
      min-height: 65px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 5px;
      text-align: left;
      font-size: 10px;
      font-weight: 800;
      color: var(--ink)
    }

    .quick-place .ico {
      color: var(--orange-dark);
      width: 17px;
      height: 17px
    }

    .banner {
      padding: 11px 13px;
      border-radius: 13px;
      background: #F5822019;
      border: 1px solid #F5822055;
      color: var(--ink);
      font-size: 11px;
      line-height: 1.5;
      margin-bottom: 14px
    }

    .banner.red {
      background: #D6454515;
      border-color: #D645454a
    }

    .banner.green {
      background: #2E9E6B19;
      border-color: #2E9E6B4d
    }

    .field {
      display: grid;
      gap: 6px;
      margin-bottom: 13px
    }

    .field label {
      font-size: 10px;
      color: var(--muted);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: var(--bg);
      color: var(--ink);
      padding: 10px 12px;
      font-size: 12px;
      outline: none
    }

    .field textarea {
      min-height: 76px;
      resize: vertical
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--orange)
    }

    .field .error {
      font-size: 10px;
      color: var(--red)
    }

    .segmented {
      display: flex;
      padding: 4px;
      background: var(--bg);
      border-radius: 13px;
      border: 1px solid var(--line);
      gap: 4px
    }

    .segmented button {
      flex: 1;
      min-height: 36px;
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 9px;
      font-size: 11px;
      font-weight: 800
    }

    .segmented button.active {
      background: var(--card);
      color: var(--ink);
      box-shadow: 0 1px 5px #00000016
    }

    .timeline {
      display: grid;
      gap: 0;
      padding-left: 3px
    }

    .step {
      display: flex;
      gap: 11px;
      min-height: 53px;
      position: relative;
      font-size: 11px
    }

    .step:not(:last-child):before {
      content: "";
      position: absolute;
      left: 8px;
      top: 18px;
      bottom: 0;
      width: 2px;
      background: var(--line)
    }

    .step.done:not(:last-child):before {
      background: var(--green)
    }

    .step-dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid var(--line);
      background: var(--card);
      flex: none;
      z-index: 1
    }

    .step.done .step-dot {
      background: var(--green);
      border-color: var(--green);
      box-shadow: inset 0 0 0 3px var(--card)
    }

    .step.active .step-dot {
      border-color: var(--orange);
      box-shadow: 0 0 0 4px #F5822028
    }

    .step b {
      display: block;
      margin-bottom: 3px
    }

    .step small {
      color: var(--muted)
    }

    .empty {
      text-align: center;
      padding: 30px 18px;
      color: var(--muted)
    }

    .empty .ico {
      width: 36px;
      height: 36px;
      margin: 0 auto 10px;
      color: var(--orange-dark)
    }

    .empty b {
      display: block;
      color: var(--ink);
      font-size: 13px;
      margin-bottom: 4px
    }

    .empty p {
      font-size: 11px;
      line-height: 1.5
    }

    /* Map, charts and interactive controls */
    .map-card {
      padding: 0;
      overflow: hidden;
      position: relative;
      background: #CAD7C4
    }

    .map-card.large {
      height: 460px
    }

    .map-card.medium {
      height: 330px
    }

    .map-card.small-map {
      height: 220px
    }

    .map-viewport {
      width: 100%;
      height: 100%;
      touch-action: none;
      overflow: hidden;
      position: relative
    }

    .map-viewport>svg {
      width: 100%;
      height: 100%;
      object-fit: cover
    }

    .map-toolbar {
      position: absolute;
      right: 10px;
      top: 10px;
      display: grid;
      gap: 6px;
      z-index: 2
    }

    .map-toolbar button {
      width: 36px;
      height: 36px;
      border: 1px solid #ffffffa8;
      border-radius: 10px;
      background: #fffef2e8;
      color: #173B57;
      font-size: 18px;
      font-weight: 800;
      box-shadow: 0 2px 8px #0002
    }

    .map-legend {
      position: absolute;
      left: 10px;
      bottom: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      background: #ffffffea;
      border: 1px solid #ffffffb7;
      padding: 7px 9px;
      border-radius: 10px;
      color: #254052;
      max-width: calc(100% - 20px);
      font-size: 9px;
      font-weight: 800
    }

    .map-marker {
      cursor: pointer;
      transition: transform .6s linear
    }

    .map-marker circle:first-child {
      fill: #fff;
      stroke: #fff;
      stroke-width: 5
    }

    .map-marker circle:last-of-type {
      stroke: #fff;
      stroke-width: 2
    }

    .map-marker text {
      fill: #fff;
      font-size: 8px;
      font-weight: 800;
      pointer-events: none
    }

    .map-marker.available circle:last-of-type {
      fill: #2E9E6B
    }

    .map-marker.moving circle:last-of-type {
      fill: #2874B7
    }

    .map-marker.queue circle:last-of-type {
      fill: #F58220
    }

    .map-marker.off circle:last-of-type {
      fill: #8796A3
    }

    .map-marker.issue circle:last-of-type {
      fill: #D64545
    }

    .map-label {
      font-size: 10px;
      font-weight: 800;
      fill: #334D48;
      letter-spacing: .04em;
      paint-order: stroke;
      stroke: #e9e9d2;
      stroke-width: 3px
    }

    .map-label.tiny {
      font-size: 8px
    }

    .map-caption {
      position: absolute;
      left: 10px;
      top: 10px;
      background: #fffffff0;
      padding: 8px 10px;
      border-radius: 9px;
      color: #173B57;
      font-size: 10px;
      font-weight: 800;
      max-width: 65%
    }

    .speed {
      background: var(--navy-2);
      color: #fff;
      border-radius: 15px;
      padding: 13px 15px;
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .speed strong {
      font-size: 29px;
      line-height: 1
    }

    .speed.warn {
      background: #C43737;
      animation: warningBlink .7s infinite alternate
    }

    @keyframes warningBlink {
      to {
        filter: brightness(1.35)
      }
    }

    .speed span {
      font-size: 9px;
      color: #D7E4ED
    }

    .bar-chart {
      height: 126px;
      width: 100%;
      overflow: visible
    }

    .donut {
      width: 108px;
      height: 108px;
      flex: none
    }

    .chart-label {
      font-size: 9px;
      fill: var(--muted);
      font-family: inherit
    }

    .sparkline {
      height: 40px;
      width: 100%
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px
    }

    .kpi {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 13px;
      min-width: 0
    }

    .kpi .ico {
      color: var(--orange-dark);
      margin-bottom: 9px
    }

    .kpi b {
      display: block;
      font-size: 21px;
      letter-spacing: -.05em;
      line-height: 1.15
    }

    .kpi span {
      font-size: 10px;
      color: var(--muted);
      line-height: 1.4
    }

    .kpi:last-child:nth-child(odd) {
      grid-column: span 2
    }

    .toggle {
      width: 46px;
      height: 27px;
      border-radius: 15px;
      background: #A6B2BA;
      border: 0;
      padding: 3px;
      display: inline-flex;
      align-items: center;
      transition: background .2s;
      flex: none
    }

    .toggle:before {
      content: "";
      width: 21px;
      height: 21px;
      background: #fff;
      border-radius: 50%;
      box-shadow: 0 1px 4px #0002;
      transition: transform .2s
    }

    .toggle.on {
      background: var(--green)
    }

    .toggle.on:before {
      transform: translateX(19px)
    }

    .check-row {
      display: grid;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      gap: 7px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
      font-size: 11px;
      font-weight: 700
    }

    .check-row:last-child {
      border-bottom: 0
    }

    .check-row button {
      min-width: 50px;
      min-height: 36px;
      border-radius: 9px;
      border: 1px solid var(--line);
      background: var(--bg);
      color: var(--muted);
      font-size: 10px;
      font-weight: 800
    }

    .check-row button.ok.active {
      background: #2E9E6B22;
      border-color: var(--green);
      color: var(--green)
    }

    .check-row button.bad.active {
      background: #D6454522;
      border-color: var(--red);
      color: var(--red)
    }

    .table-card {
      overflow: hidden
    }

    .table-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 4px;
      align-items: center;
      padding: 11px 0;
      border-bottom: 1px solid var(--line);
      font-size: 11px
    }

    .table-row:last-child {
      border: 0
    }

    .table-row b {
      font-size: 12px
    }

    .table-row small {
      color: var(--muted)
    }

    .range {
      width: 100%;
      accent-color: var(--orange)
    }

    .switch-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--line)
    }

    .switch-row:last-child {
      border: 0
    }

    .switch-row b {
      font-size: 11px;
      display: block
    }

    .switch-row small {
      font-size: 10px;
      color: var(--muted);
      line-height: 1.4
    }

    .search {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--card);
      color: var(--ink);
      padding: 10px 13px;
      margin-bottom: 13px;
      font-size: 12px
    }

    /* Overlay layers */
    .overlay {
      position: absolute;
      inset: 0;
      z-index: 10;
      background: #0617249a;
      display: flex;
      align-items: flex-end;
      justify-content: center
    }

    .sheet {
      width: 100%;
      max-height: 87%;
      overflow-y: auto;
      background: var(--card);
      border-radius: 25px 25px 0 0;
      padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
      box-shadow: 0 -15px 45px #00172735;
      animation: sheetIn .28s var(--ease) both;
      touch-action: pan-y
    }

    .sheet-handle {
      width: 38px;
      height: 4px;
      border-radius: 9px;
      background: var(--line);
      margin: 0 auto 16px;
      cursor: grab
    }

    .sheet-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 15px
    }

    .sheet-head h2 {
      font-size: 18px;
      letter-spacing: -.04em
    }

    .sheet-head p {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px
    }

    .sheet-close {
      border: 0;
      background: var(--bg);
      color: var(--ink);
      border-radius: 10px;
      min-width: 36px;
      height: 36px;
      font-size: 20px
    }

    .modal-wrap {
      position: absolute;
      inset: 0;
      z-index: 11;
      background: #061724a6;
      display: grid;
      place-items: center;
      padding: 24px
    }

    .modal {
      width: 100%;
      background: var(--card);
      border-radius: 20px;
      padding: 22px;
      box-shadow: 0 20px 55px #0005;
      animation: sheetIn .22s var(--ease) both
    }

    .modal h2 {
      font-size: 17px;
      margin-bottom: 7px
    }

    .modal p {
      font-size: 12px;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 20px
    }

    .toast {
      position: absolute;
      z-index: 20;
      left: 18px;
      right: 18px;
      bottom: calc(92px + env(safe-area-inset-bottom));
      background: #173B57;
      color: #fff;
      padding: 12px 14px;
      border-radius: 12px;
      box-shadow: 0 10px 25px #0003;
      font-size: 11px;
      font-weight: 700;
      display: flex;
      gap: 9px;
      align-items: center;
      animation: toastIn .25s var(--ease) both
    }

    .toast .ico {
      color: #78D8A9
    }

    .splash {
      position: absolute;
      inset: 0;
      z-index: 15;
      background: linear-gradient(150deg, #0F2A43, #1E4C69);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      animation: splashOut .6s 1.05s ease both;
      pointer-events: none
    }

    .splash-mark {
      width: 68px;
      height: 68px;
      display: grid;
      place-items: center;
      border-radius: 19px;
      background: var(--orange);
      color: #102940;
      margin-bottom: 18px
    }

    .splash-mark .ico {
      width: 35px;
      height: 35px
    }

    .splash h2 {
      font-size: 24px;
      letter-spacing: -.04em
    }

    .splash p {
      font-size: 11px;
      color: #BBCBD7;
      margin-top: 7px
    }

    .skeleton {
      display: grid;
      gap: 12px
    }

    .skeleton div {
      height: 70px;
      border-radius: 17px;
      background: linear-gradient(100deg, var(--card) 0, var(--bg) 48%, var(--card) 100%);
      background-size: 200% 100%;
      animation: shimmer 1s linear infinite
    }

    @keyframes shimmer {
      to {
        background-position: -200% 0
      }
    }

    @keyframes sheetIn {
      from {
        opacity: 0;
        transform: translateY(22px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateY(12px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes splashOut {
      to {
        opacity: 0;
        visibility: hidden
      }
    }

    .card b>.ico {
      display: inline-block;
      vertical-align: -3px;
      margin: 0 3px
    }

    .big-number span {
      display: inline-block;
      margin-left: 6px;
      letter-spacing: 0;
      line-height: 1.4
    }

    .map-marker .hit {
      fill: transparent !important;
      stroke: none !important
    }

    .map-marker circle:nth-of-type(2) {
      fill: #fff;
      stroke: #fff;
      stroke-width: 5
    }

    .chip,
    .btn.sm,
    .segmented button,
    .check-row button {
      min-height: 44px
    }

    .map-toolbar button {
      width: 44px;
      height: 44px
    }

    .sheet-close {
      min-width: 44px;
      height: 44px
    }

    .sheet-handle {
      width: 100%;
      height: 36px;
      margin: 0 auto 4px;
      background: transparent;
      position: relative;
      touch-action: none
    }

    .sheet-handle:after {
      content: "";
      position: absolute;
      left: 50%;
      top: 5px;
      transform: translateX(-50%);
      width: 38px;
      height: 4px;
      border-radius: 9px;
      background: var(--line)
    }

    .map-marker:focus-visible {
      outline: none;
      filter: drop-shadow(0 0 5px var(--orange))
    }

    .toggle {
      width: 48px;
      height: 44px;
      padding: 0;
      position: relative;
      background: transparent !important
    }

    .toggle:after {
      content: "";
      position: absolute;
      left: 1px;
      right: 1px;
      top: 8px;
      height: 28px;
      border-radius: 15px;
      background: #A6B2BA;
      transition: background .2s
    }

    .toggle.on:after {
      background: var(--green)
    }

    .toggle:before {
      position: absolute;
      z-index: 1;
      left: 4px;
      top: 11px;
      width: 22px;
      height: 22px
    }

    .toggle.on:before {
      transform: translateX(18px)
    }

    @media(prefers-color-scheme:dark) {
      .dock button.active {
        color: var(--ink)
      }
    }

    @media(prefers-reduced-motion:reduce) {

      *,
      *:before,
      *:after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
      }
    }
    #print-report{display:none}
    @page{size:landscape;margin:12mm}
    @media print{body{background:#fff!important;overflow:visible!important}.app-layout,body>svg{display:none!important}#print-report{display:block;color:#1B2733;font:11px Arial,sans-serif;padding:24px}#print-report h1{font-size:22px;margin-bottom:8px}#print-report p{margin-bottom:12px}#print-report table{border-collapse:collapse;width:100%;table-layout:fixed}#print-report th,#print-report td{border:1px solid #b7c2ca;padding:7px;text-align:left;overflow-wrap:anywhere}#print-report th{background:#edf2f5}}
