@font-face {
  font-family: "Golos Text";
  src: url("./golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  --background: #090a0b;
  --surface: #111314;
  --surface-hover: #1b1e20;
  --field: #0c0d0e;
  --rule: #27292b;
  --control: #626667;
  --text: #f0f1f0;
  --muted: #a7acab;
  --success: #82d9a8;
  --danger: #ffaaa9;
  --action: #edf2ef;
  --focus: #8ef0b9;
  --sidebar: 228px;
  --radius: 12px;
  background: var(--background);
  color: var(--text);
  accent-color: var(--success);
  scrollbar-color: var(--control) var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
input, button { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .63; }
p, h1, h2, dl, dd { margin: 0; }
::selection { color: #0b130d; background: var(--success); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100svh; }
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  border-inline-end: 1px solid var(--rule);
  padding: 21px 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.035em;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark { position: relative; display: block; width: 25px; height: 25px; }
.brand-mark i {
  position: absolute;
  width: 15px;
  height: 10px;
  border: 2px solid var(--success);
  border-radius: 4px;
  transform: rotate(-42deg);
}
.brand-mark i:first-child { top: 6px; left: 1px; border-inline-end-color: transparent; }
.brand-mark i:last-child { top: 10px; left: 9px; border-inline-start-color: transparent; }

.navigation { display: grid; gap: 3px; margin-block-start: 23px; }
.navigation a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 7px;
  padding: 0 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 540;
}
.navigation a:hover, .navigation a[aria-current] { color: var(--text); background: var(--surface-hover); }
.navigation a[aria-current] { font-weight: 650; }

.workspace { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 65px;
  padding: 7px clamp(18px, 3.2vw, 44px);
  border-block-end: 1px solid var(--rule);
}
.topbar-desktop { color: var(--muted); font-size: 13px; }
.topbar-mobile, .mobile-menu { display: none; }
.session-controls { display: flex; align-items: center; gap: 8px; }
.content { max-width: 1160px; padding: 36px clamp(18px, 3.2vw, 44px) 52px; }
.content:focus { outline: none; }
.page-heading { margin-block-end: 24px; }
.page-heading h1 { font-size: 27px; font-weight: 670; line-height: 1.2; letter-spacing: -.035em; }
.page-heading p { margin-block-start: 7px; color: var(--muted); }
.panel { background: var(--surface); border-radius: var(--radius); }
.panel h2 { font-size: 16px; font-weight: 650; letter-spacing: -.014em; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 550; }
.field input {
  width: 100%;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--control);
  border-radius: 7px;
  background: var(--field);
  color: var(--text);
  caret-color: var(--success);
  font-size: 16px;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.button, .mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 640;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.button.primary { min-height: 43px; padding-inline: 17px; background: var(--action); color: #101413; }
.button.primary:hover:not(:disabled) { background: #d3ded7; }
.button.secondary, .mobile-menu summary { border-color: var(--control); }
.button.quiet { color: var(--muted); }
.button.quiet:hover, .button.secondary:hover, .mobile-menu summary:hover { background: var(--surface-hover); color: var(--text); }
.message { color: var(--muted); overflow-wrap: anywhere; }
.message[role="alert"] { color: var(--danger); }
[data-global-error] { margin-block-end: 16px; }
.content-message { padding: 20px; }
.content-message .button { margin-block-start: 12px; }
.muted { color: var(--muted); }

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 15px;
  min-height: 56px;
  border-block-end: 1px solid var(--rule);
  padding: 11px 20px;
}
.status { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.success { color: var(--success); }
.profile-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: baseline;
  gap: 7px 20px;
  min-height: 55px;
  padding: 15px 20px;
}
.profile-details > div + div { border-block-start: 1px solid var(--rule); }
.profile-details dt, thead th { color: var(--muted); font-size: 13px; }
.profile-details dd { overflow-wrap: anywhere; }
.identifier { font-variant-numeric: tabular-nums; font-size: 13px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 20px; text-align: start; }
thead th { font-weight: 550; }
thead th:first-child { width: 50%; }
tbody tr { border-block-start: 1px solid var(--rule); }
tbody td, tbody th { min-height: 48px; vertical-align: top; }
tbody th { font-weight: 650; overflow-wrap: anywhere; }
.numeric { text-align: end; overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 4;
  padding: 8px 12px;
  transform: translateY(calc(-100% - 10px));
  background: var(--action);
  color: var(--background);
}
.skip-link:focus { transform: none; }

.entry-layout {
  --entry-gutter: clamp(18px, 4.45vw, 68px);
  --entry-ground: #0e100f;
  --entry-art-ground: #0a0e0c;
  --entry-title-soft: #d3ded7;
  --entry-action: #a9dfbf;
  --entry-line: #2a302c;
  min-height: 100svh;
  font-family: "Golos Text", Inter, "Segoe UI", sans-serif;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(100%, 1480px);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: var(--entry-gutter);
}
.entry-header .brand { padding-inline: 0; }
.entry-header .brand-mark { width: 25px; }
.entry-header .session-controls .button { min-height: 44px; margin-inline-end: -7px; }
.entry-main {
  width: min(100%, 1480px);
  padding: clamp(16px, 3.8svh, 46px) var(--entry-gutter) clamp(28px, 7svh, 84px);
  margin-inline: auto;
}
.entry-main:focus { outline: none; }
.entry-stage {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1fr);
  min-height: clamp(552px, 72svh, 700px);
  border: 1px solid var(--entry-line);
  border-radius: 15px;
  overflow: clip;
  background: var(--entry-ground);
}
.entry-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(30px, 4.3vw, 66px);
}
.entry-title {
  font-size: clamp(46px, 6.05vw, 90px);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 700;
}
.entry-title span { display: block; color: var(--entry-title-soft); }
.entry-lead {
  max-width: 33ch;
  margin-block-start: clamp(18px, 2.3vw, 30px);
  font-size: clamp(16px, 1.48vw, 20px);
  line-height: 1.45;
  color: var(--muted);
}
.entry-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: clamp(22px, 3vw, 38px); }
.entry-primary {
  min-height: 50px;
  gap: 22px;
  border-color: var(--entry-action);
  padding-inline: 16px;
  color: #0d1811;
  background: var(--entry-action);
}
.entry-primary:hover:not(:disabled) { background: #c1e9cf; border-color: #c1e9cf; }
.entry-primary i {
  position: relative;
  width: 15px;
  height: 1px;
  background: currentColor;
}
.entry-primary i::after {
  content: "";
  position: absolute;
  inset: -3px 0 auto auto;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.entry-secondary { min-height: 50px; border-color: var(--control); }
.entry-secondary:hover { background: var(--surface-hover); }
.home-session { margin-block-start: 16px; }
.entry-login .entry-title { font-size: clamp(44px, 5.2vw, 76px); }
.login-form {
  display: grid;
  gap: 15px;
  max-width: 450px;
  margin-block-start: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--entry-line);
  padding: clamp(17px, 2.05vw, 26px);
  background: #111512;
}
.login-form .button { justify-self: start; min-height: 45px; }
.entry-art { position: relative; min-width: 0; min-height: 0; background: var(--entry-art-ground); border-inline-start: 1px solid var(--entry-line); }
.entry-art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

@media (max-width: 790px) {
  .entry-layout { --entry-gutter: clamp(12px, 3.8vw, 26px); }
  .entry-header { min-height: 58px; }
  .entry-main { padding-block-start: 9px; }
  .entry-stage { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .entry-copy { padding: clamp(21px, 6vw, 40px); }
  .entry-title, .entry-login .entry-title { font-size: clamp(38px, 12vw, 68px); }
  .entry-art { border-inline-start: 0; border-block-start: 1px solid var(--entry-line); aspect-ratio: 1.2; }
  .entry-login .entry-title { font-size: clamp(38px, 11.7vw, 65px); }
}

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .topbar-desktop { display: none; }
  .topbar-mobile, .mobile-menu { display: block; }
  .topbar { min-height: 58px; padding-inline: 12px; }
  .topbar .brand { padding-inline: 0; }
  .session-controls { gap: 4px; }
  .mobile-menu { position: relative; }
  .mobile-menu summary { min-height: 44px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav {
    position: absolute;
    z-index: 2;
    inset-inline-end: 0;
    min-width: 165px;
    margin-block-start: 6px;
    padding: 5px;
    border: 1px solid var(--control);
    border-radius: 9px;
    background: var(--surface);
  }
  .mobile-menu .navigation a, .button { min-height: 44px; }
  .content { padding: 26px 15px 42px; }
  .page-heading { margin-block-end: 18px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { font-size: 14px; }
  .panel-heading, .content-message, .profile-details > div { padding-inline: 14px; }
  .profile-details > div { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-inline: 10px; }
  thead th:first-child { width: 42%; }
  thead th:last-child { width: 31%; }
}
