/*
 * Stacksona Dashboard visual theme
 *
 * Styling-only layer aligned with the current Stacksona landing and docs design:
 * flat editorial surfaces, compact square controls, neutral borders, system UI type,
 * Stacksona purple accents, and matching light/dark tokens.
 *
 * This file intentionally does not change content, DOM structure, or behavior.
 */

:root {
  --site-purple: #5d56c8;
  --site-purple-strong: #4740b7;
  --site-purple-soft: #f0efff;
  --site-ink: #1e1e1e;
  --site-text: #3c434a;
  --site-muted: #646970;
  --site-border: #dcdcde;
  --site-border-strong: #c3c4c7;
  --site-canvas: #ffffff;
  --site-soft: #f6f7f7;
  --site-warm: #f7f7f2;
  --site-surface: #ffffff;
  --site-radius: 3px;

  --primary: var(--site-purple);
  --primary-glow: rgba(93, 86, 200, 0.18);
  --bg: var(--site-canvas);
  --surface: var(--site-surface);
  --surface-soft: var(--site-soft);
  --border: var(--site-border);
  --text-dark: var(--site-ink);
  --text-muted: var(--site-muted);
  --shadow: none;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --headline: var(--sans);
  color-scheme: light;
}

html[data-theme="dark"] {
  --site-purple: #a9a1ff;
  --site-purple-strong: #c1bcff;
  --site-purple-soft: #292542;
  --site-ink: #f0f0f1;
  --site-text: #dcdcde;
  --site-muted: #a7aaad;
  --site-border: #3c434a;
  --site-border-strong: #50575e;
  --site-canvas: #101214;
  --site-soft: #181a1d;
  --site-warm: #17191b;
  --site-surface: #1d2327;

  --primary: var(--site-purple);
  --primary-glow: rgba(169, 161, 255, 0.16);
  --bg: var(--site-canvas);
  --surface: var(--site-surface);
  --surface-soft: var(--site-soft);
  --border: var(--site-border);
  --text-dark: var(--site-ink);
  --text-muted: var(--site-muted);
  --shadow: none;
  color-scheme: dark;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

body {
  zoom: 1;
  background: var(--site-canvas);
  color: var(--site-ink);
}

h1,
h2,
h3,
h4,
.company-name {
  font-family: var(--sans);
  letter-spacing: -0.035em;
}

.container {
  max-width: 88rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--site-canvas) 97%, transparent);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 62px;
  padding: 0.7rem 0;
}

.brand {
  gap: 0.65rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.company-name {
  color: var(--site-ink);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.company-tag {
  margin-top: 0.14rem;
  color: var(--site-muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nav-links {
  gap: 0.55rem;
}

.nav-links a,
.nav-links button,
.signout-btn,
.sidebar-toggle {
  border-radius: 2px;
  box-shadow: none;
}

.nav-links a,
.nav-links button {
  color: var(--site-muted);
}

.nav-links a:hover,
.nav-links button:hover {
  background: var(--site-soft);
  color: var(--site-ink);
  box-shadow: none;
}

#theme-toggle,
.sidebar-toggle {
  border: 1px solid var(--site-border-strong);
  background: var(--site-canvas);
  color: var(--site-ink);
}

#theme-toggle:hover,
.sidebar-toggle:hover {
  border-color: var(--site-purple);
  color: var(--site-purple);
}

.signout-btn {
  border: 1px solid var(--site-border-strong) !important;
  background: var(--site-canvas);
  color: var(--site-text);
  font-weight: 600;
}

.signout-btn:hover {
  border-color: var(--site-purple) !important;
  background: var(--site-soft);
  color: var(--site-purple);
  box-shadow: none;
}

/* Controls */
.btn-primary,
.btn-secondary,
.btn-danger {
  min-height: 0;
  padding: 0.8rem 1.25rem;
  border-radius: 2px;
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 600;
  transform: none;
}

.btn-primary {
  border-color: #5d56c8;
  background: #5d56c8;
  color: #fff;
}

.btn-primary:hover {
  border-color: #4740b7;
  background: #4740b7;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  border-color: var(--site-border-strong);
  background: var(--site-canvas);
  color: var(--site-text);
}

.btn-secondary:hover {
  border-color: #8c8f94;
  background: var(--site-soft);
  color: var(--site-purple);
  box-shadow: none;
  transform: none;
}

.btn-danger {
  border-color: color-mix(in srgb, var(--red) 35%, var(--site-border));
  background: var(--site-canvas);
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--site-soft);
  box-shadow: none;
  transform: none;
}

[data-open-gate] {
  border-color: #5d56c8 !important;
  background: #5d56c8 !important;
  color: #fff !important;
  box-shadow: none !important;
}

[data-open-gate]:hover {
  border-color: #4740b7 !important;
  background: #4740b7 !important;
  box-shadow: none !important;
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--site-purple);
  outline-offset: 2px;
}

/* Dashboard shell */
.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.sidebar {
  top: 5.5rem;
  height: calc(100vh - 6.5rem);
  gap: 0.9rem;
  padding: 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-canvas);
  box-shadow: none;
}

.sidebar-title {
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-soft);
}

.side-nav {
  gap: 0.25rem;
}

.side-nav button {
  min-height: 2.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--site-muted);
  font-size: 0.84rem;
  font-weight: 500;
  transform: none;
  box-shadow: none;
}

.side-nav button:hover {
  border-color: var(--site-border);
  background: var(--site-soft);
  color: var(--site-ink);
  transform: none;
}

.side-nav button.active {
  border-color: var(--site-border);
  border-left-color: var(--site-purple);
  background: var(--site-soft);
  color: var(--site-ink);
  box-shadow: none;
}

.profile {
  padding: 0.7rem;
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-canvas);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--site-purple-soft);
  color: var(--site-purple-strong);
}

.main {
  width: 100%;
  max-width: 76rem;
}

/* Editorial page surfaces */
.hero-panel {
  margin: 0 0 1rem;
  padding: 0 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-panel::after {
  display: none;
}

.hero-panel h1 {
  max-width: 18ch;
  margin: 0.65rem 0 0.8rem;
  color: var(--site-ink);
  font-size: clamp(2.35rem, 4.6vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.card,
.info-box,
.install-card,
.installation-data-card,
.service-plan-strip,
.service-usage-metric,
.stat-tile,
.selected-plan-card,
.empty-state,
.overage-pricing,
.billing-lifecycle-banner {
  border-color: var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: none;
}

.card {
  overflow: hidden;
}

.card-head {
  padding: 1rem 1.05rem 0.9rem;
  border-bottom: 1px solid var(--site-border);
  align-items: center;
}

.card-head h2 {
  color: var(--site-ink);
  font-size: 1.18rem;
  font-weight: 650;
}

.card-head p {
  color: var(--site-muted);
  font-size: 0.875rem;
}

.card-body {
  padding: 1.05rem;
}

.grid-3,
.grid-2,
.details-grid,
.overview-layout,
.overview-main-grid,
.installation-cards {
  gap: 0.8rem;
}

.overview-main-grid {
  max-width: none;
}

.info-box,
.installation-data-card,
.service-usage-metric {
  padding: 1rem;
}

.stat {
  padding: 1rem;
}

.stat-icon,
.install-icon,
.service-icon {
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-purple-soft);
  color: var(--site-purple-strong);
  box-shadow: none;
}

.stat strong {
  font-size: 1.65rem;
}

.install-card {
  padding: 0.8rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.install-card:hover {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: none;
  transform: none;
}

.install-card.selected {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: inset 3px 0 0 var(--site-purple);
}

.installation-data-card {
  background: var(--site-surface);
}

.service-plan-strip {
  background: var(--site-soft);
}

.row {
  border-bottom-color: var(--site-border);
}

.row span,
.install-card span,
.installation-data-head p,
.service-plan-strip span,
.service-foot-label,
.service-usage-top span {
  color: var(--site-muted);
}

.feature-badge,
.tag,
.status-pill,
.plan-chips span,
.plan-feature,
.plan-metrics span,
.badge {
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-soft);
  color: var(--site-muted);
  box-shadow: none;
}

.feature-badge .icon {
  border-color: var(--site-border);
  border-radius: 2px;
  background: var(--site-canvas);
  color: var(--site-muted);
}

.badge {
  padding: 0.3125rem 0.5rem;
  color: var(--site-purple);
}

.badge .dot {
  display: none;
}

.small-title {
  color: var(--site-purple);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

/* Usage */
.bar {
  height: 0.5rem;
  border-radius: 1px;
  background: var(--site-soft);
}

.bar i {
  border-radius: 0;
  background: #5d56c8;
}

.notice {
  border: 1px solid var(--site-border);
  border-left: 3px solid var(--site-purple);
  border-radius: 0;
  background: var(--site-soft);
  color: var(--site-text);
}

.notice.error,
.error {
  border-left-color: var(--red);
}

/* Plans */
.billing-cycle-toggle {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--site-border-strong);
  border-radius: 2px;
  background: var(--site-canvas);
  box-shadow: none;
}

.billing-cycle-toggle .btn-secondary {
  border-radius: 1px;
  padding: 0.62rem 0.9rem;
}

.billing-cycle-toggle .btn-secondary.active {
  border: 1px solid #5d56c8;
  border-radius: 1px;
  background: #5d56c8;
  color: #fff;
  box-shadow: none;
}

.plan-card {
  padding: 1rem;
  gap: 0.7rem;
  border-color: var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: none;
}

.plan-card:hover {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: none;
  transform: none;
}

.plan-card.recommended {
  border-color: var(--site-purple);
  box-shadow: inset 3px 0 0 #5d56c8;
}

.plan-card h3 {
  font-size: 1.55rem;
}

.price {
  margin-top: 0.7rem;
  font-size: 2.15rem;
}

.plan-section {
  padding: 0.8rem;
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-soft);
}

.plan-section h4 {
  color: var(--site-muted);
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

.plan-chips span,
.plan-feature,
.plan-metrics span {
  background: var(--site-canvas);
}

.plan-nav-btn {
  border: 1px solid var(--site-border-strong);
  border-radius: 2px;
  background: var(--site-canvas);
  color: var(--site-ink);
  box-shadow: none;
}

.plan-nav-btn:hover {
  border-color: var(--site-purple);
  background: var(--site-soft);
  color: var(--site-purple);
  box-shadow: none;
  transform: none;
}

.overage-pricing {
  background: var(--site-soft);
}

/* Tables */
.table-wrap {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: none;
}

th,
td {
  padding: 0.8125rem 0.875rem;
  border-bottom: 1px solid var(--site-border);
}

th {
  background: var(--site-soft);
  color: var(--site-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

td {
  color: var(--site-muted);
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--site-soft) 55%, transparent);
}

tbody tr:hover {
  background: var(--site-soft);
}

/* Forms */
.field label,
.switch-row > label:first-child {
  color: var(--site-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--site-border-strong);
  border-radius: 2px;
  background: var(--site-canvas);
  color: var(--site-ink);
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--site-purple);
  box-shadow: 0 0 0 1px var(--site-purple);
}

.toggle-slider,
.toggle-switch .toggle-slider {
  box-shadow: none;
}

/* Modals */
.modal-backdrop,
#createModal {
  background: rgba(16, 18, 20, 0.7);
  backdrop-filter: blur(4px);
}

.modal,
#createModal .modal {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.modal-head,
#createModal .modal-head {
  border-bottom: 1px solid var(--site-border);
}

.modal-head h2,
#createModal .modal-head h2 {
  color: var(--site-ink);
  font-weight: 650;
}

.modal-head p,
#createModal .modal-head > div::after {
  color: var(--site-muted);
}

.modal-actions,
#createModal .modal-actions {
  border-top: 1px solid var(--site-border);
  background: var(--site-soft);
}

#createModal .modal-head::before {
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-purple-soft);
  color: var(--site-purple-strong);
  box-shadow: none;
}

#createModal .modal-head [data-close-modal] {
  border-radius: 2px;
}

#createModal input,
#createModal select {
  border: 1px solid var(--site-border-strong);
  border-radius: 2px;
  background: var(--site-canvas);
  color: var(--site-ink);
}

#createModal input:focus,
#createModal select:focus {
  border-color: var(--site-purple);
  background: var(--site-canvas);
  box-shadow: 0 0 0 1px var(--site-purple);
}

#createModal .field:nth-child(4) {
  border: 1px solid var(--site-border);
  border-radius: 2px;
  background: var(--site-soft);
}

#createModal:has(#startWithTrial:checked) .field:nth-child(4) {
  border-color: var(--site-purple);
  box-shadow: inset 3px 0 0 #5d56c8;
}

/* Lifecycle and notifications */
.billing-lifecycle-banner {
  padding: 0.9rem 1rem;
}

.billing-lifecycle-banner.payment-due,
.billing-lifecycle-banner.trial-active {
  background: var(--site-surface);
}

.billing-lifecycle-banner.payment-due {
  border-left: 3px solid var(--amber);
}

.billing-lifecycle-banner.trial-active {
  border-left: 3px solid #5d56c8;
}

.toast {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* Login / account entry page */
.home-page {
  min-height: 100vh;
  overflow: auto;
  background: var(--site-canvas);
  color: var(--site-ink);
  zoom: 1;
}

.home-page::before,
.home-page::after,
.ambient-canvas,
.ambient-grid {
  display: none;
}

.home-login-wrap {
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) 2rem;
  background: var(--site-canvas);
}

.home-auth-card {
  width: min(100%, 520px);
  gap: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.home-brand {
  color: var(--site-ink);
}

.home-brand-logo {
  width: 38px;
  height: 38px;
  filter: none;
}

.home-company-name {
  color: var(--site-ink);
  font-size: 1.45rem;
  -webkit-text-fill-color: currentColor;
}

.home-eyebrow {
  color: var(--site-purple);
}

.home-copy h1 {
  color: var(--site-ink);
  font-size: clamp(2.2rem, 7vw, 3.65rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.home-copy .lead {
  color: var(--site-muted);
}

.home-primary {
  min-height: 0;
  border: 1px solid #5d56c8;
  border-radius: 2px;
  background: #5d56c8;
  color: #fff;
  box-shadow: none;
}

.home-primary:hover {
  border-color: #4740b7;
  background: #4740b7;
  box-shadow: none;
}

.signin-link,
.signin-link span {
  color: var(--site-muted);
}

.signin-link:hover span {
  color: var(--site-purple);
}

/* Dark mode: neutral WordPress-like surfaces shared with docs. */
html[data-theme="dark"] .site-header {
  border-bottom-color: var(--site-border);
  background: color-mix(in srgb, var(--site-canvas) 97%, transparent);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .profile,
html[data-theme="dark"] .install-card,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .plan-chips span,
html[data-theme="dark"] .plan-metrics span,
html[data-theme="dark"] th,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .installation-data-card,
html[data-theme="dark"] .service-usage-metric {
  border-color: var(--site-border);
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: none;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .login-copy {
  background: transparent;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .billing-cycle-toggle,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: var(--site-border);
  background: var(--site-canvas);
  color: var(--site-ink);
}

html[data-theme="dark"] .side-nav button.active,
html[data-theme="dark"] .side-nav button:hover,
html[data-theme="dark"] .service-plan-strip,
html[data-theme="dark"] .plan-section,
html[data-theme="dark"] .overage-pricing,
html[data-theme="dark"] tbody tr:hover {
  border-color: var(--site-border);
  background: var(--site-soft);
}

html[data-theme="dark"] .install-card.selected,
html[data-theme="dark"] .plan-card.recommended {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: inset 3px 0 0 #5d56c8;
}

html[data-theme="dark"] .install-card:hover,
html[data-theme="dark"] .plan-card:hover {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: none;
}

html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .feature-badge,
html[data-theme="dark"] .feature-badge .icon,
html[data-theme="dark"] .plan-chips span,
html[data-theme="dark"] .plan-metrics span,
html[data-theme="dark"] .plan-feature {
  border-color: var(--site-border);
  background: var(--site-soft);
  color: var(--site-muted);
}

html[data-theme="dark"] .table-wrap {
  border-color: var(--site-border);
  background: var(--site-surface);
}

html[data-theme="dark"] th {
  background: var(--site-soft);
}

html[data-theme="dark"] tbody tr:hover {
  background: var(--site-soft);
}

html[data-theme="dark"] .notice:not(.error) {
  border-color: var(--site-border);
  border-left-color: var(--site-purple);
  background: var(--site-soft);
  color: var(--site-text);
}

html[data-theme="dark"] .billing-lifecycle-banner.payment-due,
html[data-theme="dark"] .billing-lifecycle-banner.trial-active {
  background: var(--site-surface);
}

html[data-theme="dark"] .billing-lifecycle-banner.payment-due {
  border-color: var(--site-border);
  border-left-color: var(--amber);
}

html[data-theme="dark"] .billing-lifecycle-banner.trial-active {
  border-color: var(--site-border);
  border-left-color: var(--site-purple);
}

html[data-theme="dark"] .billing-lifecycle-banner.payment-due strong {
  color: #e6b565;
}

html[data-theme="dark"] .billing-lifecycle-banner.trial-active strong {
  color: var(--site-purple-strong);
}

html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] #createModal {
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .modal-backdrop .modal,
html[data-theme="dark"] #createModal .modal {
  border-color: var(--site-border);
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .modal-backdrop .modal-head,
html[data-theme="dark"] .modal-backdrop .modal-actions,
html[data-theme="dark"] #createModal .modal-head,
html[data-theme="dark"] #createModal .modal-actions {
  border-color: var(--site-border);
  background: var(--site-surface);
}

html[data-theme="dark"] .modal-backdrop .modal-actions,
html[data-theme="dark"] #createModal .modal-actions {
  background: var(--site-soft);
}

html[data-theme="dark"] .modal-backdrop .modal-head h2,
html[data-theme="dark"] .modal-backdrop .modal-body,
html[data-theme="dark"] .modal-backdrop label,
html[data-theme="dark"] .modal-backdrop strong:not(.warning strong) {
  color: var(--site-ink);
}

html[data-theme="dark"] .modal-backdrop .modal-head p,
html[data-theme="dark"] .modal-backdrop .muted {
  color: var(--site-muted);
}

html[data-theme="dark"] .modal-backdrop input,
html[data-theme="dark"] .modal-backdrop select,
html[data-theme="dark"] .modal-backdrop textarea,
html[data-theme="dark"] #createModal input,
html[data-theme="dark"] #createModal select,
html[data-theme="dark"] #createModal .field:nth-child(4) {
  border-color: var(--site-border-strong);
  background: var(--site-canvas);
  color: var(--site-ink);
}

html[data-theme="dark"] #createModal:has(#startWithTrial:checked) .field:nth-child(4) {
  border-color: var(--site-purple);
  background: var(--site-soft);
  box-shadow: inset 3px 0 0 #5d56c8;
}

html[data-theme="dark"] #createModal input:focus,
html[data-theme="dark"] #createModal select:focus {
  background: var(--site-canvas);
}

html[data-theme="dark"] .modal-backdrop .btn-secondary {
  border-color: var(--site-border-strong);
  background: var(--site-canvas);
  color: var(--site-text);
}

html[data-theme="dark"] .modal-backdrop .btn-secondary:hover {
  border-color: var(--site-purple);
  background: var(--site-soft);
  color: var(--site-purple);
}

html[data-theme="dark"] .toast-stack .toast,
html[data-theme="dark"] .toast {
  border-color: var(--site-border);
  background: var(--site-surface);
  color: var(--site-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Responsive behavior remains the same, with the theme's flatter treatment. */
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-radius: var(--site-radius);
    background: var(--site-canvas);
  }

  .side-nav {
    padding: 0.25rem;
    border: 1px solid var(--site-border);
    border-radius: 2px;
    background: var(--site-soft);
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar.open {
    margin-top: 0.5rem;
  }

  .mobile-menu-footer {
    border-top-color: var(--site-border);
  }

  .home-login-wrap {
    padding: 1rem;
  }

  .home-auth-card {
    padding: 1.4rem;
  }

  #createModal .modal,
  .modal {
    border-radius: var(--site-radius);
  }
}
