* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #1e293b;
}
.header h1 { font-size: 18px; margin: 0; }
#lang-switch {
  background: #334155;
  color: #e2e8f0;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.main {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}
.card {
  background: #1e293b;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
label { display: block; margin-top: 12px; font-size: 13px; color: #94a3b8; }
input {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
}
button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: #6366f1;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #4f46e5; }
.hidden { display: none; }
.offline-banner {
  background: #b45309;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}
.ai-assistant, .data-actions { margin-top: 20px; }
#activation-result, #assistant-answer {
  font-size: 13px;
  margin-top: 10px;
  color: #a5b4fc;
}
.pnl-box { margin-top: 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
table th, table td {
  border: 1px solid #334155;
  padding: 6px;
  text-align: left;
}
table th { background: #334155; }
input[type="file"] { padding: 8px 0; 

}
.modal-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  color: #e2e8f0;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 900;
  overflow-y: auto;
}
