:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #202223;
  --muted: #6d7175;
  --border: #dfe3e8;
  --primary: #2563eb;
  --accent: #00a3a3;
  --radius: 8px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.login-card img {
  height: 44px;
  width: 44px;
}

.login-card h1 {
  margin-top: 8px;
}

.login-card form {
  margin: 18px 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dashboard-brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 850;
  gap: 12px;
  padding: 8px 8px 20px;
  text-decoration: none;
}

.dashboard-brand img {
  height: 38px;
  width: 38px;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 5px;
}

.dashboard-sidebar button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  text-align: left;
}

.dashboard-sidebar button.active,
.dashboard-sidebar button:hover {
  background: #eef4ff;
  color: var(--primary);
}

.dashboard-sidebar img {
  height: 18px;
  width: 18px;
}

.dashboard-main {
  padding: 28px;
}

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

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

.status-pill {
  background: #f1f3f5;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.status-pill[data-tone="success"] {
  background: #effaf5;
  border-color: #a9e8ce;
  color: #067647;
}

.status-pill[data-tone="warning"] {
  background: #fff8e6;
  border-color: #fedf89;
  color: #93370d;
}

.status-pill[data-tone="error"] {
  background: #fff1f3;
  border-color: #fda4af;
  color: #b42318;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 30px;
  margin-bottom: 0;
}

h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p,
li {
  color: var(--muted);
}

.view-store,
button,
.card button {
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 14px;
  text-decoration: none;
}

.view-store.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}

.card button + button {
  margin-left: 8px;
  margin-top: 8px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  padding: 20px;
}

.hero-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.trial-pill {
  background: #effaf5;
  border: 1px solid #a9e8ce;
  border-radius: 999px;
  color: #067647;
  font-weight: 800;
  padding: 9px 12px;
}

.metric-grid,
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.metric-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.metric-grid strong {
  display: block;
  font-size: 28px;
}

.metric-grid span {
  color: var(--muted);
}

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

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

.file-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.file-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.section-header {
  max-width: 760px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 6px;
  margin-top: 12px;
}

.settings-form.is-disabled {
  opacity: 0.72;
}

.inline-check {
  align-items: center;
  display: flex;
  gap: 9px;
}

.inline-check input {
  min-height: auto;
  width: auto;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 138px;
  padding: 10px;
  resize: vertical;
}

input[type="checkbox"],
input[type="color"] {
  width: auto;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

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

  .dashboard-sidebar nav,
  .metric-grid,
  .card-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar,
  .hero-card {
    align-items: stretch;
    flex-direction: column;
  }

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