@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #f0f4f9;
  --bg-secondary: #e8eef6;
  --bg-card: #ffffff;
  --bg-card2: #f7f9fc;
  --bg-input: #ffffff;
  --bg-sidebar: #1e293b;
  --bg-sidebar2: #263348;
  --bg-header: #ffffff;
  --border: #d1dbe8;
  --border-active: #3b82f6;
  --border-light: #edf2f8;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-light: #eff6ff;
  --accent2: #0ea5e9;
  --accent3: #059669;
  --accent-gold: #d97706;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-label: #64748b;
  --text-sidebar: #cbd5e1;
  --text-sidebar-muted: #64748b;
  --danger: #dc2626;
  --success: #059669;
  --warning: #d97706;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 16px rgba(29,78,216,0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ══ HEADER ══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-xs);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: var(--shadow-blue); flex-shrink: 0;
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-primary); }
.logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: -3px; font-family: var(--font-mono); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  padding: 7px 14px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--text-secondary);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.nav-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-btn.active { background: var(--accent-light); color: var(--accent); border-color: rgba(29,78,216,0.2); font-weight: 600; }

/* ══ LAYOUT ══ */
.app-container { max-width: 1560px; margin: 0 auto; padding: 24px 28px; }
.page { display: none; }
.page.active { display: block; }

/* ══ DASHBOARD ══ */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-title { font-size: 26px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-family: var(--font-mono); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.metric-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.metric-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.metric-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.metric-value { font-size: 26px; font-weight: 700; color: var(--text-primary); }
.metric-delta { font-size: 12px; color: var(--accent3); margin-top: 4px; }
.metric-icon { position: absolute; top: 18px; right: 18px; font-size: 26px; opacity: 0.10; }

/* ══ WIZARD ══ */
.wizard-container { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.wizard-steps {
  background: var(--bg-sidebar); border-radius: var(--radius-lg);
  padding: 14px 12px; position: sticky; top: 80px; box-shadow: var(--shadow);
}
.steps-title {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-sidebar-muted); padding: 6px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 8px; font-family: var(--font-mono);
}
.step-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: var(--transition); margin-bottom: 2px;
}
.step-item:hover { background: rgba(255,255,255,0.06); }
.step-item.active { background: rgba(59,130,246,0.2); }
.step-item.completed .step-num { background: var(--accent3); color: #fff; border-color: var(--accent3); }
.step-item.active .step-num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--text-sidebar-muted); flex-shrink: 0; transition: var(--transition);
}
.step-info { flex: 1; min-width: 0; }
.step-name { font-size: 13px; font-weight: 500; color: var(--text-sidebar); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-item.active .step-name { color: #fff; font-weight: 600; }
.step-item.completed .step-name { color: #93c5fd; }
.step-desc { font-size: 10px; color: var(--text-sidebar-muted); font-family: var(--font-mono); margin-top: 1px; }
.step-status { font-size: 12px; color: #4ade80; }

/* ══ FORM PANELS ══ */
.form-panel { display: none; }
.form-panel.active { display: block; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border-light); }
.panel-title { display: flex; align-items: center; gap: 12px; }
.panel-icon {
  width: 38px; height: 38px; background: var(--accent-light);
  border: 1.5px solid rgba(29,78,216,0.2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.panel-name { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.2px; }
.panel-code { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }

/* ══ SECTIONS ══ */
.form-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 14px;
  overflow: hidden; box-shadow: var(--shadow-xs);
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; background: var(--bg-card2);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; user-select: none; transition: var(--transition);
}
.section-header:hover { background: #eef2fc; }
.section-title-wrap { display: flex; align-items: center; gap: 9px; }
.section-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.section-toggle { font-size: 11px; color: var(--text-muted); transition: var(--transition); }
.section-header.collapsed .section-toggle { transform: rotate(-90deg); }
.section-body { padding: 18px; }
.section-body.collapsed { display: none; }

/* ══ FORM FIELDS ══ */
.form-grid { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: repeat(2,1fr); }
.form-grid-3 { grid-template-columns: repeat(3,1fr); }
.form-grid-4 { grid-template-columns: repeat(4,1fr); }
.form-grid-6 { grid-template-columns: repeat(6,1fr); }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group.span-2 { grid-column: span 2; }
.field-group.span-3 { grid-column: span 3; }
.field-group.span-full { grid-column: 1/-1; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.field-label .required { color: var(--danger); }
.field-hint { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.form-input, .form-select, .form-textarea {
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-body); font-size: 13.5px;
  padding: 9px 12px; width: 100%;
  transition: var(--transition); outline: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); background: #fff;
}
.form-input:hover:not(:focus), .form-select:hover:not(:focus) { border-color: #94a3b8; }
.form-input.calculated { background: #f0fdf4; border-color: #86efac; color: #065f46; font-family: var(--font-mono); font-weight: 600; }
.form-input.highlight { background: #eff6ff; border-color: #93c5fd; color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.form-textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.form-select option { background: #fff; color: var(--text-primary); }

.input-group { position: relative; display: flex; }
.input-prefix, .input-suffix {
  background: var(--bg-card2); border: 1.5px solid var(--border);
  padding: 9px 11px; color: var(--text-muted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  white-space: nowrap; display: flex; align-items: center;
}
.input-prefix { border-right: none; border-radius: var(--radius) 0 0 var(--radius); }
.input-suffix { border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .form-input { border-radius: 0; flex: 1; }
.input-group.has-prefix .form-input { border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }
.input-group.has-suffix .form-input { border-right: none; border-radius: var(--radius) 0 0 var(--radius); }

/* ══ CHECKS ══ */
.check-group { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.check-option {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: var(--transition);
  font-size: 13px; background: var(--bg-card); color: var(--text-secondary); font-weight: 500;
}
.check-option:hover { border-color: var(--accent); color: var(--accent); }
.check-option input { display: none; }
.check-option.checked { background: var(--accent-light); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ══ TABLES ══ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead tr { border-bottom: 2px solid var(--border); }
.data-table th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 12px; text-align: left;
  background: var(--bg-card2); white-space: nowrap;
}
.data-table td { padding: 7px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f8faff; }
.data-table td input, .data-table td select {
  background: transparent; border: none; color: var(--text-primary);
  font-size: 12.5px; width: 100%; outline: none; font-family: var(--font-mono);
}
.data-table td input:focus { background: var(--accent-light); border-radius: 4px; padding: 2px 6px; border: 1px solid rgba(29,78,216,0.3); }
.table-total-row td { background: var(--accent-light)!important; border-top: 2px solid var(--accent)!important; font-weight: 700; color: var(--accent)!important; font-family: var(--font-mono); }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius);
  border: 1.5px solid transparent; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(29,78,216,0.35); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); border-color: var(--border); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-success { background: #f0fdf4; border-color: #86efac; color: var(--success); }
.btn-success:hover { background: #dcfce7; }
.btn-danger { background: #fef2f2; border-color: #fca5a5; color: var(--danger); }
.btn-danger:hover { background: #fee2e2; }
.btn-gold { background: #fffbeb; border-color: #fcd34d; color: var(--accent-gold); font-weight: 700; }
.btn-gold:hover { background: #fef3c7; }
.btn-dark { background: var(--bg-sidebar); border-color: var(--bg-sidebar); color: #fff; }
.btn-dark:hover { background: var(--bg-sidebar2); }
.btn-lg { padding: 11px 24px; font-size: 14.5px; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-group { display: flex; gap: 8px; align-items: center; }

/* ══ CALC BOXES ══ */
.calc-box {
  background: var(--bg-card2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 8px;
}
.calc-box.blue { background: #eff6ff; border-color: #bfdbfe; }
.calc-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.calc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px dashed var(--border-light);
}
.calc-row:last-child { border-bottom: none; }
.calc-row.total { border-top: 2px solid var(--border); border-bottom: none; padding-top: 12px; margin-top: 6px; }
.calc-label { font-size: 13px; color: var(--text-secondary); }
.calc-value { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); font-weight: 600; }
.calc-row.total .calc-label { color: var(--text-primary); font-weight: 700; font-size: 14px; }
.calc-row.total .calc-value { font-size: 17px; color: var(--accent); font-weight: 700; }

/* ══ VALUE CARDS ══ */
.values-display { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.value-card { border-radius: var(--radius-lg); padding: 20px 22px; text-align: center; border: 1.5px solid var(--border); }
.value-card.primary-value { background: #eff6ff; border-color: #bfdbfe; }
.value-card.secondary-value { background: #fffbeb; border-color: #fde68a; }
.value-card.tertiary-value { background: #f0fdf4; border-color: #bbf7d0; }
.value-type { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.value-amount { font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1; }
.primary-value .value-amount { color: var(--accent); }
.secondary-value .value-amount { color: var(--accent-gold); }
.tertiary-value .value-amount { color: var(--accent3); }
.value-currency { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ══ AI PANEL ══ */
.ai-panel {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.ai-header { padding: 13px 18px; background: var(--bg-sidebar); display: flex; align-items: center; gap: 10px; }
.ai-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.ai-title { font-size: 15px; font-weight: 600; color: #fff; }
.ai-model { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #93c5fd; background: rgba(59,130,246,0.2); padding: 3px 9px; border-radius: 20px; border: 1px solid rgba(59,130,246,0.3); }
.ai-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 480px; background: var(--bg-primary); }
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg { display: flex; gap: 9px; animation: msgIn 0.25s ease; }
@keyframes msgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.msg.user .msg-avatar { background: var(--accent-light); border: 1.5px solid rgba(29,78,216,0.3); margin-left: auto; order: 2; }
.msg.ai .msg-avatar { background: #f1f5f9; border: 1.5px solid var(--border); }
.msg.user { flex-direction: row-reverse; }
.msg-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.msg.ai .msg-bubble { background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-primary); }
.msg.user .msg-bubble { background: var(--accent); color: #fff; }
.ai-input-area { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--bg-card); }
.ai-input { flex: 1; background: var(--bg-card2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 9px 13px; color: var(--text-primary); font-family: var(--font-body); font-size: 13.5px; outline: none; transition: var(--transition); }
.ai-input:focus { border-color: var(--accent); background: #fff; }
.ai-quick-btns { padding: 8px 14px; border-top: 1px solid var(--border-light); display: flex; gap: 6px; flex-wrap: wrap; background: var(--bg-card2); }
.quick-btn { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 20px; padding: 4px 11px; font-size: 11.5px; color: var(--text-secondary); cursor: pointer; transition: var(--transition); font-weight: 500; }
.quick-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ══ REPORT ══ */
.report-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.report-preview { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ══ PROGRESS ══ */
.progress-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; transition: width 0.4s ease; }

/* ══ TAGS ══ */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag-blue { background: var(--accent-light); border: 1.5px solid #bfdbfe; color: var(--accent); }
.tag-green { background: #f0fdf4; border: 1.5px solid #86efac; color: var(--accent3); }
.tag-gold { background: #fffbeb; border: 1.5px solid #fcd34d; color: var(--accent-gold); }
.tag-red { background: #fef2f2; border: 1.5px solid #fca5a5; color: var(--danger); }

/* ══ ALERTS ══ */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-weight: 500; }
.alert-info { background: var(--accent-light); border: 1.5px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #065f46; }
.alert-warning { background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e; }

/* ══ TOAST ══ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 10px; min-width: 280px; box-shadow: var(--shadow); animation: toastIn 0.25s ease; font-size: 13.5px; font-weight: 500; }
@keyframes toastIn { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }

/* ══ TYPING ══ */
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dot { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,100%{opacity:0.3;transform:translateY(0)} 50%{opacity:1;transform:translateY(-4px)} }

/* ══ SCROLLBAR ══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ══ PRINT ══ */
@media print {
  .site-header, .wizard-steps, #step-prev, #step-next, .btn, .nav-btn,
  .report-controls, .ai-panel, .header-nav, .dashboard-header { display: none!important; }
  .report-preview { box-shadow: none; border: none; }
  body { background: white!important; }
}

/* ══ RESPONSIVE ══ */
@media (max-width:1100px) {
  .wizard-container { grid-template-columns: 1fr; }
  .wizard-steps { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .steps-title { display: none; }
  .step-desc { display: none; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .report-grid { grid-template-columns: 1fr; }
}
@media (max-width:768px) {
  .app-container { padding: 14px; }
  .form-grid-3, .form-grid-4, .form-grid-6 { grid-template-columns: 1fr 1fr; }
  .values-display { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}