:root {
  --ink: #18191b;
  --muted: #6e7278;
  --line: #e6e7e9;
  --paper: #ffffff;
  --wash: #f6f7f8;
  --accent: #171717;
  --green: #18794e;
  --red: #b42318;
  --amber: #8a5a00;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--wash); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px max(22px, calc((100% - 1120px) / 2));
  background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand { font-size: 21px; font-weight: 800; text-decoration: none; letter-spacing: -1px; }
.brand span { color: #777; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-cta { background: var(--ink); color: white; padding: 9px 14px; border-radius: 9px; }
.inline-form { display: inline; margin: 0; }
.nav-logout { border: 0; background: transparent; font: inherit; cursor: pointer; color: var(--ink); }
.container { max-width: 1120px; padding: 36px 22px 70px; margin: 0 auto; min-height: calc(100vh - 160px); }
.hero { padding: 70px 0 62px; max-width: 760px; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.04; letter-spacing: -2.5px; margin: 0 0 18px; }
h2 { font-size: 21px; letter-spacing: -.5px; margin: 0 0 14px; }
h3 { margin: 0 0 8px; font-size: 17px; }
p { margin: 0 0 14px; }
.hero-copy { max-width: 650px; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.hero-note, .muted, .small { color: var(--muted); }
.hero-note { font-size: 13px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 10px; padding: 12px 17px;
  background: var(--ink); color: white; font: inherit; font-weight: 700;
  font-size: 14px; text-decoration: none; cursor: pointer;
}
.button:hover { opacity: .86; }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.button.danger { background: #fff2f0; border-color: #ffd2cc; color: var(--red); }
.button.full { width: 100%; margin-top: 22px; }
.button.small-button { margin-top: 12px; padding: 9px 13px; }
.button.tiny { padding: 6px 10px; font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 36px; }
.feature, .panel, .auth-card, .notice {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.feature { padding: 24px; }
.feature p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.notice { padding: 17px 20px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.notice span { color: var(--muted); }
.auth-card { max-width: 460px; margin: 30px auto; padding: 32px; }
.auth-card h1 { font-size: 34px; letter-spacing: -1.3px; }
label { display: block; font-weight: 700; font-size: 13px; margin: 17px 0 7px; }
input {
  width: 100%; border: 1px solid #d7d9dc; background: white; color: var(--ink);
  border-radius: 9px; padding: 12px 13px; font: inherit; font-size: 14px;
}
input:focus { outline: 3px solid #dedede; border-color: #777; }
.form-foot { font-size: 13px; text-align: center; margin: 20px 0 0; color: var(--muted); }
.form-foot a, .text-link { font-weight: 700; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
.page-heading h1 { font-size: 38px; letter-spacing: -1.5px; margin-bottom: 8px; }
.page-heading p { margin-bottom: 0; }
.panel { padding: 24px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.form-grid label { margin-top: 0; }
.form-action { padding-bottom: 1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 30px; letter-spacing: -1px; margin-top: 3px; }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-panel { margin: 0; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.card-top h2 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { display: inline-block; border-radius: 99px; padding: 4px 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; background: #f0f0f0; color: #555; }
.status.active { background: #e6f6ee; color: var(--green); }
.status.pending, .status.unconfigured { background: #fff5d6; color: var(--amber); }
.status.disabled { background: #ffebe9; color: var(--red); }
code { overflow-wrap: anywhere; font-size: 12px; }
.text-link { display: inline-block; margin: 14px 14px 0 0; font-size: 13px; }
.empty-state { text-align: center; padding: 65px 20px; max-width: 540px; margin: 0 auto; }
.empty-state h1 { font-size: 36px; letter-spacing: -1.5px; }
.empty-state p { color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.destination-cell { max-width: 180px; overflow-wrap: anywhere; }
.flashes { margin-bottom: 18px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; background: #f0f0f0; font-size: 13px; overflow-wrap: anywhere; }
.flash.success { background: #e6f6ee; color: #145c3b; }
.flash.danger { background: #ffebe9; color: #8f1d16; }
.flash.warning { background: #fff5d6; color: #754d00; }
.flash.info { background: #eaf2ff; color: #234d91; }
.footer { text-align: center; padding: 24px 16px; border-top: 1px solid var(--line); background: white; font-size: 12px; color: var(--muted); }
.footer p { margin: 3px; }
@media (max-width: 720px) {
  .nav { padding: 15px 18px; }
  .nav-links { gap: 12px; }
  .container { padding: 25px 16px 50px; }
  .hero { padding: 40px 0; }
  .feature-grid, .card-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-action .button { width: 100%; }
  .auth-card { padding: 24px; }
  .page-heading h1 { font-size: 32px; }
}
