:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --ink: #202223;
  --muted: #6d7175;
  --line: #dfe3e8;
  --blue: #005bd3;
  --blue-hover: #004299;
  --green-bg: #e3f1df;
  --amber-bg: #fff5d6;
}

body {
  background: var(--bg);
  color: var(--ink);
}

s-app-nav {
  display: none;
}

.app-shell,
.sidebar {
  display: contents;
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.topbar p {
  font-size: 13px;
}

.support,
.side-status,
.sidebar nav {
  display: none;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill.ok,
.badge.ok {
  background: var(--green-bg);
  color: #0c5132;
}

.status-pill.warn,
.badge.warn {
  background: var(--amber-bg);
  color: #5c3d00;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stat,
.card,
.install-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.stat {
  padding: 16px;
}

.stat span {
  font-size: 13px;
}

.stat strong {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0;
}

.card {
  padding: 16px;
  margin-bottom: 12px;
  overflow: auto;
}

.card h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.compact,
.hero {
  max-width: 640px;
}

.notice {
  padding: 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}

.notice.ok {
  background: var(--green-bg);
  border-color: #b4e1b3;
  color: #0c5132;
}

.notice.warn {
  background: var(--amber-bg);
  border-color: #ffd79d;
  color: #5c3d00;
}

.button,
button {
  min-height: 36px;
  border-color: #c9cccf;
  border-radius: 6px;
  font-weight: 650;
  padding: 7px 12px;
}

.button.primary,
button.primary {
  background: var(--blue);
  border-color: var(--blue);
}

.button.primary:hover,
button.primary:hover {
  background: var(--blue-hover);
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.form {
  max-width: 560px;
}

.form input,
.form select,
.form textarea,
input,
select,
textarea {
  border-color: #c9cccf;
  border-radius: 6px;
  padding: 9px 11px;
}

table {
  min-width: 620px;
}

th,
td {
  padding: 11px 10px;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.dispute {
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  padding: 14px 0 0;
  margin-top: 14px;
}

.dispute > div {
  justify-content: space-between;
}

.dispute p {
  margin: 8px 0 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

.action-result {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.install-page {
  padding: 16px;
  background: var(--bg);
}

.install-card {
  width: min(520px, 100%);
  padding: 24px;
}

.install-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
}

@media (max-width: 760px) {
  .main {
    width: min(100% - 24px, 1120px);
    padding-top: 16px;
  }

  .topbar,
  .row.between,
  .dispute > div {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .install-card form {
    display: grid;
  }
}
