:root {
  --bg: #050505;
  --sidebar: #080808;
  --panel: #111111;
  --panel-soft: #171717;
  --control: #222222;
  --control-hover: #303030;
  --ink: #ffffff;
  --muted: #b9b0bd;
  --dim: #827886;
  --line: rgba(255, 255, 255, 0.075);
  --purple: #9b42d6;
  --purple-dark: #361536;
  --purple-mid: #4b1b4d;
  --pink: #d956d4;
  --green: #40d66f;
  --blue: #3030a4;
  --danger: #dc3f46;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050505;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 700;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 0%, rgba(155, 66, 214, 0.08), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, 92px 92px, 92px 92px;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 14px 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 66, 214, 0.1), transparent 30%),
    #080808;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 34px 0 90px rgba(0, 0, 0, 0.45);
}

.sidebar * {
  box-sizing: border-box;
}

.sidebar svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 22px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.brand strong {
  color: #ffffff;
  font-weight: 950;
  line-height: 1;
}

.brand-logo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  display: block;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(226, 85, 183, 0.35));
}

.brand img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b85cff, #ef4cc8);
  color: #070707;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(184, 92, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

/* Account dropdown */

.account-dropdown {
  display: block;
}

.account-dropdown summary {
  min-height: 46px;
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 14px;
  background:
    linear-gradient(135deg, rgba(71, 27, 70, 0.98), rgba(48, 21, 50, 0.98));
  color: #ffffff;
  list-style: none;
  cursor: pointer;
  user-select: none;
  box-shadow:
    inset 0 0 0 1px rgba(226, 85, 212, 0.12),
    0 12px 26px rgba(0, 0, 0, 0.24);
}

.account-dropdown summary::-webkit-details-marker {
  display: none;
}

.account-dropdown summary strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.nav-svg {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.dropdown-arrow {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: transform 180ms ease;
}

.account-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.account-subnav {
  display: grid;
  gap: 7px;
  padding: 10px 0 4px 50px;
}

.account-subnav a {
  min-height: 20px;
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: #bfb6c4;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.account-subnav a.active,
.account-subnav a:hover {
  color: #ffffff;
}

.main-nav-link,
.nav-link,
.sidebar nav > a {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: #f5f0f7;
  font-size: 17px;
  font-weight: 950;
  transition:
    background 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.main-nav-link strong,
.nav-link strong {
  color: inherit;
  font-weight: 950;
}

.main-nav-link span,
.nav-link span,
.sidebar nav > a span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.main-nav-link:hover,
.nav-link:hover,
.sidebar nav > a:hover,
.main-nav-link.active,
.nav-link.active,
.sidebar nav > a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(2px);
}

.main-nav-link:hover .nav-svg,
.nav-link:hover .nav-svg {
  color: #d96cff;
}

/* Sidebar support card */

.side-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  border: 0;
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #121212;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 45px rgba(0, 0, 0, 0.28);
}

.side-card p {
  margin: 0;
  color: #f3eef5;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}

.side-card p + a,
.side-card p + button {
  margin-bottom: 8px;
}

.side-card button,
.side-card a {
  min-height: 43px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 13px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.side-card button {
  border: 1px solid rgba(94, 98, 242, 0.72);
  background: linear-gradient(135deg, #34348c, #282866);
}

.side-card a.support-link {
  border: 1px solid rgba(94, 98, 242, 0.72);
  background: linear-gradient(135deg, #34348c, #282866);
}

.side-card a {
  border: 1px solid rgba(215, 79, 218, 0.68);
  background: linear-gradient(135deg, #64266e, #4d1c54);
}

.side-card span,
.mini-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
}

/* Share button */

.share-button {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(215, 79, 218, 0.76);
  border-radius: 999px;
  background: linear-gradient(135deg, #4f1553, #3a103f);
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 14px 35px rgba(0, 0, 0, 0.28);
}

.share-button span {
  display: inline-block;
  color: #ffffff;
}

/* Bottom account chip */

.account-chip {
  position: relative;
  z-index: 2;
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    #121212;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.32);
}

.account-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #7c3fa0, #4a1e55);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(155, 66, 214, 0.22);
}

.account-chip-copy,
.account-chip > div:not(.account-avatar) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-chip b {
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip span,
.account-chip-copy span {
  overflow: hidden;
  color: #aaa1ae;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-more {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9e98a2;
}

.account-more span {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: #9e98a2;
}

.account-more:hover {
  background: rgba(255, 255, 255, 0.07);
}

.overview-tools-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 86, 212, 0.08), transparent 30%),
    #111111;
}

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

.overview-tool-grid a {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.overview-tool-grid a:hover {
  border-color: rgba(217, 86, 212, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.overview-tool-grid b {
  color: #ffffff;
  font-size: 15px;
}

.overview-tool-grid span {
  color: #b9b0bd;
  font-size: 13px;
  font-weight: 650;
}

/* =========================
   MAIN LAYOUT
========================= */

.workspace {
  min-width: 0;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 38px 44px 80px;
}

.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}

.kicker {
  margin: 0 0 10px;
  color: #d990ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.workspace-subtitle,
.dash-muted,
.section-title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.header-actions a,
.header-actions button {
  height: 42px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 18px;
  background: #1b1b1b;
  color: white;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.header-actions a {
  border-color: rgba(226, 85, 183, 0.4);
  background: #361536;
}

.header-actions a:hover,
.header-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* =========================
   OVERVIEW CARDS
========================= */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.overview-grid article {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(226, 85, 183, 0.18);
  border-radius: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(65, 25, 65, 0.94), rgba(48, 22, 49, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    0 20px 55px rgba(0, 0, 0, 0.22);
}

.reaction-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 26px;
}

.reaction-overview article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 86, 212, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #111111;
}

.reaction-overview span {
  color: #d990ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reaction-overview b {
  overflow: hidden;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-overview small {
  overflow: hidden;
  color: #b9b0bd;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-grid article::after {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  line-height: 1;
}

.overview-grid article:nth-child(1)::after {
  content: "✎";
}

.overview-grid article:nth-child(2)::after {
  content: "♚";
}

.overview-grid article:nth-child(3)::after {
  content: "#";
  font-size: 28px;
}

.overview-grid article:nth-child(4)::after {
  content: "●";
}

.overview-grid span {
  color: #f7edf9;
  font-size: 14px;
  font-weight: 850;
}

.overview-grid b {
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.overview-grid small {
  color: #b8abbc;
  font-size: 13px;
}

/* =========================
   PANELS
========================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 22px;
  margin-bottom: 30px;
}

.completion-card,
.manage-card,
.device-card,
.views-card,
.panel,
.feature-strip article,
.connections-panel,
.account-hero {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    #111111;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    0 20px 55px rgba(0, 0, 0, 0.22);
}

.completion-card,
.manage-card,
.device-card,
.views-card,
.panel {
  padding: 22px;
}

.completion-card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 0;
}

.section-title span,
#completionText {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d8cfe0;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.progress {
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: #1c1c1c;
}

.progress i {
  display: block;
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72247f, #a736b7);
  box-shadow: 0 0 18px rgba(155, 66, 214, 0.28);
}

.notice {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 16px 18px;
  background: #171717;
}

.notice b {
  color: #ffffff;
  line-height: 1.25;
}

.notice b::before {
  content: "⚠️ ";
}

.notice p {
  margin: 0;
  color: #c3b7c6;
  line-height: 1.4;
}

.notice.complete {
  border-color: rgba(64, 214, 111, 0.18);
  background:
    linear-gradient(135deg, rgba(64, 214, 111, 0.08), rgba(255, 255, 255, 0.015)),
    #171717;
}

.notice.complete b::before {
  content: "✓ ";
  color: var(--green);
}

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

.task-grid button {
  position: relative;
  min-height: 48px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  padding: 0 42px 0 18px;
  background: #1a1a1a;
  color: white;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.task-grid button::before {
  content: "●";
  flex: 0 0 auto;
  margin-right: 10px;
  color: #777;
  font-size: 12px;
}

.task-grid button::after {
  content: "›";
  position: absolute;
  right: 18px;
  color: #777;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.task-grid button.done::before {
  content: "✓";
  color: var(--green);
}

.task-grid button.done {
  background: #1a1a1a;
}

.manage-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.manage-card p {
  margin: 0;
  color: #c1b7c4;
  line-height: 1.35;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.account-actions button,
.manage-card button {
  min-height: 45px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #303030;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.account-actions button:hover,
.manage-card button:hover {
  background: #3a3a3a;
}

.account-edit-fields {
  display: grid;
  gap: 10px;
}

#saveAccountButton {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #303030;
}

#accountSaveNote {
  display: block;
  color: #d6ceda;
  font-size: 12px;
  line-height: 1.35;
}

.connection-block {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.connection-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.connection {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  border-radius: 13px;
  padding: 13px;
  background: linear-gradient(135deg, #3935b7, #2b2794);
  color: white;
}

.connection span,
.connection b {
  color: white;
}

/* =========================
   ANALYTICS
========================= */

.analytics-row {
  display: grid;
  grid-template-columns: 410px 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 30px;
}

.device-card,
.views-card {
  min-height: 280px;
}

.device-card h2 span,
.views-card h2 span {
  color: #d990ff;
}

.donut {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  margin: 28px auto 18px;
  border-radius: 999px;
  background: conic-gradient(#8f58a3 0 72%, #734380 72% 100%);
}

.donut span {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #111111;
  color: #bfb5c2;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.donut small {
  margin-top: -16px;
  color: #9f96a3;
  font-size: 13px;
  font-weight: 600;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: #9560a8;
  vertical-align: -2px;
}

.views-card {
  overflow: hidden;
}

.views-card svg {
  width: 100%;
  height: 260px;
}

.views-card path {
  fill: none;
  stroke: #a64dff;
  stroke-width: 5;
  stroke-linecap: round;
}

/* =========================
   FEATURE STRIP
========================= */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.feature-strip article {
  padding: 20px;
}

.feature-strip span {
  color: #d990ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-strip b {
  display: block;
  margin: 16px 0 8px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* =========================
   EDITOR / SHARED FOR OTHER PAGES
========================= */

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 24px;
  margin-top: 6px;
}

.panel h2 {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 13px 14px;
  background: #080808;
  color: var(--ink);
  outline: none;
}

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

input:focus,
textarea:focus {
  border-color: rgba(226, 85, 183, 0.34);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.link-edit {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #0d0d0e;
}

.preview-panel {
  grid-row: span 3;
}

iframe {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050405;
}

/* =========================
   OLD DASHBOARD CLASS FALLBACKS
========================= */

.account-nav,
.nav-section {
  display: grid;
  gap: 8px;
}

.account-nav-head,
.nav-section-head {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, #3a1838, #2b142d);
  color: #ffffff;
  text-align: left;
  font-size: 16px;
  font-weight: 950;
}

.account-nav-head .nav-icon,
.nav-head-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 16px;
}

.chevron,
.nav-section-head em {
  color: #ffffff;
  font-style: normal;
  font-size: 18px;
}

.nav-submenu {
  display: grid;
  gap: 7px;
  padding: 10px 0 4px 50px;
}

.nav-submenu a {
  min-height: 20px;
  color: #bfb6c4;
  font-size: 14px;
  font-weight: 600;
}

.nav-submenu a.active,
.nav-submenu a:hover {
  color: #ffffff;
}

.nav-label,
.nav-group p {
  display: none;
}

/* =========================
   SCROLLBAR
========================= */

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

::-webkit-scrollbar-track {
  background: #070707;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #272727;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1320px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .workspace {
    padding-inline: 34px;
  }
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .analytics-row,
  .editor-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

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

@media (max-width: 860px) {
  .dashboard-shell,
  .overview-grid,
  .reaction-overview,
  .split {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }

  .workspace {
    padding: 24px 16px 50px;
  }

  .workspace-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions a,
  .header-actions button {
    flex: 1;
    min-width: 0;
  }

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

@media (max-width: 520px) {
  .task-grid {
    grid-template-columns: 1fr;
  }

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

  .header-actions {
    flex-direction: column;
  }

  .header-actions a,
  .header-actions button {
    width: 100%;
  }
}
