:root {
  font-family: Inter, system-ui, sans-serif;
  color-scheme: dark;
  --page-bg: #1e1e1e;
  --surface: #2e2e2e;
  --surface-border: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --quiet: #757575;
  --eyebrow: #8ac2ff;
  --button: #006acc;
  --button-hover: #187cd9;
  --success: #79e09c;
  --denied: #eba267;
  --done-surface: linear-gradient(180deg, oklab(40.5% 0 0), oklab(39.4% 0 0));
  --done-icon-surface: linear-gradient(180deg, oklab(35.2% 0 0), oklab(34.1% 0 0));
  --done-icon: #fff;
  --done-product: #fff;
  --done-byline: rgb(255 255 255 / 80%);
  --done-copy: rgb(255 255 255 / 80%);
  --done-hint: #fff;
  --done-shadow: inset 0 .5px .5px rgb(255 255 255 / 12%), 0 .5px .5px rgb(0 0 0 / 80%);
  --icon-shadow: inset 0 .67px .67px rgb(255 255 255 / 12%), 0 .67px 1.33px rgb(0 0 0 / 80%);
}
:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f5f5f5;
  --surface: #fff;
  --surface-border: rgba(0, 0, 0, 0.14);
  --text: #1f1f1f;
  --muted: #626262;
  --quiet: #777;
  --eyebrow: #0868bd;
  --button: #146ef5;
  --button-hover: #075dcc;
  --success: #168a55;
  --denied: #9b5319;
  --done-surface: linear-gradient(180deg, #fff, #f7f7f7);
  --done-icon-surface: linear-gradient(180deg, #f1f1f1, #e9e9e9);
  --done-icon: #333;
  --done-product: #1f1f1f;
  --done-byline: #626262;
  --done-copy: #626262;
  --done-hint: #1f1f1f;
  --done-shadow: inset 0 .5px .5px rgb(255 255 255 / 80%), 0 1px 2px rgb(0 0 0 / 18%);
  --icon-shadow: inset 0 .67px .67px rgb(255 255 255 / 80%), 0 .67px 1.33px rgb(0 0 0 / 20%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--page-bg);
  color: var(--text);
}
.card {
  width: min(420px, calc(100% - 32px));
  padding: 28px 24px 22px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
}
.message-panel { min-width: 0; }
.product-panel,
.success-icon,
.corner-mark { display: none; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--eyebrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}
#lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.hint {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.45;
}
body.is-done h1 { color: var(--success); }
body.is-denied h1 { color: var(--denied); }
body.is-done .button { display: none; }

body.is-done .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(593px, calc(100% - 32px));
  padding: 64px;
  border: 0;
  border-radius: 24px;
  background: var(--done-surface);
  box-shadow: var(--done-shadow);
}
body.is-done .product-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
body.is-done .app-icon {
  color: var(--done-icon);
  border-radius: 12px;
  background: var(--done-icon-surface);
  box-shadow: var(--icon-shadow);
}
body.is-done .product-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--done-product);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}
body.is-done .built-by {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
body.is-done .built-by > span {
  color: var(--done-byline);
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
}
body.is-done .built-by > strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
body.is-done .message-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 421px;
  padding-top: 10px;
  text-align: center;
}
body.is-done .status-heading {
  display: flex;
  align-items: center;
  gap: 4px;
}
body.is-done .success-icon {
  display: block;
  flex: 0 0 auto;
  color: var(--success);
}
body.is-done h1 {
  margin: 0;
  color: var(--success);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
body.is-done #lead {
  margin: 0;
  color: var(--done-copy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
body.is-done .hint {
  margin: -8px 0 0;
  color: var(--done-hint);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
body.is-done .corner-mark {
  display: block;
  position: fixed;
  right: 48px;
  bottom: 48px;
}

@media (max-width: 720px) {
  body.is-done { padding: 24px 0; }
  body.is-done .card {
    gap: 24px;
    width: min(460px, calc(100% - 32px));
    padding: 32px 24px;
    border-radius: 18px;
  }
  body.is-done .message-panel {
    width: 100%;
    max-width: none;
  }
  body.is-done .corner-mark {
    right: 24px;
    bottom: 24px;
  }
}
