.maintenance-banner{position:sticky;top:0;z-index:1001;padding:9px max(12px,3vw);background:var(--surface);color:var(--ink);border-bottom:2px solid var(--accent);text-align:center;line-height:1.4}
[hidden] {display:none!important}
:root {
  --bg: #eef2f3;
  --surface: #fff;
  --ink: #10171a;
  --dim: #546067;
  --line: #cbd4d6;
  --accent: #009ab3;
  color-scheme: light;
}
:root.dark {
  --bg: #192226;
  --surface: #253136;
  --ink: #f1f5f5;
  --dim: #bac6c9;
  --line: #48565b;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
nav a.active {
  color: var(--accent);
}
button,
input,
select,
textarea,
summary {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button,
.btn,
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 12px;
}
button:hover,
.btn:hover {
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.accent,
.btn.accent {
  background: var(--accent);
  color: white;
  border-color: transparent;
  font-weight: bold;
}
.wrap {
  width: min(2688px, calc(100% - 2 * clamp(16px, 2vw, 48px)));
  max-width: 100%;
  margin: auto;
}
header,
footer {
  background: var(--surface);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}
.logo {
  background: var(--accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: bold;
}
.bar nav {
  display: flex;
  align-items: center;
}
.bar nav a {
  padding: 0 12px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}
.bar #search,
.bar summary {
  border: 0;
  background: none;
  font-size: 22px;
  padding: 3px;
}
.bar details:not(:has(a:not([hidden]))) {display:none}
.bar details {
  position: relative;
}
.bar summary {
  list-style: none;
}
.menu {
  position: absolute;
  z-index: 5;
  top: 35px;
  left: 0;
  width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  box-shadow: 0 5px 20px #0002;
}
.menu > * {
  display: block;
  padding: 8px;
}
.header-icon{display:inline-grid;place-items:center;position:relative;padding:3px;width:30px;height:30px;flex:none;font-size:18px}
.header-icon[hidden]{display:none}
.header-icon.unread::after{content:'';position:absolute;top:2px;right:3px;background:var(--accent);border-radius:50%;width:7px;height:7px}
.cabinet .privacy-option{display:flex;align-items:center;gap:6px}
.cabinet .privacy-option input{width:auto;margin:0}
.login {
  margin-left: auto;
}

:root[data-theme=burgundy] {
  --bg:#21151c;--surface:#34222c;--ink:#fff2f5;--dim:#d4b6c2;--line:#654453;
  --accent:#dc8eaa;--action:#983957;--footer:#24161e;
}
:root[data-theme=forest] {
  --bg:#11231c;--surface:#20372b;--ink:#f0f8ef;--dim:#b4cdbd;--line:#42644f;
  --accent:#93c7a1;--action:#396c4a;--footer:#12261d;
}
:root[data-theme=pink] {
  --bg:#f9eef1;--surface:#fff9fa;--ink:#38262f;--dim:#775765;--line:#dfc7cf;
  --accent:#984866;--action:#984866;--footer:#39232e;
}
:root[data-theme=turquoise] {
  --bg:#a6e3dc;--surface:#d9f6f0;--ink:#073b3a;--dim:#285751;--line:#51948b;
  --accent:#005450;--action:#006864;--footer:#073c3c;
}
:root[data-theme=turquoise] header {background:#77d4c8}
.theme-picker{position:relative;display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}
.theme-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.theme-picker:is(:hover,:focus-within){border-color:var(--accent)}
.theme-picker:focus-within{outline:2px solid var(--accent);outline-offset:2px}
