:root {
  --canvas: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #f8fafb;
  --ink: #172027;
  --muted: #63717b;
  --subtle: #8a969f;
  --border: #d9e0e4;
  --border-strong: #c5ced4;
  --blue: #2366d1;
  --blue-soft: #edf4ff;
  --green: #167a55;
  --green-soft: #eaf7f0;
  --amber: #a45b08;
  --amber-soft: #fff6e6;
  --red: #b33b32;
  --red-soft: #fff0ee;
  --shadow: 0 8px 24px rgba(23, 32, 39, 0.08);
  --radius: 6px;
  --focus: 0 0 0 3px rgba(35, 102, 209, 0.18);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 20px;
  background: #edf1f3;
}

.login-panel {
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 5px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 750;
  font-size: 17px;
}

.brand-name,
.brand-context {
  margin: 0;
}

.brand-name {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.brand-context {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.section-heading,
.page-heading,
.panel-heading,
.eip-header,
.chart-toolbar,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h1,
.section-heading h2,
.page-heading h1,
.panel-heading h2,
.eip-header h2,
.chart-toolbar h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.section-heading h1,
.page-heading h1 {
  font-size: 22px;
}

.section-heading h2,
.panel-heading h2,
.eip-header h2 {
  font-size: 16px;
}

.chart-toolbar h3 {
  font-size: 14px;
}

.section-heading p,
.panel-heading p,
.eip-header p,
.chart-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-heading {
  align-items: flex-start;
}

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

.field > span:first-child,
.compact-select > span,
.policy-preview > span {
  color: #35424b;
  font-size: 12px;
  font-weight: 650;
}

.field small,
.policy-preview small {
  min-height: 18px;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.45;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:hover,
select:hover {
  border-color: #aab5bc;
}

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--blue);
  outline: 0;
  box-shadow: var(--focus);
}

input:disabled,
select:disabled {
  border-color: var(--border);
  background: #f3f5f6;
  color: var(--subtle);
}

.password-input,
.unit-input {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.password-input input {
  padding-right: 62px;
}

.inline-button {
  position: absolute;
  right: 4px;
  min-width: 48px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.inline-button:hover {
  background: var(--blue-soft);
}

.unit-input input {
  padding-right: 48px;
}

.unit-input > span {
  position: absolute;
  right: 11px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button:disabled {
  opacity: 0.55;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover:not(:disabled) {
  background: #1b56b4;
}

.secondary-button {
  border-color: var(--border-strong);
  background: var(--surface);
  color: #34414a;
}

.secondary-button:hover:not(:disabled) {
  border-color: #9da9b1;
  background: var(--surface-muted);
}

.quiet-button {
  min-height: 34px;
  border-color: var(--border);
  background: transparent;
  color: #45535c;
}

.quiet-button:hover {
  background: var(--surface-muted);
}

.full-width {
  width: 100%;
}

.form-error {
  margin: -5px 0 0;
  padding: 10px 11px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  color: #8e3029;
  font-size: 12px;
}

.app-view {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-brand .brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 15px;
}

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

.health-state,
.current-user {
  color: var(--muted);
  font-size: 12px;
}

.health-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.health-state.error .status-dot {
  background: var(--red);
}

.console-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 30px 24px 52px;
}

.page-heading {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.last-updated {
  color: var(--subtle);
  font-size: 11px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 16px;
}

.nat-panel {
  min-height: 515px;
  overflow: hidden;
}

.panel-heading,
.eip-header,
.section-heading {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.nat-list {
  display: grid;
  padding: 8px;
  gap: 4px;
}

.nat-item {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.nat-item:hover {
  background: var(--surface-muted);
}

.nat-item.selected {
  border-color: #b7cef2;
  background: var(--blue-soft);
}

.nat-item strong,
.nat-item small,
.nat-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nat-item strong {
  font-size: 13px;
  font-weight: 700;
}

.nat-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.nat-item > span {
  color: var(--subtle);
  font-size: 11px;
}

.eip-panel {
  min-width: 0;
  overflow: hidden;
}

.title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.compact-select {
  display: flex;
  min-width: 176px;
  align-items: center;
  gap: 9px;
}

.compact-select > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.compact-select select {
  height: 36px;
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.online,
.status-badge.success {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge.offline,
.status-badge.failed {
  background: var(--red-soft);
  color: var(--red);
}

.status-badge.running,
.status-badge.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.neutral,
.status-badge.skipped {
  background: #eef1f3;
  color: #58656e;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.metric-cell {
  display: grid;
  min-width: 0;
  min-height: 102px;
  align-content: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-cell > span {
  color: var(--muted);
  font-size: 11px;
}

.metric-cell strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-cell small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 10px;
}

.chart-block {
  padding: 18px 20px 14px;
}

.segmented-control {
  display: inline-flex;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
}

.segmented-control button,
.segmented-control label {
  min-width: 66px;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.segmented-control button:last-child,
.segmented-control label:last-child {
  border-right: 0;
}

.segmented-control button:hover,
.segmented-control button.active,
.segmented-control label:has(input:checked) {
  background: var(--blue-soft);
  color: var(--blue);
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 270px;
  margin-top: 16px;
  aspect-ratio: 3.4 / 1;
}

#bandwidth-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-size: 12px;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 146px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(23, 32, 39, 0.94);
  box-shadow: 0 5px 18px rgba(23, 32, 39, 0.2);
  color: #ffffff;
  font-size: 11px;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip span {
  margin-top: 2px;
  color: #d3dce2;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line,
.legend-dash {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid var(--blue);
}

.legend-dash {
  border-top-color: var(--amber);
  border-top-style: dashed;
}

.policy-panel,
.history-panel {
  margin-top: 16px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #34414a;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.policy-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border: 1px solid #aeb8bf;
  border-radius: 999px;
  background: #c8d0d5;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(23, 32, 39, 0.2);
  content: "";
  transition: transform 140ms ease;
}

.switch-control input:checked + .switch {
  border-color: var(--green);
  background: var(--green);
}

.switch-control input:checked + .switch::after {
  transform: translateX(16px);
}

.switch-control input:focus-visible + .switch {
  box-shadow: var(--focus);
}

.switch-control input:disabled + .switch {
  opacity: 0.5;
}

.policy-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 20px 18px;
}

.usage-confirmation-field {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.usage-confirmation-field.invalid {
  border-bottom-color: #e2a1a1;
}

.usage-confirmation-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.usage-confirmation-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.usage-confirmation-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.required-condition {
  flex: 0 0 auto;
  padding-left: 9px;
  border-left: 2px solid var(--amber);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.usage-confirmation-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fixed-sample-value {
  display: flex;
  min-width: 0;
  height: 40px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
}

.fixed-sample-value strong {
  margin: 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.confirmation-expression {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-muted);
}

.confirmation-condition {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 3px 10px;
  border-left: 3px solid var(--blue);
}

.confirmation-condition:last-child {
  border-left-color: var(--green);
}

.confirmation-condition span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.confirmation-condition strong {
  color: #34414a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.confirmation-and {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
}

.confirmation-and::before,
.confirmation-and::after {
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.policy-stages-field {
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 3px;
}

.policy-stages-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.policy-stages-heading > span {
  color: #35424b;
  font-size: 12px;
  font-weight: 650;
}

.stage-add-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
}

.stage-add-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.stage-add-button:disabled,
.stage-remove-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.policy-stage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
}

.policy-stage-list.invalid {
  border-color: #e2a1a1;
}

.policy-stage-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.policy-stage-level {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.policy-stage-input-wrap input {
  padding-right: 54px;
  font-variant-numeric: tabular-nums;
}

.stage-remove-button {
  width: 34px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.stage-remove-button:hover:not(:disabled) {
  border-color: #d48c8c;
  background: var(--red-soft);
  color: var(--red);
}

.policy-preview {
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-column: 1 / -1;
  align-content: center;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

.policy-preview strong {
  margin-top: 4px;
  color: #204f99;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.policy-preview .policy-renewal-preview {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(47, 105, 201, 0.18);
  color: #506679;
  font-weight: 650;
}

.policy-preview.warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.policy-preview.warning strong {
  color: var(--amber);
}

.form-actions {
  min-height: 66px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.save-state {
  color: var(--muted);
  font-size: 11px;
}

.history-heading {
  border-bottom: 0;
}

.table-wrap {
  position: relative;
  min-height: 168px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  height: 46px;
  padding: 0 20px;
  border-bottom: 1px solid #e6ebee;
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

td {
  color: #34414a;
  font-size: 12px;
}

td:first-child,
td:nth-child(4),
td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 4px;
  padding: 20px;
  color: var(--subtle);
  text-align: center;
}

.empty-state strong {
  color: #58656e;
  font-size: 13px;
}

.empty-state span {
  font-size: 11px;
}

.table-empty {
  min-height: 120px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: 76px;
  right: 20px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 8px;
}

.toast {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: #34414a;
  font-size: 12px;
}

.toast.success {
  border-left-color: var(--green);
}

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

.loading {
  opacity: 0.58;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-wrap {
    aspect-ratio: 2.5 / 1;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 16px;
  }

  .health-state,
  .current-user {
    display: none;
  }

  .console-main {
    padding: 22px 16px 40px;
  }

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

  .nat-panel {
    min-height: 0;
  }

  .nat-list {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }

  .nat-item {
    width: 230px;
    flex: 0 0 230px;
  }

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

  .metric-cell:nth-child(2) {
    border-right: 0;
  }

  .metric-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .chart-wrap {
    min-height: 250px;
    aspect-ratio: auto;
  }
}

@media (max-width: 620px) {
  .toast-region {
    top: auto;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100vw - 32px);
  }

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

  .topbar-brand .brand-context {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .page-heading,
  .eip-header,
  .section-heading,
  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-actions {
    width: 100%;
    justify-content: space-between;
  }

  .compact-select {
    width: 100%;
  }

  .eip-header .compact-select {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .chart-toolbar .segmented-control {
    width: 100%;
  }

  .chart-toolbar .segmented-control button {
    flex: 1;
  }

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

  .usage-confirmation-heading {
    align-items: flex-start;
  }

  .usage-confirmation-controls,
  .confirmation-expression {
    grid-template-columns: 1fr;
  }

  .confirmation-and {
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
  }

  .policy-stages-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-add-button {
    width: 100%;
  }

  .policy-stage-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .policy-preview {
    min-height: 80px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .history-heading .compact-select {
    max-width: none;
  }
}

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