:root {
  --orbit-bg: #f4f1ea;
  --orbit-panel: rgba(255, 255, 255, .84);
  --orbit-text: #1f2538;
  --orbit-muted: #5b6582;
  --orbit-line: rgba(33, 39, 61, .12);
  --orbit-red: #c73a4c;
  --orbit-red-deep: #a72f41;
  --orbit-amber: #ef8a2f;
  --orbit-shadow: 0 18px 38px rgba(44, 50, 82, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body.orbita-tools {
  margin: 0;
  min-height: 100vh;
  color: var(--orbit-text);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at 5% 0%, rgba(234,31,53,.12), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(239,138,47,.14), transparent 26%),
    linear-gradient(180deg, #fcfaf6, var(--orbit-bg));
}

.ot-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.ot-brand { display: inline-flex; align-items: center; margin-bottom: 36px; }
.ot-brand img { width: 184px; height: auto; }
.ot-hero, .ot-card {
  border: 1px solid var(--orbit-line);
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(247,249,255,.92));
  box-shadow: var(--orbit-shadow);
}
.ot-hero { border-radius: 26px; padding: clamp(20px, 4vw, 42px); }
.ot-kicker { margin: 0 0 14px; color: #b04f5e; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.ot-title { margin: 0; max-width: 12ch; font-size: clamp(40px, 7vw, 72px); line-height: .92; letter-spacing: -.06em; }
.ot-title span { display: block; width: fit-content; color: #fff; background: linear-gradient(100deg, #ef8a2f, #f3b347); border-radius: 9px; padding: .06em .2em .11em; box-shadow: 0 8px 18px rgba(239,138,47,.28); }
.ot-lead { max-width: 58ch; margin: 22px 0 0; color: var(--orbit-muted); font-size: 17px; line-height: 1.65; }
.ot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ot-card { display: grid; align-content: space-between; min-height: 270px; gap: 28px; padding: 26px; border-radius: 21px; }
.ot-card h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.ot-card p { margin: 12px 0 0; color: var(--orbit-muted); line-height: 1.6; }
.ot-button, .ot-button:visited { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(100deg, #b90c20, #ea1f35, #ff6579); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(234,31,53,.25); transition: transform .18s ease, box-shadow .18s ease; }
.ot-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(234,31,53,.32); }
.ot-button:active { transform: translateY(0); }
.ot-button--ghost { background: #fff; border-color: var(--orbit-line); color: var(--orbit-text); box-shadow: none; }
.ot-button--ghost:hover { box-shadow: 0 8px 18px rgba(44,50,82,.10); }
.ot-back { display: inline-flex; margin-top: 24px; color: var(--orbit-muted); font-weight: 700; text-decoration: none; }
.ot-back:hover { color: var(--orbit-red); }

.ot-tool-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; margin-top: 16px; }
.ot-card--tool { min-height: 0; align-content: start; }
.ot-card--tool h2 { font-size: 24px; }
.ot-inputs { display: grid; gap: 12px; }
.ot-input-group { padding: 14px; border: 1px solid rgba(33,39,61,.08); border-radius: 16px; background: linear-gradient(180deg, #fff, #f7f9fd); }
.ot-input-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--orbit-muted); font-weight: 800; font-size: 14px; }
.ot-remove { border: 0; padding: 0; color: var(--orbit-red); background: transparent; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ot-textarea { display: block; width: 100%; min-height: 126px; padding: 14px; border: 1px solid var(--orbit-line); border-radius: 14px; background: #fff; color: var(--orbit-text); font: inherit; line-height: 1.55; resize: vertical; }
.ot-textarea:focus { outline: 2px solid rgba(199,58,76,.32); outline-offset: 2px; }
.ot-textarea--result { min-height: 255px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.ot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ot-meta { margin: 14px 0 0; color: var(--orbit-muted); font-size: 14px; line-height: 1.5; }
.ot-note { margin-top: 16px; padding: 14px; border: 1px solid rgba(199,58,76,.12); border-radius: 14px; color: var(--orbit-muted); background: #fff5f7; line-height: 1.55; }

body.convert-page { color: var(--orbit-text); background: linear-gradient(180deg, #fcfaf6, var(--orbit-bg)); }
body.convert-page .background { background: radial-gradient(circle at 4% 0%, rgba(234,31,53,.12), transparent 30%), radial-gradient(circle at 100% 18%, rgba(239,138,47,.12), transparent 28%); }
body.convert-page .card { border-color: var(--orbit-line); background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(247,249,255,.92)); box-shadow: var(--orbit-shadow); }
body.convert-page h1, body.convert-page h3, body.convert-page h4 { color: var(--orbit-text); }
body.convert-page .muted, body.convert-page .input-card span, body.convert-page .history-list, body.convert-page .empty-state { color: var(--orbit-muted); }
body.convert-page .input-card, body.convert-page .chart-panel, body.convert-page .history-list li { background: #fff; border-color: var(--orbit-line); }
body.convert-page .field-wrap input { color: var(--orbit-text); }
body.convert-page .result { border-color: rgba(199,58,76,.14); background: #fff5f7; }
body.convert-page .result p { color: #b14457; }
body.convert-page .result h2 { color: var(--orbit-text); }
body.convert-page .primary-btn { color: #fff; background: linear-gradient(100deg, #b90c20, #ea1f35, #ff6579); }
body.convert-page .ghost-btn, body.convert-page .danger-btn { color: var(--orbit-text); border-color: var(--orbit-line); background: #fff; }
body.convert-page .back-btn { color: var(--orbit-muted); border-color: var(--orbit-line); background: #fff; }

@media (max-width: 760px) {
  .ot-wrap { width: min(100% - 24px, 1120px); padding-top: 18px; }
  .ot-brand { margin-bottom: 22px; }
  .ot-brand img { width: 150px; }
  .ot-grid, .ot-tool-grid { grid-template-columns: 1fr; }
  .ot-card { min-height: 0; }
  .ot-title { font-size: clamp(38px, 13vw, 58px); }
  .ot-button { width: 100%; }
  .ot-actions { flex-direction: column; }
}
