/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-bg:     #0f172a;
  --sidebar-text:   #94a3b8;
  --sidebar-active: #3b82f6;
  --sidebar-hover:  #1e293b;
  --brand-color:    #3b82f6;

  --bg:             #f1f5f9;
  --surface:        #ffffff;
  --border:         #e2e8f0;
  --text:           #1e293b;
  --text-muted:     #64748b;

  --green:          #22c55e;
  --red:            #ef4444;
  --yellow:         #f59e0b;
  --blue:           #3b82f6;

  --radius:         8px;
  --shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ---- Layout ---- */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #1e293b;
}

.brand-icon {
  width: 30px; height: 30px;
  background: var(--brand-color);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 14px;
  color: #f1f5f9;
  letter-spacing: .01em;
}

.sidebar-section {
  padding: 16px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
}

.sidebar-nav {
  list-style: none;
  padding: 8px 8px;
}

.sidebar-nav li { margin: 2px 0; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  transition: background .12s, color .12s;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: #f1f5f9;
}

.sidebar-nav a.active {
  background: #1d4ed8;
  color: #fff;
}

.sidebar-nav .icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

/* ---- Main content ---- */
.main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-header h1 {
  font-size: 18px;
  font-weight: 600;
}

.content {
  padding: 24px 28px;
  flex: 1;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 18px; }

/* ---- Stat grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Tables ---- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

tbody td {
  padding: 11px 14px;
  vertical-align: middle;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-gray   { background: #f1f5f9; color: #475569; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
  line-height: 1;
}

.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2563eb; }

.btn-danger   { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-outline  { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: #f8fafc; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .12s;
  outline: none;
}

.form-control:focus { border-color: var(--blue); }

/* ---- Alert ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid;
}

.alert-error   { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.alert-success { background: #dcfce7; border-color: #86efac; color: #15803d; }
.alert-info    { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }

/* ---- Key copy box ---- */
.key-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

.key-box code { flex: 1; }

/* ---- Misc ---- */
.text-muted { color: var(--text-muted); }
.text-mono  { font-family: ui-monospace, monospace; font-size: 12px; }
.mb-4       { margin-bottom: 16px; }
.mb-6       { margin-bottom: 24px; }
.gap-3      { gap: 12px; }
.flex       { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Sidebar footer / user ---- */
.sidebar-footer {
  margin-top: auto;
  padding: 8px 8px 16px;
  border-top: 1px solid #1e293b;
}
.sidebar-user {
  padding: 8px 10px 6px;
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  transition: background .12s;
}
.sidebar-signout:hover { background: var(--sidebar-hover); color: #f1f5f9; }

/* ---- View toggle (admin/consumer) ---- */
.view-toggle {
  display: flex;
  gap: 4px;
  margin: 12px 12px 4px;
  padding: 3px;
  background: #1e293b;
  border-radius: 8px;
}
.view-toggle a {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.view-toggle a.on {
  background: var(--brand-color);
  color: #fff;
}

/* ---- Donut chart ---- */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.donut-legend .count { font-weight: 700; margin-left: auto; padding-left: 16px; }

/* ---- Port grid ---- */
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.port-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.port-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.port-tile.available::before { background: var(--green); }
.port-tile.in_use::before    { background: var(--blue); }
.port-tile.used::before      { background: var(--text-muted); }
.port-tile.rotating::before  { background: var(--yellow); }

.port-tile .port-no { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.port-tile .port-num { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
.port-tile .port-meta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ---- Bar chart (daily usage) ---- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 8px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.bar {
  width: 100%;
  max-width: 28px;
  background: var(--blue);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: background .12s;
  position: relative;
}
.bar-col:hover .bar { background: #2563eb; }
.bar-val { font-size: 10px; font-weight: 700; color: var(--text); }
.bar-label { font-size: 10px; color: var(--text-muted); }

/* ---- Usage bar (SIM bank) ---- */
.usage-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.usage-seg { height: 100%; transition: width .3s; }
.usage-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.usage-legend .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---- Module grid ---- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 10px;
}
.module-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.module-no { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.module-bar {
  width: 100%;
  height: 44px;
  background: #f1f5f9;
  border-radius: 4px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}
.module-count { font-size: 10px; color: var(--text-muted); font-family: ui-monospace, monospace; }

/* ---- Consumer key box ---- */
.key-revoked { opacity: .55; }

/* ---- Pagination bar ---- */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.pagination-bar .page-info { color: var(--text-muted); }
.pagination-bar .page-controls { display: flex; align-items: center; gap: 8px; }
.pagination-bar select { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }

/* ---- SIM map grid ---- */
.sim-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.sim-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sim-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
}
/* Consumer footer (ABN etc.) */
.app-footer { text-align: center; color: var(--text-muted); font-size: 12px; padding: 18px; border-top: 1px solid var(--border); margin-top: 12px; }

/* Dual local/international number cell (admin + consumer tables) */
.num-cell { white-space: nowrap; line-height: 1.35; }
.num-cell .num-local { display: block; font-weight: 600; }
.num-cell .num-intl-sm { display: block; font-size: 11px; color: var(--text-muted); }

.sim-dot.sold-no  { background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e); }
/* Already sold the selected service. Struck through as well as grey, so it differs from the
   palest wear level by SHAPE and not only by hue - slate and pale sky blue are close at 16px,
   and indistinguishable for blue-yellow colour blindness. */
.sim-dot.sold-yes { background:
    linear-gradient(135deg, transparent 43%, #475569 43%, #475569 57%, transparent 57%),
    radial-gradient(circle at 30% 30%, #cbd5e1, #94a3b8); }
.sim-dot.bad      { background: radial-gradient(circle at 30% 30%, #f87171, #dc2626); }
.sim-dot.noslot   { background: #fff; border: 2px dotted #94a3b8; }
/* A SIM we have actually seen in the slot, still without a number. */
.sim-dot.nonum    { background: radial-gradient(circle at 30% 30%, #fcd34d, #f59e0b); }
/* Never observed. The gateway can only read the slot its module is currently on, so most
   of the board is genuinely unknown - render that as absence of data, not as a SIM. */
.sim-dot.unknown  { background: #eef2f6; border: 1px dashed #cbd5e1; }

/* An OTP is usually 6 digits but can be a whole verification link for services that verify
   by URL. Cap it and let it wrap so one long value cannot blow a table row out sideways. */
.otp-cell { max-width: 280px; overflow-wrap: anywhere; word-break: break-word; }

/* Port heatmap: one cell per slot, shaded by that SIM's combined AUD earnings. The scale is
   relative to the best earner on the board, so it stays readable at any absolute scale. */
.heat-cell { display:inline-block; width:17px; height:17px; border-radius:4px; cursor:pointer;
             text-decoration:none; transition:transform .08s ease; }
a.heat-cell:hover { transform:scale(1.35); box-shadow:0 0 0 2px rgba(59,130,246,.5); }
.heat-swatch { display:inline-block; width:13px; height:13px; border-radius:3px; vertical-align:-2px; margin-right:4px; }
.heat-0, .heat-swatch.heat-0 { background:#e8edf3; }
.heat-1, .heat-swatch.heat-1 { background:#bbf7d0; }
.heat-2, .heat-swatch.heat-2 { background:#fde68a; }
.heat-3, .heat-swatch.heat-3 { background:#fb923c; }
.heat-4, .heat-swatch.heat-4 { background:#dc2626; }
.heat-empty, .heat-swatch.heat-empty { background:#fff; border:1px dashed #cbd5e1; }
table.heat-map td { padding:2px 3px; }
table.heat-map th { font-size:10px; }

/* Simple in-card tab row (reuse list: ready vs resting) */
.tab-row { display:flex; gap:4px; border-bottom:1px solid var(--border); margin:6px 0 12px; flex-wrap:wrap; }
.tab-row .tab { padding:7px 13px; font-size:12px; font-weight:600; color:var(--text-muted);
                text-decoration:none; border-bottom:2px solid transparent; }
.tab-row .tab:hover { color:var(--text); }
.tab-row .tab.active { color:var(--blue); border-bottom-color:var(--blue); }

/* An observation we have not re-checked recently. The device can only read the slot each
   module sits on, so a card pulled from any other slot goes unnoticed - these are shown
   drained rather than asserted, and a per-port re-verify sweep refreshes them. */
.sim-dot.is-stale { opacity: .38; }

.sim-map-wrap { overflow-x: auto; }
table.sim-map {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}
table.sim-map th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 4px;
  border: none;
  text-transform: none;
  letter-spacing: 0;
}
table.sim-map td {
  text-align: center;
  padding: 5px 4px;
  border: none;
}
table.sim-map tbody tr:hover { background: #f8fafc; }
table.sim-map .slot-label {
  color: var(--text-muted);
  font-size: 11px;
  font-family: ui-monospace, monospace;
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}

/* ---- Responsive two-column layout helper ---- */
.cols-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

/* ---- Mobile top bar + drawer (hidden on desktop) ---- */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 860px) {
  /* Top bar with hamburger */
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sidebar-bg);
    padding: 10px 14px;
    color: #f1f5f9;
  }
  .mobile-topbar .hamburger {
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
  }
  .mobile-topbar .mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
  .mobile-topbar .brand-icon { width: 26px; height: 26px; font-size: 13px; }

  /* Sidebar becomes an off-canvas drawer */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .22s ease;
    width: 240px;
    z-index: 100;
    box-shadow: 2px 0 18px rgba(0, 0, 0, .28);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 90;
  }

  .main { margin-left: 0; }
  .content { padding: 16px; }
  .page-header { padding: 14px 16px; }
  .page-header h1 { font-size: 16px; }

  /* Stack any fixed two-column grids */
  .cols-2 { grid-template-columns: 1fr; }

  .pagination-bar { flex-wrap: wrap; }
  .usage-legend { flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 420px) {
  .stat-value { font-size: 24px; }
  .page-actions-wrap { font-size: 12px; }
}

/* ---- Phones: keep tiles/cards from getting cut off or overflowing ---- */
@media (max-width: 560px) {
  .content { padding: 12px; }
  .page-header { flex-wrap: wrap; row-gap: 8px; }
  .card-header { flex-wrap: wrap; row-gap: 8px; }
  .card-body { padding: 14px; }

  /* Stat + tile grids: smaller minimums so 2 fit per row instead of overflowing */
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
  .stat-card { padding: 12px 14px; }
  .stat-value { font-size: 22px; }
  .port-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .module-grid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
  .port-tile { min-width: 0; }
  .port-no, .port-num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Service marketplace: wrap the toolbar, hide the "from" label, shrink the buy button */
  .svc-toolbar { flex-wrap: wrap; }
  .svc-search-wrap { flex: 1 1 100%; }
  .svc-toolbar #country-select { width: 100%; }
  .svc-item { gap: 10px; padding: 10px; }
  .svc-price .from { display: none; }
  .svc-buy { width: 34px; height: 34px; font-size: 15px; }
}

/* ---- Service x country price grid (admin Pricing + a user's overrides) ----
   One row per service, one column per country, plus the "all countries" base column that
   every blank country box falls back to. Inputs sit inline so a whole price list stays
   scannable at a glance rather than becoming a column of labelled form groups. */
table.price-grid td { padding: 6px 10px; vertical-align: middle; }
table.price-grid thead th { padding: 8px 10px; white-space: nowrap; }
table.price-grid tbody tr:hover { background: #f8fafc; }
.price-cell { display: flex; align-items: center; gap: 5px; }
.price-cell .form-control { max-width: 96px; padding: 6px 8px; font-size: 13px; }
/* A blank box means "inherit", and its placeholder shows the figure being inherited - so it
   is deliberately lighter than a typed price, which is an explicit decision. */
.price-cell .form-control::placeholder { color: #b6c2d1; }

/* ---- SIM wear gradient (SIM map) ----
   How many distinct services a SIM has sold. Level 0 keeps the existing fresh green; levels 1-6
   darken MONOTONICALLY through blue into deep violet, so the order still reads in greyscale and
   for red-green colour blindness. The ramp deliberately avoids red (bad SIM), amber (no number
   yet) and grey (already sold the selected service), which all mean something else here. */
.sim-dot.use-0 { background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e); }
.sim-dot.use-1 { background: radial-gradient(circle at 30% 30%, #bae6fd, #7dd3fc); }
.sim-dot.use-2 { background: radial-gradient(circle at 30% 30%, #7dd3fc, #38bdf8); }
.sim-dot.use-3 { background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6); }
.sim-dot.use-4 { background: radial-gradient(circle at 30% 30%, #818cf8, #4f46e5); }
.sim-dot.use-5 { background: radial-gradient(circle at 30% 30%, #8b5cf6, #6d28d9); }
.sim-dot.use-6 { background: radial-gradient(circle at 30% 30%, #6b21a8, #3b0764); }
/* Numbered SIMs are links to the SIM's own page, like numbers everywhere else in admin. */
a.sim-dot { cursor: pointer; transition: transform .08s ease; }
a.sim-dot:hover { transform: scale(1.35); box-shadow: 0 0 0 2px rgba(59,130,246,.45); }
.wear-legend { display: flex; align-items: flex-end; gap: 2px; flex-wrap: wrap; }
.wear-step { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; }
.wear-step .sim-dot { width: 100%; height: 10px; border-radius: 3px; }
.wear-step .wear-label { font-size: 11px; color: var(--text); font-weight: 600; }
.wear-step .wear-count { font-size: 10px; color: var(--text-muted); }
