@font-face {
  font-family: Vazirmatn;
  src: url('vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f7f4ec;
  --surface: #fffdf7;
  --raised: #edf0e7;
  --ink: #192923;
  --muted: #4d5d54;
  --line: #c9d2c5;
  --outline: #65776c;
  --primary: #114d3e;
  --on-primary: #ffffff;
  --primary-hover: #0f3c31;
  --accent: #e6eedf;
  --on-accent: #193a2f;
  --warning-bg: #fff0d6;
  --warning: #734604;
  --error-bg: #ffebe9;
  --error: #952f28;
  --focus: #14614d;
  --brand-surface: linear-gradient(135deg, #113e32, #1f5a47);
  --brand-ink: #fffaf0;
  --brand-gold: #efca88;
  --hero: linear-gradient(125deg, var(--accent), var(--surface) 88%);
  --sans: system-ui, Arial, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  font-family: var(--sans);
  background: var(--background);
  color: var(--ink);
  line-height: 1.65;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #151d19;
  --surface: #213029;
  --raised: #293d32;
  --ink: #f5f1e7;
  --muted: #c7d0c6;
  --line: #3d584a;
  --outline: #829c8d;
  --primary: #9be0c7;
  --on-primary: #102c22;
  --primary-hover: #b5ead6;
  --accent: #29463a;
  --on-accent: #d2f2e3;
  --warning-bg: #3c2d21;
  --warning: #ffde9a;
  --error-bg: #3f262b;
  --error: #ffc0bd;
  --focus: #b5ead6;
}
:root[data-theme='dark'] .brand img { content: url('dorost-logo-on-dark.png'); }
:root:lang(fa) { --sans: Vazirmatn, Tahoma, sans-serif; }
* { box-sizing: border-box; }
button, input, select { font: inherit; }
button, select { max-inline-size: 100%; }
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.appearance-control { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); }
.appearance-control select {
  inline-size: auto;
  min-block-size: 44px;
  padding: .35rem .55rem;
  border: 1px solid var(--outline);
  border-radius: .7rem;
  color: var(--ink);
  background: var(--surface);
}

.request-summary #network {
  display: inline-block;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

@media (max-width: 25rem) {
  #request .copy-actions { grid-template-columns: minmax(0, 1fr); }
  #request .copy-actions button { overflow-wrap: anywhere; }
  #request #amount { font-size: max(1rem, 4.3vw); }
}
