:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --ink: #101820;
  --muted: #5e6975;
  --line: #d8e1dc;
  --green: #0f4d3a;
  --green-2: #176b4d;
  --amber: #a16207;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 244, 0.98) 340px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.account-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.account-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  padding-bottom: 14px;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.eyebrow,
.auth-kicker {
  margin: 0 0 5px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
}

h1 span {
  display: inline-block;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-nav a,
.auth-secondary-link,
.auth-primary-link,
.auth-secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d8d1;
  border-radius: 8px;
  background: #ffffff;
  color: #26332d;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.account-nav a[aria-current="page"],
.auth-primary-link {
  border-color: var(--green-2);
  background: var(--green-2);
  color: #ffffff;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 16px;
  align-items: end;
  padding: 26px 0 18px;
}

.account-hero h2 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.08;
}

.account-hero p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  color: #28443a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.auth-panel-page,
.settings-panel,
.account-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.08);
}

.auth-form-panel {
  max-width: 680px;
}

.auth-panel-page h2,
.settings-panel h2,
.account-summary h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.auth-panel-page p,
.account-summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-page-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-page-form label {
  display: grid;
  gap: 6px;
  color: #4c6359;
  font-size: 13px;
  font-weight: 850;
}

.auth-page-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8d8d1;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: #17211d;
}

.auth-page-form button {
  min-height: 44px;
  border: 1px solid var(--green-2);
  border-radius: 8px;
  background: var(--green-2);
  color: #ffffff;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 900;
}

.auth-page-form button:disabled,
.auth-secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-field-note,
.settings-inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.auth-message {
  margin: 14px 0 0;
  border: 1px solid #ead08a;
  border-radius: 8px;
  background: #fff8db;
  padding: 10px 12px;
  color: #6a4c14;
  font-size: 14px;
  font-weight: 850;
}

.auth-message.success {
  border-color: #abdcbc;
  background: #e7f8ed;
  color: #14633b;
}

.auth-message.error {
  border-color: #f0c6ba;
  background: #fff0ea;
  color: #7b2e1f;
}

.auth-link-row,
.auth-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.auth-link-row a {
  color: #14594a;
  font-size: 14px;
  font-weight: 850;
}

.auth-secondary-button {
  cursor: pointer;
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.settings-panel {
  display: grid;
  gap: 14px;
}

.settings-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-account-link {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  background: #f8fbf9;
  padding: 14px;
  text-decoration: none;
}

.service-account-link span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.service-account-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .account-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .account-topbar,
  .account-hero,
  .account-summary {
    grid-template-columns: 1fr;
  }

  .account-nav {
    justify-content: flex-start;
  }

  .account-hero h2 {
    font-size: 32px;
  }

  h1 span {
    display: block;
  }

  .service-link-grid {
    grid-template-columns: 1fr;
  }
}
