/* Add / edit entry dialog. */

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
/* lock toggle: an outlined padlock, solid and red-inked when locked */
.lock-toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  margin-top: -0.1rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-soft);
}
.lock-toggle:hover { border-color: var(--accent); color: var(--text); }
.lock-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lock-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lock-toggle[aria-pressed="true"] { color: var(--secondary); }
.lock-toggle[aria-pressed="true"] rect { fill: currentColor; }
.lock-toggle[aria-pressed="true"] .icon-unlocked,
.lock-toggle[aria-pressed="false"] .icon-locked { display: none; }

#event-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  flex: 1;
}
#event-form textarea { resize: vertical; }
