/* TOWER.EXE: the kourin (降臨) control tower. Tokens and window chrome come from ../apply.css;
   this file adds the door, the switch panels, the export card and the passport queue. */

.tower-window {
  max-width: 1180px;
}

.tower-office .office-hero,
.tower-office .notice {
  max-width: 1120px;
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------ door (signed out / checking / not staff / error) */

.door-card {
  max-width: 560px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.door-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px clamp(14px, 3vw, 22px) 20px;
}

.door-glyph {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--night);
  color: var(--moonlight);
  font: 900 2.2rem/1 var(--sans);
  box-shadow: var(--shadow-soft);
}

.door-card[data-panel="not_staff"] .door-glyph {
  background: var(--pink);
  color: var(--ink);
}

.door-card[data-panel="error"] .door-glyph {
  background: var(--chrome);
  color: var(--ink);
}

.door-card[data-panel="checking"] .door-glyph {
  animation: tower-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes tower-pulse {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 1;
  }
}

.door-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.door-title {
  margin: 0;
  overflow-wrap: anywhere;
  font: 900 1.05rem/1.25 var(--sans);
  text-transform: uppercase;
}

.door-title:focus {
  outline: none;
}

.door-title:focus-visible {
  outline: 3px dashed var(--blue);
  outline-offset: 2px;
}

.door-text {
  margin: 0;
  font: 700 0.84rem/1.5 var(--mono);
}

.door-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.door-fine {
  margin: 4px 0 0;
  color: var(--muted);
  font: 700 0.72rem/1.45 var(--mono);
}

.door-foot {
  margin: 0;
  padding: 0 clamp(14px, 3vw, 22px) 16px;
}

/* the two doors: LUNA's x login and the screener login (plain on purpose: a browsing agent uses it) */

.door-card:has(.doors:not([hidden])) {
  max-width: 760px;
}

.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 22px) 16px;
}

.door-option {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.door-x {
  background: var(--moonlight);
}

.door-option-title {
  margin: 0;
  padding: 0;
  font: 900 0.84rem/1.3 var(--mono);
  text-transform: uppercase;
}

.door-option-text {
  margin: 0;
  font: 700 0.76rem/1.45 var(--mono);
}

.door-option .btn95 {
  justify-self: start;
}

.screener-fieldset {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.screener-fieldset .field-label {
  margin: 4px 0 0;
}

.screener-fieldset .btn95 {
  margin-top: 6px;
}

.screener-fieldset:disabled {
  opacity: 0.6;
}

/* ------------------------------------------------------------ the tower */

.tower {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.tower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.panel-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.panel-hint,
.panel-line {
  margin: 0;
  color: var(--muted);
  font: 700 0.72rem/1.45 var(--mono);
}

.panel-hint:empty,
.panel-line:empty {
  display: none;
}

.panel-msg,
.export-msg,
.bulk-msg,
.card-msg,
.drafts-line {
  margin: 0;
  font: 800 0.74rem/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.panel-msg:empty,
.export-msg:empty,
.bulk-msg:empty,
.card-msg:empty,
.drafts-line:empty {
  display: none;
}

.is-error.panel-msg,
.is-error.export-msg,
.is-error.bulk-msg,
.is-error.card-msg {
  color: var(--error);
}

.is-ok.panel-msg,
.is-ok.export-msg,
.is-ok.bulk-msg,
.is-ok.card-msg {
  color: var(--ok);
}

/* switches: a checkbox dressed as a win95 slider */

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 28px;
  margin: 0;
  border: 2px solid var(--chrome-darker);
  border-right-color: #e6e6e6;
  border-bottom-color: #e6e6e6;
  background: var(--chrome);
  cursor: pointer;
  appearance: none;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-right-color: var(--chrome-darker);
  border-bottom-color: var(--chrome-darker);
  background: var(--chrome);
  box-shadow: 1px 1px 0 #000000;
  content: "";
  transition: transform 0.14s ease;
}

.switch:checked {
  background: var(--acid);
}

.switch:checked::after {
  transform: translateX(26px);
}

.switch:focus-visible {
  outline: 3px dashed var(--blue);
  outline-offset: 2px;
}

.switch:disabled {
  cursor: progress;
  opacity: 0.6;
}

.switch-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.switch-text b {
  font: 900 0.78rem/1.2 var(--mono);
  text-transform: uppercase;
}

.switch-text small {
  color: var(--muted);
  font: 700 0.72rem/1.4 var(--mono);
}

.deadline-form {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px dotted var(--chrome-dark);
  border-bottom: 1px dotted var(--chrome-dark);
}

.deadline-form .field-label {
  margin: 0;
}

.deadline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deadline-input {
  flex: 1 1 210px;
  width: auto;
  min-height: 40px;
  padding: 7px 10px;
}

.deadline-row .btn95,
.export-actions .btn95,
.tower-toolbar .btn95,
.bulk-bar .btn95,
.door-actions .btn95 {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 0.72rem;
}

.confirm {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--moonlight);
  box-shadow: var(--shadow-soft);
}

.confirm-question {
  margin: 0;
  font: 900 0.86rem/1.3 var(--sans);
  text-transform: uppercase;
}

.confirm-question:focus {
  outline: none;
}

.confirm-fine {
  margin: 0;
  font: 700 0.74rem/1.45 var(--mono);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* counts */

.counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 0;
}

.count {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--moonlight);
}

.count dt {
  font: 900 0.66rem/1.2 var(--mono);
  text-transform: uppercase;
}

.count dd {
  margin: 0;
  font: 900 1.6rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.count.tone-approved {
  background: var(--acid);
}

.count.tone-waitlist {
  background: var(--cyan);
}

.count.tone-rejected {
  background: var(--pink);
}

.count-shared {
  background: var(--white);
}

.count-shared.is-flagged {
  border-color: var(--error);
  background: var(--pink-soft);
  color: var(--error);
}

/* export */

.export-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.export-block + .export-block {
  padding-left: 12px;
  border-left: 1px dotted var(--chrome-dark);
}

.export-title {
  margin: 0;
  font: 900 0.8rem/1.2 var(--mono);
  text-transform: uppercase;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font: 800 0.74rem/1.2 var(--mono);
  cursor: pointer;
}

.check-row input,
.app-select input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

/* audit */

.audit {
  display: grid;
  gap: 0;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.audit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 5px 2px;
  border-bottom: 1px dotted var(--chrome-dark);
  font: 700 0.72rem/1.4 var(--mono);
}

.audit-at {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.audit-action {
  padding: 0 5px;
  border: 1px solid var(--ink);
  background: var(--cyan-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.audit-action.action-staff_decide {
  background: var(--acid);
}

.audit-action.action-staff_settings {
  background: var(--moonlight);
}

.audit-action.action-staff_export {
  background: var(--pink-soft);
}

.audit-action.action-screener_decide {
  background: #efe6ff;
}

.audit-actor {
  font-weight: 900;
}

.audit-details {
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ queue */

.queue {
  display: grid;
  gap: 10px;
}

.section-title {
  margin: 0;
  font: 900 1.05rem/1.2 var(--sans);
  text-transform: uppercase;
}

.section-title:focus {
  outline: none;
}

.tower-toolbar,
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px;
  border: 2px solid var(--white);
  border-right-color: var(--chrome-darker);
  border-bottom-color: var(--chrome-darker);
  background: var(--chrome);
  box-shadow: 1px 1px 0 #000000;
}

.tower-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
}

.bulk-bar {
  background: #d7d7ef;
}

.tool-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tool-search {
  flex: 1 1 320px;
}

.tool-label {
  font: 900 0.72rem/1 var(--mono);
  text-transform: uppercase;
}

.select95 {
  min-height: 40px;
  padding: 6px 8px;
  border: 2px solid var(--chrome-darker);
  border-right-color: #e6e6e6;
  border-bottom-color: #e6e6e6;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 800 16px/1.2 var(--mono);
}

.select95:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 1px;
}

.search-input {
  flex: 1 1 160px;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
}

.page-readout,
.bulk-count {
  font: 900 0.74rem/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}

.bulk-msg {
  flex: 1 1 100%;
}

.btn95.is-armed {
  background: var(--moonlight);
  outline: 2px dashed var(--error);
  outline-offset: 1px;
}

.untrusted-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--pink-ink);
  background: var(--pink-soft);
  font: 700 0.74rem/1.45 var(--mono);
}

.cards {
  display: grid;
  gap: 14px;
  transition: opacity 0.2s ease;
}

.cards.is-loading {
  opacity: 0.55;
}

.drafts-line {
  padding: 6px 10px;
  border: 1px dashed var(--chrome-darker);
  background: var(--moonlight);
}

.empty-page,
.end-line {
  margin: 0;
  font: 800 0.78rem/1.45 var(--mono);
  text-align: center;
}

.end-line:empty {
  display: none;
}

/* ------------------------------------------------------------ passport cards */

.app-card {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  /* The sticky toolbar never covers a card (or a control in it) that is scrolled or focused into view. */
  scroll-margin-top: 150px;
}

.app-card :is(a, button, input, textarea, summary) {
  scroll-margin-top: 150px;
}

.app-card.has-unsaved-note {
  box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--moonlight);
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 7px),
    var(--blue);
  color: var(--white);
}

.app-select {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--white);
  cursor: pointer;
}

.app-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font: 900 0.86rem/1.3 var(--mono);
}

.app-status {
  padding: 2px 8px;
  border: 1px solid var(--ink);
  background: var(--moonlight);
  color: var(--ink);
  font: 900 0.7rem/1.4 var(--mono);
  text-transform: uppercase;
}

.tone-approved .app-status {
  background: var(--acid);
}

.tone-waitlist .app-status {
  background: var(--cyan);
}

.tone-rejected .app-status {
  background: var(--pink);
}

.tone-unknown .app-status {
  background: var(--chrome);
}

.app-id {
  color: var(--white);
  font: 700 0.68rem/1.2 var(--mono);
  text-underline-offset: 3px;
  opacity: 0.9;
}

.app-id:hover {
  opacity: 1;
}

.app-by {
  padding: 2px 7px;
  border: 1px solid var(--white);
  font: 900 0.66rem/1.4 var(--mono);
  text-transform: uppercase;
}

.app-by.by-screener {
  background: #efe6ff;
  color: var(--ink);
}

.btn95.btn-mini,
.app-head .copy-link {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.64rem;
}

.link-msg {
  padding: 6px 12px 0;
}

.app-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 0;
  list-style: none;
}

.app-flags li {
  padding: 3px 7px;
  border: 1px solid var(--error);
  background: var(--pink-soft);
  color: var(--error);
  font: 900 0.7rem/1.3 var(--mono);
}

.app-fields {
  display: grid;
  margin: 0;
  padding: 8px 12px 10px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 2px 12px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--chrome-dark);
}

.field-row dt {
  color: var(--muted);
  font: 800 0.72rem/1.45 var(--mono);
  text-transform: uppercase;
}

.field-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 700 0.8rem/1.45 var(--mono);
}

.field-row.is-flagged dd {
  color: var(--error);
  font-weight: 900;
}

.field-row.is-wallet {
  background: var(--cyan-soft);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.field-row.is-vault {
  background: #fff8d8;
  box-shadow: inset 4px 0 0 #e0b400;
}

.field-row.is-solana {
  background: #f1eaff;
  box-shadow: inset 4px 0 0 #8a5cf6;
}

.field-row.is-wallet dt,
.field-row.is-vault dt,
.field-row.is-solana dt {
  padding-left: 10px;
}

.field-row.is-empty {
  background: transparent;
  box-shadow: none;
}

.addr {
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
  user-select: all;
}

.addr.is-bad {
  color: var(--error);
}

.addr-name {
  padding: 0 6px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-weight: 900;
}

.addr-input {
  color: var(--muted);
  font-size: 0.72rem;
}

.addr-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.ext-link {
  color: var(--blue);
  font-weight: 900;
  text-underline-offset: 3px;
}

.ext-link:hover {
  color: var(--pink-ink);
}

.flag-inline {
  color: var(--error);
  font-weight: 900;
}

.pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pick {
  padding: 1px 7px;
  border: 1px solid var(--ink);
  background: var(--moonlight);
  font: 800 0.74rem/1.45 var(--mono);
}

.pick.is-none {
  border-style: dashed;
  background: var(--white);
  color: var(--muted);
}

.app-answers {
  margin: 0 12px;
  border: 1px solid var(--chrome-dark);
  background: var(--paper);
}

.app-answers summary {
  min-height: 36px;
  padding: 8px 10px;
  cursor: pointer;
  font: 900 0.72rem/1.4 var(--mono);
  text-transform: uppercase;
}

.answer-list {
  display: grid;
  margin: 0;
  padding: 0 10px 10px;
}

.answer-row {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px dashed var(--chrome);
}

.answer-id {
  color: var(--muted);
  font: 900 0.7rem/1.3 var(--mono);
}

.answer-text {
  margin: 0;
  padding: 6px 9px;
  border-left: 4px solid var(--pink);
  background: var(--white);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: 700 0.8rem/1.5 var(--mono);
}

.answer-text.is-picks {
  border-left-color: var(--cyan);
}

/* grok's call on a passport: its verdict and its own words, quoted */

.grok-call {
  display: grid;
  gap: 4px;
  margin: 10px 12px 0;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-left-width: 5px;
  background: #f5f0ff;
}

.grok-call.call-pass {
  border-left-color: #6cae00;
}

.grok-call.call-fail {
  border-left-color: var(--pink-ink);
}

.grok-call.call-review {
  border-left-color: #8a5cf6;
}

.grok-line {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: 700 0.78rem/1.5 var(--mono);
}

.grok-verdict {
  font-weight: 900;
  text-transform: uppercase;
}

.grok-by {
  color: var(--muted);
}

.grok-eyes {
  justify-self: start;
  margin: 0;
  padding: 1px 7px;
  border: 1px solid var(--ink);
  background: var(--moonlight);
  font: 900 0.68rem/1.4 var(--mono);
  text-transform: uppercase;
}

.undo-hint {
  margin: 0;
  color: var(--muted);
  font: 700 0.7rem/1.4 var(--mono);
}

.app-review {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.reason-input {
  min-height: 72px;
  padding: 8px 10px;
  font-size: 15px;
}

textarea.reason-input {
  min-height: 72px;
}

.reason-hint {
  color: var(--muted);
  font: 700 0.68rem/1.3 var(--mono);
}

.locked-line {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed var(--chrome-darker);
  background: var(--chrome);
  font: 800 0.76rem/1.45 var(--mono);
}

.decide-row.screen-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-pass[aria-pressed="true"] {
  background: var(--acid);
}

.screen-fail[aria-pressed="true"] {
  background: var(--pink);
}

.screen-review[aria-pressed="true"] {
  background: var(--moonlight);
}

.app-review .field-label {
  margin: 0;
}

.note-input {
  min-height: 64px;
  padding: 8px 10px;
  font-size: 15px;
}

textarea.note-input {
  min-height: 64px;
}

.note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.note-count {
  color: var(--muted);
  font: 700 0.7rem/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}

.note-count.is-over {
  color: var(--error);
  font-weight: 900;
}

.note-row .btn95 {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.7rem;
}

.decide-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.decide-btn {
  min-height: 42px;
  padding: 7px 6px;
  font-size: 0.72rem;
  text-transform: lowercase;
}

.decide-btn[aria-pressed="true"] {
  border-color: var(--chrome-darker);
  border-right-color: var(--white);
  border-bottom-color: var(--white);
  box-shadow: none;
}

.decide-approved[aria-pressed="true"] {
  background: var(--acid);
}

.decide-waitlist[aria-pressed="true"] {
  background: var(--cyan);
}

.decide-rejected[aria-pressed="true"] {
  background: var(--pink);
}

.decide-pending[aria-pressed="true"] {
  background: var(--moonlight);
}

.btn95[aria-busy="true"] {
  cursor: progress;
}

/* ------------------------------------------------------------ screener mode + screener accounts */

.screener-banner {
  border-color: #8a5cf6;
}

.screener-banner .doc-band {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 7px),
    #4b2aa8;
}

.screener-who {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  background: #efe6ff;
  font: 900 0.84rem/1.35 var(--mono);
}

.brief {
  display: grid;
  gap: 6px;
}

.brief-line {
  margin: 0;
  overflow-wrap: anywhere;
  font: 700 0.78rem/1.55 var(--mono);
}

.brief-line:first-child {
  font-weight: 900;
  text-transform: uppercase;
}

.tower.is-screener .tower-grid {
  grid-template-columns: minmax(0, 1fr);
}

.panel-screeners {
  grid-column: 1 / -1;
}

.screener-create {
  display: grid;
  gap: 4px;
}

.screener-create .field-label {
  margin: 0;
}

.screener-new-input {
  flex: 1 1 200px;
  width: auto;
  min-height: 40px;
  padding: 7px 10px;
}

.secret-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--acid);
  box-shadow: var(--shadow-soft);
}

.secret-title {
  margin: 0;
  font: 900 0.84rem/1.3 var(--mono);
}

.secret-title:focus {
  outline: none;
}

.secret-fine {
  margin: 0;
  font: 700 0.72rem/1.45 var(--mono);
}

.secret-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.secret-value {
  flex: 1 1 260px;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  font-size: 15px;
  letter-spacing: 0.02em;
  user-select: all;
}

.secret-row .btn95 {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 0.72rem;
}

.screener-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screener-list:empty {
  display: none;
}

.screener-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px dotted var(--chrome-dark);
}

.screener-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
}

.screener-name {
  font: 900 0.86rem/1.3 var(--mono);
  overflow-wrap: anywhere;
}

.screener-state {
  padding: 0 6px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font: 900 0.66rem/1.5 var(--mono);
  text-transform: uppercase;
}

.screener-row.is-disabled .screener-state {
  background: var(--chrome);
}

.screener-row.is-disabled .screener-name {
  color: var(--muted);
  text-decoration: line-through;
}

.screener-meta {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font: 700 0.7rem/1.4 var(--mono);
}

.screener-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 860px) {
  .tower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tower-toolbar {
    position: static;
  }

  .tool-group {
    flex: 1 1 100%;
  }

  .tool-pager .btn95 {
    flex: 1 1 0;
  }

  .select95 {
    flex: 1 1 auto;
  }

  .export-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .export-block + .export-block {
    padding: 12px 0 0;
    border-top: 1px dotted var(--chrome-dark);
    border-left: 0;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column: the value sits under its label, so it gets the label's inset from the colour bar. */
  .field-row.is-wallet dd,
  .field-row.is-vault dd,
  .field-row.is-solana dd {
    padding-left: 10px;
  }

  .app-card,
  .app-card :is(a, button, input, textarea, summary) {
    scroll-margin-top: 12px;
  }

  .decide-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .door-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .doors {
    grid-template-columns: minmax(0, 1fr);
  }

  .screener-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .screener-actions {
    justify-content: flex-start;
    grid-column: 1;
    grid-row: auto;
  }

  .door-card,
  .panel,
  .app-card {
    box-shadow: 3px 3px 0 rgba(16, 16, 16, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .switch::after,
  .cards {
    transition: none;
  }

  .door-card[data-panel="checking"] .door-glyph {
    animation: none;
  }
}
