:root {
  --bg: #f8f8fa;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #09090b;
  --muted: #5f6472;
  --line: rgba(10, 15, 31, 0.13);
  --primary: #ed0036;
  --primary-2: #08090d;
  --navy: #0a1020;
  --accent: #b8002b;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(10, 16, 32, 0.15);
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #05070d;
  --surface: rgba(13, 18, 33, 0.78);
  --surface-strong: #0b1020;
  --text: #fff7f9;
  --muted: #aab0bd;
  --line: rgba(238, 244, 255, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(237, 0, 54, 0.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(10, 16, 32, 0.16), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.svg-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .35s ease, visibility .35s ease;
}
.loading-screen.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  width: min(70vw, 300px);
  height: auto;
  animation: pulse 1.2s infinite ease-in-out;
  filter: drop-shadow(0 18px 30px rgba(237, 0, 54, .18));
}
.loader-mark, .brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(237, 0, 54, .28);
}
.loader-mark { animation: pulse 1.2s infinite ease-in-out; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-logo {
  width: clamp(118px, 14vw, 178px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 16px rgba(237, 0, 54, .12));
}
.sidebar .brand-logo { width: 174px; height: 58px; }
.footer .brand-logo { width: 164px; height: 58px; }
.install-logo { width: min(100%, 260px); height: auto; margin-bottom: 14px; }
.site-nav { display: flex; gap: 22px; color: var(--muted); font-weight: 700; }
.site-nav a:hover { color: var(--primary); }
.header-actions, .hero-actions, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.btn, .icon-btn {
  border: 1px solid var(--line);
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn { padding: 10px 16px; font-weight: 800; background: var(--surface-strong); color: var(--text); }
.btn:hover, .icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #8f001f 58%, var(--navy)); border-color: transparent; color: #fff; }
.btn-ghost, .btn-glass { background: var(--surface); backdrop-filter: blur(16px); }
.btn-large { min-height: 50px; padding-inline: 22px; }
.btn-full { width: 100%; }
.btn-small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.icon-btn { width: 42px; background: var(--surface); color: var(--text); }
.icon-btn .svg-icon { width: 21px; height: 21px; }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 80px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(237, 0, 54, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 16, 32, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  animation: drift 18s linear infinite;
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow { color: var(--primary); font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: .14em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(42px, 6vw, 82px); line-height: .98; margin: 0; max-width: 900px; letter-spacing: 0; }
.hero p { color: var(--muted); font-size: clamp(17px, 2vw, 22px); max-width: 680px; }
.hero-visual { min-height: 520px; display: grid; place-items: center; }
.ops-panel, .visual-card, .panel, .auth-card, .service-card, .stat-card, .team-card, .testimonial-card, .legal-card, .metric-card, .step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.ops-panel { width: min(100%, 520px); padding: 22px; transform: rotate(-2deg); }
.ops-top { height: 58px; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #9f001f, var(--navy)); margin-bottom: 18px; }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ops-grid span { height: 78px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, var(--surface-strong)); }
.ops-chart { height: 160px; display: flex; align-items: end; gap: 12px; margin-top: 18px; }
.ops-chart i, .bar-chart i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--primary), #750019 58%, var(--navy)); }
.visual-card { position: absolute; padding: 18px; width: 180px; }
.visual-card span, .metric-card span, .stat-card p { color: var(--muted); font-size: 13px; }
.visual-card strong { display: block; font-size: 22px; }
.revenue-card { left: 0; top: 70px; }
.claim-card { right: 0; bottom: 72px; }

.section { padding: 84px clamp(18px, 5vw, 80px); }
.section-band { background: color-mix(in srgb, var(--surface-strong) 58%, transparent); border-block: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: 0; }
.stats, .service-grid, .steps, .why-grid, .testimonial-grid, .metric-grid, .cms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card, .service-card, .step-card, .testimonial-card, .metric-card { padding: 22px; }
.stat-card strong { font-size: clamp(28px, 4vw, 44px); }
.service-icon, .step-card span {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-strong)); color: var(--primary); font-weight: 900;
}
.service-icon .svg-icon { width: 22px; height: 22px; }
.service-card h3, .step-card h3 { margin-bottom: 6px; }
.service-card p, .testimonial-card p, .team-card small, .legal-content, .muted { color: var(--muted); }
.why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.why-item { padding: 18px; border-bottom: 1px solid var(--line); font-weight: 850; display: flex; align-items: center; gap: 10px; }
.why-item span { color: var(--primary); }
.why-item .svg-icon { width: 18px; height: 18px; }

.slider-shell { overflow: hidden; }
.team-track { display: flex; gap: 18px; width: max-content; animation: slide-left 28s linear infinite; }
.team-track:hover { animation-play-state: paused; }
.team-card { width: 280px; padding: 22px; }
.team-photo {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; font-weight: 900;
  overflow: hidden;
}
.team-photo .avatar-img, .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
}
.avatar-icon .svg-icon {
  width: 26px;
  height: 26px;
}
.trusted { overflow: hidden; }
.logo-track { display: flex; gap: 16px; animation: slide-left 24s linear infinite; width: max-content; }
.logo-track span { padding: 14px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 900; color: var(--muted); }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.faq-item summary { cursor: pointer; font-weight: 900; }
.contact-news { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-panel, .newsletter { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

.footer { display: flex; justify-content: space-between; gap: 28px; padding: 44px clamp(18px, 5vw, 80px); border-top: 1px solid var(--line); }
.footer p { max-width: 460px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; color: var(--muted); }
.whatsapp-float, .back-to-top {
  position: fixed; z-index: 60; border-radius: 8px; box-shadow: var(--shadow); border: 0; cursor: pointer;
}
.whatsapp-float { bottom: 22px; padding: 13px 16px; background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; font-weight: 900; }
.whatsapp-float.right { right: 22px; } .whatsapp-float.left { left: 22px; }
.back-to-top { right: 22px; bottom: 76px; width: 42px; height: 42px; opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); }
.back-to-top.show { opacity: 1; pointer-events: auto; }

.auth-page, .install-body { min-height: 80vh; display: grid; place-items: center; padding: 54px 18px; }
.auth-card, .install-card { width: min(100%, 520px); padding: 30px; }
.auth-card.wide { width: min(100%, 980px); }
.install-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-stack { display: grid; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); color: var(--text);
  padding: 12px 13px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(237, 0, 54, .13); }
.checks { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 16px 0; }
.checks label, .check-line { display: flex; align-items: center; gap: 8px; }
.checks input, .check-line input { width: auto; }
.alert { padding: 13px 15px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--line); background: var(--surface-strong); }
.alert-success { border-color: rgba(237,0,54,.34); color: var(--primary); }
.alert-error { border-color: rgba(220,38,38,.38); color: var(--danger); }
.alert-warning { border-color: rgba(245,158,11,.42); color: #b45309; }
.credentials { padding: 12px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, var(--surface-strong)); font-weight: 900; }

.app-shell {
  --sidebar-width: 286px;
  --sidebar-collapsed: 84px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns .28s ease;
}
.app-shell.sidebar-collapsed { grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  backdrop-filter: blur(20px);
  overflow: hidden auto;
  transition: width .28s ease, transform .28s ease, padding .28s ease, box-shadow .28s ease;
}
.sidebar-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sidebar-head .brand-logo { width: 166px; height: 52px; transition: opacity .2s ease, width .28s ease; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { min-height: 44px; padding: 11px 12px; border-radius: 8px; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 10px; white-space: nowrap; transition: background .18s ease, color .18s ease, transform .18s ease; }
.sidebar nav a .svg-icon { width: 19px; height: 19px; }
.sidebar nav a:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.app-shell.sidebar-collapsed .sidebar { padding-inline: 14px; }
.app-shell.sidebar-collapsed .sidebar-head { justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-head .brand { display: none; }
.app-shell.sidebar-collapsed .sidebar nav a { justify-content: center; padding-inline: 10px; }
.app-shell.sidebar-collapsed .sidebar nav a span { opacity: 0; width: 0; overflow: hidden; }
.app-main { padding: 26px; min-width: 0; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.app-topbar h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.topbar-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-menu { display: inline-flex; }
.sidebar-toggle { flex: 0 0 auto; }
.sidebar-overlay { display: none; }
.profile-menu { position: relative; }
.profile-menu summary {
  min-height: 42px;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 850;
}
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary .avatar-img, .profile-menu summary .avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--navy));
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: 260px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.profile-dropdown small { color: var(--muted); word-break: break-word; }
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}
.profile-dropdown a:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface-strong));
}
.profile-preview .avatar-img, .profile-preview .avatar-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--navy));
}
.profile-preview span {
  display: block;
  color: var(--muted);
}
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-card strong { display: block; font-size: 30px; margin-top: 10px; }
.panel { padding: 22px; margin-bottom: 18px; overflow: auto; }
.bar-chart { height: 230px; display: flex; align-items: end; gap: 14px; padding-top: 30px; }
.empty-state { width: 100%; min-height: 120px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.account-permissions { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.table-panel table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.table-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}
.table-thumb.wide { width: 86px; }
.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.detail-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}
.detail-art.wide { aspect-ratio: 16 / 9; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.status-submitted, .status-pending-review, .status-under-review, .status-request-changes, .status-request-more-information {
  color: #b45309;
  border-color: rgba(245, 158, 11, .32);
  background: rgba(245, 158, 11, .09);
}
.status-approved, .status-distributed, .status-live, .status-active-claim {
  color: #166534;
  border-color: rgba(22, 101, 52, .25);
  background: rgba(22, 101, 52, .09);
}
.status-rejected {
  color: var(--primary);
  border-color: rgba(237, 0, 54, .25);
  background: rgba(237, 0, 54, .08);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--muted);
}
.timeline-item span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.timeline-item.done {
  color: var(--text);
  border-color: rgba(237, 0, 54, .28);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}
.timeline-item.done span {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  border-color: transparent;
}
.history-list {
  display: grid;
  gap: 8px;
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.approval-form { display: grid; gap: 10px; min-width: 320px; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-grid label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.permission-grid input { width: auto; }
.list-row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cms-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
.video-preview { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; min-height: 82px; }
.video-preview img { width: 120px; border-radius: 8px; }
.store-groups {
  display: grid;
  gap: 16px;
}
.store-groups h3 {
  margin: 0;
}
.store-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface-strong));
}
.store-group legend {
  padding: 0 8px;
  font-weight: 900;
  color: var(--text);
}
.select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
}
.store-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}
.store-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.store-options input, .select-all input { width: auto; }
.legal-page { min-height: 70vh; }
.legal-card { max-width: 900px; margin: auto; padding: 34px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes drift { to { background-position: 54px 54px; } }
@keyframes slide-left { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .service-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 420px; }
}

@media (max-width: 760px) {
  .site-nav {
    display: none; position: absolute; top: 72px; left: 12px; right: 12px; padding: 14px;
    background: var(--surface-strong); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-wrap: wrap; }
  .visual-card { position: static; width: 100%; }
  .hero-visual { display: grid; gap: 12px; min-height: auto; }
  .ops-panel { transform: none; }
  .stats, .service-grid, .steps, .why-grid, .testimonial-grid, .metric-grid, .cms-grid, .contact-news, .form-grid { grid-template-columns: 1fr; }
  .store-options { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer { display: grid; }
  .app-shell, .app-shell.sidebar-collapsed { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(86vw, 318px);
    height: 100dvh;
    transform: translateX(-105%);
    box-shadow: var(--shadow);
    background: var(--surface-strong);
  }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .app-shell.sidebar-collapsed .sidebar-head .brand { display: inline-flex; }
  .app-shell.sidebar-collapsed .sidebar nav a { justify-content: flex-start; padding-inline: 12px; }
  .app-shell.sidebar-collapsed .sidebar nav a span { opacity: 1; width: auto; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(5, 7, 13, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }
  .app-shell.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .app-main { padding: 18px; }
  .app-topbar { align-items: flex-start; gap: 12px; }
  .topbar-title { align-items: flex-start; }
  .inline-form { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .site-header { padding-inline: 12px; }
  .brand span:last-child { display: none; }
  .header-actions .btn-primary { display: none; }
  .section { padding-block: 58px; }
  .auth-card, .install-card, .panel { padding: 18px; }
  .profile-menu summary > span { display: none; }
}
