
:root {
  --bg: #f6f6f4;
  --bg-soft: #efefec;
  --card: #ffffff;
  --card-2: #f1f1ee;
  --border: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.15);
  --text: #18191c;
  --text-2: #43464d;
  --muted: #71757d;
  --muted-2: #9ca1a8;
  --orange: #e85d0a;
  --orange-2: #f97316;
  --orange-soft: rgba(232, 93, 10, 0.10);
  --orange-glow: rgba(232, 93, 10, 0.30);
  --cyan: #0e7490;
  --magenta: #db2777;
  --purple: #7c3aed;
  --green: #15803d;
  --danger: #dc2626;
  --grad: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --grad-text: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #e11d48 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --font-en: 'Orbitron', 'Rajdhani', sans-serif;
  --font-num: 'Rajdhani', sans-serif;
  --font-cn: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 10px 34px rgba(17, 24, 39, 0.12);
  --maxw: 560px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 15px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-cn);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(640px 320px at 80% -5%, rgba(249, 115, 22, 0.10), transparent 65%),
    radial-gradient(520px 300px at 8% 30%, rgba(14, 116, 144, 0.05), transparent 60%),
    radial-gradient(720px 420px at 50% 112%, rgba(124, 58, 237, 0.05), transparent 65%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 0.95rem; color: var(--text); }
::placeholder { color: var(--muted-2); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #d3d3cf; border-radius: 3px; }

.app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 76px; }
.page { padding: 0 16px 24px; animation: pageIn 0.28s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hide { display: none !important; }
.center { text-align: center; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .back {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 16px;
}
.topbar .back:active { transform: scale(0.92); }
.topbar .title { flex: 1; font-size: 1.02rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.topbar .logo-mini { font-family: var(--font-en); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); z-index: 60;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; font-size: 0.66rem; color: var(--muted); border-radius: 10px;
}
.tabbar a .tab-icon { font-size: 24px; line-height: 1; }
.tabbar a.on { color: var(--orange); }
.tabbar a.on .tab-icon { text-shadow: 0 0 14px var(--orange-glow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.2s ease;
  user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.btn-primary {
  background: var(--grad); color: #ffffff;
  border: none; font-weight: 700;
  box-shadow: 0 4px 20px rgba(232, 93, 10, 0.28);
}
.btn.btn-primary:active { box-shadow: 0 2px 10px rgba(232, 93, 10, 0.35); }
.btn.btn-ghost { background: transparent; }
.btn.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 10px; }
.btn.btn-lg { width: 100%; padding: 15px; font-size: 1.02rem; border-radius: 14px; }
.btn.btn-outline { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.card.hover { transition: transform 0.15s ease, border-color 0.2s ease; }
.card.hover:active { transform: scale(0.98); border-color: rgba(232, 93, 10, 0.4); }

.section-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 12px; }
.section-title h2 { font-size: 1.05rem; font-weight: 700; }
.section-title .sub { font-size: 0.75rem; color: var(--muted); }
.section-title .more { margin-left: auto; font-size: 0.78rem; color: var(--orange); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; color: var(--text-2);
  background: var(--card-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.chip.orange { color: var(--orange); background: var(--orange-soft); border-color: rgba(232, 93, 10, 0.35); }
.chip.cyan { color: var(--cyan); background: rgba(14, 116, 144, 0.08); border-color: rgba(14, 116, 144, 0.3); }
.chip.green { color: var(--green); background: rgba(21, 128, 61, 0.08); border-color: rgba(21, 128, 61, 0.3); }
.chip.purple { color: var(--purple); background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.3); }
.chip.magenta { color: var(--magenta); background: rgba(219, 39, 119, 0.08); border-color: rgba(219, 39, 119, 0.3); }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em;
  background: var(--orange-soft); color: var(--orange);
  border: 1px solid rgba(232, 93, 10, 0.3);
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--orange); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 10, 0.12);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.searchbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
}
.searchbar input { flex: 1; background: none; border: none; outline: none; font-size: 0.92rem; }

.chips-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-grid .chip {
  padding: 9px 14px; font-size: 0.84rem; cursor: pointer;
  transition: all 0.15s ease;
}
.chips-grid .chip.on {
  background: var(--grad); color: #ffffff; border-color: transparent; font-weight: 600;
  box-shadow: 0 2px 12px rgba(232, 93, 10, 0.3);
}

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.industry-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px; text-align: center;
  cursor: pointer; transition: all 0.15s ease;
}
.industry-item .em { font-size: 22px; margin-bottom: 4px; }
.industry-item .nm { font-size: 0.8rem; color: var(--text-2); }
.industry-item.sel { border-color: var(--orange); background: var(--orange-soft); }
.industry-item.sel .nm { color: var(--orange); font-weight: 600; }
.industry-item:active { transform: scale(0.95); }

.progress { height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width 0.5s ease; box-shadow: 0 0 12px rgba(232, 93, 10, 0.5); }

.steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 3px; border-radius: 99px; background: var(--card-2); }
.steps i.done { background: var(--grad); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 6px; text-align: center;
}
.stat .num { font-family: var(--font-num); font-size: 1.5rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat .lbl { font-size: 0.66rem; color: var(--muted); margin-top: 2px; }

.hero { padding: 76px 18px 64px; text-align: center; position: relative; overflow: hidden; }
.hero .system-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--cyan);
  border: 1px solid rgba(14, 116, 144, 0.35);
  background: rgba(14, 116, 144, 0.06);
  padding: 6px 14px; border-radius: 999px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(14,116,144,0); } 50% { box-shadow: 0 0 18px rgba(14,116,144,0.25); } }
.hero h1 {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 900; line-height: 1.12;
  margin: 16px 0 10px; letter-spacing: 0.01em;
}
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.78rem; color: var(--text-2); margin: 12px 0;
}
.hero .flow b { color: var(--text); font-weight: 600; }
.hero .flow .arr { color: var(--orange); font-family: var(--font-num); }
.hero .quote {
  font-size: 0.85rem; color: var(--muted);
  border: 1px dashed rgba(232, 93, 10, 0.35);
  background: rgba(232, 93, 10, 0.05);
  border-radius: 10px; padding: 8px 14px;
  display: inline-block; margin-top: 4px;
}
.hero .quote b { color: var(--orange); font-weight: 600; }
.hero .cta { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.hero .cta .btn { flex: 1; max-width: 210px; }

.glow-text { text-shadow: 0 0 24px var(--orange-glow); }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: transform 0.15s ease, border-color 0.2s ease;
  position: relative; overflow: hidden;
}
.quick-card:active { transform: scale(0.97); border-color: rgba(232, 93, 10, 0.45); }
.quick-card .ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; font-size: 20px;
  background: var(--card-2); border: 1px solid var(--border);
}
.quick-card .ic.g1 { background: rgba(232,93,10,0.12); border-color: rgba(232,93,10,0.3); }
.quick-card .ic.g2 { background: rgba(14,116,144,0.08); border-color: rgba(14,116,144,0.3); }
.quick-card .ic.g3 { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); }
.quick-card .ic.g4 { background: rgba(219,39,119,0.08); border-color: rgba(219,39,119,0.3); }
.quick-card .ic.g5 { background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.3); }
.quick-card .tt { font-size: 0.9rem; font-weight: 600; }
.quick-card .ds { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }
.quick-card .go { margin-left: auto; color: var(--muted-2); font-size: 14px; }

.task-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  margin-bottom: 10px;
}
.task-item .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; cursor: pointer;
}
.task-item.done .check { background: var(--grad); border-color: transparent; color: #ffffff; }
.task-item .bd { flex: 1; }
.task-item .bd .t { font-size: 0.9rem; font-weight: 500; }
.task-item.done .bd .t { color: var(--muted); text-decoration: line-through; }
.task-item .bd .d { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.task-item .tag { font-size: 0.64rem; padding: 2px 8px; border-radius: 6px; }

.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  cursor: pointer; transition: transform 0.12s ease;
}
.list-item:active { transform: scale(0.98); }
.list-item .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 19px; background: var(--card-2); border: 1px solid var(--border); }
.list-item .bd { flex: 1; min-width: 0; }
.list-item .bd .t { font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .bd .d { font-size: 0.72rem; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .go { color: var(--muted-2); }

.result-block {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 14px;
  animation: pageIn 0.3s ease;
}
.result-block .rb-title { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; }
.result-block .rb-title .ic { color: var(--orange); }
.result-block p { font-size: 0.88rem; color: var(--text-2); line-height: 1.75; }

.copy-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 15px; margin-bottom: 10px;
  position: relative;
}
.copy-card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.copy-card .txt { font-size: 0.9rem; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; }
.copy-card .txt b { color: var(--text); }
.copy-card .foot { display: flex; gap: 8px; margin-top: 10px; }

.skeleton {
  background: linear-gradient(90deg, var(--card-2) 25%, #e7e7e3 50%, var(--card-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 0; color: var(--muted); font-size: 0.84rem;
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(232, 93, 10, 0.2); border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gen-bar { height: 4px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.gen-bar > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.3s ease; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .em { font-size: 40px; margin-bottom: 10px; opacity: 0.8; }
.empty .t { font-size: 0.95rem; color: var(--text-2); }
.empty .d { font-size: 0.78rem; margin-top: 4px; }
.empty .btn { margin-top: 16px; }

.chat-box { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 8px; }
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg .avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; display: grid; place-items: center; font-size: 17px;
  background: var(--orange-soft); border: 1px solid rgba(232, 93, 10, 0.3);
}
.msg .bubble {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px; padding: 11px 13px;
  font-size: 0.88rem; line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .avatar { background: rgba(14,116,144,0.08); border-color: rgba(14,116,144,0.3); }
.msg.me .bubble { background: var(--orange-soft); border-color: rgba(232,93,10,0.25); color: var(--text); border-radius: 14px 4px 14px 14px; }

.chat-input-bar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; gap: 8px; align-items: flex-end;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  margin: 0 -16px;
}
.chat-input-bar textarea {
  flex: 1; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px; resize: none;
  max-height: 110px; outline: none; font-size: 0.92rem;
}
.chat-input-bar .send {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--grad); color: #ffffff; font-size: 17px;
  display: grid; place-items: center;
}

.tabs {
  display: flex; gap: 6px; padding: 4px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 14px; overflow-x: auto;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1; min-width: max-content; padding: 9px 14px;
  border-radius: 9px; font-size: 0.84rem; color: var(--muted); white-space: nowrap;
}
.tabs button.on { background: var(--grad); color: #ffffff; font-weight: 700; }

.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 380px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 22px;
  animation: popIn 0.25s cubic-bezier(0.25, 0.8, 0.35, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 1.05rem; margin-bottom: 8px; }
.modal .desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.modal .btns { display: flex; gap: 10px; }
.modal .btns .btn { flex: 1; }

#toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 200; max-width: 86%;
  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; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(-8px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.step-hero {
  text-align: center; padding: 26px 10px 18px;
}
.step-hero .step-no {
  font-family: var(--font-en); font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--orange); margin-bottom: 8px;
}
.step-hero h1 { font-size: 1.35rem; font-weight: 800; }
.step-hero p { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

.shot-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.shot-table th, .shot-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.shot-table th { background: var(--card-2); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.shot-table td b { color: var(--text); }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.text-orange { color: var(--orange); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.bold { font-weight: 700; }
.flex-1 { flex: 1; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feedback { display: flex; gap: 8px; margin-top: 10px; }
.feedback button {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  font-size: 15px; display: grid; place-items: center;
}
.feedback button.sel { background: var(--orange-soft); border-color: var(--orange); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.mini-stat .v { font-family: var(--font-num); font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.mini-stat .k { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.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.l1 { background: rgba(232,93,10,0.2); }
.heatmap i.l2 { background: rgba(232,93,10,0.45); }
.heatmap i.l3 { background: rgba(232,93,10,0.75); }
.heatmap i.l4 { background: var(--orange); }

.invite-code {
  font-family: var(--font-en); font-size: 1.1rem; font-weight: 800;
  letter-spacing: 0.35em; color: var(--orange);
  background: var(--orange-soft); border: 1px dashed rgba(232,93,10,0.5);
  border-radius: 12px; padding: 14px; text-align: center;
}

.ref-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 12px; background: var(--card-2);
  border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted-2); font-size: 0.72rem;
}

@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .app { box-shadow: 0 0 60px rgba(17,24,39,0.10); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 768px) {
  body { font-size: 17.5px; }
  html { font-size: 17px; }

  .topbar { max-width: none; width: 100%; border-radius: 0; }

  .hero { padding: 72px 24px 48px; }
  .hero h1 { font-size: 4.2rem; letter-spacing: 0.02em; }
  .hero .system-badge, .hero-badge { font-size: 0.72rem; padding: 8px 18px; }
  .hero .flow { font-size: 1rem; gap: 12px; margin: 18px 0; }
  .hero .quote { font-size: 0.95rem; padding: 10px 20px; }
  .hero .cta { margin-top: 28px; }
  .hero .cta .btn { max-width: 280px; padding: 16px 34px; font-size: 1.08rem; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stats-row { max-width: 700px; margin: 0 auto; }
  .journey-card { padding: 32px; border-radius: 22px; }
  .journey-title { font-size: 1.25rem; }
  .journey-steps { font-size: 0.85rem; }

  .tool-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tool-card { min-height: 136px; }

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

  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-row .field { margin-bottom: 0; }

  .industry-grid, .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .chips.wrap { gap: 10px; }

  .topic-list, .user-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .topic-list .card, .user-list .card { margin: 0; }

  .chat-page { max-width: 900px; margin: 0 auto; }
  .chat-list { max-width: 780px; margin: 0 auto; }
  .chat-inputbar { max-width: 780px; left: 50%; transform: translateX(-50%); width: 100%; }

  .auth-wrap { padding-top: 60px; }
  .auth-card { max-width: 440px; margin: 0 auto; }
  .auth-logo { font-size: 1.4rem; }

  #cw-result, #tp-result, #av-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #cw-result .section-title, #tp-result .topic-summary, #av-result .section-title { grid-column: 1 / -1; }
  #cw-result .card, #tp-result .topic-group, #av-result .card { margin: 0; }

  .shot-table-wrap { overflow-x: auto; }

  .user-list .card { display: flex; flex-direction: column; gap: 8px; }
}
