:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1a2923;
  background: #f7f8f5;
  font-synthesis: none;
  --ink: #1a2923;
  --muted: #56665d;
  --paper: #f7f8f5;
  --surface: #fff;
  --green: #086240;
  --green-dark: #06482f;
  --soft: #eaf4ed;
  --line: #dce4de;
  --danger: #973e32;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .55; cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(100% - 64px, 1136px); margin-inline: auto; }
.section-shell { padding-block: 50px 66px; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--green);
}
.skip-link:focus { transform: translateY(0); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.quiet, .muted { color: var(--muted); }

.site-header {
  min-height: 66px;
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-inner { min-height: 65px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 44px;
  font-size: 24px;
  font-weight: 730;
  line-height: 1;
}
.brand img { width: 25px; height: auto; }
.brand-id { color: var(--green); }
.top-nav { min-width: 0; }
.top-nav .button { min-height: 36px; padding: 6px 14px; }
.header-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 210px;
  font-size: 14px;
  font-weight: 600;
}
.header-account > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-weight: 650;
  line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 65px; padding-block: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 620;
  text-align: center;
  line-height: 1.35;
  transition: background-color 130ms ease, border-color 130ms ease, transform 120ms var(--ease-out);
}
.button .icon { width: 16px; height: 16px; }
.button--primary { color: var(--surface); background: var(--green); border-color: var(--green); }
.button--secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button--danger { color: var(--danger); }
.button--wide { width: 100%; }
.button:active:not(:disabled) { transform: scale(.985); }
.text-link, .back-link { color: var(--green); font-weight: 600; }
.back-link { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; }
.back-link .icon { width: 16px; height: 16px; }
.message-stack { display: grid; gap: 9px; padding-top: 16px; }
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid #cde1d2;
  border-radius: 6px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice--error { background: #fff3f0; color: var(--danger); border-color: #efd0c9; }
.notice--warning { background: #fcf5e8; color: #744b20; border-color: #ead8b9; }
.notice .icon { margin-top: 2px; width: 16px; height: 16px; }

.auth-section { padding-block: 61px 76px; }
.auth-inner { max-width: 414px; margin-inline: auto; }
.auth-heading { margin-bottom: 27px; }
.auth-heading h1 { font-size: 34px; }
.auth-heading p { color: var(--muted); margin-top: 9px; overflow-wrap: anywhere; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 21px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
}
.auth-mark img { width: 32px; height: auto; }
.auth-mark .icon { width: 28px; height: 28px; }
.auth-links {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-buttons { display: grid; gap: 15px; text-align: center; }
.auth-content > .notice + .auth-buttons, .auth-inner > .notice + .auth-buttons { margin-top: 16px; }
.auth-buttons > .text-link { justify-self: center; padding: 5px; font-size: 14px; }
.field-stack { display: grid; align-content: start; gap: 17px; }
.field {
  display: grid;
  align-items: start;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.field label { font-size: 14px; font-weight: 600; }
.field-help { color: var(--muted); font-size: 13px; }
.field-help ul { margin: 3px 0 0; padding-inline-start: 22px; }
.field-check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.picture-preview { display: block; object-fit: cover; border: 1px solid var(--line); }
.picture-preview--avatar { border-radius: 50%; }
.picture-preview--cover { width: min(100%, 224px); height: 72px; border-radius: 8px; }
input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=button]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #b9c7bd;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
textarea { resize: vertical; }
input:focus:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=button]), textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #08624022;
}
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
input[type=checkbox], input[type=radio] { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
input[type=file] { cursor: pointer; }
input::file-selector-button {
  padding: 5px 9px;
  margin-inline-end: 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--green-dark);
  cursor: pointer;
}
.field > a { color: var(--green); text-decoration: underline; }
.errorlist { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--danger); }
.form-utility { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.form-actions { margin-top: 2px; }
.form-actions--pair { display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px; }
.consent-account { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 21px; }
.consent-account div { display: grid; min-width: 0; overflow-wrap: anywhere; }
.consent-account span:last-child { color: var(--muted); font-size: 13px; }
.consent-label { font-size: 15px; }
.scope-list { display: grid; gap: 7px; margin: -9px 0 6px; padding: 0; list-style: none; font-size: 14px; }
.scope-list li { display: flex; align-items: start; gap: 8px; }
.scope-list .icon { color: var(--green); width: 16px; height: 16px; margin-top: 3px; }

.account-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 44px; padding-block: 40px 70px; }
.account-sidebar { display: grid; align-content: start; gap: 16px; }
.account-person { display: flex; align-items: center; gap: 11px; padding: 6px 9px 15px; border-bottom: 1px solid var(--line); }
.account-person > div { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.account-person .avatar { width: 40px; height: 40px; }
.account-person strong { font-weight: 650; font-size: 15px; }
.account-person div span { color: var(--muted); font-size: 12px; }
.account-nav, .account-sidebar-actions { display: grid; gap: 3px; }
.account-sidebar-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.account-sidebar-actions form { margin: 0; }
.account-nav > a, .account-sidebar-actions a, .account-sidebar-actions button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  width: 100%;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.account-nav .icon, .account-sidebar-actions .icon { width: 17px; height: 17px; }
.account-nav > a[aria-current=page] { color: var(--green); background: var(--soft); font-weight: 650; }
.account-content { min-width: 0; }
.page-heading { display: grid; gap: 8px; margin-bottom: 18px; }
.page-heading h1 { font-size: 30px; }
.page-heading--actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-heading--actions .button { flex-shrink: 0; }
.profile-overview { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.profile-cover {
  position: relative;
  overflow: hidden;
  background-color: #dfeadf;
  background-image: url("cover-mark.webp");
  background-position: right 26px center;
  background-repeat: no-repeat;
  background-size: auto 120%;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.profile-cover--compact { height: 114px; }
.profile-overview-body { display: flex; align-items: center; gap: 13px; min-height: 75px; padding: 8px 19px 11px; }
.avatar--overview { width: 62px; height: 62px; border: 4px solid var(--surface); margin-top: -31px; position: relative; font-size: 24px; }
.profile-overview-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.profile-overview-name h2 { font-size: 20px; }
.profile-overview-name p { color: var(--muted); font-size: 13px; }
.profile-overview-name p strong { color: var(--green); font-variant-numeric: tabular-nums; }
.profile-overview-body .button { flex: 0 0 auto; }
.profile-overview--preview { margin-bottom: 22px; }
.overview-group { margin-top: 25px; }
.overview-group h2 { margin-bottom: 8px; font-size: 18px; }
.overview-links { border-top: 1px solid var(--line); }
.overview-link {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 130ms ease;
}
.overview-link > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.overview-link strong { font-weight: 650; }
.overview-link small { color: var(--muted); font-size: 13px; }
.row-arrow { color: var(--green); }
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 6px; background: var(--soft); color: var(--green); }
.settings-form { max-width: 540px; }
.settings-section { padding: 17px 0 23px; border-top: 1px solid var(--line); }
.settings-section h2 { font-size: 19px; }
.settings-section--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.key-value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 43px; margin-bottom: 14px; font-size: 14px; }
.key-value > span:first-child { color: var(--muted); }
.key-value strong { overflow-wrap: anywhere; min-width: 0; }
.status-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 12px; }
.status-tag .icon { width: 13px; height: 13px; }
.return-action { margin-top: 16px; }
.empty-state {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 35px 15px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.connection-list { display: grid; border-top: 1px solid var(--line); }
.connection { display: flex; align-items: center; gap: 11px; min-height: 69px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.connection h2 { flex: 1; min-width: 0; font-size: 16px; }
.connection form { flex: 0 0 auto; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 10px; border-bottom: 1px solid var(--line); }

.public-profile { padding-block: 30px 67px; max-width: 992px; }
.profile-cover--public { height: 254px; border-radius: 8px 8px 0 0; background-position: right 52px center; }
.public-profile-main { padding-inline: 27px; }
.public-profile-heading { position: relative; display: flex; align-items: center; gap: 15px; min-height: 94px; margin-bottom: 22px; padding-block: 9px 0; }
.avatar--public { width: 94px; height: 94px; margin-top: -55px; border: 5px solid var(--paper); font-size: 34px; }
.public-profile-name { flex: 1; min-width: 0; }
.public-profile-name h1 { font-size: 31px; }
.profile-id { display: inline-flex; gap: 4px; margin-top: 4px; color: var(--muted); font-size: 14px; }
.profile-id strong { color: var(--green); font-variant-numeric: tabular-nums; }
.public-profile-heading .button { flex: 0 0 auto; }
.public-profile-main > .notice { margin-bottom: 15px; }
.profile-details { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.profile-details h2 { margin-bottom: 8px; font-size: 16px; }
.profile-bio { overflow-wrap: anywhere; white-space: pre-wrap; }
.joined-date { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
  .button--secondary:hover { border-color: #adbeaf; background: #f9fbf9; }
  .text-link:hover, .back-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .account-nav > a:hover, .account-sidebar-actions a:hover, .account-sidebar-actions button:hover, .overview-link:hover { background: var(--soft); color: var(--green); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 38px); }
  .section-shell { padding-block: 30px 50px; }
  .auth-section { padding-block: 37px 51px; }
  .auth-heading h1 { font-size: 29px; }
  .auth-mark { width: 55px; height: 55px; margin-bottom: 16px; }
  .site-header { min-height: 58px; }
  .header-inner { min-height: 57px; }
  .brand { font-size: 22px; }
  .brand img { width: 22px; }
  .footer-inner { min-height: 55px; }
  input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=button]), textarea, select { font-size: 16px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 12px 47px; }
  .account-sidebar { gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .account-person { display: none; }
  .account-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .account-nav > a { justify-content: center; text-align: center; gap: 5px; padding-inline: 1px; font-size: 13px; }
  .account-nav > a .icon { width: 15px; height: 15px; }
  .account-sidebar-actions { grid-template-columns: max-content max-content; gap: 9px; padding: 0; border: 0; }
  .account-sidebar-actions a, .account-sidebar-actions button { min-height: 35px; padding-inline: 5px; font-size: 13px; }
  .page-heading h1 { font-size: 25px; }
  .public-profile { padding-block: 18px 48px; }
  .profile-cover--public { height: 180px; background-position: right 20px center; }
  .public-profile-main { padding-inline: 11px; }
  .public-profile-heading { min-height: 78px; margin-bottom: 12px; gap: 9px; }
  .public-profile-name h1 { font-size: 24px; }
  .avatar--public { width: 73px; height: 73px; margin-top: -36px; font-size: 28px; }
  .profile-details { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 400px) {
  .account-nav > a { flex-direction: column; gap: 4px; min-height: 54px; }
  .profile-overview-body { gap: 7px; padding-inline: 9px; }
  .profile-overview-body .button, .public-profile-heading .button { padding-inline: 8px; font-size: 13px; }
  .profile-overview-body .button .icon, .public-profile-heading .button .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .button:active:not(:disabled) { transform: none; }
}
