/* /play "wipe your crate" confirm modal.
 *
 * Restored verbatim from 46f4f2c — this block originally lived in
 * doghouse.css and was collaterally deleted by ff3903f (the docs ->
 * dochouse SPA rework rewrote that file and dropped the reset rules).
 * The modal markup (panels/play.html) + doghouse-reset.js survived, so
 * clicking "wipe" un-hid an UNSTYLED div that rendered in document flow
 * (appearing under the preview panel) instead of as a fixed overlay.
 * Lives in its own file now that doghouse.css is docs-only. */

.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(4px);
}
.reset-modal[hidden] { display: none; }

.reset-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 26px 26px 22px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.reset-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.reset-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}
.reset-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.reset-card p.reset-fine {
  font-size: 12px;
  color: var(--text-soft);
}
.reset-card code {
  background: rgba(var(--accent-rgb), 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.reset-cancel,
.reset-confirm {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reset-cancel:hover { background: rgba(255, 255, 255, 0.04); }
.reset-confirm {
  background: rgb(200, 60, 60);
  border-color: rgb(200, 60, 60);
  color: #fff;
  font-weight: 600;
}
.reset-confirm:hover { background: rgb(220, 75, 75); }
.new-session-icon { color: var(--accent-bright); }
.new-session-card p strong { color: var(--text); }
.new-session-confirm {
  background: rgba(var(--accent-rgb), 0.9);
  border-color: rgba(var(--accent-rgb), 0.9);
}
.new-session-confirm:hover { background: rgb(var(--accent-rgb)); }
.reset-confirm:disabled,
.reset-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reset-status {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgb(220, 90, 90);
}

/* --- Share dialog (preview → Share) --------------------------------
   Same overlay shell as the reset modal; friendlier body. */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(4px);
}
.share-modal[hidden] { display: none; }
.share-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 24px 26px 20px;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.share-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-card h2 .material-symbols { color: var(--accent-bright); font-size: 20px; }
.share-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.share-card code {
  background: rgba(var(--accent-rgb), 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.share-label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 6px;
}
.share-name {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: 14px/1.3 var(--font-mono);
}
.share-name:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); }
.share-fine {
  font-size: 12px;
  color: var(--text-soft);
  margin: 6px 0 0;
}
.share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.share-cancel,
.share-create,
.share-open,
.share-copy {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.share-cancel:hover { background: rgba(255, 255, 255, 0.04); }
.share-open {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
.share-open:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(var(--accent-rgb), 0.6); }
.share-create,
.share-copy {
  background: rgba(var(--accent-rgb), 0.9);
  border-color: rgba(var(--accent-rgb), 0.9);
  color: #fff;
  font-weight: 600;
}
.share-create:hover,
.share-copy:hover { background: rgb(var(--accent-rgb)); }
.share-create:disabled { opacity: 0.6; cursor: default; }
.share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.share-link {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: 12px/1.3 var(--font-mono);
}
.share-link:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); }
.share-open,
.share-copy { flex: 0 0 auto; }
.share-result-note {
  font-size: 12px;
  color: var(--positive, #8bd48b);
  margin: 0 0 8px;
}
.share-result-note[hidden] { display: none; }
.share-unshare {
  appearance: none;
  border: 1px solid rgba(200, 90, 90, 0.5);
  background: transparent;
  color: rgb(220, 120, 120);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: auto; /* push it to the left, Done stays right */
  transition: background 0.15s, color 0.15s;
}
.share-unshare:hover { background: rgba(200, 90, 90, 0.12); color: #fff; }
.share-unshare:disabled { opacity: 0.6; cursor: default; }
.share-status {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgb(220, 90, 90);
}
.share-status[hidden] { display: none; }
