/* The themes' tokens (2.1.98, design audit 14.11): one file for the application, the landing and
   the help (docs/site.css) — a colour, a radius or the typeface is changed here, for all three.
   The application loads it before style.css; the help's pages before site.css, with theme.js,
   so the help opened from the application shows its theme and mode. */
/* 2.1.107 (design audit, third pass, owner 15.11): what is chosen — a switch's option, a toggle,
   a checkbox — is --control with its label in --on-control (graphite in Swiss and the base set,
   graphite in Gold light, yellow with dark type in Gold dark); --primary-edge: the 1 px edge of a
   filled main button, seen only in Gold light (yellow on a light page is 1.4:1) */
:root { --control: var(--primary); --on-control: var(--on-primary); --primary-edge: transparent;
  --logo-ring: transparent; --r-s: 6px; --r-l: 16px; }
/* 2.1.99 (аудит, второй проход): роли по смыслу — псевдонимы, одинаковые во всех наборах
   (у каждой темы свои --hint, --surface, --ok, --danger); объявлены и на [data-theme], чтобы
   образцы тем в профиле считали их по своей теме. --text-disabled и --focus — в каждом наборе. */
:root, [data-theme] { --info: var(--hint); --info-soft: var(--surface); --profit: var(--ok); --loss: var(--danger); }
/* Themes (30.10): each a set of colours and shapes, light and dark; one typeface, Inter, in all
   of them, on the landing and in the help (owner 14.11, design audit q.1). The user
   picks one in the profile; the page sets data-theme and data-mode on <html> (theme.js).
   The same attributes on any element restyle that element alone (the profile's previews).
   Every rule below uses the variables only. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Classic: the first look of the page — white, near-black type, one red accent, hairlines.
   Also what a page without data-theme shows. Owner 15.11: three themes to choose (Swiss Fintech,
   IT Blue, Gold); «Классика», «Терминал» and the white «Жёлтая» are gone from the choice —
   this set stays as the page's base (theme.js opens a saved «classic» as Swiss Fintech). */
:root, [data-theme="classic"] {
  --field-line: #878d95;
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 10px; --btn-radius: 10px; --field-radius: 10px; --logo-radius: 2px;
  --header-gap: 0px; --header-pad: 0px; --header-radius: 0px;
  --bg: #ffffff; --card: #ffffff; --card-border: #e4e5e9; --card-shadow: none;
  --surface: #f7f7f8; --line: #e4e5e9; --text: #121417; --hint: #62676f;
  --accent: #d81e2c; --accent-dark: #b8101d; --accent-soft: #fdeeef; --accent-text: #b8101d; --on-accent: #ffffff;
  --ok: #10703a; --ok-soft: #e6f3ea; --warn: #8a5200; --warn-soft: #fdf1de;
  --danger: #d81e2c; --danger-soft: #fef2f3; --muted-soft: #f7f7f8; --badge-border: #e4e5e9;
  --link: #121417; --field-bg: #ffffff;
  --header-bg: #ffffff; --header-text: #121417; --header-line: #e4e5e9; --header-shadow: none;
  --logo-bg: #d81e2c;
  --toast-bg: #121417; --toast-fg: #ffffff; --tg-bar: #ffffff;
  --tabs-inset: 0px; --tabs-radius: 0px; --tabs-shadow: none; --tabs-line: var(--line);
  --tabs-lift: 0px; --tabs-safe: env(safe-area-inset-bottom);
  color-scheme: light;
  --primary: #4b525d; --primary-dark: #3a4049; --on-primary: #ffffff;  --primary-text: #3a4049; --primary-soft: #eceef1;  /* owner 14.11: the main button is graphite in the red themes */
  --text-disabled: #a3a7ad; --focus: #121417;
}
[data-theme="classic"][data-mode="dark"] {
  --field-line: #6b7079;
  --bg: #121417; --card: #1a1d21; --card-border: #2c3036;
  --surface: #22262b; --line: #2c3036; --text: #f1f2f4; --hint: #a2a7af;
  --accent-soft: #3a1a1d; --accent-text: #ff7b84;
  --ok: #66eba3; --ok-soft: #15322a; --warn: #e9b25a; --warn-soft: #3a2c12;
  --danger: #ff6e78; --danger-soft: #3a1a1d; --muted-soft: #22262b; --badge-border: #2c3036;
  --link: #f1f2f4; --field-bg: #121417;
  --header-bg: #121417; --header-text: #f1f2f4; --header-line: #2c3036;
  --toast-bg: #f1f2f4; --toast-fg: #121417; --tg-bar: #121417;
  color-scheme: dark;
  --primary: #d3d6dc; --primary-dark: #b9bdc6; --on-primary: #15171c; --primary-text: #d3d6dc; --primary-soft: #2a2d33;
  --text-disabled: #6a6e75; --focus: #f1f2f4;
}

/* Swiss Fintech (the default): airy, white cards with soft shadows, a floating header,
   red buttons. One small rounding for every element in every theme (owner, 30.10). */
[data-theme="swiss"] {
  --field-line: #878d95;
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 10px; --btn-radius: 10px; --field-radius: 10px; --logo-radius: 3px;
  --header-gap: 10px; --header-pad: 16px; --header-radius: 10px;
  --tabs-inset: 10px; --tabs-radius: 10px; --tabs-shadow: var(--header-shadow); --tabs-line: transparent;
  --tabs-lift: env(safe-area-inset-bottom); --tabs-safe: 0px;
  --bg: #f6f7fb; --card: #ffffff; --card-border: #ffffff;
  --card-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .05);
  --surface: #eef0f4; --line: #e7e9f0; --text: #15171c; --hint: #5f6673;
  --accent: #c81920; --accent-dark: #b3141b; --accent-soft: #fdecec; --accent-text: #b3141b; --on-accent: #ffffff;
  --ok: #0d6b4c; --ok-soft: #e5f4ee; --warn: #8a5200; --warn-soft: #fdf1de;
  --danger: #c81920; --danger-soft: #fdecec; --muted-soft: #eef0f4; --badge-border: transparent;
  --link: #15171c; --field-bg: #ffffff;
  --header-bg: #ffffff; --header-text: #15171c; --header-line: transparent;
  --header-shadow: 0 6px 24px rgba(17, 24, 39, .08);
  --logo-bg: #c81920;  /* owner 15.11 (audit, q. 4): one red — the logo is the danger's */
  --toast-bg: #15171c; --toast-fg: #ffffff; --tg-bar: #f6f7fb;
  color-scheme: light;
  --primary: #4b525d; --primary-dark: #3a4049; --on-primary: #ffffff;  --primary-text: #3a4049; --primary-soft: #eceef1;  /* owner 14.11: the main button is graphite in the red themes */
  --text-disabled: #a1a6af; --focus: #15171c;
}
[data-theme="swiss"][data-mode="dark"] {
  --field-line: #6b7079;
  --bg: #0f1012; --card: #1b1c20; --card-border: #26282e; --card-shadow: none;
  --surface: #26282e; --line: #2c2e34; --text: #f2f3f5; --hint: #a0a6b0;
  /* the dark danger is a light red for text (#ff6b70); the logo square keeps the brand red, seen
     at 3.4:1 on the dark header (the light mode's #c81920 there: 2.9:1) */
  --accent: #d91f26; --logo-bg: #d91f26; --accent-soft: #3a1a1c; --accent-text: #ff7a7f;
  --ok: #4fd39b; --ok-soft: #15322a; --warn: #f2b85b; --warn-soft: #3a2c12;
  --danger: #ff6b70; --danger-soft: #3a1a1c; --muted-soft: #26282e;
  --link: #f2f3f5; --field-bg: #15161a;
  --header-bg: #1b1c20; --header-text: #f2f3f5; --header-line: #26282e; --header-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  --toast-bg: #f2f3f5; --toast-fg: #15171c; --tg-bar: #0f1012;
  color-scheme: dark;
  --primary: #d3d6dc; --primary-dark: #b9bdc6; --on-primary: #15171c; --primary-text: #d3d6dc; --primary-soft: #2a2d33;
  --text-disabled: #686d76; --focus: #f2f3f5;
}

/* IT Blue: businesslike — a solid blue header across the page, strict framed cards. */
[data-theme="blue"] {
  --field-line: #7f91ab;
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 10px; --btn-radius: 10px; --field-radius: 10px; --logo-radius: 3px;
  --header-gap: 0px; --header-pad: 0px; --header-radius: 0px;
  --bg: #f3f6fb; --card: #ffffff; --card-border: #dbe3ef; --card-shadow: none;
  --surface: #eef2f8; --line: #dbe3ef; --text: #0f1b2d; --hint: #55657a;
  --accent: #1d5fd6; --accent-dark: #174bb0; --accent-soft: #e6effd; --accent-text: #1a55c0; --on-accent: #ffffff;
  --ok: #0b6a3f; --ok-soft: #e3f3ea; --warn: #874f00; --warn-soft: #fdf0dc;
  --danger: #c0262d; --danger-soft: #fdecec; --muted-soft: #e9eef6; --badge-border: transparent;
  --link: #1a55c0; --field-bg: #ffffff;
  --header-bg: #0f2a57; --header-text: #ffffff; --header-line: #0f2a57; --header-shadow: none;
  --logo-bg: #ffffff;
  --toast-bg: #0f1b2d; --toast-fg: #ffffff; --tg-bar: #0f2a57;
  --tabs-inset: 10px; --tabs-radius: 10px; --tabs-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .08); --tabs-line: transparent;
  --tabs-lift: env(safe-area-inset-bottom); --tabs-safe: 0px;  /* owner 15.11: the bottom bar rounded, as in Swiss */
  color-scheme: light;
  --primary: var(--accent); --primary-dark: var(--accent-dark); --on-primary: var(--on-accent); --primary-text: var(--accent-text); --primary-soft: var(--accent-soft);
  --text-disabled: #9aa5b5; --focus: #1d5fd6;
}
[data-theme="blue"][data-mode="dark"] {
  --field-line: #5c6f92;
  --bg: #0b1220; --card: #131c2e; --card-border: #24314a;
  --surface: #1c2740; --line: #24314a; --text: #e6edf7; --hint: #97a6bc;
  --accent: #2f6fe0; --accent-dark: #245bc0; --accent-soft: #142a52; --accent-text: #7aa7ff;
  --ok: #46cf93; --ok-soft: #10301f; --warn: #f2b551; --warn-soft: #36290f;
  --danger: #ff6b70; --danger-soft: #3a1a1d; --muted-soft: #1c2740;
  --link: #7aa7ff; --field-bg: #0e1626;
  --header-bg: #0e1a30; --header-text: #e6edf7; --header-line: #24314a;
  --logo-bg: #2f6fe0;
  --toast-bg: #e6edf7; --toast-fg: #0b1220; --tg-bar: #0e1a30;
  color-scheme: dark;
  --text-disabled: #647084; --focus: #7aa7ff;
}

/* Gold (id «binance»; owner 15.11, before — «Binance»): Binance's colours without its
   logo — graphite, yellow buttons with dark type, green up and red down. */
[data-theme="binance"] {
  --field-line: #878d95; --control: #202630; --on-control: #ffffff; --logo-ring: #1e2329;
  --primary-edge: #7d6200;  /* owner 15.11 (audit, q. 2): the yellow button's edge, 5.3:1 on the page */
  --font: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 10px; --btn-radius: 10px; --field-radius: 10px; --logo-radius: 4px;
  --header-gap: 0px; --header-pad: 0px; --header-radius: 0px;
  /* owner 15.11 (audit, q. 3): the page a step greyer than the cards, as in the other themes; the
     surfaces (a switch's hover, the disabled button, the risk strip) a step below the page */
  --bg: #f5f5f5; --card: #fafafa; --card-border: #eaecef; --card-shadow: none;
  --surface: #eeeff1; --line: #eaecef; --text: #1e2329; --hint: #5f6873;
  --accent: #fcd535; --accent-dark: #f0b90b; --accent-soft: #fef6d8; --accent-text: #7d6200; --on-accent: #202630;
  --ok: #047049; --ok-soft: #e6f6ef; --warn: #9a5b00; --warn-soft: #fdf1dc;
  --danger: #c0243d; --danger-soft: #fdeaec; --muted-soft: #f0f1f3; --badge-border: transparent;
  --link: #1e2329; --field-bg: #ffffff;
  /* the header the page's colour with its hairline, as when both were white (a white header would
     stand as a block in the page's column); Telegram's bar the same */
  --header-bg: #f5f5f5; --header-text: #1e2329; --header-line: #eaecef; --header-shadow: none;
  --logo-bg: #fcd535;
  --toast-bg: #1e2329; --toast-fg: #ffffff; --tg-bar: #f5f5f5;
  --tabs-inset: 10px; --tabs-radius: 10px; --tabs-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .08); --tabs-line: transparent;
  --tabs-lift: env(safe-area-inset-bottom); --tabs-safe: 0px;  /* owner 15.11: the bottom bar rounded, as in Swiss */
  color-scheme: light;
  --primary: var(--accent); --primary-dark: var(--accent-dark); --on-primary: var(--on-accent); --primary-text: var(--accent-text); --primary-soft: var(--accent-soft);
  --text-disabled: #a0a6ad; --focus: #1e2329;
}
[data-theme="binance"][data-mode="dark"] {
  --field-line: #7a8089; --control: var(--primary); --on-control: var(--on-primary);
  --primary-edge: transparent; --logo-ring: transparent;
  --bg: #181a20; --card: #1e2329; --card-border: #2b3139;
  --surface: #2b3139; --line: #2b3139; --text: #eaecef; --hint: #9aa2ad;
  --accent-soft: #3a3317; --accent-text: #fcd535;
  --ok: #2ee59a; --ok-soft: #12302a;
  --warn: #ff9f43; --warn-soft: #3a2a14;  /* owner 15.11 (audit, q. 1): orange — #f0b90b was the button's yellow */
  --danger: #ff5c70; --danger-soft: #3b1d24; --muted-soft: #2b3139;
  --link: #eaecef; --field-bg: #2b3139;
  --header-bg: #181a20; --header-text: #eaecef; --header-line: #2b3139;
  --toast-bg: #eaecef; --toast-fg: #181a20; --tg-bar: #181a20;
  color-scheme: dark;
  --text-disabled: #686f78; --focus: #eaecef;
}
