.profile-page {
  --archive-ink:#081622;
  --archive-paper:#f1ebd9;
  --archive-text:#e0edf1;
  --archive-muted:#abc3cf;
  --archive-blue:#a6daf4;
  --archive-line:#8dbbd038;
  --archive-rose:#ffb29e;
  --archive-width:min(1040px,calc(100% - clamp(32px,8vw,100px)));
  min-height:100dvh;
  color:var(--archive-text);
  background:var(--archive-ink);
}
.profile-hero {
  position:relative; isolation:isolate; display:grid; align-items:end; overflow:hidden;
  min-height:clamp(365px,38vw,455px);
  padding-top:calc(70px + var(--safe-top));
  background:#142737 var(--profile-scene) center 55% / cover no-repeat;
}
.profile-hero::after {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg,#071725e8,#081725b8 35%,#07152220 79%),
    linear-gradient(180deg,#05121b8a,transparent 34%,#08162225 56%,var(--archive-ink));
}
.profile-actor { position:absolute; z-index:-2; pointer-events:none; object-fit:contain; }
.profile-actor.is-ship { top:18%; right:max(-3vw,calc((100% - 1280px)/2)); width:min(69vw,900px); height:auto; transform:rotate(-4deg); filter:drop-shadow(0 16px 24px #060e18a8); }
.profile-actor.is-person { right:max(2vw,calc((100% - 1190px)/2)); bottom:-5%; width:min(57vw,560px); height:100%; object-position:right bottom; }
.profile-hero-inner,.profile-body { width:var(--archive-width); margin-inline:auto; }
.profile-hero-inner { padding-bottom:22px; }
.profile-page>.collection-bar { margin-bottom:calc(-64px - var(--safe-top)); }
.profile-favorite { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px 9px; margin-bottom:16px; color:var(--archive-muted); }
.profile-favorite>span,.profile-insight>div>span { font:600 12px/1.2 var(--font-ui); letter-spacing:.11em; text-transform:uppercase; color:var(--archive-blue); }
.profile-favorite strong { font:600 21px/1 var(--font-ui); color:var(--archive-text); }
.profile-favorite small { font-size:12px; }
.profile-rank { width:min(100%,400px); }
.profile-renown-total { display:flex; align-items:baseline; gap:7px; color:var(--archive-muted); font-size:14px; }
.profile-renown-total .icon { width:17px; height:17px; align-self:center; color:var(--archive-blue); }
.profile-renown-total strong { min-width:0; color:var(--archive-paper); font:600 clamp(34px,6vw,45px)/1 var(--font-ui); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.profile-renown-total b { margin-left:auto; font:600 15px/1 var(--font-ui); white-space:nowrap; }
.profile-renown-gauge { margin:11px 0 7px; height:8px; background:#729aaf42; overflow:hidden; }
.profile-renown-gauge>i { display:block; width:var(--progress); height:100%; background:repeating-linear-gradient(90deg,#abd9eb 0 8px,transparent 8px 11px); }
.profile-next-rank { display:flex; justify-content:space-between; color:var(--archive-muted); font:500 12px/1.2 var(--font-ui); font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.profile-catalog { display:flex; align-items:center; gap:7px; min-height:44px; margin:5px 0 -10px; padding:0; border:0; background:none; color:var(--archive-muted); font-size:13px; }
.profile-catalog strong { color:var(--archive-text); font:600 17px/1 var(--font-ui); }
.profile-catalog .icon { width:15px; height:15px; color:var(--archive-blue); }
.profile-body { padding-bottom:calc(32px + var(--safe-bottom)); }
.profile-insights { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:15px; }
.profile-insight { position:relative; isolation:isolate; display:flex; align-items:end; min-height:140px; overflow:hidden; padding:13px; border:1px solid var(--archive-line); background:#142a39; }
.profile-insight::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,#08132112,#08152285 46%,#081622f7 100%); }
.profile-insight-photo { position:absolute; z-index:-2; inset:0; }
.profile-insight-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 40%; }
.profile-insight>div { min-width:0; display:grid; gap:3px; }
.profile-insight strong { color:var(--archive-paper); font:600 clamp(17px,2.3vw,23px)/1.08 var(--font-ui); overflow-wrap:anywhere; }
.profile-insight small { color:var(--archive-muted); font-size:12px; }
.profile-awards { display:grid; grid-template-columns:135px minmax(0,1fr); align-items:center; gap:14px; padding:13px 0; border-block:1px solid var(--archive-line); }
.profile-awards h2,.profile-archive h2 { margin:0; color:var(--archive-paper); font:600 24px/1.1 var(--font-ui); }
.profile-awards h2 { font-size:19px; }
.profile-awards ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; list-style:none; padding:0; margin:0; }
.profile-awards li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px; padding-inline:11px; color:var(--archive-muted); font-size:13px; }
.profile-awards li+li { border-inline-start:1px solid var(--archive-line); }
.profile-awards li strong { color:var(--archive-blue); font:600 19px/1.1 var(--font-ui); }
.profile-archive { margin:26px 0 32px; }
.profile-archive>header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.profile-archive>header p { display:flex; align-items:center; gap:5px; margin:0; color:var(--archive-muted); font-size:12px; white-space:nowrap; }
.profile-archive>header b { color:var(--archive-text); font:600 16px/1 var(--font-ui); }
.profile-archive>header i { width:3px; height:3px; margin:0 3px; transform:rotate(45deg); background:var(--archive-muted); }
.archive-list { display:grid; gap:9px; list-style:none; margin:0; padding:0; }
.archive-empty { margin:0; padding:16px 0; border-block:1px solid var(--archive-line); color:var(--archive-muted); }
.archive-more.button { margin:14px auto 0; }
.archive-more small { color:var(--archive-muted); font:500 12px/1 var(--font-body); }
.report-coverage { margin:0 0 18px; color:#abc3cf; font:500 14px/1.4 var(--font-body); }
.archive-row {
  position:relative; isolation:isolate; display:grid; grid-template-columns:60px minmax(0,1fr) minmax(120px,172px) minmax(84px,104px) 16px; gap:14px;
  align-items:center; width:100%; min-height:100px; padding:12px 15px; text-align:left;
  color:var(--archive-text); border:1px solid var(--archive-line);
  background:#172d3b var(--archive-scene) right 45% / cover no-repeat;
}
.archive-row::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#091a28f5,#091a28e7 45%,#0a1a29a8); }
.archive-row:hover { border-color:#b9dcec9c; }
.archive-row:active { transform:none; }
.archive-portrait { display:block; width:54px; height:63px; border:1px solid #a4c9de6e; background:#1c3848; }
.archive-portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.archive-identity,.archive-progress { min-width:0; display:grid; gap:4px; }
.archive-identity>strong { color:var(--archive-paper); font:600 23px/1.05 var(--font-ui); }
.archive-date { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--archive-muted); font-size:12px; }
.archive-date b { color:var(--archive-blue); font:600 12px/1 var(--font-ui); letter-spacing:.09em; text-transform:uppercase; }
.archive-row[data-result="defeat"] .archive-date b { color:var(--archive-rose); }
.archive-progress strong { font:600 18px/1 var(--font-ui); }
.archive-progress small { color:var(--archive-muted); font-size:12px; }
.archive-award { display:flex; align-items:center; justify-content:flex-end; gap:6px; color:var(--archive-blue); font:600 25px/1 var(--font-ui); font-variant-numeric:tabular-nums; }
.archive-award .icon { width:17px; height:17px; flex:none; }
.archive-arrow { width:15px; height:15px; color:var(--archive-muted); }
.profile-console { display:grid; align-items:start; gap:25px; }
.profile-console>section { min-width:0; padding:21px 18px 18px; background:linear-gradient(135deg,#193342a6,#0a1a2770); border:1px solid #89b8d024; border-radius:0; }
.profile-console h2 { margin:0 0 14px; color:#b7d3e1; font:600 16px/1.1 var(--font-ui); text-transform:uppercase; letter-spacing:.13em; }
.profile-setting { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:49px; font-size:14px; }
.profile-offline [data-offline-status] { color:#a0cadf; font-variant-numeric:tabular-nums; }
.profile-offline button { padding-inline:.7em; min-height:42px; }
.profile-offline [hidden] { display:none; }
.profile-switch { flex:0 0 91px; display:grid; grid-template-columns:20px 24px 15px; align-items:center; justify-content:end; gap:7px; height:44px; padding:0; color:#839fae; background:none; border:0; border-radius:0; }
.profile-switch span { display:grid; place-items:center; }
.profile-switch .icon { width:17px; height:17px; }
.profile-switch b { font:500 14px/1 var(--font-ui); letter-spacing:.04em; text-align:left; }
.profile-switch>i { display:block; width:12px; height:8px; background:#344f60; box-shadow:inset 0 1px #718fa23b; transition:background .12s,box-shadow .12s; }
.profile-switch.on { color:#c6e6f3; }
.profile-switch.on>i { background:#a5dcee; box-shadow:0 0 9px #7dd4f33b; }
.profile-switch:hover { color:#e7f4f8; }
.profile-switch:active { transform:none; }
.profile-switch:focus-visible { outline:1px solid #a5dcee; outline-offset:3px; }
.profile-guide.button { width:100%; margin-top:17px; gap:10px; justify-content:flex-start; min-height:46px; }
.profile-guide>.icon:last-child { margin-left:auto; width:15px; height:15px; }
.profile-save-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.profile-save-actions .button { min-width:0; min-height:48px; padding:10px 9px; font-size:15px; letter-spacing:.015em; gap:7px; }
.profile-save-actions .icon { width:16px; height:16px; }
.profile-saves .save-warning { margin:0 0 16px; border-radius:0; }
.profile-save-info { display:grid; gap:10px; margin:0 0 16px; font-size:14px; }
.profile-save-info div { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.profile-save-info dt { color:var(--archive-muted); }
.profile-save-info dd { margin:0; color:var(--archive-text); font-variant-numeric:tabular-nums; }
.profile-recovery.button { width:100%; margin-top:16px; padding:12px 14px; font-size:15px; letter-spacing:.02em; line-height:1.35; text-align:left; }
@media(min-width:700px) {
  .profile-console { grid-template-columns:1fr 1fr; gap:22px; }
  .profile-console>section { padding:22px; }
}
@media(max-width:699px) {
  .profile-hero { min-height:350px; }
  .profile-hero::after { background:linear-gradient(90deg,#071725d8,#08172572 60%,#08172525),linear-gradient(180deg,#05121b71,transparent 30%,#0816228a 68%,var(--archive-ink)); }
  .profile-actor.is-ship { top:23%; right:-26%; width:130%; max-width:none; }
  .profile-actor.is-person { right:-9%; width:80%; height:99%; bottom:0; }
  .profile-hero-inner { padding-bottom:16px; }
  .profile-favorite { margin-bottom:11px; }
  .profile-insights { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .profile-insight { min-height:108px; padding:9px; }
  .profile-awards { grid-template-columns:1fr; gap:8px; }
  .profile-awards li { flex-direction:column; align-items:start; padding:0 0 0 8px; font-size:11px; }
  .profile-awards li:first-child { padding-inline-start:0; }
  .archive-row {
    grid-template-columns:38px minmax(0,1fr) auto 12px; grid-template-rows:auto auto;
    grid-template-areas:"portrait identity award arrow" "portrait progress award arrow";
    gap:2px 8px; min-height:94px; padding:10px 9px;
  }
  .archive-portrait { grid-area:portrait; width:38px; height:47px; }
  .archive-identity { grid-area:identity; align-self:end; gap:3px; }
  .archive-identity>strong { font-size:19px; }
  .archive-date { font-size:11px; }
  .archive-progress { grid-area:progress; align-self:start; gap:1px; }
  .archive-progress strong,.archive-progress small { font-size:12px; line-height:1.05; }
  .archive-progress small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .archive-award { grid-area:award; gap:3px; font-size:20px; }
  .archive-award .icon,.archive-arrow { width:13px; height:13px; }
  .archive-arrow { grid-area:arrow; }
}
@media(max-width:359px) {
  .profile-console>section { padding:18px 13px; }
  .profile-save-actions { gap:9px; }
  .profile-save-actions .button { font-size:14px; }
}
