/* ============================================================
   TEN Effects -- pedal tools (backup, and later restore/share).
   Builds on ten.css; everything here is prefixed pt-.
   ============================================================ */

.pt-page {
  --live: var(--bridgeofvibes-sig);
  --live-deep: var(--bridgeofvibes-deep);
  --pt-ok: #4FE0C4;
  --pt-bad: #F0806F;
  --pt-default: #C7C67E;
}

.pt-band { padding: 44px 0; scroll-margin-top: 72px; }
.pt-band[hidden] { display: none; }

/* ---------- intro ---------- */

.pt-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pt-needs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}
.pt-needs li {
  position: relative;
  padding: 0 0 14px 26px;
  color: var(--bone-2);
}
.pt-needs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--live);
  border-radius: 50%;
}
.pt-needs b { color: var(--bone); font-weight: 600; }

.pt-safe {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--live);
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 16px;
  color: var(--bone-2);
}
.pt-safe p { margin: 0; }
.pt-safe .pt-safe-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
  margin-bottom: 8px;
}

.pt-unsupported { margin: 28px 0 0; }
.pt-unsupported p { margin: 0; }

/* ---------- step headings ---------- */

.pt-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.pt-step-head .ten-h2 { margin: 0; }
.pt-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--live);
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 15px;
}

/* ---------- buttons ---------- */

.pt-actions { margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pt-test-btn { min-height: 46px; padding: 0 18px; }
.pt-test-btn:disabled { color: var(--bone-3); cursor: not-allowed; }

/* adapter test result */
.pt-test {
  max-width: 640px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bone-3);
  border-radius: 4px;
  background: var(--ink-2);
}
.pt-test[hidden] { display: none; }
.pt-test.is-ok { border-left-color: var(--pt-ok); }
.pt-test.is-warn { border-left-color: var(--pt-default); }
.pt-test.is-bad { border-left-color: var(--pt-bad); }
.pt-test-title { margin: 0 0 6px; font-weight: 600; }
.pt-test.is-ok .pt-test-title { color: var(--pt-ok); }
.pt-test.is-warn .pt-test-title { color: var(--pt-default); }
.pt-test.is-bad .pt-test-title { color: var(--pt-bad); }
.pt-test-text { margin: 0 0 10px; color: var(--bone-2); font-size: 15px; }
.pt-test-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
  font-size: 13px;
}
.pt-test-facts dt { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--bone-3); padding-top: 2px; }
.pt-test-facts dd { margin: 0; font-family: var(--font-mono); color: var(--bone-2); overflow-wrap: anywhere; }
.pt-btn { min-height: 46px; }
.pt-btn:hover { filter: brightness(1.08); }
.pt-btn:disabled {
  background: var(--ink-3);
  color: var(--bone-3);
  cursor: not-allowed;
  filter: none;
}

.pt-link-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.pt-link-btn:hover { border-color: var(--live); }

/* ---------- progress ---------- */

.pt-progress {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  max-width: 460px;
  font-size: 16px;
}
.pt-progress li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--bone-3);
}
.pt-progress li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid var(--line);
  box-sizing: border-box;
}
.pt-progress li.is-active { color: var(--bone); }
.pt-progress li.is-active::before {
  border-color: var(--live);
  border-right-color: transparent;
  animation: pt-spin 0.8s linear infinite;
}
.pt-progress li.is-done { color: var(--bone-2); }
.pt-progress li.is-done::before {
  border-color: var(--pt-ok);
  background: var(--pt-ok);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.pt-progress li.is-failed { color: var(--pt-bad); }
.pt-progress li.is-failed::before {
  border-color: var(--pt-bad);
  background: var(--pt-bad);
  box-shadow: inset 0 0 0 3px var(--ink);
}
@keyframes pt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pt-progress li.is-active::before { animation: none; border-right-color: var(--live); }
}

.pt-error { max-width: 640px; }
.pt-error ul { margin: 6px 0 0; padding-left: 1.1em; }
.pt-error .pt-error-lead { margin: 0; }

/* ---------- what was read ---------- */

.pt-found {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--bone-2);
  margin: 0 0 20px;
}
.pt-found strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--bone);
}
.pt-file-notes {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bone-2);
}

.pt-warnings {
  margin: 0 0 22px;
  padding: 12px 18px 12px 34px;
  border: 1px solid #5A5530;
  background: #1C1B14;
  border-radius: 4px;
  font-size: 15px;
  color: var(--pt-default);
  max-width: 760px;
}

.pt-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  align-items: start;
}

.pt-block {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px 14px;
  min-width: 0;
}
.pt-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.pt-block-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.pt-block-note { margin: 10px 0 4px; font-size: 15px; color: var(--bone-2); }
.pt-block-problems { margin: 10px 0 4px; padding-left: 1.1em; font-size: 15px; color: var(--pt-bad); }

.pt-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.pt-badge.is-ok { color: var(--pt-ok); }
.pt-badge.is-default { color: var(--pt-default); }
.pt-badge.is-bad { color: var(--pt-bad); }

.pt-group {
  margin: 14px 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.pt-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  font-size: 15px;
}
.pt-values dt, .pt-values dd {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pt-values dt { color: var(--bone-2); padding-right: 14px; }
.pt-values dd {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  color: var(--bone);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- save form ---------- */

.pt-save { max-width: 640px; }
.pt-modes {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pt-legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-2);
  margin-bottom: 9px;
  padding: 0;
}
.pt-mode {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
}
.pt-mode:hover { border-color: var(--bone-3); }
.pt-mode:has(input:checked) { border-color: var(--live); }
.pt-mode input {
  margin: 4px 0 0;
  accent-color: var(--live);
  width: 17px;
  height: 17px;
  flex: none;
}
.pt-mode-body { display: block; }
.pt-mode-name { display: block; font-weight: 600; }
.pt-mode-desc { display: block; font-size: 15px; color: var(--bone-2); }

.pt-save textarea { min-height: 88px; }
.pt-saved {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--pt-ok);
}

/* ---------- file check ---------- */

.pt-file {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  cursor: pointer;
  max-width: 100%;
}
.pt-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.pt-file-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--live);
  color: var(--live);
  border-radius: 3px;
  padding: 12px 20px;
}
.pt-file:hover .pt-file-btn { background: rgba(79, 224, 196, 0.08); }
.pt-file input:focus-visible + .pt-file-btn { outline: 2px solid var(--live); outline-offset: 3px; }
.pt-file-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-3);
  overflow-wrap: anywhere;
}

/* ---------- technical details ---------- */

.pt-log summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.pt-log p { color: var(--bone-3); font-size: 15px; margin: 12px 0; }
.pt-log-text {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--bone-2);
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 12px;
}

@media (max-width: 900px) {
  .pt-intro { grid-template-columns: 1fr; gap: 24px; }
  .pt-band { padding: 34px 0; }
}
@media (max-width: 560px) {
  .pt-blocks { grid-template-columns: 1fr; }
  .pt-block { padding: 16px 16px 12px; }
}

/* ---------- saving to an account ---------- */

.pt-save-actions { margin: 4px 0 0; }
.pt-acct-line { margin: 12px 0 0; font-size: 14px; color: var(--bone-3); }
.pt-acct-status { margin: 14px 0 0; font-size: 15px; max-width: 640px; }
.pt-acct-status[hidden] { display: none; }
.pt-acct-status a { color: inherit; text-decoration: underline; }
.pt-acct-status.is-ok { color: var(--pt-ok); }
.pt-acct-status.is-note { color: var(--bone-2); }
.pt-acct-status.is-bad { color: var(--pt-bad); }
.pt-file-save { margin: 22px 0 0; }

.pt-pending {
  max-width: 640px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--live);
  border-radius: 4px;
  padding: 20px 22px;
}
.pt-pending .pt-actions { margin: 16px 0 0; }
.pt-pending-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
}
.pt-pending-what { margin: 0; color: var(--bone); }

/* ---------- loading a checked file onto a pedal ---------- */

.pt-file-load { margin: 30px 0 0; max-width: 640px; }
.pt-file-load[hidden] { display: none; }
.pt-file-load-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.pt-feel-link { display: inline-block; margin-left: 6px; color: var(--live); }

/* ---- Bridge of Vibes tools (bridgeofvibes-tools.html) and the way back to it ---- */
.ten-banner-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.ten-banner-eyebrow a:hover { color: var(--bone); }
.pt-hub { margin-bottom: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pt-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pt-hub { grid-template-columns: 1fr; } }
.pt-hub .ten-card-foot { gap: 12px; }
.pt-hub-card { display: flex; flex-direction: column; }
.pt-hub-card .ten-card-desc { flex: 1 1 auto; }
.pt-hub-icon { height: 64px; margin-bottom: 18px; color: var(--card-accent); }
.pt-hub-icon svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-hub-go { color: var(--card-accent); white-space: nowrap; }
.pt-hub-card:focus-visible { outline: 2px solid var(--card-accent); outline-offset: 3px; }
.pt-signed { margin: 14px 0 0; font-size: 14px; color: var(--bone-2); }
.pt-signed b { color: var(--bone); font-weight: 600; }
.pt-signed a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }
.pt-access-band { padding-bottom: 0; }
.pt-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bridgeofvibes-sig);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 18px 22px;
}
.pt-access[hidden] { display: none; }
.pt-access .pt-actions { margin: 0; }
.pt-access-title { margin: 0 0 4px; font-weight: 600; color: var(--bone); }
.pt-access-text { margin: 0; color: var(--bone-2); max-width: 60ch; }
.pt-signed[hidden] { display: none; }

/* ---- "Is this your pedal?" (js/pedal-tools/pedal-link.js) ---- */
.pt-pedal { margin: 16px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--live); border-radius: 4px; background: var(--ink-2); max-width: 760px; }
.pt-pedal[hidden] { display: none; }
.pt-pedal.is-registered, .pt-pedal.is-quiet { border-left-color: var(--line); padding: 10px 16px; }
.pt-pedal-title { margin: 0 0 4px; font-weight: 600; color: var(--bone); }
.pt-pedal-line { margin: 0 0 10px; color: var(--bone-2); font-size: 15px; }
.pt-pedal.is-registered .pt-pedal-line, .pt-pedal.is-quiet .pt-pedal-line { margin: 0; font-size: 14px; }
.pt-pedal-line b { color: var(--bone); }
.pt-pedal .pt-actions { margin: 0; }
.pt-pedal-link { background: none; border: 0; padding: 0; color: var(--live); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- back to factory settings (pedal-backup.php #factory, js/pedal-tools/factory-page.js) ---------- */
.pt-factory-list { margin: 0 0 16px; padding-left: 20px; color: var(--bone-2); max-width: 760px; }
.pt-factory-list li { margin-bottom: 4px; }
.pt-factory-feel { margin: 0 0 18px; max-width: 760px; }
.pt-danger { background: var(--squishy-sig); }
.pt-factory-log { margin-top: 18px; }
