/* Asset List card layout - replaces the old dense table with one card
   per asset, grouped under a location header, so the same location
   reads the same way everywhere it appears. */
.asset-loc-header {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--success);
  letter-spacing: 0.5px;
  margin: 18px 0 10px;
}
/* Project group header — only in the asset list's All projects mode,
   where it heads each project's run of location groups. */
.asset-proj-header {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
  margin: 22px 0 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.asset-proj-header:first-child {
  margin-top: 6px;
}
/* The Own equipment group's sub-line in customer mode (2.4.114). */
.asset-group-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0 0 6px;
}
.asset-loc-header:first-child {
  margin-top: 4px;
}
.asset-card {
  background: var(--card-dark);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.asset-card-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.asset-card-open:focus-visible,
.asset-card-actions button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.asset-card.asset-card-tank {
  border-left-color: var(--warning);
}
.asset-card.asset-card-powerpack {
  border-left-color: var(--text-muted);
}
.asset-card.asset-card-offhired {
  opacity: 0.55;
}
.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.asset-card-id {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}
.asset-card-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}
.asset-card-readout {
  text-align: right;
  flex-shrink: 0;
}
.asset-card-readout .val {
  font-size: 1rem;
  font-weight: 800;
}
.asset-card-readout .lbl {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.asset-status-pill {
  font-size: var(--fs-sm);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  display: inline-block;
}
.asset-status-ok {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}
.asset-status-due {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}
.asset-status-overdue {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}
/* Service-interval bar (2.4.104): how far a genset is through its
   current service interval, at a glance, under the card's readout.
   Derived live from the fleet service status - nothing is stored.
   The track is the input background so the unfilled remainder reads
   as "still to go" in the dark theme; fills use the same tones as
   the status pills above (and the fl-pill family). */
.svc-bar {
  margin-top: 10px;
}
.svc-bar-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--input-bg);
  overflow: hidden;
}
.svc-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}
.svc-bar-fill-ok {
  background: var(--success);
}
.svc-bar-fill-warn {
  background: var(--warning);
}
.svc-bar-fill-bad {
  background: var(--danger);
}
.svc-bar-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: 4px;
}
.svc-bar-label-ok {
  color: var(--success);
}
.svc-bar-label-warn {
  color: var(--warning);
}
.svc-bar-label-bad {
  color: var(--danger);
}
.asset-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.asset-card-actions button {
  flex: 1;
  padding: 11px 6px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}
.asset-card-actions button.asset-action-primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
.asset-card-actions button.asset-action-warn {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.4);
}
.asset-card-icon-btn {
  flex: 0 0 auto !important;
  width: 40px;
  font-size: 1rem !important;
}
.btn-manual-link {
  background: var(--card-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  /* Batch C (sweep D5): list contexts trimmed the padding and left
     these at 40.6px - hold the 44px tap floor whatever the padding. */
  min-height: 44px;
  padding: 14px 10px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
}
.btn-manual-link:hover,
.btn-manual-link:active {
  border-color: var(--success);
  color: var(--success);
  background: rgba(74, 222, 128, 0.05);
}
.manual-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-subfolder-toggle {
  width: 100%;
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 12px;
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  text-transform: uppercase;
}
.btn-subfolder-toggle.subfolder-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.proc-tab-container {
  display: none;
  background: #111827;
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 10px;
}
.btn-proc-tab {
  width: 100%;
  background: var(--card-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.btn-proc-tab:first-child {
  margin-top: 0;
}
.btn-proc-tab.tab-open {
  border-color: var(--primary);
  color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.proc-card {
  display: none;
  background: #0f172a;
  border: 1px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 14px;
  margin-bottom: 8px;
}
.proc-sub-sect {
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.proc-sub-sect span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: bold;
  text-transform: uppercase;
}
.proc-card ul {
  padding-left: 18px;
  font-size: var(--fs-sm);
  color: var(--text-main);
}
.proc-card li {
  margin-bottom: 4px;
}

.part-card {
  background: var(--card-dark);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--warning);
  margin-bottom: 10px;
}
.part-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.part-info h4 {
  font-size: var(--fs-lg);
  color: var(--text-main);
  margin-bottom: 4px;
  font-weight: 800;
}
.part-info p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.part-model {
  font-size: var(--fs-2xs);
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-2xs);
  text-transform: uppercase;
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}
/* The part's low-stock minimum, set on the card itself — the same field
   Fleet → Reorder carries (.fl-min in css/08). The input keeps a full
   44px tap target: it is a number a gloved thumb has to hit. */
.part-min {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.part-min input {
  width: 5.5rem;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
}
/* Unified parts row - one shared row shape/height used by both
           Stock List and Stock Check, so switching tabs (or scanning down
           a long list) never shows rows jumping between different sizes.
           .part-card becomes the flex row shell here; the two tabs only
           ever differ in what goes in .part-row-side. */
.part-card.part-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
}
.part-row-main {
  flex: 1;
  min-width: 0;
}
.part-row-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.part-row-sub {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.part-row-side {
  flex-shrink: 0;
  text-align: right;
}
/* Stock list rows (2.4.78): the clean row — name, part number, total,
   and a below-minimum note only when the part is below its minimum. */
.stock-list-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.stock-row-qty {
  font-weight: 700;
  font-size: var(--fs-lg);
}
.stock-row-note {
  display: block;
  color: var(--warning);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-top: 2px;
}
.stock-row-note-out {
  color: var(--danger);
}
.part-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.part-row-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-2xs);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.part-row-qty {
  width: 52px;
  text-align: center;
  padding: 6px 4px;
  font-weight: 700;
}
.part-row-check-btn {
  width: 90px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-muted);
  font-weight: 800;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  cursor: pointer;
}
.part-row-check-btn.is-checked {
  border-color: var(--success);
  color: var(--success);
  background: rgba(74, 222, 128, 0.1);
}
.parts-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.parts-toolbar input[type='text'] {
  flex: 1;
}
.parts-toolbar-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--warning);
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}
.parts-subtoolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.parts-subtoolbar button {
  flex: 1;
  height: 38px;
  padding: 0 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--card-dark);
  color: var(--text-main);
  cursor: pointer;
}
.parts-subtoolbar button.active-panel {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.08);
}
.equipment-card {
  background: var(--card-dark);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--success);
  margin-bottom: 10px;
}
.equipment-location-group {
  margin-bottom: 22px;
}
.equipment-location-heading {
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 2px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.btn-part-action {
  font-size: var(--fs-sm) !important;
  /* 14px sides made each button's min-content floor (longest word +
     28px padding) so wide that four buttons could not fit a phone-
     width card and the last one overflowed it. The label is centred;
     it never needed the wide padding. */
  padding: 9px 4px !important;
  min-height: 38px;
}
.equipment-card h4 {
  font-size: var(--fs-md);
  color: var(--text-main);
  margin-bottom: 2px;
  font-weight: 800;
}
.equipment-card .eq-model {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
}
.equipment-card .eq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: var(--fs-xs);
}
.equipment-card .eq-grid div span {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
}
.equip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.equip-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
  text-transform: uppercase;
  font-size: var(--fs-2xs);
  position: sticky;
  top: 0;
  background: var(--bg-dark);
}
.equip-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}
.equip-table-group-header td {
  background: var(--card-dark);
  font-weight: 800;
  font-size: var(--fs-sm);
  padding: 10px;
  border-bottom: 2px solid var(--border);
  white-space: normal;
}
.table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  white-space: normal;
}
.table-action-btn {
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 7px 11px;
  min-height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid;
  background: #111827;
  cursor: pointer;
}
.tower-card {
  background: var(--card-dark);
  padding: 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin-bottom: 10px;
}
.tower-card h4 {
  font-size: var(--fs-md);
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 800;
}
.tower-card .tw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: var(--fs-xs);
  margin-bottom: 8px;
}
.tower-card .tw-grid div span {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
}
.btn-part-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-part-action {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: #111827;
  color: var(--text-main);
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.btn-part-action:active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}
/* Four buttons (an admin looking at a placed part) cannot share one
   phone-width row: at the app's 14px label size the longest word,
   "Location", is ~60px wide on its own, and a quarter of the row is
   ~62px before padding and border. So a row with a fourth button
   wraps to two even rows of two instead of squeezing - the buttons
   get wider, never narrower, and nothing leaves the card. One, two
   and three buttons keep the single row above, untouched. */
.btn-part-actions:has(> .btn-part-action:nth-child(4)) {
  flex-wrap: wrap;
}
.btn-part-actions:has(> .btn-part-action:nth-child(4)) > .btn-part-action {
  flex: 1 1 40%;
}

@media (max-width: 600px) {
  /* Phones: tighter gutters, but ADDED to the safe-area insets. This rule
     used to be a bare 'padding: 12px', which on every phone overrode the
     inset-aware base rule - so the installed iPhone app drew the header
     under the clock and battery (reported on 2.3.63). */
  body {
    padding: calc(12px + var(--safe-top)) calc(12px + var(--safe-right))
      calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));
  }
  /* Paired fields (Time On / Time Off, Hours / Fuel) stay side by side.
     Stacking them to one column made every form look ragged on a phone. */
  .grid-2,
  .view-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .grid-3 input,
  .grid-3 select {
    padding-left: 8px;
    padding-right: 8px;
  }
  .form-group {
    margin-bottom: 10px;
  }
  input,
  select,
  textarea {
    padding: 12px;
    /* 16px is the floor. Smaller and iOS zooms the whole page on focus. */
    font-size: 16px;
  }
  .btn {
    padding: 14px;
    font-size: var(--fs-md);
  }
  .manual-grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  .btn-manual-link {
    font-size: 2.8vw !important;
    padding: 12px 6px;
    /* Manual names wrap onto a second line: the old nowrap + ellipsis
       clipped the middle out of longer names at phone width, leaving
       them unreadable (hardening phase 2, P2-2). The 44px tap floor
       comes from the base rule and still applies. */
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .action-tray {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Set up lists: a laptop-width admin screen. On a phone the table scrolls sideways. */
#setupSaveBtn[hidden],
#setupMatch[hidden] {
  display: none;
}
.setup-lead,
.setup-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 12px;
}
.setup-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.setup-kinds .btn-action {
  margin-bottom: 0;
  min-height: 48px;
}
.setup-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.setup-toolbar .btn-secondary {
  width: auto;
  margin-bottom: 0;
}
.setup-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.setup-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.setup-label {
  font-size: var(--fs-sm);
  font-weight: 800;
  margin: 16px 0 8px;
}
.setup-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.setup-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.setup-table {
  width: 100%;
  border-collapse: collapse;
}
.setup-table th,
.setup-table td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.setup-table th {
  position: sticky;
  top: 0;
  background: var(--card-dark);
  color: var(--text-muted);
  font-weight: 800;
}
.setup-table input,
.setup-table select {
  min-width: 8rem;
}
.setup-status {
  min-width: 14rem;
  line-height: 1.35;
}
.setup-bad {
  background: rgba(248, 113, 113, 0.12);
}
.setup-bad .setup-status {
  color: var(--danger);
}
.setup-update .setup-status {
  color: var(--warning);
}
.setup-add .setup-status {
  color: var(--success);
}
.setup-summary {
  font-weight: 800;
  margin: 14px 0 8px;
}
.setup-result {
  margin-top: 12px;
  line-height: 1.45;
}
.setup-result p {
  margin: 0 0 8px;
}
.setup-remove {
  width: auto;
  margin: 0;
  padding: 8px 10px;
}
@media (min-width: 900px) {
  .setup-kinds {
    grid-template-columns: repeat(4, 1fr);
  }
  .setup-form-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Asset types and test records (2.3.102). Night Shift tokens only.
   The Back control on other screens is a sticky pill. On these two it
   sat on top of the first field once the page moved. The bar stays
   put and the form scrolls in the body under it. */
.at-screen.active {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
}
.at-screen-bar {
  flex: none;
  background: var(--bg-dark);
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--border);
}
.at-screen-bar .btn.btn-back,
.at-screen-bar .btn.btn-back-fixed {
  position: static;
  top: auto;
  margin-bottom: 0 !important;
  z-index: auto;
}
.at-screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 2px 8px;
}

.at-h {
  color: #c7d2fe;
  font-size: var(--fs-sm);
  font-weight: 750;
  margin: 12px 0 6px;
}
.at-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--card-dark);
  border: 1px solid var(--border);
}
.at-copy {
  flex: 1;
  min-width: 0;
}
.at-copy b {
  display: block;
  font-weight: 750;
}
.at-copy span,
.at-test p {
  display: block;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}
.at-ico,
.at-ico-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.at-ico-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--primary-gradient);
  flex: none;
}
.at-sw {
  width: 46px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #243049;
  position: relative;
  flex: none;
  min-height: 0;
  padding: 0;
}
.at-sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbe3ff;
}
.at-sw.on {
  background: var(--primary-gradient);
}
.at-sw.on i {
  left: 21px;
  background: var(--on-accent);
}
.at-chips,
.at-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.at-chip,
.at-icon {
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.at-icon {
  width: 40px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.at-chip.on,
.at-icon.on {
  background: var(--primary-gradient);
  color: var(--on-accent);
  border-color: transparent;
}
.at-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 650;
}
.at-check input {
  width: 22px;
  height: 22px;
  min-height: 0;
}
.at-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.at-seg button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  font-weight: 750;
}
.at-seg button.on {
  background: var(--primary-gradient);
  color: var(--on-accent);
}
.at-locked,
.at-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.at-locked {
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--input-bg);
}
.at-test {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--card-dark);
  border: 1px solid var(--border);
}
.at-test-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.at-pass {
  color: var(--success);
  font-weight: 800;
}
.at-fail {
  color: var(--danger);
  font-weight: 800;
}
.asset-card.asset-card-other {
  border-left-color: var(--primary);
}
