/* Компактен layout за iframe embed — без marketing chrome от критичния CSS */
html, body {
  margin: 0;
  padding: 0;
  background: var(--page, #F8FAFC) !important;
  color: var(--ink, #0F172A);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
.embed-page {
  box-sizing: border-box;
  padding: 10px;
  max-width: 420px;
  margin: 0;
  width: 100%;
}
.embed-page *,
.embed-page *::before,
.embed-page *::after {
  box-sizing: border-box;
}
.embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline, #E2E8F0);
}
.embed-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}
.embed-brand .brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
}
.embed-brand .brand-mark--bird::before {
  width: 18px;
  height: 18px;
}
.embed-page .lang-switch {
  display: flex;
  gap: 4px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  flex-shrink: 0;
}
.embed-page .lang-switch button {
  appearance: none;
  border: 1px solid var(--hairline, #E2E8F0);
  background: var(--surface, #fff);
  color: var(--ink-2, #64748B);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.embed-page .lang-switch button[aria-pressed="true"] {
  background: var(--accent, #2563EB);
  border-color: var(--accent, #2563EB);
  color: #fff;
}
.embed-card {
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, #E2E8F0);
  border-radius: 12px;
  padding: 12px;
  box-shadow: none;
}
.embed-fields {
  display: grid;
  gap: 8px;
}
.embed-fields label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-2, #64748B);
  margin-bottom: 4px;
}
.embed-fields input[type="number"],
.embed-fields select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--hairline, #E2E8F0);
  border-radius: 8px;
  background: var(--page, #F8FAFC);
  color: inherit;
  font: inherit;
}
.embed-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
.embed-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin: 2px 0 0;
  color: inherit;
}
.embed-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.embed-net {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline, #E2E8F0);
  text-align: center;
}
.embed-net .label {
  font-size: 0.8rem;
  color: var(--ink-2, #64748B);
  margin: 0 0 4px;
}
.embed-net .value {
  font-size: 1.65rem;
  font-weight: 750;
  color: var(--accent, #2563EB);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.embed-net .sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ink-2, #64748B);
}
.embed-breakdown {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}
.embed-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.embed-breakdown .muted {
  color: var(--ink-2, #64748B);
}
.embed-foot {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-2, #64748B);
}
.embed-foot a {
  color: var(--accent, #2563EB);
  font-weight: 600;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
  }
}
