:root {
  color-scheme: dark;
  --mo-bg: #10151f;
  --mo-panel: #18202e;
  --mo-line: #2b3646;
  --mo-text: #e8edf5;
  --mo-muted: #9aa8bd;
  --mo-accent: #4f8ff0;
  --mo-warn: #e0603a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--mo-bg);
  color: var(--mo-text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mo-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.mo-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.mo-header p {
  margin: 0 0 24px;
  color: var(--mo-muted);
  max-width: 62ch;
}

.mo-card {
  background: var(--mo-panel);
  border: 1px solid var(--mo-line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.mo-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mo-muted);
}

.mo-card h3 {
  margin: 22px 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mo-muted);
}

.mo-field {
  display: block;
  margin-bottom: 14px;
}

.mo-field span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--mo-muted);
}

.mo-field input[type="text"],
.mo-field input[type="number"],
.mo-field input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--mo-line);
  background: #0e1420;
  color: var(--mo-text);
  font: inherit;
}

.mo-row {
  display: flex;
  gap: 10px;
}

.mo-row .mo-field { flex: 1; }

.mo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mo-button {
  flex: 1;
  min-width: 180px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--mo-accent);
  color: #06101f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mo-button-alt { background: #2f6fd0; color: #eef4ff; }

.mo-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#status {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--mo-muted);
  overflow-wrap: anywhere;
}

.mo-totals {
  font-size: 14px;
  color: var(--mo-text);
}

.mo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mo-table th,
.mo-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--mo-line);
  overflow-wrap: anywhere;
}

.mo-table th {
  color: var(--mo-muted);
  font-weight: 600;
}

.mo-over { color: var(--mo-warn); }

.mo-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--mo-muted);
}

.mo-list li { margin-bottom: 4px; }

.mo-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mo-muted);
}

.mo-download {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #1d3b6b;
  color: var(--mo-text);
  font-weight: 600;
  text-decoration: none;
}

.mo-download[hidden] { display: none; }

@media (max-width: 640px) {
  .mo-card { min-width: 0; }
  .mo-table { display: block; max-width: 100%; overflow-x: auto; }
  .mo-table th, .mo-table td { white-space: nowrap; }
}

/* The existing file input covers its drop area so native drop reaches it. */
.smidity-tool-start .smidity-tool-start__drop input[type="file"]{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;border:0;opacity:0;cursor:pointer}
