.account-page {
  width: min(100%, 540px);
  margin: 0 auto;
}
.account-page h1 {
  margin: 6px 0 24px;
}
.account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 20px;
}
.account-heading #account-title { margin: 0; min-width: 0; }
.account-heading .account-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fffdf8;
  color: var(--accent);
}
.account-close:disabled { opacity: .55; }
.account-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
}
.account-panel { padding: clamp(20px, 4vw, 32px); }
.account-entry main {
  padding: clamp(30px, 8vh, 76px) 16px max(32px, env(safe-area-inset-bottom));
}
.account-entry .account-page {
  width: min(100%, 440px);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
}
.account-entry .account-page h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 42px);
  text-wrap: balance;
}
.account-entry .account-panel {
  padding: 0;
  border: 0;
  background: transparent;
}
.account-entry #account-login-form { margin: 0; }
.account-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #e6eee3;
  color: var(--accent);
}
.account-symbol .icon {
  width: 25px;
  height: 25px;
}
.account-panel h2 {
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.08;
}
.account-description {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.account-description strong {
  color: var(--ink);
  font-weight: 650;
}
.account-form {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.account-form label {
  font-size: 14px;
  font-weight: 650;
}
.account-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9c3b3;
  border-radius: 11px;
  background: #fffefa;
  font-size: 16px;
}
.account-input::placeholder {
  color: #768076;
  opacity: 1;
}
.account-input:focus {
  border-color: var(--accent);
}
.account-password-field {
  position: relative;
}
.account-password-field input {
  padding-right: 52px;
}
.account-password-toggle {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 2px 2px 2px auto;
  min-width: 45px;
  border-radius: 9px;
  color: var(--muted);
}
.account-password-toggle .icon {
  width: 21px;
  height: 21px;
}
.account-form .account-input + label {
  margin-top: 6px;
}
.account-field-hint {
  color: var(--muted);
  font-size: 13px;
}
.account-access-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  margin-top: 8px;
  font-size: 14px;
}
.account-access-links > span {
  color: var(--muted);
}
.account-access-links + .account-demo {
  margin-top: 3px;
}
.account-code {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .32em;
}
.account-code::placeholder {
  font-weight: 400;
  color: #899086;
}
.account-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.account-primary .icon,
.account-action .icon {
  width: 18px;
  height: 18px;
}
.account-primary:hover:not(:disabled) {
  background: #1c3928;
}
.account-primary:disabled,
.account-action:disabled {
  opacity: .64;
  cursor: default;
}
.account-demo,
.account-code-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.account-demo > span {
  color: var(--muted);
  font-size: 13px;
}
.account-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--accent);
  text-align: start;
  font-size: 14px;
  font-weight: 650;
}
.account-action:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 2px;
  cursor: pointer;
}
.account-remember input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.account-remember small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.account-message,
.account-inbox {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.account-message {
  color: #873821;
  background: #f9eae1;
}
.account-notice,
.account-inbox {
  color: var(--ink);
  background: #edf2e8;
}
.account-inbox {
  margin-top: 14px;
  padding-block: 0;
}
.account-inbox p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 9px;
  padding-bottom: 12px;
}
.account-inbox strong {
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  user-select: all;
}
.account-edit {
  margin: 0;
}
.account-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
}
.account-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--accent);
  background: #e6eee3;
  font: 30px/1 var(--serif);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-photo-actions {
  display: grid;
  min-width: 0;
  justify-items: start;
}
.account-upload {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 42px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.account-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.account-upload:focus-within {
  outline: 3px solid #aa582e;
  outline-offset: 3px;
}
.account-photo-actions .account-action {
  color: var(--muted);
}
.account-detail {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
}
.account-detail span {
  color: var(--muted);
  font-size: 13px;
}
.account-detail strong {
  overflow-wrap: anywhere;
  font-weight: 650;
}
.account-access .account-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.access-manager { margin-top: 14px; }
#access-manager-toggle { gap: 10px; }
.access-chevron {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
[aria-expanded="true"] .access-chevron { transform: translateY(2px) rotate(225deg); }
#access-manager-panel h2 { margin: 0 0 8px; font-size: 23px; }
#access-manager-members { margin: 0; padding: 0; list-style: none; }
#access-manager-members li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#access-manager-members li > div { min-width: 0; }
#access-manager-members small, #access-manager-members li > span { display: block; color: var(--muted); font-size: 13px; }
.access-invite-result {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  background: #edf2e8;
  overflow-wrap: anywhere;
}
.access-invite-result label { font-weight: 650; font-size: 14px; }
.access-invite-result input { min-width: 0; }
.account-loading {
  padding: 16px 0;
  color: var(--muted);
}
@media (max-width: 400px) {
  .account-page h1 { margin: 4px 0 18px; }
  .account-panel { padding: 19px 16px; }
  .account-code-links { column-gap: 8px; }
  .account-demo { justify-content: flex-start; }
}
