:root{
  --bg: #070a12;
  --panel: rgba(255,255,255,.055);
  --panel-2: rgba(255,255,255,.075);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --border: rgba(255,255,255,.12);
  --brand: #d8b66a; /* champagne gold */
  --danger: #ff6b6b;
  --ok: #5ef2a3;
  --warn: #e8c27a;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --ring: 0 0 0 4px rgba(216,182,106,.22);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Light mode override removed — always use dark theme to match dhglobal.vip */

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 18% -10%, rgba(216,182,106,.16), transparent 52%),
              radial-gradient(900px 520px at 92% 0%, rgba(109,91,255,.10), transparent 48%),
              var(--bg);
  color:var(--text);
  font-family:var(--font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.app-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:saturate(120%) blur(10px);
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.10));
  border-bottom:1px solid var(--border);
}
/* Light mode app-header removed */

.app-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand__title{
  font-weight:780;
  letter-spacing:.2px;
  font-size:16px;
}
.brand__subtitle{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.btn{
  appearance:none;
  border:1px solid rgba(216,182,106,.36);
  background: linear-gradient(135deg, rgba(216,182,106,.20), rgba(216,182,106,.06));
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:650;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  box-shadow: 0 10px 30px rgba(216,182,106,.10);
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}
.btn:not(:disabled):active{ transform: translateY(1px); }
.btn:focus-visible{ outline:none; box-shadow: var(--ring); }

.btn--ghost{
  border:1px solid var(--border);
  background: transparent;
  box-shadow:none;
}
.btn--ghost:not(:disabled):hover{
  background: var(--panel);
}

.notice{
  margin:20px 0 10px;
  padding:16px 16px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,209,102,.12), rgba(110,231,255,.06));
}
.notice__title{ font-weight:780; margin-bottom:8px; }
.notice__list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.5;
  font-size:13px;
}

.notice--soft{
  margin:0;
  padding:12px 14px;
  font-size:13px;
  line-height:1.55;
  color:var(--muted);
  white-space:pre-line;
  background: linear-gradient(135deg, rgba(216,182,106,.10), rgba(109,91,255,.05));
}

.other-paths{
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:10px 12px;
  background: var(--panel-2);
}
.other-paths__summary{
  cursor:pointer;
  font-weight:650;
  color:var(--text);
  font-size:13px;
}
.other-paths__body{
  margin-top:10px;
}
.other-paths__body > p{
  margin:0 0 10px;
  line-height:1.55;
}
.other-paths__item{
  margin-top:8px;
  border-top:1px dashed var(--border);
  padding-top:8px;
}
.other-paths__item > summary{
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  font-size:12.5px;
}
.other-paths__detail{
  margin:8px 0 0 2px;
  line-height:1.55;
}
.other-paths__detail p{
  margin:0;
}

.layout{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:16px;
  padding:12px 0 28px;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .side{ order:2; }
}

.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card--compact{
  margin-top:14px;
}
.card__header{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), transparent);
}
.card__title{ font-weight:800; }
.card__meta{ color:var(--muted); font-size:12px; }
.card__footer{
  padding:14px 16px;
  border-top:1px solid var(--border);
  background: linear-gradient(0deg, var(--panel-2), transparent);
}

.muted{ color:var(--muted); }
.small{ font-size:12.5px; line-height:1.55; }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.12);
  font-size:12px;
  color:var(--muted);
}
/* Light mode pill removed */
.pill__sep{ opacity:.5; }

.question{
  padding:16px;
}
.q-title{
  font-size:16px;
  font-weight:820;
  margin:0 0 10px;
  line-height:1.35;
}
.q-desc{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.answers{
  display:grid;
  gap:10px;
}
.answer{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 12px;
  border-radius: var(--radius-sm);
  border:1px solid var(--border);
  background: rgba(0,0,0,.10);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.answer:hover{
  background: rgba(0,0,0,.14);
  border-color: rgba(216,182,106,.26);
}
/* Light mode answer removed */
.answer input{
  margin-top:2px;
  accent-color: var(--brand);
  transform: scale(1.05);
}
.answer__text{ flex:1; }
.answer__label{ font-weight:720; }
.answer__hint{ margin-top:3px; color:var(--muted); font-size:12px; line-height:1.4; }

.explain{
  margin-top:14px;
  padding:12px 12px;
  border-radius: var(--radius-sm);
  border:1px dashed rgba(216,182,106,.30);
  background: linear-gradient(135deg, rgba(216,182,106,.10), rgba(109,91,255,.06));
}
.explain__title{ font-weight:780; margin-bottom:6px; }
.explain__body{ color:var(--muted); font-size:13px; line-height:1.55; }
.explain__bullets{ margin:10px 0 0; padding-left:18px; color:var(--muted); font-size:13px; }
.explain__foot{ margin-top:10px; }

.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav__spacer{ flex:1; }

.side__body{ padding:12px 12px 14px; }
.filters{ margin-bottom:10px; }
.toggle{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  user-select:none;
}
.toggle input{ accent-color: var(--brand); }

.path-list{
  display:grid;
  gap:10px;
}
.path{
  border-radius: var(--radius-sm);
  border:1px solid var(--border);
  background: rgba(0,0,0,.10);
  padding:12px 12px;
}
/* Light mode path removed */
.path__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.path__name{ font-weight:820; line-height:1.25; }
.badge{
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  white-space:nowrap;
}
.badge--ok{ border-color: rgba(94,242,163,.26); color: rgba(94,242,163,.95); }
.badge--no{ border-color: rgba(255,107,107,.26); color: rgba(255,107,107,.95); }
.path__desc{
  margin-top:6px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.55;
}
.path__meta{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.tag{
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: rgba(0,0,0,.08);
}
/* Light mode tag removed */
.tag--brand{ border-color: rgba(110,231,255,.26); color: rgba(110,231,255,.95); }
.tag--brand{ border-color: rgba(216,182,106,.30); color: rgba(216,182,106,.95); }
.tag--warn{ border-color: rgba(232,194,122,.30); color: rgba(232,194,122,.95); }
.tag--ok{ border-color: rgba(94,242,163,.26); color: rgba(94,242,163,.95); }
.tag--muted{ border-color: var(--border); color: var(--muted); }
.path__why{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--border);
  font-size:12.5px;
  color:var(--muted);
}
.path__why ul{
  margin:6px 0 0;
  padding-left:18px;
}

.path-list--compact .path{
  padding:10px 10px;
}
.path-list--compact .path__desc{
  margin-top:4px;
}

.export{
  padding:12px;
  display:grid;
  gap:10px;
}
.toast{
  min-height:16px;
  font-size:12px;
  color:var(--muted);
}

.app-footer{
  border-top:1px solid var(--border);
  padding:18px 0 22px;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent);
}
/* Light mode footer removed */
.footer-grid{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer-right{
  max-width:720px;
}

