:root {
  --bg: #f8f9fc;
  --surface: #fff;
  --text: #202b46;
  --muted: #667087;
  --border: #e7eaf2;
  --brand: #5269de;
  --soft: #eef1ff;
  --shadow: 0 8px 28px #25366406;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
body.dark {
  --bg: #131824;
  --surface: #1c2433;
  --text: #e6eafa;
  --muted: #a2adc1;
  --border: #303a4f;
  --brand: #a0b0ff;
  --soft: #28324f;
  --shadow: 0 8px 28px #0002;
  color-scheme: dark;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:where(button:not(:disabled), a):hover {
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid #8294f4;
  outline-offset: 4px;
}
button,
input,
textarea,
select,
a {
  touch-action: manipulation;
}
button {
  transition:
    background 0.22s,
    transform 0.22s,
    color 0.22s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.topbar {
  height: 84px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand > span:not(.brand-icon) {
  color: var(--brand);
}
.brand-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  width: 34px;
  height: 34px;
  margin-right: 10px;
}
.dark .brand-logo {
  filter: brightness(1.45) saturate(.75);
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 12px;
}
.topbar nav {
  display: flex;
  gap: 25px;
}
.topbar nav button {
  font-size: 13px;
  font-weight: 550;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-button {
  font-size: 22px;
  width: 32px;
  height: 36px;
}
.language {
  font-size: 12px;
  font-weight: 650;
}
.language span {
  margin-left: 5px;
  color: var(--muted);
}
.login {
  border-left: 1px solid var(--border);
  padding-left: 22px;
  font-weight: 600;
  font-size: 13px;
}
.shell {
  max-width: 1280px;
  margin: auto;
  padding: 0 42px;
}
footer {
  max-width: 1196px;
  margin: auto;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
footer .brand {
  font-size: 17px;
  color: var(--text);
}
footer .brand-logo {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9px;
  background: var(--text);
  color: var(--surface);
  padding: 12px 20px;
  z-index: 10;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: 90vw;
}
#toast:empty {
  display: none;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  background: var(--surface);
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
section[id] {
  scroll-margin-top: 25px;
}
[hidden] {
  display: none !important;
}

@media(max-width:1000px){.topbar nav{gap:8px}.brand small{display:none}.shell{padding:0 28px}footer{margin:0 28px}}
@media(max-width:650px){.topbar{height:auto;min-height:70px;padding:16px 20px;flex-wrap:wrap;gap:10px}.topbar nav{order:3;width:100%;justify-content:center;border-top:1px solid var(--border);padding-top:10px}.topbar nav button{font-size:11px}.header-actions{gap:8px}.login{padding-left:10px}.brand{font-size:20px}.shell{padding:0 18px}footer{flex-wrap:wrap;gap:15px;margin:0 18px}footer>span:last-child{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.account-menu{display:flex;align-items:center;gap:14px;border-left:1px solid var(--border);padding-left:16px}.account-profile{display:flex;align-items:center;gap:9px;text-decoration:none}.account-avatar{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;background:var(--soft);color:var(--brand);border-radius:50%;font-size:14px;font-weight:700}.account-label{display:flex;flex-direction:column;line-height:1.4}.account-label strong{font-size:12px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-label small{font-size:10px;color:var(--muted)}.account-logout{margin:0}.account-logout button{font-size:11px;border:1px solid var(--border);padding:7px 9px;border-radius:7px;white-space:nowrap}.account-menu[hidden],#account-login[hidden]{display:none!important}@media(max-width:1100px){.topbar{flex-wrap:wrap;height:auto;min-height:84px;padding-top:14px;padding-bottom:14px}.topbar nav{order:3;width:100%;justify-content:center}.account-label strong{max-width:110px}}@media(max-width:650px){.header-actions{flex-wrap:wrap}.account-menu{gap:9px;padding-left:9px}.account-label strong{max-width:100px}.account-logout button{font-size:10px}}
