:root {
  --paper: #f3efe6;
  --card: #fbf9f4;
  --ink: #16130f;
  --ink-2: #3b362e;
  --muted: #6f685c;
  --line: #ddd5c4;
  --line-2: #cfc6b2;
  --accent: #e8461e;
  --accent-ink: #ffffff;
  --accent-soft: #fbe2d8;
  --ok: #2f7a4b;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 14px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14120e;
    --card: #1d1a15;
    --ink: #f2ede3;
    --ink-2: #d4cdbf;
    --muted: #9c9485;
    --line: #2f2b23;
    --line-2: #3d382e;
    --accent: #ff5a2e;
    --accent-ink: #14120e;
    --accent-soft: #3a1d12;
    --ok: #5cc287;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

/* ---- üst ---------------------------------------------------------------- */
.top {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px var(--gutter) 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand tagline lang";
  align-items: end;
  gap: 10px 24px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif; /* logo her dilde aynı */
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.brand-b { color: var(--accent); }
.brand-badge {
  margin-inline-start: 10px;
  align-self: center;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0;
  padding: 5px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-4deg);
}
.tagline { grid-area: tagline; justify-self: end; margin: 0; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.tagline span { color: var(--muted); }
.lang {
  grid-area: lang;
  align-self: start;
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding-block: 0;
  padding-inline: 10px 28px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236f685c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 12px;
  color: var(--ink);
  font: 500 13px var(--body);
  cursor: pointer;
}
.lang:hover { border-color: var(--ink); }
.lang option { color: #16130f; background: #fbf9f4; }
[dir="rtl"] .lang { background-position: left 8px center; padding-inline: 10px 28px; }

/* ---- ülke şeridi ------------------------------------------------------------ */
.rail {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px max(var(--gutter), calc((100vw - 880px) / 2 + var(--gutter)));
}
.rail::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab .flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.tab .globe { width: 18px; height: 18px; }
.tab .n { font: 500 11px/1 var(--mono); opacity: .6; }
.tab .you { font: 700 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tab[aria-selected="true"] .you { color: var(--accent); }

/* ---- gövde ---------------------------------------------------------------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 20px var(--gutter) 40px; }

.periods { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.periods button {
  flex: none;
  background: none;
  border: 0;
  padding: 6px 0 12px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 4.4vw, 24px);
  letter-spacing: -0.02em;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.periods button small { font: 500 12px/1 var(--mono); letter-spacing: 0; margin-inline-start: 6px; }
.periods button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-inline-end: 6px; vertical-align: 1px; }
.status .dot.off { background: var(--muted); }
.status b { font-family: var(--mono); font-weight: 700; }
.notice {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px dashed var(--line-2);
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* ---- aday önerme ------------------------------------------------------------ */
.submit {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 22px;
}
.submit label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.submit .row { display: flex; gap: 8px; }
.submit input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px var(--body);
}
.submit input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn {
  flex: none;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: wait; }
.submit .hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.submit .hint img { display: inline; width: 16px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-inline-end: 3px; }
.submit .err { margin: 10px 0 0; font-size: 14px; color: var(--accent); font-weight: 500; }

/* ---- kartlar ------------------------------------------------------------------ */
.list { display: grid; gap: 12px; }
.card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 132px;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  scroll-margin-top: 80px;
}
.card.mine { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--accent-soft); } 100% { background: var(--card); } }

.rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line-2);
}
.card.lead .rank { color: var(--accent); }
.rank small { display: block; margin-top: 6px; font: 500 11px/1.2 var(--mono); letter-spacing: 0; color: var(--muted); }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--line); }
.who .names { min-width: 0; line-height: 1.25; }
.who .name { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.who .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .handle { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .tick { width: 15px; height: 15px; flex: none; color: var(--accent); }
.flags { margin-inline-start: auto; display: flex; gap: 3px; flex: none; }
.flags img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }

.text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.text.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }

.media { margin-top: 10px; display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); border-radius: 12px; overflow: hidden; }
.media.one { grid-template-columns: 1fr; }
.media a { position: relative; display: block; background: var(--line); }
.media img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; aspect-ratio: 16 / 10; }
.media.one img { aspect-ratio: auto; max-height: 360px; }
.media .play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgb(0 0 0 / .6); display: grid; place-items: center;
}
.media .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.media.blur img { filter: blur(22px) saturate(.6); }
.media .warn { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px #000; }

.quote { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.quote b { color: var(--ink); }

.meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.meta .views { color: var(--ink); font-weight: 700; }
.meta a { margin-inline-start: auto; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.meta a:hover { color: var(--accent); border-color: var(--accent); }

/* oy pusulası */
.ballot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.stamp {
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font: 700 13px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.stamp:hover { background: var(--accent-soft); }
.stamp:active { transform: scale(.96); }
.stamp.on { background: var(--accent); color: var(--accent-ink); transform: rotate(-3deg); }
.stamp.on:hover { background: var(--accent); }
.stamp:disabled { cursor: not-allowed; border-color: var(--line-2); color: var(--muted); background: transparent; transform: none; }
.count { font: 700 22px/1 var(--mono); text-align: end; }
.count small { display: block; font: 500 11px/1.3 var(--mono); color: var(--muted); margin-top: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .4s ease; }
.card.lead .bar i, .card.mine .bar i { background: var(--accent); }
.win {
  align-self: flex-end;
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.chip { align-self: flex-end; font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 6px 8px; border-radius: 6px; }

/* boş durumlar, arşiv */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty strong { display: block; color: var(--ink); font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.group { margin: 18px 0 8px; font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.arch button {
  text-align: start; cursor: pointer; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; gap: 8px; min-width: 0;
}
.arch button:hover { border-color: var(--ink); }
.arch .m { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-transform: capitalize; }
.arch .w { font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.arch .s { font: 500 12px/1 var(--mono); color: var(--muted); }

.skeleton { height: 150px; border-radius: var(--r); background: linear-gradient(90deg, var(--card), var(--line), var(--card)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---- alt ----------------------------------------------------------------- */
.foot { max-width: 880px; margin: 0 auto; padding: 24px var(--gutter) 90px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot p { margin: 0 0 8px; max-width: 70ch; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; box-shadow: 0 8px 30px rgb(0 0 0 / .25);
}

.devbar {
  position: fixed; left: 10px; bottom: 10px; z-index: 15; display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px; border-radius: 10px; background: #2b2620; color: #f3efe6; font: 500 12px var(--mono);
}
.devbar select { font: inherit; background: #f3efe6; color: #16130f; border: 0; border-radius: 6px; padding: 4px 6px; }

/* ---- telefon ------------------------------------------------------------- */
@media (max-width: 640px) {
  .top { padding-top: 20px; }
  .card { grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
  .rank { font-size: 24px; }
  .rank small { display: none; }
  .ballot { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
  .ballot .stamp { flex: 0 0 132px; height: 44px; }
  .ballot .bar { flex: 1; }
  .ballot .count { order: 3; min-width: 64px; }
  .ballot .win, .ballot .chip { order: -1; align-self: center; }
  .submit .row { flex-direction: column; }
  .btn { width: 100%; }
  .meta a { margin-inline-start: 0; }
}

/* ---- dillere özel ------------------------------------------------------------ */
/* Telefon: logo + dil seçici üstte, slogan altta */
@media (max-width: 640px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand lang" "tagline tagline"; }
  .tagline { justify-self: start; max-width: none; }
}
/* Japonca: sistem yazı tipleri, sıkı harf aralığı yok */
html[lang="ja"] {
  --display: 'Bricolage Grotesque', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --body: 'Instrument Sans', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --mono: 'JetBrains Mono', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif; /* rakamlar mono, kana/kanji düzgün yazı tipiyle */
}
html[lang="ja"] .periods button, html[lang="ja"] .empty strong, html[lang="ja"] .arch .m { letter-spacing: 0; }
/* Arapça: harfler bitişik yazıldığı için harf aralığı her yerde sıfır, büyük harf dönüşümü yok */
html[lang="ar"] {
  --display: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; /* rakamlar mono, Arapça harfler bitişik */
}
html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] .brand, html[lang="ar"] .brand * { letter-spacing: -0.04em !important; }
html[lang="ar"] .brand-badge { letter-spacing: 0 !important; }
html[lang="ar"] .stamp, html[lang="ar"] .win, html[lang="ar"] .group, html[lang="ar"] .tab .you { font-family: var(--body); text-transform: none; }
html[lang="ar"] .periods button { font-weight: 700; }
[dir="rtl"] .stamp.on { transform: rotate(3deg); }
[dir="rtl"] .brand-badge { transform: rotate(-4deg); }

/* ---- hukuki sayfalar -------------------------------------------------------- */
.foot-links a { color: var(--ink); }
.legal .top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav"; }
.legal-nav { grid-area: nav; justify-self: end; align-self: center; font-size: 14px; color: var(--muted); }
.legal-nav a { color: var(--ink-2); }
.legal-body { max-width: 760px; }
.legal-body h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(28px, 6vw, 40px); margin: 8px 0 4px; }
.legal-body h2 { font-family: var(--display); font-size: 20px; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body a { color: var(--accent); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--ink); font-weight: 600; }
.legal-body code { font-family: var(--mono); font-size: 0.9em; }

/* ---- ilk geliş tanıtımı ------------------------------------------------------- */
body.locked { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: rgb(22 19 15 / .55);
  backdrop-filter: blur(3px);
}
.intro-card {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 18px;
  padding: 20px; box-shadow: 0 20px 60px rgb(0 0 0 / .3);
}
.intro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.intro-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.intro-head .lang { flex: none; }
.intro-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.intro-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.intro-list b { font: 700 13px/1 var(--mono); color: var(--accent); }
.intro-ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 14px; cursor: pointer; }
.intro-ok input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.intro-ok a { color: var(--accent); }
.intro-go { width: 100%; margin-top: 14px; }
.intro-go:disabled { cursor: not-allowed; opacity: .35; }
@media (max-width: 640px) { .intro { place-items: end center; padding: 0; } .intro-card { max-width: none; border-radius: 18px 18px 0 0; border-bottom: 0; max-height: 92vh; } }

/* ---- Turnstile onay kutusu (Managed mod) ---------------------------------------- */
.ts-wrap { position: fixed; right: 10px; bottom: 10px; z-index: 60; }
.ts-wrap .ts-box p { display: none; }
.ts-wrap.show { top: 0; left: 0; right: 0; bottom: 0; display: grid; place-items: center; padding: 16px; background: rgb(22 19 15 / .55); backdrop-filter: blur(3px); }
.ts-wrap.show .ts-box { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px; text-align: center; box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.ts-wrap.show .ts-box p { display: block; margin: 0 0 12px; font-weight: 600; }

/* ---- destek bağlantısı (Buy Me a Coffee) -------------------------------------- */
.foot-support { margin: 4px 0 14px !important; }
.foot-support a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1.5px solid var(--accent); border-radius: 10px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.foot-support a:hover { background: var(--accent-soft); }
.foot-support svg { width: 18px; height: 18px; flex: none; }

/* ---- yönetim paneli ---------------------------------------------------------------- */
.admin .adm-top { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand side"; }
.adm-head-right { grid-area: side; justify-self: end; align-self: center; display: flex; gap: 12px; align-items: center; }
.adm-badge { font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.adm-link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 14px; }
.adm-main { padding-top: 22px; }
.adm-h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(24px, 5vw, 32px); margin: 0 0 16px; }
.adm-h1 small { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; margin-inline-start: 8px; }
.adm-main h2 { font-family: var(--display); font-size: 18px; margin: 26px 0 10px; }
.adm-login { max-width: 360px; margin: 40px auto; display: grid; gap: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 22px; }
.adm-login h1 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; }
.adm-login input, .adm-filters input, .adm-filters select, .adm-setting input, .adm-setting select {
  height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 15px var(--body);
}
.adm-login .err { color: var(--accent); margin: 0; font-size: 14px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.adm-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; }
.adm-stats b { font: 700 28px/1 var(--mono); }
.adm-stats span { color: var(--muted); font-size: 13px; }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.adm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-bars li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.adm-bars li b { margin-inline-start: auto; font-family: var(--mono); }
.adm-list { display: grid; gap: 10px; }
.adm-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.adm-tweet { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.adm-tweet img { width: 34px; height: 34px; border-radius: 50%; background: var(--line); }
.adm-tweet p { margin: 4px 0 0; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-meta { font: 500 12.5px/1.6 var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.adm-meta b { color: var(--ink); }
.adm-meta .flag, .adm-bars .flag, .adm-table .flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); vertical-align: -1px; margin-inline-end: 4px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.adm-actions button, .adm-table button { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.adm-actions button:hover, .adm-table button:hover { border-color: var(--ink); }
.adm-actions .danger, .adm-table .danger { border-color: var(--accent); color: var(--accent); }
.adm-actions a { color: var(--ink-2); }
.chip.st-ok { color: var(--ok); border-color: currentColor; }
.chip.st-blocked { color: var(--accent); border-color: currentColor; }
.chip.st-removed { color: var(--muted); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.adm-filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.adm-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; max-width: 75ch; }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th, .adm-table td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.adm-table td:last-child { width: 1%; }
.adm-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.adm-table code { font-family: var(--mono); font-size: 12px; }
.adm-settings { display: grid; gap: 12px; }
.adm-setting { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.adm-setting label { display: block; font-weight: 600; margin-bottom: 8px; }
.adm-setting .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-setting .btn { height: 42px; }
.adm-setting p { margin: 8px 0 0; font-size: 13px; }
.adm-add { display: grid; gap: 6px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.adm-add .muted { font-size: 13px; }
.adm-add .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.adm-add input, .adm-add select { height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 15px var(--body); }
.adm-add #nUrl { flex: 2 1 260px; min-width: 0; }
.adm-add #nNote { flex: 1 1 160px; min-width: 0; }
.adm-add .btn { height: 42px; }
