/* Sign up / log in / guest step and the anonymous toggle, shared by /dated/ and /complaints/ (gate.js).
   Black and white like the rest of the site; works inside the pages' .dt scope. */
.dg { margin-top: 48px; border: 1px solid var(--line, #e4e4e4); border-radius: 22px; padding: 32px; display: grid; gap: 24px; transition: opacity .15s; }
.dg.dg-loading { opacity: 0; pointer-events: none; }
.dg h2 { font-size: 24px; line-height: 1.3; font-weight: 400; margin: 0; }
.dg > p { color: var(--muted, #5f6772); margin: 0; }

.dg-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dg-opt { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid #ccc; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.dg-opt:hover { border-color: var(--accent, rgb(50, 50, 50)); }
.dg-opt.main { background: var(--accent, rgb(50, 50, 50)); border-color: var(--accent, rgb(50, 50, 50)); color: #fff; }
.dg-opt.main:hover { background: rgb(70, 70, 70); }
.dg-opt svg { width: 28px; height: 28px; }
.dg-opt b { font-size: 18px; font-weight: 400; }
.dg-opt span { font-size: 14px; opacity: .75; }
.dg-anon-link { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--muted, #5f6772); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Inside the form: who it's from and the anonymous switch. */
.dg-bar { display: grid; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--soft, #f6f6f4); }
.dg-who { font-size: 15px; margin: 0; }
.dg-who a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dg-mail { color: var(--muted, #5f6772); font-size: 14px; }
.dg-dot { display: inline-block; vertical-align: 1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent, rgb(50, 50, 50)); margin-right: 8px; box-sizing: border-box; }
.dg-dot.on { background: var(--accent, rgb(50, 50, 50)); }

.dg-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; justify-self: start; }
.dg-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dg-track { position: relative; width: 44px; height: 26px; border-radius: 1000px; background: #ccc; transition: background .15s; flex: none; }
.dg-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.dg-switch input:checked + .dg-track { background: var(--accent, rgb(50, 50, 50)); }
.dg-switch input:checked + .dg-track::after { transform: translateX(18px); }
.dg-switch input:focus-visible + .dg-track { outline: 2px solid var(--accent, rgb(50, 50, 50)); outline-offset: 2px; }
.dg-switch small { display: block; font-size: 13px; color: var(--muted, #5f6772); }

@media (max-width: 920px) {
  .dg { margin-top: 36px; padding: 24px 20px; }
  .dg-opts { grid-template-columns: 1fr; }
  .dg-opt { grid-template-columns: 28px 1fr; column-gap: 14px; align-items: center; }
  .dg-opt svg { grid-row: span 2; }
}
