:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --line: #d9e1e4;
  --text: #172125;
  --muted: #65747b;
  --accent: #087f7a;
  --accent-strong: #05635f;
  --danger: #b42318;
  --warning: #b76e00;
  --ok: #16703a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 14px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  border-color: #b7c3c7;
  background: #d7dee1;
  color: #6b787d;
  cursor: not-allowed;
}

button.secondary {
  background: #ffffff;
  color: var(--accent);
}

button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

input,
select {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}

input[type="checkbox"] {
  min-height: auto;
  width: auto;
  padding: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 22px;
}

.topbar h1,
.panel h2,
.table-head h2 {
  margin: 0;
}

.topbar h1 {
  font-size: 22px;
  font-weight: 650;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-strip,
.toolbar,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.band,
.panel,
.table-wrap,
.log-wrap,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toolbar {
  padding: 12px;
}

.toolbar .field {
  min-width: 260px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head h2 {
  font-size: 15px;
  font-weight: 650;
}

.panel-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.panel-subhead h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
}

.wide {
  width: 100%;
}

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  padding: 7px 9px;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.field-note code {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 11px;
}

.tag-select-table {
  table-layout: auto;
}

.tag-select-table th:first-child,
.tag-select-table td:first-child {
  width: 64px;
}

.tag-select-table tbody tr[data-slot] {
  cursor: pointer;
}

.tag-select-table tbody tr[data-slot]:hover {
  background: #f2f5f6;
}

.tag-select-table tbody tr.is-empty {
  color: var(--muted);
  cursor: default;
}

.tag-select-table tbody tr.is-empty td {
  white-space: normal;
}

.tag-select-table tbody tr.is-selected {
  background: #e8f3f1;
}

.tag-select-table .mask-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* The tab strip and the active tab's content form one card: the active button
   sits 1px lower than the strip so its bottom edge paints over the divider. */
.tab-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #f2f5f6;
  padding: 8px 10px 0;
}

.tab-bar .tab-button {
  flex: 0 0 auto;
  min-height: 38px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-weight: 650;
  white-space: nowrap;
}

.tab-bar .tab-button:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.tab-bar .tab-button.is-active {
  border-color: var(--line);
  border-bottom-color: var(--surface);
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 2px 0 var(--accent);
}

.field-note {
  margin: -6px 0 0;
  border-left: 3px solid var(--warning);
  background: #fff8ec;
  padding: 8px 10px;
  color: #7a4f06;
  font-size: 12px;
  line-height: 1.5;
}

.tab-badge {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--warning);
  color: #ffffff;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.tab-body {
  padding: 16px;
}

.tab-panel {
  display: grid;
  gap: 14px;
}

/* Blocks inside a tab share the card surface, so they drop their own frame and
   are separated by dividers instead. */
.tab-body .panel,
.tab-body .table-wrap {
  border: none;
  border-radius: 0;
  background: transparent;
}

.tab-body .panel {
  padding: 0;
}

.tab-body .table-head {
  padding: 0 0 12px;
}

.tab-body .tab-panel > * + * {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.tab-body .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.tab-body .grid > .panel {
  padding: 0 18px;
}

.tab-body .grid > .panel:nth-child(odd) {
  padding-left: 0;
}

.tab-body .grid > .panel:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-right: 0;
}

.tab-body .grid > .panel:nth-child(n + 3) {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hidden {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.pill.neutral {
  background: #edf2f4;
  color: #44535a;
}

.pill.ok {
  background: #e8f5ed;
  color: var(--ok);
}

.pill.warn {
  background: #fff3dc;
  color: var(--warning);
}

.pill.danger {
  background: #fee4e2;
  color: var(--danger);
}

.antenna-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
}

.antenna {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfc;
}

.antenna strong {
  display: block;
  margin-bottom: 4px;
}

.table-wrap,
.log-wrap {
  min-height: 320px;
  overflow: hidden;
}

.table-head {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  background: #f2f5f6;
  color: #4a5960;
  font-size: 12px;
  font-weight: 700;
}

th:first-child,
td:first-child {
  width: 30%;
}

.log-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 14px;
}

.log-wrap.is-collapsed {
  min-height: 0;
}

#toggle-log {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.log-wrap .check-row {
  justify-content: flex-end;
}

.log-wrap .check-row label {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.log-list {
  min-height: 240px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101819;
  color: #e7eff0;
  padding: 10px;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.log-row {
  margin-bottom: 7px;
  line-height: 1.4;
}

.log-row .time {
  color: #8fb1b2;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.login-panel h1 {
  margin: 0;
  font-size: 24px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.error-text {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

/* ---------------------------------------------------------------- shadow */

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.device-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.device-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.device-card.is-selected {
  outline: 2px solid var(--accent);
}

.device-card.state-online { border-left-color: var(--ok); }
.device-card.state-stale { border-left-color: var(--warning); }
.device-card.state-offline { border-left-color: var(--danger); }
.device-card.state-unknown { border-left-color: #9aa7ac; }

.device-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.device-card .card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.device-card .card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.device-card .metric {
  display: grid;
  gap: 1px;
}

.device-card .metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.device-card .metric b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.device-card .card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

/* Reader has four antenna ports; ports without an antenna are shown greyed out
   (loss >= 15 dB on the device) instead of hidden, so a cable that fell off is
   visible as a change. */
.antenna.is-off {
  color: var(--muted);
  background: #f2f5f6;
  border-style: dashed;
}

.antenna.is-off strong {
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  background: #9aa7ac;
  vertical-align: middle;
}

.dot.online { background: var(--ok); }
.dot.stale { background: var(--warning); }
.dot.offline { background: var(--danger); }

.pill.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cmd-list {
  display: grid;
  gap: 6px;
}

#recent-list,
#device-restarts-list {
  max-height: 220px;
  overflow-y: auto;
  align-content: start;
  padding-right: 2px;
}

#pending-list {
  max-height: 96px;
  overflow-y: auto;
  align-content: start;
}

.cmd-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
  padding: 6px 10px;
  font-size: 12px;
}

.cmd-row .cmd-name {
  font-weight: 700;
}

.cmd-row .cmd-msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.cmd-row .cmd-time {
  color: var(--muted);
  white-space: nowrap;
}

.pill.small {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}

.bars .bar {
  flex: 1 1 0;
  min-width: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  position: relative;
}

.bars .bar:hover {
  background: var(--accent-strong);
}

.bars .bar.is-empty {
  background: #e4eaec;
}

.bars-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.filters .button-row {
  grid-column: 1 / -1;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}

.pager button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.empty-note {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: 420px;
  border-radius: 8px;
  background: #172125;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.toast.danger {
  background: var(--danger);
}

.toast.ok {
  background: var(--ok);
}

.tags-table th:first-child,
.tags-table td:first-child {
  width: 34%;
}

/* ----------------------------------------------------------- device tab */

.small-note {
  font-size: 12px;
}

.device-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: start;
}

.device-bar-left {
  padding: 0;
  align-items: end;
}

.device-bar-left .field {
  min-width: 240px;
  max-width: 320px;
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-bottom: 3px;
}

/* Renderers reassign className on these pills, so size them by container
   rather than relying on the .small class surviving. */
.pill-stack .pill,
.cfg-pills .pill {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.pill-stack #device-state-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.device-bar-right {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.device-bar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 12px;
  min-height: 16px;
}

.device-bar-meta #control-note:not(:empty) {
  color: var(--warning);
  font-weight: 600;
}

.reader-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: start;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.stat-strip .stat {
  padding: 5px 8px;
}

.stat-strip .stat-label {
  font-size: 10px;
}

.stat-strip .stat-value {
  font-size: 13px;
}

.antenna-block {
  display: grid;
  gap: 6px;
  min-width: 360px;
}

.antenna-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.antenna-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.antenna-head .muted {
  font-size: 11px;
}

.reader-band .antenna-list {
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 6px;
}

.reader-band .antenna {
  padding: 5px 8px;
  font-size: 12px;
}

.reader-band .antenna strong {
  margin-bottom: 1px;
  font-size: 12px;
}

.reader-band .antenna span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.cfg-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.cfg-card[open] {
  background: var(--surface);
}

.cfg-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cfg-card > summary::-webkit-details-marker {
  display: none;
}

.cfg-card > summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 12px;
  margin-right: 8px;
  transition: transform 0.15s;
}

.cfg-card[open] > summary::before {
  transform: rotate(90deg);
}

.cfg-card > summary:hover {
  background: #f2f5f6;
  border-radius: 8px;
}

.cfg-card[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.cfg-title {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 650;
}

.cfg-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.cfg-body {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
}

.cfg-body .button-row button {
  min-height: 32px;
}

.control-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-grid .span-2 {
  grid-column: span 2;
}

.control-grid .span-3 {
  grid-column: span 3;
}

.ant-settings-table {
  table-layout: fixed;
}

.ant-settings-table th,
.ant-settings-table td {
  padding: 4px 6px;
  border-bottom: none;
}

.ant-settings-table th {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  padding-bottom: 2px;
}

.ant-settings-table th:first-child,
.ant-settings-table td:first-child {
  width: 22%;
  padding-left: 0;
  font-weight: 600;
  font-size: 12px;
}

.ant-settings-table input {
  min-height: 30px;
}

.inset-table {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab-body .inset-table {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 0 24px;
  align-items: start;
}

.split-grid > .table-wrap {
  min-height: 280px;
}

.commands-panel {
  border-left: 1px solid var(--line) !important;
  padding-left: 24px !important;
}

.commands-panel .panel-head {
  padding-bottom: 0;
}

.commands-panel #recent-list {
  max-height: 200px;
}

.commands-panel #device-restarts-list {
  max-height: 220px;
}

@media (max-width: 1100px) {
  .device-bar,
  .reader-band {
    grid-template-columns: 1fr;
  }

  .device-bar-right {
    justify-items: start;
  }

  .device-bar-meta {
    justify-content: flex-start;
  }

  .antenna-block {
    min-width: 0;
  }

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

  .commands-panel {
    margin-top: 18px;
    border-left: none !important;
    border-top: 1px solid var(--line);
    padding-left: 0 !important;
    padding-top: 18px;
  }
}

.history-table th:first-child,
.history-table td:first-child,
.restarts-table th:first-child,
.restarts-table td:first-child {
  width: 18%;
}

.overview-head {
  flex-wrap: wrap;
  gap: 12px;
}

.overview-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-filter {
  min-width: 160px;
}

.admin-meta-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-meta-strip .inline-filter {
  min-width: 210px;
}

.card-title-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.card-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

button.danger-text {
  color: var(--danger);
  border-color: #f3c6c2;
}

button.danger-text:hover {
  background: #fef3f2;
  color: var(--danger);
}

.account-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

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

  .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .control-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-grid .span-3 {
    grid-column: span 2;
  }

  .cmd-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .grid,
  .tab-body .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  /* Stacked columns swap the vertical divider for a horizontal one. */
  .tab-body .grid > .panel:nth-child(n) {
    border-left: none;
    padding: 0;
  }

  .tab-body .grid > .panel:nth-child(n + 2) {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}
