.acct-dialog {
  color: var(--ink, #152f32);
  background: var(--surface, #fff);
  font: inherit;
  border: 1px solid var(--line, #d3dedb);
  border-radius: 18px;
  padding: clamp(1.15rem, 4vw, 2rem);
  width: min(calc(100% - 2rem), 28rem);
  max-width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 70px #122d3840;
  margin: auto;
  box-sizing: border-box;
}
.acct-dialog::backdrop { background: #10272b88; }
.acct-dialog [hidden] { display: none !important; }
.acct-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.acct-dialog-top h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.15; letter-spacing: -.035em; }
.acct-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  padding: 0; cursor: pointer; border: 0; border-radius: 50%; background: var(--sage, #eef5f2);
  color: var(--ink, #152f32); font: inherit; font-size: 1.65rem; line-height: 1;
}
.acct-intro, .acct-hint, .acct-empty p, .acct-date { color: var(--muted, #526565); line-height: 1.55; }
.acct-intro { font-size: 1rem; margin: 0 0 1.2rem; }
.acct-email { font-weight: 650; overflow-wrap: anywhere; margin: -.65rem 0 1.25rem; }
.acct-form { display: grid; gap: 1rem; }
.acct-form label { display: block; font-size: .93rem; font-weight: 600; }
.acct-form input:not([type=radio]), .acct-form textarea {
  display: block; box-sizing: border-box; margin-top: .45rem; width: 100%; padding: .75rem .8rem;
  min-height: 46px; border: 1px solid var(--line, #cad7d2); border-radius: 8px; font: inherit;
  font-size: 1rem; font-weight: 400; background: #fff; color: var(--ink, #152f32);
}
.acct-form textarea { resize: vertical; }
.acct-optional { color: var(--muted, #526565); font-weight: 400; }
.acct-choice { display: grid; gap: .3rem; }
.acct-choice label { display: flex; min-height: 40px; align-items: center; gap: .65rem; font-weight: 500; }
.acct-choice input { accent-color: var(--teal, #08665c); width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin: 0; }
.acct-hint { margin: 0; font-size: .88rem; }
.acct-btn {
  font: inherit; font-size: .95rem; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; padding: .68rem 1.1rem; min-height: 44px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3;
}
.acct-primary { background: var(--teal, #08665c); color: #fff; }
.acct-neutral { background: var(--surface, #fff); border-color: var(--line, #cad7d2); color: var(--ink, #152f32); }
.acct-neutral:hover { background: var(--sage, #eef5f2); }
.acct-primary:hover { filter: brightness(.92); }
.acct-btn:disabled, .acct-close:disabled { opacity: .65; cursor: wait; }
.acct-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.acct-switch { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .35rem; font-size: .9rem; margin-top: 1rem; }
.acct-link { background: transparent; color: var(--teal, #08665c); padding: .35rem; text-decoration: underline; text-underline-offset: .16em; }
.acct-error { color: #7c2b15; background: #fff3e9; border-radius: 8px; padding: .75rem; margin: 1rem 0 0; line-height: 1.45; }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.acct-item, .acct-empty {
  background: var(--surface, #fff); border: 1px solid var(--line, #d6dfdb); border-radius: 14px; padding: 1.25rem;
}
.acct-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-item h3, .acct-empty h3 { margin: 0; font-size: 1.1rem; color: var(--ink, #152f32); line-height: 1.4; }
.acct-record { min-width: 0; overflow-wrap: anywhere; }
.acct-desc { margin: .45rem 0; color: var(--ink, #152f32); white-space: pre-line; line-height: 1.5; }
.acct-date { display: block; font-size: .87rem; margin-top: .36rem; }
.acct-empty p { margin: .4rem 0 1.1rem; }
.acct-dialog :focus-visible, .acct-list :focus-visible, .acct-empty :focus-visible { outline: 3px solid var(--teal, #08665c); outline-offset: 3px; }
@media (max-width: 460px) {
  .acct-actions .acct-btn { flex: 1 1 100%; }
  .acct-item { align-items: flex-start; }
}
