/* Shared confirmation dialog (confirm-dialog.js) and the publish/freeze flow on the account
   page, which uses the same shell.

   These live in their own file because the dialog is a shared component: listen.html loads
   confirm-dialog.js without ever loading account2.css, so the End Party dialog rendered with the
   slanted .upload-modal clip-path but none of the width or padding that keeps text clear of the
   slant — the first letter of every line was sliced off. Styles for a shared component belong
   with the component, not in whichever page happened to need it first. */

/* Publish & freeze confirmation dialog. Reuses the slanted .upload-modal shell
   (clip-path) and theme variables only. */
.nf-publish-modal {
  width: min(520px, 92vw);
}

.nf-publish-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border-accent);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg-subtle);
}

.nf-publish-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nf-publish-title {
  color: var(--text-primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 0.95;
  letter-spacing: 1.5px;
}

.nf-publish-body {
  display: grid;
  gap: 12px;
  padding: 22px 26px;
}

.nf-publish-warning {
  margin: 0;
  padding: 14px 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--border-accent);
}

.nf-publish-warning strong {
  color: var(--text-primary);
}

.nf-publish-phrase {
  padding: 12px 16px;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 20px;
  letter-spacing: 4px;
  text-align: center;
  color: var(--accent);
  background: var(--bg-input);
  border: 1px dashed var(--border-medium);
  user-select: none;
}

.nf-publish-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  letter-spacing: 3px;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid var(--border-medium);
}

.nf-publish-input:focus {
  outline: none;
  border-color: var(--accent);
}

.nf-publish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--border-subtle);
}

/* Frozen (published) board: the public toggle reads as locked-on. */
.nf-form.is-frozen .nf-public-toggle {
  opacity: 0.75;
}

.nf-voting-help {
  margin: 0 0 4px;
  padding-inline: 4px;
}

.nf-deadline-row small {
  display: block;
}

/* datetime-local inside the Start Voting dialog, matching the modal inputs. */
.nf-publish-body .form-row {
  display: grid;
  gap: 6px;
}

.nf-publish-body input[type="datetime-local"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid var(--border-medium);
}

.nf-publish-body input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--accent);
}

.nf-reveal-picker {
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
