:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #171722;
  --panel-2: #211f2d;
  --line: rgba(167, 139, 250, .46);
  --line-soft: rgba(167, 139, 250, .24);
  --text: #f5f3ff;
  --muted: #abb0c1;
  --teal: #ded5ff;
  --teal-2: #56339b;
  --accent: #b8a6ff;
  --violet: #9b7cff;
  --violet-2: #412578;
  --green: #ddd5ff;
  --warning: #f7c76d;
  --red: #ff7b86;
  --input: #13121d;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cg fill='none' stroke='%23b8a6ff' stroke-width='1'%3E%3Cpath d='M20 55h45l22-22h48l20 20h58M0 150h42l18-18h58l26 26h72M174 0v34l18 18v45l-24 24M222 148v32l-20 20'/%3E%3Cpath d='M70 83l18-10 18 10v20l-18 10-18-10zM166 128l18-10 18 10v20l-18 10-18-10z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 220px;
}

.shell {
  width: min(1450px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  margin-top: 34px;
  margin-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(167, 139, 250, .36);
  background: rgba(11, 12, 16, .96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.site-brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  color: var(--text);
  text-decoration: none;
}

.site-brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(184, 166, 255, .78);
  border-radius: 7px;
  object-fit: cover;
  object-position: 50% 36%;
  background: #08090d;
  box-shadow: 0 0 22px rgba(155, 124, 255, .32);
}

.site-brand span,
.account-details {
  display: grid;
  gap: 1px;
}

.site-brand strong {
  color: #f8f7ff;
  font-size: 14px;
  letter-spacing: 0;
}

.site-brand small,
.account-details span {
  color: #c2b6e8;
  font-size: 11px;
  font-weight: 800;
}

.topnav {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}

.account-profile {
  order: 3;
  flex: 0 1 auto;
}

.language-switch {
  order: 4;
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid rgba(216, 212, 230, .42);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bcb5cf;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a.active {
  border-color: rgba(184, 166, 255, .72);
  background: rgba(86, 51, 155, .34);
  color: #ffffff;
}

.nav-menu {
  position: relative;
  padding: 0 14px;
}

.nav-menu-direct {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #d8d4e6;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.nav-menu-direct:hover,
.nav-menu-direct.active {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(184, 166, 255, .48);
}

.nav-menu + .nav-menu {
  border-left: 1px solid rgba(216, 212, 230, .42);
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8d4e6;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  outline: none;
}

.nav-menu-trigger::after {
  content: none;
}

.nav-menu.active > .nav-menu-trigger,
.nav-menu:hover > .nav-menu-trigger,
.nav-menu:focus-within > .nav-menu-trigger {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(184, 166, 255, .48);
}

.nav-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 7px;
  border: 1px solid rgba(184, 166, 255, .48);
  border-radius: 7px;
  background: #191724;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .42);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.nav-menu:hover .nav-menu-items,
.nav-menu:focus-within .nav-menu-items {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu-items .navitem {
  justify-content: flex-start;
  min-width: 0;
  border-color: transparent;
  background: transparent;
}

.nav-menu-items .navitem:hover,
.nav-menu-items .navitem.active {
  border-color: rgba(184, 166, 255, .5);
  background: #312052;
}

.navgroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(167, 139, 250, .28);
  border-radius: 8px;
  background: #17151f;
}

.navgroup.active {
  border-color: rgba(184, 166, 255, .58);
  background: #211b34;
}

.navgroup-label {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.navgroup-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.navitem,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #16151f;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.navitem.active,
.navitem:hover {
  border-color: rgba(184, 166, 255, .88);
  color: #f0edff;
}

.navgroup.active .navgroup-label {
  color: #d8d4e6;
}

.button {
  min-width: 112px;
  cursor: pointer;
}

.button.disabled,
.button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.ghost-button {
  border-color: var(--line);
  background: #181622;
  color: var(--text);
}

.primary-button {
  border-color: rgba(184, 166, 255, .78);
  background: var(--teal-2);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover {
  border-color: #c8bbff;
  background: #312052;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(184, 166, 255, .7);
  border-radius: 50%;
  object-fit: cover;
  background: #241d32;
}

.account-avatar.fallback {
  display: grid;
  place-items: center;
  color: #f5f3ff;
  font-weight: 900;
}

.account-details strong {
  max-width: 120px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions {
  order: 5;
  display: flex;
  gap: 7px;
  justify-self: end;
}

.account-actions a {
  color: #c7b6ff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.account-actions a:hover {
  color: #f3efff;
}

.login-button {
  min-width: 138px;
}

.logout-button {
  min-width: 108px;
}

.panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(167, 139, 250, .52);
  border-radius: 8px;
  background: rgba(20, 21, 29, .84);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 30px;
}

.dashboard-banner {
  aspect-ratio: 2.48 / 1;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(184, 166, 255, .56);
  border-radius: 8px;
  background: #14151d;
  box-shadow: var(--shadow);
}

.dashboard-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 0;
  margin-top: 24px;
  padding: 30px 36px;
  border: 1px solid rgba(184, 166, 255, .5);
  border-radius: 8px;
  background: rgba(20, 21, 29, .84);
  box-shadow: var(--shadow);
}

.dashboard-hero-art {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
}

.dashboard-hero-art img {
  display: block;
  width: min(100%, 330px);
  max-height: 300px;
  object-fit: contain;
}

.dashboard-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 760px;
}

.dashboard-hero-copy h1 {
  font-size: 36px;
}

.dashboard-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  position: relative;
  padding-left: 18px;
  color: #e8e4f4;
  font-weight: 750;
}

.hero-benefits li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.metrics-section {
  margin-top: 24px;
}

.brand-row,
.section-head,
.split-panel,
.two-column {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-row {
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, .84);
  border-radius: 8px;
  color: #ddd6fe;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(145deg, rgba(76, 29, 149, .55), rgba(17, 24, 39, .92));
  box-shadow: 0 0 32px rgba(139, 92, 246, .24);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 2px;
  font-size: 34px;
  line-height: 1.12;
}

h2 {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1.18;
}

h3 {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.25;
}

.eyebrow,
.metric-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.session-pill {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(184, 166, 255, .48);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(139, 92, 246, .12);
  font-size: 13px;
  font-weight: 800;
}

.metrics-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card,
.feature-card,
.server-row,
.status-box,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.metric-card {
  min-height: 178px;
  padding: 20px;
  border-color: rgba(167, 139, 250, .54);
  background: #202031;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.metric-card p,
.feature-card p,
.copy,
.server-row span,
.status-line span,
.meta-stack,
.empty-state p {
  color: var(--muted);
}

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

.warn {
  color: var(--warning);
}

.server-list,
.table-list {
  display: grid;
  width: min(640px, 100%);
  gap: 12px;
}

.table-list {
  width: 100%;
  margin-top: 22px;
}

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.server-row strong,
.server-row span {
  display: block;
}

.server-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.server-actions .button {
  min-width: 0;
}

.server-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.server-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(139, 92, 246, .55);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(139, 92, 246, .14);
}

.server-avatar.fallback {
  display: grid;
  place-items: center;
  color: #ddd6fe;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(139, 92, 246, .28), rgba(184, 166, 255, .08));
}

.server-row.muted {
  background: #1c1d2b;
}

.feature-card {
  min-height: 230px;
  padding: 20px;
}

.section-link {
  color: var(--text);
  text-decoration: none;
}

.section-link:hover {
  border-color: rgba(184, 166, 255, .74);
  background: #292238;
}

.roadmap-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.roadmap-item.current {
  border-color: rgba(184, 166, 255, .72);
  box-shadow: inset 3px 0 0 #9b7cff;
}

.roadmap-step {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(184, 166, 255, .52);
  border-radius: 7px;
  color: #ded6ff;
  background: #211b34;
  font-weight: 900;
}

.roadmap-item h2 {
  margin-top: 8px;
  font-size: 20px;
}

.roadmap-item p {
  margin-top: 8px;
  color: var(--muted);
}

.control-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.control-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.control-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.control-head p,
.module-row span {
  color: var(--muted);
}

.control-form,
.module-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.feature-form {
  grid-template-columns: repeat(2, minmax(140px, .7fr)) repeat(2, minmax(0, 1fr)) auto;
}

.module-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.module-row {
  grid-template-columns: minmax(260px, 1fr) minmax(90px, .35fr) minmax(110px, .35fr) auto;
  margin-top: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(30, 29, 43, .9);
}

.control-form label,
.module-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.control-form input,
.control-form select,
.control-form textarea,
.module-row input,
.settings-form input,
.schedule-form input,
.schedule-form select,
.schedule-form textarea,
.contact-form input,
.contact-form textarea,
.editor-form input,
.editor-form select,
.editor-form textarea,
.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #13121d;
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

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

.feature-overview-module {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(30, 29, 43, .9);
}

.feature-overview-module summary {
  cursor: pointer;
  padding: 14px;
  color: var(--text);
  font-weight: 800;
}

.feature-overview-list {
  border-top: 1px solid var(--line-soft);
}

.feature-overview-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

.feature-overview-row:first-child {
  border-top: 0;
}

.feature-overview-row strong,
.feature-overview-row span {
  display: block;
}

.feature-overview-row > div > span,
.feature-overview-meta {
  color: var(--muted);
  font-size: 13px;
}

.feature-overview-meta {
  min-width: 180px;
}

.feature-overview-meta .tag {
  display: inline-block;
  margin-bottom: 6px;
}

.editor-form,
.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.editor-form label,
.product-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.control-form textarea {
  resize: vertical;
}

.contact-context {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  color: var(--muted);
}

.contact-context strong {
  color: var(--text);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form a,
.form-note a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.form-note {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(33, 31, 47, .88);
  color: var(--muted);
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recaptcha-wrap {
  min-height: 78px;
}

.wide-field {
  grid-column: span 2;
}

.compact-field {
  min-width: 110px;
}

.check-control {
  align-content: center;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-control input {
  width: 18px;
  min-height: 18px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tag.free {
  color: var(--teal);
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(184, 166, 255, .44);
}

.tag.premium {
  color: var(--warning);
  background: rgba(247, 199, 109, .1);
  border: 1px solid rgba(247, 199, 109, .32);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #332b45;
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b5c0d1;
  content: "";
}

.switch.on {
  background: rgba(139, 92, 246, .48);
}

.switch.on::after {
  left: 22px;
  background: var(--teal);
}

.two-column > article {
  flex: 1;
}

.status-box,
.empty-state {
  padding: 18px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.status-line:last-child {
  border-bottom: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.compact-actions {
  align-items: center;
  margin-top: 0;
}

.compact-actions form {
  margin: 0;
}

.selected-card {
  border-color: rgba(184, 166, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .2);
}

.login-panel .copy {
  max-width: 720px;
}

.meta-stack {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
}

.flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 166, 255, .42);
  border-radius: 7px;
  background: rgba(139, 92, 246, .12);
  color: var(--text);
}

.flash.error {
  border-color: rgba(255, 123, 134, .45);
  background: rgba(255, 123, 134, .08);
}

.account-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(28, 27, 40, .82);
  color: var(--muted);
  font-size: 13px;
}

.account-bar a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid rgba(167, 139, 250, .42);
  border-bottom: 1px solid rgba(167, 139, 250, .22);
  background: rgba(20, 21, 29, .78);
}

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a,
.legal-copy a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.legal-copy {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-post {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 31, 47, .9);
}

.news-post h2 {
  margin-top: 10px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rich-copy {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: #dbe7f7;
}

.rich-copy ul,
.rich-copy ol {
  margin: 0;
  padding-left: 22px;
}

.rich-copy a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.rich-copy img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-copy pre,
.rich-copy code {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #0f1520;
}

.rich-copy pre {
  overflow: auto;
  padding: 12px;
}

.rich-copy code {
  padding: 2px 6px;
}

.legal-copy h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
}

.bulk-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
}

.bulk-panel strong {
  display: block;
}

.bulk-panel span {
  color: var(--muted);
  font-weight: 800;
}

.bulk-panel form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.danger-button {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 14, 0.78);
  backdrop-filter: blur(7px);
}

.confirm-dialog {
  width: min(100%, 510px);
  padding: 28px;
  border: 1px solid rgba(139, 92, 246, 0.7);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(38, 29, 61, 0.98), rgba(18, 19, 31, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(226, 213, 255, 0.06) inset;
}

.confirm-dialog h2 {
  margin: 7px 0 10px;
}

.confirm-dialog .copy {
  margin: 0;
  color: #d5d1e3;
  line-height: 1.55;
}

.confirm-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

.audit-list {
  gap: 12px;
}

.log-toolbar,
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.log-toolbar {
  color: var(--muted);
  font-weight: 800;
}

.log-filter {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(260px, 1fr) minmax(120px, 150px) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 31, 47, .88);
}

.log-filter label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(184, 166, 255, .46);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(139, 92, 246, .13);
  font-size: 12px;
  font-weight: 900;
}

.audit-error {
  border-color: rgba(248, 113, 113, .55);
  background: rgba(127, 29, 29, .22);
}

.audit-error .audit-badge {
  border-color: rgba(248, 113, 113, .55);
  color: #fecaca;
  background: rgba(248, 113, 113, .12);
}

.pagination {
  justify-content: center;
}

.audit-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 31, 47, .9);
}

.audit-main,
.audit-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.audit-main span,
.audit-meta {
  color: var(--muted);
  font-size: 13px;
}

.audit-meta {
  justify-content: flex-start;
}

.audit-row pre {
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--input);
  color: var(--muted);
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding: 10px 0;
  }

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

  .language-switch {
    margin-left: 0;
  }

  .nav-menu-items {
    right: auto;
    left: 0;
  }

  .account-profile {
    min-width: 0;
  }

  .log-filter {
    grid-template-columns: 1fr;
  }
}

.help-intro {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}

.help-section {
  scroll-margin-top: 24px;
}

.help-grid,
.command-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.muted-line {
  color: var(--muted);
  font-weight: 800;
  margin: 6px 0 0;
}

.settings-form,
.schedule-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-form label,
.schedule-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.settings-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-section h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.schedule-form textarea {
  resize: vertical;
}

.schedule-list {
  margin-top: 18px;
}

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

.help-grid article,
.command-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(33, 31, 47, .9);
}

.command-card h3 {
  margin-top: 0;
  color: var(--teal);
}

.command-card p,
.command-card li,
.help-grid p {
  color: var(--muted);
}

.command-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.command-card code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--input);
  color: var(--text);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .dashboard-banner {
    aspect-ratio: 1.95 / 1;
  }

  .dashboard-hero {
    padding: 24px;
  }

  .dashboard-hero-copy h1 {
    font-size: 31px;
  }

  .brand-row,
  .section-head,
  .split-panel,
  .two-column {
    flex-direction: column;
  }

  .session-pill {
    margin-left: 0;
  }

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

  .control-form,
  .feature-form,
  .module-row,
  .settings-form,
  .schedule-form,
  .contact-form,
  .editor-form,
  .product-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-form .button,
  .module-row .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1050px);
  }

  .page-shell {
    margin-top: 20px;
  }

  .header-shell {
    grid-template-columns: 1fr;
  }

  .site-brand,
  .account-profile,
  .account-actions {
    justify-content: center;
  }

  .language-switch {
    margin-left: 0;
  }

  .account-details {
    display: none;
  }

  .panel {
    padding: 20px;
  }

  .dashboard-banner {
    aspect-ratio: 1.35 / 1;
  }

  .dashboard-hero {
    padding: 22px 20px;
  }

  .dashboard-hero-copy h1 {
    font-size: 29px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .topnav,
  .nav-menu {
    width: 100%;
  }

  .nav-menu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu-items {
    position: static;
    width: 100%;
    margin-top: 6px;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-menu:hover .nav-menu-items,
  .nav-menu:focus-within .nav-menu-items {
    display: grid;
  }

  .nav-menu-items .navitem {
    width: 100%;
  }

  .metrics-grid,
  .feature-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .server-row,
  .status-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .control-form,
  .feature-form,
  .module-row,
  .settings-form,
  .schedule-form,
  .contact-form,
  .editor-form,
  .product-form {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }
}
