
:root{
  --bg:#0f172a;
  --card:#111827;
  --muted:#9ca3af;
  --text:#e5e7eb;
  --border:#374151;
  --accent:#10b981;
  --accent-weak:#064e3b;
  --chip-bg:#064e3b;
  --chip:#6ee7b7;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
}
.container{max-width:1000px;margin:0 auto;padding:16px}
.header{padding-top:24px}
.app-title{margin:0;font-size:32px;font-weight:800}
.app-subtitle{margin:6px 0 0;color:var(--muted)}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);margin-top:8px}
.tab{
  background:none;border:none;color:var(--muted);
  padding:12px 0;cursor:pointer;font-weight:600;position:relative
}
.tab.active{color:var(--accent)}
.tab.active::after{
  content:"";position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--accent);
}
.panel{display:none}
.panel.show{display:block}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  margin:16px 0;
  box-shadow:0 6px 16px rgba(0,0,0,.2);
}
.section-title{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.section-title .emoji{font-size:28px}
.label{display:block;margin:14px 0 8px;font-weight:700}
.input{
  width:100%;background:#0b1220;border:1px solid var(--border);color:var(--text);
  border-radius:10px;padding:12px 14px;outline:none
}
.input:focus{border-color:#4ade80;box-shadow:0 0 0 3px rgba(16,185,129,.2)}
.dropzone{
  margin-top:6px;border:2px dashed var(--border);border-radius:12px;min-height:160px;
  display:flex;gap:16px;align-items:center;justify-content:center;text-align:center;cursor:pointer;
  background:#0b1220;
}
.dz-icon{font-size:40px}
.small{font-size:12px}
.muted{color:var(--muted)}
.actions{display:flex;gap:10px;margin-top:14px}
.btn{
  border:1px solid var(--border);border-radius:10px;background:#0b1220;color:var(--text);
  padding:10px 14px;cursor:pointer;font-weight:700
}
.btn.primary{background:var(--accent);color:#062b22;border-color:#0ea371}
.btn:disabled{opacity:.6;cursor:not-allowed}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:top}
.table thead th{background:#0b1220;color:#cbd5e1}
.w-min{width:1%;white-space:nowrap}
.chip{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--chip-bg);color:var(--chip);font-weight:800;font-size:12px}
.result-header{font-weight:700;margin-bottom:12px;color:#cbd5e1}
.overall{margin-top:12px;color:#cbd5e1}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}
.error{border-color:#7f1d1d;background:#1f0a0a}
.footer{color:var(--muted);text-align:center;margin:24px auto}
@media (max-width:700px){
  .app-title{font-size:24px}
}

/* Dropzone filename-only view and Montserrat enforcement */
.dropzone, .dropzone *{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.dropzone .dz-filename{ display:none; font-weight:600; }
.dropzone.has-file > *:not(.dz-filename):not(input){ display:none !important; }
.dropzone.has-file .dz-filename{ display:block; }

/* === NON-DESTRUCTIVE PATCH (append at END of style.css) === */
/* 1) Force Montserrat everywhere WITHOUT changing other rules */
:root { --font-sans-final: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body, button, input, select, textarea, table, th, td, label,
.btn, .tab, .dropzone, .card, .overall, .muted,
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans-final) !important;
}

/* 2) Make page a bit wider on large screens (keep your layout rules) */
@media (min-width: 1280px){
  .container { max-width: 1200px; } /* adjust 1240/1280 if you want wider */
}

/* 3) Slightly smaller base font (affects rem-sizes only) */
html { font-size: 15px; } /* set 14px if you want even smaller */

/* === SAFE APPEND: Montserrat + wider container + slightly smaller base font === */
@media (min-width: 1280px){
  .container { max-width: 1200px; }
}
html { font-size: 15px; } /* change to 14px if you prefer smaller */
