
:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #1c2733;
  --muted: #657386;
  --line: #dfe6ee;
  --accent: #14766f;
  --accent-dark: #0d5f5a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  gap: 16px;
}
.hero {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 16px; }
.muted { color: var(--muted); line-height: 1.6; }
.button, button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
}
.button:hover { background: var(--accent-dark); }
.button.secondary {
  background: #24384a;
}
.button.secondary:hover {
  background: #172838;
}
.loginPanel {
  width: min(460px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.loginForm {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.loginForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.loginForm input {
  width: 100%;
  margin: 0;
}
.loginForm button {
  width: 100%;
}
.msg {
  color: #b8462a;
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat { padding: 16px; }
.stat span, .split, th { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 6px; font-size: 22px; }
.panel { overflow: hidden; }
.panelHead {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 12px;
  margin: 18px 16px 10px;
  background: #e9eef3;
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.split {
  display: flex;
  justify-content: space-between;
  padding: 0 16px 16px;
}
.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 6px;
  background: #e8f3f1;
  color: var(--accent-dark);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}
input {
  width: calc(100% - 32px);
  min-height: 42px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
}
.subscribeBox {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
  align-items: center;
}
.qr {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.subscribeMain {
  min-width: 0;
}
.subscribeMain input {
  width: 100%;
  margin: 0;
}
.clientActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.clientActions .button,
.clientActions button {
  margin: 0;
}
.code {
  margin-top: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscribeBox { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
}
