:root {
  color-scheme: light;
  --ink: #172033;
  --ink-strong: #0d1424;
  --muted: #697386;
  --muted-soft: #8d96a8;
  --line: #dfe4eb;
  --line-strong: #cbd3de;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --surface-raised: #fafbfc;
  --nav: #151d2b;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --teal: #0f766e;
  --teal-soft: #e3f5f1;
  --amber: #b45309;
  --amber-soft: #fff2dc;
  --rose: #b4233b;
  --rose-soft: #ffe9ed;
  --shadow: 0 10px 30px rgba(20, 31, 50, 0.09);
  --shadow-soft: 0 4px 14px rgba(20, 31, 50, 0.07);
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
}

body {
  min-width: 320px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-lockup > span:last-child {
  display: grid;
  min-width: 0;
}

.brand-lockup strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.3;
}

.brand-lockup small {
  margin-top: 1px;
  color: #9eabbe;
  font-size: 11px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: #f1f4f8;
  color: var(--nav);
  font-size: 12px;
  font-weight: 800;
}

.brand-lockup-large {
  color: #fff;
}

.brand-lockup-large .brand-mark {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, 0.22);
  background: #fff;
  font-size: 14px;
}

.brand-lockup-large strong {
  font-size: 19px;
}

.brand-lockup-large small {
  color: #aebbd0;
  font-size: 12px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(40px, 7vw, 86px);
  background: var(--nav);
  color: #fff;
}

.login-brand > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c4cede;
  font-size: 14px;
}

.login-signal {
  position: absolute;
  right: 14%;
  bottom: 18%;
  left: 14%;
  display: flex;
  height: 44%;
  align-items: end;
  gap: 14px;
  opacity: 0.72;
}

.login-signal span {
  width: 20%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 3px solid #33b8a8;
  background: rgba(255, 255, 255, 0.035);
}

.login-signal span:nth-child(1) {
  height: 28%;
}

.login-signal span:nth-child(2) {
  height: 52%;
}

.login-signal span:nth-child(3) {
  height: 42%;
}

.login-signal span:nth-child(4) {
  height: 78%;
}

.login-signal span:nth-child(5) {
  height: 100%;
}

.login-panel {
  align-self: center;
  width: min(420px, calc(100% - 48px));
  margin: 40px auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0 0 28px;
  color: var(--ink-strong);
  font-size: 27px;
  line-height: 1.25;
}

.login-panel label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.login-panel label > span,
.field > span {
  color: #3e485b;
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.button,
.icon-button,
.nav-item {
  border: 0;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.button-primary {
  background: var(--ink-strong);
  color: #fff;
}

.button-primary:hover {
  background: #263149;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.button-danger {
  border: 1px solid #edbdc5;
  background: #fff7f8;
  color: var(--rose);
}

.button-danger:hover {
  background: var(--rose-soft);
}

.button-wide {
  width: 100%;
  height: 43px;
  margin-top: 8px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #556176;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-strong);
}

.form-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--rose);
  font-size: 12px;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 222px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--nav);
  color: #fff;
}

.sidebar .brand-lockup {
  padding: 0 8px 23px;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: #adb8ca;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.is-active {
  background: #fff;
  color: var(--ink-strong);
  font-weight: 750;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  color: #9eabbe;
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cc79d;
  box-shadow: 0 0 0 4px rgba(44, 199, 157, 0.12);
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
}

.topbar h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-identity {
  display: inline-flex;
  height: 38px;
  max-width: 240px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #394459;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-identity .icon {
  color: var(--teal);
}

main {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 26px 28px 48px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

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

.metric-card {
  display: grid;
  min-height: 128px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-card > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.metric-card > div span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  color: var(--ink-strong);
  font-size: 28px;
  line-height: 1;
}

.metric-card > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-teal {
  border-top-color: var(--teal);
}

.metric-teal .metric-icon {
  background: var(--teal-soft);
  color: var(--teal);
}

.metric-amber {
  border-top-color: var(--amber);
}

.metric-amber .metric-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-rose {
  border-top-color: var(--rose);
}

.metric-rose .metric-icon {
  background: var(--rose-soft);
  color: var(--rose);
}

.section-block {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.section-heading-top {
  align-items: center;
  margin: 2px 0 16px;
}

.section-heading h3,
.subheading h3,
.drawer-section h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.table-shell {
  position: relative;
  min-height: 130px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.table-shell-large {
  min-height: 360px;
}

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

th {
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  color: #647084;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

td {
  height: 65px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8ebf0;
  color: #394459;
  font-size: 12px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr[data-tenant-id] {
  cursor: pointer;
}

tbody tr[data-tenant-id]:hover {
  background: #f7f9fc;
}

td:last-child {
  width: 46px;
  text-align: right;
}

.customer-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.customer-cell strong,
.customer-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cell strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.customer-cell span,
.secondary-text {
  color: var(--muted);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #526075;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-active,
.status-legacy {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-trial,
.status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-expired,
.status-suspended,
.status-disabled {
  background: var(--rose-soft);
  color: var(--rose);
}

.row-action {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667389;
}

.row-action:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.empty-state {
  position: absolute;
  inset: 42px 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--muted-soft);
  text-align: center;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
}

.empty-state strong {
  font-size: 12px;
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filter-row {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: minmax(240px, 1fr) 160px 160px;
  gap: 9px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field .icon {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 17px;
  height: 17px;
  color: #8390a4;
  pointer-events: none;
}

.search-field input {
  padding-left: 37px;
}

.record-count {
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.modal,
.drawer {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop,
.drawer::backdrop {
  background: rgba(13, 20, 36, 0.42);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(680px, calc(100vw - 28px));
  margin: auto;
}

.modal-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(12, 21, 38, 0.24);
  backdrop-filter: blur(22px);
}

.dialog-heading,
.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2,
.drawer-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.modal-panel > .form-grid {
  padding: 22px 24px 10px;
}

.field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field small,
.toggle-field small {
  color: var(--muted);
  font-size: 10px;
}

.modal-panel > .form-error {
  margin: 0;
  padding: 0 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px 22px;
}

.drawer {
  width: min(660px, 100vw);
  height: 100vh;
  margin: 0 0 0 auto;
}

.drawer-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -20px 0 60px rgba(12, 21, 38, 0.2);
  backdrop-filter: blur(24px);
}

.drawer-heading {
  align-items: center;
  padding: 20px 22px;
}

.drawer-heading > div {
  min-width: 0;
}

.drawer-heading h2 {
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-heading p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-scroll {
  overflow-y: auto;
}

.drawer-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-section:last-child {
  border-bottom: 0;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.subheading > span {
  color: var(--muted);
  font-size: 10px;
}

.drawer-section .button-primary {
  margin-top: 16px;
}

.toggle-field {
  display: grid;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
}

.toggle-field > span:first-child {
  display: grid;
  gap: 3px;
}

.toggle-field strong {
  font-size: 12px;
}

.toggle-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #c6ced9;
  transition: background 140ms ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 27, 42, 0.28);
  content: "";
  transition: transform 140ms ease;
}

.toggle-field input:checked + .toggle {
  background: var(--teal);
}

.toggle-field input:checked + .toggle::after {
  transform: translateX(18px);
}

.toggle-field input:focus-visible + .toggle {
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.compact-list {
  display: grid;
}

.compact-row {
  display: grid;
  min-height: 45px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e9ecf1;
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.compact-row strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-row span {
  color: var(--muted);
  font-size: 10px;
}

.compact-row > small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.compact-empty {
  padding: 12px 0;
  color: var(--muted);
  font-size: 11px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  min-height: 53px;
  gap: 4px;
  padding: 9px 0 9px 20px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item::before {
  position: absolute;
  top: 15px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #fff;
  content: "";
}

.timeline-item strong {
  color: var(--ink-strong);
  font-size: 11px;
}

.timeline-item span,
.timeline-item small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.toast-error {
  border-left-color: var(--rose);
}

.toast-error .icon {
  color: var(--rose);
}

.toast-success .icon {
  color: var(--teal);
}

.loading-bar {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 38%;
  height: 3px;
  background: var(--blue);
  animation: loading-slide 1.1s ease-in-out infinite alternate;
}

@keyframes loading-slide {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(180%);
  }
}

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

  .filter-row {
    grid-template-columns: minmax(220px, 1fr) 140px 140px;
  }
}

@media (max-width: 820px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 210px;
    padding: 30px;
  }

  .login-signal {
    right: 9%;
    bottom: 18%;
    left: 48%;
    height: 62%;
  }

  .login-panel {
    margin: 32px auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 9px 14px;
  }

  .sidebar .brand-lockup {
    padding: 0;
  }

  .sidebar .brand-lockup small,
  .sidebar-foot {
    display: none;
  }

  .primary-nav {
    display: flex;
    justify-content: flex-end;
  }

  .nav-item {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
  }

  .topbar {
    position: static;
    min-height: 66px;
    padding: 11px 18px;
  }

  main {
    padding: 20px 18px 40px;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .command-bar {
    align-items: end;
  }
}

@media (max-width: 600px) {
  .login-brand {
    min-height: 170px;
  }

  .login-brand > p,
  .login-signal {
    display: none;
  }

  .login-panel {
    width: calc(100% - 28px);
    margin: 20px auto;
    padding: 25px 20px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sidebar .brand-lockup {
    display: none;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    gap: 6px;
    padding: 0 7px;
    font-size: 11px;
  }

  .nav-item .icon {
    width: 16px;
    height: 16px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .topbar h2 {
    font-size: 17px;
  }

  .admin-identity {
    display: none;
  }

  main {
    padding: 16px 12px 32px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 100px;
    padding: 15px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading p {
    display: none;
  }

  .command-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .command-bar > .button {
    width: 100%;
  }

  .modal {
    width: calc(100vw - 16px);
  }

  .dialog-heading,
  .drawer-heading,
  .drawer-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .modal-panel > .form-grid {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
