:root {
  --ink: #182d31;
  --muted: #536b6d;
  --teal: #086858;
  --border: #dce5e2;
  --surface: #fff;
  --bg: #f3f6f4;
  --side: #122e32;
  --focus: #087a67;
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.small {
  width: 15px;
  height: 15px;
}
.skip {
  position: fixed;
  inset-inline-start: 12px;
  top: -100px;
  background: white;
  color: var(--teal);
  padding: 9px 16px;
  z-index: 9;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(27px, 3.1vw, 39px);
  letter-spacing: -0.045em;
  line-height: 1.45;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.btn,
.icon-btn,
.text-link,
.action-option,
.brand,
.profile,
.panel-head,
.topbar,
.crumb,
.sync-area,
.device-name,
.chip,
.scope-banner,
.filters,
.title-with-icon {
  display: flex;
  align-items: center;
}
.btn,
.icon-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  justify-content: center;
  border-radius: 9px;
  min-height: 42px;
}
.btn {
  gap: 8px;
  padding: 8px 17px;
  font-weight: 650;
}
.btn:hover,
.icon-btn:hover,
.action-option:hover {
  background: #f3f8f5;
  border-color: #abc3bc;
}
.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.btn.primary:hover {
  background: #075848;
}
.btn.danger {
  background: #963e3c;
  color: white;
  border-color: #963e3c;
}
.btn.full {
  width: 100%;
}
.btn:disabled,
.icon-btn:disabled,
.action-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.icon-btn {
  width: 39px;
  min-height: 39px;
  flex: 0 0 auto;
}
.icon-btn .icon {
  width: 17px;
  height: 17px;
}
.text-link {
  gap: 7px;
  font-weight: 650;
  font-size: 13px;
  color: var(--teal);
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}
.error {
  padding: 10px 14px;
  border: 1px solid #edc5bf;
  background: #fbefec;
  color: #8d302b;
  border-radius: 8px;
}
.brand {
  gap: 10px;
  width: max-content;
  font:
    650 24px/1 'Segoe UI',
    Arial,
    sans-serif;
  letter-spacing: -1.3px;
}
.brandmark {
  height: 39px;
  width: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #b6f3d3;
  color: #143638;
}
.brandmark svg {
  width: 28px;
  height: 28px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  inset-block-start: 0;
  background: var(--side);
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 15px;
}
.sidebar > .brand {
  align-self: flex-start;
  margin-inline: 9px;
}
.side-intro {
  color: #acc3c0;
  font-size: 13px;
  margin: 12px 10px 41px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  padding: 11px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  font-weight: 550;
  color: #d5e3df;
  border: 1px solid transparent;
}
.sidebar nav a .icon {
  width: 18px;
  height: 18px;
}
.sidebar nav a.active {
  color: #c6f6de;
  background: #25484a;
  border-color: #365957;
}
.sidebar nav a:hover {
  background: #224247;
}
.sidebar :focus-visible {
  outline-color: #b6f3d3;
}
.profile {
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid #315051;
  padding: 19px 4px 0;
}
.profile-avatar {
  background: #234747;
  border: 1px solid #41625e;
  border-radius: 11px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #aeefd1;
  flex: none;
}
.profile > div {
  display: grid;
  min-width: 0;
  flex: 1;
}
.profile strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile small {
  color: #b2c8c4;
}
.light {
  background: transparent;
  border-color: #3b595b;
  color: #d9e9e3;
}
.light:hover {
  background: #25494a;
  border-color: #627e78;
}
.content {
  min-width: 0;
}
.topbar {
  min-height: 65px;
  justify-content: space-between;
  gap: 15px;
  padding: 12px clamp(18px, 3.8vw, 64px);
  border-bottom: 1px solid var(--border);
  background: white;
}
.crumb,
.sync-area {
  gap: 10px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
}
.sync-area {
  font-size: 12px;
}
.sync-area .icon-btn {
  min-height: 31px;
  width: 31px;
  border-radius: 7px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px clamp(18px, 3.8vw, 64px) 50px;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading .muted {
  margin-top: 3px;
}
.date {
  color: var(--teal);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 2px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 19px;
}
.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
}
.metric {
  padding: 18px 18px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.metric dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.metric dd {
  margin: 0;
  grid-row: 2;
  grid-column: 1/3;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.15;
  font-size: 37px;
  font-variant-numeric: tabular-nums;
}
.metric dl {
  display: contents;
}
.tile {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.tile .icon {
  width: 19px;
  height: 19px;
}
.tile.mint {
  background: #e1f4e9;
  color: #177457;
}
.tile.blue {
  background: #e7eef7;
  color: #3e688d;
}
.tile.gray {
  background: #eef1ef;
  color: #5a6d66;
}
.tile.amber {
  background: #fcf0d9;
  color: #8d6419;
}
.tile.dark {
  background: #284d4c;
  color: #bbf1d3;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(245px, 0.86fr);
  gap: 17px;
  align-items: start;
}
.columns.single {
  grid-template-columns: minmax(0, 1fr);
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  justify-content: space-between;
  gap: 10px;
  padding: 18px 21px;
}
.panel-head .muted {
  font-size: 13px;
  margin-top: 2px;
}
.actions {
  background: #193d3f;
  color: white;
  border-color: #193d3f;
}
.actions .panel-head .muted {
  color: #c4d6d1;
}
.actions #action-list {
  padding: 0 15px 14px;
  display: grid;
  gap: 6px;
}
.action-option {
  position: relative;
  width: 100%;
  border: 1px solid #3c605d;
  border-radius: 9px;
  gap: 10px;
  padding: 9px 12px;
  text-align: start;
  font-size: 14px;
  font-weight: 600;
  background: #244949;
  color: #ecf5f0;
}
.action-option:hover {
  background: #305855;
  border-color: #719187;
}
.action-option .icon:last-child {
  margin-inline-start: auto;
  width: 14px;
  color: #c0d8ce;
}
.action-option:focus-visible {
  outline-color: #b6f3d3;
}
.history {
  margin-top: 19px;
}
.chip {
  display: inline-flex;
  gap: 5px;
  padding: 2px 8px;
  min-height: 24px;
  border-radius: 20px;
  width: max-content;
  max-width: 100%;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.chip.good {
  color: #116b4f;
  background: #e2f3e9;
}
.chip.neutral {
  background: #edf1ef;
  color: #52645e;
}
.chip.warn {
  background: #faf0d9;
  color: #835c12;
}
.chip.bad {
  background: #f9e8e4;
  color: #963f35;
}
.device-name,
.title-with-icon {
  gap: 9px;
}
.device-name > span,
.title-with-icon > span {
  min-width: 0;
}
.device-name .tile,
.title-with-icon .tile {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.device-name strong,
.title-with-icon strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.device-name small,
.title-with-icon small {
  display: block;
}
.device-link,
.row-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0;
  text-align: start;
}
.device-link:hover,
.row-link:hover {
  color: var(--teal);
  text-decoration: underline;
}
.delivery-detail {
  display: block;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 13px;
}
th,
td {
  text-align: start;
  padding: 11px 17px;
  vertical-align: middle;
}
th {
  background: #f6f8f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-block: 1px solid var(--border);
}
td {
  border-bottom: 1px solid #e9efeb;
}
tr:last-child td {
  border-bottom: 0;
}
.empty {
  padding: 24px 18px 32px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 5px;
}
.empty .tile {
  background: #eff5f2;
  color: #64877a;
  margin-bottom: 3px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 390px;
}
.filters {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 15px;
}
.filters select {
  width: auto;
  max-width: 100%;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 0 10px;
  flex: 1;
  min-width: 180px;
}
.search .icon {
  width: 16px;
}
.search input {
  background: transparent;
  border: 0;
  padding: 7px 0;
  min-height: 35px;
}
.search:focus-within {
  outline: 2px solid var(--focus);
}
.search input:focus-visible {
  outline: 0;
}
.filters select {
  min-height: 37px;
  padding: 5px 9px;
}
.search input::-webkit-search-cancel-button {
  cursor: pointer;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
}
label small {
  font-weight: 400;
}
input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #bfcfca;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #687c78;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
form {
  display: grid;
  gap: 15px;
}
form small,
.form-note {
  font-size: 13px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.footer-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
}
.detail-actions {
  margin-top: 16px;
}
.detail-actions .btn {
  font-size: 13px;
}
.scope-banner {
  background: #edf5ef;
  color: #255a4b;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.scope-banner .icon {
  width: 16px;
}
.details {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  margin: 13px 0;
  border-block-start: 1px solid var(--border);
}
.details dt,
.details dd {
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.details dt {
  color: var(--muted);
}
.pair-code {
  display: block;
  direction: ltr;
  text-align: center;
  background: #e4f5e9;
  color: #155b43;
  border: 1px dashed #7cae90;
  border-radius: 10px;
  font:
    700 34px/1.6 Consolas,
    monospace;
  letter-spacing: 0.17em;
  padding: 8px;
}
.recovery-code {
  font-size: clamp(21px, 7vw, 34px);
  letter-spacing: 0.1em;
}
.flow {
  display: grid;
  gap: 14px;
}
.plain-list {
  padding-inline-start: 22px;
  margin: 0;
  display: grid;
  gap: 4px;
}
.mono {
  font-family: Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}
dialog {
  width: min(512px, calc(100% - 24px));
  max-height: calc(100dvh - 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 20px 80px #0c292642;
}
dialog::backdrop {
  background: #102b2bb0;
}
.dialog-head {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 21px;
  border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
  font-size: 21px;
}
#dialog-body {
  padding: 19px 21px 23px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  background: #133c34;
  color: white;
  border-radius: 9px;
  padding: 11px 18px;
  width: max-content;
  max-width: calc(100% - 30px);
  box-shadow: 0 8px 24px #18352e24;
  text-align: center;
}
.entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 80% 0, #e1eee5 0, transparent 58%), #f3f6f1;
}
.login-wrap {
  background: white;
  border: 1px solid #cfddd5;
  box-shadow: 0 20px 65px #193d3712;
  border-radius: 22px;
  width: min(935px, 100%);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 61px);
  align-items: stretch;
  grid-column: 1;
  grid-row: 1;
}
.login-card > .tile {
  margin-bottom: 12px;
}
.login-card h1 {
  font-size: 31px;
}
.login-card > .muted {
  margin: 4px 0 20px;
}
.login-art {
  grid-column: 2;
  grid-row: 1;
  min-height: 430px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 72%, #2c5551 0, transparent 54%),
    linear-gradient(140deg, #12383a 0%, #183c3c 65%, #102e32 100%);
  color: #e5f6e9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}
.login-art:before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, #c0f7da 1px, transparent 1.3px);
  background-size: 15px 15px;
}
.login-art .brand,
.art-foot {
  position: relative;
  z-index: 1;
}
.art-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #cce9d9;
}
.beam {
  width: 25px;
  height: 2px;
  background: #a7e9c5;
}
.map-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-art:before {
  content: '';
  width: 109%;
  height: 68%;
  position: absolute;
  top: 52%;
  left: -4%;
  transform: perspective(250px) rotateX(60deg) rotateZ(-13deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, #90bdaa30 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 27px, #90bdaa30 28px 29px);
  mask-image: radial-gradient(ellipse, #000 20%, transparent 69%);
}
.kiosk {
  position: absolute;
  width: 76px;
  height: 128px;
  border: 2px solid #73a995;
  border-radius: 9px;
  background: linear-gradient(135deg, #315f54, #1b4841);
  transform: skewY(-12deg);
  box-shadow:
    5px 5px 0 #153c37,
    6px 6px 0 #518977;
}
.kiosk:before {
  content: '';
  position: absolute;
  inset: 8px 7px 24px;
  background: linear-gradient(135deg, #4f8876, #315e54);
  border: 1px solid #78aa96;
  border-radius: 4px;
}
.kiosk:after {
  content: '';
  position: absolute;
  width: 40%;
  height: 2px;
  background: #7cad95;
  bottom: 12px;
  left: 30%;
}
.kiosk.front {
  left: 40%;
  top: 34%;
  width: 88px;
  height: 151px;
  border-color: #b1edcc;
  background: linear-gradient(145deg, #b0e7c7, #71b69e);
  box-shadow:
    6px 6px 0 #2d6659,
    8px 8px 0 #8dc4ab;
  z-index: 1;
}
.kiosk.front:before {
  border-color: #568e76;
  background: linear-gradient(140deg, #356b5b, #19453e);
}
.kiosk.front span {
  position: absolute;
  top: 35px;
  left: 24px;
  width: 35px;
  height: 35px;
  border: 2px solid #9ee1bd;
  border-radius: 8px;
}
.kiosk.front span:after {
  content: '';
  position: absolute;
  top: 8px;
  left: 9px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #abecc6;
  border-bottom: 2px solid #abecc6;
  transform: rotate(-45deg);
}
.kiosk.back {
  left: 15%;
  top: 46%;
  transform: scale(0.75) skewY(-12deg);
  opacity: 0.82;
}
.kiosk.far {
  left: 72%;
  top: 24%;
  transform: scale(0.67) skewY(-12deg);
  opacity: 0.72;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .metric {
    padding: 20px 23px;
  }
  .columns {
    grid-template-columns: minmax(0, 2fr) minmax(286px, 0.8fr);
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 183px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  }
  main {
    padding-inline: 20px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .metric {
    padding: 12px;
  }
  .metrics {
    gap: 8px;
  }
  .panel-head {
    padding-inline: 15px;
  }
  td,
  th {
    padding-inline: 11px;
  }
}
@media (max-width: 950px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions #action-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .actions .panel-head {
    padding-block: 13px;
  }
  .actions .panel-head .tile {
    display: none;
  }
  .action-option {
    font-size: 13px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    grid-template-columns: 1fr auto auto;
    gap: 9px;
  }
  .metric dd {
    grid-column: 3;
    grid-row: 1;
    font-size: 29px;
  }
  .metric .tile {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .metric dt {
    grid-column: 2;
    grid-row: 1;
  }
  .metric dl {
    display: contents;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: relative;
    height: auto;
    padding: 15px 18px;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .sidebar .side-intro {
    display: none;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .sidebar nav a {
    padding: 9px;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
  }
  .profile {
    margin-top: 12px;
    padding: 8px 4px 0;
  }
  .profile-avatar,
  .profile small {
    display: none;
  }
  .profile .icon-btn {
    min-height: 31px;
    width: 31px;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    min-height: 54px;
    padding: 8px 13px;
  }
  .crumb,
  .sync-area {
    gap: 5px;
  }
  .topbar .crumb > span,
  .topbar .crumb > .icon {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .page-heading .btn {
    padding: 6px 11px;
    font-size: 13px;
    min-height: 38px;
    white-space: nowrap;
  }
  .page-heading .muted {
    font-size: 13px;
  }
  .date {
    font-size: 12px;
  }
  main {
    padding: 20px 12px 35px;
  }
  .metrics {
    margin-bottom: 11px;
  }
  .columns {
    gap: 12px;
  }
  .history {
    margin-top: 12px;
  }
  .panel-head {
    padding: 13px;
  }
  .filters {
    padding-inline: 13px;
  }
  .login-art {
    display: none;
  }
  .login-wrap {
    display: block;
    max-width: 450px;
    min-height: auto;
  }
  .entry {
    padding: 15px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 22px;
    align-self: flex-start;
    font-size: 20px;
  }
  .mobile-brand .brandmark {
    width: 32px;
    height: 32px;
  }
  .login-card > .tile {
    display: none;
  }
  .empty {
    padding: 20px 12px;
  }
  .action-option .icon:last-child {
    display: none;
  }
}
@media (max-width: 470px) {
  .metrics {
    gap: 6px;
  }
  .metric {
    gap: 4px;
    padding: 9px;
    border-radius: 10px;
    grid-template-columns: auto 1fr auto;
  }
  .metric .tile {
    width: 26px;
    height: 28px;
  }
  .metric .tile .icon {
    width: 15px;
  }
  .metric dt {
    font-size: 11px;
  }
  .metric dd {
    font-size: 24px;
  }
  .actions #action-list {
    grid-template-columns: 1fr;
  }
  .action-option .icon:last-child {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    min-width: 0;
  }
  .sync-area {
    font-size: 11px;
  }
  .history td,
  .history th {
    padding: 8px;
  }
  .optional-col {
    display: none;
  }
  .date {
    margin: 0;
  }
  .sidebar nav a {
    font-size: 12px;
  }
  .toast {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.13s,
      color 0.13s,
      border-color 0.13s;
  }
  dialog[open] {
    animation: enter 0.14s ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0.7;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
