/* feedback.adeity.toonsmag.com. Tokens follow packages/ui/src/styles.css; fonts are Adeity's own, self-hosted. */
@font-face {
  font-family: 'Adeity Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/adeity-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Adeity Display';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/adeity-display.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ember-a: #ff4d2e;
  --ember-b: #ffb547;
  --ember: linear-gradient(135deg, var(--ember-a), var(--ember-b));
  --violet: #7c5cff;
  --teal: #2dd4bf;
  --rose: #ff6b7a;
  --on-accent: #1a0f08;
  --bg: #0b0a12;
  --bg-2: #15122a;
  --bg-3: #1e1a38;
  --text: #f5f2ec;
  --text2: #c9c3dc;
  --text3: #a8a2bd;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --field: rgba(0, 0, 0, 0.28);
  --link: #ffb547;
  --bad-text: #ff98a3;
  --bad-bg: rgba(255, 107, 122, 0.12);
  --ok-text: #5eead4;
  --font-display: 'Adeity Display', 'Adeity Sans', system-ui, sans-serif;
  --font-body: 'Adeity Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-control: 16px;
  --r-card: 24px;
  --touch: 48px;
  --t-fast: 120ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f0e8;
    --bg-2: #ffffff;
    --bg-3: #ebe6dc;
    --text: #17142a;
    --text2: #4a4560;
    --text3: #5f5973;
    --surface: rgba(23, 20, 42, 0.035);
    --surface-2: rgba(23, 20, 42, 0.06);
    --hover: rgba(23, 20, 42, 0.06);
    --line: rgba(23, 20, 42, 0.09);
    --line-2: rgba(23, 20, 42, 0.16);
    --field: rgba(255, 255, 255, 0.9);
    --link: #ad2e15;
    --bad-text: #b3261e;
    --bad-bg: rgba(179, 38, 30, 0.08);
    --ok-text: #0f766e;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font-body); }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 18px; }
p { margin: 0 0 0.8em; }
.muted { color: var(--text3); }
.small { font-size: 14px; }
.lead { color: var(--text2); font-size: 18px; max-width: 60ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; padding: 8px 14px; background: var(--bg-2); border-radius: var(--r-xs); z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--ember-b); outline-offset: 2px; }

/* Header and footer */
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 19px; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--text2); text-decoration: none; padding: 10px 14px; border-radius: var(--r-sm); min-height: var(--touch); display: inline-flex; align-items: center; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current='page'] { background: var(--surface-2); color: var(--text); font-weight: 650; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
main { max-width: 960px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px; }
.foot { border-top: 1px solid var(--line); padding: 24px clamp(16px, 4vw, 40px); text-align: center; font-size: 14px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch); padding: 0 18px; border-radius: var(--r-control); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 650 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.btn:hover { background: var(--hover); }
.btn.ac { background: var(--ember); color: var(--on-accent); border-color: transparent; }
.btn.danger { color: var(--bad-text); border-color: var(--bad-text); }
.btn:disabled { opacity: 0.55; cursor: progress; }
input, select, textarea { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: var(--touch); width: 100%; }
textarea { resize: vertical; }
select { width: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--ember-a); flex: none; }
.stack { display: grid; gap: 10px; max-width: 640px; }
.stack label:not(.check) { font-weight: 650; margin-top: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; color: var(--ok-text); }
.form-status.bad { color: var(--bad-text); }
.notice { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 16px; }
.live { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg-3); padding: 12px 18px; border-radius: var(--r-sm); margin: 0; }
.live:empty { display: none; }

/* Board */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filters input[type='search'] { flex: 1 1 220px; width: auto; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.post-main { min-width: 0; }
.post-title { color: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; }
.post-title:hover { text-decoration: underline; }
.post-meta { color: var(--text3); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 0; }
.vote { flex: none; width: 56px; min-height: 60px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 750 16px/1 var(--font-body); cursor: pointer; }
.vote svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vote[aria-pressed='true'] { background: var(--ember); color: var(--on-accent); border-color: transparent; }
.vote:disabled { cursor: default; opacity: 0.7; }
.vote.static { cursor: default; background: transparent; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--surface-2); color: var(--text2); }
.st-planned { background: rgba(124, 92, 255, 0.18); color: #b9a8ff; }
.st-in_progress { background: rgba(255, 181, 71, 0.18); color: #ffc876; }
.st-done { background: rgba(45, 212, 191, 0.16); color: var(--ok-text); }
.st-declined { background: var(--surface-2); color: var(--text3); }
@media (prefers-color-scheme: light) {
  .st-planned { color: #4c32c9; }
  .st-in_progress { color: #8a4b00; }
}
.flag { background: var(--bad-bg); color: var(--bad-text); }
.team-mark { color: var(--link); font-weight: 700; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-card); }

/* Post page */
.crumbs { color: var(--text3); font-size: 14px; }
.post-head { display: flex; gap: 16px; align-items: flex-start; }
.prose { max-width: 68ch; margin-top: 16px; overflow-wrap: anywhere; }
.team-reply { border-left: 4px solid var(--ember-a); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 20px 0; }
.comments ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.comment { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.comment.team { border-color: var(--ember-a); }
.comment .prose { margin-top: 6px; }

/* New */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 24px; }
.tabs a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text2); text-decoration: none; min-height: var(--touch); display: inline-flex; align-items: center; }
.tabs a[aria-selected='true'] { background: var(--ember); color: var(--on-accent); border-color: transparent; font-weight: 700; }
.diag { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.diag-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--field); padding: 10px; border-radius: var(--r-xs); margin: 8px 0; }
.similar ul { margin: 0; padding-left: 20px; }

/* Roadmap */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.col { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; background: var(--surface); }
.col h2 { margin-top: 0; font-size: 18px; }
.posts.compact { gap: 8px; }
.posts.compact li { padding: 0; }

/* Admin */
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; background: var(--surface); }
.card h3 { margin: 8px 0 0; }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--text2); }

.message, .prose-page { max-width: 68ch; }

@media (max-width: 640px) {
  .top { position: static; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .post { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
