:root {
  --bg: #080709;
  --panel: rgba(19, 17, 21, 0.88);
  --panel-strong: #121014;
  --border: rgba(255, 255, 255, 0.075);
  --border-purple: rgba(196, 85, 239, 0.24);
  --text: #f5f1f7;
  --muted: #89838d;
  --purple: #8d13b4;
  --purple-light: #d172f5;
  --success: #55d79c;
  --warning: #e8b85f;
  --danger: #ed6f7c;
  --sidebar: 256px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 75% 0,
      rgba(141, 19, 180, 0.12),
      transparent 34rem
    ),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(9, 8, 10, 0.95);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  height: 92px;
  align-items: center;
  padding: 14px 24px;
  gap: 13px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.brand img,
.auth-brand img {
  width: 53px;
  height: 61px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(196, 85, 239, 0.18));
}
.brand span,
.auth-brand span {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.08em;
  line-height: 0.94;
}
.brand strong,
.auth-brand strong {
  color: white;
  font:
    900 1rem Manrope,
    sans-serif;
}
.brand b,
.auth-brand b {
  margin-top: 6px;
  color: var(--purple-light);
  font:
    800 0.67rem Manrope,
    sans-serif;
  letter-spacing: 0.28em;
}
.sidebar nav {
  display: grid;
  padding: 28px 16px;
  gap: 7px;
}
.sidebar nav a {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #918b94;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
}
.sidebar nav a:hover {
  color: #d8d2da;
  background: rgba(255, 255, 255, 0.025);
}
.sidebar nav a.active {
  border-color: rgba(196, 85, 239, 0.12);
  background: linear-gradient(
    90deg,
    rgba(141, 19, 180, 0.14),
    rgba(141, 19, 180, 0.035)
  );
  color: white;
}
.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: -17px;
  width: 3px;
  height: 25px;
  border-radius: 3px;
  background: var(--purple-light);
  box-shadow: 0 0 14px var(--purple);
}
.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--purple-light);
  font-size: 1.1rem;
}
.sidebar-foot {
  display: flex;
  margin-top: auto;
  padding: 22px 25px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--border);
  color: #615b64;
  font-size: 0.61rem;
}
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 9px var(--success);
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 76px;
  align-items: center;
  padding: 0 4.5%;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 7, 9, 0.84);
  backdrop-filter: blur(18px);
}
.mobile-logo {
  display: none;
}
.topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.topbar-copy span {
  color: var(--purple-light);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.topbar-copy strong {
  font-size: 0.86rem;
}
.user-area {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}
.role-pill,
.count-badge {
  padding: 6px 9px;
  border: 1px solid var(--border-purple);
  border-radius: 999px;
  background: rgba(141, 19, 180, 0.08);
  color: #c9a2d3;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-purple);
  border-radius: 10px;
  background: linear-gradient(135deg, #8d13b4, #3b0e48);
  font-size: 0.75rem;
  font-weight: 900;
}
.avatar.large {
  width: 43px;
  height: 43px;
  border-radius: 12px;
}
.user-name {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  gap: 2px;
}
.user-name strong {
  font-size: 0.7rem;
}
.user-name span {
  color: var(--muted);
  font-size: 0.57rem;
}
.logout-button,
.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #9b959e;
  cursor: pointer;
}
.logout-button:hover {
  color: white;
  border-color: var(--border-purple);
}
.mobile-nav {
  display: none;
}

.content-shell {
  width: min(1320px, 91%);
  margin: 0 auto;
  padding: 54px 0 64px;
}
.notice {
  position: relative;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(85, 215, 156, 0.22);
  border-radius: 11px;
  background: rgba(85, 215, 156, 0.07);
  color: #a8eacb;
  font-size: 0.75rem;
}
.notice.error {
  border-color: rgba(237, 111, 124, 0.24);
  background: rgba(237, 111, 124, 0.07);
  color: #f1a8af;
}
.eyebrow,
.kicker,
.section-title span,
.invite-result > div > span {
  color: var(--purple-light);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.hero-panel,
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-panel h1,
.page-head h1 {
  margin: 8px 0 10px;
  font:
    800 clamp(2.3rem, 5vw, 4.5rem)/0.95 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
}
.hero-panel h1 span {
  color: var(--purple-light);
}
.hero-panel p,
.page-head p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.7;
}
.page-head {
  align-items: center;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.primary-button {
  border: 1px solid #b84ee4;
  background: linear-gradient(135deg, #9b20c3, #681381);
  color: white;
  box-shadow: 0 8px 28px rgba(141, 19, 180, 0.22);
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 35px rgba(141, 19, 180, 0.34);
}
.primary-button.compact {
  min-height: 42px;
}
.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.028);
  color: #c6c0c8;
}
.secondary-button:hover {
  border-color: var(--border-purple);
  color: white;
}
.secondary-button.small {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.62rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 42px 0 21px;
  gap: 13px;
}
.stat-card {
  position: relative;
  display: flex;
  min-height: 105px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
}
.stat-card span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}
.stat-card strong {
  margin-top: auto;
  font:
    800 1.75rem Manrope,
    sans-serif;
}
.stat-card i {
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: rgba(141, 19, 180, 0.12);
  filter: blur(18px);
}
.stat-card.review i {
  background: rgba(232, 184, 95, 0.12);
}
.stat-card.published i {
  background: rgba(85, 215, 156, 0.11);
}

.panel,
.form-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.16);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2,
.section-title h2 {
  margin: 5px 0 0;
  font-size: 1.05rem;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input,
select,
input,
textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: rgba(255, 255, 255, 0.027);
  color: var(--text);
}
select {
  color-scheme: dark;
  background-color: #171419;
  color: var(--text);
}
select option,
select optgroup {
  background-color: #171419;
  color: var(--text);
}
select option:checked {
  background-color: #6f168c;
  color: #fff;
}
.search-input {
  width: 230px;
  min-height: 40px;
  padding: 0 12px;
}
.filter-row select {
  min-height: 40px;
  padding: 0 35px 0 11px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(196, 85, 239, 0.48);
  box-shadow: 0 0 0 3px rgba(141, 19, 180, 0.08);
}

.post-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 100px;
  padding: 14px 18px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.post-row:last-child {
  border-bottom: 0;
}
.post-thumb {
  display: grid;
  width: 70px;
  height: 70px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(135deg, #231827, #110e13);
  color: var(--purple-light);
  font-weight: 900;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-copy {
  min-width: 0;
}
.post-copy h3 {
  margin: 6px 0 4px;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-copy > small {
  display: block;
  margin-top: 5px;
  color: #625c65;
  font-size: 0.56rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #706a73;
  font-size: 0.55rem;
}
.status-pill {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #aaa4ac;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pill.review {
  color: var(--warning);
  background: rgba(232, 184, 95, 0.08);
}
.status-pill.published {
  color: var(--success);
  background: rgba(85, 215, 156, 0.08);
}
.channel-tags {
  display: flex;
}
.channel-tags span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: -5px;
  place-items: center;
  border: 2px solid #0d0c0e;
  border-radius: 50%;
  background: #211824;
  color: #c9a2d3;
  font-size: 0.52rem;
  font-weight: 900;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-actions form {
  margin: 0;
}
.icon-button.danger {
  border-color: rgba(237, 111, 124, 0.16);
  color: #c77b84;
  font-size: 1.2rem;
}
.icon-button.danger:hover {
  border-color: rgba(237, 111, 124, 0.45);
  background: rgba(237, 111, 124, 0.08);
  color: var(--danger);
}
.muted-label {
  color: #645e67;
  font-size: 0.61rem;
}
.empty-state {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.empty-state strong {
  color: #d7d1d9;
  font-size: 1rem;
}
.empty-state span {
  font-size: 0.72rem;
}
.error-page {
  min-height: 55vh;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 18px;
}
.form-card {
  padding: 24px;
}
.main-fields,
.stack-form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  color: #c5bfc8;
  font-size: 0.67rem;
  font-weight: 800;
}
label input,
label textarea,
label select {
  width: 100%;
  padding: 11px 12px;
  font-size: 0.76rem;
  font-weight: 400;
  resize: vertical;
}
label input,
label select {
  min-height: 43px;
}
label small {
  color: #716b74;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.section-title > small {
  color: var(--muted);
  font-size: 0.6rem;
}
.media-section {
  display: grid;
  margin-top: 8px;
  padding-top: 24px;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.upload-zone {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  gap: 14px;
  border: 1px dashed rgba(196, 85, 239, 0.35);
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    rgba(141, 19, 180, 0.08),
    rgba(255, 255, 255, 0.015)
  );
  cursor: pointer;
}
.upload-zone:hover {
  border-color: rgba(196, 85, 239, 0.62);
  background: rgba(141, 19, 180, 0.11);
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-zone > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upload-zone strong {
  color: white;
  font-size: 0.75rem;
}
.upload-zone small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 400;
}
.upload-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-purple);
  border-radius: 11px;
  background: rgba(141, 19, 180, 0.11);
  color: var(--purple-light);
  font-size: 1.2rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.media-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-bottom: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}
.media-item img,
.media-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: black;
}
.media-item figcaption {
  padding: 8px 9px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remove-media {
  display: flex;
  margin: 8px 9px 0;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 6px;
  color: #ca8991;
  font-size: 0.54rem;
}
.remove-media input {
  width: auto;
  min-height: 0;
  accent-color: var(--danger);
}
.preview-grid[hidden],
.upload-warning[hidden] {
  display: none;
}
.preview-grid .media-item {
  padding-bottom: 0;
}
.preview-grid .media-item span {
  display: block;
  padding: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-warning {
  padding: 10px;
  border: 1px solid rgba(232, 184, 95, 0.24);
  border-radius: 9px;
  background: rgba(232, 184, 95, 0.06);
  color: #e2bd76;
  font-size: 0.64rem;
}
.publishing-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}
.channels {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}
.channels legend {
  margin-bottom: 8px;
  color: #c5bfc8;
  font-size: 0.67rem;
  font-weight: 800;
}
.channels label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  padding: 10px;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.channels input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--purple-light);
}
.channels label span,
.feature-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.channels strong,
.feature-check strong {
  font-size: 0.67rem;
}
.channels small,
.feature-check small {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 400;
}
.channels .disabled {
  opacity: 0.38;
}
.feature-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: flex-start;
  gap: 10px;
}
.feature-check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--purple-light);
}
.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 6px;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 18px;
}
.management-side {
  display: grid;
  gap: 18px;
}
.user-list {
  display: grid;
}
.user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.user-row:last-child {
  border-bottom: 0;
}
.user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.user-copy strong {
  font-size: 0.76rem;
}
.user-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-copy small {
  color: #5f5962;
  font-size: 0.54rem;
}
.user-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-controls select {
  min-height: 36px;
  padding: 0 25px 0 9px;
  font-size: 0.62rem;
}
.protected-role {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.protected-role span {
  color: var(--purple-light);
  font-size: 0.67rem;
  font-weight: 900;
}
.protected-role small {
  color: #625c65;
  font-size: 0.53rem;
}
.invite-result {
  display: grid;
  margin-bottom: 18px;
  padding: 20px;
  gap: 12px;
  border: 1px solid rgba(85, 215, 156, 0.21);
  border-radius: 14px;
  background: rgba(85, 215, 156, 0.06);
}
.invite-result > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-result > div > span {
  color: var(--success);
}
.invite-result > div > strong {
  font-size: 0.76rem;
}
.invite-result > small {
  color: #719983;
  font-size: 0.57rem;
}
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.copy-row input {
  min-width: 0;
  padding: 0 12px;
}
.invitation-list {
  display: grid;
  gap: 12px;
}
.invitation-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.invitation-list article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.invitation-list article strong {
  overflow: hidden;
  font-size: 0.66rem;
  text-overflow: ellipsis;
}
.invitation-list article span,
.muted {
  color: var(--muted);
  font-size: 0.57rem;
}
.text-danger {
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 0.58rem;
  cursor: pointer;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(141, 19, 180, 0.22),
      transparent 28rem
    ),
    #080709;
}
.auth-shell {
  width: min(510px, 100%);
}
.auth-card {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--border-purple);
  border-radius: 19px;
  background: rgba(15, 13, 17, 0.94);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.58);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(141, 19, 180, 0.16);
  filter: blur(35px);
  pointer-events: none;
}
.auth-brand {
  position: relative;
  display: flex;
  margin-bottom: 29px;
  align-items: center;
  gap: 12px;
}
.auth-card h1 {
  position: relative;
  margin: 8px 0 10px;
  font:
    800 2rem Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.auth-card .lead {
  position: relative;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}
.auth-card .lead strong {
  color: #d9bfdc;
}
.auth-card h2 {
  margin: 11px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.auth-foot {
  margin: 21px 0 0;
  color: #68626b;
  font-size: 0.59rem;
  text-align: center;
}
.auth-foot a {
  color: var(--purple-light);
}
.form-error {
  margin-bottom: 17px;
  padding: 11px 12px;
  border: 1px solid rgba(237, 111, 124, 0.25);
  border-radius: 9px;
  background: rgba(237, 111, 124, 0.07);
  color: #eda0a8;
  font-size: 0.65rem;
  line-height: 1.5;
}
.requirements {
  display: flex;
  margin: 0 0 20px;
  flex-wrap: wrap;
  gap: 6px;
}
.requirements span {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.53rem;
}
.requirements .passed {
  border-color: rgba(85, 215, 156, 0.18);
  color: var(--success);
}
.requirements .failed {
  border-color: rgba(237, 111, 124, 0.22);
  color: var(--danger);
}
.install-card {
  width: min(650px, calc(100vw - 32px));
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 82px;
  }
  .brand {
    justify-content: center;
    padding: 13px;
  }
  .brand span,
  .sidebar nav a span:last-child,
  .sidebar-foot span:last-child {
    display: none;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 0;
  }
  .sidebar nav a.active::before {
    left: -17px;
  }
  .management-grid {
    grid-template-columns: 1fr;
  }
  .management-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body.app-page {
    padding-bottom: 72px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 72px;
    padding: 0 5%;
  }
  .mobile-logo {
    display: grid;
    width: 42px;
    height: 50px;
    margin-right: 10px;
    place-items: center;
  }
  .mobile-logo img {
    width: 38px;
    height: 44px;
    object-fit: contain;
  }
  .topbar-copy span {
    display: none;
  }
  .topbar-copy strong {
    font-size: 0.76rem;
  }
  .role-pill,
  .user-name {
    display: none;
  }
  .user-area {
    gap: 6px;
  }
  .content-shell {
    width: 90%;
    padding: 35px 0 25px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 8% env(safe-area-inset-bottom);
    justify-content: space-around;
    border-top: 1px solid var(--border);
    background: rgba(10, 9, 11, 0.96);
    backdrop-filter: blur(18px);
  }
  .mobile-nav a {
    display: flex;
    min-width: 70px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #746e77;
    font-size: 0.51rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-nav a span {
    font-size: 1.05rem;
  }
  .mobile-nav a.active {
    color: var(--purple-light);
  }
  .hero-panel,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-panel h1 {
    font-size: 2.65rem;
  }
  .hero-panel .primary-button,
  .page-head .secondary-button {
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
  }
  .stat-card {
    min-height: 92px;
    padding: 14px;
  }
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .filter-row {
    align-items: stretch;
    flex-direction: column;
  }
  .search-input {
    width: 100%;
  }
  .post-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 14px 12px;
    gap: 10px;
  }
  .post-thumb {
    width: 58px;
    height: 58px;
  }
  .channel-tags {
    display: none;
  }
  .post-copy p {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .post-meta span:nth-child(3),
  .post-copy > small {
    display: none;
  }
  .row-actions .secondary-button {
    width: 38px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .row-actions .secondary-button::before {
    content: "✎";
    font-size: 0.9rem;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .publishing-card {
    position: static;
  }
  .form-grid.two {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .upload-zone {
    align-items: flex-start;
    flex-direction: column;
  }
  .management-side {
    grid-template-columns: 1fr;
  }
  .user-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .user-controls,
  .protected-role {
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
  }
  .user-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .user-controls button {
    grid-column: 1 / -1;
  }
  .protected-role {
    align-items: flex-start;
  }
  .copy-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .install-card {
    width: 100%;
  }
}

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