:root { color-scheme: dark; --bg: #16181d; --card: #1f2229; --line: #2e323b; --text: #e6e8ec; --dim: #9aa1ad; --acc: #6aa8ff; --bad: #ff7b7b; --ok: #6fd08c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 600; text-decoration: none; margin-right: auto;  display: flex; align-items: center; gap: 8px; }
.brand img { width: 24px; height: 24px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { margin: 0 0 8px; font-size: 24px; }
h2 { margin: 0 0 8px; font-size: 18px; }
.lead { color: var(--dim); margin: 0 0 16px; }
label { display: block; margin: 12px 0; color: var(--dim); font-size: 13px; }
input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
button { padding: 8px 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; cursor: pointer; }
button:hover { border-color: var(--acc); }
button.primary { background: var(--acc); color: #0c1624; border-color: var(--acc); font-weight: 600; margin-top: 8px; }
button:disabled { opacity: .5; cursor: default; }
.hidden { display: none !important; }
.msg { min-height: 1.4em; color: var(--dim); }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
#who { color: var(--dim); }
#tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
#tabs button.on { border-color: var(--acc); color: var(--acc); }
.folder { margin: 14px 0 4px; font-weight: 600; }
.item { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; }
.item:hover { background: var(--card); }
.item a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item a:hover { color: var(--acc); }
.item small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; max-width: 45%; }
.empty { color: var(--dim); padding: 12px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; display: flex; justify-content: space-between; gap: 10px; }
.card .tag { color: var(--dim); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
