:root {
  color-scheme: dark;
  --bg0: #0b1220;
  --bg1: #0e1a2f;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --accent: #29c7b7;
  --warn: #f08c3a;
  --danger: #ff5c7a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  --grid-opacity: 0.5;
  --body-bg-image:
    radial-gradient(1200px 700px at 20% 10%, #12355c 0%, rgba(18, 53, 92, 0) 60%),
    radial-gradient(1000px 700px at 85% 20%, #25487a 0%, rgba(37, 72, 122, 0) 55%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  --body-bg-size: auto;
  --body-bg-position: 0 0;
  --body-bg-repeat: no-repeat;
  background-color: var(--bg0);
  background-image: var(--body-bg-image);
  background-size: var(--body-bg-size);
  background-position: var(--body-bg-position);
  background-repeat: var(--body-bg-repeat);
  background-attachment: fixed;
}

body[data-bg="aurora"] {
  --grid-opacity: 0.55;
  --body-bg-image:
    radial-gradient(1100px 700px at 18% 10%, rgba(41,199,183,0.28) 0%, rgba(41,199,183,0) 60%),
    radial-gradient(900px 650px at 86% 24%, rgba(100, 160, 255, 0.22) 0%, rgba(100,160,255,0) 55%),
    linear-gradient(160deg, #081123, #0b1f37);
}

body[data-bg="ember"] {
  --grid-opacity: 0.45;
  --body-bg-image:
    radial-gradient(1200px 780px at 22% 12%, rgba(240,140,58,0.22) 0%, rgba(240,140,58,0) 62%),
    radial-gradient(1000px 700px at 88% 22%, rgba(255, 92, 122, 0.18) 0%, rgba(255,92,122,0) 55%),
    linear-gradient(160deg, #0b0f1b, #17172a);
}

body[data-bg="noir"] {
  --grid-opacity: 0.35;
  --body-bg-image:
    radial-gradient(900px 520px at 22% 12%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(900px 520px at 86% 24%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #05060b, #0b1220);
}

body[data-bg="dune"] {
  --grid-opacity: 0.42;
  --body-bg-image:
    radial-gradient(1200px 720px at 18% 10%, rgba(255, 210, 120, 0.14) 0%, rgba(255, 210, 120, 0) 62%),
    radial-gradient(1000px 700px at 84% 18%, rgba(41,199,183,0.12) 0%, rgba(41,199,183,0) 58%),
    linear-gradient(160deg, #0a1220, #14203a);
}

body[data-bg="skyline"] {
  --grid-opacity: 0.52;
  --body-bg-image:
    radial-gradient(1200px 760px at 20% 8%, rgba(70, 140, 255, 0.24) 0%, rgba(70,140,255,0) 62%),
    radial-gradient(900px 650px at 82% 18%, rgba(41,199,183,0.18) 0%, rgba(41,199,183,0) 58%),
    linear-gradient(160deg, #07112a, #0e274b);
}

body[data-bg="custom"] {
  --grid-opacity: 0.30;
  --body-bg-image:
    linear-gradient(160deg, rgba(11, 18, 32, 0.72), rgba(14, 26, 47, 0.88)),
    var(--custom-bg-url);
  --body-bg-size: auto, cover;
  --body-bg-position: 0 0, center;
  --body-bg-repeat: no-repeat, no-repeat;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grid-opacity, 0.5);
  background-image:
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,1));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(9, 14, 25, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 12px clamp(16px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark { font-weight: 600; letter-spacing: 0.2px; }
.brand__sub { color: var(--muted); font-size: 13px; }

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onlineops {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(520px, 40vw);
}

@media (min-width: 720px) {
  .onlineops { display: inline-flex; }
}

.opchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  white-space: nowrap;
}

.opdot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
}

.opdot--idle { background: rgba(255,255,255,0.30); }
.opdot--active {
  background: rgba(66, 241, 164, 0.95);
  box-shadow: 0 0 0 0 rgba(66, 241, 164, 0.45);
  animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(66, 241, 164, 0.36); }
  70% { box-shadow: 0 0 0 10px rgba(66, 241, 164, 0.00); }
  100% { box-shadow: 0 0 0 0 rgba(66, 241, 164, 0.00); }
}

.nav { display: flex; gap: 8px; align-items: center; }
.nav__link {
  text-decoration: none;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.nav__link--active { color: var(--text); border-color: rgba(41,199,183,0.55); background: rgba(41,199,183,0.10); }

@media (max-width: 520px) {
  .nav { display: none; }
}

.who { display: grid; gap: 2px; }
.who__label { font-size: 11px; color: var(--muted); }
.who__name { font-size: 13px; font-weight: 500; }

.page {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px clamp(16px, 2.2vw, 28px);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: clamp(340px, 28vw, 440px) 1fr;
    align-items: start;
    height: calc(100dvh - 86px);
  }
  .sidebar, .main { max-height: calc(100dvh - 86px); }
}

@media (max-width: 979px) {
  .sidebar--hide-mobile { display: none; }
}

.sidebar {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.main { min-height: 60vh; }

@media (min-width: 980px) {
  .main { overflow: hidden; }
}

.filters { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.search__input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}

.sel {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
  color-scheme: dark;
}

.sel option {
  background: rgba(9, 14, 25, 0.96);
  color: rgba(255,255,255,0.92);
}
.search__input::placeholder { color: rgba(255,255,255,0.45); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tab {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.tab--active { color: var(--text); border-color: rgba(41,199,183,0.55); background: rgba(41,199,183,0.10); }

@media (min-width: 980px) {
  .tab--back { display: none; }
}

.tlist { display: grid; }

@media (min-width: 980px) {
  .tlist { overflow: auto; }
}
.trow {
  display: grid;
  gap: 8px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 140ms ease;
}
.trow--active { background: rgba(41,199,183,0.08); }
.trow--hot {
  background: rgba(255, 198, 92, 0.08);
  border-left: 3px solid rgba(255, 198, 92, 0.85);
}
.trow:hover { background: rgba(255,255,255,0.04); }

.trow__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trow__id { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.82); }
.trow__subject { font-weight: 500; line-height: 1.2; }
.trow__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.mono { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.70); }
.muted { color: var(--muted); }

.pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.pill--status[data-status="open"] { border-color: rgba(41,199,183,0.55); color: rgba(41,199,183,0.95); }
.pill--status[data-status="in_progress"] { border-color: rgba(240,140,58,0.55); color: rgba(240,140,58,0.95); }
.pill--status[data-status="waiting_user"] { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); }
.pill--status[data-status="resolved"] { border-color: rgba(160, 255, 190, 0.45); color: rgba(160, 255, 190, 0.95); }
.pill--status[data-status="closed"] { opacity: 0.75; }

.pill--type { border-color: rgba(255,255,255,0.14); }
.pill--type[data-type="refund"] { border-color: rgba(255, 198, 92, 0.55); background: rgba(255, 198, 92, 0.10); color: rgba(255, 214, 128, 0.95); }
.pill--type[data-type="bug"] { border-color: rgba(255, 92, 122, 0.55); background: rgba(255, 92, 122, 0.10); color: rgba(255, 140, 160, 0.95); }
.pill--type[data-type="question"] { border-color: rgba(120, 170, 255, 0.55); background: rgba(120, 170, 255, 0.10); color: rgba(160, 200, 255, 0.95); }
.pill--type[data-type="idea"] { border-color: rgba(41,199,183,0.55); background: rgba(41,199,183,0.10); color: rgba(41,199,183,0.95); }
.pill--type[data-type="business"] { border-color: rgba(210, 180, 255, 0.50); background: rgba(210, 180, 255, 0.10); color: rgba(225, 210, 255, 0.95); }
.pill--type[data-type="whitelist"] { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }

.pill--viewers {
  border-color: rgba(160, 200, 255, 0.35);
  background: rgba(120, 170, 255, 0.08);
  color: rgba(200, 225, 255, 0.92);
}

.tab--type[data-active="1"] { color: var(--text); border-color: rgba(41,199,183,0.55); background: rgba(41,199,183,0.10); }

.card {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero__title { font-size: 18px; font-weight: 600; }
.hero__text { margin-top: 8px; color: var(--muted); line-height: 1.35; }

.ticket { padding: 14px; }

@media (min-width: 980px) {
  .ticket {
    height: calc(100dvh - 86px);
    display: flex;
    flex-direction: column;
  }
}
.ticket__top { display: grid; gap: 10px; }
.ticket__id { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.75); }
.ticket__subject { font-size: 18px; font-weight: 600; line-height: 1.18; }
.ticket__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ticket__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.spacer { flex: 1; }

.refundbox {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.refundbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.refundbox__title { font-weight: 600; }
.refundbox__hint { font-size: 12px; margin-top: 3px; }
.refundbox__actions { display: flex; gap: 8px; align-items: center; }

.refundbox__body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.refundlist { display: grid; gap: 8px; }
.refunditem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.refunditem__left { display: grid; gap: 3px; }
.refunditem__right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.refundmeta { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.70); }
.refundbadges { display: inline-flex; gap: 8px; flex-wrap: wrap; }

.label { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.ticket__desc { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }

.desc {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  overflow: hidden;
}

.desc summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.78);
  user-select: none;
}

.desc summary::-webkit-details-marker { display: none; }
.desc__hint { color: rgba(255,255,255,0.52); font-size: 12px; }
.desc__body { padding: 0 12px 12px; }

.pre--desc {
  max-height: 160px;
  overflow: auto;
}

@media (min-width: 980px) {
  .pre--desc { max-height: 140px; }
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 12px;
}

.thread {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

@media (min-width: 980px) {
  .thread {
    flex: 1;
    overflow: auto;
    padding-right: 2px;
    scroll-behavior: smooth;
  }
}
.msg {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  transform: translateY(4px);
  animation: rise 240ms ease forwards;
  align-self: start;
}
@keyframes rise { to { transform: translateY(0); } }

.msg--admin { border-color: rgba(41,199,183,0.25); background: rgba(41,199,183,0.06); }
.msg__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg__who { font-weight: 600; }
.msg__body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.msg__att { margin-top: 8px; font-size: 12px; }

.msg--typing {
  border-style: dashed;
  opacity: 0.85;
}

.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.55);
  animation: bop 1.0s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.12s; }
.dot:nth-child(3) { animation-delay: 0.24s; }

@keyframes bop {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-3px); opacity: 0.95; }
}

.attgrid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 700px) {
  .attgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.attitem {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  overflow: hidden;
}

.attimg {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (min-width: 980px) {
  .attimg { height: 180px; }
}

.attmedia {
  width: 100%;
  display: block;
}

.attlottie {
  height: 160px;
  display: grid;
  place-items: center;
}

.attfile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}

.attfile__name { font-weight: 600; }
.attfile__meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.attskel {
  height: 160px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.1s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 16, 29, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.toast--show { display: block; animation: rise 180ms ease forwards; }
.toast__title { font-weight: 700; }
.toast__text { margin-top: 6px; color: var(--muted); line-height: 1.35; }
.toast__actions { margin-top: 10px; display: flex; gap: 10px; justify-content: flex-end; }

.toast__actions #toastOpen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: rgba(10, 16, 29, 0.92);
  border: 1px solid rgba(255,255,255,0.30);
  text-decoration: none;
  font-weight: 600;
}

.toast__actions #toastOpen:hover { filter: brightness(0.95); }

.toast__actions #toastOpen:active { transform: translateY(1px); }

.composer {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.0), rgba(12, 18, 32, 0.90) 22%, rgba(12, 18, 32, 0.96));
  padding-bottom: 12px;
}

.notice {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
  display: grid;
  gap: 6px;
}

.notice--danger {
  border-color: rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.08);
}

.composer__tpl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.composer__tplsel { margin-top: 0; }

.tplpage { display: grid; gap: 14px; }

.tplgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px) {
  .tplgrid {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
}

.tplside__bar { display: grid; gap: 10px; }
.tplside__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tpllist {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.tplitem {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.tplitem:hover { background: rgba(255,255,255,0.03); }

.tplitem--active {
  border-color: rgba(41,199,183,0.45);
  background: rgba(41,199,183,0.08);
}

.tplitem__title { font-weight: 700; }
.tplitem__body { margin-top: 6px; color: rgba(255,255,255,0.70); font-size: 12px; line-height: 1.3; }

.tplmain__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tplmain__title { font-weight: 700; font-size: 16px; }
.tplmain__buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tplform {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.composer__input {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}
.composer__bar {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.upload {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.chip__name { font-weight: 600; }
.chip__meta { color: rgba(255,255,255,0.62); font-family: var(--mono); font-size: 12px; }

.btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
}

.feed {
  display: grid;
  gap: 14px;
}

.feed__bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.feed__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  user-select: none;
}

.feed__list {
  padding: 0;
  overflow: hidden;
}

@media (min-width: 980px) {
  .feed__list {
    max-height: calc(100dvh - 230px);
    overflow: auto;
  }
}

.feedrow {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
}

.feedrow:hover { background: rgba(255,255,255,0.03); }

.feedrow__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.70);
  font-family: var(--mono);
  font-size: 12px;
}

.feedrow__text { color: rgba(255,255,255,0.86); line-height: 1.25; }

.feedrow--unread .feedrow__text { font-weight: 600; }

.feedtag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

.feedtag--user { border-color: rgba(255,255,255,0.18); }
.feedtag--admin { border-color: rgba(41,199,183,0.35); color: rgba(41,199,183,0.95); }
.btn:hover { background: rgba(255,255,255,0.08); }
.btn--ghost { background: transparent; }
.btn--primary { border-color: rgba(41,199,183,0.55); background: rgba(41,199,183,0.12); }
.btn--primary:hover { background: rgba(41,199,183,0.18); }
.btn--danger { border-color: rgba(255,92,122,0.55); background: rgba(255,92,122,0.12); }
.btn--danger:hover { background: rgba(255,92,122,0.18); }

.empty { padding: 16px; color: var(--muted); }

.table { display: grid; gap: 8px; }
.table__row {
  display: grid;
  grid-template-columns: 130px 1.2fr 1fr 170px 170px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  align-items: center;
}
.table__row--head { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.75); font-size: 12px; }

@media (max-width: 980px) {
  .table__row { grid-template-columns: 120px 1fr; }
  .table__row > div:nth-child(3),
  .table__row > div:nth-child(4),
  .table__row > div:nth-child(5) { display: none; }
  .table__row--head { display: none; }
}

.login {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.login__card {
  width: min(520px, 100%);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.login__title { font-size: 18px; font-weight: 700; }
.login__hint { margin-top: 8px; color: var(--muted); line-height: 1.35; }
.login__widget { margin-top: 14px; }
.login__widgetInner { display: grid; place-items: start; min-height: 44px; }
.login__widgetHint { margin-top: 10px; color: rgba(255,255,255,0.55); font-size: 12px; line-height: 1.35; }
.login__foot { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 12px; line-height: 1.35; }
