:root {
  color-scheme: dark;
  --bg: #11121a;
  --surface: #191b27;
  --surface-raised: #202331;
  --border: #303446;
  --text: #f4f3fc;
  --muted: #aeb3c8;
  --accent: #c5b7ff;
  --primary: #bca9ff;
  --ink: #1a1031;
  font: 100%/1.5 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { font-size: 1.125rem; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; letter-spacing: -.018em; overflow-wrap: anywhere; }
p + p { margin-top: .75rem; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.topbar { background: #151620; border-bottom: 1px solid var(--border); }
.topbar-inner { min-height: 4.25rem; display: flex; align-items: center; gap: 2.4rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; font-size: 1.3rem; font-weight: 750; letter-spacing: -.05em; }
.brand .icon { color: var(--accent); width: 1.55rem; height: 1.55rem; }
nav, .account { display: flex; align-items: center; gap: .6rem; }
nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; color: var(--muted); font-size: .9rem; text-decoration: none; border-radius: .45rem; }
nav a:hover, nav a[aria-current] { background: #29253d; color: var(--accent); }
.account { margin-left: auto; gap: .8rem; font-size: .875rem; color: var(--muted); }
.account span { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding-block: 3.5rem 5rem; }
.page-heading { display: flex; align-items: end; margin-bottom: 2rem; }
.page-heading p, .signin p { color: var(--muted); margin-top: .65rem; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; }
.section-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.count, .badge, .keyword { display: inline-flex; align-items: center; border-radius: 10rem; padding: .12rem .55rem; width: fit-content; font-size: .8125rem; overflow-wrap: anywhere; }
.count, .neutral, .keyword { color: #d0d4e6; background: #2a2d3e; }
.success { color: #a5e8c5; background: #20362f; }
.warning { color: #ffd69c; background: #3e3026; }
.source, .add, .signin { padding: 1.35rem; }
.source + .source { margin-top: .85rem; }
.source-top { display: flex; align-items: start; gap: .8rem; }
.source-mark { width: 2.5rem; height: 2.5rem; border-radius: .65rem; display: grid; place-items: center; background: #312749; color: var(--accent); flex: none; }
.source-name { flex: 1; min-width: 0; }
.source-name span { overflow-wrap: anywhere; }
.muted, .field-help, .release-note { color: var(--muted); font-size: .875rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-block: .95rem; }
.rule { display: flex; align-items: center; align-content: flex-start; gap: .35rem; flex-wrap: wrap; font-size: .875rem; font-weight: 560; }
.rule .muted { font-weight: 400; }
.source-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem .75rem; color: var(--muted); font-size: .875rem; }
.source-meta time { color: var(--text); margin-left: .2rem; }
.actions { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.actions details[open] { flex-basis: 100%; }
.actions details[open] + form { align-self: end; }
.rule-edit { display: grid; gap: .75rem; margin-top: .75rem; }
.rule-edit button { justify-self: start; }
.add h2 { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.add h2 .icon { color: var(--accent); }
.add form, .fields { display: grid; gap: .9rem; }
.add button { width: 100%; }
.add > .field-help { margin-top: .75rem; }
label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 570; }
input, select, textarea, button, .button { font: inherit; }
input, select, textarea { width: 100%; min-width: 0; background: #12141d; color: var(--text); border: 1px solid #414559; border-radius: .45rem; padding: .55rem .65rem; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #959ab0; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; width: max-content; max-width: 100%; padding: .5rem .78rem; border-radius: .45rem; border: 1px solid #414559; background: var(--surface-raised); color: var(--text); font-size: .875rem; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #303345; }
.primary { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.primary:hover { background: #d2c6ff; }
.quiet { background: none; color: var(--muted); }
.danger { color: #ffb8be; }
.text-link { color: var(--accent); text-underline-offset: .18em; }
.source-name .text-link { color: var(--text); text-decoration: none; }
.source-name .text-link:hover, .upload-link:hover { text-decoration: underline; text-underline-offset: .18em; }
summary { cursor: pointer; }
summary.button { list-style: none; }
summary.button::-webkit-details-marker { display: none; }
.examples, .review { font-size: .875rem; }
.examples summary, .review summary { color: var(--accent); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .55rem; vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: .875rem; }
tr + tr, tbody { border-top: 1px solid var(--border); }
.examples table { margin-top: .45rem; font-size: .8125rem; }
.examples th { font-size: .8125rem; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.channel-search { margin-bottom: .9rem; }
.release-search { padding: 1.2rem 1.35rem; border-bottom: 1px solid var(--border); }
.search-field { flex: 1 1 14rem; min-width: min(100%, 12rem); }
.search-input { display: block; position: relative; }
.search-input > .icon { position: absolute; top: 50%; left: .65rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 2.15rem; }
.status-filter { min-width: min(100%, 10.5rem); max-width: 20rem; }
.filters > a { padding-bottom: .45rem; font-size: .875rem; }
.filter-scope { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .875rem; }
.release-table th, .release-table td { padding: .9rem 1.35rem; }
.release-table td:first-child { width: 44%; overflow-wrap: anywhere; }
.release-table td:last-child { width: 34%; overflow-wrap: anywhere; }
.published { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.upload-link { font-weight: 650; text-decoration: none; }
.release-note, .review { margin-top: .35rem; }
.review form { margin-top: .65rem; display: grid; gap: .45rem; }
.check { display: flex; align-items: start; gap: .45rem; }
.check input { width: auto; margin-top: .3rem; accent-color: var(--primary); }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.35rem; border-top: 1px solid var(--border); }
.pagination .button { margin-left: auto; }
.empty { padding: 2.2rem 1.15rem; text-align: center; }
.empty p { font-weight: 650; }
.empty span { color: var(--muted); }
.notice, .alert { padding: .75rem .9rem; border-radius: .45rem; margin-bottom: .85rem; font-size: .9rem; }
.notice { background: #20362f; color: #a5e8c5; }
.alert { background: #3e3026; color: #ffd69c; }
.source .alert { margin: .75rem 0 0; }
.public { padding-top: clamp(3rem, 12vw, 7rem); }
.signin { width: min(100%, 28rem); margin-inline: auto; padding: 2rem; }
.signin .source-mark { margin-bottom: .9rem; }
.signin h1 { font-size: 2rem; }
.signin .button { margin-top: 1.25rem; }
@media (max-width: 60rem) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  .shell { width: calc(100% - 1.5rem); }
  .topbar-inner { flex-wrap: wrap; gap: .45rem 1rem; padding-block: .55rem; }
  nav { order: 3; flex-basis: 100%; }
  .account span { display: none; }
  main { padding-top: 2rem; }
  .release-table { min-width: 33rem; }
}
