#tt-root {
  --lime: #b8ff00;
  --cyan: #00f0ff;
  --ink: #0d1117;
  --ink2: #161f2a;
  --softblue: #c0fcff;
  --dim: #6b7789;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--ink);
  color: var(--softblue);
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
}
#tt-root * { box-sizing: border-box; }

.tt-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.tt-back {
  display: inline-block;
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.tt-back:hover { color: var(--cyan); }

/* ---- terminal header bar ---- */
.tt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0a0e14;
  border: 1px solid #ffffff14;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.tt-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a3441; }
.tt-bar-label {
  margin-left: 8px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.tt-screen {
  border: 1px solid #ffffff14;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #0d1117 0%, #0b0f15 100%);
  padding: 32px 28px 28px;
}

.tt-boot {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 22px;
  white-space: pre-wrap;
}
.tt-boot .ok { color: var(--lime); }

.tt-eyebrow {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tt-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.tt-title .accent { color: var(--lime); }
.tt-sub {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 52ch;
}
.tt-sub b { color: var(--softblue); font-weight: 600; }

.tt-divider {
  height: 1px;
  background: linear-gradient(90deg, #ffffff20, transparent);
  margin: 26px 0;
}

.tt-section-label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-section-label::before { content: '>'; color: var(--lime); }

label.tt-field {
  display: block;
  margin-bottom: 18px;
}
.tt-field-label {
  display: block;
  font-size: 12px;
  color: var(--softblue);
  margin-bottom: 7px;
}
.tt-field-label .req { color: var(--lime); }
.tt-field-label .opt { color: var(--dim); font-style: italic; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  background: #0a0e14;
  border: 1px solid #ffffff1c;
  border-radius: 4px;
  padding: 11px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #00f0ff1a;
}
input::placeholder, textarea::placeholder { color: #3d4757; }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }

/* checkbox grid for availability */
.tt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
@media (max-width: 480px) {
  .tt-grid { grid-template-columns: 1fr; }
}
.tt-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  background: #0a0e14;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tt-check:hover { border-color: #ffffff30; }
.tt-check.checked { border-color: var(--lime); background: #b8ff000c; }
.tt-check input { display: none; }
.tt-check .box {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  border: 1px solid #4b5768;
  border-radius: 3px;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--ink);
  transition: all .15s ease;
}
.tt-check.checked .box { background: var(--lime); border-color: var(--lime); }
.tt-check .box::after { content: ''; }
.tt-check.checked .box::after { content: '✓'; }
.tt-check-text { font-size: 12.5px; color: var(--softblue); line-height: 1.4; }
.tt-check-text .tag { display:block; font-size: 10px; color: var(--dim); margin-top:2px; }

.tt-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-radio {
  padding: 8px 14px;
  background: #0a0e14;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  font-size: 12px;
  color: var(--dim);
  cursor: pointer;
  transition: all .15s ease;
}
.tt-radio:hover { border-color: #ffffff40; }
.tt-radio.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #00f0ff10;
}

.tt-req-inline { text-transform: none; font-size: 11px; }

.tt-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 20px;
  cursor: pointer;
}
.tt-consent input { display:none; }
.tt-consent .box {
  flex: 0 0 16px; width:16px; height:16px;
  border: 1px solid #4b5768; border-radius: 3px;
  margin-top: 2px;
  display:flex; align-items:center; justify-content:center;
  font-size: 11px; color: var(--ink);
}
.tt-consent.checked .box { background: var(--cyan); border-color: var(--cyan); }
.tt-consent.checked .box::after { content:'✓'; }
.tt-consent-text { font-size: 11.5px; color: var(--dim); line-height: 1.6; }

.tt-submit {
  width: 100%;
  padding: 15px 18px;
  background: var(--lime);
  color: #0d1117;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.tt-submit:hover { box-shadow: 0 0 24px #b8ff0055; }
.tt-submit:active { transform: scale(0.99); }
.tt-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow:none; }

.tt-error {
  font-size: 11.5px;
  color: #ff6b6b;
  margin-top: -8px;
  margin-bottom: 14px;
}

.tt-footer-note {
  text-align: center;
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 16px;
  line-height: 1.6;
}

/* success state */
.tt-success {
  text-align: center;
  padding: 30px 10px 10px;
}
.tt-success .glyph {
  font-size: 34px;
  color: var(--lime);
  margin-bottom: 14px;
}
.tt-success h3 {
  color: #fff;
  font-size: 19px;
  margin: 0 0 10px;
}
.tt-success p {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 42ch;
  margin: 0 auto;
}
.tt-success .tt-white { color: #fff; }
.tt-success .node-id {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  background: #0a0e14;
  border: 1px solid var(--lime);
  border-radius: 4px;
  color: var(--lime);
  font-size: 11px;
}

.tt-recap {
  margin-top: 18px;
  text-align: left;
  font-size: 11px;
  color: var(--dim);
  background: #0a0e14;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  padding: 12px 14px;
  line-height: 1.9;
}
.tt-recap b { color: var(--softblue); }
