:root {
  --embed-ink: #14223a;
  --embed-muted: #5b6a82;
  --embed-line: #d7deea;
  --embed-paper: #f5f7fb;
  --embed-blue: #2457e6;
  --embed-fit: #1f7a53;
  --embed-fit-bg: #e6f5ee;
  --embed-out: #b23b3b;
  --embed-out-bg: #fbeaea;
  --embed-review: #8a6d10;
  --embed-review-bg: #fbf3dd;
}
* { box-sizing: border-box; }
.embed-body {
  margin: 0;
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--embed-ink);
  background: #fff;
}
.embed-shell { max-width: 560px; margin: 0 auto; }
.embed-form { display: grid; gap: 12px; }
.embed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.embed-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--embed-muted); text-transform: uppercase; letter-spacing: .04em; }
.embed-form input, .embed-form select {
  width: 100%; padding: 11px 12px; font-size: 15px; font-weight: 600; color: var(--embed-ink);
  background: #fff; border: 1px solid var(--embed-line); border-radius: 9px; appearance: none;
}
.embed-form input:focus, .embed-form select:focus { outline: 2px solid var(--embed-blue); outline-offset: 1px; border-color: var(--embed-blue); }
.embed-unit { position: relative; display: flex; align-items: center; }
.embed-unit b { position: absolute; left: 12px; font-size: 14px; color: var(--embed-muted); font-weight: 700; }
.embed-unit input { padding-left: 26px; }
.embed-unit-right b { left: auto; right: 12px; }
.embed-unit-right input { padding-right: 34px; }
.embed-form button {
  margin-top: 2px; padding: 13px 16px; font-size: 15px; font-weight: 800; color: #fff;
  background: var(--embed-blue); border: 0; border-radius: 10px; cursor: pointer;
}
.embed-form button:disabled { opacity: .6; cursor: progress; }
.embed-output { margin-top: 16px; display: grid; gap: 9px; }
.embed-summary { font-size: 13px; font-weight: 700; color: var(--embed-muted); }
.embed-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--embed-line); border-radius: 11px; background: var(--embed-paper); }
.embed-card a { color: var(--embed-ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.embed-card a:hover { text-decoration: underline; }
.embed-card small { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--embed-muted); line-height: 1.4; }
.embed-badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.embed-badge.fit { color: var(--embed-fit); background: var(--embed-fit-bg); }
.embed-badge.outside { color: var(--embed-out); background: var(--embed-out-bg); }
.embed-badge.review, .embed-badge.limited { color: var(--embed-review); background: var(--embed-review-bg); }
.embed-empty { padding: 14px; font-size: 13px; color: var(--embed-muted); border: 1px dashed var(--embed-line); border-radius: 10px; }
.embed-brand { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--embed-muted); text-align: center; text-decoration: none; }
.embed-brand strong { color: var(--embed-blue); }
.embed-brand:hover { text-decoration: underline; }
@media (max-width: 420px) { .embed-row { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) {
  .embed-body { color: #e8edf6; background: #0f1b2f; }
  .embed-form input, .embed-form select { color: #e8edf6; background: #16243c; border-color: #33425c; }
  .embed-card { background: #16243c; border-color: #33425c; }
  .embed-card a { color: #e8edf6; }
  .embed-empty { border-color: #33425c; }
}
