:root {
  color-scheme: light;
  --account-ink: #1e4a18;
  --account-deep: #173d13;
  --account-green: #2d5a1b;
  --account-mid: #4a7a3a;
  --account-pale: #edf5e8;
  --account-line: #d4e4ca;
  --account-danger: #b42318;
}

body {
  background: #f0f4ee;
  color: var(--account-ink);
}

.account-main {
  min-height: 100svh;
  background: #f7f9f5;
}

.account-hero {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 106px 28px 48px;
  background: linear-gradient(145deg, #e4f1dc 0%, #f0f4ee 68%, #e7f0e1 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-a {
  width: 210px;
  height: 210px;
  top: 34px;
  right: -78px;
  background: rgba(196, 224, 168, 0.58);
}

.hero-orb-b {
  width: 92px;
  height: 92px;
  left: -28px;
  bottom: 16px;
  border: 1px solid rgba(74, 122, 58, 0.2);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--account-mid);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-copy h1 {
  margin: 0;
  color: var(--account-deep);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-copy p {
  max-width: 300px;
  margin-top: 13px;
  color: #54704d;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.account-section {
  padding: 34px 20px 48px;
  background: #fff;
}

.account-card {
  padding: 27px 22px;
  border: 1px solid var(--account-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 74, 24, 0.07);
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 0;
  color: var(--account-deep);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lead,
.muted,
.hint,
.privacy-note {
  color: #667a61;
  line-height: 1.8;
}

.lead {
  margin: 0 0 22px;
  font-size: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 10px;
  background: var(--account-pale);
}

.account-card button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 14px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.account-card button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-card button.primary {
  color: #fff;
  background: var(--account-green);
  box-shadow: 0 5px 14px rgba(45, 90, 27, 0.16);
}

.account-card button.primary:active {
  transform: translateY(1px);
  background: var(--account-deep);
}

.account-card .tab {
  color: #667a61;
  background: transparent;
  box-shadow: none;
}

.account-card .tab.active {
  color: var(--account-green);
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 74, 24, 0.09);
}

label {
  display: block;
  margin: 18px 0;
}

label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--account-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

input {
  width: 100%;
  border: 1px solid var(--account-line);
  border-radius: 9px;
  padding: 13px 14px;
  outline: none;
  background: #fbfcfa;
  color: var(--account-deep);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #9ba897;
}

input:focus {
  border-color: #83a873;
  box-shadow: 0 0 0 3px rgba(131, 168, 115, 0.15);
}

.hint {
  margin: -5px 2px 17px;
  font-size: 10px;
}

.panel-intro {
  margin: 0 0 18px;
  color: #667a61;
  font-size: 11px;
  line-height: 1.8;
}

.hidden {
  display: none !important;
}

pre {
  margin: 13px 0;
  border: 1px dashed #98b58b;
  border-radius: 10px;
  padding: 15px;
  background: var(--account-pale);
  color: #355d2b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 12px/1.8 inherit;
}

.actions {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 9px;
}

.account-card .secondary {
  color: var(--account-green);
  background: var(--account-pale);
}

.account-card .link-button {
  margin-top: 7px;
  padding: 11px;
  color: #71806d;
  background: transparent;
  font-size: 11px;
  box-shadow: none;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--account-green);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.step-label b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--account-pale);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.step-description {
  margin: 8px 0 10px;
  color: #667a61;
  font-size: 11px;
  line-height: 1.7;
}

.flow-step-three {
  margin-top: 24px;
  border-top: 1px solid var(--account-line);
  padding-top: 23px;
}

#message,
#signed-in-message {
  min-height: 0;
  margin: 15px 0 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

#message.error,
#message.success,
#signed-in-message.error,
#signed-in-message.success {
  padding: 11px 13px;
}

#message.error,
#signed-in-message.error {
  border: 1px solid #efc8c4;
  background: #fff4f2;
  color: var(--account-danger);
}

#message.success,
#signed-in-message.success {
  border: 1px solid #c6dfba;
  background: var(--account-pale);
  color: var(--account-green);
}

.signed-in {
  padding: 8px 0 2px;
  text-align: center;
}

.avatar {
  width: 78px;
  height: 78px;
  margin: 17px auto 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--account-pale) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--account-line), 0 8px 22px rgba(30, 74, 24, 0.12);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--account-pale);
  color: var(--account-green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-chip span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55a33e;
  box-shadow: 0 0 0 3px rgba(85, 163, 62, 0.13);
}

.signed-in h2 {
  margin: 0;
  color: var(--account-deep);
  font-size: 20px;
  font-weight: 600;
}

.muted {
  margin: 5px 0 18px;
  font-size: 12px;
}

.registration-complete {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: -3px 0 19px;
  border: 1px solid #bcd9af;
  border-radius: 10px;
  padding: 12px;
  background: var(--account-pale);
  color: var(--account-green);
}

.registration-complete strong {
  font-size: 13px;
}

.registration-complete span {
  font-size: 10px;
  line-height: 1.6;
}

.login-id-box {
  margin: 0 0 20px;
  border: 1px solid var(--account-line);
  border-radius: 11px;
  padding: 13px;
  background: #fbfcfa;
}

.login-id-box span,
.login-id-box small {
  display: block;
  color: #71806d;
  font-size: 9px;
  line-height: 1.6;
}

.login-id-box strong {
  display: block;
  margin: 4px 0;
  color: var(--account-deep);
  font-size: 18px;
  letter-spacing: 0.08em;
  user-select: all;
}

.notifications-section {
  margin: 0 0 20px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcfa;
  text-align: left;
}

.notifications-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--account-line);
}

.notifications-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--account-mid);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.notifications-heading h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--account-deep);
  font-size: 14px;
}

.notification-badge {
  min-width: 19px;
  border-radius: 999px;
  padding: 3px 6px;
  background: var(--account-green);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.account-card button.notification-read-all {
  width: auto;
  padding: 6px 0;
  background: transparent;
  color: var(--account-mid);
  font-size: 9px;
  box-shadow: none;
}

.gaimen-section {
  margin: 28px 0 22px;
  border-top: 1px solid var(--account-line);
  padding-top: 26px;
}

.gaimen-section > div > p,
.gaimen-section > p {
  margin: 10px 0 14px;
  color: var(--account-mid);
  font-size: 12px;
  line-height: 1.7;
}

.gaimen-section select {
  width: 100%;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  padding: 13px;
  background: #fff;
  color: var(--account-deep);
  font-size: 16px;
  font-weight: 800;
}

.gaimen-state {
  border-radius: 12px;
  padding: 14px;
  background: var(--account-pale);
  color: var(--account-mid);
  font-size: 12px;
  text-align: center;
}

.gaimen-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.gaimen-types div {
  border-radius: 14px;
  padding: 12px;
  background: var(--account-pale);
  text-align: center;
}

.gaimen-types span,
.gaimen-types b {
  display: block;
}

.gaimen-types span { color: var(--account-mid); font-size: 10px; }
.gaimen-types b { margin-top: 4px; color: var(--account-deep); font-size: 24px; letter-spacing: .06em; }
.gaimen-types div:last-child b { color: var(--account-green); }

.account-action {
  display: block;
  width: 100%;
  border-radius: 12px;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.account-action.primary { background: var(--account-green); color: #fff; }
.account-action.secondary { margin-top: 9px; background: var(--account-pale); color: var(--account-green); }

.gaimen-dialog {
  width: min(390px, calc(100% - 28px));
  border: 1px solid var(--account-line);
  border-radius: 20px;
  padding: 22px;
  color: var(--account-ink);
  box-shadow: 0 18px 60px rgba(23,61,19,.28);
}

.gaimen-dialog::backdrop { background: rgba(16, 38, 13, .55); }
.gaimen-dialog h2 { margin: 8px 0 14px; color: var(--account-deep); font-size: 21px; line-height: 1.5; }
.gaimen-dialog p { margin-bottom: 12px; font-size: 13px; line-height: 1.7; }
.gaimen-dialog .gaimen-warning { border-radius: 12px; padding: 12px; background: #fff3e8; color: #8a3b12; font-size: 12px; font-weight: 700; }
.gaimen-dialog button { width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 800; cursor: pointer; }
.gaimen-dialog button.primary { background: var(--account-green); color: #fff; }
.gaimen-dialog button.secondary { margin-top: 9px; background: var(--account-pale); color: var(--account-green); }

.notifications-state {
  padding: 25px 16px;
  color: #71806d;
  font-size: 10px;
  text-align: center;
}

.notifications-empty-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--account-pale);
  color: var(--account-green);
  font-weight: 700;
}

.notifications-state strong,
.notifications-state small {
  display: block;
}

.notifications-state small {
  margin-top: 5px;
  color: #8a9787;
  line-height: 1.6;
}

.notifications-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  position: relative;
  display: block;
  border-bottom: 1px solid #e5ede0;
  padding: 14px 16px 13px 28px;
  color: inherit;
  text-decoration: none;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread::before {
  position: absolute;
  top: 20px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55a33e;
  content: "";
}

.notification-item-title {
  display: block;
  color: var(--account-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.notification-item-body {
  display: block;
  margin-top: 4px;
  color: #667a61;
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}

.notification-item-meta {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  color: #93a08f;
  font-size: 8px;
}

.migration-box {
  margin: 0 0 18px;
  border: 1px solid #e3d39a;
  border-radius: 11px;
  padding: 14px;
  background: #fffbed;
  color: #66551e;
}

.migration-box strong {
  font-size: 12px;
}

.migration-box p {
  margin: 6px 0 12px;
  font-size: 10px;
  line-height: 1.7;
}

.migration-box button {
  padding-block: 11px;
}

.password-box {
  margin: 18px 0;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  padding: 17px;
  background: #fbfcfa;
  text-align: left;
}

.password-box h3 {
  margin: 0 0 8px;
  color: var(--account-deep);
  font-size: 15px;
}

.password-box label {
  margin-block: 14px;
}

.password-policy {
  margin-top: -3px;
}

#show-change-password {
  margin-bottom: 9px;
}

.privacy-note {
  margin: 17px 0 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.03em;
}

@media (max-width: 360px) {
  .account-section {
    padding-inline: 14px;
  }

  .account-card {
    padding-inline: 17px;
  }
}
