@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("assets/sofia-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Sofia Sans";
  src: url("assets/sofia-sans-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: light;
  --color-ink: #233d46;
  --color-muted: #526970;
  --color-paper: #edf2f1;
  --color-sky: #d8e7e9;
  --color-glacier: #a8c9d3;
  --color-white: #ffffff;
  --color-rule: #aebfc3;
  --color-focus: #126280;
  --color-hover: #dce8e9;
  --color-active: #cbdde1;
  --color-error: #8c3030;
  --color-field: #f5f8f7;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Sofia Sans", sans-serif;
  --gutter: clamp(1.5rem, 5.5vw, 6rem);
  --scrollbar-thumb: #829da5;
  --scrollbar-track: #edf2f1;
  --scrollbar-hover: #526970;
  --scrollbar-active: #233d46;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-synthesis: none;
  background: var(--color-paper);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 2px solid var(--scrollbar-track); }
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
*::-webkit-scrollbar-thumb:active { background: var(--scrollbar-active); }
body { margin: 0; background: linear-gradient(150deg, #f1f5f4, #e4eef0 65%, #d6e5e8); }
a { color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
::selection { color: var(--color-ink); background: var(--color-glacier); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: 1rem; background: var(--color-white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.dashboard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: var(--gutter);
}
.dashboard::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #edf2f1 12%, rgb(237 242 241 / 98%) 35%, rgb(228 238 240 / 89%) 75%, rgb(216 231 233 / 79%)), url("assets/landscape.jpg") center 68% / cover no-repeat;
}
.header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 7.5rem; width: 100%; border-bottom: 1px solid var(--color-rule); }
.brand { display: block; width: 13.75rem; height: auto; }
.date { color: var(--color-muted); font-size: 1rem; line-height: 1.4; text-align: right; }
.main { width: min(100%, 72rem); margin: 0 auto; padding-block: clamp(4.5rem, 9vh, 7rem) 4rem; }
.main:focus { outline: none; }
h1 { margin: 0 0 2.5rem; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 450; line-height: 1.15; letter-spacing: -.035em; }
.applications { margin: 0; padding: 0; list-style: none; }
.application { display: flex; align-items: center; gap: 1.75rem; min-height: 8.5rem; padding: 1.5rem 1rem; border-block: 1px solid var(--color-rule); transition: background 180ms ease; }
.application:hover { background: var(--color-hover); }
.application:active { background: var(--color-active); }
.application__icon { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
.application__identity { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.application__name { font-family: var(--font-display); font-size: clamp(1.375rem, 2.3vw, 1.875rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.application__description { font-size: 1.0625rem; color: var(--color-muted); line-height: 1.3; }
.application__action { margin-left: auto; display: inline-flex; align-items: center; gap: 1rem; padding-left: 1rem; font-size: 1.0625rem; font-weight: 500; white-space: nowrap; }
.arrow { display: block; width: 1.35rem; height: 1.35rem; transition: transform 180ms ease; }
.application:hover .arrow { transform: translate(2px, -2px); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-block: 2rem; font-size: .9375rem; line-height: 1.4; color: var(--color-muted); }
.header__tools { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.logout-form { margin: 0; flex-shrink: 0; }
.session-name { color: var(--color-muted); font-family: var(--font-display); font-size: .9375rem; max-width: 20rem; overflow-wrap: anywhere; }
.utility-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid var(--color-rule); border-radius: 2px; background: transparent; font-size: 1rem; transition: background 180ms ease; }
.utility-button svg { width: 1.25rem; height: 1.25rem; }
.utility-button:hover { background: var(--color-hover); }
.utility-button:active { background: var(--color-active); }
.brand-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand-link:hover { opacity: .8; }
.brand-link:active { opacity: .65; }
.auth-main { width: min(100%, 25rem); margin: 0 auto; padding-block: clamp(3rem, 7vh, 5rem) 3rem; }
.auth-main:focus, .not-found-main:focus { outline: none; }
.auth-main h1 { margin-bottom: .5rem; }
.login-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.form-status { min-height: 3rem; margin: 0 0 1rem; font-size: 1rem; line-height: 1.4; color: var(--color-muted); }
.form-status--error { color: var(--color-error); }
.field label { display: block; margin-bottom: .55rem; font-size: 1rem; font-weight: 500; }
.field input { display: block; width: 100%; min-height: 3.25rem; padding: .8rem 1rem; border: 1px solid var(--color-rule); border-radius: 2px; background: var(--color-field); font-size: 1.0625rem; line-height: 1.4; }
.field input:hover { border-color: var(--color-muted); }
.field input:focus-visible { outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field-error { min-height: 1.35rem; margin: .35rem 0 .75rem; color: var(--color-error); font-size: .9375rem; line-height: 1.4; }
.password-field { position: relative; }
.password-field input { padding-right: 6rem; }
.password-toggle { position: absolute; right: .3rem; top: .25rem; bottom: .25rem; min-height: 2.75rem; width: 5rem; padding: .4rem .6rem; border: 0; border-radius: 2px; background: transparent; color: var(--color-muted); font-size: .9375rem; }
.password-toggle:hover { color: var(--color-ink); background: var(--color-hover); }
.password-toggle:active { background: var(--color-active); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3.25rem; padding: .85rem 1.25rem; border: 1px solid var(--color-ink); border-radius: 2px; background: var(--color-ink); color: var(--color-white); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; transition: background 180ms ease; }
.primary-button:hover { background: var(--color-muted); }
.primary-button:active { background: var(--color-focus); }
.primary-button:disabled { opacity: .6; }
.primary-button:hover .arrow { transform: translateX(2px); }
.login-fields .primary-button { width: 100%; }
.remember { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.4; cursor: pointer; }
.remember input { width: 1.125rem; height: 1.125rem; margin: 0; flex-shrink: 0; accent-color: var(--color-ink); cursor: pointer; }
.login-notice { margin: 1.25rem 0 0; color: var(--color-muted); line-height: 1.5; overflow-wrap: anywhere; }
.login-help { margin: 1.5rem 0 0; color: var(--color-muted); font-size: 1rem; line-height: 1.5; }
.text-link { text-decoration: underline; text-underline-offset: .2em; }
.text-link:hover { color: var(--color-ink); }
.text-link:active { color: var(--color-focus); }
[aria-busy="true"] button[type="submit"] { opacity: .65; }
.not-found-main { width: min(100%, 35rem); margin: auto; padding-block: clamp(3rem, 7vh, 5rem); }
.error-code { margin: 0 0 1.5rem; color: var(--color-muted); font-family: var(--font-display); font-size: clamp(5rem, 12vw, 8rem); font-weight: 400; line-height: 1; letter-spacing: -.08em; }
.not-found-main h1 { margin-bottom: 1rem; font-size: clamp(1.875rem, 3vw, 2.75rem); }
.not-found-description { max-width: 27rem; margin: 0 0 2rem; color: var(--color-muted); font-size: 1.125rem; line-height: 1.5; }
.not-found-main .primary-button { min-width: 13rem; }
@media (max-width: 600px) {
  .header { min-height: 6.25rem; gap: 1.5rem; }
  .brand { width: 10rem; }
  .date { max-width: 7.5rem; font-size: .875rem; }
  .header__tools { gap: .75rem; }
  .header__tools .session-name { max-width: 7rem; }
  .utility-button { padding-inline: .75rem; gap: .5rem; }
  .auth-main { padding-top: 2.5rem; }
  .form-status { min-height: 2.8rem; }
  .footer .date { max-width: none; text-align: left; }
  .main { padding-top: 3.5rem; }
  h1 { margin-bottom: 1.75rem; }
  .application { padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; }
  .application__icon { width: 2.25rem; height: 2.25rem; }
  .application__identity { flex: 1; }
  .application__action { width: 100%; padding-left: 3.25rem; justify-content: space-between; margin-left: 0; }
  .application__description { font-size: 1rem; }
  .dashboard::before { background-image: linear-gradient(180deg, #edf2f1 12%, rgb(237 242 241 / 98%) 35%, rgb(228 238 240 / 89%) 75%, rgb(216 231 233 / 79%)), url("assets/landscape-mobile.jpg"); }
}
@media (max-width: 359px) {
  .header { flex-wrap: wrap; gap: .75rem; padding-block: 1.5rem; }
  .date { max-width: none; text-align: left; }
}
@media (max-width: 480px) {
  [data-private-page] .header { flex-wrap: wrap; gap: .75rem; padding-block: 1.5rem; }
  [data-private-page] .header__tools { width: 100%; justify-content: space-between; }
  [data-private-page] .session-name { max-width: calc(100% - 7rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  .dashboard::before { display: none; }
  .application { border-color: CanvasText; }
  .utility-button, .primary-button, .field input { border-color: ButtonText; }
  .brand { forced-color-adjust: none; background: #edf2f1; padding: .25rem; }
}
