.account-shell {
  --account-field-background: color-mix(in srgb, var(--color-surface) 88%, var(--color-background) 12%);
  --account-field-placeholder: color-mix(in srgb, var(--color-text-muted) 72%, var(--color-text) 28%);
  --account-link-color: color-mix(in srgb, var(--color-accent) 74%, var(--color-text) 26%);
  --account-primary-background: var(--color-accent);
  --account-primary-background-hover: color-mix(in srgb, var(--color-accent) 82%, #ffffff 18%);
  --account-primary-text: #09111a;
  --account-error-color: var(--color-accent-strong);
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
  min-height: calc(100vh - 14rem);
  background: var(--color-background);
}

:root[data-theme="dark"] .account-shell {
  --account-field-background: #111c2a;
  --account-field-placeholder: rgba(243, 245, 249, 0.68);
  --account-link-color: #ffb06a;
  --account-primary-background-hover: #f08a34;
  --account-error-color: #ff9aad;
}

.account-shell__panel {
  width: 100%;
  max-width: 36rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 24px 60px -40px rgba(14, 31, 47, 0.35);
}

.account-shell__header {
  margin-bottom: 1.75rem;
}

.account-shell__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
}

.account-shell__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}

.account-shell__summary {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.account-shell__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-shell__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-shell__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.account-shell__field input[type="text"],
.account-shell__field input[type="email"],
.account-shell__field input[type="url"],
.account-shell__field input[type="password"],
.account-shell__field textarea,
.account-shell__field select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background: var(--account-field-background);
  color: var(--color-text);
  caret-color: var(--color-text);
}

.account-shell__field input::placeholder,
.account-shell__field textarea::placeholder {
  color: var(--account-field-placeholder);
  opacity: 1;
}

.account-shell__field input:focus,
.account-shell__field textarea:focus,
.account-shell__field select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.account-shell__help {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.account-shell__error {
  font-size: 0.85rem;
  color: var(--account-error-color);
  margin: 0;
}

.account-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  align-items: center;
}

.account-shell__primary,
button.account-shell__primary {
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  background: var(--account-primary-background);
  color: var(--account-primary-text);
  border: 1px solid var(--account-primary-background);
  border-radius: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.account-shell__primary:hover {
  background: var(--account-primary-background-hover);
  border-color: var(--account-primary-background-hover);
  color: var(--account-primary-text);
}

.account-shell__secondary,
button.account-shell__secondary {
  font: inherit;
  padding: 0.7rem 1.2rem;
  background: color-mix(in srgb, var(--color-surface) 84%, var(--color-background) 16%);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.account-shell__secondary:hover {
  border-color: var(--account-link-color);
}

.account-shell__providers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.account-shell__provider,
button.account-shell__provider {
  font: inherit;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background: var(--account-field-background);
  color: var(--color-text);
  cursor: pointer;
}

.account-shell__provider:hover {
  border-color: var(--color-text);
}

.account-shell__divider {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.account-shell__footer-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.account-shell__footer-link a {
  color: var(--account-link-color);
  font-weight: 600;
}

.account-shell__identity {
  margin: 1.6rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  background: var(--color-surface-soft);
}

.account-shell__identity-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.account-shell__identity-value {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 52%, transparent);
  text-underline-offset: 0.2em;
}

.account-shell__identity-value:hover {
  color: var(--account-link-color);
}

.account-shell__identity-note {
  margin: 0.7rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.account-shell__messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-shell__message {
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--color-surface-soft);
  font-size: 0.95rem;
}

.account-shell__choice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .account-shell__choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account-shell__choice {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.account-shell__choice:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.account-shell__choice--accent {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-soft));
}

.account-shell__choice-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.account-shell__choice-body {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.account-shell__choice-status {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 600;
}

.account-shell__capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
}

.account-shell__capability {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--color-surface);
}

.account-shell__capability dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.account-shell__capability dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.account-shell__capability--buyer dd,
.account-shell__capability--approved dd {
  color: var(--account-link-color);
}

.account-shell__capability--pending dd {
  color: var(--color-text);
}

.account-shell__capability--blocked dd {
  color: var(--color-accent-strong);
}

.account-shell__capability-detail {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.account-shell__cta {
  margin: 1rem 0 1.5rem;
}

.account-shell__empty {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-surface-soft);
}

.account-shell__empty-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.account-shell__empty-body {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.account-shell__org-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.account-shell__logout {
  margin-top: 1.5rem;
}
