.account-view {
  --sheet:#f7f3eb; --line:#d9cfbf; --muted:#70675a; --ink:#2d2822;
  background:#e4dbcc; color:var(--ink);
}
.account-view .wrap {width:min(1140px,calc(100% - 64px))}
.account-view .site-head {position:sticky;top:0;z-index:5;background:#f2ede4;box-shadow:0 3px 18px #4037280d}
.account-view .topbar {gap:24px;min-height:70px}
.account-view .desk {padding:32px 0 44px}
.account-view footer {border-color:#cfc4b2}
#center-nav {display:flex;align-items:center;gap:6px}
#center-nav a,#center-nav button,#user-menu summary {border:1px solid transparent;border-radius:99px;padding:9px 15px;background:none;color:#534b40;font-size:14px;font-weight:650}
#center-nav a[aria-current="page"] {border-color:#a7beb2;background:#e0e6d9;color:#234f40}
#center-nav a:hover {background:#e8e0d4}
#user-menu {position:relative;margin:0 0 0 auto;min-width:0}
#user-menu summary {display:flex;align-items:center;gap:8px;background:#ede7dc;border-color:var(--line);list-style:none}
#user-menu summary::-webkit-details-marker {display:none}
#user-menu summary::after {content:'';width:6px;height:6px;border:solid #796f60;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-3px 1px 0}
#nav-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16ch}
.session-dot {width:8px;height:8px;background:#368168;border-radius:50%;flex:none}
#user-menu button {position:absolute;right:0;top:calc(100% + 6px);width:max-content;min-width:125px;padding:12px 16px;background:var(--sheet);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 22px #463c2721}
#account-panel {max-width:none;margin:0}
#account-title {font-size:13px;letter-spacing:.05em;color:#5f5649;margin-bottom:3px;scroll-margin-top:115px}
.player-banner,.center-sheet,.metric {border:1px solid #d7cbbc;box-shadow:0 8px 22px #513f2510}
.player-banner {display:flex;align-items:center;gap:23px;min-height:162px;padding:25px 30px;border-radius:25px;overflow:hidden;background-color:#dfd0b9;
  background-image:linear-gradient(100deg,#eee5d9f5 6%,#eadfcff0 45%,#decbb6c9 100%),url('/scenes/lake.webp');background-position:center,center 52%;background-size:cover}
.player-emblem {display:grid;place-items:center;flex:none;width:101px;height:101px;border:3px solid #f7eddb;outline:1px solid #bb9f79;border-radius:21px;background:linear-gradient(150deg,#ebcea2,#c7a57a);box-shadow:0 4px 14px #4f392e26}
.player-emblem img {width:66%;height:82%;object-fit:contain}
.player-identity {min-width:0}
.name-line {display:flex;align-items:center;gap:11px;flex-wrap:wrap}
#saved-name {font-size:clamp(25px,2.7vw,36px);line-height:1.15;letter-spacing:-.045em;overflow-wrap:anywhere}
.region-badge {font-size:12px;font-weight:650;padding:4px 10px;background:#f3eee2c9;border:1px solid #cbbca5;border-radius:100px}
.player-identity p {font-size:14px;color:#5f5649;margin-top:8px;overflow-wrap:anywhere}
.identity-separator {padding-inline:8px}
.banner-actions {margin-left:auto;display:flex;gap:10px;align-items:center;flex-shrink:0}
.banner-pill,.invite-jump {border:1px solid #d4c6b2;background:#f8f4eb;color:var(--ink);padding:10px 16px;border-radius:24px;font-size:13px;font-weight:700;text-align:center}
.banner-pill:hover,.invite-jump:hover {background:#fffaf1;border-color:#b8a88e}
.metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
.tone-green {--accent:#277560;--tint:#e1e9df;--tint-line:#aec8ba}
.tone-blue {--accent:#347798;--tint:#e2eaeb;--tint-line:#b6cbd4}
.tone-gold {--accent:#be611f;--tint:#f5e7d4;--tint-line:#e4c3a2}
.tone-purple {--accent:#7956a5;--tint:#eae4ee;--tint-line:#cbbfd7}
.metric {position:relative;overflow:hidden;background:var(--sheet);border-radius:19px;padding:18px 21px 19px;min-height:149px}
.metric::before {content:'';height:3px;position:absolute;inset:0 0 auto;background:var(--accent)}
.metric-head,.sheet-title {display:flex;align-items:center;justify-content:space-between;gap:8px}
.metric-head h2 {font-size:14px;color:var(--muted);font-weight:650}
.icon {width:21px;height:21px;display:block;flex:none}
.icon-box {display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;border:1px solid var(--tint-line);background:var(--tint);color:var(--accent)}
.metric .icon-box {width:33px;height:33px;border-radius:9px}
.metric-value {display:block;font-size:clamp(22px,2vw,29px);line-height:1.25;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:9px 0}
.metric .star {font-size:.76em}.stat-dot {font-weight:400;color:#928572}
.tone-gold .metric-value {color:#ad5319}
.membership-value {font-size:22px;margin-top:12px}
.metric p {font-size:12px;line-height:1.5;color:var(--muted)}
.service-card:hover .service-link {text-decoration:underline}
.center-columns {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:20px;align-items:start}
.center-sheet {padding:clamp(20px,2.2vw,28px);border-radius:21px;background:var(--sheet)}
.sheet-title {margin-bottom:18px}
.sheet-title h2 {font-size:19px;letter-spacing:-.025em}
.sheet-title>span {font-size:12px;color:var(--muted)}
#profile-details .record-list {margin:0;padding:0;border:0;display:block}
.record-list>div {display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #e1d9cc}
.record-list>div:last-child {border:0;padding-bottom:5px}
.record-list dt {color:var(--muted);flex:none;font-weight:550;font-size:14px}
.record-list dd {text-align:right;font-size:14px}
.invitation-strip {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:17px 18px;margin-bottom:14px;background:linear-gradient(110deg,#eaf0e6,#f2eee0);border:1px solid #c3cdb6;border-radius:14px}
.invitation-strip h3 {font-size:16px;margin:0 0 4px}
.invitation-strip p,.service-desc {font-size:13px;line-height:1.6;color:var(--muted)}
.invite-jump {margin-left:auto;border-color:#b6c9b4;background:#dbe6d6;color:#275541;padding:8px 12px}
.service-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.service-card {display:flex;align-items:flex-start;flex-direction:column;padding:18px 19px;min-height:151px;border:1px solid #d9d7cb;background:#eeeee5;color:var(--ink);border-radius:14px;text-align:left}
.service-card:hover {background:#f4f2e9;border-color:var(--tint-line)}
.service-card strong {margin:9px 0 3px;font-size:16px}
.service-link {margin-top:auto;padding-top:10px;font-size:13px;font-weight:700;color:#a45019}
.sync-status {display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:18px}
.sync-status #account-notice {font-size:13px}
.sync-status #retry {padding:6px 12px}
#invite-page>.icon-box {display:none}
.code-box {padding:16px 12px;border:1px solid #c9d3bf;background:#eef0e4;border-radius:12px;margin:18px 0 6px;display:grid;gap:12px;justify-items:center}

#announcement-status:not(:empty),#retry-announcements {margin-top:14px}
#announcement-list {list-style:none;margin:0;padding:0}
#announcement-list li {margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
#announcement-list time {color:var(--muted);font-size:12px}
#announcement-list p {margin-top:4px;overflow-wrap:anywhere;line-height:1.55}
#announcement-list p {white-space:pre-wrap}
#announcement-list h3 {font-size:17px;margin:4px 0;overflow-wrap:anywhere}
#announcement-list button,#more-announcements,#new-announcement {margin-top:12px}
#notice-editor {margin-top:18px}
#notice-body {width:100%;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--sheet);color:inherit;font:inherit}
#editor-status:not(:empty) {margin-block:10px;color:#903d18}
.notice-actions {display:flex;gap:8px;margin-top:12px}
#my-invite {font-size:clamp(15px,3.2vw,20px);letter-spacing:.015em;overflow-wrap:anywhere;text-align:center}
#copy-invite {display:inline-flex;gap:6px;align-items:center}
#copy-invite .icon {width:15px;height:15px}
@media(max-width:900px){
  .account-view .wrap {width:calc(100% - 36px)}
  .center-columns {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}
  .metrics {gap:10px}.metric {padding:14px;min-height:128px}
  .player-banner {gap:17px}.banner-actions {gap:6px}
  .invitation-strip {padding:13px}.service-card {padding:14px}
}
@media(max-width:720px){
  .account-view .wrap {width:calc(100% - 28px)}
  .account-view .desk {padding:17px 0 30px}
  .account-view .topbar {gap:10px;min-height:58px}
  .account-view .nav-download {display:none}
  #center-nav a,#center-nav button,#user-menu summary {font-size:12px;padding:7px 10px;white-space:nowrap}
  #nav-name {max-width:9ch}
  .player-banner {padding:18px;min-height:0;flex-wrap:wrap;gap:12px 15px;border-radius:18px}
  .player-emblem {width:65px;height:67px;border-radius:15px}
  .player-identity {flex:1}.name-line {gap:6px}
  #saved-name {font-size:24px}.player-identity p {font-size:12px}
  .banner-actions {width:100%;margin:2px 0 0}
  .banner-pill {padding:7px 13px;font-size:12px}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}
  .center-columns {grid-template-columns:1fr}
  .center-sheet {padding:19px}.record-list>div {padding:10px 0}
  .metric {min-height:116px;border-radius:15px}
  .metric-head h2 {font-size:13px}.metric .icon-box {width:26px;height:26px}
  .metric .icon {width:17px;height:17px}.metric-value {margin:7px 0}
  .invitation-strip .icon-box {display:none}
  .invite-jump {margin-left:0}.sync-status {justify-content:flex-start}
}
@media(max-width:360px){
  .account-view .topbar {gap:5px}
  #center-nav {gap:0}
  #center-nav a,#center-nav button,#user-menu summary {padding-inline:7px}
  #nav-name {max-width:6ch}.service-grid {grid-template-columns:1fr}
  .service-card {min-height:0}.service-desc {margin-bottom:4px}
}

.tool-page {max-width:760px;margin:0 auto;min-height:245px}
.tool-page h1 {font-size:clamp(24px,4vw,34px);letter-spacing:-.035em;margin:12px 0}
.tool-page>p,.rename-wallet {color:var(--muted);line-height:1.65}
.back-center {font-size:13px;font-weight:650;color:#345f50}
.code-box>span {font-size:13px;color:var(--muted)}
#rename-form {max-width:460px;margin-top:20px}
.rename-wallet {margin:15px 0}
#rename-status:not(:empty) {margin-top:14px}
@media(max-width:540px){
  .account-view .topbar {flex-wrap:wrap;gap:8px;padding:10px 0}
  #center-nav {order:1;flex-basis:100%;gap:4px}
}
