/* ==========================================================================
   watch.css — page-scoped styles for /watch, /pro, and the /admin console.
   Loaded via PageMeta.styles = ['watch']. Class prefixes: .watch-, .admin-,
   plus the .key-reveal box. Everything else reuses site.css.
   ========================================================================== */

/* ---- watch form cards ---- */
.watch-card { max-width: 620px; margin-left: auto; margin-right: auto; }
.watch-title { font-size: clamp(1.6rem, 4vw, 2.1rem); }

.watch-form { display: grid; gap: 16px; margin-top: 6px; }
.watch-form .btn { justify-self: start; }

.watch-doctor { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-edge); }
.watch-doctor .nm { font-family: var(--font-display); font-weight: 620; font-size: 1.3rem; }
.watch-doctor .ctx { color: var(--muted); font-size: 0.92rem; }

/* no-JS search fallback: pick-a-doctor result list */
.watch-pick { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.watch-pick a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; min-height: 44px; border-radius: var(--r-md);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-edge);
  text-decoration: none; color: var(--ink);
}
.watch-pick a:hover { background: #fff; border-color: rgba(14, 124, 134, 0.3); }
.watch-pick .who { display: flex; flex-direction: column; }
.watch-pick .t { font-weight: 650; }
.watch-pick .s { font-size: 0.85rem; color: var(--muted); }

/* confirmed-watches list on /watch/confirm */
.watch-list { list-style: none; margin: 8px 0 0; padding: 0; }
.watch-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-edge);
}
.watch-list li:last-child { border-bottom: none; }
.watch-list .who { display: flex; flex-direction: column; min-width: 0; }
.watch-list .s { font-size: 0.85rem; color: var(--muted); }

/* ---- admin console ---- */
.admin-nav {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  padding: 8px 10px; border-radius: var(--r-pill); margin: 4px 0 26px;
}
.admin-nav a {
  font: 600 0.95rem var(--font-ui); color: var(--ink-soft); text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-pill); min-height: 44px;
  display: inline-flex; align-items: center;
}
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: var(--accent-wash); color: var(--accent-deep); }

.admin-table td form { margin: 0; }
.admin-table td .chip { vertical-align: middle; }

.admin-form {
  display: grid; gap: 14px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.admin-form .btn { width: 100%; }

/* ---- one-time key reveal ---- */
.key-reveal {
  background: var(--amber-soft);
  border: 1.5px dashed rgba(180, 122, 42, 0.45);
  border-radius: var(--r-md);
  padding: 16px 18px;
  overflow-x: auto;
}
.key-reveal code {
  display: block;
  font-family: var(--font-num);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  word-break: break-all;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
}

@media (max-width: 560px) {
  .watch-pick a, .watch-list li { flex-wrap: wrap; }
  .admin-form { grid-template-columns: 1fr; }
}
