
.topic-summary { background: var(--orange-soft); border: 1px solid rgba(232,93,10,0.3); color: var(--orange); font-size: 0.85rem; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.topic-summary b { font-family: var(--font-num); font-size: 1.1rem; }
.topic-group { margin-bottom: 14px; }
.topic-group-head { display: flex; align-items: baseline; gap: 10px; font-size: 0.95rem; margin-bottom: 10px; }
.topic-group-head b { color: var(--orange); }
.topic-group-head span { font-size: 0.72rem; color: var(--muted); }
.topic-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.topic-title { font-size: 0.93rem; font-weight: 600; line-height: 1.6; margin: 6px 0; }
.topic-tags { margin-bottom: 8px; }
.topic-tag { display: inline-block; font-size: 0.64rem; color: var(--orange); background: var(--orange-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.topic-plan summary { cursor: pointer; font-size: 0.8rem; color: var(--orange); margin-bottom: 6px; }
.topic-plan .plan-body { font-size: 0.8rem; color: var(--text-2); line-height: 1.7; }
.topic-actions { margin-top: 8px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform 0.15s ease, border-color 0.2s ease; }
.tool-card:active { transform: scale(0.97); border-color: rgba(232,93,10,0.4); }
.tool-icon { font-size: 24px; }
.tool-name { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tool-desc { font-size: 0.7rem; color: var(--muted); line-height: 1.5; }
.shot-card { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.shot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.shot-head b { font-size: 0.88rem; }
.shot-row { display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-2); padding: 4px 0; line-height: 1.6; }
.shot-row .lbl { color: var(--muted); flex: none; }
.shot-no { font-family: var(--font-num); color: var(--orange); font-weight: 700; }
.tier-block { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 10px 0; }
.tier-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.tier-head span { color: var(--orange); font-family: var(--font-num); font-weight: 700; }
.teleprompter { font-size: 1.05rem; line-height: 2; background: var(--card-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; color: var(--text); letter-spacing: 0.02em; }
.teleprompter p { margin-bottom: 4px; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; cursor: pointer; }
.task-check { width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; color: transparent; transition: all 0.2s ease; }
.task-item.done .task-check { background: var(--grad); border-color: transparent; color: #ffffff; }
.task-item.done .task-title { color: var(--muted); text-decoration: line-through; }
.task-body { flex: 1; }
.task-body p { font-size: 0.9rem; font-weight: 500; }
.task-title { font-size: 0.9rem; font-weight: 500; }
.task-desc { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.evo-hero { text-align: center; background: var(--card); border: 1px solid rgba(232,93,10,0.35); border-radius: 18px; padding: 22px 16px; }
.evo-level { font-size: 0.95rem; color: var(--text-2); }
.evo-level b { font-family: var(--font-num); font-size: 2rem; color: var(--orange); margin: 0 4px; }
.evo-title { font-size: 0.9rem; font-weight: 600; margin: 8px 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.stat-card b { font-family: var(--font-num); font-size: 1.3rem; color: var(--orange); display: block; }
.stat-card span { font-size: 0.66rem; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.timeline-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); margin-top: 6px; flex: none; box-shadow: 0 0 8px rgba(232,93,10,0.5); }
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heatmap i { aspect-ratio: 1; border-radius: 6px; background: var(--card-2); }
.heatmap i.hm-1 { background: rgba(232,93,10,0.2); }
.heatmap i.hm-2 { background: rgba(232,93,10,0.5); }
.heatmap i.hm-3 { background: var(--orange); }

.acc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acc-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); border: 1px solid rgba(232,93,10,0.3); display: grid; place-items: center; font-size: 22px; }
.acc-info b { font-size: 0.95rem; }
.card.sel { border-color: rgba(232,93,10,0.45); box-shadow: 0 0 20px rgba(232,93,10,0.08); }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { font-size: 1.05rem; }
.modal-x { width: 28px; height: 28px; border-radius: 8px; background: var(--card-2); color: var(--muted); font-size: 13px; display: grid; place-items: center; }
.modal-body { font-size: 0.88rem; color: var(--text-2); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.busybar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; height: 3px; background: transparent; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.busybar.on { opacity: 1; visibility: visible; }
.busybar:not(.on) .busybar-inner { animation-play-state: paused; }
.busybar-inner { height: 100%; width: 35%; background: var(--grad); animation: busySlide 1s ease-in-out infinite; }
@keyframes busySlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(400%); } }
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skel { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--card-2) 25%, #e7e7e3 50%, var(--card-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.85; }
.toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 88%; }
.toast { background: #ffffff; border: 1px solid var(--border-strong); color: var(--text); font-size: 0.85rem; padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-err { border-color: rgba(220,38,38,0.5); color: #fca5a5; }
.ring { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--card-2); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ai-img { margin-top: 10px; }
.ai-img-inner { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); background: var(--card-2); }
.ai-img-inner span { font-size: 26px; }
.ai-img-inner p { font-size: 0.78rem; margin: 8px 0 4px; color: var(--text-2); }
.ai-img-inner small { font-size: 0.66rem; }

.acct-card {
  background: linear-gradient(135deg, #f0f8f3 0%, #e2f2e8 100%);
  color: var(--text);
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.08);
}
.acct-head { display: flex; align-items: center; gap: 10px; }
.acct-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: rgba(21, 128, 61, 0.1); display: grid; place-items: center; font-size: 20px;
}
.acct-info { flex: 1; min-width: 0; }
.acct-info b { display: block; font-size: 0.95rem; letter-spacing: 0.01em; }
.acct-info span { font-size: 0.7rem; color: var(--muted); display: block; margin-top: 2px; }
.acct-card .tag {
  background: rgba(21, 128, 61, 0.1); border-color: rgba(21, 128, 61, 0.25);
  color: #15803d; font-size: 0.62rem; padding: 2px 8px;
}
.acct-card .tag-err { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.3); color: #dc2626; }
.acct-stats {
  display: flex; gap: 6px; margin-top: 10px;
}
.acct-stat {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(21, 128, 61, 0.1);
}
.acct-stat b { display: block; font-size: 1.05rem; font-weight: 800; color: #15803d; }
.acct-stat span { font-size: 0.64rem; color: var(--muted); display: block; margin-top: 1px; }
.acct-actions { display: flex; gap: 8px; margin-top: 10px; }
.acct-actions .btn { flex: 1; font-size: 0.78rem; }
.acct-card .btn-ghost {
  background: rgba(255, 255, 255, 0.75); border-color: rgba(21, 128, 61, 0.25); color: #15803d;
}
.acct-card .btn-ghost:active { background: rgba(255, 255, 255, 0.95); }
.acct-invite {
  margin-top: 10px; padding: 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(21, 128, 61, 0.1);
}
.acct-invite .muted { color: var(--muted); }
.acct-invite .input {
  background: #fff; color: var(--text);
  font-weight: 700; letter-spacing: 0.06em;
}
.acct-invite .row-gap .btn { flex: none; }

.adm-points {
  display: flex; gap: 8px; margin: 10px 0;
}
.adm-points-item {
  font-size: 0.75rem; color: var(--text-2);
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px;
}
.adm-points-item b { color: var(--orange); font-size: 0.85rem; }

.ip-steps { display: flex; gap: 8px; margin: 14px 0 4px; }
.ip-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  color: var(--muted); background: var(--card-2); border: 1px solid var(--border);
}
.ip-step small { font-size: 0.62rem; font-weight: 500; opacity: 0.9; }
.ip-step.on { color: var(--green); border-color: rgba(21, 128, 61, 0.35); background: rgba(21, 128, 61, 0.08); }

.plan-foot {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 28px; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, #0e7490 0%, #115e7a 55%, #1e3a5f 100%);
  color: #fff; text-align: left; position: relative; overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-foot::after {
  content: ''; position: absolute; right: -36px; top: -36px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.plan-foot:active { transform: scale(0.98); box-shadow: 0 6px 16px rgba(14, 116, 144, 0.25); }
.plan-foot-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; font-size: 22px;
}
.plan-foot-text { flex: 1; min-width: 0; }
.plan-foot-text b { display: block; font-size: 1rem; letter-spacing: 0.02em; }
.plan-foot-text small { font-size: 0.74rem; opacity: 0.88; display: block; margin-top: 3px; }
.plan-foot-arrow { font-size: 26px; opacity: 0.9; flex: none; }

@media (max-width: 767px) {
  .home-page .tabbar .tab { padding: 8px 0; }
  .chat-msg { max-width: 96%; }
}

@media (min-width: 768px) {

  #app {
    max-width: none; width: 100%; margin: 0; min-height: 100vh;
    box-shadow: none; border: none;
  }

  .tabbar { display: none; }
  .page { padding-bottom: 32px; }

  .topbar { position: sticky; top: 0; min-height: 64px; }
  .desktop-nav {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 4px; align-items: center;
    white-space: nowrap; z-index: 5;
  }

  .topbar-title { flex: 0 1 auto; max-width: 30vw; min-width: 40px; }
  .topbar-right { margin-left: auto; }
  .desktop-nav a {
    padding: 9px 18px; border-radius: 10px;
    font-size: 0.95rem; font-weight: 500; color: var(--text-2);
    transition: all 0.15s ease;
  }
  .desktop-nav a:hover { background: var(--card-2); color: var(--text); }
  .desktop-nav a.on { color: var(--orange); background: var(--orange-soft); font-weight: 700; }

  .topbar {
    padding-left: max(24px, calc((100vw - 1240px) / 2));
    padding-right: max(24px, calc((100vw - 1240px) / 2));
  }
  .hero, .page-body, .section, .auth-wrap {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
  .stats { margin-left: auto; margin-right: auto; }

  .chat-page { max-width: none; width: 100%; background: var(--bg); }
  .chat-page .topbar {
    width: 100%; max-width: none; border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
  }
  .chat-scroll { max-width: 900px; margin: 0 auto; width: 100%; }
  .chat-list { max-width: 780px; margin: 0 auto; width: 100%; }
  .chat-suggest { justify-content: center; }
  .chat-inputbar {
    max-width: 900px; left: 0; right: 0; margin: 0 auto;
    transform: none; background: rgba(255, 255, 255, 0.96);
  }

  .page-body { max-width: 1240px; margin: 0 auto; }

  .hero { padding: 110px 24px 90px; }
  .hero h1 { font-size: 5.2rem; }
  .hero-badge { font-size: 0.82rem; padding: 10px 22px; }
  .hero-sub { font-size: 1.15rem; max-width: 640px; }
  .hero-quote { font-size: 1.05rem; padding: 12px 24px; }
  .hero-cta { margin-top: 32px; }
  .hero-cta .btn { font-size: 1rem; padding: 12px 30px; }
  .home-page .hero { padding-top: 110px; }

  .journey-card { padding: 34px; border-radius: 22px; }
  .journey-title { font-size: 1.55rem; }
  .journey-steps { font-size: 1.05rem; gap: 10px; }
  .journey-steps i { width: 32px; }
  .journey-quote { font-size: 0.98rem; }
  .journey-quote i { width: 20px; }

  .ability-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ability { padding: 22px 20px; border-radius: 18px; }
  .ability:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(232,93,10,0.12); }
  .ability b { font-size: 1.05rem; }
  .ability p { font-size: 0.8rem; }
  .banner { padding: 40px 36px; border-radius: 20px; }
  .banner h3 { font-size: 1.55rem; }
  .banner p { font-size: 0.92rem; }
  .banner-nums b { font-size: 2.2rem; }
  .banner-nums span { font-size: 0.78rem; }
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .step3 { padding: 26px 22px; border-radius: 18px; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .testi { padding: 22px; border-radius: 18px; }
  .testi p { font-size: 0.88rem; }
  .cta-band { padding: 44px 36px; border-radius: 20px; }
  .cta-band h3 { font-size: 1.6rem; }

  .stat .num { font-size: 2.1rem; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .tool-card { min-height: 140px; padding: 20px 18px; border-radius: 16px; }
  .tool-icon { font-size: 30px; }
  .tool-name { font-size: 1.02rem; }
  .tool-desc { font-size: 0.78rem; }
  .entry-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .entry-card { padding: 18px 16px; border-radius: 16px; }
  .entry-icon { font-size: 28px; }
  .entry-name { font-size: 1rem; }
  .entry-desc { font-size: 0.76rem; }
  .stats { max-width: 960px; grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .stat { padding: 22px 8px; border-radius: 16px; }
  .stat .num { font-size: 2.1rem; }
  .stat .label { font-size: 0.76rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .desktop-nav a { padding: 9px 12px; font-size: 0.88rem; }

  .topbar-right .topbar-admin { display: none; }
}
@media (min-width: 768px) and (max-width: 960px) {
  .desktop-nav a { padding: 8px 10px; font-size: 0.82rem; }
}

@media (max-width: 767px) {
  .page-body { padding-left: 16px; padding-right: 16px; }
  .home-page > .hero,
  .home-page > .stats,
  .home-page > .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .journey-wrap { padding-left: 0 !important; padding-right: 0 !important; }
  .journey-card { margin-left: 12px; margin-right: 12px; }

  .hero { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 767px) {
  #app { max-width: 520px; margin: 0 auto; }
}

.page-body { padding-top: 16px; padding-bottom: 96px; }
.home-page { padding-bottom: 96px; }

@media (max-width: 767px) {
  .home-page > .hero { padding-top: 40px; }
}

@media (min-width: 768px) {
  .home-page { padding-bottom: 0; }
}
