:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;

  /* Status Colors */
  --status-iron: #eb4899;
  /* 鉄板 */
  --status-continue: #10b981;
  /* 続行 */
  --status-warning: #f59e0b;
  /* 警戒 */
  --status-withdraw: #ef4444;
  /* 撤退 */

  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  /* Premium dark background with subtle gradient */
  background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%);
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-control.text-right {
  text-align: right;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.grid-2col .form-group {
  margin-bottom: 0;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.toggle-container input[type="radio"] {
  display: none;
}

.toggle-btn {
  flex: 1;
  text-align: center;
  padding: 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.toggle-container input[type="radio"]:checked+.toggle-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Primary Button */
.btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.39);
}

/* Results Section */
.hidden {
  display: none !important;
}

.judgment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.status-iron {
  background: var(--status-iron);
  box-shadow: 0 0 15px rgba(235, 72, 153, 0.5);
}

.status-continue {
  background: var(--status-continue);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.status-warning {
  background: var(--status-warning);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.status-withdraw {
  background: var(--status-withdraw);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.status-neutral {
  background: var(--text-muted);
}

.advice-box {
  background: rgba(15, 23, 42, 0.5);
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.next-judgment {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--glass-border);
  color: var(--status-warning);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Stats Overview */
.stats-overview h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.stat-label {
  width: 30%;
  font-weight: 500;
}

.stat-value {
  width: 20%;
  text-align: right;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.z-score-bar-container {
  width: 50%;
  padding-left: 1rem;
  display: flex;
  align-items: center;
}

.z-score-value {
  width: 3.5rem;
  text-align: right;
  font-family: monospace;
  font-weight: 700;
  margin-right: 0.5rem;
}

.z-score-value.highlight {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.z-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
}

.z-center {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--text-muted);
}

.z-fill {
  position: absolute;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-cyan);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* origin, width, and left will be set by JS */
}

/* Modifier classes for Z-fill based on positive/negative */
.z-fill.pos {
  background: var(--status-continue);
  left: 50%;
}

.z-fill.neg {
  background: var(--status-withdraw);
  right: 50%;
}

.stat-total {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* -------------------------------------
 * New JUG-ASSIST Enhancements
 * ------------------------------------- */

.app-header {
  position: relative;
}

.text-positive {
  color: var(--status-continue) !important;
}

.text-negative {
  color: var(--status-withdraw) !important;
}

.notice-text {
  font-size: 0.8rem;
  color: #ff9800;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.setup-section {
  padding: 1rem 1.5rem;
}

.header-with-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.header-with-toggle h2 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.1rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.history-summary {
  background: rgba(15, 23, 42, 0.4);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  border-left: 3px solid var(--accent-cyan);
}

.count-focused input {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 1rem;
}

/* Bayesian Charts */
.bayesian-section {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.target-achievement-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.achievement-highlight {
  font-size: 1.75rem;
  color: var(--status-continue);
  display: block;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.bayes-charts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bayes-bar-row {
  display: flex;
  align-items: center;
}

.bayes-label {
  width: 15%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.bayes-track {
  width: 65%;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
  margin: 0 0.5rem;
}

.bayes-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bayes-val {
  width: 20%;
  text-align: right;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.history-backcalc {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--status-warning);
  padding: 0.75rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.disclaimer-section {
  border-top: 1px dashed var(--glass-border);
  padding-top: 1.5rem;
}

.disclaimer-section h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.disclaimer-section p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.feedback-banner {
  background: rgba(15, 23, 42, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--glass-border);
}

/* Floating Counter Dashboard */
.floating-counter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.count-btn {
  flex: 1;
  max-width: 120px;
  border: none;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
}

.count-btn:active {
  transform: scale(0.92);
  filter: brightness(1.2);
}

.btn-lbl {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.count-val {
  font-size: 1.6rem;
  font-family: monospace;
  line-height: 1;
}

/* Floating Status Panel (Horizontal Layout) */
.floating-status-panel {
  position: fixed;
  bottom: 82px;
  /* Above the floating counter */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  z-index: 900;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-status-panel.opacity-low {
  opacity: 0;
  pointer-events: none;
}

.panel-horizontal-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.panel-payout-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.panel-payout-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.1rem;
}

.panel-payout-val {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
}

.panel-probs-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.panel-prob-row {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.panel-prob-row span {
  color: var(--text-muted);
}

.panel-prob-row strong {
  font-family: monospace;
  font-weight: 700;
  color: #fff;
  margin-left: 0.25rem;
}

/* Button Colors */
.btn-big {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-reg {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-grape {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.btn-cherry {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.pointer-events-none {
  pointer-events: none;
}

/* ---- Trust Degradation (BIG Risk Active) ---- */
.unified-analysis.trust-degraded {
  border-color: rgba(239, 68, 68, 0.4);
  position: relative;
}

.unified-analysis.trust-degraded::after {
  content: '⚠ データ信頼性低下中';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ff6b6b;
  letter-spacing: 0.03em;
}

.unified-analysis.trust-degraded .unified-row-right {
  filter: saturate(0.2) brightness(0.7);
  transition: filter 0.4s ease;
}

.unified-analysis.trust-degraded .unified-item-label {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
}

.unified-analysis.trust-degraded .z-fill {
  opacity: 0.3;
}

/* ---- Sample Warning Banner ---- */
.sample-warning-banner {
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid;
  line-height: 1.5;
}

.sample-warning-banner.sample-collecting {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary-color);
  color: #a5b4fc;
}

.sample-warning-banner.sample-low {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--status-warning);
  color: #fbbf24;
}

/* 収集中: 分析エリアをグレーアウト */
.unified-analysis.sample-insufficient .unified-row-right {
  filter: saturate(0) brightness(0.4);
  pointer-events: none;
  transition: filter 0.4s ease;
}

.unified-analysis.sample-insufficient .unified-item-label {
  background: transparent !important;
  color: var(--text-muted) !important;
}

.unified-analysis.sample-insufficient .z-fill {
  opacity: 0.15;
}

/* ---- Weight Excluded Row ---- */
.unified-row.weight-excluded {
  opacity: 0.3;
  pointer-events: none;
  position: relative;
}

.unified-row.weight-excluded::after {
  content: '除外中';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
}

/* ---- Analysis Panels (v2.6) ---- */
.compat-box {
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid var(--accent-cyan);
  line-height: 1.6;
}

/* Unified Analysis Card */
.unified-analysis {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.unified-analysis-title {
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-main);
}

.analysis-scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
}

.unified-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.unified-row:last-child {
  border-bottom: none;
}

.unified-row-overall {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.unified-row-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.unified-item-name {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

.unified-item-prob {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.unified-row-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
}

.unified-item-label {
  flex: 0 0 auto;
  min-width: 5.5rem;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.unified-item-label.highlight {
  font-size: 0.8rem;
  min-width: 6rem;
}

.analysis-panel {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
}

.analysis-panel-title {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.35rem;
}

.bonus-detail-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bonus-detail-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bonus-detail-value {
  font-size: 0.95rem;
  font-family: 'Inter', monospace;
  color: var(--text-main);
}

.bonus-pct {
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.25rem;
}

.action-guide {
  font-size: 0.8rem;
  color: var(--text-main);
  padding: 0.5rem 0.6rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0.35rem;
  border-left: 2px solid var(--accent-cyan);
  line-height: 1.55;
}

/* Expert Accordion */
.expert-details {
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.expert-summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.6rem 0.75rem;
  outline: none;
  font-weight: 500;
  list-style: none;
}

.expert-summary::-webkit-details-marker {
  display: none;
}

.expert-summary::before {
  content: '▶ ';
  font-size: 0.6rem;
  transition: transform 0.2s;
  display: inline-block;
}

.expert-details[open] > .expert-summary::before {
  content: '▼ ';
}

.expert-content {
  padding: 0 0.75rem 0.75rem;
}

.debug-z-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.debug-z-row:last-child {
  border-bottom: none;
}

.debug-z-name {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.debug-z-raw {
  flex: 0 0 80px;
  text-align: right;
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  color: var(--text-main);
}

.debug-z-contrib {
  flex: 0 0 55px;
  text-align: right;
  font-family: 'Inter', monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

/* ================================================
   JUG-ASSIST v3.0 — 朝イチハマり撤退ライン UI
   ================================================ */
.morning-withdrawal-box {
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
  transition: all 0.3s ease;
}

.morning-withdrawal-box.mwd-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.morning-withdrawal-box.mwd-critical {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
  animation: mwd-pulse 2.5s infinite;
}

@keyframes mwd-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 4px 28px rgba(239, 68, 68, 0.4); }
}

.mwd-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mwd-icon {
  font-size: 1rem;
}

.mwd-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.mwd-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mwd-stat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.4rem;
  padding: 0.4rem 0.3rem;
}

.mwd-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-align: center;
}

.mwd-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.mwd-judgment {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.4rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
}

.mwd-note {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: right;
}