/* Токены сняты с vibeport.ru (~/vibe/landing/src/index.html): служебный сайт студии
   не должен выглядеть чужим. Тема одна, тёмная — как на самом сайте. */
:root {
  --bg: #100b07; --ink: #f2e9db; --accent: #e0a84a; --accent-ink: #1a1206;
  --dim: #94836b; --line: rgba(214,186,150,.14); --line-hi: rgba(224,168,74,.45);
  --surface: rgba(255,240,220,.03); --accent-dim: rgba(224,168,74,.13);
  --forest: #2e5c34;                      /* подложка под спрайты: на фоне страницы их не видно */
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; padding-block: 24px 64px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: 26px; letter-spacing: .01em; }
h2 { font-size: 19px; }
a { color: var(--accent); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

header.top { border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
header.top .wrap { padding-block: 14px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 18px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.brand .mark { flex: none; }
.login .brand { justify-content: center; }
nav.projects { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
nav.projects button { font: 13px/1 var(--sans); color: var(--dim); background: none;
  border: 1px solid transparent; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
nav.projects button:hover { color: var(--ink); border-color: var(--line); }
nav.projects button[aria-current="true"] { color: var(--accent-ink); background: var(--accent);
  border-color: var(--accent); }

.group { border-top: 1px solid var(--line); padding-block: 22px; }
.group > h2 { margin-bottom: 4px; }
.group .note { color: var(--dim); font-size: 13px; margin: 0 0 14px; }
.variants { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.card.taken { border-color: var(--line-hi); }
.stage { background: var(--forest); border-radius: 6px; display: grid; place-items: center;
  padding: 8px; min-height: 120px; }
.stage img { max-width: 100%; }
.sizes { display: flex; gap: 12px; align-items: flex-end; justify-content: center;
  flex-wrap: wrap; max-width: 100%; }
.sizes img { max-width: 100%; height: auto; }
.card h3 { font-size: 14px; font-family: var(--sans); font-weight: 600; }
.meta { color: var(--dim); font-size: 12px; }
.verdicts { display: flex; gap: 6px; }
.verdicts button { flex: 1; font: 12px/1 var(--sans); padding: 8px 6px; cursor: pointer;
  color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 7px; }
.verdicts button:hover { border-color: var(--line-hi); }
.verdicts button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 600; }
textarea, input { font: 14px/1.4 var(--sans); color: var(--ink); background: rgba(0,0,0,.25);
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; width: 100%; }
textarea { resize: vertical; min-height: 56px; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: 8px; align-items: center; }
.btn { font: 14px/1 var(--sans); font-weight: 600; padding: 11px 18px; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--line); font-weight: 400; }
.poll { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.poll .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--dim); padding: 28px 0; }

/* Вход — отдельная, узкая страница */
.login { max-width: 380px; margin: 0 auto; padding: 56px 16px; display: flex;
  flex-direction: column; gap: 14px; }
.login .policy { color: var(--dim); font-size: 12px; margin: 0; padding-left: 18px; }
.err { color: #e98b6b; font-size: 13px; min-height: 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.ver { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.login .ver { text-align: center; margin: 4px 0 0; }

/* Лента: оглавление справа от поля. Новое сверху, оценённое уходит вниз — как в оглавлении,
   а не как уведомления: ничего не всплывает и ничего не исчезает. */
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.col-main { min-width: 0; }
.feed { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px);
  border-left: 1px solid var(--line); padding-left: 18px; max-height: calc(100vh - 110px); overflow: auto; }
.feed h2 { font-size: 15px; margin-bottom: 10px; }
.feed ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.feed a { display: block; padding: 7px 8px; border-radius: 7px; text-decoration: none;
  color: var(--ink); font-size: 13px; line-height: 1.35; border: 1px solid transparent; }
.feed a:hover { background: var(--surface); border-color: var(--line); }
.feed .w { display: block; color: var(--dim); font-size: 11px; letter-spacing: .03em; }
.feed .new { color: var(--accent); font-weight: 600; }
.feed .done { color: var(--dim); }
.feed li.sep { color: var(--dim); font-size: 11px; padding: 10px 8px 4px; letter-spacing: .06em;
  text-transform: uppercase; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .feed { position: static; border-left: 0; border-top: 1px solid var(--line);
    padding-left: 0; padding-top: 16px; max-height: none; order: -1; }
}
