/* =====================================================================
   Medical Pointing System — Shared component library
   ---------------------------------------------------------------------
   Reusable, module-agnostic components mapped 1:1 to the design system.
   RULES honoured:
     • No hardcoded colour — every colour resolves to a semantic token.
     • Focus = 3px OUTSIDE ring (ring-subtle; destructive-ring on danger).
     • Hover on brand/status uses real -hover tokens, never opacity.
     • Alerts use the tinted-container tone pattern.
     • Fixed control heights; content hugs otherwise.
     • Logical properties throughout so RTL is correct by construction.
   ===================================================================== */

/* --------------------------------------------------------------------- *
 * Button
 * --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-h-sm);
  padding-inline: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--ring-subtle);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn--lg {
  height: var(--control-h);
  padding-inline: var(--space-6);
  font-size: var(--text-sm);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

.btn--outline {
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
}
.btn--outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
}

.btn--ghost {
  background-color: transparent;
  color: var(--foreground);
}
.btn--ghost:hover {
  background-color: var(--accent);
  text-decoration: none;
}

/* Icon-only square button (e.g. reveal password lives inside the input) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--control-h-sm);
  height: var(--control-h-sm);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover {
  color: var(--foreground);
}
.icon-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--ring-subtle);
}
.icon-btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* Password reveal: swap eye / eye-off based on toggled state (set by JS). */
.icon-btn .icon--off {
  display: none;
}
.icon-btn.is-visible .icon--on {
  display: none;
}
.icon-btn.is-visible .icon--off {
  display: block;
}

/* --------------------------------------------------------------------- *
 * Form field  (label + control + hint/error)
 * --------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--foreground);
}

.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.input {
  height: var(--control-h);
  width: 100%;
  padding-inline: var(--space-3);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--background);
  color: var(--foreground);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder {
  color: var(--muted-foreground);
}
.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-subtle);
}
.input[aria-invalid="true"] {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px var(--destructive-ring);
}

/* Input with a trailing affordance (icon button) */
.input-group {
  position: relative;
}
.input-group .input {
  padding-inline-end: var(--control-h);
}
.input-group .icon-btn {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  margin: auto var(--space-1);
  height: calc(var(--control-h) - 0.5rem);
  width: calc(var(--control-h) - 0.5rem);
}

.hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}
.error {
  font-size: var(--text-sm);
  color: var(--destructive);
}

/* --------------------------------------------------------------------- *
 * Checkbox
 * --------------------------------------------------------------------- */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  user-select: none;
  cursor: pointer;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox__box {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  box-shadow: var(--shadow-xs);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.checkbox__box .icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--primary-foreground);
  opacity: 0;
}
.checkbox input:checked + .checkbox__box {
  background-color: var(--primary);
  border-color: var(--primary);
}
.checkbox input:checked + .checkbox__box .icon {
  opacity: 1;
}
.checkbox input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 3px var(--ring-subtle);
}

/* --------------------------------------------------------------------- *
 * Link (inline text link, brand coloured)
 * --------------------------------------------------------------------- */
.link {
  color: var(--primary);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}
.link:hover {
  text-decoration: underline;
}
.link--muted {
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------- *
 * Divider with centred label ("أو")
 * --------------------------------------------------------------------- */
.divider {
  position: relative;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}
.divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}
.divider > span {
  position: relative;
  padding-inline: var(--space-2);
  background-color: var(--card);
}

/* --------------------------------------------------------------------- *
 * Alert  (tinted-container tone pattern)
 * --------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  background-color: var(--card);
  color: var(--card-foreground);
}
.alert .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}
.alert__title {
  font-weight: var(--weight-medium);
}
.alert__body {
  display: grid;
  gap: var(--space-1);
}
.alert--success {
  background-color: var(--success-subtle);
  border-color: var(--success-border);
  color: var(--success-accent);
}
.alert--warning {
  background-color: var(--warning-subtle);
  border-color: var(--warning-border);
  color: var(--warning-accent);
}
.alert--destructive {
  background-color: var(--destructive-subtle);
  border-color: var(--destructive-border);
  color: var(--destructive-accent);
}
.alert--info {
  background-color: var(--info-subtle);
  border-color: var(--info-border);
  color: var(--info-accent);
}

/* --------------------------------------------------------------------- *
 * OTP input group  (fixed 40×40 slots, entered LTR for numeric codes)
 * --------------------------------------------------------------------- */
.otp {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}
.otp__slot {
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--background);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otp__slot:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-subtle);
  z-index: 1;
}
.otp__slot[aria-invalid="true"] {
  border-color: var(--destructive);
}

/* --------------------------------------------------------------------- *
 * Password requirement checklist
 * --------------------------------------------------------------------- */
.reqs {
  display: grid;
  gap: var(--space-2);
}
.reqs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.reqs__item .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.reqs__item.is-met {
  color: var(--success-accent);
}
.reqs__item.is-met .icon {
  color: var(--success-accent);
}

/* --------------------------------------------------------------------- *
 * Brand mark  (logo glyph + wordmark)
 * --------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.brand__glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}
.brand__glyph .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--foreground);
}
.brand__sub {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}
/* On the primary brand panel the mark inverts. */
.brand--on-primary .brand__glyph {
  background-color: rgb(255 255 255 / 0.12);
  color: var(--primary-foreground);
}
.brand--on-primary .brand__name {
  color: var(--primary-foreground);
}
.brand--on-primary .brand__sub {
  color: rgb(250 250 250 / 0.7);
}

/* --------------------------------------------------------------------- *
 * Spinner (submit feedback)
 * --------------------------------------------------------------------- */
.spinner {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------- *
 * Card  (design-system "Card" — generic surface)
 * --------------------------------------------------------------------- */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.card__body {
  padding: var(--space-6);
}
@media (min-width: 48rem) {
  .card__body {
    padding: var(--space-8);
  }
}

/* --------------------------------------------------------------------- *
 * Badge  (hug; solid + subtle tones)
 * --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 1.5rem;
  padding-inline: var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.badge--success {
  background-color: var(--success-subtle);
  border-color: var(--success-border);
  color: var(--success-accent);
}
.badge--warning {
  background-color: var(--warning-subtle);
  border-color: var(--warning-border);
  color: var(--warning-accent);
}
.badge--destructive {
  background-color: var(--destructive-subtle);
  border-color: var(--destructive-border);
  color: var(--destructive-accent);
}
.badge--muted {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------- *
 * Avatar  (fixed-both; initials fallback)
 * --------------------------------------------------------------------- */
.avatar {
  --avatar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0; /* hide initials — the default avatar is the user icon below */
  overflow: hidden;
}
/* Default profile picture: a user icon tinted with the avatar's colour
   token (via mask, so it adapts to the plain and brand tones). */
.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 55%;
  height: 55%;
  background-color: currentColor;
  -webkit-mask: var(--avatar-icon) center / contain no-repeat;
  mask: var(--avatar-icon) center / contain no-repeat;
}
/* An avatar that supplies its own inline icon keeps it (no double icon) */
.avatar:has(.icon)::after,
.avatar:has(svg)::after {
  display: none;
}
.avatar--lg {
  width: 4rem;
  height: 4rem;
}
.avatar--brand {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
/* Inline icon avatars (sidebar / profile) — scale with the avatar size */
.avatar .icon {
  width: 55%;
  height: 55%;
}

/* --------------------------------------------------------------------- *
 * Detail list  (key/value rows — patient, appointment, …)
 * --------------------------------------------------------------------- */
.detail-list {
  display: grid;
  gap: var(--space-1);
}
.detail-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.detail-list__row:last-child {
  border-bottom: 0;
}
.detail-list__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}
.detail-list__label .icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}
.detail-list__value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--foreground);
  text-align: start;
}
.detail-list__value--code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  unicode-bidi: plaintext;
}

/* --------------------------------------------------------------------- *
 * State icon  (large tonal status disc — success / warning / error / info)
 * --------------------------------------------------------------------- */
.state-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.state-icon .icon {
  width: 2rem;
  height: 2rem;
}
.state-icon--success {
  background-color: var(--success-subtle);
  border-color: var(--success-border);
  color: var(--success-accent);
}
.state-icon--warning {
  background-color: var(--warning-subtle);
  border-color: var(--warning-border);
  color: var(--warning-accent);
}
.state-icon--destructive {
  background-color: var(--destructive-subtle);
  border-color: var(--destructive-border);
  color: var(--destructive-accent);
}
.state-icon--info {
  background-color: var(--info-subtle);
  border-color: var(--info-border);
  color: var(--info-accent);
}

/* --------------------------------------------------------------------- *
 * Card heading  (section title inside a card body)
 * --------------------------------------------------------------------- */
.card__heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  margin-block-end: var(--space-4);
}
.card__heading .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------- *
 * Tag group  (wrapping row of badges — allergies, chronic conditions…)
 * --------------------------------------------------------------------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------- *
 * Textarea  (design-system "Textarea" — multiline input)
 * --------------------------------------------------------------------- */
.textarea {
  width: 100%;
  min-height: 6rem;
  padding: var(--space-3);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.6;
  box-shadow: var(--shadow-xs);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea::placeholder {
  color: var(--muted-foreground);
}
.textarea:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-subtle);
}

/* Icon button with a destructive hover intent (e.g. remove-row) */
.icon-btn--danger:hover {
  color: var(--destructive-accent);
  background-color: var(--destructive-subtle);
}

/* --------------------------------------------------------------------- *
 * Select  (design-system "Select Trigger" — native select, styled)
 * --------------------------------------------------------------------- */
.select {
  height: var(--control-h);
  width: 100%;
  padding-inline: var(--space-3);
  padding-inline-end: var(--space-8);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--background);
  color: var(--foreground);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xs);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Caret sits at the inline-end edge in either direction */
[dir="rtl"] .select {
  background-position: left var(--space-3) center;
}
.select:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-subtle);
}

/* Disabled anchor-button (no real user action available) */
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Status badge tone (brand-tinted) — e.g. "وصل" in the appointment queue */
.badge--info {
  background-color: var(--info-subtle);
  border-color: var(--info-border);
  color: var(--info-accent);
}

/* --------------------------------------------------------------------- *
 * Service card  (selectable treatment in the services catalog)
 * A <label> wrapping a checkbox: selecting highlights the card and (via
 * treatment-plan.js) adds it to the treatment plan. Reuses .checkbox__box.
 * --------------------------------------------------------------------- */
.service-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: var(--ring-subtle);
}
.service-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.service-card .checkbox__box {
  margin-block-start: 0.125rem;
}
.service-card input:checked + .checkbox__box {
  background-color: var(--primary);
  border-color: var(--primary);
}
.service-card input:checked + .checkbox__box .icon {
  opacity: 1;
}
.service-card input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 3px var(--ring-subtle);
}
/* Selected (highlighted) state — driven by treatment-plan.js (.is-selected) with a
   :has() progressive-enhancement fallback. */
.service-card.is-selected,
.service-card:has(input:checked) {
  border-color: var(--primary);
  background-color: var(--info-subtle);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1;
}
.service-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
}
.service-card__desc {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  line-height: 1.5;
}
.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-start: var(--space-1);
}
.service-card__sessions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}
.service-card__sessions .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.service-card__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------- *
 * Quantity stepper  (− value + )
 * --------------------------------------------------------------------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty__btn {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--foreground);
  font-size: var(--text-base);
  line-height: 1;
  transition: background-color 0.15s ease;
}
.qty__btn:hover {
  background-color: var(--accent);
}
.qty__val {
  min-width: 1.75rem;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------- *
 * Toast  (design-system "Toast" — transient, action-triggered feedback)
 * Injected into a fixed viewport by toast.js; auto-dismisses. Uses the
 * tinted-container tone pattern. Occupies no permanent page space.
 * --------------------------------------------------------------------- */
.toast-viewport {
  position: fixed;
  inset-block-end: var(--space-6);
  inset-inline-start: var(--space-6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 18rem;
  max-width: 24rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  animation: toast-in 0.2s ease-out;
}
.toast.is-leaving {
  animation: toast-out 0.2s ease-in forwards;
}
.toast .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-block-start: 0.0625rem;
}
.toast--success {
  background-color: var(--success-subtle);
  border-color: var(--success-border);
  color: var(--success-accent);
}
.toast--destructive {
  background-color: var(--destructive-subtle);
  border-color: var(--destructive-border);
  color: var(--destructive-accent);
}
.toast--info {
  background-color: var(--info-subtle);
  border-color: var(--info-border);
  color: var(--info-accent);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

/* --------------------------------------------------------------------- *
 * Dialog  (design-system "Dialog" — native <dialog>, modal)
 * --------------------------------------------------------------------- */
.dialog {
  width: calc(100% - var(--space-8));
  max-width: 28rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-xl);
}
.dialog::backdrop {
  background-color: rgb(10 10 10 / 0.5);
}
.dialog__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.dialog__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
}
.dialog__desc {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: 1.6;
}
