
.pw-acct-wrap { position: relative; display: inline-flex; }

.pw-acct-toggle {
  width: 26px;
  height: 26px;
  border: 1px solid var(--pw-panelline);
  border-radius: 8px;
  background: var(--pw-card);
  color: var(--pw-menutext);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  margin-right: 6px;
}
.pw-acct-toggle:hover { color: var(--pw-text); }

.pw-acct-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  background: var(--pw-panel);
  border: 1px solid var(--pw-panelline);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 10060;
}
.pw-acct-menu.hidden { display: none; }

.pw-acct-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.pw-acct-item:hover { background: color-mix(in srgb, #ef4444 12%, transparent); }

.pw-wd-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 16px;
}
.pw-wd-overlay.hidden { display: none; }

.pw-wd-box {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--pw-panel);
  border: 1px solid var(--pw-panelline);
  border-radius: 16px;
  color: var(--pw-text);
}
.pw-wd-box h2 { margin: 0 0 12px; font-size: 19px; font-weight: 900; }
.pw-wd-box p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--pw-menutext); }
.pw-wd-box strong { color: var(--pw-text); font-weight: 800; }
.pw-wd-note { font-size: 12px !important; color: var(--pw-muted) !important; }

.pw-wd-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pw-inputline);
  border-radius: 10px;
  background: var(--pw-input);
  color: var(--pw-text);
  font-size: 14px;
}
.pw-wd-err { display: none; margin: 8px 0 0 !important; font-size: 12px !important; color: #ef4444 !important; }

.pw-wd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pw-wd-cancel,
.pw-wd-confirm {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pw-wd-cancel { border: 1px solid var(--pw-panelline); background: var(--pw-card); color: var(--pw-text); }
.pw-wd-confirm { border: 0; background: #ef4444; color: #fff; }
.pw-wd-confirm:disabled { opacity: 0.5; cursor: not-allowed; }


.pw-acct-item--plain { color: var(--pw-text); }
.pw-acct-item--plain:hover { background: color-mix(in srgb, var(--pw-text) 8%, transparent); }
.pw-nick-save { background: var(--pw-accent); }


.pw-acct-legal,
a.account-dd-item {
  display: block;
  text-decoration: none;
}

.pw-acct-legal b,
.pw-privacy-link {
  font-weight: 800;
}


.pw-footnote {
  margin: 30px 0 0;
  
  
  padding: 20px 0;
  border-top: 1px solid var(--pw-panelline);
  text-align: center;
  font-size: 12.5px;
  color: var(--pw-muted);
}
.pw-footnote a { color: var(--pw-muted); text-decoration: none; }
.pw-footnote a:hover { color: var(--pw-text); text-decoration: underline; }
.pw-footnote .pw-privacy-link { font-weight: 800; }


.pw-footnote--float {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 6;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--pw-panelline);
  border-top: 1px solid var(--pw-panelline);
  border-radius: 999px;
  background: var(--pw-card);
  font-size: 11px;
  opacity: 0.72;
  transition: opacity 0.15s;
}
.pw-footnote--float:hover { opacity: 1; }

body:has(.card.editing) .pw-footnote--float { display: none; }


.share-panel,
.access-panel {
  position: relative;
}

.share-panel > h3,
.access-panel > h3 {
  padding-right: 36px;
}
.sheet-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--pw-muted, #8a94a6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sheet-close-btn:hover {
  background: color-mix(in srgb, var(--pw-text, #111) 8%, transparent);
  color: var(--pw-text, #111);
}
