:root {
  --gold: #b8870b;
  --gold-soft: #f2c96d;
  --bg-a: #120903;
  --bg-b: #231103;
  --bg-c: #110b07;
  --text: #f7f0e3;
  --text-strong: #ffffff;
  --muted: rgba(247, 240, 227, 0.62);
  --glass: rgba(255, 255, 255, 0.105);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}

[data-theme="light"] {
  --bg-a: #f7f2e8;
  --bg-b: #efe4cf;
  --bg-c: #f5eddf;
  --text: #21160c;
  --text-strong: #100a04;
  --muted: rgba(33, 22, 12, 0.58);
  --glass: rgba(255, 255, 255, 0.54);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --line: rgba(27, 13, 0, 0.14);
  --line-soft: rgba(27, 13, 0, 0.08);
  --shadow: 0 24px 68px rgba(91, 59, 15, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 135, 11, 0.24), transparent 27%),
    radial-gradient(circle at 85% 8%, rgba(91, 58, 10, 0.2), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(184, 135, 11, 0.16), transparent 30%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 48%, var(--bg-c));
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 76%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.glass-card,
.metric-row article,
.section-manager,
.mobile-preview,
.sidebar,
.phone-frame,
.phone-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary,
.button-ghost,
.auth-form button,
.topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 650;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button-primary,
.auth-form button,
.topbar-actions a {
  border: 1px solid rgba(242, 201, 109, 0.45);
  color: #1b0d00;
  background: linear-gradient(135deg, #ffe7a3, var(--gold));
}

.button-primary:hover,
.auth-form button:hover,
.topbar-actions a:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(184, 135, 11, 0.15), 0 0 34px rgba(184, 135, 11, 0.42);
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.welcome-hero {
  min-height: 100vh;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
}

.construction-page {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.construction-page img {
  width: min(320px, 78vw);
}

.construction-page p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.welcome-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.welcome-nav img,
.login-brand img,
.brand-full img {
  width: min(190px, 54vw);
}

.brand-icon img {
  width: 34px;
}

.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

.welcome-nav a {
  color: var(--gold-soft);
  font-weight: 600;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 460px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding-top: clamp(58px, 11vh, 120px);
}

.welcome-grid h1 {
  margin: 0;
  max-width: 720px;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1;
}

.welcome-grid p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.device-preview {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(340px, 88vw);
  min-height: 590px;
  padding: 14px;
  border-radius: 34px;
}

.phone-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 22px;
}

.phone-card.hero-card {
  min-height: 230px;
  background:
    linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.5)),
    linear-gradient(135deg, rgba(184, 135, 11, 0.55), rgba(27, 13, 0, 0.9));
}

.phone-card span {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.phone-card button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #1b0d00;
  background: var(--gold);
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 42px);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}

.login-brand span {
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 400;
}

.login-card h1 {
  margin: 0 0 22px;
  color: var(--text-strong);
  font-size: 1.42rem;
  font-weight: 650;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-error {
  margin: -4px 0 18px;
  border: 1px solid rgba(255, 118, 118, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffd6d6;
  background: rgba(160, 35, 35, 0.18);
  font-size: 0.86rem;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 400;
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-form input::placeholder {
  color: rgba(247, 240, 227, 0.42);
  font-weight: 400;
}

[data-theme="light"] .auth-form input::placeholder {
  color: rgba(33, 22, 12, 0.42);
}

.auth-form input:focus {
  border-color: rgba(242, 201, 109, 0.72);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(184, 135, 11, 0.14);
}

.auth-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  font-weight: 650;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.subtle-link {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 400;
}

.subtle-link:hover {
  color: var(--gold-soft);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
  transition: grid-template-columns 220ms ease;
}

.dashboard-layout.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  align-self: start;
  min-height: calc(100vh - 36px);
  border-radius: 28px;
  padding: 18px;
  transition: padding 220ms ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.brand-full {
  display: block;
}

.brand-full,
.brand-icon {
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.brand-full:hover,
.brand-icon:hover {
  transform: none;
  box-shadow: none;
}

.brand-icon {
  display: none;
}

.sidebar-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.sidebar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(184, 135, 11, 0.2);
}

.sidebar-toggle span {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease;
}

.sidebar-toggle span:first-child {
  transform: translateY(-4px);
}

.sidebar-toggle span:last-child {
  transform: translateY(4px);
}

.sidebar nav {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 18px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sidebar a em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  color: var(--gold-soft);
  background: rgba(184, 135, 11, 0.12);
  font-size: 0.92rem;
  font-weight: 650;
}

.sidebar a.active,
.sidebar a:hover {
  color: var(--text-strong);
  border-color: var(--line);
  background: var(--glass-strong);
  box-shadow: 0 0 28px rgba(184, 135, 11, 0.12);
}

.sidebar-footer {
  align-self: end;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.sidebar-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  text-align: left;
}

.sidebar-theme em {
  font-style: normal;
}

.theme-symbol {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
}

.sidebar-user-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #1b0d00;
  background: linear-gradient(135deg, #ffe7a3, var(--gold));
  font-size: 0.9rem;
  font-weight: 700;
}

.sidebar-user {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-user strong {
  overflow: hidden;
  color: var(--text-strong);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  color: var(--muted);
}

.sidebar-actions-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.sidebar-logout {
  margin: 0;
}

.sidebar-logout button,
.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-logout button {
  position: relative;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sidebar-logout button:hover {
  color: var(--gold-soft);
  border-color: rgba(242, 201, 109, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(184, 135, 11, 0.2);
}

.sidebar-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-collapsed .sidebar {
  padding: 18px 14px;
}

.sidebar-collapsed .sidebar-brand {
  justify-items: center;
}

.dashboard-layout:not(.sidebar-collapsed) .brand-icon {
  display: none;
}

.dashboard-layout:not(.sidebar-collapsed) .brand-full {
  display: block;
}

.sidebar-collapsed .brand-full,
.sidebar-collapsed .sidebar a em,
.sidebar-collapsed .sidebar-theme em,
.sidebar-collapsed .sidebar-user,
.sidebar-collapsed .sidebar-logout {
  display: none;
}

.sidebar-collapsed .brand-icon {
  display: block;
}

.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

.sidebar-collapsed .sidebar-theme {
  justify-content: center;
}

.sidebar-collapsed .sidebar-user-row,
.sidebar-collapsed .sidebar-actions-row {
  grid-template-columns: 1fr;
  justify-content: center;
}

.sidebar-collapsed .sidebar-toggle {
  width: 42px;
}

.sidebar-collapsed .sidebar-toggle span:first-child {
  transform: translateY(0) rotate(42deg);
}

.sidebar-collapsed .sidebar-toggle span:last-child {
  transform: translateY(0) rotate(-42deg);
}

.sidebar-collapsed .sidebar nav {
  justify-items: center;
}

.sidebar-collapsed .sidebar a {
  justify-content: center;
  width: 50px;
  padding: 0;
}

.dashboard-main {
  min-width: 0;
  padding: 8px 4px;
}

.dashboard-topbar,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-topbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-topbar h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 650;
  line-height: 1.1;
}

.topbar-actions {
  flex-wrap: wrap;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-switch span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.theme-switch strong {
  min-width: 44px;
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.theme-switch .sun {
  color: #1b0d00;
  background: linear-gradient(135deg, #ffe7a3, var(--gold));
}

.theme-switch .moon {
  color: var(--muted);
}

[data-theme="dark"] .theme-switch strong::before {
  content: "Escuro";
}

[data-theme="dark"] .theme-switch strong {
  font-size: 0;
}

[data-theme="dark"] .theme-switch strong::before {
  font-size: 0.88rem;
}

[data-theme="dark"] .theme-switch .sun {
  color: var(--muted);
  background: transparent;
}

[data-theme="dark"] .theme-switch .moon {
  color: #1b0d00;
  background: linear-gradient(135deg, #ffe7a3, var(--gold));
}

.logout-form {
  display: inline-flex;
  margin: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-row article {
  display: grid;
  gap: 7px;
  min-height: 118px;
  border-radius: var(--radius);
  padding: 20px;
}

.metric-row span,
.metric-row small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 450;
}

.metric-row strong {
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 650;
  line-height: 1;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-start {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
}

.mobile-preview,
.section-manager {
  border-radius: var(--radius);
}

.mobile-preview {
  display: grid;
  place-items: center;
  padding: 20px;
}

.preview-screen {
  width: min(310px, 100%);
  min-height: 590px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)),
    #f5f1e9;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.25);
}

.preview-hero {
  min-height: 230px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.5)),
    linear-gradient(135deg, #cf9a14, #1b0d00);
}

.preview-section {
  margin-top: 10px;
  border: 1px solid rgba(27, 13, 0, 0.08);
  border-radius: 22px;
  padding: 16px;
  color: #1b0d00;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.preview-section p {
  margin-bottom: 0;
  color: rgba(27, 13, 0, 0.58);
  font-size: 0.9rem;
  line-height: 1.45;
}

.preview-section.compact {
  display: grid;
  gap: 12px;
}

.preview-section button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #1b0d00;
  background: var(--gold);
  font-weight: 650;
}

.section-manager {
  padding: 20px;
}

.manager-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.manager-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.3rem;
  font-weight: 650;
}

.section-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.section-item:hover {
  border-color: rgba(242, 201, 109, 0.34);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 0 24px rgba(184, 135, 11, 0.1);
}

.section-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-item div {
  display: flex;
  gap: 6px;
}

.section-item button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
}

.mini-action {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 650;
}

.section-item button:hover {
  color: var(--gold-soft);
  border-color: rgba(242, 201, 109, 0.4);
}

.mini-action:hover {
  color: var(--gold-soft);
  border-color: rgba(242, 201, 109, 0.4);
}

.drag-handle {
  color: var(--gold-soft);
  font-weight: 650;
}

.empty-state {
  min-height: 210px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.6;
}

.notice-card {
  margin-bottom: 16px;
  border: 1px solid rgba(242, 201, 109, 0.32);
  border-radius: 16px;
  padding: 13px 16px;
  color: var(--gold-soft);
  background: rgba(184, 135, 11, 0.12);
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 12px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text);
  font-size: 0.92rem;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td strong {
  color: var(--text-strong);
  font-weight: 600;
}

.data-table td small {
  margin-top: 4px;
  color: var(--muted);
}

.data-table code {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold-soft);
  background: rgba(184, 135, 11, 0.09);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.8rem;
}

.table-actions {
  text-align: right;
}

.table-actions a {
  color: var(--gold-soft);
  font-weight: 600;
}

.form-panel {
  width: 100%;
}

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

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

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
}

.admin-form select option {
  color: #1b0d00;
  background: #f7f0e3;
}

[data-theme="dark"] .admin-form select option {
  color: #f7f0e3;
  background: #2a1708;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: rgba(242, 201, 109, 0.72);
  box-shadow: 0 0 0 4px rgba(184, 135, 11, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 9, 3, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.not-found {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.not-found img {
  width: min(240px, 80vw);
}

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

  .sidebar {
    position: static;
    min-height: auto;
  }

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

  .sidebar-user {
    display: none;
  }

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

@media (max-width: 720px) {
  .dashboard-layout {
    padding: 12px;
  }

  .dashboard-topbar,
  .topbar-actions,
  .welcome-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

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

  .section-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .section-item div {
    grid-column: 2;
  }

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