@font-face {
  font-family: Golos;
  src: url("golos-text-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url("golos-text-latin-wght-normal.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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #faf8f4;
  --ink: #251d32;
  --muted: #62576d;
  --mast: #2e2140;
  --white: #fffefa;
  --panel: #ede7f8;
  --line: #d8cce6;
  --rule: #e1d9e5;
  --accent: #5733a2;
  --accent-hover: #442484;
  --error: #922c45;
  --success: #27624e;
  font: 16px/1.55 Golos, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--accent);
  scrollbar-color: #9986b7 var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #ddd1ff; color: var(--mast); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: inherit; text-underline-offset: .19em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(100% - 4rem, 62rem); margin-inline: auto; }
.masthead { background: var(--mast); color: #fbf7ff; }
.masthead-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead :focus-visible { outline-color: #e4d7ff; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.1rem; font-weight: 680; letter-spacing: -.025em; white-space: nowrap; }
.brand b { color: #d8c7ef; font-weight: 440; }
.toolbar, .languages { display: flex; align-items: center; }
.toolbar { gap: .9rem; }
.languages { gap: .1rem; padding: .16rem; background: #40314f; border-radius: 8px; }
.languages button, .logout { border: 0; color: #e2d3f0; background: transparent; min-height: 34px; }
.languages button { border-radius: 6px; min-width: 38px; padding: .22rem .45rem; font-size: .75rem; font-weight: 650; }
.languages button[aria-pressed=true] { background: #eee3ff; color: var(--mast); }
.languages button:hover:not([aria-pressed=true]), .logout:hover { color: #fff; background: #50405f; }
.logout { display: inline-flex; gap: .35rem; align-items: center; padding-inline: .55rem; border-radius: 6px; font-size: .85rem; }
.logout svg { width: 1rem; height: 1rem; }
main { flex: 1; }
.intro, .signin { padding-top: clamp(2.4rem, 7vw, 5.2rem); }
h1 { font-size: clamp(2.35rem, 5.8vw, 4.4rem); font-weight: 770; letter-spacing: -.036em; text-wrap: balance; }
.lede { margin-top: .85rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 65ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.composer { margin-top: 1.9rem; padding: clamp(1rem, 3.6vw, 1.75rem); }
.composer > label, .login-panel > label { display: block; font-size: .9rem; font-weight: 630; margin-bottom: .45rem; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; }
.link-field { display: flex; align-items: center; position: relative; color: var(--accent); }
.link-field > svg { position: absolute; left: 1rem; pointer-events: none; }
input:not([type=radio]) { width: 100%; min-height: 50px; border: 1px solid #bbacd0; border-radius: 8px; padding: .55rem .85rem; color: var(--ink); caret-color: var(--accent); background: var(--white); }
input::placeholder { color: var(--muted); }
.link-field input { padding-inline-start: 2.7rem; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 50px; border: 0; border-radius: 8px; background: var(--accent); color: white; font-weight: 620; padding: .62rem 1rem; }
.primary:hover { background: var(--accent-hover); }
.composer-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; margin-top: .9rem; }
.formats { display: flex; gap: .35rem; align-items: center; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.formats label { position: relative; }
.formats input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.formats label > span { display: flex; gap: .4rem; align-items: center; padding: .4rem .65rem; min-height: 39px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.formats input:checked + span { background: var(--white); color: var(--accent); border-color: #bcaad9; font-weight: 640; }
.formats input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.formats label:hover > span { border-color: #bcaad9; }
.formats svg { width: 1rem; height: 1rem; }
#limit { color: var(--muted); font-size: .8rem; }
.queue { margin-top: clamp(2.05rem, 5vw, 3.5rem); margin-bottom: 3rem; }
.queue-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; border-bottom: 1px solid var(--rule); padding-bottom: .9rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 720; letter-spacing: -.027em; }
.capacity { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.tracks { display: flex; gap: .2rem; }
.tracks i { width: .42rem; height: .83rem; border-radius: 2px; border: 1px solid #a994c5; background: #e9e0f5; }
.tracks i.busy { border-color: var(--accent); background: var(--accent); }
.tracks i.held { border-color: var(--accent); background: #b6a0dd; }
.empty { display: flex; align-items: center; gap: 1rem; padding: 1.55rem 0; border-bottom: 1px solid var(--rule); }
.empty-icon, .job-icon { display: grid; place-items: center; color: var(--accent); background: var(--panel); border-radius: 9px; width: 44px; height: 44px; flex: none; }
.empty h3 { font-size: 1rem; font-weight: 650; margin-bottom: .24rem; }
.empty p, .job-meta { color: var(--muted); font-size: .86rem; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.3rem, 10rem) 9.65rem; align-items: center; gap: .85rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.job-identity { min-width: 0; display: flex; gap: .7rem; align-items: center; }
.job-text { min-width: 0; }
.job h3, .job-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-expiry { display: inline; }
.job-expiry::before { content: " · "; white-space: pre; }
.job h3 { font-size: .98rem; font-weight: 650; padding-bottom: .2rem; }
.job-status { font-size: .83rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-status[data-status=ready] { color: var(--success); }
.job-status[data-status=failed] { color: var(--error); }
.job-status[data-status=running] { color: var(--accent); }
progress { display: block; width: 100%; max-width: 8rem; height: .42rem; border: 0; border-radius: 4px; margin-top: .35rem; overflow: hidden; background: var(--panel); }
progress::-webkit-progress-bar { background: var(--panel); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.job-actions { display: flex; justify-content: flex-end; gap: .4rem; }
.action { display: inline-flex; min-height: 38px; border: 1px solid #c9bad9; background: var(--white); border-radius: 7px; color: var(--accent); align-items: center; justify-content: center; gap: .3rem; padding: .35rem .61rem; font-size: .83rem; text-decoration: none; }
.action:hover { background: var(--panel); }
.action svg { width: 1rem; height: 1rem; }
.action.remove { padding-inline: .55rem; color: var(--muted); }
.login-panel { max-width: 28rem; margin: 1.65rem 0 3rem; padding: 1.4rem; }
.login-panel input { margin-bottom: 1rem; }
.login-panel .primary { min-width: 8rem; }
.queue-held { color: var(--muted); font-size: .85rem; padding-top: .75rem; }
.feedback { color: var(--error); font-size: .88rem; margin-top: .65rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-top: auto; padding: .85rem 0 1.5rem; color: var(--muted); border-top: 1px solid var(--rule); font-size: .79rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 60px; }
  .link-row { grid-template-columns: 1fr; }
  .composer-options { gap: .5rem; }
  .job { grid-template-columns: minmax(0,1fr) auto; gap: .5rem .65rem; }
  .job-identity { grid-column: 1 / -1; }
  .job-expiry { display: block; }
  .job-expiry::before { content: none; }
  .job-status { padding-left: .15rem; }
  .logout span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
}
