/* PERURI Chain — shared base, app shell and components.
   Page-specific styles live in assets/css/pages/<page>.css. */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--content-primary);
  background: var(--background-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex-shrink: 0;
}

/* ---------- App shell ---------- */
.app {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  background: var(--background-secondary);
}

.sidebar {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  border-right: 1px solid var(--stroke-primary);
  background: var(--surface-primary);
  overflow: hidden;
  transition: width 0.2s ease;
  z-index: 20;
}

.sidebar__menu {
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 16px 24px;
  border-bottom: 1px solid var(--stroke-sidebar);
  background: var(--surface-primary);
  overflow-y: auto;
}

.sidebar__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar__brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-8);
  background: var(--primary);
}

.brand__mark--dark {
  background: var(--primary-dark);
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand__name {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--content-primary);
}

.brand__tagline {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--content-tertiary);
}

.sidebar__toggle {
  display: flex;
  flex-shrink: 0;
  border-radius: var(--radius-6);
}

.sidebar__toggle:hover {
  background: var(--background-tertiary);
}

.sidebar__divider {
  height: 1px;
  background: var(--stroke-primary);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__section-label {
  padding: 8px 0 4px 12px;
  font-size: 11px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--content-tertiary);
  white-space: nowrap;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 16px 8px;
  border-radius: var(--radius-8);
  background: var(--background-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--content-secondary);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav__item:hover {
  background: var(--background-secondary);
}

.nav__item.is-active {
  background: var(--primary-25);
  font-weight: 600;
  color: var(--primary);
}

.nav__label {
  flex: 1 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--background-secondary);
  border-radius: 32px;
  background: var(--primary-200);
  font-size: 16px;
  line-height: 24px;
  color: var(--content-primary);
}

.profile__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile__name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile__more {
  display: flex;
  padding: 2px;
  border-radius: var(--radius-4);
}

.profile__more:hover,
.profile__more[aria-expanded="true"] {
  background: var(--background-tertiary);
}

.menu {
  position: absolute;
  right: 16px;
  bottom: calc(100% - 8px);
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-8);
  background: var(--background-primary);
  box-shadow: var(--shadow-menu);
  z-index: 30;
}

.menu[hidden] {
  display: none;
}

.menu__meta {
  padding: 8px 10px;
  border-bottom: 1px solid var(--stroke-primary);
  margin-bottom: 4px;
}

.menu__meta-email {
  font-size: 12px;
  line-height: 16px;
  color: var(--content-secondary);
  overflow-wrap: anywhere;
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-6);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.menu__item:hover {
  background: var(--background-secondary);
}

.menu__item--danger {
  color: var(--negative-600);
}

/* Collapsed sidebar */
.sidebar.is-collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar.is-collapsed .brand__wordmark,
.sidebar.is-collapsed .nav__label,
.sidebar.is-collapsed .nav__section-label,
.sidebar.is-collapsed .profile__content,
.sidebar.is-collapsed .profile__more {
  display: none;
}

.sidebar.is-collapsed .sidebar__brand-row {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sidebar.is-collapsed .sidebar__toggle img {
  transform: scaleX(-1);
}

.sidebar.is-collapsed .nav__item {
  justify-content: center;
}

.sidebar.is-collapsed .profile {
  justify-content: center;
  padding: 16px 0;
}

/* ---------- Main content ---------- */
.main {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px 32px 40px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 40px;
}

.page-header__title {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  white-space: nowrap;
}

.page-header__actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-12);
  background: var(--background-primary);
  overflow: hidden;
}

.card--flush {
  gap: 0;
  padding: 0;
}

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.card__titles {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.card__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--content-tertiary);
}

/* KPI card — "Card Data/Highlight" */
.kpi-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kpi-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  /* 19px + 1px border = the design's 20px inset (Figma strokes sit inside the box) */
  padding: 19px;
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-8);
  background: var(--background-primary);
}

.kpi-card__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-card__label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--content-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card__value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  white-space: nowrap;
}

.kpi-card__icon {
  display: flex;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid var(--stroke-primary);
  border-radius: 32px;
}

.kpi-card__icon--guide { background: var(--guide-100); }
.kpi-card__icon--positive { background: var(--positive-100); }
.kpi-card__icon--warning { background: var(--warning-100); }
.kpi-card__icon--negative { background: var(--negative-100); }
.kpi-card__icon--teal { background: var(--teal-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-6);
  background: var(--background-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--content-primary);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--background-secondary);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn--sm {
  height: 32px;
  padding: 8px;
  font-size: 12px;
  line-height: 16px;
}

.btn--lg {
  height: 44px;
  border-radius: var(--radius-8);
}

.btn--primary {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: var(--content-inverse);
}

.btn--primary:hover {
  border-color: #000000;
  background: #000000;
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
}

.btn--ghost:hover {
  background: var(--background-tertiary);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  padding: 8px 16px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--guide-600);
  white-space: nowrap;
}

.link:hover {
  text-decoration: underline;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  padding: 2px 12px;
  border-radius: 900px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--sm {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 16px;
}

.badge--positive { background: var(--positive-100); color: var(--positive-600); }
.badge--guide { background: var(--guide-100); color: var(--guide-600); }
.badge--warning { background: var(--warning-100); color: var(--warning-600); }
.badge--negative { background: var(--negative-100); color: var(--negative-600); }
.badge--neutral { min-width: 0; background: var(--background-secondary); color: var(--neutral-800); }

/* ---------- Consortium signer chip / dot / quorum ---------- */
.signer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.signer-chip img {
  width: 14px;
  height: 14px;
}

.signer-chip--signed { background: var(--positive-100); color: var(--positive-600); }
.signer-chip--waiting { background: var(--background-tertiary); color: var(--content-secondary); }
.signer-chip--you { background: var(--warning-100); color: var(--warning-600); }
.signer-chip--expired { background: var(--negative-100); color: var(--negative-600); }

.signer-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--positive-500);
}

.signer-dot--signed { background: var(--positive-500); }
.signer-dot--waiting { background: var(--background-tertiary); border: 1px solid var(--stroke-primary); }
.signer-dot--you { background: var(--warning-400); }
.signer-dot--expired { background: var(--negative-500); }

.quorum {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.quorum__row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quorum__count {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.quorum__note {
  max-width: 100%;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--content-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Filter chips (tabs) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 5px 11px;
  border: 1px solid var(--stroke-primary);
  border-radius: 1000px;
  background: var(--background-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--content-primary);
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--content-tertiary);
}

.chip.is-selected,
.chip[aria-selected="true"] {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* ---------- Form fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field__label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--content-primary);
}

.input {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-8);
  background: var(--background-primary);
  transition: border-color 0.15s ease;
}

.input:focus-within {
  border-color: var(--content-secondary);
}

.input input,
.input select {
  flex: 1 0 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  color: var(--content-primary);
}

.input input::placeholder {
  color: var(--content-tertiary);
  opacity: 1;
}

.input__action {
  display: flex;
  flex-shrink: 0;
  border-radius: var(--radius-4);
}

.field.has-error .input {
  border-color: var(--negative-500);
}

.field__helper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--content-secondary);
}

.field.has-error .field__helper {
  color: var(--negative-500);
}

.field__helper[hidden] {
  display: none;
}

.search {
  width: 300px;
  flex-shrink: 0;
}

/* ---------- Alert ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 1px solid;
  border-radius: var(--radius-8);
}

.alert[hidden] {
  display: none;
}

.alert__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--content-primary);
}

.alert__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.alert__desc {
  font-size: 12px;
  line-height: 16px;
}

.alert--negative { border-color: var(--negative-600); background: var(--negative-100); }
.alert--info { border-color: var(--guide-600); background: var(--guide-100); }
.alert--warning { border-color: var(--warning-600); background: var(--warning-100); }
.alert--positive { border-color: var(--positive-600); background: var(--positive-100); }

/* ---------- Table ---------- */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-toolbar .chips {
  flex: 1 0 0;
  min-width: 0;
}

.table-wrap {
  position: relative;
  padding: 0 8px;
  overflow-x: auto;
  background: var(--background-primary);
}

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

.table th {
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--stroke-primary);
  background: var(--background-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--content-secondary);
  text-align: left;
  white-space: nowrap;
}

.table td {
  height: 64px;
  /* 11 + 12 + 1px divider keeps two-line rows at the design's 64px */
  padding: 11px 16px 12px;
  border-bottom: 1px solid var(--stroke-primary);
  background: var(--background-primary);
  vertical-align: middle;
}

.table tbody tr {
  cursor: pointer;
}

.table tbody tr:hover td {
  background: var(--background-secondary);
}

.table tbody tr.is-selected td {
  background: var(--guide-50);
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cell__primary {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--content-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell__sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--content-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-action {
  display: flex;
  padding: 2px;
  border-radius: var(--radius-4);
}

.cell-action:hover {
  background: var(--background-tertiary);
}

.table-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--content-secondary);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.pagination__group {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.pagination__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__nav .btn {
  height: 32px;
  padding: 8px 15px;
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--background-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: var(--drawer-width);
  max-width: 100vw;
  border-left: 1px solid var(--stroke-primary);
  background: var(--background-primary);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  /* Hidden once off-screen so its shadow doesn't bleed in and it can't be tabbed into */
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s;
}

.drawer__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke-primary);
}

.drawer__titles {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.drawer__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--content-tertiary);
}

.drawer__body {
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
}

.drawer__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--stroke-primary);
}

body.has-drawer {
  overflow: hidden;
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius-8);
  background: var(--primary-dark);
  color: var(--content-inverse);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  box-shadow: var(--shadow-menu);
  animation: toast-in 0.2s ease;
}

.toast--dismissible {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  pointer-events: auto;
}

.toast__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast__title {
  font-weight: 600;
}

.toast__desc {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

/* X drawn with two bars — no close icon in the design's asset set */
.toast__close {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-4);
  color: var(--content-inverse);
  opacity: 0.8;
}

.toast__close::before,
.toast__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.toast__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.toast__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.toast__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.toast__close:focus-visible {
  outline-color: var(--content-inverse);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpi-row {
    flex-wrap: wrap;
  }

  .kpi-row .kpi-card {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  .page-header,
  .page-header__title,
  .pagination,
  .pagination__group {
    flex-wrap: wrap;
  }

  .kpi-row .kpi-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: var(--sidebar-width-collapsed);
  }

  .sidebar .brand__wordmark,
  .sidebar .nav__label,
  .sidebar .nav__section-label,
  .sidebar .profile__content,
  .sidebar .profile__more,
  .sidebar .sidebar__toggle {
    display: none;
  }

  .sidebar .nav__item {
    justify-content: center;
  }

  .sidebar .profile {
    justify-content: center;
    padding: 16px 0;
  }

  .content {
    padding: 20px 16px 32px;
  }

  .table-toolbar {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }
}

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