:root {
  color: #172033;
  background: #f6f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #f6f7f9;
}

a { color: #2457a6; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }

.topbar,
.cards {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe3e8;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.github-button,
.button,
.deploy-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd2da;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.github-button { min-height: 40px; padding: 0 16px; font-size: 15px; }

.cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
  align-content: start;
  padding: 24px 0 30px;
}

.card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
}

h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.25;
}

h2 span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #edf2f8;
  color: #365476;
  font-size: 14px;
}

p, li {
  font-size: 16px;
  line-height: 1.55;
}

p { margin: 0; }
.quota { margin-top: 14px; color: #4c5868; }

.steps {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 23px;
}

.steps li::marker { color: #657386; }

label {
  display: block;
  margin-bottom: 8px;
  color: #566275;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

#master-key {
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  resize: none;
  overflow: hidden;
  border: 1px solid #cbd2da;
  border-radius: 8px;
  background: #f8f9fb;
  color: #172033;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.key-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.button { padding: 0 15px; font-size: 16px; }
.button.primary { border-color: #2457a6; background: #2457a6; color: #fff; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }

.status {
  min-height: 22px;
  margin-top: 8px;
  color: #627084;
  font-size: 14px;
}

.rules {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 21px;
  color: #4c5868;
}

.rules li { font-size: 15px; line-height: 1.5; }

.deploy-card p { color: #4c5868; }

.deploy-button {
  width: 100%;
  margin-top: 18px;
  padding: 0 15px;
  border-color: #2457a6;
  background: #2457a6;
  color: #fff;
}

.deploy-button.is-disabled,
.github-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.fine-print { margin-top: 14px; font-size: 14px; line-height: 1.5; }

button:hover:not(:disabled),
.github-button:hover,
.deploy-button:hover { border-color: #172033; }

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 87, 166, 0.25);
  outline-offset: 2px;
}

.cards {
  grid-template-columns: 1fr;
  align-content: start;
  row-gap: clamp(12px, 1.8svh, 20px);
}

