:root {
  color-scheme: light;
  --canvas: #f2f5ed;
  --surface: #fff;
  --ink: #19251b;
  --muted: #536258;
  --line: #dde5d9;
  --accent: #38623a;
  --selection: #e8f2d9;
  --brand: #d1f681;
  --on-brand: #1a2916;
  --good: #285d3e;
  --good-bg: #e5f3e4;
  --warm: #79511b;
  --warm-bg: #f8efda;
  --neutral-bg: #edf1eb;
  --chrome: #fffffff0;
  --shadow: 0 12px 35px #2035230f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111713;
  --surface: #1b241e;
  --ink: #eff5ed;
  --muted: #b3c1b5;
  --line: #303d32;
  --accent: #c4e99a;
  --selection: #2d402e;
  --good: #b2e5be;
  --good-bg: #293f32;
  --warm: #ffda9b;
  --warm-bg: #403622;
  --neutral-bg: #29342c;
  --chrome: #1b241ef2;
  --shadow: 0 12px 35px #060b0848;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(2rem, 7.2vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

h2 { font-size: 1.28rem; letter-spacing: -.035em; }
h3 { font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
p { line-height: 1.5; }

.shell {
  --nav-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  max-width: 656px;
  margin: auto;
  padding: max(16px, var(--tg-content-safe-area-inset-top, 0px)) 16px calc(106px + var(--nav-bottom));
}

.header, .logo, .identity {
  display: flex;
  align-items: center;
}

.header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.logo {
  gap: 9px;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: -.055em;
}

.mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding-bottom: 9px;
  gap: 3px;
  border-radius: 12px;
  background: #1c3627;
}

.mark i {
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--brand);
}

.mark i:nth-child(2) { height: 12px; }
.mark i:nth-child(3) { height: 17px; }

.identity { gap: 7px; }

.demo-note {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--selection);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 236px;
  overflow: hidden;
  border-radius: 25px;
  background: #102319;
  color: #f4f8f0;
  box-shadow: 0 12px 24px #172c1f24;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102319 14%, #102319cf 37%, #10231941 64%, transparent 86%);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 23px;
}

.hero h1 {
  max-width: 410px;
  margin: 12px 0 8px;
}

.role {
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid #cde4bf47;
  border-radius: 20px;
  background: #0f24147f;
  color: #e3f4d9;
  font-size: .875rem;
  font-weight: 650;
}

.hero-copy {
  max-width: 21ch;
  color: #dce9d9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.hero-action, .primary {
  background: var(--brand);
  color: var(--on-brand);
}

.hero-action { margin-top: 16px; }
.hero-action:focus-visible { outline-color: #fff; }
.secondary { border-color: var(--line); }

.card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 13px 0 23px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 13px 11px;
}

.stat + .stat { border-inline-start: 1px solid var(--line); }

.stat span, .meta {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.42;
}

.stat span { display: block; }

.stat strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.63rem;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.section-head { margin-bottom: 10px; }
.stack { display: grid; gap: 9px; }

.history-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.history-symbol {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 11px;
  background: var(--selection);
  color: var(--accent);
}

.row, .skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.row > :first-child { min-width: 0; }

.score {
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.intro {
  max-width: 40ch;
  margin: 9px 0 17px;
  color: var(--muted);
}

.notice p, .job p {
  margin-top: 6px;
  color: var(--muted);
}

.notice .button { margin-top: 12px; }

progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 7px;
  margin: 13px 0 11px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--neutral-bg);
}

progress::-webkit-progress-bar { background: var(--neutral-bg); }
progress::-webkit-progress-value { border-radius: 20px; background: #78a34e; }
progress::-moz-progress-bar { border-radius: 20px; background: #78a34e; }

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--neutral-bg);
  color: var(--muted);
  font-size: .825rem;
  font-weight: 650;
  line-height: 1.3;
}

.confirmed { background: var(--good-bg); color: var(--good); }
.practice { background: var(--warm-bg); color: var(--warm); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filters button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  font-size: .875rem;
  font-weight: 650;
}

.filters button[aria-pressed="true"] {
  border-color: #263b2c;
  background: #263b2c;
  color: #f6fbf3;
}

:root[data-theme="dark"] .filters button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.job h3 { font-size: 1.12rem; }

.job-group {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.group-title {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.job-group .row {
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.job-group .status {
  max-width: 57%;
  text-align: right;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.nav {
  position: fixed;
  z-index: 3;
  bottom: calc(10px + var(--nav-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(624px, calc(100% - 28px));
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--chrome);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 34px #0c1d1426;
  transform: translateX(-50%);
}

.nav button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 5px 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 680;
}

.nav button[aria-current="page"] {
  background: var(--selection);
  color: var(--accent);
}

.icon {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
}

.icon::before, .icon::after {
  position: absolute;
  content: "";
}

.icon-overview::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.icon-overview::after {
  inset: 4px auto 4px 8px;
  border-inline-start: 1.5px solid currentColor;
}

.icon-skills::before {
  inset: 3px;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 12px no-repeat;
}

.icon-skills::after {
  inset: auto 1px 1px;
  border-bottom: 1.5px solid currentColor;
}

.icon-vacancies::before {
  inset: 5px 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.icon-vacancies::after {
  inset: 2px 6px auto;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.icon-history::before {
  inset: 2px 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.icon-history::after {
  inset: 6px;
  border-block: 1.5px solid currentColor;
}

@media (hover: hover) {
  .button:hover { filter: brightness(.96); }
  .nav button:hover { background: var(--selection); }
}

@media (prefers-reduced-motion: no-preference) {
  .nav button, .filters button { transition: background-color 140ms, color 140ms; }
}

@media (min-width: 520px) {
  .shell { padding-inline: 20px; }
  .hero-content { padding: 29px; }
  .hero-copy { max-width: 29ch; }
  .hero-art { width: 57%; }
  .stat { padding: 14px 17px; }
  .history-card { padding: 13px 15px; }
}

@media (max-width: 519px) {
  .hero-art {
    inset: auto -4px -6px auto;
    width: 58%;
    height: 75%;
  }

  .hero::after {
    background:
      linear-gradient(90deg, #102319 19%, #102319a6 47%, transparent 82%),
      linear-gradient(180deg, #102319 19%, transparent 50%);
  }
}

@media (max-width: 350px) {
  .shell { padding-inline: 12px; }
  .hero-content { padding: 19px; }
  .stat { padding-inline: 7px; }
  .stat span { font-size: .81rem; }
  .stat strong { font-size: 1.45rem; }
  .history-card { padding-inline: 9px; }
}
