/* src/account.css */
.acct-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 72px;
}
.acct-loading {
  padding: 60px 0;
  text-align: center;
}
.acct-signin {
  max-width: 520px;
  margin: 20px auto 40px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
}
.acct-signin h1,
.acct-h h1 {
  font-family: var(--serif);
  font-size: 34px;
  margin: 0 0 8px;
}
.acct-form label,
.acct-settings label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}
.acct-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.acct-row input {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.acct-sent {
  background: var(--tint);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.acct .sm,
.acct-signin .sm {
  font-size: 13px;
}
.acct-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.acct-h p {
  margin: 0;
}
.acct-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar {
  display: none;
}
.acct-tabs a {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.acct-tabs a.on {
  color: var(--purple);
  border-color: var(--purple);
}
.acct-tabs a span {
  margin-left: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.acct-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px;
}
.acct-art {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 26px var(--serif);
  color: var(--purple);
  text-decoration: none;
}
.acct-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acct-ct {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 20px;
}
.acct-ct a {
  text-decoration: none;
  color: var(--ink);
}
.acct-ct b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  border-radius: 999px;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.acct-x:hover {
  background: var(--tint);
}
.acct-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.acct-list li {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.acct-list p {
  margin: 6px 0;
}
.acct-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acct-meta a {
  font-weight: 600;
}
.acct-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFE7D8;
}
.acct-pill.ok {
  background: #E2F0E5;
  color: #2F6B3F;
}
.acct-pill.no {
  background: #F7E3E1;
  color: #9B2C2C;
}
.acct-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 12px;
}
.acct-settings {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}
.acct-settings p {
  margin: 4px 0;
}
.hd-acct {
  text-decoration: none;
}
.toggle[aria-pressed=true]#save-btn {
  background: var(--tint);
  border-color: var(--purple);
  color: var(--purple);
}
.toggle#save-btn[aria-pressed=true] svg {
  fill: currentColor;
}
.acct-names {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.acct-names label {
  margin-top: 0;
}
.acct-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.acct-names input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.acct-names input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
.acct-names .muted.sm {
  margin: 0 0 6px;
}
@media (max-width:480px) {
  .acct-2 {
    grid-template-columns: 1fr;
  }
}
.acct-mode {
  display: flex;
  gap: 4px;
  background: var(--tint,#EFE7DA);
  border-radius: 10px;
  padding: 4px;
  margin: 0 0 14px;
  width: max-content;
}
.acct-mode button {
  border: 0;
  background: none;
  padding: 7px 12px;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: inherit;
}
.acct-mode button.on {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.acct-form label[for=acct-pw] {
  margin-top: 10px;
}
.acct-pw {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--rule,#E6DCCB);
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--purple,#5A2A77);
  text-decoration: underline;
  cursor: pointer;
}
.acct-form > input,
.acct-pw input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.acct-form > input:focus,
.acct-pw input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
.acct-pw label.sm {
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 4px;
}
.acct-email {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acct-email-now {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
}
.acct-email-now span {
  overflow-wrap: anywhere;
}
.acct-email .acct-sent {
  margin-top: 0;
}
.acct-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acct-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.acct-email-row input {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.acct-email-row input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
