/* SHER GARANT · tokens.css · generated from tokens.json — не редактировать руками */
:root {
  color-scheme: light;
  --ink-50: #EEF0FF;
  --ink-100: #DFE2FF;
  --ink-200: #C3C8FF;
  --ink-300: #9DA4FF;
  --ink-400: #7178FF;
  --ink-500: #4F55F7;
  --ink-600: #3B3DE3;
  --ink-700: #3030BA;
  --ink-800: #272991;
  --ink-900: #1C1E66;
  --graphite-0: #FFFFFF;
  --graphite-25: #FAFAF9;
  --graphite-50: #F4F4F2;
  --graphite-100: #EAEAE7;
  --graphite-200: #DADAD6;
  --graphite-300: #BDBDB8;
  --graphite-400: #8E9098;
  --graphite-500: #686B74;
  --graphite-600: #4A4D55;
  --graphite-700: #2A2C33;
  --graphite-800: #1A1B21;
  --graphite-850: #14151A;
  --graphite-900: #0F1014;
  --graphite-950: #0A0B0E;
  --green-400: #3CCB8E;
  --green-500: #17A86A;
  --green-600: #0E8A55;
  --amber-400: #F4BA3A;
  --amber-500: #D99A0B;
  --amber-600: #A87404;
  --vermilion-400: #FF7552;
  --vermilion-500: #E5532D;
  --vermilion-600: #BF3D1C;
  --teal-400: #2DC2BE;
  --teal-500: #0E9896;
  --teal-600: #0A7A78;
  --magenta-400: #E266BA;
  --magenta-500: #C8399B;
  --magenta-600: #A32B7E;
  --bg: #F4F4F2;
  --bg-sunken: #EAEAE7;
  --surface: #FFFFFF;
  --surface-2: #FAFAF9;
  --surface-hover: #F4F4F2;
  --overlay: rgba(15,16,20,.42);
  --line: #E2E2DE;
  --line-strong: #C9C9C4;
  --text: #111216;
  --text-2: #4A4D55;
  --text-3: #6B6E77;
  --text-inverse: #FFFFFF;
  --brand: #3B3DE3;
  --brand-hover: #3030BA;
  --brand-soft: #EEF0FF;
  --brand-text: #3030BA;
  --on-brand: #FFFFFF;
  --focus: #4F55F7;
  --success: #0E8A55;
  --success-soft: #E5F6EE;
  --warning: #A87404;
  --warning-soft: #FDF3DC;
  --danger: #BF3D1C;
  --danger-soft: #FDECE6;
  --seller: #0A7A78;
  --seller-soft: #E2F5F4;
  --buyer: #A32B7E;
  --buyer-soft: #FAE8F4;
  --ai: #3B3DE3;
  --ai-soft: #F1F2FF;
  --unread: #3B3DE3;
  --hypo: #5A4FCF;
  --hypo-soft: #F3F1FF;
  --fact: #0E8A55;
  --scrim: rgba(15,16,20,.04);
  --shadow-sm: 0 1px 2px rgba(17,18,22,.06);
  --shadow-md: 0 4px 16px -4px rgba(17,18,22,.12), 0 1px 2px rgba(17,18,22,.06);
  --shadow-lg: 0 24px 48px -12px rgba(17,18,22,.22);
  --font-display: 'Geologica', 'Onest', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-display: 56px; --lh-display: 58px; --ls-display: -0.035em;
  --fs-h1: 40px; --lh-h1: 44px; --ls-h1: -0.03em;
  --fs-h2: 28px; --lh-h2: 32px; --ls-h2: -0.02em;
  --fs-h3: 20px; --lh-h3: 26px; --ls-h3: -0.01em;
  --fs-body-lg: 17px; --lh-body-lg: 26px; --ls-body-lg: 0;
  --fs-body: 15px; --lh-body: 22px; --ls-body: 0;
  --fs-ui: 14px; --lh-ui: 20px; --ls-ui: 0;
  --fs-caption: 13px; --lh-caption: 18px; --ls-caption: 0.005em;
  --fs-amount: 32px; --lh-amount: 36px; --ls-amount: -0.02em;
  --fs-mono: 13px; --lh-mono: 18px; --ls-mono: 0;
  --fs-label: 12px; --lh-label: 16px; --ls-label: 0.01em;
  --fs-ui-dense: 13px; --lh-ui-dense: 18px; --ls-ui-dense: 0;
  --sp-0: 0px;
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 20px;
  --sp-7: 24px;
  --sp-8: 32px;
  --sp-9: 40px;
  --sp-10: 56px;
  --sp-11: 72px;
  --sp-12: 96px;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --size-control-sm: 32px;
  --size-control-md: 40px;
  --size-control-lg: 48px;
  --size-touch-min: 44px;
  --size-icon-sm: 16px;
  --size-icon-md: 20px;
  --size-header: 56px;
  --size-panel-queue: 320px;
  --size-panel-ai: 380px;
  --size-content-max: 1200px;
  --size-rail: 52px;
  --size-pane-min: 160px;
  --size-control-xs: 24px;
  --dur-instant: 80ms;
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
  --dur-seal: 640ms;
  --dur-tooltip: 120ms;
  --ease-standard: cubic-bezier(.2,.8,.2,1);
  --ease-enter: cubic-bezier(.16,1,.3,1);
  --ease-exit: cubic-bezier(.4,0,1,1);
  --ease-press: cubic-bezier(.3,1.5,.6,1);
  --z-base: 0;
  --z-sticky: 10;
  --z-dropdown: 40;
  --z-drawer: 60;
  --z-modal: 80;
  --z-toast: 100;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0D0E11;
  --bg-sunken: #08090B;
  --surface: #131418;
  --surface-2: #17181D;
  --surface-hover: #1D1E24;
  --overlay: rgba(0,0,0,.6);
  --line: #24262D;
  --line-strong: #33353E;
  --text: #E8E8EB;
  --text-2: #AEB0B8;
  --text-3: #80838D;
  --text-inverse: #0A0B0E;
  --brand: #5B61FF;
  --brand-hover: #7178FF;
  --brand-soft: #1A1C3D;
  --brand-text: #A3A9FF;
  --on-brand: #FFFFFF;
  --focus: #7178FF;
  --success: #3CCB8E;
  --success-soft: #0F2A1F;
  --warning: #F4BA3A;
  --warning-soft: #2D2310;
  --danger: #FF7552;
  --danger-soft: #311711;
  --seller: #2DC2BE;
  --seller-soft: #0D2726;
  --buyer: #E266BA;
  --buyer-soft: #2C1226;
  --ai: #9DA4FF;
  --ai-soft: #15172E;
  --unread: #7C82FF;
  --hypo: #B3A8FF;
  --hypo-soft: #1C1930;
  --fact: #3CCB8E;
  --scrim: rgba(255,255,255,.03);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-lg: 0 32px 64px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
  color-scheme: dark;
  --bg: #0D0E11;
  --bg-sunken: #08090B;
  --surface: #131418;
  --surface-2: #17181D;
  --surface-hover: #1D1E24;
  --overlay: rgba(0,0,0,.6);
  --line: #24262D;
  --line-strong: #33353E;
  --text: #E8E8EB;
  --text-2: #AEB0B8;
  --text-3: #80838D;
  --text-inverse: #0A0B0E;
  --brand: #5B61FF;
  --brand-hover: #7178FF;
  --brand-soft: #1A1C3D;
  --brand-text: #A3A9FF;
  --on-brand: #FFFFFF;
  --focus: #7178FF;
  --success: #3CCB8E;
  --success-soft: #0F2A1F;
  --warning: #F4BA3A;
  --warning-soft: #2D2310;
  --danger: #FF7552;
  --danger-soft: #311711;
  --seller: #2DC2BE;
  --seller-soft: #0D2726;
  --buyer: #E266BA;
  --buyer-soft: #2C1226;
  --ai: #9DA4FF;
  --ai-soft: #15172E;
  --unread: #7C82FF;
  --hypo: #B3A8FF;
  --hypo-soft: #1C1930;
  --fact: #3CCB8E;
  --scrim: rgba(255,255,255,.03);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-lg: 0 32px 64px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
  }
}
@media (max-width: 600px) {
  :root {
    --fs-display: 36px; --lh-display: 40px;
    --fs-h1: 30px; --lh-h1: 34px;
    --fs-h2: 24px; --lh-h2: 27px;
    --fs-h3: 18px; --lh-h3: 20px;
    --fs-body-lg: 16px; --lh-body-lg: 24px;
    --fs-body: 15px; --lh-body: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; --dur-seal: 0ms; }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg, #f4f4f2);
  color: var(--text, #111216);
  font:
    16px/1.48 Onest,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7178ff;
  outline-offset: 2px;
}
.shell {
  width: min(100%, 600px);
  margin: auto;
  padding: clamp(12px, 3.5vw, 26px);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.toolbar,
.strip,
.row,
.buttons,
.top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar {
  justify-content: space-between;
  margin: 12px 0 24px;
}
.toolbar img {
  width: 160px;
  max-width: 42%;
  height: auto;
}
.mode {
  display: flex;
  background: #e2e3e1;
  border-radius: 22px;
  padding: 3px;
}
.mode button {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 13px;
  min-height: 36px;
}
.mode .on {
  background: white;
  color: #272991;
}
.card {
  background: white;
  border: 1px solid #dddeda;
  border-radius: 17px;
  overflow: hidden;
}
.art {
  display: block;
  width: 100%;
  height: auto;
}
.pad {
  padding: clamp(16px, 4vw, 25px);
}
h1,
h2,
h3 {
  font-family: Geologica, system-ui, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(25px, 5vw, 32px);
}
h2 {
  font-size: 21px;
}
p {
  margin: 0 0 15px;
}
p:last-child {
  margin-bottom: 0;
}
.caption {
  color: #484b57;
}
.fee {
  font-weight: 600;
  font-size: 15px;
}
.menu-title {
  font-size: 15px;
  font-weight: 650;
  margin: 18px 0 7px;
}
.grid {
  display: grid;
  gap: 6px;
}
.buttons {
  align-items: stretch;
}
.buttons > * {
  flex: 1;
  min-width: 0;
}
.action {
  border: 1px solid #d9dbde;
  background: #fff;
  border-radius: 9px;
  min-height: 44px;
  padding: 9px 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.action:hover {
  background: #f3f3fd;
}
.action.primary {
  background: #3b3de3;
  border-color: #3b3de3;
  color: white;
}
.action.quiet {
  color: #3030ba;
  background: #eef0ff;
  border-color: #e5e6fe;
}
.note {
  font-size: 13px;
  color: #646875;
  margin: 14px 4px;
}
.bar {
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.bar .action,
.copy {
  font-size: 13px;
  min-height: 40px;
}
.card .pad .grid {
  margin-top: 12px;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 550;
  margin: 12px 0;
}
.field input,
.field textarea,
.field select,
.pick {
  border: 1px solid #bfc3c7;
  border-radius: 8px;
  background: #fff;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}
.field textarea {
  min-height: 83px;
  resize: vertical;
}
.field input[type="range"] {
  padding: 0;
}
.box {
  background: #f5f5f4;
  padding: 14px;
  border-radius: 10px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.box strong,
.box code,
.box small {
  display: block;
}
.box code {
  font: 14px/1.5 monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
.box small {
  color: #565b67;
}
.list {
  display: grid;
  gap: 8px;
}
.item {
  text-align: left;
  display: grid;
  gap: 3px;
  width: 100%;
}
.item small {
  color: #55596a;
}
.alert {
  color: #842d17;
  background: #fff0e8;
  border-radius: 8px;
  padding: 12px;
}
.status {
  display: inline-block;
  font-size: 13px;
  color: #3030ba;
  background: #eef0ff;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.strip {
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}
.strip b {
  font-variant-numeric: tabular-nums;
}
.tile {
  min-width: 0;
}
#feedback {
  margin: 10px 2px;
  color: #3438ac;
}
.demo-line {
  text-align: center;
  font-size: 12px;
  color: #646875;
  margin-top: 16px;
}
.langs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
label {
  overflow-wrap: anywhere;
}
select {
  max-width: 100%;
}
.box .action {
  margin-top: 8px;
}
@media (max-width: 360px) {
  .action {
    font-size: 14px;
    padding: 8px;
  }
  .shell {
    padding: 10px;
  }
  .toolbar img {
    width: 140px;
  }
}

@font-face {
  font-family: Onest;
  src:
    local("Onest"),
    url("./fonts/Onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Geologica;
  src:
    local("Geologica"),
    url("./fonts/Geologica.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
.sg-grid {
  display: grid;
  gap: 8px;
}
.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.sg-actions .action {
  flex: 1 1 auto;
}
.field input[type="file"] {
  max-width: 100%;
}
.pad {
  overflow-wrap: anywhere;
}
.pad img.safe,
.pad video {
  max-width: 100%;
  max-height: 360px;
}
.muted {
  color: var(--text-2);
}
small {
  display: block;
}
.check {
  white-space: pre-wrap;
}
.subject {
  margin: 0.3em 0;
}
.toolbar select {
  width: auto;
  max-width: 47%;
}
.step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}
.alert:empty {
  display: none;
}
button:disabled {
  opacity: 0.55;
}
.balance {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.actions-nav {
  margin-bottom: 8px;
}
.brand-footer {
  width: 125px;
  margin: 20px auto;
  display: block;
}
