/* HR Flow themes. <html> carries data-style (classic | strict | soft | portal), data-theme (light | dark),
   data-font (style | system | golos | inter), data-density (normal | compact) and data-motion (reduce).
   style.css only uses the variables below; a new style is one more block here. See docs/design-options.md. */

@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Classic (light) — the original HR Flow look, also the fallback ---------- */
:root {
  color-scheme: light;
  --system-font: "Segoe UI", Roboto, Arial, sans-serif;
  --style-font: var(--system-font);
  --font-family: var(--style-font);

  --bg: #f6f8f7;
  --surface: #fff;
  --ink: #1b302d;
  --ink-soft: #536b62;
  --ink-faint: #7a8c84;
  --ink-strong: #31473e;
  --line: #dbe3df;
  --line-soft: #edf1ee;
  --line-dashed: #cbd6ce;
  --control-border: #cbd8d2;
  --input-border: #bdcec4;
  --accent: #165f53;
  --accent-ink: #165f53;
  --on-accent: #fff;
  --focus: #34a58c;
  --hover-bg: #edf4ef;
  --soft-bg: #f1f5f2;
  --tile-bg: #e8f1e9;
  --tile-ink: #306046;
  --lane-bg: #edf1ef;
  --lane-count-bg: #e1e8e3;
  --avatar-bg: #e1ebe4;
  --tone1-bg: #e8e4f3;
  --tone1-ink: #5f527b;
  --tone2-bg: #f6e8d6;
  --tone2-ink: #795b39;
  --tone3-bg: #deebf1;
  --tone3-ink: #42657a;
  --stage-cell-bg: #f5f8f6;
  --count-new-bg: #e0eaf6;
  --count-new-ink: #345376;
  --count-contact-bg: #efe6f4;
  --count-contact-ink: #704f83;
  --count-interview-bg: #f7ecda;
  --count-interview-ink: #77562b;
  --count-offer-bg: #dfefe5;
  --count-offer-ink: #306849;
  --count-rejected-bg: #f1e5e3;
  --count-rejected-ink: #845653;
  --dot-new: #6889b3;
  --dot-contact: #ac80ba;
  --dot-interview: #c39054;
  --dot-offer: #57937b;
  --dot-rejected: #a17c79;
  --event-out-bg: #e8f2ed;
  --event-stage-line: #b9cbc0;
  --notice-bg: #fff0d4;
  --contact-bg: #f6f9f7;
  --contact-ink: #24493e;
  --telegram: #1477a5;
  --whatsapp: #24794e;
  --warn: #8a5a00;
  --dialog-shadow: 0 20px 65px #132d2929;
  --backdrop: #15282373;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2348665a' stroke-width='1.6'/%3E%3C/svg%3E");

  --rail-bg: #192e2b;
  --rail-border: transparent;
  --rail-ink: #edf6ef;
  --rail-muted: #b5c9bf;
  --rail-item: #d8e5dd;
  --rail-active-bg: #325047;
  --rail-active-ink: #e1f7d5;
  --rail-line: #41554d;
  --rail-avatar-bg: #3d5c50;
  --rail-avatar-ink: #e8f6da;
  --mark-bg: #bde9af;
  --mark-ink: #193f31;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-dialog: 17px;
  --shadow-card: none;
}

/* Dark base shared by every style; each style below only changes its hue. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111a18;
  --surface: #18231f;
  --ink: #e3ece8;
  --ink-soft: #a3b5ad;
  --ink-faint: #7f918a;
  --ink-strong: #f0f6f3;
  --line: #2a3a35;
  --line-soft: #22302c;
  --line-dashed: #34463f;
  --control-border: #34463f;
  --input-border: #3c5049;
  --accent: #24806b;
  --accent-ink: #7fd1b9;
  --on-accent: #fff;
  --focus: #5cc8ad;
  --hover-bg: #20302b;
  --soft-bg: #1d2a26;
  --tile-bg: #20352d;
  --tile-ink: #9fd9bd;
  --lane-bg: #141f1c;
  --lane-count-bg: #22302c;
  --avatar-bg: #263a33;
  --tone1-bg: #2c2840;
  --tone1-ink: #cdc2f2;
  --tone2-bg: #3a2e1f;
  --tone2-ink: #eccea4;
  --tone3-bg: #1e3240;
  --tone3-ink: #add0e5;
  --stage-cell-bg: #1d2a26;
  --count-new-bg: #1f2d40;
  --count-new-ink: #b0cbee;
  --count-contact-bg: #2f2438;
  --count-contact-ink: #dcc0e8;
  --count-interview-bg: #3a2f1d;
  --count-interview-ink: #ebc995;
  --count-offer-bg: #1d3528;
  --count-offer-ink: #a5dcba;
  --count-rejected-bg: #3a2624;
  --count-rejected-ink: #e9b9b3;
  --dot-new: #8eaad3;
  --dot-contact: #c49ed1;
  --dot-interview: #d9a86d;
  --dot-offer: #74b498;
  --dot-rejected: #c19995;
  --event-out-bg: #1e302a;
  --event-stage-line: #3c5049;
  --notice-bg: #3d3018;
  --contact-bg: #16211e;
  --contact-ink: #cfe3db;
  --telegram: #5cbbe6;
  --whatsapp: #55c792;
  --warn: #e6b964;
  --dialog-shadow: 0 20px 65px rgba(0, 0, 0, 0.55);
  --backdrop: rgba(0, 0, 0, 0.6);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a3b5ad' stroke-width='1.6'/%3E%3C/svg%3E");
  --rail-bg: #0c1412;
  --rail-line: #26362f;
}

/* ---------- Strict: neutral slate, white sidebar, thin lines, small radii, no shadows ---------- */
[data-style="strict"] {
  --style-font: "Inter", var(--system-font);
  --bg: #f4f6f8;
  --ink: #1c2430;
  --ink-soft: #586273;
  --ink-faint: #7b8594;
  --ink-strong: #2a3442;
  --line: #dde2e8;
  --line-soft: #eceff3;
  --line-dashed: #cfd5dd;
  --control-border: #cfd5dd;
  --input-border: #c2c9d3;
  --accent: #2f5d8a;
  --accent-ink: #2f5d8a;
  --focus: #4d8ccc;
  --hover-bg: #eef2f6;
  --soft-bg: #f2f4f7;
  --tile-bg: #e8eef5;
  --tile-ink: #2f5d8a;
  --lane-bg: #f0f2f5;
  --lane-count-bg: #e3e7ec;
  --avatar-bg: #e5e9ef;
  --stage-cell-bg: #f4f6f8;
  --event-out-bg: #edf2f8;
  --event-stage-line: #c2c9d3;
  --contact-bg: #f7f8fa;
  --contact-ink: #2a3442;
  --rail-bg: #fff;
  --rail-border: #dde2e8;
  --rail-ink: #1c2430;
  --rail-muted: #6b7584;
  --rail-item: #3b4654;
  --rail-active-bg: #e8eef5;
  --rail-active-ink: #2f5d8a;
  --rail-line: #dde2e8;
  --rail-avatar-bg: #e5e9ef;
  --rail-avatar-ink: #2a3442;
  --mark-bg: #2f5d8a;
  --mark-ink: #fff;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-dialog: 8px;
  --shadow-card: none;
}
[data-style="strict"][data-theme="dark"] {
  --bg: #12161c;
  --surface: #1a2029;
  --ink: #e4e8ee;
  --ink-soft: #a0aab8;
  --ink-faint: #7f8896;
  --ink-strong: #f1f4f8;
  --line: #2a323d;
  --line-soft: #222933;
  --line-dashed: #343d49;
  --control-border: #343d49;
  --input-border: #3c4552;
  --accent: #3b6fa3;
  --accent-ink: #93bde8;
  --focus: #6ea6dd;
  --hover-bg: #212937;
  --soft-bg: #1f2630;
  --tile-bg: #1f2c3c;
  --tile-ink: #a9c9ec;
  --lane-bg: #161b22;
  --lane-count-bg: #232a34;
  --avatar-bg: #26303c;
  --stage-cell-bg: #1f2630;
  --event-out-bg: #1f2a38;
  --event-stage-line: #3c4552;
  --contact-bg: #171c24;
  --contact-ink: #d5dde8;
  --rail-bg: #161b22;
  --rail-border: #2a323d;
  --rail-ink: #e4e8ee;
  --rail-muted: #8d97a5;
  --rail-item: #c3cbd6;
  --rail-active-bg: #233246;
  --rail-active-ink: #b9d4f1;
  --rail-line: #2a323d;
  --rail-avatar-bg: #26303c;
  --rail-avatar-ink: #e4e8ee;
}

/* ---------- Soft: warm light background, large radii, airy, terracotta accent ---------- */
[data-style="soft"] {
  --style-font: "Golos Text", var(--system-font);
  --bg: #faf7f4;
  --ink: #2b2622;
  --ink-soft: #6c625a;
  --ink-faint: #8f857c;
  --ink-strong: #3a332d;
  --line: #ece4dc;
  --line-soft: #f3ede7;
  --line-dashed: #e0d5ca;
  --control-border: #e3d8ce;
  --input-border: #dccfc3;
  --accent: #b4583a;
  --accent-ink: #9c4930;
  --focus: #d98a6c;
  --hover-bg: #f6ede6;
  --soft-bg: #f7f1ec;
  --tile-bg: #f6e6dd;
  --tile-ink: #9c4930;
  --lane-bg: #f4eee8;
  --lane-count-bg: #ebe1d8;
  --avatar-bg: #f0e5dc;
  --stage-cell-bg: #faf5f1;
  --event-out-bg: #f6ebe4;
  --event-stage-line: #e0cfc2;
  --contact-bg: #fbf8f5;
  --contact-ink: #4a3d33;
  --rail-bg: #f3ece5;
  --rail-border: transparent;
  --rail-ink: #2b2622;
  --rail-muted: #8a7e74;
  --rail-item: #4d433b;
  --rail-active-bg: #fff;
  --rail-active-ink: #9c4930;
  --rail-line: #e3d8ce;
  --rail-avatar-bg: #fff;
  --rail-avatar-ink: #4d433b;
  --mark-bg: #b4583a;
  --mark-ink: #fff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-dialog: 22px;
  --shadow-card: 0 4px 18px rgba(90, 55, 30, 0.07);
}
[data-style="soft"][data-theme="dark"] {
  --bg: #1a1613;
  --surface: #231e1a;
  --ink: #efe7e0;
  --ink-soft: #b8aba0;
  --ink-faint: #918479;
  --ink-strong: #f7f1eb;
  --line: #372f29;
  --line-soft: #2c2622;
  --line-dashed: #40372f;
  --control-border: #40372f;
  --input-border: #4a4037;
  --accent: #b4583a;
  --accent-ink: #f0a487;
  --focus: #e09b80;
  --hover-bg: #2e2621;
  --soft-bg: #2a231f;
  --tile-bg: #3a271f;
  --tile-ink: #f0b79f;
  --lane-bg: #1f1a17;
  --lane-count-bg: #2e2621;
  --avatar-bg: #332a24;
  --stage-cell-bg: #2a231f;
  --event-out-bg: #33261f;
  --event-stage-line: #4a4037;
  --contact-bg: #201b18;
  --contact-ink: #e6d9ce;
  --rail-bg: #1f1a16;
  --rail-ink: #efe7e0;
  --rail-muted: #9c8f84;
  --rail-item: #d6c9be;
  --rail-active-bg: #33261f;
  --rail-active-ink: #f0a487;
  --rail-line: #372f29;
  --rail-avatar-bg: #33261f;
  --rail-avatar-ink: #efe7e0;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* ---------- Portal: tokens of the Connected Home internal portal (warm cream, orange accent) ---------- */
[data-style="portal"] {
  --style-font: "Golos Text", Roboto, var(--system-font);
  --bg: #fff8f3;
  --page-bg:
    radial-gradient(1000px 480px at 5% -10%, rgba(255, 102, 0, 0.16), transparent 60%),
    radial-gradient(800px 420px at 100% 5%, rgba(255, 102, 0, 0.1), transparent 60%),
    linear-gradient(180deg, #fff3ea 0%, #fff8f3 40%) fixed;
  --ink: #040404;
  --ink-soft: #5e5e5e;
  --ink-faint: #7a7a7a;
  --ink-strong: #1d1d1d;
  --line: #f2ded2;
  --line-soft: #f7ebe3;
  --line-dashed: #ecd2c2;
  --control-border: #ecd5c7;
  --input-border: #e9cfbf;
  --accent: #ff6600;
  /* Orange text on white needs a darker shade to stay readable (contrast ≥ 4.5:1). */
  --accent-ink: #b84a00;
  --focus: #ff8a3d;
  --hover-bg: #fff2e8;
  --soft-bg: #fff4ec;
  --tile-bg: #ffe5d1;
  --tile-ink: #b84a00;
  --lane-bg: #fff3ea;
  --lane-count-bg: #ffe5d1;
  --avatar-bg: #ffe5d1;
  --stage-cell-bg: #fffaf6;
  --event-out-bg: #fff0e4;
  --event-stage-line: #f2ded2;
  --contact-bg: #fffaf6;
  --contact-ink: #3a2a20;
  --rail-bg: transparent;
  --rail-border: transparent;
  --rail-ink: #040404;
  --rail-muted: #6b6b6b;
  --rail-item: #5e5e5e;
  --rail-active-bg: #ff6600;
  --rail-active-ink: #fff;
  --rail-line: #f2ded2;
  --rail-avatar-bg: #ffe5d1;
  --rail-avatar-ink: #b84a00;
  --mark-bg: #ff6600;
  --mark-ink: #fff;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-dialog: 14px;
  --shadow-card: 0 6px 20px rgba(255, 102, 0, 0.08);
}
[data-style="portal"][data-theme="dark"] {
  --bg: #121417;
  --page-bg: #121417;
  --surface: #1e2227;
  --ink: #eceef0;
  --ink-soft: #a0a6ad;
  --ink-faint: #858b92;
  --ink-strong: #f6f7f8;
  --line: #2e343a;
  --line-soft: #252a30;
  --line-dashed: #383f46;
  --control-border: #383f46;
  --input-border: #414950;
  --accent: #e65c00;
  --accent-ink: #ff9a55;
  --focus: #ff8a3d;
  --hover-bg: #2a1e17;
  --soft-bg: #191c20;
  --tile-bg: #4a2814;
  --tile-ink: #ffb27a;
  --lane-bg: #191c20;
  --lane-count-bg: #2a1e17;
  --avatar-bg: #2a1e17;
  --stage-cell-bg: #191c20;
  --event-out-bg: #2a1e17;
  --event-stage-line: #383f46;
  --contact-bg: #191c20;
  --contact-ink: #e1e4e7;
  --rail-bg: transparent;
  --rail-ink: #eceef0;
  --rail-muted: #8d939a;
  --rail-item: #b5bbc2;
  --rail-active-bg: #e65c00;
  --rail-active-ink: #fff;
  --rail-line: #2e343a;
  --rail-avatar-bg: #2a1e17;
  --rail-avatar-ink: #ffb27a;
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Text, density, motion ---------- */
[data-font="system"] { --font-family: var(--system-font); }
[data-font="golos"] { --font-family: "Golos Text", var(--system-font); }
[data-font="inter"] { --font-family: "Inter", var(--system-font); }
[data-font-size="90"] { --font-size: 90%; }
[data-font-size="112"] { --font-size: 112%; }
[data-font-size="125"] { --font-size: 125%; }
/* Same approach as the portal: compact mode scales the whole layout, not only the text. */
[data-density="compact"] body { zoom: 0.92; }
[data-motion="reduce"] *,
[data-motion="reduce"] *::before,
[data-motion="reduce"] *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}
