:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #121212;
  --surface-raised: #191919;
  --border: #2a2a2a;
  --border-strong: #3a3a35;
  --text: #f2f2ef;
  --text-secondary: #a8a8a3;
  --text-muted: #6f6f6a;
  --ember: #ff6a1a;
  --ember-hover: #ff7a2e;
  --ember-deep: #b73516;
  --ash: #7b7772;
  --danger: #ff3b30;
  --ok: #68d391;
  --focus: 0 0 0 3px rgba(255, 106, 26, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 106, 26, 0.1), transparent 25rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20rem);
  opacity: 0.8;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 760;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover .brand-ember {
  stroke: var(--ember-hover);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-zero {
  fill: none;
  stroke: var(--text);
  stroke-width: 6;
  stroke-linecap: round;
}

.brand-ember {
  fill: none;
  stroke: var(--ember);
  stroke-width: 6;
  stroke-linecap: round;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--text);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  min-height: 32px;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.hero-copy {
  max-width: 620px;
}

.burn-orbit {
  width: clamp(172px, 26vw, 360px);
  aspect-ratio: 1;
  margin-bottom: 2rem;
  display: grid;
  place-items: center;
  position: relative;
}

.burn-orbit::before,
.burn-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.burn-orbit::before {
  inset: 8%;
  border: 1px solid rgba(242, 242, 239, 0.16);
}

.burn-orbit::after {
  inset: 0;
  background: conic-gradient(from 20deg, transparent 0 66%, rgba(255, 106, 26, 0.95), rgba(123, 119, 114, 0.18), transparent 84% 100%);
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 65%, transparent 66%);
  animation: emberDrift 7s linear infinite;
}

.zero-glyph {
  font-size: clamp(5rem, 13vw, 12rem);
  line-height: 1;
  font-weight: 780;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 242, 239, 0.82);
  text-shadow: 0 0 26px rgba(255, 106, 26, 0.1);
}

.eyebrow {
  color: var(--ember);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero h1,
.state-title {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.96;
  font-weight: 780;
}

.hero-lede {
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  max-width: 38rem;
}

.feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

.feature-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.feature-line span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.composer {
  position: relative;
  background: rgba(18, 18, 18, 0.82);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 650;
}

.hint,
.counter,
.meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

textarea,
input,
select {
  width: 100%;
  color: var(--text);
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 240px;
  resize: vertical;
  padding: 1rem;
  line-height: 1.7;
}

input,
select {
  min-height: 42px;
  padding: 0 0.8rem;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(255, 106, 26, 0.7);
  box-shadow: var(--focus);
}

.control-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.control-grid.is-single {
  grid-template-columns: 1fr;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.mode-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 0.45rem;
  color: var(--text-secondary);
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.segment:hover,
.segment.is-active {
  color: var(--text);
  border-color: rgba(255, 106, 26, 0.62);
  background: rgba(255, 106, 26, 0.08);
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.turnstile-field {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.turnstile-widget {
  min-height: 65px;
  overflow: hidden;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
}

.primary-button {
  width: 100%;
  color: var(--text);
  border-color: rgba(255, 106, 26, 0.78);
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.18), rgba(183, 53, 22, 0.16));
}

.primary-button:hover {
  border-color: var(--ember-hover);
  box-shadow: 0 0 0 1px rgba(255, 106, 26, 0.18), 0 16px 36px rgba(255, 106, 26, 0.11);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button {
  min-height: 36px;
  color: var(--text-secondary);
}

.danger-button {
  border-color: rgba(255, 59, 48, 0.55);
  color: #ffd7d4;
}

.danger-button:hover {
  background: rgba(255, 59, 48, 0.08);
}

.result {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result.is-visible {
  display: grid;
  gap: 0.75rem;
}

.share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.notice {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  line-height: 1.6;
}

.notice.is-danger {
  border-color: rgba(255, 59, 48, 0.38);
  color: #ffd7d4;
}

.message-page {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 7svh, 72px) 0 72px;
}

.message-panel {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.zero-page {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  overflow: hidden;
  padding: 1rem 0;
}

.zero-state {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
  animation: zeroReveal 820ms ease-out 520ms forwards;
}

.zero-state h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.zero-state .message-copy {
  margin-top: 0.25rem;
}

.zero-mark {
  width: 150px;
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}

.zero-mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.08), transparent 58%);
  filter: blur(10px);
}

.zero-digit {
  position: relative;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(242, 242, 239, 0.82);
  font-size: 8.3rem;
  font-weight: 760;
  line-height: 1;
  text-shadow:
    0 0 1px rgba(242, 242, 239, 0.32),
    0 22px 48px rgba(0, 0, 0, 0.46);
  animation: zeroSettle 380ms ease-out both;
}

.zero-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.message-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.message-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 780;
}

.message-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 34rem;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.82;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin: 1.15rem 0 1rem;
  min-height: 8.5rem;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.opened-message {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.message-actions {
  justify-content: space-between;
  margin-top: 1.1rem;
}

.admin-message-body {
  max-height: min(52svh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.report-box {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.report-box.is-visible {
  display: grid;
  gap: 0.75rem;
}

.login-panel {
  max-width: 560px;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  border-right: 1px solid var(--border);
  background: #0b0b0b;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.admin-nav {
  display: grid;
  gap: 0.35rem;
}

.admin-nav button {
  min-height: 38px;
  text-align: left;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.75rem;
}

.admin-nav button:hover,
.admin-nav button.is-active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.admin-main {
  padding: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}

.metric span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.metric strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.65rem;
  line-height: 1;
}

.toolbar {
  display: grid;
  grid-template-columns: 180px minmax(180px, 1fr) auto;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.bulk-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table {
  table-layout: fixed;
}

.messages-table {
  min-width: 1040px;
}

.reports-table {
  min-width: 1160px;
}

.blocked-table {
  min-width: 900px;
}

.audit-table {
  min-width: 1040px;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

th {
  color: var(--text-muted);
  font-weight: 650;
  background: #0f0f0f;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.select-cell {
  width: 42px;
  text-align: center;
}

.select-cell input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.messages-table th:nth-child(1),
.messages-table td:nth-child(1),
.reports-table th:nth-child(1),
.reports-table td:nth-child(1),
.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 44px;
}

.messages-table th:nth-child(2),
.messages-table td:nth-child(2),
.reports-table th:nth-child(2),
.reports-table td:nth-child(2),
.blocked-table th:nth-child(1),
.blocked-table td:nth-child(1) {
  width: 92px;
}

.messages-table th:nth-child(3),
.messages-table td:nth-child(3) {
  width: 170px;
}

.reports-table th:nth-child(3),
.reports-table td:nth-child(3) {
  width: 180px;
}

.reports-table th:nth-child(4),
.reports-table td:nth-child(4) {
  width: 260px;
}

.reports-table th:nth-child(5),
.reports-table td:nth-child(5) {
  width: 140px;
}

.messages-table th:nth-child(4),
.messages-table td:nth-child(4),
.messages-table th:nth-child(7),
.messages-table td:nth-child(7),
.reports-table th:nth-child(7),
.reports-table td:nth-child(7) {
  width: 78px;
}

.messages-table th:nth-child(5),
.messages-table td:nth-child(5),
.messages-table th:nth-child(6),
.messages-table td:nth-child(6),
.reports-table th:nth-child(6),
.reports-table td:nth-child(6),
.blocked-table th:nth-child(5),
.blocked-table td:nth-child(5),
.audit-table th:nth-child(7),
.audit-table td:nth-child(7) {
  width: 132px;
}

.messages-table th:nth-child(8),
.messages-table td:nth-child(8) {
  width: 150px;
}

.messages-table th:nth-child(9),
.messages-table td:nth-child(9),
.reports-table th:nth-child(8),
.reports-table td:nth-child(8),
.blocked-table th:nth-child(6),
.blocked-table td:nth-child(6) {
  width: 150px;
}

.messages-table th:nth-child(4),
.messages-table td:nth-child(4),
.messages-table th:nth-child(5),
.messages-table td:nth-child(5),
.messages-table th:nth-child(6),
.messages-table td:nth-child(6),
.messages-table th:nth-child(7),
.messages-table td:nth-child(7),
.messages-table th:nth-child(8),
.messages-table td:nth-child(8),
.messages-table th:nth-child(9),
.messages-table td:nth-child(9),
.reports-table th:nth-child(5),
.reports-table td:nth-child(5),
.reports-table th:nth-child(6),
.reports-table td:nth-child(6),
.reports-table th:nth-child(7),
.reports-table td:nth-child(7),
.reports-table th:nth-child(8),
.reports-table td:nth-child(8),
.blocked-table th:nth-child(5),
.blocked-table td:nth-child(5),
.blocked-table th:nth-child(6),
.blocked-table td:nth-child(6),
.audit-table th:nth-child(7),
.audit-table td:nth-child(7) {
  white-space: nowrap;
}

.status-pill.active {
  color: #d8ffd8;
  border-color: rgba(104, 211, 145, 0.38);
}

.status-pill.quarantined,
.status-pill.reported {
  color: #ffd9c7;
  border-color: rgba(255, 106, 26, 0.45);
}

.status-pill.confirmed,
.status-pill.resolved {
  color: #d8ffd8;
  border-color: rgba(104, 211, 145, 0.38);
}

.status-pill.rejected {
  color: #d7d7d2;
  border-color: rgba(168, 168, 163, 0.38);
}

.status-pill.deleted {
  color: #ffd7d4;
  border-color: rgba(255, 59, 48, 0.4);
}

.cell-stack {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.table-summary {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.table-id {
  display: block;
  width: 100%;
  min-height: 36px;
  line-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.admin-table td.source-cell,
.kv-grid dd.source-cell {
  white-space: normal;
}

.source-ip {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-actions .secondary-button,
.table-actions .ghost-button {
  min-height: 34px;
  padding: 0 0.65rem;
}

.report-reason {
  color: var(--text);
  font-size: 0.86rem;
  white-space: nowrap;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(720px, 100%);
  z-index: 20;
  background: #0d0d0d;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto 1fr;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.drawer-body {
  overflow: auto;
  padding: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
}

.detail-list-item {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.detail-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.detail-list-item p {
  max-height: 8rem;
  overflow: auto;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  width: min(460px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f0f0f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  animation: modalIn 160ms ease-out;
}

.modal-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.modal-form h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.modal-form textarea {
  min-height: 128px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.kv-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 1rem 0;
}

.kv-grid dt {
  color: var(--text-muted);
}

.kv-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty {
  color: var(--text-muted);
  padding: 1rem;
}

.error {
  color: #ffd7d4;
}

.success {
  color: var(--ok);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes emberDrift {
  to {
    transform: rotate(360deg);
  }
}

@keyframes zeroSettle {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zeroReveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .control-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .message-page {
    width: min(100% - 24px, 1180px);
  }

  .segmented,
  .custom-grid,
  .toolbar,
  .share-row,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    display: grid;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 16px 12px;
  }
}
