:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f1f0ef;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #1a1a1a;
  --text-2: #6b6a67;
  --text-3: #9b9a96;
  --accent: #5b4cf5;
  --accent-hover: #4a3cd4;
  --accent-light: #eeecff;
  --accent-text: #3b2db0;
  --danger: #d93a3a;
  --danger-light: #fdf0f0;
  --success: #1a8a5a;
  --success-light: #edf7f2;
  --warning: #b45c0e;
  --warning-light: #fef5eb;
  --sidebar-bg: #16151a;
  --sidebar-text: #c8c7c2;
  --sidebar-text-muted: #6b6a67;
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #ffffff;
  --sidebar-hover-bg: rgba(255,255,255,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-weight: 500;
  color: var(--text);
}

label {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: transform 180ms ease, width 180ms ease;
}

.sidebar-brand {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
}

.brand-mark,
.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sidebar-active-text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-text,
.nav-text,
.sidebar-user,
.logout-link {
  transition: opacity 140ms ease, width 180ms ease;
}

.sidebar-toggle,
.topbar-menu {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  cursor: pointer;
  flex: 0 0 34px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-toggle {
  color: var(--sidebar-text);
}

.sidebar-toggle:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-active-text);
}

.toggle-open-icon {
  display: none;
}

.topbar-menu {
  display: none;
  color: var(--text-2);
}

.topbar-menu:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  background: rgba(0,0,0,0.38);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-size: 14px;
  padding: 0 12px 0 10px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-active-text);
}

.nav-link.active {
  background: var(--sidebar-active-bg);
  border-left-color: var(--accent);
  color: var(--sidebar-active-text);
}

.nav-link.disabled {
  color: var(--sidebar-text-muted);
  opacity: 0.66;
}

.nav-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 20px;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px 20px;
}

.sidebar-health {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--sidebar-text-muted);
  font-size: 12px;
  padding-bottom: 12px;
}

.sidebar-health div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-health div:first-child {
  justify-content: flex-start;
}

.health-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
}

.health-dot.on {
  background: var(--success);
}

.health-dot.off {
  background: var(--danger);
}

.sidebar-user {
  display: grid;
  gap: 6px;
}

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

.logout-link {
  color: var(--sidebar-text-muted);
  font-size: 13px;
  transition: color 160ms ease;
}

.logout-link:hover {
  color: var(--sidebar-active-text);
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 180ms ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 28px;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.topbar-kicker {
  color: var(--text-3);
  font-size: 12px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-switcher {
  min-width: min(260px, 34vw);
}

.site-switcher .form-control {
  height: 34px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

.topbar-profile {
  position: relative;
}

.topbar-profile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.topbar-profile summary::-webkit-details-marker {
  display: none;
}

.topbar-user-copy {
  display: grid;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.topbar-user-copy span:last-child {
  color: var(--text-3);
  font-size: 12px;
}

.topbar-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 8px;
}

.topbar-menu-panel a,
.topbar-menu-panel span {
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13px;
  padding: 8px 10px;
}

.topbar-menu-panel a:hover,
.topbar-menu-panel span:hover {
  background: var(--surface-2);
  color: var(--text);
}

.avatar-circle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.page-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--text-2);
}

.breadcrumbs a:hover {
  color: var(--accent-text);
}

.page-header {
  margin-bottom: 0;
}

.page-header h1 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 20px;
}

.page-header p,
.section-heading p,
.website-summary p,
.empty-state p {
  color: var(--text-2);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.btn {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  border-color: #bd2929;
  background: #bd2929;
}

.btn-ghost {
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 34px;
  padding: 0;
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 2px 8px;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--accent-light);
  color: var(--accent-text);
}

.badge-neutral {
  background: var(--surface-2);
  color: var(--text-2);
}

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

.form-control {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
  padding: 0 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea.form-control {
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.code-area {
  min-height: 220px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap .table {
  min-width: 720px;
}

.table thead {
  background: var(--surface-2);
}

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

.table th {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: var(--surface-2);
}

.alert {
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 12px 16px;
}

.flash-stack {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 60;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 10px;
}

.flash-message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  animation: flashSlide 220ms ease both;
}

.flash-close {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.72;
}

.flash-close:hover {
  opacity: 1;
}

.alert-danger {
  background: var(--danger-light);
  border-left-color: var(--danger);
  color: var(--danger);
}

.alert-success {
  background: var(--success-light);
  border-left-color: var(--success);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-light);
  border-left-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: var(--accent-light);
  border-left-color: var(--accent);
  color: var(--accent-text);
}

.temporary-password-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.temporary-password-alert p {
  margin: 4px 0 0;
}

.stat-card {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: space-between;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  opacity: 0.72;
}

.stat-card-icon {
  gap: 8px;
}

.stat-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-text);
}

.stat-card span {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--text-3);
  padding: 26px 12px;
  text-align: center;
}

.empty-state-large {
  min-height: 280px;
  align-content: center;
}

.empty-state h2 {
  font-size: 18px;
}

.empty-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.dashboard-hero h1 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.dashboard-hero p {
  max-width: 680px;
  color: var(--text-2);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-stats.upgraded {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-stat-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-stat-link:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel {
  min-width: 0;
}

.status-chart-wrap {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.donut-chart {
  width: 152px;
  height: 152px;
}

.donut-track,
.donut-segment {
  fill: none;
  stroke-width: 14;
}

.donut-track {
  stroke: var(--surface-2);
}

.donut-segment {
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  stroke-linecap: round;
}

.donut-total {
  fill: var(--text);
  font-size: 22px;
  font-weight: 500;
}

.donut-label {
  fill: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-legend {
  display: grid;
  gap: 9px;
}

.chart-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.chart-legend strong {
  color: var(--text);
  font-weight: 500;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.bar-chart {
  display: grid;
  height: 190px;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding-top: 10px;
}

.bar-item {
  display: grid;
  height: 100%;
  min-width: 0;
  align-items: end;
  gap: 6px;
  text-align: center;
}

.bar-fill {
  display: block;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent);
}

.bar-value {
  min-height: 16px;
  color: var(--text-2);
  font-size: 11px;
}

.bar-label {
  color: var(--text-3);
  font-size: 11px;
}

.resource-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.resource-meter div {
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.resource-meter span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
}

.resource-meter strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.pool-strip {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  margin-top: 18px;
}

.pool-strip span {
  display: block;
  min-width: 0;
}

.pool-available {
  background: var(--success);
}

.pool-reserved {
  background: var(--accent);
}

.pool-invalid {
  background: var(--danger);
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.dashboard-main-stack,
.dashboard-side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.attention-list.premium {
  gap: 8px;
}

.attention-list.premium .attention-row,
.ticket-row,
.mini-site-list a {
  border: 1px solid var(--border);
  background: var(--surface);
}

.credential-gap {
  border-left: 3px solid var(--accent);
}

.ticket-list,
.mini-site-list,
.quick-action-grid {
  display: grid;
  gap: 10px;
}

.ticket-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.ticket-row:hover,
.mini-site-list a:hover {
  background: var(--surface-2);
}

.ticket-row p,
.mini-site-list p {
  color: var(--text-2);
}

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

.quick-action-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  padding: 12px;
  text-decoration: none;
}

.quick-action-grid a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.mini-site-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px;
  text-decoration: none;
}

.compact-feed {
  gap: 6px;
}

.compact-feed .activity-row {
  padding: 8px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2,
.website-summary h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.website-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.website-summary label {
  margin-bottom: 12px;
}

.website-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 12%, rgba(91, 76, 245, 0.12), transparent 30%),
    linear-gradient(135deg, #f7f7f8 0%, #ffffff 48%, #eef7f3 100%);
}

.auth-shell {
  width: min(100% - 32px, 1120px);
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 42px 0;
}

.auth-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(22, 21, 26, 0.14);
}

.auth-panel-compact {
  width: min(100%, 500px);
  display: block;
}

.auth-visual {
  min-height: 620px;
  display: grid;
  align-content: space-between;
  gap: 32px;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(22, 21, 26, 0.94), rgba(43, 43, 55, 0.92)),
    url("data:image/svg+xml,%3Csvg width='720' height='620' viewBox='0 0 720 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16'%3E%3Cpath d='M82 138h556M82 248h556M82 358h556M82 468h556M174 66v488M342 66v488M510 66v488'/%3E%3Ccircle cx='174' cy='248' r='64'/%3E%3Ccircle cx='510' cy='358' r='92'/%3E%3Cpath d='M174 248l168 110 168-110'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.auth-card {
  width: 100%;
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: 46px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-brand-inline {
  color: var(--text);
  margin-bottom: 36px;
}

.auth-visual-copy {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.auth-kicker {
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-visual .auth-kicker {
  color: #b8fff0;
}

.auth-visual-copy h1 {
  max-width: 620px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 650;
}

.auth-visual-copy p:last-child {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

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

.auth-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.auth-metrics strong,
.auth-metrics span {
  display: block;
}

.auth-metrics strong {
  color: #fff;
  font-size: 22px;
}

.auth-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.login-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.login-heading h1,
.login-heading h2 {
  font-size: 32px;
  line-height: 1.12;
  font-weight: 650;
}

.login-heading p {
  color: var(--text-2);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-label-row a,
.auth-footer-link a {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.form-label-row a:hover,
.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-control {
  height: 48px;
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 0 14px;
  font-size: 15px;
}

.auth-submit {
  min-height: 48px;
  margin-top: 4px;
}

.auth-footer-link {
  margin-top: 22px;
  text-align: center;
}

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

.section-gap {
  margin-top: 24px;
}

.page-header-actions,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.button-row {
  justify-content: flex-start;
}

.button-row.compact {
  gap: 6px;
}

.settings-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.steel-status-card {
  position: sticky;
  top: 76px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.detail-list div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.detail-list dt {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.muted {
  color: var(--text-3);
}

.is-hidden {
  display: none !important;
}

.temporary-domain-row {
  width: fit-content;
}

.auto-selected-order {
  align-content: start;
  gap: 8px;
}

.auto-selected-order p {
  margin: 0;
}

.auto-selected-order strong {
  color: var(--text);
  font-weight: 500;
}

.table-link {
  color: var(--accent-text);
  font-weight: 500;
}

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

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

.form-grid.four {
  grid-template-columns: 1.2fr 1.6fr 1fr 0.9fr auto;
  align-items: end;
}

.form-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.form-span {
  grid-column: 1 / -1;
}

.form-actions-end {
  align-self: end;
}

.compact-number {
  max-width: 96px;
}

.input-action,
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-action .form-control,
.inline-form .form-control {
  min-width: 0;
}

.modal-anchor {
  display: none;
}

.modal-anchor:target {
  display: grid;
}

.sync-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-3);
  margin-right: 8px;
}

.sync-dot.on {
  background: var(--success);
}

.button-glyph {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  font-weight: 500;
}

.icon-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--accent-text);
}

.icon-btn.danger {
  color: var(--danger);
}

.icon-btn.danger:hover {
  border-color: var(--danger);
  background: var(--danger-light);
  color: var(--danger);
}

.websites-console {
  display: grid;
  gap: 22px;
}

.websites-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.websites-hero h1 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.websites-hero p {
  max-width: 680px;
  color: var(--text-2);
}

.website-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 24px;
}

.website-search-main {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  padding: 0 16px;
}

.website-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.website-search-input::placeholder {
  color: var(--text-2);
}

.website-search-tools {
  display: flex;
  gap: 10px;
}

.website-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.website-summary-strip div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}

.website-summary-strip span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.website-summary-strip strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
}

.website-create-panel {
  margin-top: -6px;
}

.hosting-plan-stack {
  display: grid;
  gap: 18px;
}

.hosting-plan-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hosting-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.hosting-plan-header h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.website-row-list {
  display: grid;
}

.website-console-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.website-console-row:last-child {
  border-bottom: 0;
}

.website-console-row:hover {
  background: var(--surface-2);
}

.website-row-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 16px;
}

.website-type-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.website-row-copy {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.website-domain-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.website-domain-link:hover {
  color: var(--accent-text);
}

.website-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  padding: 4px 10px;
}

.domain-pill.ok {
  background: var(--success-light);
  color: var(--success);
}

.domain-pill.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.domain-pill.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.domain-verification-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  background: var(--warning-light);
  padding: 14px 16px;
}

.domain-verification-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 500;
}

.domain-verification-card p {
  color: var(--text-2);
}

.domain-temp-suggestion {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 12px;
}

.domain-temp-suggestion p {
  color: var(--text);
}

.dns-instruction-grid.compact {
  margin-top: 10px;
}

.dns-instruction-grid.compact div {
  padding: 8px 10px;
}

.website-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.website-row-actions form {
  display: inline-flex;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tabs a {
  min-height: 38px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  white-space: nowrap;
}

.tabs a.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail-grid p {
  margin-top: 8px;
}

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

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.table-edit-form {
  display: contents;
}

.payload-row {
  display: none;
}

.payload-row.open {
  display: table-row;
}

.payload-row pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px;
}

.expand-row {
  cursor: pointer;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: currentColor;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: -2px;
  animation: spin 600ms linear infinite;
}

.mono-line {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
}

.database-access-card {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.database-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.database-access-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.database-access-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 76, 245, 0.18);
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-text);
}

.database-access-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
}

.database-access-title p {
  margin: 0;
  color: var(--text-2);
}

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

.database-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
}

.database-field.primary {
  grid-column: span 2;
  background: var(--surface);
}

.database-field p {
  min-height: 22px;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
}

.database-field .btn {
  width: fit-content;
  height: 30px;
  padding-inline: 10px;
}

.user-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
}

.site-list-card {
  margin-top: 0;
  margin-bottom: 18px;
}

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

.site-list-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.site-list-item.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.domain-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.domain-card h2 {
  font-family: var(--mono);
  font-size: 24px;
  overflow-wrap: anywhere;
}

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

.mini-stat-grid > div {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px;
}

.mini-stat-grid strong {
  display: block;
  font-weight: 500;
  margin-top: 8px;
}

.dns-edit-form {
  display: none;
  grid-template-columns: 90px 130px minmax(220px, 1fr) 100px auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

[data-dns-row].editing .dns-edit-form {
  display: grid;
}

.file-manager {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.file-manager-premium {
  align-items: start;
}

[data-file-manager-panel] {
  position: relative;
}

.file-page-header {
  margin-bottom: 18px;
}

.file-pathbar {
  display: flex;
  max-width: min(100%, 760px);
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.file-pathbar a {
  color: var(--accent-text);
}

.file-path-domain {
  color: var(--text-2);
}

.file-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  padding: 6px 10px;
}

.file-summary strong {
  color: var(--text);
  font-weight: 500;
}

.file-tree-panel {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 12px;
}

.file-tree-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.file-help-card p {
  color: var(--text-2);
  font-size: 13px;
}

.file-panel-title,
.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-panel-title h2,
.file-list-header h2 {
  font-size: 16px;
}

.file-folder-list {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding-right: 2px;
}

.folder-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius);
  color: var(--text-2);
  padding: 9px 10px;
}

.folder-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-link:hover,
.folder-link.active {
  background: var(--surface-2);
  color: var(--text);
}

.file-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.file-actions-card {
  display: grid;
  gap: 16px;
}

.file-loading-card {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-2);
}

.file-loading-card h2 {
  font-size: 18px;
  margin-bottom: 2px;
}

.file-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(247,247,248,0.58);
  backdrop-filter: blur(2px);
  padding-top: 96px;
}

.file-panel-overlay-card {
  display: flex;
  width: min(420px, calc(100% - 32px));
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text-2);
  padding: 16px 18px;
}

.file-panel-overlay-card h2 {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 2px;
}

.file-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-popover,
.rename-popover {
  position: relative;
}

.file-popover > summary,
.rename-popover > summary {
  list-style: none;
}

.file-popover > summary::-webkit-details-marker,
.rename-popover > summary::-webkit-details-marker {
  display: none;
}

.file-popover-form {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  width: min(300px, calc(100vw - 48px));
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 14px;
}

.rename-popover-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.upload-dropzone {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.upload-drop-label {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0;
  line-height: 1.35;
  padding: 18px;
  text-transform: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone.drag-over .upload-drop-label,
.upload-drop-label:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(91,76,245,0.08);
}

.upload-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-text);
  flex: 0 0 44px;
}

.upload-drop-label strong,
.upload-drop-label small {
  display: block;
}

.upload-drop-label small {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 4px;
}

.upload-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.file-selected {
  color: var(--text-2);
  font-size: 13px;
}

.progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.wp-install-status {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.wp-install-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wp-install-status-head p,
.wp-install-result p {
  margin: 4px 0 0;
  color: var(--text-2);
}

.wp-install-result:empty {
  display: none;
}

.dns-instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dns-instruction-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.dns-instruction-grid label {
  margin: 0;
}

.dns-instruction-grid code {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.file-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: 0 0 22px;
}

.file-icon::after {
  content: "";
  position: absolute;
  inset: 6px 5px;
  border-radius: 2px;
  border: 1px solid currentColor;
  opacity: 0.38;
}

.file-folder { background: var(--accent-light); border-color: var(--accent-light); color: var(--accent-text); }
.file-php { background: var(--warning-light); }
.file-image { background: var(--success-light); }
.file-zip { background: var(--danger-light); }
.file-code { background: #eef6ff; }
.file-text { background: var(--surface-2); }

.file-list-card {
  padding: 0;
  overflow: hidden;
}

.file-list-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.file-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.file-list-actions form {
  display: inline-flex;
}

.bulk-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-light);
  color: var(--accent-text);
  padding: 10px 20px;
}

.bulk-bar.active {
  display: flex;
}

.bulk-bar strong {
  font-weight: 600;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.profile-hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
}

.profile-hero p {
  margin: 0;
  color: var(--text-2);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 18px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.file-table th:first-child,
.file-table td:first-child {
  padding-left: 20px;
}

.file-table th:last-child,
.file-table td:last-child {
  padding-right: 20px;
}

.file-name-cell {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 10px;
}

.select-col {
  width: 42px;
}

.select-col input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

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

.file-table th:last-child {
  text-align: right;
}

.file-row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.file-row-actions form {
  display: inline-flex;
}

.rename-input {
  width: 120px;
}

.attention-card {
  border-left: 3px solid var(--warning);
  background: var(--warning-light);
}

.locked-card {
  margin-bottom: 18px;
  border-color: var(--warning);
  background: var(--warning-light);
}

.attention-list,
.activity-feed {
  display: grid;
  gap: 10px;
}

.attention-row,
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.activity-row {
  justify-content: flex-start;
}

.attention-row:hover,
.activity-row:hover {
  background: rgba(255,255,255,0.55);
}

.activity-row p {
  color: var(--text-2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  padding: 18px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(100%, 430px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 18px 20px;
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
}

.modal-body {
  color: var(--text-2);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.wordpress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.wp-info-card {
  position: sticky;
  top: 76px;
}

.instruction-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.media-card img,
.media-file {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
  object-fit: cover;
}

.media-file {
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-family: var(--mono);
}

.media-card span {
  overflow: hidden;
  color: var(--text-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-editor-form {
  max-width: 900px;
}

.title-input {
  height: 48px;
  font-size: 20px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-editor {
  min-height: 360px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  outline: none;
}

.rich-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.quick-view {
  position: absolute;
  z-index: 12;
  width: min(360px, calc(100vw - 48px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text-2);
  padding: 12px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
}

.checklist-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.checklist-row p {
  color: var(--text-2);
}

.requirements-panel {
  margin-top: 18px;
}

.requirements-summary {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

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

.requirements-grid.compact {
  grid-template-columns: 1fr;
}

.checklist-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.checklist-row.ok .checklist-icon {
  background: var(--success-light);
  color: var(--success);
}

.checklist-row.warning .checklist-icon {
  background: var(--warning-light);
  color: var(--warning);
}

.checklist-row.fail .checklist-icon {
  background: var(--danger-light);
  color: var(--danger);
}

.ticket-thread {
  display: grid;
  gap: 18px;
}

.ticket-message {
  border-left: 3px solid var(--border-strong);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.ticket-message.admin-reply {
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.ticket-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-message p {
  margin: 0 0 10px;
}

.ticket-message p:last-child {
  margin-bottom: 0;
}

.ticket-reply-context {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-2);
  font-size: 13px;
}

.ticket-reply-form {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.ticket-replying-to {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent-text);
}

.btn-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.email-template-help {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 18px;
}

.email-template-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px;
}

.users-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.users-hero h1 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.users-hero p {
  max-width: 720px;
  color: var(--text-2);
}

.users-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.danger-glow {
  border-color: rgba(217, 58, 58, 0.24);
  background: var(--danger-light);
}

.users-analytics-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.users-panel {
  min-width: 0;
}

.user-mini-chart {
  height: 154px;
}

.bar-fill.alternate {
  background: var(--success);
}

.user-health-list,
.top-user-list {
  display: grid;
  gap: 10px;
}

.user-health-list > div,
.top-user-list > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.user-health-list span,
.top-user-list p,
.user-access span,
.user-usage span {
  color: var(--text-2);
  font-size: 12px;
}

.user-health-list strong,
.user-usage strong,
.user-access strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  margin-top: 10px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.users-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.users-main-stack,
.users-side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.users-side-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.users-toolbar h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.search-control {
  display: flex;
  width: min(100%, 380px);
  height: 40px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  padding: 0 12px;
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.user-card-list {
  display: grid;
  gap: 10px;
}

.user-row-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(300px, 1fr) minmax(170px, 0.55fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.user-row-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.user-row-card.is-hidden {
  display: none;
}

.user-identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.avatar-circle.large {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.user-name-display {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.user-identity p,
.user-usage p,
.user-access p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.user-modal-websites label {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-domain-list {
  display: flex;
  max-height: 76px;
  overflow: auto;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.user-domain-list span {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-actions {
  display: flex;
  grid-column: 1 / -1;
  margin-top: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.user-actions form {
  flex: 0 0 auto;
}

.user-actions .btn {
  width: auto;
}

.top-user-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.top-user-list strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(22, 21, 26, 0.38);
  padding: 24px;
}

.user-edit-overlay.open {
  display: flex;
}

.user-edit-modal {
  width: min(100%, 720px);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.user-edit-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.user-edit-modal .modal-header p {
  color: var(--text-2);
  margin-top: 4px;
}

.user-modal-websites {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
}

.user-modal-websites > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.CodeMirror {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 520px;
  font-family: var(--mono);
  font-size: 13px;
}

@keyframes flashSlide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 901px) {
  html.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  html.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }

  html.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0 12px;
  }

  html.sidebar-collapsed .brand-mark {
    width: 0;
    overflow: hidden;
    gap: 0;
    opacity: 0;
    pointer-events: none;
  }

  html.sidebar-collapsed .sidebar-toggle {
    color: var(--sidebar-active-text);
  }

  html.sidebar-collapsed .toggle-open-icon {
    display: block;
  }

  html.sidebar-collapsed .toggle-close-icon {
    display: none;
  }

  html.sidebar-collapsed .sidebar-nav {
    align-items: center;
    padding: 0 10px;
  }

  html.sidebar-collapsed .nav-link {
    width: 44px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  html.sidebar-collapsed .nav-text,
  html.sidebar-collapsed .sidebar-health,
  html.sidebar-collapsed .sidebar-user,
  html.sidebar-collapsed .logout-link {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
  }

  html.sidebar-collapsed .sidebar-footer {
    align-items: center;
    padding-inline: 10px;
  }
}

.error-body {
  min-height: 100vh;
  background: var(--bg);
}

.error-shell {
  min-height: 100vh;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 48px 0;
}

.not-found {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 56px;
}

.not-found-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.not-found-art img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.not-found-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.not-found-copy .login-logo {
  margin-bottom: 10px;
}

.error-code {
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.not-found h1 {
  font-size: 32px;
  line-height: 1.2;
}

.not-found p {
  color: var(--text-2);
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 220px;
  }

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

  .dashboard-hero,
  .websites-hero,
  .dashboard-actions {
    display: grid;
    justify-content: stretch;
  }

  .dashboard-stats.upgraded,
  .dashboard-grid,
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .status-chart-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chart-legend {
    width: 100%;
  }

  .ticket-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .website-search-card,
  .website-summary-strip,
  .website-console-row {
    grid-template-columns: 1fr;
  }

  .hosting-plan-header {
    align-items: stretch;
    flex-direction: column;
  }

  .website-row-actions {
    justify-content: flex-start;
  }

  .website-row-actions .btn {
    flex: 1 1 auto;
  }

  .domain-verification-card {
    display: grid;
  }

  .not-found {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .not-found-art {
    min-height: 240px;
    order: -1;
  }

  .not-found-copy {
    justify-items: center;
    text-align: center;
  }

  .form-grid.two,
  .form-grid.four,
  .form-grid.five,
  .detail-grid,
  .credential-grid,
  .database-credential-grid,
  .user-overview-grid,
  .file-manager,
  .settings-split,
  .profile-grid,
  .profile-hero,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .profile-badges {
    justify-content: flex-start;
  }

  .database-access-head {
    display: grid;
  }

  .database-field.primary {
    grid-column: auto;
  }

  .steel-status-card {
    position: static;
  }

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

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

  .file-toolbar,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .file-tree-panel {
    position: static;
  }

  .upload-dropzone {
    grid-template-columns: 1fr;
  }

  .upload-drop-label,
  .upload-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-row-actions {
    flex-wrap: wrap;
  }

  .file-list-header,
  .file-list-actions,
  .bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .file-list-actions form,
  .file-list-actions .btn {
    width: 100%;
  }

  .progress {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(100% - 28px, 560px);
  }

  .auth-panel {
    display: block;
  }

  .auth-visual {
    min-height: auto;
    padding: 28px;
  }

  .auth-visual-copy {
    margin-top: 56px;
  }

  .auth-visual-copy h1 {
    font-size: 34px;
  }

  .auth-metrics {
    margin-top: 28px;
  }

  .auth-card {
    padding: 34px 28px;
  }

  .sidebar {
    position: fixed;
    width: min(84vw, 300px);
    height: 100dvh;
    max-height: none;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }

  html.sidebar-open,
  html.sidebar-open body {
    overflow: hidden;
  }

  html.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  html.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-brand {
    height: 62px;
    padding: 0 16px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding: 0 12px;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-width: 0;
    min-height: 40px;
    border-left: 2px solid transparent;
    border-bottom: 0;
    padding: 0 12px 0 10px;
  }

  .nav-link.active {
    border-left-color: var(--accent);
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: auto;
    padding: 12px 16px 14px;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    height: 52px;
    padding: 0 18px;
  }

  .topbar-menu {
    display: inline-flex;
  }

  .topbar-kicker,
  .topbar-user-copy {
    display: none;
  }

  .page-content {
    width: min(100% - 32px, 1120px);
    padding-top: 22px;
  }

  .card {
    padding: 18px;
  }

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

  .dashboard-stats,
  .wordpress-layout,
  .media-grid,
  .site-list {
    grid-template-columns: 1fr;
  }

  .site-switcher {
    display: none;
  }

  .wp-info-card {
    position: static;
  }

  .drop-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .website-summary {
    display: grid;
  }

  .error-shell {
    width: min(100% - 32px, 1120px);
    padding: 32px 0;
  }

  .not-found h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .auth-shell {
    width: min(100% - 22px, 400px);
    padding: 24px 0;
  }

  .auth-card,
  .login-card {
    padding: 22px;
  }

  .auth-visual {
    padding: 22px;
  }

  .auth-visual-copy {
    margin-top: 34px;
  }

  .auth-visual-copy h1,
  .login-heading h1,
  .login-heading h2 {
    font-size: 26px;
  }

  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .brand-mark,
  .login-logo,
  .auth-brand {
    font-size: 18px;
  }

  .sidebar-footer {
    gap: 10px;
  }

  .topbar-title {
    min-width: 0;
  }

  .topbar-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .page-content {
    width: min(100% - 24px, 1120px);
  }

  .stat-card {
    min-height: 92px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .dashboard-hero h1 {
    font-size: 23px;
  }

  .resource-meter,
  .quick-action-grid,
  .website-summary-strip {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    gap: 4px;
  }

  .website-search-card,
  .hosting-plan-header,
  .website-console-row {
    padding: 18px;
  }

  .website-row-main {
    gap: 12px;
  }

  .website-type-icon {
    width: 32px;
    height: 32px;
  }

  .website-domain-link {
    font-size: 14px;
  }

  .bar-label {
    font-size: 10px;
  }

  .not-found-art {
    min-height: 190px;
  }

  .not-found-copy {
    gap: 14px;
  }

  .not-found h1 {
    font-size: 23px;
  }
}

@media (max-width: 1180px) {
  .users-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .users-analytics-grid {
    grid-template-columns: 1fr;
  }

  .users-side-stack {
    grid-template-columns: 1fr;
  }

  .user-row-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .user-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .users-hero,
  .users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .users-stats {
    grid-template-columns: 1fr;
  }

  .search-control {
    width: 100%;
  }

  .user-actions,
  .user-actions form,
  .user-actions .btn {
    width: 100%;
  }

  .user-card-list {
    grid-template-columns: 1fr;
  }
}
