/* IPT -> STEP converter - framed by the Hub ToolPage (theme/lang via query). */
:root {
  --bg: #ffffff;
  --panel: #f6f7f9;
  --text: #22272e;
  --muted: #5b6471;
  --border: #d6dbe2;
  --accent: #5a7a9e;      /* --color-piloter */
  --accent-text: #ffffff;
  --ok: #5a8f5a;          /* --color-ameliorer */
  --warn: #c88b4a;        /* --color-anticiper */
  --err: #b55a5a;         /* --color-reagir */
}
[data-theme='dark'] {
  --bg: #14181d;
  --panel: #1c2229;
  --text: #e8ebee;
  --muted: #9aa4b0;
  --border: #323a44;
  --accent: #7a9cc0;
  --accent-text: #10151a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Arial, sans-serif;
}

.tool { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-over { border-color: var(--accent); outline: none; }
.dropzone__main { margin: 0; font-weight: bold; }
.dropzone__hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dropzone__file { margin: 10px 0 0; color: var(--ok); font-weight: bold; word-break: break-all; }

.disclaimer {
  margin-top: 16px;
  border-left: 4px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 8%, var(--panel));
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  font-size: 14px;
}
.disclaimer__title { margin: 0 0 6px; font-weight: bold; }
.disclaimer p { margin: 0 0 8px; }

.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; }
.check--small { font-size: 13px; color: var(--muted); }

.email-block { margin-top: 16px; font-size: 14px; }
.email-block p { margin: 0 0 8px; }
.email-block input[type='email'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 8px;
}
.fineprint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }

.cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.cta:disabled { opacity: 0.45; cursor: not-allowed; }

.status { margin: 14px 0 0; font-size: 14px; }
.status--busy { color: var(--muted); }
.status--error { color: var(--err); }
.status--warn { color: var(--warn); }

.panel--result { margin-top: 16px; }
.result__ok { margin: 0 0 10px; color: var(--ok); font-weight: bold; }
.result__facts { margin: 0 0 4px; font-size: 14px; }
.result__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.result__facts dt { color: var(--muted); margin: 0; }
.result__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.result__verify {
  margin: 14px 0 0;
  border-left: 4px solid var(--warn);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}
.link-btn {
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.tool__footer { margin-top: 20px; font-size: 13px; color: var(--muted); }
.tool__footer p { margin: 0 0 6px; }
.tool__footer a { color: var(--accent); }
