/* The owner's Testers page. Phone first: one column, big copy buttons. Builds on player.css (palette, font). */
.testers #app { max-width: 720px; padding-bottom: 80px; }
.testers .links { margin-left: auto; display: flex; gap: 6px; }
.testers a.mini { text-decoration: none; display: inline-flex; align-items: center; }
.testers h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.testers .small { font-size: 12px; }
.mono { font-family: var(--font); overflow-wrap: anywhere; word-break: break-all; }
#msg { border-color: var(--cue); color: var(--cue); }
#msg a { color: var(--lit); }

.jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 8px 0; background: var(--faceplate); }
.jump a { flex: 1; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); padding: 8px 4px; background: #1b1c1f; }
.jump a:active { border-color: var(--lit); }
.testers section { scroll-margin-top: 56px; }

/* big tap targets */
.big { font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #16110b; background: var(--lit);
  border: 1px solid var(--lit); min-height: 52px; padding: 10px 16px; cursor: pointer; flex: 1 1 140px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.big:active { filter: brightness(.85); }
.big.alt { background: transparent; color: var(--lit); }
.big:disabled { opacity: .5; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acts:empty { display: none; }
.small-acts { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.small-acts .mini { min-height: 40px; padding: 6px 12px; margin: 0; }

.latest { border: 1px solid var(--lit); padding: 12px; background: var(--glass); }
.latest .k { font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.latest .v { font-size: 15px; color: var(--lit); margin: 4px 0; }
.latest .s { font-size: 13px; }
.latest #newLatest { margin: 10px 0 0; min-height: 40px; }

/* forms */
.testers form { display: grid; gap: 10px; margin-top: 10px; }
.testers form.make { grid-template-columns: 1fr; }
.testers label { display: grid; gap: 4px; font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.testers input, .testers textarea { font: inherit; font-size: 16px; /* 16px keeps iOS from zooming */ color: var(--ink);
  background: var(--glass); border: 1px solid var(--line); padding: 10px; min-height: 48px; width: 100%; border-radius: 0; }
.testers input:focus, .testers textarea:focus { outline: none; border-color: var(--lit); }
.testers input[type=file] { padding: 10px 6px; font-size: 14px; }
.testers textarea { font-size: 12px; resize: vertical; }
.or { text-align: center; font-size: 12px; }
@media (min-width: 600px) {
  .testers form.make { grid-template-columns: 1fr 1fr 110px; align-items: end; }
  .testers form.make .big { grid-column: 1 / -1; }
  #keyForm.make { grid-template-columns: 1fr 1fr 110px; }
}
details.add { margin-top: 12px; border: 1px solid var(--line); }
details.add summary { cursor: pointer; padding: 12px; min-height: 48px; list-style: none; font-weight: 700; letter-spacing: .04em; }
details.add summary::before { content: "+ "; color: var(--lit); }
details.add[open] summary::before { content: "- "; }
details.add form { padding: 0 12px 12px; margin: 0; }
.progress { position: relative; height: 26px; border: 1px solid var(--line); background: var(--glass); }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--a); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 24px; }

/* the code or key just made */
.fresh { margin-top: 12px; border: 1px solid var(--lit); background: var(--glass); padding: 12px; }
.fresh .v { font-size: 20px; color: var(--lit); letter-spacing: .04em; }
.fresh .v.key { font-size: 11px; max-height: 6.5em; overflow: auto; }

/* lists */
.cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.card { border: 1px solid var(--line); padding: 12px; background: #1b1c1f; }
.card.off { opacity: .6; }
.card .head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.card .head b { font-size: 15px; overflow-wrap: anywhere; }
.card .facts { font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.card .link { font-size: 12px; margin-top: 6px; color: #cfcabd; }
.card .link.key { font-size: 10px; max-height: 3.2em; overflow: hidden; color: var(--dim); }
.empty { font-size: 13px; }
.pill { font-size: 10.5px; letter-spacing: .08em; border: 1px solid var(--line); padding: 0 6px; color: var(--dim); }
.pill.on { color: var(--a); border-color: var(--a); }
.pill.off { color: var(--cue); border-color: #6a4b43; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--lit); color: #16110b; font-weight: 700; padding: 12px 18px; pointer-events: none; transition: opacity .15s, transform .15s;
  max-width: calc(100vw - 32px); text-align: center; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
