#th-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
#th-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; max-width: 640px; margin: 0 auto;
  background: #f8fafc; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.09);
  border: 1px solid #e2e8f0; overflow: hidden; line-height: 1.6;
}
#th-wrap .th-header { background: #0f172a; padding: 22px 24px; text-align: center; }
#th-wrap .th-header h2 { font-size: 1.55rem !important; color: #fff !important; font-weight: 800 !important; margin: 0 !important; padding: 0 !important; border: none !important; }
#th-wrap .th-header p  { font-size: 1rem !important; color: #94a3b8; margin: 8px 0 0 !important; }
#th-wrap .th-progress  { display: flex; align-items: center; padding: 16px 20px; background: #fff; border-bottom: 1px solid #f1f5f9; }
#th-wrap .th-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  background: #e2e8f0; color: #94a3b8; flex-shrink: 0; transition: all 0.3s;
}
#th-wrap .th-dot.active { background: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }
#th-wrap .th-dot.done   { background: #16a34a; color: #fff; }
#th-wrap .th-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 3px; transition: background 0.4s; }
#th-wrap .th-line.done  { background: #16a34a; }
#th-wrap .th-body       { padding: 24px; }
#th-wrap .th-section    { margin-top: 28px; }
#th-wrap .th-section:first-child { margin-top: 0; }
#th-wrap h3 { font-size: 1.18rem !important; color: #0f172a !important; margin: 0 0 6px !important; padding: 0 !important; border: none !important; }
#th-wrap .th-sub   { font-size: 1rem; color: #64748b; margin-bottom: 16px; }
#th-wrap .th-label { display: block; font-weight: 600; margin-bottom: 7px; color: #334155; font-size: 1.05rem; }
#th-wrap .th-hint  { display: block; font-size: 0.93rem; color: #64748b; font-style: italic; margin-bottom: 7px; }
#th-wrap input, #th-wrap select {
  width: 100% !important; padding: 13px 14px !important;
  border: 2px solid #cbd5e0 !important; border-radius: 8px !important;
  font-size: 17px !important; color: #000 !important; background: #fff !important;
  height: 54px !important; margin-bottom: 16px; outline: none;
  transition: border-color 0.2s; appearance: auto !important; -webkit-appearance: auto !important;
}
#th-wrap input:focus, #th-wrap select:focus { border-color: #2563eb !important; }
#th-wrap .th-row { display: flex; gap: 14px; flex-wrap: wrap; }
#th-wrap .th-col { flex: 1; min-width: 130px; }
#th-wrap .th-toggle { display: flex; margin-bottom: 16px; border: 2px solid #cbd5e0; border-radius: 8px; overflow: hidden; }
#th-wrap .th-toggle-btn {
  flex: 1; padding: 12px 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; border: none; background: #fff; color: #64748b; transition: all 0.2s;
}
#th-wrap .th-toggle-btn.selected { background: #2563eb; color: #fff; }
#th-wrap .th-btn {
  width: 100%; padding: 15px 18px; border-radius: 8px; font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.4px; margin-bottom: 8px;
  transition: filter 0.2s; text-transform: uppercase; border: none; color: #fff;
}
#th-wrap .th-btn:hover { filter: brightness(0.9); }
#th-wrap .btn-blue   { background: #2563eb; }
#th-wrap .btn-green  { background: #16a34a; }
#th-wrap .btn-red    { background: #dc2626; }
#th-wrap .btn-amber  { background: #d97706; }
#th-wrap .btn-purple { background: #7c3aed; }
#th-wrap .btn-teal   { background: #0d9488; }
#th-wrap .btn-gray   { background: #64748b; }
#th-wrap .btn-outline { background: transparent !important; color: #334155 !important; border: 2px solid #cbd5e0 !important; }
#th-wrap .th-card { border-radius: 12px; padding: 20px 22px; margin-top: 14px; animation: thFadeUp 0.45s ease-out both; }
#th-wrap .card-green  { background: #f0fdf4; border: 1.5px solid #86efac; }
#th-wrap .card-red    { background: #fff5f5; border: 1.5px solid #fca5a5; }
#th-wrap .card-amber  { background: #fffbeb; border: 1.5px solid #fcd34d; }
#th-wrap .card-purple { background: #faf5ff; border: 1.5px solid #c4b5fd; }
#th-wrap .card-teal   { background: #f0fdfa; border: 1.5px solid #5eead4; }
#th-wrap .th-card strong { font-size: 1.05rem; }
#th-wrap .th-card em     { font-size: 1rem; }
#th-wrap .th-card p      { font-size: 1rem; }
#th-wrap .th-bignum { font-size: 2.2rem; font-weight: 900; margin: 10px 0 6px; letter-spacing: -0.5px; }
#th-wrap .th-badge  { display: inline-block; padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 1rem; }
#th-wrap .badge-amber  { background: #fef3c7; color: #92400e; }
#th-wrap .badge-purple { background: #f3e8ff; color: #6b21a8; }
#th-wrap .th-infobox { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; margin-top: 14px; }
#th-wrap .th-infobox-title { font-weight: 700; font-size: 1.02rem; color: #0f172a; margin-bottom: 10px; }
#th-wrap .th-rule-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f1f5f9; font-size: 1rem; }
#th-wrap .th-rule-row:last-child { border-bottom: none; }
#th-wrap .th-rule-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
#th-wrap .th-tl-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; font-size: 1rem; }
#th-wrap .th-tl-row:last-child { border-bottom: none; }
#th-wrap .th-tl-year { background: #0f172a; color: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; min-width: 60px; text-align: center; }
#th-wrap .th-note-box { background: #fef9c3; border: 1.5px solid #fde047; border-radius: 8px; padding: 12px 15px; margin-top: 12px; font-size: 0.95rem; color: #713f12; }
#th-wrap .th-table { margin-top: 18px; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; }
#th-wrap .th-table-head { background: #0f172a; color: #fff; padding: 10px 16px; font-size: 1rem; font-weight: 700; }
#th-wrap .th-table-row  { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 1rem; }
#th-wrap .th-table-row:nth-child(odd)  { background: #fafafa; }
#th-wrap .th-table-row:nth-child(even) { background: #fff; }
#th-wrap .th-table-row.hl-red    { background: #fff5f5; font-weight: 700; }
#th-wrap .th-table-row.hl-green  { background: #f0fdf4; font-weight: 700; }
#th-wrap .th-table-row.hl-purple { background: #f3e8ff; font-weight: 800; font-size: 1.05rem; }
#th-wrap .th-step-pill { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 0.85rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
#th-wrap .two-col { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
#th-wrap .two-col-box { flex: 1; min-width: 200px; border-radius: 10px; padding: 16px; }
#th-wrap .mini-stat { font-size: 0.95rem; color: #64748b; }
#th-wrap .mini-val  { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
#th-wrap .process-bar { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid #ddd6fe; margin-bottom: 16px; }
#th-wrap .process-step { flex: 1; color: #fff; padding: 14px 10px; text-align: center; }
#th-wrap .process-arrow { display: flex; align-items: center; background: #ede9fe; color: #6d28d9; font-size: 1.5rem; font-weight: 900; padding: 0 8px; }
#th-wrap .winner-box { background: #0f172a; border-radius: 10px; padding: 18px 20px; text-align: center; }
#th-wrap .hidden { display: none !important; }
@keyframes thFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}