:root {
  color-scheme: light;

  --sd-green-900: #0b2f23;
  --sd-green-800: #0f3f2e;
  --sd-green-700: #12633d;
  --sd-green-600: #16824f;
  --sd-green-500: #22a866;
  --sd-green-400: #3ddc84;
  --sd-green-100: #e8f8ee;
  --sd-green-050: #f3fbf6;

  --sd-ink: #111c17;
  --sd-text: #1f2d27;
  --sd-muted: #607269;
  --sd-soft: #eef4f0;
  --sd-page: #f6f9f6;
  --sd-surface: #ffffff;
  --sd-surface-2: #fbfdfb;
  --sd-border: #d8e5dc;
  --sd-border-strong: #bed2c5;

  --sd-blue: #2563eb;
  --sd-cyan: #0891b2;
  --sd-amber: #b7791f;
  --sd-red: #c2413a;

  --sd-radius: 8px;
  --sd-shadow-sm: 0 1px 2px rgba(10, 47, 35, 0.05), 0 8px 22px rgba(10, 47, 35, 0.06);
  --sd-shadow-md: 0 1px 2px rgba(10, 47, 35, 0.06), 0 18px 44px rgba(10, 47, 35, 0.1);
  --sd-focus: 0 0 0 3px rgba(61, 220, 132, 0.2);

  --android-green: var(--sd-green-400);
  --android-green-dark: var(--sd-green-700);
  --android-green-deep: var(--sd-green-900);
  --android-cyan: var(--sd-cyan);
  --android-ink: var(--sd-ink);
  --android-muted: var(--sd-muted);
  --android-page: var(--sd-page);
  --android-card: var(--sd-surface);
  --android-border: var(--sd-border);

  --primary-color: var(--sd-green-600) !important;
  --primary-hover: var(--sd-green-700) !important;
  --primary-light: var(--sd-green-400) !important;
  --primary-dark: var(--sd-green-800) !important;
  --success-color: var(--sd-green-600) !important;
  --info-color: var(--sd-cyan) !important;
  --warning-color: var(--sd-amber) !important;
  --danger-color: var(--sd-red) !important;

  --bg-sidebar: var(--sd-green-900) !important;
  --sidebar-bg: var(--sd-green-900) !important;
  --bg-page: var(--sd-page) !important;
  --bg: var(--sd-page) !important;
  --bg-card: var(--sd-surface) !important;
  --surface: var(--sd-surface) !important;
  --text-primary: var(--sd-ink) !important;
  --text: var(--sd-ink) !important;
  --text-secondary: var(--sd-text) !important;
  --text-muted: var(--sd-muted) !important;
  --border-color: var(--sd-border) !important;
  --border: var(--sd-border) !important;

  --radius-sm: var(--sd-radius) !important;
  --radius-md: var(--sd-radius) !important;
  --radius-lg: var(--sd-radius) !important;
  --radius: var(--sd-radius) !important;
  --shadow-sm: var(--sd-shadow-sm) !important;
  --shadow-md: var(--sd-shadow-md) !important;
  --transition: 0.16s ease !important;
}

html {
  background: var(--sd-page);
}

.sidebar .nav-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(247, 255, 249, 0.88) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.sidebar .nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.sharedroid-theme,
body.sharedroid-theme * {
  letter-spacing: 0 !important;
}

body.sharedroid-theme {
  background: var(--sd-page) !important;
  color: var(--sd-ink) !important;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sharedroid-theme a {
  color: var(--sd-green-700);
}

body.sharedroid-theme a:hover {
  color: var(--sd-green-800);
}

body.sharedroid-theme ::selection {
  background: rgba(61, 220, 132, 0.28);
}

body.sharedroid-theme .app-shell {
  display: grid !important;
  grid-template-columns: 264px minmax(0, 1fr) !important;
  min-height: 100vh !important;
  background: var(--sd-page) !important;
}

body.sharedroid-theme .sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #0b2f23 0%, #0a261d 100%) !important;
  border-right: 1px solid rgba(216, 229, 220, 0.16) !important;
  box-shadow: none !important;
  color: #edf7f0 !important;
  padding: 20px 14px !important;
}

body.sharedroid-theme .brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: #f7fff9 !important;
  font-size: 23px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  margin: 0 0 30px !important;
  padding: 2px 8px !important;
}

body.sharedroid-theme header .logo[data-sharedroid-brand="true"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: var(--sd-green-900) !important;
  font-size: 23px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.sharedroid-theme .brand-mark {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: transparent url("assets/sharedroid-icon.svg?v=4") center / contain no-repeat !important;
  color: transparent !important;
  box-shadow: 0 10px 24px rgba(10, 47, 35, 0.18) !important;
  flex: 0 0 auto !important;
}

body.sharedroid-theme .brand-mark::before {
  content: "" !important;
  display: none !important;
}

body.sharedroid-theme .brand-word {
  line-height: 1 !important;
}

body.sharedroid-theme .nav-section-label {
  color: rgba(237, 247, 240, 0.58) !important;
  font-size: 11px !important;
  font-weight: 780 !important;
  text-transform: uppercase !important;
  margin: 22px 8px 9px !important;
}

body.sharedroid-theme .nav-link {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  border-radius: 8px !important;
  color: rgba(247, 255, 249, 0.78) !important;
  margin: 0 0 4px !important;
  padding: 8px 10px !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}

body.sharedroid-theme .nav-link:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

body.sharedroid-theme .nav-link.active {
  background: rgba(61, 220, 132, 0.14) !important;
  border-color: rgba(61, 220, 132, 0.2) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--sd-green-400) !important;
}

body.sharedroid-theme .nav-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(247, 255, 249, 0.88) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.sharedroid-theme .nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.sharedroid-theme .nav-link.active .nav-icon {
  background: var(--sd-green-400) !important;
  color: var(--sd-green-900) !important;
}

body.sharedroid-theme .main {
  min-width: 0 !important;
  background: var(--sd-page) !important;
}

body.sharedroid-theme .topbar {
  min-height: 76px !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--sd-border) !important;
  box-shadow: 0 1px 0 rgba(10, 47, 35, 0.03) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px 32px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  backdrop-filter: blur(12px) !important;
}

body.sharedroid-theme .page-title h1 {
  color: var(--sd-ink) !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.15 !important;
  font-weight: 820 !important;
  margin: 0 !important;
}

body.sharedroid-theme .page-title p {
  color: var(--sd-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 5px 0 0 !important;
}

body.sharedroid-theme .topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

body.sharedroid-theme .tenant-pill {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  background: var(--sd-green-100) !important;
  color: var(--sd-green-800) !important;
  border: 1px solid #ccebd6 !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  font-size: 13px !important;
  font-weight: 780 !important;
}

body.sharedroid-theme .trial-pill {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  background: #ecfdf5 !important;
  color: var(--sd-green-800) !important;
  font-size: 13px !important;
  font-weight: 820 !important;
  white-space: nowrap !important;
}

body.sharedroid-theme .trial-pill-warning {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

body.sharedroid-theme .trial-pill-expired {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: var(--sd-red) !important;
}

body.sharedroid-theme .trial-pill-hidden {
  display: none !important;
}

body.sharedroid-theme .user-chip {
  color: var(--sd-text) !important;
}

body.sharedroid-theme .avatar {
  background: var(--sd-green-700) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

body.sharedroid-theme .content,
body.sharedroid-theme .content-grid {
  background: transparent !important;
}

body.sharedroid-theme .content {
  padding: 26px 32px 46px !important;
}

body.sharedroid-theme .grid,
body.sharedroid-theme .stats-grid,
body.sharedroid-theme .grid-2 {
  gap: 16px !important;
}

body.sharedroid-theme .hero-card,
body.sharedroid-theme .welcome-card,
body.sharedroid-theme .panel,
body.sharedroid-theme .card,
body.sharedroid-theme .stat-card,
body.sharedroid-theme .table-card,
body.sharedroid-theme .form-card,
body.sharedroid-theme .list-card,
body.sharedroid-theme .modal,
body.sharedroid-theme .modal-content,
body.sharedroid-theme .customer-card,
body.sharedroid-theme .profile-card,
body.sharedroid-theme .device-setup-card,
body.sharedroid-theme .policy-card,
body.sharedroid-theme .detail-card,
body.sharedroid-theme .config-card,
body.sharedroid-theme .rule-card,
body.sharedroid-theme .setup-panel,
body.sharedroid-theme .app-result,
body.sharedroid-theme .wallpaper-option,
body.sharedroid-theme .check-card,
body.sharedroid-theme .method-card,
body.sharedroid-theme .auth-method-card,
body.sharedroid-theme .group-card,
body.sharedroid-theme .customer-summary,
body.sharedroid-theme .empty-state {
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--sd-shadow-sm) !important;
}

body.sharedroid-theme .hero-card,
body.sharedroid-theme .welcome-card {
  position: relative !important;
  overflow: hidden !important;
  color: var(--sd-ink) !important;
  background: var(--sd-surface) !important;
  padding: 24px !important;
}

body.sharedroid-theme .hero-card::before,
body.sharedroid-theme .welcome-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: var(--sd-green-400) !important;
}

body.sharedroid-theme .hero-card > *,
body.sharedroid-theme .welcome-card > * {
  position: relative !important;
}

body.sharedroid-theme .hero-card h1,
body.sharedroid-theme .hero-card h2,
body.sharedroid-theme .hero-card h3,
body.sharedroid-theme .welcome-card h1,
body.sharedroid-theme .welcome-card h2,
body.sharedroid-theme .welcome-card h3,
body.sharedroid-theme .panel h3,
body.sharedroid-theme .panel-header h3,
body.sharedroid-theme .card h3 {
  color: var(--sd-ink) !important;
  font-weight: 820 !important;
  line-height: 1.18 !important;
}

body.sharedroid-theme .hero-card p,
body.sharedroid-theme .welcome-card p,
body.sharedroid-theme .panel p,
body.sharedroid-theme .panel-header p,
body.sharedroid-theme .card p,
body.sharedroid-theme .stat-subtext,
body.sharedroid-theme .device-meta,
body.sharedroid-theme .help-text,
body.sharedroid-theme .field-help,
body.sharedroid-theme .subtitle {
  color: var(--sd-muted) !important;
}

body.sharedroid-theme .panel,
body.sharedroid-theme .table-card,
body.sharedroid-theme .list-card {
  overflow: hidden !important;
}

body.sharedroid-theme .panel-header,
body.sharedroid-theme .panel-toolbar,
body.sharedroid-theme .toolbar,
body.sharedroid-theme .table-toolbar {
  background: var(--sd-surface) !important;
  border-bottom: 1px solid var(--sd-border) !important;
}

body.sharedroid-theme .panel-body,
body.sharedroid-theme .card-body {
  background: var(--sd-surface) !important;
}

body.sharedroid-theme .stat-card {
  padding: 18px !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
}

body.sharedroid-theme .stat-card:hover {
  border-color: var(--sd-border-strong) !important;
  box-shadow: var(--sd-shadow-md) !important;
}

body.sharedroid-theme .stat-label,
body.sharedroid-theme .metric-label,
body.sharedroid-theme .detail-label {
  color: var(--sd-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

body.sharedroid-theme .stat-value,
body.sharedroid-theme .metric-value {
  color: var(--sd-ink) !important;
  font-weight: 850 !important;
}

body.sharedroid-theme .detail-item,
body.sharedroid-theme .setup-step,
body.sharedroid-theme .capture-box {
  background: var(--sd-surface-2) !important;
  border: 1px solid var(--sd-border) !important;
  border-radius: 8px !important;
}

body.sharedroid-theme .btn,
body.sharedroid-theme .icon-btn,
body.sharedroid-theme button {
  border-radius: 8px !important;
  font-weight: 780 !important;
  font-family: inherit !important;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition) !important;
}

body.sharedroid-theme .btn-primary,
body.sharedroid-theme button.btn-primary,
body.sharedroid-theme .primary-btn {
  background: var(--sd-green-600) !important;
  color: #ffffff !important;
  border: 1px solid var(--sd-green-600) !important;
}

body.sharedroid-theme .btn-primary:hover,
body.sharedroid-theme button.btn-primary:hover,
body.sharedroid-theme .primary-btn:hover {
  background: var(--sd-green-700) !important;
  border-color: var(--sd-green-700) !important;
}

body.sharedroid-theme .btn-light,
body.sharedroid-theme .btn-secondary,
body.sharedroid-theme .icon-btn,
body.sharedroid-theme .filter-btn,
body.sharedroid-theme .secondary-btn {
  background: #f0f7f3 !important;
  color: var(--sd-green-800) !important;
  border: 1px solid #d3e9da !important;
}

body.sharedroid-theme .btn-light:hover,
body.sharedroid-theme .btn-secondary:hover,
body.sharedroid-theme .icon-btn:hover,
body.sharedroid-theme .filter-btn:hover,
body.sharedroid-theme .secondary-btn:hover {
  background: #e5f4eb !important;
  border-color: #c0dfcb !important;
}

body.sharedroid-theme .btn-danger,
body.sharedroid-theme .danger-btn {
  background: #fff1f1 !important;
  color: var(--sd-red) !important;
  border: 1px solid #f3c2c0 !important;
}

body.sharedroid-theme .btn-success,
body.sharedroid-theme .filter-btn.active {
  background: var(--sd-green-600) !important;
  color: #ffffff !important;
  border-color: var(--sd-green-600) !important;
}

body.sharedroid-theme input,
body.sharedroid-theme select,
body.sharedroid-theme textarea {
  background: #ffffff !important;
  color: var(--sd-ink) !important;
  border-color: var(--sd-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.sharedroid-theme input::placeholder,
body.sharedroid-theme textarea::placeholder {
  color: #8b9a91 !important;
}

body.sharedroid-theme input:focus,
body.sharedroid-theme select:focus,
body.sharedroid-theme textarea:focus {
  border-color: var(--sd-green-400) !important;
  box-shadow: var(--sd-focus) !important;
  outline: none !important;
}

body.sharedroid-theme input[type="checkbox"],
body.sharedroid-theme input[type="radio"] {
  accent-color: var(--sd-green-600) !important;
}

body.sharedroid-theme label {
  color: var(--sd-ink) !important;
  font-weight: 780 !important;
}

body.sharedroid-theme table {
  background: var(--sd-surface) !important;
}

body.sharedroid-theme th {
  background: #f0f6f2 !important;
  color: var(--sd-muted) !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  text-transform: uppercase !important;
}

body.sharedroid-theme td,
body.sharedroid-theme th {
  border-color: var(--sd-border) !important;
}

body.sharedroid-theme tbody tr:hover {
  background: #fbfdfb !important;
}

body.sharedroid-theme .badge {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

body.sharedroid-theme .badge-info,
body.sharedroid-theme .blue {
  background: #e7f3ff !important;
  color: #1d4f8f !important;
}

body.sharedroid-theme .badge-success,
body.sharedroid-theme .green {
  background: #dcfce7 !important;
  color: #166534 !important;
}

body.sharedroid-theme .badge-warning {
  background: #fff7ed !important;
  color: #9a5b13 !important;
}

body.sharedroid-theme .badge-danger,
body.sharedroid-theme .red {
  background: #fef2f2 !important;
  color: #b42318 !important;
}

body.sharedroid-theme .badge-muted,
body.sharedroid-theme .gray {
  background: #edf3ef !important;
  color: #52645a !important;
}

body.sharedroid-theme .status-message {
  border-radius: 8px !important;
}

body.sharedroid-theme .status-success {
  background: #e7f8ee !important;
  color: var(--sd-green-800) !important;
  border: 1px solid #b8e7c9 !important;
}

body.sharedroid-theme .status-error {
  background: #fff1f2 !important;
  color: #b42318 !important;
  border: 1px solid #fecdd3 !important;
}

body.sharedroid-theme .status-info {
  background: #eefaf8 !important;
  color: #0f766e !important;
  border: 1px solid #bfede7 !important;
}

body.sharedroid-theme .modal-backdrop {
  background: rgba(12, 24, 18, 0.58) !important;
  backdrop-filter: blur(4px) !important;
}

body.sharedroid-theme .modal,
body.sharedroid-theme .modal-content {
  background: #ffffff !important;
  box-shadow: 0 24px 72px rgba(10, 47, 35, 0.22) !important;
}

body.sharedroid-theme .profile-icon,
body.sharedroid-theme .app-icon,
body.sharedroid-theme .tile-icon {
  border-radius: 8px !important;
}

body.sharedroid-theme .phone-frame,
body.sharedroid-theme .phone-screen,
body.sharedroid-theme .preview-phone {
  border-color: #10261d !important;
  box-shadow: 0 22px 48px rgba(10, 47, 35, 0.18) !important;
}

body.sharedroid-theme .deployment-card,
body.sharedroid-theme .profile-type-card,
body.sharedroid-theme .group-choice,
body.sharedroid-theme .policy-check,
body.sharedroid-theme .badge-row {
  border-color: var(--sd-border) !important;
  background: var(--sd-surface-2) !important;
  border-radius: 8px !important;
}

body.sharedroid-theme .deployment-card:has(input:checked),
body.sharedroid-theme .profile-type-card:has(input:checked),
body.sharedroid-theme .wallpaper-option.active {
  border-color: var(--sd-green-400) !important;
  background: var(--sd-green-050) !important;
  box-shadow: var(--sd-focus) !important;
}

body.sharedroid-public {
  background: #f5faf7 !important;
  color: var(--sd-ink) !important;
}

body.sharedroid-public header,
body.sharedroid-auth header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--sd-border) !important;
  backdrop-filter: blur(12px) !important;
}

body.sharedroid-public .logo,
body.sharedroid-auth .logo,
body.sharedroid-public .logo .brand-word,
body.sharedroid-auth .logo .brand-word {
  color: var(--sd-green-900) !important;
}

body.sharedroid-public .navbar,
body.sharedroid-auth .navbar {
  min-height: 76px !important;
  padding: 0 !important;
}

body.sharedroid-public nav a,
body.sharedroid-auth nav a {
  color: var(--sd-text) !important;
  font-weight: 700 !important;
}

body.sharedroid-public nav a:hover,
body.sharedroid-auth nav a:hover {
  color: var(--sd-green-700) !important;
}

body.sharedroid-public .hero {
  min-height: calc(100vh - 82px) !important;
  background: linear-gradient(180deg, #f5faf7 0%, #ffffff 100%) !important;
}

body.sharedroid-public .hero-layout {
  display: block !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

body.sharedroid-public .hero h1 {
  color: var(--sd-ink) !important;
  font-size: clamp(42px, 6vw, 68px) !important;
  line-height: 1.02 !important;
  font-weight: 880 !important;
}

body.sharedroid-public .hero h1 span {
  color: var(--sd-green-700) !important;
}

body.sharedroid-public .hero p {
  color: var(--sd-muted) !important;
}

body.sharedroid-public .hero-text {
  max-width: 820px !important;
}

body.sharedroid-public .hero-card {
  width: 100% !important;
  margin-top: 36px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: var(--sd-green-900) !important;
  border-color: rgba(61, 220, 132, 0.24) !important;
  color: #effaf3 !important;
  box-shadow: 0 24px 58px rgba(10, 47, 35, 0.22) !important;
}

body.sharedroid-public .hero-card::before {
  display: none !important;
}

body.sharedroid-public .hero-card h3 {
  grid-column: 1 / -1 !important;
}

body.sharedroid-public .hero-card h3,
body.sharedroid-public .card-item strong {
  color: #ffffff !important;
}

body.sharedroid-public .hero-card p,
body.sharedroid-public .card-item,
body.sharedroid-public .card-item span {
  color: rgba(239, 250, 243, 0.78) !important;
}

body.sharedroid-public .card-item,
body.sharedroid-public .feature {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.sharedroid-public .feature {
  background: #ffffff !important;
  color: var(--sd-ink) !important;
  border-color: var(--sd-border) !important;
  box-shadow: var(--sd-shadow-sm) !important;
}

body.sharedroid-public .feature h3 {
  color: var(--sd-green-800) !important;
}

body.sharedroid-public .section-dark {
  background: #edf5ef !important;
}

body.sharedroid-public .btn-primary,
body.sharedroid-auth .btn-primary {
  background: var(--sd-green-600) !important;
  color: #ffffff !important;
  border: 1px solid var(--sd-green-600) !important;
}

body.sharedroid-public .btn-secondary,
body.sharedroid-auth .btn-secondary {
  background: #ffffff !important;
  color: var(--sd-green-800) !important;
  border: 1px solid var(--sd-border-strong) !important;
}

body.sharedroid-auth {
  background: linear-gradient(180deg, #f6f9f6 0%, #edf5ef 100%) !important;
  color: var(--sd-ink) !important;
}

body.sharedroid-auth .login-page,
body.sharedroid-auth .signup-page {
  min-height: calc(100vh - 76px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--sd-ink) !important;
  padding: 44px 24px !important;
}

body.sharedroid-auth .login-layout,
body.sharedroid-auth .signup-layout {
  width: min(1120px, 100%) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px) !important;
  align-items: stretch !important;
  gap: 24px !important;
}

body.sharedroid-auth .signup-page > .container {
  width: min(1120px, 100%) !important;
  padding: 0 !important;
}

body.sharedroid-auth .login-info,
body.sharedroid-auth .intro {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #0b2f23 0%, #0a261d 100%) !important;
  border: 1px solid rgba(61, 220, 132, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 64px rgba(10, 47, 35, 0.16) !important;
  padding: clamp(28px, 4vw, 48px) !important;
  overflow: hidden !important;
}

body.sharedroid-auth .login-info h1,
body.sharedroid-auth .intro h1 {
  max-width: 680px !important;
  color: #ffffff !important;
  font-size: clamp(36px, 4vw, 54px) !important;
  line-height: 1.08 !important;
  font-weight: 880 !important;
  margin: 0 0 18px !important;
}

body.sharedroid-auth .login-info h1 span,
body.sharedroid-auth .intro h1 span {
  color: var(--sd-green-400) !important;
}

body.sharedroid-auth .login-info p,
body.sharedroid-auth .intro p {
  max-width: 620px !important;
  color: rgba(241, 250, 244, 0.78) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  margin-bottom: 26px !important;
}

body.sharedroid-auth .login-card,
body.sharedroid-auth .signup-card {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--sd-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 64px rgba(10, 47, 35, 0.14) !important;
  padding: 32px !important;
}

body.sharedroid-auth .login-card h2,
body.sharedroid-auth .signup-card h2 {
  color: var(--sd-ink) !important;
}

body.sharedroid-auth .login-point,
body.sharedroid-auth .metric {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e6f4ea !important;
  box-shadow: none !important;
}

body.sharedroid-auth .metric-value,
body.sharedroid-auth .intro-kicker {
  color: var(--sd-green-400) !important;
}

body.sharedroid-auth .login-card input,
body.sharedroid-auth .signup-card input,
body.sharedroid-auth .login-card select,
body.sharedroid-auth .signup-card select,
body.sharedroid-auth .login-card textarea,
body.sharedroid-auth .signup-card textarea {
  background: #ffffff !important;
  color: var(--sd-ink) !important;
  border-color: var(--sd-border) !important;
}

body.sharedroid-auth .remember,
body.sharedroid-auth .subtitle,
body.sharedroid-auth .form-row {
  color: var(--sd-muted) !important;
}

body.sharedroid-auth .text-link {
  color: var(--sd-green-700) !important;
}

@media (max-width: 1100px) {
  body.sharedroid-auth .login-layout,
  body.sharedroid-auth .signup-layout {
    grid-template-columns: 1fr !important;
    max-width: 680px !important;
  }
}

@media (max-width: 900px) {
  body.sharedroid-theme .app-shell {
    grid-template-columns: 1fr !important;
  }

  body.sharedroid-theme .sidebar {
    position: static !important;
    height: auto !important;
    border-right: none !important;
  }

  body.sharedroid-theme .topbar {
    position: static !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 18px 20px !important;
  }

  body.sharedroid-theme .content {
    padding: 20px !important;
  }

  body.sharedroid-theme .hero-card,
  body.sharedroid-theme .welcome-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.sharedroid-public .hero-card {
    grid-template-columns: 1fr !important;
  }
}
