/* ==========================================================================
   لوحة تحكم الأسعار — مجموعة سويت للشقق المخدومة
   A back-office console styled to sit alongside the public site: the same
   navy-and-gold palette and the same Cairo/Tajawal pairing, but darker,
   denser and built for repeated daily use rather than for browsing.
   ========================================================================== */

:root {
  /* Canvas — deep navy, warmed slightly so it never reads as pure black */
  --ink-950: #08131f;
  --ink-900: #0c1c2f;
  --ink-850: #10243a;
  --ink-800: #153049;
  --ink-750: #1b3b58;

  /* Brand gold, plus the low-opacity variants used for hairlines and glows */
  --gold: #c59b27;
  --gold-lite: #e2bf62;
  --gold-pale: #f0dda8;
  --gold-line: rgba(197, 155, 39, 0.22);
  --gold-wash: rgba(226, 191, 98, 0.08);

  --line: rgba(206, 221, 240, 0.09);
  --line-strong: rgba(206, 221, 240, 0.16);

  --text: #eaf0f8;
  --text-dim: #9dafc6;
  --text-mute: #6e8199;

  --ok: #47c48a;
  --ok-wash: rgba(71, 196, 138, 0.12);
  --warn: #e8b04b;
  --bad: #e8737a;
  --bad-wash: rgba(232, 115, 122, 0.12);

  --r-lg: 20px;
  --r-md: 13px;
  --r-sm: 9px;

  --shadow-panel: 0 28px 60px -34px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 18px 34px -18px rgba(0, 0, 0, 0.75);

  --shell: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 480px at 92% -8%, rgba(197, 155, 39, 0.16), transparent 62%),
    radial-gradient(760px 520px at 4% 4%, rgba(27, 59, 88, 0.55), transparent 66%),
    linear-gradient(180deg, var(--ink-950) 0%, #06101a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.mark__text,
.btn,
.rate__amount,
.eyebrow {
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
}

p {
  margin: 0;
}

/* Fixed, non-interactive grain for texture over the flat gradient */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  inset-inline-start: 20px;
  top: -70px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--gold);
  color: var(--ink-950);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 0;
}

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

:focus-visible {
  outline: 2px solid var(--gold-lite);
  outline-offset: 3px;
}

/* ===================== TOP BAR ===================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 19, 31, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding-block: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.mark__glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(197, 155, 39, 0.2), rgba(197, 155, 39, 0.04));
  color: var(--gold-lite);
  transition: transform 0.35s var(--ease), border-color 0.25s ease;
}

.mark:hover .mark__glyph {
  transform: rotate(-6deg) scale(1.04);
  border-color: var(--gold);
}

.mark__text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mark__text small {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 48, 73, 0.5);
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.pill__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--text-mute);
}

.pill[data-state="loading"] .pill__dot {
  background: var(--warn);
  animation: pulse 1.1s ease-in-out infinite;
}

.pill[data-state="ready"] .pill__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-wash);
}

.pill[data-state="error"] .pill__dot {
  background: var(--bad);
  box-shadow: 0 0 0 3px var(--bad-wash);
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.83rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--gold-pale);
  border-color: var(--gold-line);
  background: var(--gold-wash);
}

.icon-btn svg {
  transition: transform 0.5s var(--ease);
}

.icon-btn[data-busy="true"] svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(-360deg);
  }
}

/* ===================== LAYOUT ===================== */

.layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-block: 40px 72px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(16, 36, 58, 0.92), rgba(10, 24, 40, 0.92));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

/* Hairline of gold along the top edge of every panel */
.panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 22%, var(--gold-line) 78%, transparent);
}

.panel__head {
  padding: 32px 32px 26px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.panel__head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lede {
  max-width: 54ch;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ===================== RATE ROWS ===================== */

.rates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "id now"
    "form form";
  gap: 20px 24px;
  padding: 26px 32px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
  animation: rise 0.6s var(--ease) both;
}

.rate:last-child {
  border-bottom: 0;
}

.rate:nth-child(1) { animation-delay: 0.05s; }
.rate:nth-child(2) { animation-delay: 0.13s; }
.rate:nth-child(3) { animation-delay: 0.21s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.rate:hover {
  background: rgba(27, 59, 88, 0.24);
}

.rate.is-saved {
  background: var(--ok-wash);
}

.rate__id {
  grid-area: id;
  min-width: 0;
}

.rate__key {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.7rem;
  color: var(--text-mute);
  direction: ltr;
}

.rate__name {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rate__note {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.rate__now {
  grid-area: now;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--line);
}

.rate__amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold-pale);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.rate__amount span {
  font-family: "Tajawal", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0;
}

.rate.is-saved .rate__amount {
  animation: bump 0.5s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.07);
    color: #fff;
  }
}

.rate__stamp {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-mute);
}

/* --- editor --- */

.rate__form {
  grid-area: form;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.rate__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-dim);
}

.field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(6, 15, 26, 0.66);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.rate.has-error .field {
  border-color: var(--bad);
}

.field input {
  width: 128px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cairo", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.field input:focus {
  outline: 0;
}

.field input::placeholder {
  color: var(--text-mute);
  font-weight: 500;
}

.step {
  display: grid;
  place-items: center;
  width: 40px;
  flex: none;
  border: 0;
  background: rgba(206, 221, 240, 0.05);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.step:hover {
  background: var(--gold-wash);
  color: var(--gold-pale);
}

.step:active {
  transform: scale(0.94);
}

.rate__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}

.btn--save {
  background: linear-gradient(160deg, var(--gold-lite), var(--gold));
  color: #1a1204;
  box-shadow: var(--shadow-lift);
}

.btn--save:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn--save:disabled {
  background: rgba(206, 221, 240, 0.07);
  color: var(--text-mute);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--ghost {
  padding-inline: 15px;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text-dim);
}

.btn--ghost:hover {
  border-color: var(--bad);
  color: var(--bad);
}

.rate.is-saving .btn--save {
  color: transparent;
  position: relative;
}

.rate.is-saving .btn--save::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(26, 18, 4, 0.35);
  border-top-color: #1a1204;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.rate__msg {
  flex-basis: 100%;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.rate.has-error .rate__msg {
  color: var(--bad);
}

.rate.is-dirty .rate__msg {
  color: var(--warn);
}

/* Progress hairline that runs while a save is in flight */
.rate__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--gold), var(--gold-lite));
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.rate.is-saving .rate__bar {
  animation: sweep 1.1s var(--ease) infinite;
}

@keyframes sweep {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  70% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* ===================== SIDE RAIL ===================== */

.rail {
  display: grid;
  gap: 22px;
}

.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel__title h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.count {
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.log {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
}

.log__item {
  display: grid;
  gap: 5px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  animation: rise 0.45s var(--ease) both;
}

.log__item:last-child {
  border-bottom: 0;
}

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

.log__unit {
  font-weight: 700;
  font-size: 0.92rem;
}

.log__when {
  font-size: 0.74rem;
  color: var(--text-mute);
  white-space: nowrap;
}

.log__delta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.log__from {
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-color: var(--bad);
}

.log__to {
  font-weight: 700;
  color: var(--gold-pale);
}

.log__delta svg {
  flex: none;
  color: var(--text-mute);
}

/* --- empty + loading states --- */

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 28px;
  text-align: center;
  color: var(--text-mute);
}

.empty svg {
  color: var(--line-strong);
}

.empty p {
  font-size: 0.87rem;
  max-width: 26ch;
}

.skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(
    100deg,
    rgba(206, 221, 240, 0.06) 20%,
    rgba(206, 221, 240, 0.14) 40%,
    rgba(206, 221, 240, 0.06) 60%
  );
  background-size: 300% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -180% 0;
  }
}

.skel--num {
  width: 104px;
  height: 34px;
}

.skel--line {
  width: 100%;
  height: 12px;
}

.skel--short {
  width: 42%;
}

.log__skel {
  display: grid;
  gap: 9px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}

/* --- notes panel --- */

.notes {
  padding: 22px 24px 26px;
  display: grid;
  gap: 16px;
}

.note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.note svg {
  margin-top: 4px;
  color: var(--gold);
}

.note strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.note code {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(6, 15, 26, 0.6);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  color: var(--gold-pale);
  direction: ltr;
}

.branches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.branches span {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 15, 26, 0.45);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ===================== TOASTS ===================== */

.toasts {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 48px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(12, 28, 47, 0.97);
  box-shadow: var(--shadow-panel);
  font-size: 0.87rem;
  animation: toast-in 0.35s var(--ease) both;
}

.toast[data-tone="ok"] {
  border-color: rgba(71, 196, 138, 0.45);
}

.toast[data-tone="ok"] svg {
  color: var(--ok);
}

.toast[data-tone="bad"] {
  border-color: rgba(232, 115, 122, 0.45);
}

.toast[data-tone="bad"] svg {
  color: var(--bad);
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

/* ===================== PASSCODE GATE ===================== */

.lock {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 17, 0.86);
  backdrop-filter: blur(10px);
  animation: fade 0.3s var(--ease);
}

.lock[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.lock__card {
  width: min(400px, 100%);
  padding: 34px 30px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, rgba(18, 40, 63, 0.98), rgba(9, 21, 35, 0.98));
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.lock__glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border: 1px solid var(--gold-line);
  border-radius: 15px;
  background: var(--gold-wash);
  color: var(--gold-lite);
}

.lock__card h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 800;
}

.lock__card p {
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.lock__card input {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(6, 15, 26, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.12em;
}

.lock__card input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.lock__card .btn--save {
  width: 100%;
}

.lock__skip {
  width: 100%;
  margin-top: 10px;
}

.lock__skip:hover {
  border-color: var(--gold-line);
  color: var(--gold-pale);
}

/* View-only: the editors stay visible but are clearly out of reach */
.rate.is-locked .rate__form {
  opacity: 0.55;
}

.rate.is-locked .field,
.rate.is-locked .rate__actions {
  pointer-events: none;
}

.lock__msg {
  min-height: 1.3em;
  margin-top: 12px;
  font-size: 0.83rem;
  color: var(--bad);
}

/* ===================== FOOTER ===================== */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: 26px 34px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.81rem;
  color: var(--text-mute);
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 1px;
}

.footer a:hover {
  color: var(--gold-pale);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1020px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 30px 56px;
  }

  .log {
    max-height: none;
  }
}

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

  .topbar__inner {
    min-height: 68px;
  }

  .mark__text small {
    display: none;
  }

  .icon-btn span {
    display: none;
  }

  .icon-btn {
    padding: 9px 11px;
  }

  .panel__head {
    padding: 26px 20px 22px;
  }

  .rate {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "id"
      "now"
      "form";
    padding: 22px 20px 24px;
    gap: 16px;
  }

  .rate__now {
    padding-inline-start: 0;
    border-inline-start: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    width: 100%;
  }

  .rate__form {
    gap: 12px;
  }

  .rate__actions {
    margin-inline-start: 0;
    flex: 1;
  }

  .btn--save {
    flex: 1;
  }

  .field input {
    width: 96px;
  }

  .toasts {
    inset-inline: 16px;
    width: auto;
  }
}

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