:root {
  --bg: #14141f; --panel: #1c1c2c; --card: #232336; --card2: #2a2a42;
  --accent: #ffd479; --accent2: #7aa2ff; --text: #e9e9f2; --muted: #9a9ab5;
  --good: #7ee787; --warn: #ffb86b; --bad: #ff7b72; --line: #34344e;
  --glow: 0 0 0 1px rgba(255, 212, 121, .25), 0 6px 24px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(122, 162, 255, .10), transparent 60%),
    radial-gradient(800px 420px at -10% 0%, rgba(255, 212, 121, .07), transparent 60%),
    var(--bg);
  color: var(--text); font-size:16px; min-height: 100vh;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a6e; }
header {
  padding: 14px 20px 10px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,212,121,.06), transparent), var(--panel);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px);
}
h1 {
  margin: 0 0 10px; font-size:20px;
  background: linear-gradient(90deg, var(--accent), #ffe9b8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
nav { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  background: none; border: 1px solid transparent; color: var(--muted); padding: 7px 14px;
  cursor: pointer; border-radius: 20px; font-size:16px; transition: all .18s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab.active {
  color: #2a2010; background: linear-gradient(135deg, var(--accent), #f0b74a);
  font-weight: 700; box-shadow: 0 2px 10px rgba(255,212,121,.25);
}
main { padding: 20px; max-width: 1140px; margin: 0 auto; }
.panel { display: none; animation: fadeIn .25s ease; }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
input, select, textarea {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-size:16px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(122,162,255,.18); }
button {
  background: linear-gradient(135deg, var(--accent), #f0b74a); color: #2a2010; border: none;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size:16px;
  transition: transform .12s, box-shadow .15s, filter .15s;
}
button:hover { filter: brightness(1.07); box-shadow: 0 4px 14px rgba(255,212,121,.28); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
button.secondary:hover { border-color: var(--accent2); box-shadow: 0 4px 14px rgba(122,162,255,.18); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
.char-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 50%), var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .2s;
}
.char-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow); }
.char-card h3 { margin: 0 0 6px; font-size:16px; }
.char-card .sub { color: var(--muted); font-size:16px; }
.stat-line { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.stat-line span:last-child { color: var(--accent); }
.hidden { display: none; }
.msg { color: var(--muted); }
.hint { color: var(--muted); font-style: italic; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.form-grid label, label.block { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size:16px; }
label.block { margin-bottom: 14px; max-width: 560px; }
.grade { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 5px; font-weight: 700; }
.grade.S { background: #ffd479; color: #2a2010; }
.grade.A { background: #7ee787; color: #10240f; }
.grade.B { background: #7aa2ff; color: #0a1530; }
.grade.C { background: #ffb86b; color: #2a1a08; }
.grade.D { background: #ff7b72; color: #2a0a08; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.big { font-size:28px; font-weight: 700; color: var(--accent); }
.warn { background: rgba(255,184,107,.12); border: 1px solid var(--warn); border-radius: 8px; padding: 10px 12px; margin: 12px 0; color: var(--warn); font-size:16px; max-width: 560px; }
.note { color: var(--warn); font-size:16px; margin-top: 6px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--accent2); padding: 10px 18px; border-radius: 8px; z-index: 10; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar > span { display: block; height: 100%; background: var(--accent2); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--line); background: var(--card); border-left-width: 4px; }
.alert .ico { font-size:18px; }
.alert .body { flex: 1; }
.alert .body .t { font-weight: 600; }
.alert .body .d { color: var(--muted); font-size:16px; margin-top: 2px; }
.alert.urgent { border-left-color: var(--bad); }
.alert.warn { border-left-color: var(--warn); }
.alert.info { border-left-color: var(--accent2); }
.alert.ok { border-left-color: var(--good); opacity: .8; }
.pill { padding: 6px 12px; border-radius: 20px; font-weight: 600; font-size:16px; }
.pill.urgent { background: rgba(255,123,114,.18); color: var(--bad); }
.pill.warn { background: rgba(255,184,107,.18); color: var(--warn); }
.pill.ok { background: rgba(126,231,135,.18); color: var(--good); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.ach-cat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.ach-cat > summary { cursor: pointer; padding: 10px 14px; user-select: none; }
.ach-cat > summary:hover { color: var(--accent); }
.cat-prog { margin-left: 8px; }
.ach-items { padding: 4px 8px 10px; }
.ach-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ach-item:hover { background: rgba(255,255,255,.04); }
.ach-item input { width: 16px; height: 16px; cursor: pointer; }
.ach-item .ach-name { font-weight: 600; grid-column: 2; }
.ach-item .ach-desc { grid-column: 2; color: var(--muted); font-size:16px; }
.ach-item .ach-reward { grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-size:16px; white-space: nowrap; }
.ach-item.done .ach-name { text-decoration: line-through; color: var(--muted); }
.ach-item.done { opacity: .7; }

/* ---------- build view: hero, what's-best, artifact detail cards ---------- */
.build-hero {
  border-left: 4px solid var(--elem, var(--accent));
  background:
    radial-gradient(420px 140px at 0% 0%, color-mix(in srgb, var(--elem, #ffd479) 14%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--card);
}
.build-portrait {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--elem, var(--accent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--elem, #ffd479) 45%, transparent);
  background: var(--card2);
}
.chip {
  display: inline-block; background: var(--card2); border: 1px solid var(--line);
  color: var(--text); border-radius: 20px; padding: 3px 10px; font-size:16px; margin: 2px;
}
.chip-gold { border-color: var(--accent); color: var(--accent); background: rgba(255,212,121,.10); font-weight: 700; }
.chip-green { border-color: var(--good); color: var(--good); background: rgba(126,231,135,.10); font-weight: 700; }
.set-bonus { color: var(--muted); font-size:16px; margin: 4px 0 4px 4px; line-height: 1.5; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.art-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 45%), var(--card2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  transition: transform .15s, border-color .15s, box-shadow .2s;
}
.art-card:hover { border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.art-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.art-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #3a3a5e, #2a2a42); padding: 2px; }
.art-slot { font-weight: 700; font-size:16px; }
.art-set { color: var(--accent2); font-size:16px; margin-top: 2px; }
.art-main {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,212,121,.08); border: 1px solid rgba(255,212,121,.25);
  border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-weight: 600;
}
.art-main-val { color: var(--accent); font-size:16px; }
.art-subs { display: flex; flex-direction: column; gap: 3px; }
.art-sub {
  display: flex; justify-content: space-between; font-size:16px;
  color: var(--muted); padding: 2px 4px; border-radius: 4px;
}
.art-sub-crit { color: var(--accent); background: rgba(255,212,121,.06); font-weight: 600; }
.pips { color: var(--accent2); letter-spacing: 2px; font-weight: 900; font-size:16px; }
.art-cv { margin-top: 8px; font-size:16px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; text-align: right; }

/* Personal coach */
#tabs { flex-wrap:wrap; }
.coach-intro { border-color:var(--accent); }
.coach-form { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0; }
.coach-form label { display:flex;flex-direction:column;gap:6px;font-size:16px; }
.coach-form input,.coach-form select { width:100%;box-sizing:border-box;min-width:0; }
.coach-check { display:flex;flex-direction:row;align-items:center;gap:8px; }
.coach-check input { width:auto; }
.coach-metrics { display:flex;gap:12px;flex-wrap:wrap;margin:12px 0; }
.coach-metric { background:rgba(126,167,255,.08);border:1px solid var(--line);padding:12px 18px;border-radius:10px;display:flex;flex-direction:column;gap:4px; }
.coach-metric b { font-size:22px;color:var(--accent); }
.coach-metric span { font-size:16px;color:var(--muted); }
.coach-table { overflow-x:auto; }
.coach-table table { width:100%;border-collapse:collapse;text-align:left; }
.coach-table th,.coach-table td { padding:9px;border-bottom:1px solid var(--line); }
#coachEvidence { white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font-size:16px; }
.coach-history { border-bottom:1px solid var(--line);padding:12px 0; }
.coach-history summary { cursor:pointer; }
button:disabled { opacity:.5;cursor:not-allowed; }

/* Refined desktop workspace. Local fonts and CSS artwork only. */
:root {
  color-scheme: dark;
  --bg:#0d1420; --panel:#111b29; --card:#162231; --card2:#1b2a3b;
  --text:#f2f0e9; --muted:#a2afbf; --line:#2a394a;
  --accent:#eacb8a; --accent2:#80c7c1; --good:#87d2b0; --warn:#efbc80; --bad:#f39a98;
  --sidebar-width:242px; --radius:16px;
  --glow:0 0 0 1px #eacb8a35,0 8px 30px #0005;
}
body { font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif; font-size:16px; line-height:1.55; background:radial-gradient(1000px 700px at 90% 0%,#28434720,transparent 70%),var(--bg); }
button,input,select,textarea { font-family:inherit; }
button { min-height:42px; border:1px solid #efd498; border-radius:9px; padding:10px 17px; background:linear-gradient(120deg,#ead098,#dbb56c); color:#252113; font-size:16px; letter-spacing:.08px; box-shadow:0 3px 9px #0002; transition:background .16s,border-color .16s,box-shadow .16s,transform .16s; }
button:hover:not(:disabled) { filter:none; transform:translateY(-1px); box-shadow:0 4px 16px #eacb8a20; background:linear-gradient(120deg,#f5ddb0,#e7c484); }
button:active:not(:disabled) { transform:translateY(0); }
button.secondary { background:#ffffff04; border:1px solid #3a4b5f; color:#d7e0e8; box-shadow:none; }
button.secondary:hover:not(:disabled) { background:#ffffff09; border-color:#7aa9b0; box-shadow:none; }
button:disabled { opacity:.42; cursor:not-allowed; transform:none; box-shadow:none; filter:none; }
button.compact { min-height:36px; padding:7px 12px; font-size:16px; }
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--accent2); outline-offset:4px; }
input,select,textarea { min-height:42px; background:#101b29; border:1px solid #34465a; border-radius:9px; padding:9px 12px; font-size:16px; max-width:100%; }
input::placeholder,textarea::placeholder { color:#8a9bae; opacity:1; }
input:focus,select:focus,textarea:focus { border-color:var(--accent2); box-shadow:0 0 0 3px #80c7c11c; }
input[type=checkbox] { accent-color:var(--accent2); width:17px; height:17px; min-height:17px; margin:0; flex-shrink:0; }
input[type=range] { accent-color:var(--accent2); padding:0; }
select { cursor:pointer; }
textarea { resize:vertical; line-height:1.6; }
.skip-link { position:fixed; left:260px; top:-70px; z-index:100; padding:12px 20px; background:var(--accent); color:#202020; border-radius:0 0 8px 8px; }
.skip-link:focus { top:0; }
header.sidebar { position:fixed; inset:0 auto 0 0; width:var(--sidebar-width); z-index:20; display:flex; flex-direction:column; padding:0; border:0; border-right:1px solid #29374a; background:linear-gradient(150deg,#19253333,transparent 35%),#101925; backdrop-filter:none; }
.brand { display:flex; align-items:center; gap:12px; padding:26px 20px 25px; }
.brand-mark { display:grid; place-items:center; width:40px; height:44px; flex-shrink:0; border:1px solid #eacb8a50; border-radius:12px; background:#eacb8a09; color:var(--accent); font-size:30px; }
.brand h1 { margin:0 0 4px; font-size:17px; font-weight:650; letter-spacing:-.5px; background:none; color:var(--text); }
.brand-caption { color:#8395a9; font-size:16px; letter-spacing:1.35px; font-weight:650; }
#tabs { display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:5px; overflow-y:auto; padding:0 12px 20px; flex:1; }
.nav-group { display:block; padding:18px 12px 7px; color:#8193a7; font-size:16px; font-weight:700; letter-spacing:1.65px; }
.nav-group:first-child { padding-top:0; }
.tab { display:flex; align-items:center; gap:12px; min-height:43px; padding:10px 13px; text-align:left; border:1px solid transparent; border-radius:8px; color:#a8b7c9; background:none; font-size:16px; font-weight:500; box-shadow:none; }
.nav-icon { display:inline-grid; place-items:center; width:20px; flex-shrink:0; font-family:"Segoe UI Symbol","Segoe UI",sans-serif; font-size:19px; color:#8fa6bc; }
.tab:hover:not(:disabled) { background:#ffffff06; color:var(--text); border-color:transparent; transform:none; box-shadow:none; }
.tab.active,.tab.active:hover:not(:disabled) { color:var(--accent); background:linear-gradient(90deg,#eacb8a14,#eacb8a07); border:1px solid #eacb8a24; box-shadow:inset 3px 0 0 #eacb8a; font-weight:650; }
.tab.active .nav-icon { color:var(--accent); }
.tab-settings { margin-top:16px; border-top:1px solid #29374a; border-radius:0 0 8px 8px; padding-top:15px; }
.sidebar-foot { display:flex; align-items:center; gap:10px; padding:18px 22px; border-top:1px solid #273648; }
.privacy-dot { width:7px; height:7px; border-radius:50%; background:var(--accent2); flex-shrink:0; box-shadow:0 0 10px #80c7c129; }
.sidebar-foot strong { display:block; font-size:16px; font-weight:600; color:#c1ced9; }
.sidebar-foot span:not(.privacy-dot) { display:block; color:#8193a7; font-size:16px; margin-top:3px; }
.command-bar { margin-left:var(--sidebar-width); min-height:92px; padding:20px 34px; display:flex; justify-content:space-between; align-items:center; gap:20px; border-bottom:1px solid #263448; background:#111b2980; }
.command-eyebrow { color:#8496aa; letter-spacing:1.4px; font-size:16px; font-weight:650; }
.command-bar h2 { font-size:18px; line-height:1.3; margin:5px 0 0; font-weight:600; letter-spacing:-.35px; }
.command-actions { display:flex; align-items:center; gap:16px; }
.shell-status { color:#93a6ba; font-size:16px; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
main { max-width:1550px; margin:0 0 0 var(--sidebar-width); padding:28px 34px 45px; min-width:0; }
.panel { animation:fadeIn .2s ease; }
.panel > .row:first-child { margin-top:0; }
.row { align-items:center; gap:10px; margin-bottom:18px; }
h2,h3,h4 { line-height:1.35; }
h2 { font-weight:650; letter-spacing:-.5px; }
h3 { font-size:16px; font-weight:600; letter-spacing:-.2px; }
p { line-height:1.7; }
.sub,.msg,.hint { color:var(--muted); font-size:16px; line-height:1.65; }
.msg:empty { display:none; }
.hint { font-style:normal; padding:9px 0; }
.card { border-radius:var(--radius); padding:22px; margin-bottom:20px; background:linear-gradient(150deg,#ffffff02,transparent 60%),var(--card); border:1px solid var(--line); box-shadow:0 6px 22px #0000000d; }
.card h3:first-child,.card h2:first-child { margin-top:0; }
.card > .row:last-child { margin-bottom:0; }
.grid { gap:16px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.char-card { border-radius:12px; padding:17px; background:linear-gradient(150deg,#24364850,transparent),var(--card); border-color:var(--line); min-width:0; }
.char-card h3 { font-size:16px; line-height:1.6; }
.char-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px #0003; }
#today .char-card { cursor:default; }
#today .char-card:hover { transform:none; border-color:var(--line); box-shadow:none; }
.stat-line { font-size:16px; padding:6px 0; border-bottom:1px solid #ffffff06; }
.stat-line span:last-child { font-variant-numeric:tabular-nums; }
.form-grid { gap:18px; padding:22px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:20px; }
.form-grid label,label.block,.coach-form label,.account-filters > label:not(.account-comfort) { display:flex; flex-direction:column; gap:8px; color:#b3c1cf; font-size:16px; font-weight:500; }
.form-grid input,.form-grid select,label.block input,label.block textarea,label.block select { width:100%; min-width:0; }
label.block { margin-bottom:20px; max-width:660px; }
table { font-size:16px; }
th,td,.coach-table th,.coach-table td { padding:12px 13px; vertical-align:top; border-bottom:1px solid #ffffff09; }
th { color:#afbdcb; font-size:16px; letter-spacing:.3px; background:#ffffff02; font-weight:650; }
tbody tr:hover { background:#ffffff02; }
.coach-table { border:1px solid var(--line); border-radius:10px; }
.warn { max-width:none; border-radius:11px; padding:16px 18px; border-color:#efbc803a; background:#efbc8009; line-height:1.65; }
.warn.alert { padding:12px 14px; }
.chip { font-size:16px; padding:4px 9px; border-color:#ffffff12; background:#ffffff04; }
.chip-gold { color:var(--accent); border-color:#eacb8a50; background:#eacb8a0a; }
.chip-green { color:var(--good); border-color:#87d2b050; }
.big { font-size:30px; letter-spacing:-.8px; font-variant-numeric:tabular-nums; }
.toast { left:calc(50% + var(--sidebar-width)/2); max-width:min(650px,70vw); border-color:#80c7c16e; background:#1b2d3c; box-shadow:0 12px 35px #0007; padding:14px 22px; border-radius:12px; }
details > summary { cursor:pointer; color:#d1dde6; padding:3px 0; font-size:16px; }
details[open] > summary { margin-bottom:13px; }
summary::marker { color:var(--accent2); }
.ach-cat { border-radius:11px; }
.ach-cat > summary { padding:16px 18px; }
.ach-items { padding:8px 14px 14px; }
.ach-item { padding:10px 8px; }
.ach-item .ach-desc { line-height:1.6; }
.art-card { border-radius:12px; padding:16px; background:#172738; }
.art-card:hover { transform:none; }
.art-main { background:#eacb8a08; border-color:#eacb8a25; padding:10px; }
.art-icon { background:#253b4a; }
.art-sub { padding:5px 4px; }
.art-needs { margin-top:12px; padding-top:10px; border-top:1px dashed var(--line); display:flex; flex-direction:column; gap:8px; }
.art-needs-title { color:var(--accent2); font-size:16px; font-weight:700; letter-spacing:1.4px; }
.need-line { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:16px; color:var(--muted); }
.need-have { color:var(--text); font-weight:600; text-align:right; }
.need-want { margin:2px 0 0 21px; color:var(--muted); font-size:16px; line-height:1.45; }
.need-ico { display:inline-grid; place-items:center; width:15px; height:15px; margin-right:6px; border-radius:50%; font-size:16px; font-weight:800; background:#ffffff0d; color:var(--muted); }
.need-ok .need-ico { background:#87d2b026; color:var(--good); }
.need-review .need-ico { background:#efbc8026; color:var(--warn); }
.need-review .need-have { color:var(--warn); }
.build-hero { border-left-width:3px; }
.coach-intro { border-color:#eacb8a30; background:linear-gradient(120deg,#eacb8a07,#80c7c107),var(--card); }
.coach-intro h2 { color:var(--accent); }
.coach-metrics { gap:14px; }
.coach-metric { background:#80c7c107; border-color:#80c7c120; border-radius:12px; min-width:130px; }
.coach-metric b { font-size:26px; }
#coachEvents button { min-height:36px; padding:7px 12px; background:#1c3543; border-color:#355969; color:#b5dedb; }
#coachHistoryClear { color:var(--bad); border-color:#f39a9840; }
#coachEvidence { padding:14px; background:#101b29; border-radius:10px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:var(--accent2); font-size:16px; font-weight:700; letter-spacing:1.7px; }
.account-hero { position:relative; display:flex; align-items:center; min-height:276px; overflow:hidden; padding:31px 34px; border:1px solid #eacb8a28; border-radius:18px; background:radial-gradient(450px 360px at 87% 50%,#48666b22,transparent 78%),linear-gradient(105deg,#1d2a38,#152331); margin-bottom:24px; }
.account-hero-content { position:relative; z-index:1; width:72%; max-width:750px; }
.account-hero h2 { font-size:clamp(29px,2.7vw,40px); line-height:1.19; letter-spacing:-1.35px; margin:13px 0 14px; font-weight:650; }
.account-hero h2 > span { color:var(--accent); }
.account-hero p { font-size:16px; max-width:515px; color:#b3c3d1; margin:0 0 21px; line-height:1.8; }
.hero-actions { display:flex; gap:9px; flex-wrap:wrap; margin:0 0 10px; }
.hero-actions button { font-size:16px; }
.hero-actions button:first-child { display:flex; gap:17px; align-items:center; }
.account-hero .msg { font-size:16px; color:#91a5b9; }
.account-hero-art { position:absolute; right:24px; top:50%; width:260px; height:260px; transform:translateY(-50%); opacity:.82; }
.orbit { position:absolute; border:1px solid #eacb8a28; border-radius:50%; inset:14px; }
.orbit-outer::after { content:""; position:absolute; inset:13px; border:1px dashed #eacb8a15; border-radius:50%; }
.orbit-inner { inset:66px; border-color:#80c7c12b; background:radial-gradient(circle,#eacb8a0d,transparent); }
.compass-lines { position:absolute; inset:36px; transform:rotate(45deg); border:1px solid #eacb8a1e; }
.compass-lines::before,.compass-lines::after { content:""; position:absolute; inset:50% -13%; border-top:1px solid #eacb8a1c; }
.compass-lines::after { transform:rotate(90deg); }
.hero-star { position:absolute; inset:0; display:grid; place-items:center; color:var(--accent); font-size:110px; text-shadow:0 0 40px #eacb8a20; line-height:1; }
.orbit-point { position:absolute; width:7px; height:7px; border-radius:50%; background:var(--accent2); box-shadow:0 0 16px #80c7c150; }
.point-one { top:33px; left:49px; }
.point-two { top:82px; right:18px; width:5px; height:5px; background:var(--accent); }
.point-three { bottom:33px; left:64px; width:5px; height:5px; }
.art-caption { position:absolute; bottom:0; width:100%; text-align:center; color:#83999e; font-size:16px; letter-spacing:3px; }
.account-progress { padding:14px 18px; color:var(--accent2); font-size:16px; border:1px solid #80c7c12b; border-radius:10px; background:#80c7c106; margin-bottom:20px; }
.account-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin-bottom:22px; }
.account-metric,.metric-card { padding:19px 22px; background:var(--card); border:1px solid var(--line); border-radius:13px; display:flex; flex-direction:column; gap:7px; }
.account-metric b,.account-metric strong,.metric-card b { color:var(--accent); font-size:28px; font-weight:600; line-height:1.3; letter-spacing:-.7px; }
.account-metric span,.metric-card span { color:var(--muted); font-size:16px; }
.account-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:26px 0 15px; }
.account-section-heading h3 { margin:6px 0 0; font-size:19px; letter-spacing:-.5px; }
.account-section-heading .sub { font-size:16px; text-align:right; }
.account-control-card { padding:21px 24px; margin:24px 0; }
.account-control-card .account-section-heading { margin:0 0 18px; }
.account-control-card h3 { font-size:16px; }
.account-control-card .eyebrow { font-size:16px; }
.account-filters { display:grid; grid-template-columns:minmax(145px,1fr) minmax(145px,1fr) minmax(150px,1.1fr) auto; gap:15px; align-items:end; }
.account-filters select,.account-filters input[type=search] { width:100%; min-width:0; font-size:16px; }
.account-comfort { display:flex; align-items:center; gap:9px; padding:9px 0; color:#c0cedb; font-size:16px; line-height:1.3; }
.account-comfort small { display:block; font-size:16px; color:var(--muted); margin-top:5px; }
.account-roster-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(275px,1fr)); gap:16px; }
.account-character { padding:21px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(140deg,#26374725,transparent),var(--card); min-width:0; }
.account-character h3,.account-team h3 { font-size:16px; margin:0 0 5px; }
.account-character .row { margin-bottom:12px; }
.account-portrait { width:52px; height:52px; object-fit:contain; border-radius:13px; background:#293849; border:1px solid #eacb8a25; flex-shrink:0; }
.account-status,.account-badge { display:inline-flex; border:1px solid #80c7c132; border-radius:6px; padding:3px 7px; color:var(--accent2); background:#80c7c106; font-size:16px; font-weight:600; }
.account-badge { margin:3px 3px 3px 0; }
.account-badge.warn { padding:3px 7px; margin:3px 3px 3px 0; color:var(--warn); border-color:#efbc803a; }
.account-source { color:#93a9be; font-size:16px; line-height:1.65; }
.account-source a,.account-team a { color:var(--accent2); text-underline-offset:3px; }
.account-priority,.priority-card { padding:12px 14px; border-radius:9px; border:1px solid #eacb8a28; background:#eacb8a06; margin:10px 0; font-size:16px; }
.account-fix-list { padding-left:18px; color:#b8c6d4; font-size:16px; line-height:1.7; }
.account-fix-list li { padding:4px 0; }
.account-fix-list strong { color:#e7e8e5; font-weight:600; }
.account-character > button,.account-character .secondary { width:100%; margin-top:8px; min-height:37px; font-size:16px; }
.account-team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr)); gap:18px; }
.account-team,.team-card { padding:24px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(160deg,#80c7c105,transparent 45%),var(--card); min-width:0; }
.account-team p { font-size:16px; color:#aebecb; }
.account-team-members { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:20px 0; }
.account-team-members > * { text-align:center; min-width:0; padding:12px 3px; border:1px solid #ffffff0a; border-radius:11px; background:#ffffff02; }
.account-team-members .account-portrait,.account-team-members img { display:block; width:42px; height:42px; margin:0 auto 9px; border-radius:50%; object-fit:contain; }
.account-team-members strong,.account-team-members b { display:block; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.account-team-members small,.account-team-members .sub { display:block; margin-top:3px; font-size:16px; color:var(--muted); }
.account-team ol { padding-left:20px; font-size:16px; color:#b7c7d4; line-height:1.8; }
.account-team ol li { padding:3px 0; }
.account-team details { border-top:1px solid #ffffff0a; margin-top:17px; padding-top:12px; }
.account-team button { margin-top:15px; }
.account-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:40px 25px; border:1px dashed #3a4b60; border-radius:14px; background:linear-gradient(160deg,#1c2a3a45,transparent); }
.account-empty h3 { font-size:18px; margin:15px 0 9px; }
.account-empty p { color:#9dafa9; font-size:16px; max-width:440px; margin:0 0 20px; line-height:1.8; }
.account-empty .sub { display:block; font-size:16px; margin-top:15px; color:#8198af; }
.empty-symbol { color:var(--accent); display:grid; place-items:center; width:55px; height:55px; font-size:31px; border:1px solid #eacb8a25; border-radius:15px; background:#eacb8a06; }
.account-empty-small { padding:25px; }
.account-empty-small h3 { font-size:16px; margin:0 0 8px; }
.account-empty-small p { margin:0; max-width:550px; }
.account-disclosure { margin-top:20px; font-size:16px; color:#8698ac; }
.account-metric small { color:#8096aa; font-size:16px; }
#accountCoverage { padding:13px 17px; margin-bottom:20px; border:1px solid #80c7c122; border-left:2px solid #80c7c17a; border-radius:9px; background:#80c7c105; color:#9eb5c7; font-size:16px; line-height:1.8; }
#accountCoverage:empty { display:none; }
.account-character { display:flex; flex-direction:column; }
.account-character-head { display:grid; grid-template-columns:52px minmax(0,1fr); gap:9px 12px; align-items:center; margin-bottom:9px; }
.account-character-head > .account-portrait { grid-row:1 / span 2; }
.account-character-head > .account-badge { grid-column:2; justify-self:start; margin:0; }
.account-character-head .sub { font-size:16px; line-height:1.6; display:block; }
.account-initial { display:grid; place-items:center; color:var(--accent); font-size:25px; font-weight:500; }
.account-badge.uncertain { color:var(--warn); border-color:#efbc803a; background:#efbc8009; }
.account-fix-list span { display:block; font-size:16px; color:#9cb0c3; margin-top:3px; line-height:1.7; }
.account-character-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:14px; border-top:1px solid #ffffff0a; }
.account-character-foot .secondary { width:auto; margin:0; min-height:34px; padding:7px 10px; white-space:nowrap; font-size:16px; }
.account-character-foot .account-source { font-size:16px; max-width:100px; }
.account-team-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.account-team-heading h3 { margin:7px 0 0; }
.account-team-heading > .account-badge { white-space:nowrap; padding:6px 8px; }
.account-team-members .account-initial { font-size:19px; }
.account-empty-symbol { color:var(--accent); font-size:31px; }
.account-empty > button + button { margin-top:9px; }
.team-heading { margin-top:30px; }
#settings { max-width:860px; }
#settings > h2 { font-size:24px; margin-top:0; margin-bottom:24px; }
#profile > .row:first-child { padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
#uidInput { flex:1; min-width:160px; }
#profileMsg,#rosterMsg { padding:8px 0; }
#profileSummary { border-color:#eacb8a30; }
#buildView > .hint { padding:30px; border:1px dashed var(--line); border-radius:14px; }
::-webkit-scrollbar { width:7px; height:7px; }
::-webkit-scrollbar-thumb { background:#34465b; border:1px solid var(--bg); border-radius:9px; }
::-webkit-scrollbar-thumb:hover { background:#496177; }
.hidden { display:none!important; }
@media (min-width:1700px) { main { margin-left:var(--sidebar-width); } .account-hero { padding:38px 40px; } .account-hero-art { right:65px; } }
@media (max-width:1200px) { :root { --sidebar-width:216px; } .brand { padding:25px 15px; gap:9px; } .brand h1 { font-size:16px; } .brand-caption { letter-spacing:1px; font-size:16px; } .tab { font-size:16px; gap:10px; } main { padding:24px; } .command-bar { padding:20px 24px; } .shell-status { display:none; } .account-hero { padding:27px; } .account-hero-art { width:210px; height:210px; right:8px; } .account-hero-content { width:78%; } .account-filters { grid-template-columns:1fr 1fr; } .account-comfort { align-self:center; } .account-hero h2 { font-size:32px; } .hero-star { font-size:90px; } .orbit-inner { inset:53px; } }
@media (max-width:960px) { :root { --sidebar-width:192px; } .brand-mark { width:31px; height:37px; font-size:25px; } .brand h1 { font-size:16px; } .brand-caption { font-size:16px; } .tab { font-size:16px; padding:10px; } .nav-icon { font-size:17px; width:16px; } .sidebar-foot { padding:17px 14px; } main { padding:20px; } .command-bar { padding:18px 20px; min-height:86px; } .command-bar h2 { font-size:16px; } .account-hero-art { opacity:.28; right:-35px; } .account-hero-content { width:100%; } .account-hero h2 { font-size:31px; } .account-hero p { max-width:440px; } .card { padding:19px; } .account-roster-grid { grid-template-columns:repeat(auto-fill,minmax(245px,1fr)); } .account-section-heading .sub { max-width:160px; } }
@media (max-height:950px) { .brand { padding-top:19px; padding-bottom:20px; } .nav-group { padding-top:11px; padding-bottom:5px; } .tab { min-height:37px; padding-top:7px; padding-bottom:7px; } #tabs { gap:3px; } .sidebar-foot { padding-top:13px; padding-bottom:13px; } }
@media (max-width:700px) { :root { --sidebar-width:64px; } .brand { padding:18px 12px; } .brand > div,.tab > span:not(.nav-icon),.brand-caption,.nav-group,.sidebar-foot { display:none; } #tabs { padding:8px; gap:7px; } .tab { justify-content:center; padding:10px 7px; min-height:42px; } .nav-icon { font-size:21px; } .tab-settings { margin-top:14px; } .command-eyebrow { font-size:16px; } .command-actions button { padding:7px 9px; font-size:16px; } main { padding:15px; } .command-bar { padding:17px 15px; gap:8px; } .account-hero { padding:23px; } .account-hero h2 { font-size:27px; } .account-filters { grid-template-columns:1fr; } .account-section-heading { align-items:flex-start; } .account-section-heading .sub { display:none; } .account-metrics { grid-template-columns:1fr 1fr; } .account-team-members { gap:5px; } .account-team { padding:18px; } .skip-link { left:70px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } button:hover,.char-card:hover { transform:none!important; } }

/* Traveler's Atlas: original wallpaper, celestial gold and readable glass panels. */
:root { --accent:#eed59b; --accent2:#8bd9d0; --wallpaper-opacity:.45; }
body { background:#0e1824; isolation:isolate; }
.fantasy-wallpaper { position:fixed; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,#07131d66,#08121e22),url('assets/traveler-landscape.png') center center/cover no-repeat; opacity:var(--wallpaper-opacity); }
.wallpaper-off .fantasy-wallpaper { display:none; }
header.sidebar { background:linear-gradient(180deg,#172c3bea,#101924ef); border-right:1px solid #eed59b35; backdrop-filter:blur(18px); }
.brand h1,.command-bar h2,.account-hero h2,.card h3,.account-section-heading h3 { font-family:Georgia,'Palatino Linotype',serif; letter-spacing:.2px; }
.brand-mark { color:#f4db9e; text-shadow:0 0 18px #d9b86855; }
.command-bar { background:#102333da; backdrop-filter:blur(14px); border-bottom:1px solid #eed59b25; }
.tab.active { background:linear-gradient(100deg,#c4a76435,#e4cc8c0b); border-color:#d3ba7955; box-shadow:inset 3px 0 #dfc78b; }
.card,.account-character,.account-team,.account-filters { background:linear-gradient(145deg,#213547ed,#142536ef); border:1px solid #c6ba882d; box-shadow:0 8px 28px #00000020; }
.account-hero { background:linear-gradient(90deg,#152c40ed 15%,#182d3eaa 70%,#152c4055),url('assets/traveler-landscape.png') center 48%/cover; border-color:#e8ce894f; min-height:310px; }
.account-hero h2 { font-size:39px; color:#f8f1dd; text-shadow:0 2px 14px #0008; }
.account-hero p { color:#d0dee4; }
.account-hero-art { opacity:.28; }
button { border-radius:7px; }
button:not(.secondary):not(.tab):not(.regionBtn) { background:linear-gradient(135deg,#ead59e,#bfa571); color:#162432; border-color:#f3dfac; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:2px solid #f3d899; outline-offset:3px; }
.appearance-card { margin-top:18px; width:100%; }
.appearance-card input[type=range] { width:100%; accent-color:#ead59e; }
.artifact-workbench h3 { font-size:23px; margin-bottom:6px; }
.artifact-set-comparison { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }
.artifact-set-comparison>div { padding:13px; background:#0c192d80; border:1px solid #ddc99422; border-radius:9px; }
.artifact-set-comparison span { display:block; font-size:16px; text-transform:uppercase; letter-spacing:1.2px; color:#99b3c4; margin-bottom:6px; }
.artifact-set-comparison strong { font-size:16px; color:#f0dbab; font-weight:500; }
.artifact-comparison { background:linear-gradient(160deg,#233c50ee,#132537f5); display:flex; flex-direction:column; min-width:0; border-color:#dec89036; }
.artifact-symbol { width:42px;height:42px;display:grid;place-items:center;background:#e8ce8914;border:1px solid #e8ce8933;border-radius:10px;font-size:26px;color:#e9cf92;flex-shrink:0; }
.art-head { min-height:56px; }
.artifact-column-label { color:#91b7c5; font-size:16px;letter-spacing:1.4px;font-weight:700;margin:16px 0 8px; }
.artifact-status { align-self:flex-start;border:1px solid #8cd7be44;background:#71c5a414;color:#a4e6c8;font-size:16px;padding:4px 8px;border-radius:5px;margin:4px 0; }
.artifact-status.replace,.artifact-status.missing { color:#ffc4a6;background:#d4836718;border-color:#d4836755; }
.artifact-status.upgrade { color:#f3d795;background:#e0bb6718;border-color:#e0bb6744; }
.artifact-status.verify { color:#c6d5e3;background:#93b3ca18;border-color:#93b3ca44; }
.artifact-requirements { border-top:1px solid #dccfa42a;margin-top:12px; }
.artifact-requirements dl { margin:0; }
.artifact-requirements dt { color:#98b0c1;font-size:16px;margin-top:10px; }
.artifact-requirements dd { margin:3px 0 0;font-size:16px;color:#f1dfb9;line-height:1.6;overflow-wrap:anywhere; }
.art-sub-useful { background:#dfc4840d; border-left:2px solid #ddc88c; padding-left:6px; color:#efe0b5; }
.art-useful-tag { display:block;color:#90c9bd;font-size:16px;font-weight:500; }
.art-sub { align-items:center; min-height:32px; }
.artifact-absent,.artifact-footnote { font-size:16px;line-height:1.7;color:#abc0d0; }
.artifact-action { margin-top:14px;padding:11px;background:#0d1c2bcc;border-radius:7px;font-size:16px;line-height:1.7;color:#e3e7db; }
.artifact-comparison .art-cv { margin-top:auto;padding-top:12px;text-align:left;font-size:16px;line-height:1.8; }
.artifact-footnote { margin:18px 0 0;max-width:950px; }
@media(max-width:960px) { .account-hero h2 {font-size:30px;} .artifact-set-comparison {grid-template-columns:1fr;} .art-grid {grid-template-columns:repeat(auto-fit,minmax(225px,1fr));} }

/* v0.7: white canvas, lavender surfaces, and accessible purple controls. */
:root {
  color-scheme:light;
  --bg:#ffffff; --panel:#ffffff; --card:#ffffff; --card2:#f5f0fb;
  --text:#2c233e; --muted:#685e78; --line:#e6deef;
  --accent:#7040b2; --accent2:#7147b7; --good:#237653; --warn:#93620e; --bad:#b73d4c;
  --glow:0 0 0 1px #ad86da40,0 8px 24px #63439412;
  --wallpaper-opacity:.20;
}
body { color:var(--text); background:#ffffff; }
.fantasy-wallpaper { background:linear-gradient(90deg,#ffffffbd,#ffffffa8),url('assets/traveler-landscape.png') center/cover no-repeat; opacity:var(--wallpaper-opacity); }
header.sidebar { background:linear-gradient(180deg,#fff,#fbf9fe); border-color:var(--line); backdrop-filter:none; }
.brand h1,.command-bar h2,.account-hero h2,.card h3,.account-section-heading h3 { font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif; letter-spacing:-.25px; }
.brand h1 { color:#322240; }
.brand-mark { color:#7949b9; border-color:#dbcbed; background:#f3edfc; text-shadow:none; }
.brand-caption,.nav-group { color:#796b8b; }
.tab { color:#685d77; }
.nav-icon { color:#9078ac; }
.tab:hover:not(:disabled) { background:#f3edf9; color:#6331a5; }
.tab.active,.tab.active:hover:not(:disabled) { color:#6734a8; background:linear-gradient(90deg,#eadcfb,#f4edfc); border-color:#e0ccf4; box-shadow:inset 3px 0 #7f4ac0; }
.tab.active .nav-icon { color:#7540b7; }
.tab-settings,.sidebar-foot { border-color:var(--line); }
.sidebar-foot strong { color:#564465; }
.sidebar-foot span:not(.privacy-dot) { color:#7a6c8c; }
.privacy-dot { background:#8756c5; box-shadow:0 0 8px #8756c52a; }
.command-bar { background:#ffffffed; border-color:var(--line); backdrop-filter:blur(12px); }
.command-eyebrow { color:#756580; }
.command-bar h2 { color:#332440; }
.shell-status { color:#79678b; }
button { background:linear-gradient(135deg,#7b48bc,#6835a9); color:#ffffff; border-color:#7540b5; box-shadow:0 3px 10px #6737a518; }
button:not(.secondary):not(.tab):not(.regionBtn) { background:linear-gradient(135deg,#7b48bc,#6835a9); color:#ffffff; border-color:#7540b5; }
button:hover:not(:disabled),button:not(.secondary):not(.tab):not(.regionBtn):hover:not(:disabled) { background:linear-gradient(135deg,#8753c7,#713bb5); color:#ffffff; border-color:#8753c7; box-shadow:0 5px 14px #7141b225; }
button.secondary { background:#f5effc; border-color:#deceef; color:#6935a7; box-shadow:none; }
button.secondary:hover:not(:disabled) { background:#ede2fa; border-color:#bd9cdf; color:#603197; box-shadow:none; }
button:disabled,button:not(.secondary):not(.tab):not(.regionBtn):disabled { background:#efeaf5; color:#887c97; border-color:#e2d9eb; opacity:.8; box-shadow:none; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid #8a56c5; outline-offset:3px; }
.skip-link { background:#7540b5; color:white; }
input,select,textarea { color:#362944; background:#ffffff; border-color:#d8cbe8; }
input::placeholder,textarea::placeholder { color:#8d819b; }
input:focus,select:focus,textarea:focus { border-color:#9367c8; box-shadow:0 0 0 3px #8750bd14; }
input[type=checkbox],input[type=range],.appearance-card input[type=range] { accent-color:#7944b8; }
.form-grid label,label.block,.coach-form label,.account-filters > label:not(.account-comfort) { color:#625170; }
.card,.account-character,.account-team,.account-filters,.char-card,.account-control-card,.coach-metric { background:#ffffff; border-color:var(--line); box-shadow:0 5px 20px #6c4b9110; }
.char-card { background:linear-gradient(150deg,#fbf8ff,#ffffff); }
.char-card:hover { border-color:#bf9bdf; box-shadow:0 8px 24px #6f43851a; }
.card h3,.card h2,.char-card h3 { color:#342641; }
.form-grid { background:#fcfaff; border-color:var(--line); }
.stat-line { border-color:#eee7f4; }
.stat-line span:last-child { color:var(--accent); }
th,td,.coach-table th,.coach-table td { border-color:#ece5f3; }
th { color:#705e82; background:#f6f1fc; }
tbody tr:hover { background:#faf7fe; }
.coach-table { border-color:var(--line); }
.warn { background:#fff9ed; border-color:#e8d4aa; color:#886016; }
.warn.alert { background:#fff9ed; }
.note { color:#92640f; }
.pill.urgent { background:#fff0f2; color:#b63d4a; }
.pill.warn { background:#fff4dc; color:#926210; }
.pill.ok { background:#edf8f1; color:#24754f; }
.alert { background:#ffffff; border-color:var(--line); }
.alert .body .d { color:var(--muted); }
.alert.urgent { border-left-color:#bd5362; }
.alert.warn { border-left-color:#c49642; }
.alert.info { border-left-color:#8c63bb; }
.alert.ok { border-left-color:#519476; opacity:1; }
.live-dot { background:#b84354; }
.chip { border-color:#e3d8ef; color:#624579; background:#f7f2fc; }
.chip-gold { border-color:#c7aae6; color:#723eaa; background:#f2eafa; }
.chip-green { border-color:#bcdcc8; color:#29714e; background:#eef8f1; }
.grade.S { background:#7844b7; color:#fff; }
.grade.A { background:#e3f3e9; color:#246b49; }
.grade.B { background:#e9e1fa; color:#664191; }
.grade.C { background:#fff0d8; color:#936013; }
.grade.D { background:#fde9ed; color:#a83b4b; }
.big { color:#7845b5; }
.bar { background:#eee6f6; }
.bar > span { background:#956ac7; }
.toast { color:#392746; background:#ffffff; border-color:#bc95df; box-shadow:0 10px 30px #5b378d25; }
details > summary { color:#633e86; }
summary::marker { color:#9468bc; }
.ach-cat { background:#ffffff; border-color:var(--line); }
.ach-item:hover { background:#f7f2fc; }
.ach-item .ach-reward { color:#7548ad; }
.build-hero { background:linear-gradient(130deg,#fbf6ff,#ffffff); border-color:#deceef; border-left-color:var(--elem,var(--accent)); }
.build-portrait { background:#f4edfc; box-shadow:0 3px 14px #8259ac18; }
.art-card,.artifact-comparison { background:linear-gradient(150deg,#ffffff,#fcf9ff); border-color:#e2d5ef; box-shadow:0 5px 20px #64428e0d; }
.art-card:hover { border-color:#baa0d4; box-shadow:0 5px 20px #64428e12; }
.art-icon { background:linear-gradient(130deg,#f0e7fb,#e3d5f4); }
.art-set,.pips { color:#8252b0; }
.art-main { background:#f4ecfc; border-color:#e1cff3; color:#5b3f77; }
.art-main-val { color:#7844b4; }
.art-sub,.art-cv,.set-bonus { color:#796783; }
.art-sub-crit { background:#f6effc; color:#7843b0; }
.art-sub-useful { background:#f5edfc; border-left-color:#9870c3; color:#70468f; }
.art-useful-tag { color:#4b795f; }
.art-cv,.art-needs,.artifact-requirements { border-color:#e7dcf2; }
.art-needs-title { color:#8254ac; }
.need-ico { background:#f1ebf8; color:#796687; }
.need-ok .need-ico { background:#e7f4eb; color:#28774f; }
.need-review .need-ico { background:#fbefd8; color:#936411; }
.need-review .need-have { color:#946514; }
.coach-intro { background:linear-gradient(130deg,#f6effd,#fff); border-color:#e1d1f0; }
.coach-intro h2 { color:#7141a6; }
.coach-metric { background:#fcf9ff; border-color:#e4d7f2; }
#coachEvents button { background:#f2eafa; border-color:#d9c5eb; color:#7845a8; }
#coachEvents button:hover:not(:disabled) { background:#eaddf6; color:#623695; }
#coachHistoryClear { color:#af4151; border-color:#eccbd2; background:#fff8fa; }
#coachEvidence { color:#5e4c71; background:#f8f4fd; border:1px solid #e6daef; }
.coach-history { border-color:#e6daef; }
.eyebrow { color:#8654b1; }
.account-hero { background:radial-gradient(400px 280px at 95% 40%,#ead9fb88,transparent 70%),linear-gradient(110deg,#fcfaff,#f6effc); border-color:#e1cff1; }
body:not(.wallpaper-off) .account-hero { background:linear-gradient(90deg,#fffffff5 30%,#ffffffce 72%,#f5ebfcbb),url('assets/traveler-landscape.png') center 48%/cover; }
.account-hero h2 { color:#342143; text-shadow:none; }
.account-hero h2 > span { color:#7942b5; }
.account-hero p,.account-hero .msg { color:#725d85; }
.account-hero-art { opacity:.58; }
.orbit { border-color:#ac83d34a; }
.orbit-outer::after { border-color:#ab7bcd38; }
.orbit-inner { border-color:#b89ad55a; background:radial-gradient(circle,#dec5f430,transparent); }
.compass-lines,.compass-lines::before,.compass-lines::after { border-color:#aa86cd37; }
.hero-star { color:#9769c2; text-shadow:0 0 30px #ad7ddd2c; }
.orbit-point { background:#a177c8; box-shadow:0 0 12px #9c65cd30; }
.point-two { background:#ad8bd0; }
.art-caption { color:#9b82b0; }
.account-progress { color:#7542a7; background:#f6effc; border-color:#decbef; }
.account-metric,.metric-card { background:#ffffff; border-color:#e4d8ef; box-shadow:0 4px 15px #5f338810; }
.account-metric b,.account-metric strong,.metric-card b { color:#7942b0; }
.account-metric small { color:#746082; }
.account-comfort { color:#654d78; }
.account-portrait { color:#8050ad; background:#f1e9fb; border-color:#e0cdf3; }
.account-initial { color:#8452b4; }
.account-status,.account-badge { color:#7445a5; border-color:#d9c4ed; background:#f6effc; }
.account-badge.warn,.account-badge.uncertain { color:#91620d; border-color:#ead5aa; background:#fff8e9; }
.account-source { color:#735b83; }
.account-source a,.account-team a { color:#7c44b2; }
.account-priority,.priority-card { color:#624178; border-color:#e0cfef; background:#f6effc; }
.account-fix-list,.account-fix-list span { color:#766183; }
.account-fix-list strong { color:#4c335f; }
.account-character-foot { border-color:#ebe0f3; }
.account-team p,.account-team ol { color:#735f81; }
.account-team-members > * { background:#fcf9ff; border-color:#ece1f5; }
.account-team details { border-color:#e8def0; }
.account-empty { background:linear-gradient(150deg,#fdfaff,#ffffff); border-color:#d8c5e9; }
.account-empty p,.account-empty .sub { color:#7b658b; }
.empty-symbol { border-color:#e0cef1; background:#f5edfc; }
.account-disclosure { color:#756280; }
#accountCoverage { color:#7e6491; border-color:#e1d1ef; border-left-color:#a47bc8; background:#fcf9ff; }
#profileSummary { border-color:#e1d0f0; }
.artifact-set-comparison>div { background:#fbf7ff; border-color:#e6d8f2; }
.artifact-set-comparison span { color:#7d648f; }
.artifact-set-comparison strong { color:#72458f; }
.artifact-symbol { color:#8953b6; background:#f4ebfc; border-color:#e1ccf1; }
.artifact-column-label { color:#815696; }
.artifact-status { color:#286b4a; background:#eff8f2; border-color:#c9e3d3; }
.artifact-status.replace,.artifact-status.missing { color:#a43c50; background:#fff0f4; border-color:#edcbd5; }
.artifact-status.upgrade { color:#956717; background:#fff7e8; border-color:#ecd9b3; }
.artifact-status.verify { color:#796090; background:#f7f1fc; border-color:#e0d0ef; }
.artifact-requirements dt { color:#79618b; }
.artifact-requirements dd { color:#6e477f; }
.artifact-absent,.artifact-footnote { color:#776184; }
.artifact-action { color:#634478; background:#f6effb; border:1px solid #e8d9f3; }
::-webkit-scrollbar-track { background:#fcfaff; }
::-webkit-scrollbar-thumb { background:#dfd0ec; border-color:#fcfaff; }
::-webkit-scrollbar-thumb:hover { background:#c4afd8; }
.account-filters { background:transparent; border:0; box-shadow:none; }
@media(max-width:960px) { .account-hero-art { opacity:.24; } }

/* External achievement scanner */
.achievement-scan {scroll-margin-top:110px;}
.achievement-scan .coach-form {margin:18px 0 12px;}
.achievement-scan textarea {width:100%;resize:vertical;min-height:140px;}
.achievement-scan details {margin:14px 0;}
.achievement-source-preview {border:1px solid var(--line);background:#f7f2fc;border-radius:14px;padding:12px;margin-top:16px;}
.achievement-source-preview img {display:block;width:100%;max-height:350px;object-fit:contain;border-radius:8px;}
.achievement-review-row {display:flex;gap:12px;align-items:flex-start;padding:15px 14px;margin:8px 0;border:1px solid var(--line);border-radius:12px;background:#fcfaff;}
.achievement-review-row input[type=checkbox],.achievement-review-row input[type=radio] {width:auto;flex:0 0 auto;margin-top:5px;}
.achievement-review-row label {display:flex;gap:10px;align-items:flex-start;flex-direction:row;}
.achievement-review-row > div,.achievement-review-row label > div {min-width:0;flex:1;}
.achievement-review-meta {display:flex;flex-wrap:wrap;gap:7px;margin:7px 0;color:var(--muted);font-size:16px;}
.achievement-review-evidence {font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;color:#705d82;}
.achievement-ambiguity {border:1px solid #e5d4ac;border-radius:14px;padding:16px;margin:12px 0;background:#fffcf5;}
.achievement-ambiguity input[type=radio],.achievement-ambiguity input[type=checkbox] {width:auto;}
.achievement-ambiguity label {flex-direction:row;align-items:flex-start;gap:8px;margin:10px 0;}
.achievement-review-summary {padding:14px;border-radius:12px;color:#5e3687;background:#f2eafa;margin:18px 0 12px;}
.achievement-review-row strong {color:#372442;}
.achievement-scan-evidence label.block {margin-top:16px;}
.achievement-review-description,.achievement-review-content {display:block;overflow-wrap:anywhere;} .achievement-review-description {margin-top:6px;color:var(--muted);} .achievement-review-evidence pre {white-space:pre-wrap;overflow-wrap:anywhere;} .achievement-review-summary h4 {margin:7px 0;}
.achievement-ambiguity>label {display:flex;align-items:flex-start;gap:10px;margin:12px 0;} .achievement-ambiguity input[type=radio],.achievement-tier-confirm input[type=checkbox],.achievement-review-row input[type=checkbox] {width:17px;height:17px;min-height:17px;margin:3px 0 0;flex-shrink:0;accent-color:var(--accent);} .achievement-tier-confirm {display:flex!important;align-items:center!important;gap:8px;} .skip-link {opacity:0;pointer-events:none;} .skip-link:focus {opacity:1;pointer-events:auto;}

/* Comfortable reading size throughout the main app. */
body {font-size:17px;line-height:1.6;}
button,input,select,textarea {font-size:16px;}
button,select,input:not([type=checkbox]):not([type=range]):not([type=radio]) {min-height:44px;}
.sub,.hint,.msg {line-height:1.65;} th,td {overflow-wrap:anywhere;}
/* Wish counter (paimon.moe-style layout) */
.wish-overview .wish-stats { margin:12px 0 6px; }
.wish-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr)); gap:16px; align-items:start; }
.wish-banner h4 { margin:16px 0 8px; font-size:16px; }
.wish-banner.empty { opacity:.75; }
.wish-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.wish-head h3 { margin:0; }
.wish-primos { text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
.wish-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin:12px 0 8px; }
.wish-stat { background:#f7f2fc; border:1px solid #e8dcf4; border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.wish-stat > span { font-size:15px; color:#6d5a80; }
.wish-stat b { font-size:26px; line-height:1.2; color:#5d3489; font-variant-numeric:tabular-nums; }
.wish-stat > small { font-size:15px; color:#6d5a80; }
.pity-low { color:#2f7d52 !important; }
.pity-mid { color:#a2680f !important; }
.pity-high { color:#b8322c !important; }
.wish-outcomes { display:flex; flex-direction:column; gap:4px; margin:10px 0; font-size:16px; }
.wish-badge { align-self:flex-start; font-size:15px; font-weight:700; padding:3px 10px; border-radius:999px; background:#efe6f9; color:#5d3489; }
.wish-badge.guaranteed { background:#e6f4ec; color:#2f7d52; }
.wish-badge.muted { background:#f1eef4; color:#6d6577; }
.wish-rates { width:100%; border-collapse:collapse; margin:6px 0; font-size:16px; font-variant-numeric:tabular-nums; }
.wish-rates th, .wish-rates td { text-align:left; padding:6px 8px; border-bottom:1px solid #eee6f6; }
.wish-rates th { color:#6d5a80; font-weight:600; }
.wish-chips { display:flex; flex-wrap:wrap; gap:8px; }
.wish-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:10px; border:1px solid #e8dcf4; background:#fff; font-size:15px; }
.wish-chip.five { border-color:#e9cf8f; background:#fffaf0; }
.wish-chip i { font-style:normal; font-weight:700; font-variant-numeric:tabular-nums; }
.wish-tag { font-size:13px; font-weight:700; padding:1px 7px; border-radius:999px; background:#efe6f9; color:#5d3489; white-space:nowrap; }
.wish-tag.win { background:#e6f4ec; color:#2f7d52; }
.wish-tag.loss { background:#fbe9e7; color:#b8322c; }
.wish-dist { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.wish-dist-row { display:grid; grid-template-columns:64px 1fr 36px; gap:8px; align-items:center; font-size:15px; font-variant-numeric:tabular-nums; }
.wish-dist-row div { height:12px; background:#eee6f6; border-radius:6px; overflow:hidden; }
.wish-dist-row i { display:block; height:100%; background:#956ac7; border-radius:6px; }
.wish-filters { display:flex; gap:16px; margin:10px 0; }
.wish-filters label { display:inline-flex; align-items:center; gap:6px; font-size:16px; }
.wish-filters input { width:auto; }
.wish-history { overflow-x:auto; }
.wish-table { width:100%; border-collapse:collapse; font-size:15px; }
.wish-table td:nth-child(2), .wish-table td.wish-banner-name { white-space:normal; }
.wish-table th, .wish-table td { text-align:left; padding:6px 8px; border-bottom:1px solid #eee6f6; white-space:nowrap; vertical-align:top; }
.wish-table tr.rank-5 td:nth-child(2) { color:#a2680f; }
.wish-table tr.rank-4 td:nth-child(2) { color:#7845b5; }
.wish-history button { margin-top:10px; }
