@font-face {
  font-family: 'Portal Icons'; src: url('../assets/icons.woff2') format('woff2'); font-display: block; font-weight: 400;
}

:root {
  color-scheme: light;
  font-family: Inter, 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans CJK SC', system-ui, sans-serif;
  --background: #f4f6f4;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-lift: #f4f8f5;
  --line: #dfe7e1;
  --ink: #182b25;
  --subtle: #52645c;
  --accent: #166e55;
  --cyan: #147554;
  --radius: 21px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, p, dl, dd { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.icon { display: inline-block; flex: 0 0 auto; width: 1em; height: 1em; overflow: hidden; font: 400 21px/1 'Portal Icons'; font-feature-settings: 'liga'; white-space: nowrap; }
.boot { padding: 40px; color: var(--subtle); font-size: 14px; }

.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; min-height: 100dvh; padding: 34px 22px 22px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand, .account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { padding: 0 4px; margin-bottom: 44px; }
.brand-mark { display: grid; grid-auto-flow: column; place-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; background: #18674f; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: 17px; font-weight: 900; letter-spacing: -.09em; }
.brand-mark span { color: #abe7c8; }
.brand strong, .account b { display: block; font-size: 14px; }
.brand div > span, .account div > span { display: block; margin-top: 4px; font-size: 11px; color: var(--subtle); }
.navigation { display: grid; gap: 7px; }
.navigation a { position: relative; display: flex; min-height: 46px; align-items: center; gap: 11px; padding: 10px 12px; color: var(--subtle); border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 650; }
.navigation a:hover { background: var(--surface-lift); color: var(--ink); }
.navigation a[aria-current="page"] { background: #e7f3eb; color: #155841; }
.navigation a[aria-current="page"]::after { content: ''; position: absolute; right: 12px; width: 5px; height: 5px; border-radius: 50%; background: #2b8d69; }
.sidebar-footer { margin-top: auto; padding-top: 30px; }
.account { padding: 13px 3px; border-top: 1px solid var(--line); }
.account div { min-width: 0; }
.account b, .account div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: #e3efe8; color: #21563e; font-size: 13px; font-weight: 700; }
.logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 5px; border: 0; background: transparent; color: var(--subtle); font-size: 12px; text-align: left; }
.logout:hover { color: var(--ink); }
.logout .icon { font-size: 18px; }

.content { max-width: 1245px; min-width: 0; width: 100%; margin: 0 auto; padding: 43px clamp(25px, 4vw, 65px) 40px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.breadcrumb { color: var(--subtle); font-size: 12px; margin: 0 0 7px; }
h1 { font-size: clamp(27px, 3vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.demo-badge { color: #52645c; border-radius: 999px; padding: 5px 10px; font-size: 11px; white-space: nowrap; background: #e9efea; }
.soft-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; min-height: 39px; padding: 0 12px; background: var(--surface); color: var(--ink); font-weight: 650; font-size: 12px; white-space: nowrap; }
.soft-button:hover { background: var(--surface-lift); border-color: #a9c1b2; }
.soft-button .icon { font-size: 17px; }

.hero { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 215px; padding: 26px clamp(25px, 4vw, 51px); border-radius: 24px; border: 1px solid #c7dcca; overflow: hidden; background: linear-gradient(111deg, #eaf4e9 12%, #dfefdd 61%, #c5e7d1); }
.hero::before { position: absolute; z-index: -1; content: ''; inset: 0; background: radial-gradient(ellipse at 84% 130%, #ade1d2a6, transparent 66%); }
.hero-ripple { position: absolute; z-index: -1; width: 520px; height: 520px; right: -116px; top: -153px; transform: rotate(-29deg) scaleY(.65); pointer-events: none; }
.hero-ripple i, .ripple-art i { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid #26784836; }
.hero-ripple i:nth-child(1), .ripple-art i:nth-child(1) { inset: 0; }
.hero-ripple i:nth-child(2), .ripple-art i:nth-child(2) { inset: 47px; }
.hero-ripple i:nth-child(3), .ripple-art i:nth-child(3) { inset: 96px; }
.hero-ripple i:nth-child(4), .ripple-art i:nth-child(4) { inset: 150px; }
.hero-identity { display: flex; align-items: center; gap: clamp(15px, 3vw, 28px); min-width: 0; }
.hero-identity > div { min-width: 0; }
.hero-avatar { display: grid; flex: 0 0 auto; place-items: center; width: clamp(60px, 7vw, 79px); height: clamp(60px, 7vw, 79px); background: #1f694e; color: #f7fff9; border-radius: 22px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; box-shadow: 0 8px 22px #24553a28; }
.hero-label { font-size: 12px; font-weight: 700; letter-spacing: .045em; color: #36594a; }
.hero h2 { margin: 7px 0 10px; font-size: clamp(29px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.044em; overflow-wrap: anywhere; }
.uid-button { display: inline-flex; align-items: center; gap: 9px; padding: 4px 8px; color: #22533e; background: #ffffff77; border: 1px solid #bad3c3; border-radius: 7px; font-size: 12px; }
.uid-button:hover { background: #fff; }
.uid-button .icon { font-size: 14px; }
.hero-level { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; min-width: 126px; gap: 4px; padding: 13px 19px; border: 1px solid #cee5d6; border-radius: 17px; background: #f8fdf9d9; }
.hero-level span { color: #48665a; font-size: 12px; }
.hero-level strong { line-height: 1.1; font-size: 44px; color: #145e47; letter-spacing: -.06em; font-family: Inter, system-ui, sans-serif; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 29px 0 13px; }
.section-heading h2, .panel-heading h2 { font-size: 18px; letter-spacing: -.015em; font-weight: 750; }
.updated { color: var(--subtle); font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metric { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 19px 18px; min-height: 126px; }
.metric:hover { background: var(--surface-lift); border-color: #9fbcaa; }
.metric > .currency { position: absolute; top: 19px; right: 18px; }
.currency, .heading-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; width: 36px; height: 36px; font-size: 15px; font-weight: 850; }
.silver { background: #eaf0f6; color: #3e5c77; }
.gold { background: #f8efda; color: #8d5315; }
.premium { background: #e5f3eb; color: #21694e; }
.currency .icon { font-size: 21px; }
.metric-header { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 12px; margin-right: 36px; }
.metric-header .icon { color: #527064; font-size: 14px; }
.metric strong, .wallet-card strong { display: block; margin-top: 5px; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: clamp(20px, 2.35vw, 34px); font-weight: 740; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric strong.metric-membership { font-size: clamp(18px, 2vw, 25px); }
.metric-date { display: block; margin-top: 4px; color: var(--subtle); font-size: 11px; }
.overview-profile { margin-top: 18px; }
.panel-heading { display: flex; align-items: center; gap: 12px; padding: 17px 19px; }
.heading-icon { background: #e8f2eb; color: #24634a; }
.panel-heading p { color: var(--subtle); margin-top: 4px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #156249; font-size: 12px; white-space: nowrap; }
.text-link .icon { font-size: 15px; }
.text-link:hover { text-decoration: underline; }
.profile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 19px 18px; border-top: 1px solid var(--line); }
.profile-summary dt, .detail-list dt { color: var(--subtle); font-size: 12px; }
.profile-summary dd, .detail-list dd { margin-top: 6px; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.detail-list { padding: 0 19px; }
.detail-list > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 63px; border-top: 1px solid var(--line); }
.detail-list dd { margin: 0; text-align: right; }
.detail-copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #156249; }
.detail-copy .icon { font-size: 15px; }
.wallet-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wallet-card { min-height: 170px; padding: 21px; }
.wallet-card h2 { margin-top: 13px; color: var(--subtle); font-size: 14px; }
.wallet-card strong { margin-top: 7px; font-size: clamp(24px, 3vw, 42px); }
#wallet > .updated { margin-top: 16px; }
.notice { position: fixed; right: clamp(14px, 4vw, 40px); bottom: 22px; z-index: 2; max-width: min(88vw, 420px); padding: 11px 15px; background: #1d6048; color: #fff; border-radius: 10px; font-size: 13px; }

.sign-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); min-height: 100dvh; }
.sign-in-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; overflow: hidden; padding: clamp(32px, 5vw, 72px); background: radial-gradient(ellipse at 83% 75%, #b3e3c9, transparent 67%), linear-gradient(148deg, #f2f7e9, #dfefde 62%, #c7e4d2); border-right: 1px solid #c9dfcf; }
.login-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 750; }
.ripple-art { position: absolute; z-index: -1; width: clamp(390px, 55vw, 790px); aspect-ratio: 1; left: 9%; top: 16%; transform: rotate(-24deg) scaleY(.68); }
.ripple-art i { border-color: #5b967042; box-shadow: 0 0 45px #88cba21e inset; }
.sign-in-visual-caption { display: flex; flex-direction: column; gap: 15px; font-size: clamp(26px, 5.1vw, 69px); letter-spacing: -.065em; line-height: 1.1; font-weight: 820; }
.sign-in-visual-caption span { width: 34px; height: 3px; background: var(--cyan); border-radius: 10px; }
.sign-in-content { display: grid; place-items: center; padding: 35px 30px; }
.sign-in-form-wrap { width: min(100%, 390px); }
.form-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; margin-bottom: 16px; background: #e0f0e5; color: #22583f; }
.intro { font-size: 13px; line-height: 1.75; color: var(--subtle); margin: 12px 0 22px; }
form label { display: block; font-size: 13px; font-weight: 680; margin: 0 0 6px; }
form input { display: block; width: 100%; height: 44px; margin-bottom: 14px; padding: 0 12px; background: var(--surface); border: 1px solid #c8d7cd; border-radius: 9px; color: var(--ink); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.icon-button { position: absolute; display: grid; place-items: center; top: 3px; right: 4px; width: 38px; height: 38px; color: var(--subtle); border-radius: 6px; border: 0; background: none; }
.icon-button:hover { color: var(--ink); }
.icon-button .icon { font-size: 19px; }
.primary-button { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; min-height: 43px; border: 0; border-radius: 9px; background: #17674e; color: #fff; font-weight: 750; }
.primary-button:hover { background: #11553f; }
.primary-button .icon { font-size: 17px; }
.form-status { min-height: 17px; line-height: 1.5; margin-top: 8px; color: #9e3743; font-size: 12px; }
.preview-login { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 7px; }
.preview-login p { font-size: 12px; color: var(--subtle); margin-bottom: 9px; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 187px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .metrics { gap: 9px; }
  .metric { padding: 15px 12px; }
}

@media (max-width: 730px) {
  .layout { display: block; }
  .sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 0; padding: 13px 15px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; padding: 0; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
  .navigation { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .navigation a { justify-content: center; gap: 5px; min-height: 36px; padding: 5px 2px; font-size: 11px; white-space: nowrap; }
  .navigation a .icon { font-size: 16px; }
  .navigation a[aria-current="page"]::after { display: none; }
  .sidebar-footer { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  .account { display: none; }
  .logout { justify-content: end; padding: 6px 0; }
  .content { padding: 20px 16px; }
  .page-header { margin-bottom: 16px; }
  .header-actions { gap: 6px; }
  .demo-badge { font-size: 10px; max-width: 270px; }
  .hero { min-height: 191px; gap: 12px; padding: 18px 16px; border-radius: 15px; }
  .hero-level { min-width: 71px; padding: 11px; }
  .hero-level strong { font-size: 34px; }
  .hero-level span, .hero-label { font-size: 10px; }
  .hero-identity { gap: 10px; }
  .hero-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 22px; }
  .hero h2 { font-size: clamp(24px, 5.7vw, 38px); }
  .hero-ripple { right: -225px; }
  .section-heading { margin-top: 20px; }
  .metric { justify-content: start; min-height: 122px; padding: 12px 8px; }
  .metric > .currency { position: static; margin-bottom: 9px; }
  .metric strong { font-size: clamp(17px, 3.9vw, 25px); }
  .metric strong.metric-membership { font-size: clamp(15px, 3.8vw, 21px); }
  .metric-header { margin-right: 0; font-size: 11px; }
  .currency { width: 31px; height: 31px; border-radius: 9px; }
  .metric-date { font-size: 10px; }
  .panel-heading, .profile-summary { padding-left: 12px; padding-right: 12px; }
  .sign-in { display: block; }
  .sign-in-visual { min-height: 161px; gap: 18px; border-right: 0; border-bottom: 1px solid #c9dfcf; padding: 20px 23px; }
  .sign-in-visual-caption { gap: 7px; font-size: 29px; }
  .ripple-art { top: -67px; left: 30%; }
  .sign-in-content { padding: 23px 22px; }
}

@media (max-width: 420px) {
  .page-header { align-items: start; }
  .header-actions { align-items: end; flex-direction: column-reverse; }
  .soft-button { min-height: 33px; padding: 0 8px; }
  .uid-button { font-size: 11px; }
  .metric-header .icon { display: none; }
}
