/* Self-hosted variable fonts. License files sit beside the font files. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(./typography-5.3.0/golos-text-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(./typography-5.3.0/golos-text-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: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(./typography-5.3.0/golos-text-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(./typography-5.3.0/golos-text-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;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(./typography-5.3.0/lora-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(./typography-5.3.0/lora-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: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(./typography-5.3.0/lora-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(./typography-5.3.0/lora-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;
}

/* Color tokens retain Orbium's existing semantic colors and theme controls. */
:root {
  --font: "Golos Text", Onest, system-ui, sans-serif;
  --serif: Lora, Georgia, serif;
  --bg: #edf2e8;
  --solid: #fbfdf8;
  --text: #142c22;
  --muted: #4c6457;
  --glass: #f7faf4;
  --glass2: #fdfefb;
  --field: #f0f5ed;
  --line: #cfdbce;
  --accent: #205e45;
  --on-accent: #fff;
  --accent2: #307d56;
  --gold: #8b590e;
  --pill: #e6efdc;
  --on-pill: #28533c;
  --danger: #a1312b;
  --pr-low: #82958a;
  --pr-med: #408a62;
  --pr-high: #b6772e;
  --pr-urg: #c35749;
  --logo: #17382a;
  --deco: none;
  --shadow: 0 1px 2px #112b1d0a, 0 12px 35px #162e1d0b;
  --forest-mist: #cfdfc0;
  --forest-light: #f9faf3;
  --forest-hover: #ebf4e6;
  --forest-header: #f3f7efed;
  --forest-focus: #276a4b;
  --forest-radius: 19px;
}

:root[data-theme="dark"] {
  --bg: #0b1712;
  --solid: #15261d;
  --text: #edf6eb;
  --muted: #afc6b6;
  --glass: #14241b;
  --glass2: #1a2e22;
  --field: #192c21;
  --line: #364d3e;
  --accent: #c7e9a2;
  --on-accent: #14291d;
  --accent2: #84c89f;
  --gold: #efd28a;
  --pill: #263d2d;
  --on-pill: #d7ecb9;
  --danger: #ff9a8a;
  --pr-low: #95ac9e;
  --pr-med: #86c99c;
  --pr-high: #e4b16c;
  --pr-urg: #f78f80;
  --logo: #edf6eb;
  --deco: none;
  --shadow: 0 1px 2px #030a06aa, 0 12px 36px #040d0866;
  --forest-mist: #1d3728;
  --forest-light: #15261c;
  --forest-hover: #203729;
  --forest-header: #101e17ed;
  --forest-focus: #d1efa9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1712;
    --solid: #15261d;
    --text: #edf6eb;
    --muted: #afc6b6;
    --glass: #14241b;
    --glass2: #1a2e22;
    --field: #192c21;
    --line: #364d3e;
    --accent: #c7e9a2;
    --on-accent: #14291d;
    --accent2: #84c89f;
    --gold: #efd28a;
    --pill: #263d2d;
    --on-pill: #d7ecb9;
    --danger: #ff9a8a;
    --pr-low: #95ac9e;
    --pr-med: #86c99c;
    --pr-high: #e4b16c;
    --pr-urg: #f78f80;
    --logo: #edf6eb;
    --deco: none;
    --shadow: 0 1px 2px #030a06aa, 0 12px 36px #040d0866;
    --forest-mist: #1d3728;
    --forest-light: #15261c;
    --forest-hover: #203729;
    --forest-header: #101e17ed;
    --forest-focus: #d1efa9;
  }
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 96% 0, var(--forest-mist), transparent 48%),
    radial-gradient(ellipse at 0 26%, var(--forest-light), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

main {
  max-width: 1380px;
  padding: 24px clamp(16px, 3.5vw, 48px) 28px;
}

header {
  background: var(--forest-header);
  border-color: var(--line);
  box-shadow: 0 3px 16px #091b130b;
  padding-inline: clamp(12px, 3vw, 40px);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

header .brand { flex: none; }
header .me { min-width: 0; }
header .me .hide {
  min-width: 0;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-row { min-width: 0; }
.tl {
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
  padding-inline: 8px;
}
.tl .ic { color: var(--accent2); }
.tl.router-link-active {
  background: var(--pill);
  border-color: var(--line);
  color: var(--accent);
}

h2 {
  font-size: clamp(25px, 4vw, 39px);
  letter-spacing: -.032em;
  font-weight: 650;
}
.sect, .box h3, .col h3, .home3 h3, .home2 h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--text);
}
.sect {
  font-size: clamp(21px, 3vw, 28px);
  letter-spacing: -.035em;
  margin: 30px 0 12px;
}

.box, .pcard, .col {
  background-color: var(--glass);
  border-radius: var(--forest-radius);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.box { padding: clamp(15px, 2vw, 23px); }
.box.panel, .modal > .box { background-color: var(--solid); }

:where(a, button, input, select, textarea, summary):focus-visible,
#experimental-style-toggle:focus-visible {
  outline: 2px solid var(--forest-focus);
  outline-offset: 3px;
}

button.pri {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  font-weight: 650;
  background-image: linear-gradient(180deg, #ffffff19, transparent);
  box-shadow: inset 0 1px #ffffff26, 0 3px 10px #17382929;
}
button.pri:hover { background-image: linear-gradient(180deg, #ffffff2b, transparent); }
button.pri:active { box-shadow: inset 0 1px 4px #102b2050; }
input, select, textarea, button { max-width: 100%; }
input:where(:not([type="checkbox"], [type="file"], [type="color"])), select, textarea,
button:where(:not(.pri, .lnk, .ck, .sw, .lchip, .chipb, .brush)) {
  border-radius: 10px;
}
.seg button { border-radius: 5px; }
.ib, .ib2 { border-radius: 10px; }
button.dng:not(.lnk) {
  min-height: 38px;
  border-color: color-mix(in srgb, var(--danger) 27%, var(--line));
  background: color-mix(in srgb, var(--danger) 5%, var(--solid));
}

.hero {
  --text: #f5fbef;
  --muted: #c5dabf;
  --accent: #def5aa;
  --accent2: #8bd6aa;
  --gold: #f0d18a;
  --danger: #ffab9b;
  --line: #c7e5c435;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(152px, 21vw, 265px);
  gap: clamp(14px, 2.5vw, 34px);
  padding: clamp(21px, 5vw, 62px);
  border-radius: clamp(22px, 4vw, 36px);
  border-color: #4a7158;
  color: var(--text);
  background:
    radial-gradient(ellipse at 87% 8%, #4b7454 0, transparent 60%),
    linear-gradient(120deg, #0e251b 8%, #183e2d 66%, #264936);
  box-shadow: inset 0 1px #ccebc438, 0 15px 40px #102d2530;
}

.hero::before, .login::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(ellipse at 86% 24%, #d3ed932e, transparent 54%),
    repeating-radial-gradient(ellipse at 86% 43%, transparent 0 17px, #d8f3c520 18px, transparent 19px 33px);
  -webkit-mask-image: linear-gradient(92deg, transparent 25%, #000 92%);
  mask-image: linear-gradient(92deg, transparent 25%, #000 92%);
}

.hero > .grow { grid-column: 1; grid-row: 1; }
.hero .ring {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  max-width: 265px;
  justify-self: center;
  align-self: center;
}
.hero .r-base { opacity: .82; }
.hero .r-in { stroke-dasharray: 1 4; }
.hero .r-arc { filter: drop-shadow(0 0 5px #d9ffc55a); }
.hero .ring .c1 { font-weight: 500; }
.hero .ring .c2 { letter-spacing: .12em; }
.hello {
  font-family: var(--serif);
  font-size: clamp(32px, 4.7vw, 67px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
}
.hero .muted { font-size: 14px; margin-top: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(7px, 1vw, 12px);
  margin-top: clamp(17px, 3vw, 31px);
}
.stat {
  min-width: 0;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px clamp(7px, 1.5vw, 16px);
  background: linear-gradient(145deg, #eefede18, #ecffe40b);
  box-shadow: inset 0 1px #effee218;
}
.stat .num {
  font-size: clamp(24px, 3vw, 39px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat .unit {
  margin-left: 0;
  font-size: clamp(10px, 1.15vw, 13px);
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(450px, calc(100% - 28px));
  max-width: none;
  margin: clamp(30px, 10vh, 95px) auto 22px;
  padding: clamp(23px, 5vw, 54px);
  border-radius: 28px;
  background-color: var(--solid);
  box-shadow: var(--shadow), inset 0 1px var(--line);
}
.login::before {
  background:
    radial-gradient(ellipse at 82% 0, var(--forest-mist), transparent 61%),
    repeating-radial-gradient(ellipse at 105% 0, transparent 0 19px, var(--line) 20px, transparent 21px 34px);
  -webkit-mask-image: linear-gradient(#000, transparent 53%);
  mask-image: linear-gradient(#000, transparent 53%);
}
.login h2 { font-size: 26px; font-weight: 500; margin-bottom: 20px; }
.login .logo.big { max-width: 100%; height: clamp(46px, 12vw, 58px); }
.login input { min-height: 44px; }
.login button.pri { min-height: 42px; }

.projs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.home2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  background-image: linear-gradient(155deg, var(--glass2), var(--glass));
}
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at 100% 0, var(--forest-mist), transparent 65%);
  opacity: .45;
  transition: opacity 200ms ease;
}
.pcard:hover::before, .pcard:focus-visible::before { opacity: .85; }
.pn { font-size: 23px; font-weight: 500; }
.pnum {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.pnum .num { font-weight: 500; font-variant-numeric: tabular-nums; }
.pill { font-variant-numeric: tabular-nums; }
.badge { background: var(--pill); color: var(--on-pill); }
.tr:hover, .sug div:hover { background: var(--forest-hover); }

.col { background: var(--field); }
.col h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.card {
  padding: 12px 11px;
  box-shadow: 0 1px 3px #112b1d12;
}
.card > div:first-of-type { font-weight: 500; margin-block: 3px; }
.card:not(.sortable-ghost):hover { border-color: var(--p); }
.modal {
  background: #071811a8;
  backdrop-filter: blur(7px) saturate(.9);
  -webkit-backdrop-filter: blur(7px) saturate(.9);
}
.panel { top: calc(62px + env(safe-area-inset-top)); }
.offline { color: var(--text); background: var(--pill); }

.cal-bar {
  margin-bottom: 12px;
  padding: 12px clamp(10px, 2vw, 19px) 2px;
  border: 1px solid var(--line);
  border-radius: var(--forest-radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}
.ctitle { font-weight: 600; }
.cgrid { box-shadow: var(--shadow); }
.dow { background: var(--field); font-weight: 600; }
.dtitle { font-weight: 500; }
.lchip.on .muted { color: var(--on-accent); }
.bar { height: 8px; }
.bar i { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.gh { color: var(--accent); font-weight: 600; }
.sit { padding-block: 13px; }
.ck:not(.on) { border-color: var(--muted); }
.chat .msgs { scrollbar-color: var(--line) transparent; }
.chat .msg { padding-block: 5px; border-bottom: 1px solid var(--line); }

.profile-page {
  --profile-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.profile-page > :is(a, h2, .profile-account, .profile-signout) { grid-column: 1 / -1; }
.profile-page > a { justify-self: start; }
.profile-page > h2 {
  font: 500 clamp(36px, 6vw, 53px)/1.05 var(--serif);
  letter-spacing: -.045em;
  margin: 4px 0 8px;
}
.profile-page > .box { margin: 0; min-width: 0; }
.profile-photo {
  gap: clamp(12px, 3vw, 24px);
  padding: clamp(12px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(ellipse at 0 0, var(--forest-mist), transparent 75%), var(--field);
}
.profile-photo > div { min-width: 0; }
.profile-photo input[type="file"] {
  display: block;
  margin-top: 5px;
  background: transparent;
}
.profile-photo input::file-selector-button {
  margin-inline-end: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--solid);
  color: var(--text);
  font: 600 13px var(--font);
  cursor: pointer;
}
.profile-photo br { display: none; }
.profile-photo button { margin-top: 8px; }
.profile-field-label { color: var(--text); font-weight: 600; }
.profile-account > :is(.err, .muted):empty { display: none; }
.profile-password b, .profile-install b {
  display: block;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.profile-signout { justify-self: start; max-width: 100%; }
@media (max-width: 640px) {
  .profile-page { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .profile-photo .av { max-width: 64px; max-height: 64px; }
  .profile-name .pri { margin-inline-start: auto; }
}

#style-preference label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  box-shadow: var(--shadow);
  padding-inline: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before, .login::before { animation: forest-light-in 700ms ease-out both; }
  .hero .ring { animation: forest-ring-in 520ms cubic-bezier(.2, .7, .25, 1) both; }
}
@keyframes forest-light-in { from { opacity: .25; } to { opacity: 1; } }
@keyframes forest-ring-in { from { opacity: .45; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 820px) {
  .home2, .home3 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  main { padding: 14px 12px 20px; }
  header { padding-inline: 10px; }
}
@media (max-width: 480px) {
  header { gap: 6px; }
  header .logo { height: 20px; }
  header .ib { padding-inline: 5px; }
  header .sbox { padding-inline: 7px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .hero .ring { grid-column: 1; grid-row: 2; width: min(137px, 48%); }
  .hero::before {
    -webkit-mask-image: linear-gradient(165deg, transparent 44%, #000);
    mask-image: linear-gradient(165deg, transparent 44%, #000);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard::before, .card, .tl, .bar i, button, input, select, textarea {
    transition: none;
  }
  .pcard:hover, .card:hover, .tl:hover { transform: none; }
}
