*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.admin-refresh {
  --bg: #050813;
  --bg-soft: #09101d;
  --bg-elevated: rgba(12, 19, 33, 0.92);
  --bg-panel: rgba(10, 17, 30, 0.86);
  --bg-panel-strong: rgba(13, 21, 36, 0.96);
  --bg-muted: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(173, 220, 255, 0.12);
  --line-strong: rgba(173, 220, 255, 0.22);
  --text: #eff7ff;
  --text-soft: #c1d1e4;
  --text-faint: #8091a6;
  --accent: #6edbff;
  --accent-strong: #3dc3f5;
  --accent-deep: #103753;
  --accent-soft: rgba(110, 219, 255, 0.14);
  --accent-soft-strong: rgba(110, 219, 255, 0.22);
  --success: #41d6a4;
  --success-soft: rgba(65, 214, 164, 0.14);
  --danger: #ff7a88;
  --danger-soft: rgba(255, 122, 136, 0.14);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 22px 54px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 14px 26px rgba(0, 0, 0, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(110, 219, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(110, 219, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #040710 0%, #07101d 52%, #050813 100%);
  color: var(--text);
  font-family: "Inter", "Noto Sans TC", "PingFang TC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-refresh::before,
body.admin-refresh::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.admin-refresh::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

body.admin-refresh::after {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(110, 219, 255, 0.09), transparent 16%),
    radial-gradient(circle at 90% 84%, rgba(110, 219, 255, 0.07), transparent 22%);
}

body.admin-refresh a {
  color: inherit;
  text-decoration: none;
}

body.admin-refresh img {
  display: block;
  max-width: 100%;
}

body.admin-refresh button,
body.admin-refresh input,
body.admin-refresh textarea,
body.admin-refresh select {
  font: inherit;
}

body.admin-refresh button {
  color: inherit;
}

body.admin-refresh code {
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn i,
.panel-title i,
.section-header i,
.rte-btn i,
.header-tag i {
  font-size: 0.98rem;
  line-height: 1;
}

.panel-title i {
  color: var(--accent);
  margin-top: 2px;
}

.admin-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(84px);
  pointer-events: none;
  z-index: 0;
}

.admin-orb-a {
  top: -120px;
  right: -90px;
  width: 420px;
  height: 420px;
  background: rgba(110, 219, 255, 0.12);
}

.admin-orb-b {
  bottom: -180px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: rgba(61, 195, 245, 0.08);
}

.admin-header,
.admin-layout,
.app-modal {
  position: relative;
  z-index: 1;
}

.admin-header {
  position: sticky;
  top: 0;
  padding: 18px 20px 0;
  z-index: 50;
}

.admin-header-shell {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 88px;
  padding: 18px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 22, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-header-left,
.header-actions,
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-right {
  margin-left: auto;
  gap: 16px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-frame {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.logo-text {
  display: grid;
  gap: 4px;
}

.logo-text-main {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo-text-sub {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-soft-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-user-card {
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.header-user-label {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-user-value {
  margin-top: 4px;
  font-weight: 700;
  color: #fff;
}

.header-user-note {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
  font-size: 0.92rem;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(135deg, #48d1ff 0%, #103753 100%);
  border-color: rgba(110, 219, 255, 0.2);
  color: #fff;
  box-shadow: 0 18px 34px rgba(6, 35, 56, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(6, 35, 56, 0.38);
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text-soft);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(255, 122, 136, 0.2);
  color: #ffd3d7;
}

.btn-danger:hover {
  background: rgba(255, 122, 136, 0.2);
  border-color: rgba(255, 122, 136, 0.32);
  color: #fff;
}

.admin-layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.nav-horizontal {
  position: sticky;
  top: 126px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.nav-intro {
  padding: 6px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.nav-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-title {
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.nav-intro p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.sidebar-btn {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.sidebar-btn .icon {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
}

.sidebar-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(110, 219, 255, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(110, 219, 255, 0.18);
  color: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.sidebar-btn.active .icon {
  color: var(--accent);
}

.admin-shell {
  min-width: 0;
  padding-bottom: 28px;
}

.admin-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-bottom: 22px;
}

.overview-copy,
.overview-panel,
.dashboard-card,
.panel,
.app-modal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.overview-copy,
.overview-panel,
.panel,
.app-modal-card {
  padding: 24px;
}

.overview-copy::before,
.dashboard-card::before,
.panel::before,
.app-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 219, 255, 0.07), transparent 32%);
  pointer-events: none;
}

.overview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-soft-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-copy h1 {
  margin: 18px 0 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff;
}

.overview-copy p {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.overview-panels {
  display: grid;
  gap: 16px;
}

.overview-panel-label {
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-panel strong {
  display: block;
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.22rem;
  line-height: 1.15;
  color: #fff;
}

.overview-panel p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-card {
  min-height: 176px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.dashboard-card-icon,
.section-icon,
.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(110, 219, 255, 0.16), rgba(110, 219, 255, 0.05));
  border: 1px solid rgba(110, 219, 255, 0.14);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-card-icon .icon,
.section-icon .icon,
.panel-icon .icon {
  width: 20px;
  height: 20px;
}

.dashboard-card-body {
  display: grid;
  align-content: end;
  gap: 8px;
}

.dashboard-label {
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}

.dashboard-sub {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.dashboard-card-action {
  justify-content: space-between;
  grid-template-rows: auto auto;
}

.dashboard-card-action .btn {
  width: 100%;
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: adminSectionFade 220ms ease;
}

@keyframes adminSectionFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.section-header h2 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}

.section-header h2 span {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

#announcement-message,
#event-message,
#team-message,
#alliance-message,
#job-message,
#audit-message,
#system-message {
  margin-bottom: 14px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.section-grid > .panel:last-child {
  position: sticky;
  top: 126px;
}

.panel {
  padding: 24px;
}

.panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-title > div {
  display: grid;
  gap: 5px;
}

.panel-title .sub {
  color: var(--text-faint);
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.chip,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-body {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.field-label {
  display: block;
  padding-top: 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-label .req {
  color: var(--danger);
}

.field-row > div:last-child {
  display: grid;
  gap: 8px;
}

input,
textarea,
select,
.rte-editor {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input,
textarea,
select {
  padding: 14px 16px;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:focus,
textarea:focus,
select:focus,
.rte-editor:focus {
  border-color: rgba(110, 219, 255, 0.26);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(110, 219, 255, 0.1);
}

.help-text {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.switch-row,
.button-row,
.system-bar,
.app-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-row {
  flex-wrap: wrap;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.switch[data-checked="true"] {
  background: rgba(110, 219, 255, 0.18);
  border-color: rgba(110, 219, 255, 0.28);
}

.switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.switch[data-checked="true"] .switch-knob {
  transform: translateX(22px);
}

.button-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 6px;
}

.error-banner,
.success-banner {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.6;
}

.error-banner {
  background: var(--danger-soft);
  border-color: rgba(255, 122, 136, 0.16);
  color: #ffd6db;
}

.success-banner {
  background: var(--success-soft);
  border-color: rgba(65, 214, 164, 0.16);
  color: #d1fff0;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.list-empty {
  padding: 34px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--text-faint);
  text-align: center;
}

.list-item {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014));
  color: inherit;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    box-shadow 180ms ease;
}

.list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 219, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

.list-item.active {
  border-color: rgba(110, 219, 255, 0.26);
  background: linear-gradient(180deg, rgba(110, 219, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(110, 219, 255, 0.14) inset;
}

.list-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.list-item-title {
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.list-item-meta {
  color: var(--text-faint);
  font-size: 0.8rem;
  white-space: nowrap;
}

.list-item-sub,
.muted {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 15, 0.78);
  backdrop-filter: blur(12px);
}

.app-modal.open {
  display: flex;
}

.app-modal-card {
  width: min(900px, 100%);
  max-height: min(88vh, 960px);
  overflow: auto;
}

.app-modal-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-modal-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.app-modal-meta {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.app-answer-list {
  display: grid;
  gap: 12px;
}

.app-answer-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.app-question {
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-answer {
  color: var(--text-soft);
  white-space: pre-wrap;
}

.rte-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.rte-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease,
    color 180ms ease;
}

.rte-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-soft-strong);
  color: var(--accent);
}

.rte-letter {
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1;
}

.rte-letter-italic {
  font-style: italic;
}

.rte-letter-underline {
  text-decoration: underline;
}

.rte-editor {
  min-height: 210px;
  max-height: 420px;
  overflow-y: auto;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rte-editor.empty::before {
  content: attr(data-placeholder);
  color: var(--text-faint);
}

.two-col-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-bar {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.82rem;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

@media (max-width: 1380px) {
  .dashboard-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav-horizontal {
    position: sticky;
    top: 118px;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px;
  }

  .nav-intro {
    min-width: 240px;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
    margin-right: 8px;
    padding: 4px 14px 4px 4px;
  }

  .sidebar-btn {
    width: auto;
    flex-shrink: 0;
  }

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

  .section-grid > .panel:last-child {
    position: static;
  }

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

@media (max-width: 960px) {
  .admin-header-shell {
    flex-wrap: wrap;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .admin-header {
    padding: 12px 12px 0;
  }

  .admin-layout {
    padding: 16px 12px 32px;
  }

  .admin-header-shell,
  .nav-horizontal,
  .overview-copy,
  .overview-panel,
  .panel,
  .app-modal-card {
    border-radius: 22px;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-actions .btn {
    flex: 1 1 180px;
  }

  .two-col-inline {
    grid-template-columns: 1fr;
  }

  .panel-header-row,
  .section-header,
  .list-item-title-row,
  .app-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .list-item-meta {
    white-space: normal;
  }
}

/* 2026 admin dashboard relayout */
body.admin-refresh {
  --bg: #040710;
  --bg-soft: #09101c;
  --bg-elevated: rgba(8, 14, 25, 0.94);
  --bg-panel: rgba(10, 16, 29, 0.88);
  --bg-panel-strong: rgba(12, 19, 34, 0.96);
  --line: rgba(145, 211, 255, 0.1);
  --line-strong: rgba(145, 211, 255, 0.22);
  --text: #edf6ff;
  --text-soft: #b8cae0;
  --text-faint: #7e94ad;
  --accent: #72ddff;
  --accent-strong: #44c8ff;
  --accent-soft: rgba(114, 221, 255, 0.12);
  --accent-soft-strong: rgba(114, 221, 255, 0.22);
  --shadow-xl: 0 34px 90px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(circle at 10% 8%, rgba(68, 200, 255, 0.12), transparent 20%),
    radial-gradient(circle at 86% 10%, rgba(114, 221, 255, 0.1), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(15, 57, 96, 0.22), transparent 28%),
    linear-gradient(180deg, #04070f 0%, #070d18 44%, #050914 100%);
}

body.admin-refresh::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 94%);
}

body.admin-refresh::after {
  background:
    linear-gradient(90deg, transparent, rgba(114, 221, 255, 0.045), transparent),
    radial-gradient(circle at 14% 78%, rgba(114, 221, 255, 0.08), transparent 18%);
}

.admin-header {
  padding: 18px 20px 0;
}

.admin-header-shell {
  max-width: 1520px;
  min-height: 102px;
  padding: 18px 22px;
  border-radius: 30px;
  border-color: rgba(145, 211, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(7, 12, 22, 0.82);
  box-shadow: var(--shadow-lg);
  align-items: stretch;
  gap: 20px;
}

.admin-header-left {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-frame {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.95), rgba(13, 23, 40, 0.95));
  border-color: rgba(145, 211, 255, 0.12);
}

.logo-text {
  gap: 6px;
}

.logo-text-main {
  font-size: 1.08rem;
}

.logo-text-sub {
  letter-spacing: 0.14em;
}

.header-tag {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(114, 221, 255, 0.08);
  border-color: rgba(114, 221, 255, 0.16);
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(145, 211, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-chip-live {
  background: rgba(65, 214, 164, 0.12);
  border-color: rgba(65, 214, 164, 0.18);
  color: #cbffe9;
}

.status-chip-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #41d6a4;
  box-shadow: 0 0 16px rgba(65, 214, 164, 0.55);
}

.header-right {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(240px, 0.9fr) auto;
  align-items: stretch;
  gap: 14px;
}

.header-surface,
.header-user-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(145, 211, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.header-surface {
  display: grid;
  gap: 4px;
}

.header-surface-label,
.header-user-label,
.nav-section-label,
.section-kicker,
.command-card-label {
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-surface-value {
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.header-surface-note {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.header-user-card {
  min-width: 0;
}

.header-user-value {
  font-size: 0.98rem;
  line-height: 1.3;
}

.header-user-note {
  margin-top: 6px;
  line-height: 1.55;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-layout {
  max-width: 1520px;
  padding: 22px 20px 42px;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.nav-horizontal {
  top: 122px;
  gap: 10px;
  padding: 20px;
  border-radius: 30px;
  border-color: rgba(145, 211, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(6, 11, 20, 0.82);
  box-shadow: var(--shadow-lg);
}

.nav-intro {
  padding: 0 0 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-title {
  font-size: 1.34rem;
}

.nav-intro p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.68;
}

.nav-section-label {
  padding: 4px 4px 6px;
}

.sidebar-btn {
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
}

.sidebar-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(145, 211, 255, 0.08);
  color: var(--text-faint);
}

.sidebar-btn-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sidebar-btn-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-btn-sub {
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.4;
}

.sidebar-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  justify-self: end;
}

.sidebar-btn:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(145, 211, 255, 0.1);
}

.sidebar-btn:hover .sidebar-btn-icon {
  color: var(--accent);
  border-color: rgba(145, 211, 255, 0.16);
}

.sidebar-btn.active {
  background:
    linear-gradient(135deg, rgba(114, 221, 255, 0.15), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(114, 221, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 38px rgba(0, 0, 0, 0.2);
}

.sidebar-btn.active .sidebar-btn-icon {
  background: linear-gradient(180deg, rgba(114, 221, 255, 0.16), rgba(114, 221, 255, 0.06));
  border-color: rgba(114, 221, 255, 0.22);
  color: var(--accent);
}

.sidebar-btn.active .sidebar-btn-sub {
  color: var(--text-soft);
}

.sidebar-btn.active::after {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(114, 221, 255, 0.6);
}

.rail-footer {
  margin-top: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(145, 211, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.rail-footer-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-footer-title {
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.rail-footer p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.68;
}

.admin-shell {
  display: grid;
  gap: 22px;
}

.overview-copy,
.overview-panel,
.dashboard-card,
.panel,
.app-modal-card,
.command-card {
  border-radius: 30px;
  border-color: rgba(145, 211, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(8, 13, 24, 0.88);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.overview-copy::before,
.dashboard-card::before,
.panel::before,
.app-modal-card::before,
.command-card::before {
  background: linear-gradient(135deg, rgba(114, 221, 255, 0.08), transparent 36%);
}

.admin-overview {
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.overview-copy {
  padding: 30px;
}

.overview-kicker {
  background: rgba(114, 221, 255, 0.08);
  border-color: rgba(114, 221, 255, 0.16);
}

.overview-copy h1 {
  max-width: 11ch;
  margin-top: 20px;
  font-size: clamp(2.4rem, 4vw, 4.15rem);
  line-height: 0.98;
}

.overview-copy > p {
  max-width: 68ch;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.overview-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(145, 211, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.highlight-label,
.overview-panel-label {
  color: var(--text-faint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.highlight-card strong,
.overview-panel strong {
  display: block;
  margin-top: 10px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #fff;
}

.highlight-card p,
.overview-panel p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.overview-panels {
  gap: 18px;
}

.overview-panel {
  padding: 22px;
}

.overview-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-chip {
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(145, 211, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
}

.metric-chip span {
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-chip strong {
  margin: 0;
  font-size: 0.98rem;
}

.workflow-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.workflow-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.workflow-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #8ce5ff);
  box-shadow: 0 0 14px rgba(114, 221, 255, 0.35);
}

.dashboard-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.dashboard-card {
  min-height: 196px;
  padding: 22px;
  gap: 18px;
}

.dashboard-card::after,
.panel::after,
.command-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 221, 255, 0.4), transparent);
}

.dashboard-card-icon,
.section-icon,
.panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(114, 221, 255, 0.16), rgba(114, 221, 255, 0.06));
  border-color: rgba(114, 221, 255, 0.2);
}

.dashboard-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.dashboard-value {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.dashboard-sub {
  line-height: 1.55;
}

.dashboard-card-status {
  align-items: start;
}

.dashboard-status-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.34;
  color: #fff;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.command-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.command-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.command-card-head strong {
  display: block;
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.02rem;
  line-height: 1.42;
  color: #fff;
}

.command-card p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.68;
}

.admin-main {
  gap: 26px;
}

.admin-section.active {
  animation: workspaceReveal 260ms ease;
}

@keyframes workspaceReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.section-header {
  margin-bottom: 18px;
  padding: 0 2px;
}

.section-header h2 {
  margin-top: 6px;
  font-size: clamp(1.72rem, 2vw, 2.18rem);
}

.section-header small {
  max-width: 72ch;
  margin-top: 10px;
  font-size: 0.94rem;
}

.chip,
.badge-pill {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
}

.section-grid {
  gap: 18px;
}

.section-grid > .panel:last-child {
  top: 122px;
}

.panel {
  padding: 26px;
}

.panel-header-row {
  margin-bottom: 24px;
}

.panel-title {
  font-size: 1.06rem;
}

.panel-title .sub {
  font-size: 0.83rem;
}

.panel-body {
  gap: 20px;
}

.field-row {
  gap: 18px;
}

input,
textarea,
select,
.rte-editor {
  border-radius: 18px;
  border-color: rgba(145, 211, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

input,
textarea,
select {
  min-height: 52px;
  padding: 14px 16px;
}

textarea {
  min-height: 136px;
}

input:focus,
textarea:focus,
select:focus,
.rte-editor:focus {
  border-color: rgba(114, 221, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(114, 221, 255, 0.1);
}

.split-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 800;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #49d1ff 0%, #0d3655 100%);
  border-color: rgba(114, 221, 255, 0.18);
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(145, 211, 255, 0.1);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.button-row {
  gap: 10px;
  padding-top: 8px;
}

.meta-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pair-compact {
  gap: 6px;
}

.panel-spacer {
  margin-top: 4px;
}

.list {
  gap: 12px;
  max-height: 680px;
}

.list::-webkit-scrollbar {
  width: 10px;
}

.list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(145, 211, 255, 0.12);
}

.list-item {
  border-radius: 22px;
  border-color: rgba(145, 211, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.015);
}

.list-item:hover {
  border-color: rgba(114, 221, 255, 0.18);
}

.list-item-title {
  font-size: 0.96rem;
}

.list-item-sub-tight {
  margin-bottom: 0;
}

.list-item-sub-accent {
  margin-top: 0.35rem;
  color: #d4f5ff;
}

.list-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.rte-shell {
  border-radius: 22px;
  border-color: rgba(145, 211, 255, 0.1);
}

.rte-toolbar {
  gap: 10px;
  padding: 14px;
}

.rte-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.rte-btn .icon {
  width: 18px;
  height: 18px;
}

.rte-letter {
  font-size: 0.96rem;
}

.app-modal {
  background: rgba(3, 7, 14, 0.82);
}

.app-modal-card {
  padding: 26px;
}

.system-bar {
  gap: 12px;
  padding-top: 14px;
}

@media (max-width: 1480px) {
  .header-right {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav-horizontal {
    top: 116px;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    padding: 16px;
  }

  .nav-intro {
    min-width: 260px;
    padding: 0 16px 0 0;
    margin: 0 4px 0 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-section-label {
    display: none;
  }

  .sidebar-btn {
    width: 280px;
    flex-shrink: 0;
  }

  .rail-footer {
    min-width: 280px;
    margin-top: 0;
    flex-shrink: 0;
  }

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

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

  .section-grid > .panel:last-child {
    position: static;
  }
}

@media (max-width: 960px) {
  .admin-header-shell {
    gap: 16px;
  }

  .header-right {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .overview-highlights,
  .overview-metrics,
  .command-grid {
    grid-template-columns: 1fr;
  }

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

  .field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .admin-header {
    padding: 12px 12px 0;
  }

  .admin-layout {
    padding: 16px 12px 34px;
  }

  .admin-header-shell,
  .nav-horizontal,
  .overview-copy,
  .overview-panel,
  .dashboard-card,
  .panel,
  .app-modal-card,
  .command-card {
    border-radius: 24px;
  }

  .overview-copy,
  .overview-panel,
  .dashboard-card,
  .panel,
  .app-modal-card,
  .command-card {
    padding: 20px;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .sidebar-btn {
    width: 250px;
  }

  .rail-footer {
    min-width: 250px;
  }

  .split-inline,
  .two-col-inline {
    grid-template-columns: 1fr;
  }
}

/* compact cleanup */
.admin-header-shell {
  max-width: 1460px;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: 24px;
}

.admin-header-left {
  gap: 12px;
}

.logo-frame {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.logo-text-main {
  font-size: 1rem;
}

.logo-text-sub {
  font-size: 0.72rem;
}

.header-tag {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.header-right {
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
}

.header-user-card {
  padding: 12px 14px;
  border-radius: 16px;
}

.header-user-value {
  font-size: 0.92rem;
}

.header-user-note {
  font-size: 0.8rem;
}

.header-actions {
  gap: 8px;
}

.admin-layout {
  max-width: 1460px;
  padding: 18px 18px 36px;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
}

.nav-horizontal {
  top: 112px;
  gap: 8px;
  padding: 14px;
  border-radius: 24px;
}

.nav-intro {
  padding-bottom: 12px;
}

.nav-title {
  font-size: 1.14rem;
}

.nav-intro p {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.sidebar-btn {
  min-height: 52px;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 16px;
}

.sidebar-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.sidebar-btn-title {
  display: block;
  font-size: 0.88rem;
}

.admin-shell {
  gap: 16px;
}

.admin-overview {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.overview-copy,
.overview-panel {
  border-radius: 24px;
  padding: 22px;
}

.overview-copy h1 {
  max-width: 12ch;
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.overview-copy > p {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.overview-actions {
  margin-top: 18px;
}

.overview-panels {
  display: grid;
  gap: 0;
}

.overview-panel {
  display: grid;
  gap: 12px;
}

.overview-panel strong {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.38;
}

.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.compact-list li {
  position: relative;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.compact-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(114, 221, 255, 0.3);
}

.dashboard-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card {
  min-height: 152px;
  padding: 18px;
  border-radius: 22px;
  gap: 14px;
}

.dashboard-card::after {
  left: 18px;
  right: 18px;
}

.dashboard-card-icon,
.section-icon,
.panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.dashboard-card-icon .icon,
.section-icon .icon,
.panel-icon .icon {
  width: 18px;
  height: 18px;
}

.dashboard-value {
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
}

.dashboard-sub {
  font-size: 0.82rem;
  line-height: 1.48;
}

.section-header {
  margin-bottom: 14px;
}

.section-header h2 {
  margin-top: 4px;
  font-size: clamp(1.48rem, 2vw, 1.82rem);
}

.section-header small {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.chip,
.badge-pill {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.76rem;
}

.section-grid {
  gap: 14px;
}

.section-grid > .panel:last-child {
  top: 112px;
}

.panel,
.app-modal-card {
  border-radius: 24px;
  padding: 22px;
}

.panel::after {
  left: 20px;
  right: 20px;
}

.panel-header-row {
  margin-bottom: 18px;
}

.panel-title {
  font-size: 1rem;
}

.panel-title .sub {
  font-size: 0.8rem;
}

.panel-body {
  gap: 16px;
}

.field-row {
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
}

.field-label {
  padding-top: 12px;
  font-size: 0.84rem;
}

input,
textarea,
select {
  min-height: 48px;
  padding: 12px 14px;
}

textarea {
  min-height: 120px;
}

.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.86rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.list {
  gap: 10px;
  max-height: 620px;
}

.list-item {
  border-radius: 18px;
  padding: 14px 16px;
}

.list-item-sub,
.muted {
  font-size: 0.84rem;
}

.rte-shell {
  border-radius: 18px;
}

.rte-toolbar {
  padding: 10px;
}

.rte-editor {
  min-height: 180px;
  max-height: 340px;
  padding: 16px;
}

@media (max-width: 1480px) {
  .dashboard-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav-horizontal {
    top: 104px;
    padding: 12px;
  }

  .nav-intro {
    min-width: 210px;
  }

  .sidebar-btn {
    width: 220px;
  }

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

  .section-grid > .panel:last-child {
    position: static;
  }
}

@media (max-width: 960px) {
  .header-right {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .admin-header-shell,
  .nav-horizontal,
  .overview-copy,
  .overview-panel,
  .dashboard-card,
  .panel,
  .app-modal-card {
    border-radius: 20px;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .sidebar-btn {
    width: 200px;
  }

  .panel,
  .overview-copy,
  .overview-panel,
  .dashboard-card,
  .app-modal-card {
    padding: 18px;
  }
}
