.bmuc-app,
.bmuc-app * {
  box-sizing: border-box;
}

.bmuc-app {
  --bmuc-navy: #102b4c;
  --bmuc-blue: #2563eb;
  --bmuc-blue-dark: #1d4ed8;
  --bmuc-cyan: #10b8c7;
  --bmuc-ink: #14233a;
  --bmuc-muted: #64748b;
  --bmuc-line: #dbe5f1;
  --bmuc-pale: #f3f7fc;
  --bmuc-white: #ffffff;
  max-width: 1180px;
  margin: 24px auto 48px;
  color: var(--bmuc-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.bmuc-app button,
.bmuc-app input,
.bmuc-app select {
  font: inherit;
}

.bmuc-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  min-height: 214px;
  padding: 38px 44px;
  border-radius: 22px 22px 0 0;
  background: var(--bmuc-navy);
  color: var(--bmuc-white);
}

.bmuc-hero::before,
.bmuc-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.bmuc-hero::before {
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.bmuc-hero::after {
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 60px solid rgba(37, 99, 235, .32);
  border-radius: 50%;
}

.bmuc-hero__copy,
.bmuc-hero__mark {
  position: relative;
  z-index: 1;
}

.bmuc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #76e4ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bmuc-eyebrow svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bmuc-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.bmuc-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #c8d8ea;
  font-size: 17px;
}

.bmuc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bmuc-hero__meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #d9e7f5;
  font-size: 11px;
  font-weight: 700;
}

.bmuc-hero__mark {
  display: grid;
  flex: 0 0 106px;
  width: 106px;
  height: 106px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 26px;
  background: rgba(255,255,255,.08);
  transform: rotate(-3deg);
}

.bmuc-hero__mark svg {
  width: 67px;
  height: 67px;
  fill: none;
  stroke: #66d9e7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bmuc-category-wrap {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  border-right: 1px solid var(--bmuc-line);
  border-left: 1px solid var(--bmuc-line);
  background: #fff;
}

.bmuc-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr)) minmax(160px, 1.2fr) repeat(5, minmax(104px, 1fr));
  transform: translateY(-18px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b8c9dc transparent;
  scroll-snap-type: x proximity;
  border: 1px solid var(--bmuc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 43, 76, .1);
}

.bmuc-category {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 13px 10px;
  border: 0;
  border-right: 1px solid var(--bmuc-line);
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: #52657d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
  scroll-snap-align: center;
  min-width: 0;
}

.bmuc-category span {
  min-width: 0;
  white-space: nowrap;
}

.bmuc-category:last-child {
  border-right: 0;
}

.bmuc-category svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bmuc-category:hover {
  color: var(--bmuc-blue);
  background: #f8fbff;
}

.bmuc-category.is-active {
  color: #fff;
  background: var(--bmuc-blue);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}

.bmuc-category:focus-visible,
.bmuc-swap:focus-visible,
.bmuc-copy:focus-visible,
.bmuc-reset:focus-visible,
.bmuc-quick-pair:focus-visible,
.bmuc-action-bar button:focus-visible,
.bmuc-memory-card button:focus-visible,
.bmuc-faq-grid summary:focus-visible {
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 2px;
}

.bmuc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr);
  gap: 20px;
  padding: 16px 24px 26px;
  border-right: 1px solid var(--bmuc-line);
  border-left: 1px solid var(--bmuc-line);
  background: #fff;
}

.bmuc-converter-card,
.bmuc-reference-card {
  border: 1px solid var(--bmuc-line);
  border-radius: 18px;
  background: #fff;
}

.bmuc-converter-card {
  padding: 27px;
  box-shadow: 0 12px 35px rgba(16, 43, 76, .06);
}

.bmuc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.bmuc-step {
  display: block;
  margin-bottom: 3px;
  color: var(--bmuc-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bmuc-card-head h3,
.bmuc-reference-card h3 {
  margin: 0;
  color: var(--bmuc-navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.bmuc-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bmuc-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.bmuc-reset:hover {
  background: var(--bmuc-pale);
  color: var(--bmuc-blue);
}

.bmuc-reset svg,
.bmuc-copy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bmuc-convert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.bmuc-field-group > label {
  display: block;
  margin: 0 0 8px;
  color: #465a74;
  font-size: 13px;
  font-weight: 800;
}

.bmuc-value-control {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd9e9;
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.bmuc-value-control:focus-within {
  border-color: var(--bmuc-blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.bmuc-value-control input {
  width: 100%;
  min-width: 0;
  height: 64px;
  margin: 0;
  padding: 8px 102px 8px 16px;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  color: var(--bmuc-navy);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 800;
  line-height: 1;
}

.bmuc-value-control select {
  position: absolute;
  top: 50%;
  right: 8px;
  width: auto;
  max-width: 96px;
  height: 40px;
  margin: 0;
  padding: 0 28px 0 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  outline: 0;
  background-color: var(--bmuc-pale);
  color: var(--bmuc-navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.bmuc-value-control--result {
  border-color: #b8d0f8;
  background: #f5f9ff;
}

.bmuc-value-control--result input {
  padding-right: 130px;
  color: var(--bmuc-blue-dark);
  text-overflow: ellipsis;
}

.bmuc-value-control--result select {
  right: 43px;
  background-color: #e4edff;
  color: #174eb5;
}

.bmuc-swap {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  padding: 0;
  place-items: center;
  border: 1px solid #cbd9e9;
  border-radius: 50%;
  background: #fff;
  color: var(--bmuc-blue);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.bmuc-swap:hover {
  transform: rotate(180deg);
  background: var(--bmuc-blue);
  color: #fff;
}

.bmuc-swap svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bmuc-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #55708f;
  cursor: pointer;
}

.bmuc-copy:hover,
.bmuc-copy.is-copied {
  background: #d9e7ff;
  color: var(--bmuc-blue-dark);
}

.bmuc-equals {
  margin: 15px 0 0;
  color: #405773;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.bmuc-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.bmuc-action-bar button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--bmuc-line);
  border-radius: 9px;
  background: #fff;
  color: #405773;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.bmuc-action-bar button:hover,
.bmuc-action-bar button.is-active,
.bmuc-action-bar button.is-copied {
  border-color: #b7cdf7;
  background: #eef5ff;
  color: var(--bmuc-blue-dark);
}

.bmuc-action-bar button.is-active svg {
  fill: currentColor;
}

.bmuc-action-bar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bmuc-sr-status {
  min-height: 18px;
  margin-top: 5px;
  color: #52657d;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.bmuc-quick-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bmuc-line);
}

.bmuc-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bmuc-quick-head > span {
  color: #405773;
  font-size: 13px;
  font-weight: 800;
}

.bmuc-format-controls {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.bmuc-precision-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bmuc-muted);
  font-size: 12px;
  font-weight: 700;
}

.bmuc-precision-control select {
  height: 30px;
  margin: 0;
  padding: 0 25px 0 8px;
  border: 1px solid var(--bmuc-line);
  border-radius: 7px;
  background-color: #fff;
  color: var(--bmuc-navy);
  font-size: 12px;
}

.bmuc-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bmuc-muted);
  cursor: pointer;
  font-size: 12px;
}

.bmuc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.bmuc-switch > span {
  position: relative;
  width: 33px;
  height: 19px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s ease;
}

.bmuc-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,43,76,.25);
  content: "";
  transition: transform .2s ease;
}

.bmuc-switch input:checked + span {
  background: var(--bmuc-blue);
}

.bmuc-switch input:checked + span::after {
  transform: translateX(14px);
}

.bmuc-switch input:focus-visible + span {
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 2px;
}

.bmuc-switch b {
  font-weight: 700;
}

.bmuc-quick-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bmuc-quick-pair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--bmuc-line);
  border-radius: 9px;
  background: #fff;
  color: #405773;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.bmuc-quick-pair:hover,
.bmuc-quick-pair.is-active {
  border-color: #b8cdf7;
  background: #eef5ff;
  color: var(--bmuc-blue-dark);
}

.bmuc-quick-pair svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bmuc-reference-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  background: var(--bmuc-pale);
}

.bmuc-reference-card::after {
  position: absolute;
  right: -44px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border: 24px solid rgba(37,99,235,.06);
  border-radius: 50%;
  content: "";
}

.bmuc-reference-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 11px;
  background: var(--bmuc-blue);
  color: #fff;
}

.bmuc-reference-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bmuc-reference-card h3 {
  margin-top: 4px;
  font-size: 18px;
}

.bmuc-formula {
  position: relative;
  z-index: 1;
  margin: 17px 0 13px;
  padding: 17px 14px;
  border: 1px solid #c7d8ef;
  border-radius: 11px;
  background: #fff;
  color: var(--bmuc-blue-dark);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.bmuc-reference-card > p {
  position: relative;
  z-index: 1;
  min-height: 62px;
  margin: 0;
  color: var(--bmuc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.bmuc-standard-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #d4e0ed;
}

.bmuc-standard-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: var(--bmuc-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bmuc-standard-note strong,
.bmuc-standard-note span {
  display: block;
}

.bmuc-standard-note strong {
  color: var(--bmuc-navy);
  font-size: 12px;
}

.bmuc-standard-note span {
  margin-top: 2px;
  color: var(--bmuc-muted);
  font-size: 11px;
  line-height: 1.45;
}

.bmuc-standard-note.is-warning svg {
  stroke: #d97706;
}

.bmuc-standard-note.is-warning span {
  color: #9a5b08;
  font-weight: 700;
}

.bmuc-memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 24px 22px;
  border-right: 1px solid var(--bmuc-line);
  border-left: 1px solid var(--bmuc-line);
  background: #fff;
}

.bmuc-memory-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bmuc-line);
  border-radius: 13px;
  background: #f9fbfd;
}

.bmuc-memory-head,
.bmuc-memory-head > div {
  display: flex;
  align-items: center;
}

.bmuc-memory-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.bmuc-memory-head > div {
  min-width: 0;
  gap: 7px;
}

.bmuc-memory-head svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--bmuc-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bmuc-memory-head h3 {
  overflow: hidden;
  margin: 0;
  color: var(--bmuc-navy);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bmuc-memory-head > span,
.bmuc-memory-head > button {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bmuc-muted);
  font-size: 11px;
  font-weight: 700;
}

.bmuc-memory-head > button {
  cursor: pointer;
}

.bmuc-memory-head > button:hover {
  color: var(--bmuc-blue-dark);
}

.bmuc-saved-list {
  display: flex;
  min-height: 34px;
  flex-wrap: wrap;
  gap: 7px;
}

.bmuc-empty {
  align-self: center;
  margin: 0;
  color: #7b8a9d;
  font-size: 11px;
}

.bmuc-saved-chip {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d1ddec;
  border-radius: 8px;
  background: #fff;
}

.bmuc-saved-chip button {
  min-height: 32px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #405773;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.bmuc-saved-chip__open {
  padding: 5px 9px;
}

.bmuc-saved-chip__open:hover {
  background: #eef5ff;
  color: var(--bmuc-blue-dark);
}

.bmuc-saved-chip__remove {
  width: 28px;
  padding: 0;
  border-left: 1px solid #e1e8f0 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

.bmuc-saved-chip__remove:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.bmuc-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmuc-history-item {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #d1ddec;
  border-radius: 8px;
  background: #fff;
  color: #405773;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.bmuc-history-item:hover {
  border-color: #b7cdf7;
  background: #eef5ff;
}

.bmuc-history-item strong,
.bmuc-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bmuc-history-item strong {
  color: var(--bmuc-navy);
  font-weight: 800;
}

.bmuc-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 17px 24px;
  border: 1px solid var(--bmuc-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #f9fbfd;
}

.bmuc-footer-note > div {
  display: grid;
  grid-template-columns: 20px auto;
  align-items: center;
  column-gap: 8px;
  flex: 0 0 auto;
}

.bmuc-footer-note svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--bmuc-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bmuc-footer-note strong {
  color: var(--bmuc-navy);
  font-size: 12px;
}

.bmuc-footer-note span,
.bmuc-footer-note p {
  color: var(--bmuc-muted);
  font-size: 11px;
}

.bmuc-footer-note a {
  color: var(--bmuc-blue-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.bmuc-footer-note p {
  max-width: 580px;
  margin: 0;
  line-height: 1.45;
  text-align: right;
}

.bmuc-noscript {
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  text-align: center;
}

.bmuc-guide {
  --bmuc-navy: #102b4c;
  --bmuc-blue: #2563eb;
  --bmuc-blue-dark: #1d4ed8;
  --bmuc-ink: #14233a;
  --bmuc-muted: #64748b;
  --bmuc-line: #dbe5f1;
  --bmuc-pale: #f3f7fc;
  max-width: 1180px;
  margin: 48px auto;
  color: var(--bmuc-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

.bmuc-guide *,
.bmuc-guide *::before,
.bmuc-guide *::after {
  box-sizing: border-box;
}

.bmuc-guide__intro {
  max-width: 790px;
  margin-bottom: 24px;
}

.bmuc-guide h2,
.bmuc-guide h3,
.bmuc-guide p {
  margin-top: 0;
}

.bmuc-guide h2 {
  margin-bottom: 10px;
  color: var(--bmuc-navy);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.bmuc-guide h3 {
  margin-bottom: 9px;
  color: var(--bmuc-navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.bmuc-guide p,
.bmuc-guide li,
.bmuc-guide td,
.bmuc-guide th {
  color: #52657d;
  font-size: 14px;
}

.bmuc-guide__intro p {
  margin-bottom: 0;
  font-size: 16px;
}

.bmuc-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bmuc-guide-card,
.bmuc-guide-section {
  border: 1px solid var(--bmuc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,43,76,.05);
}

.bmuc-guide-card {
  padding: 23px;
}

.bmuc-guide-card p {
  margin-bottom: 16px;
}

.bmuc-guide-formula {
  padding: 10px 12px;
  border-radius: 9px;
  background: #eef5ff;
  color: var(--bmuc-blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.bmuc-guide-section {
  margin-top: 20px;
  padding: 26px;
}

.bmuc-table-wrap {
  overflow-x: auto;
}

.bmuc-conversion-table {
  width: 100%;
  margin: 4px 0 0;
  border-collapse: collapse;
}

.bmuc-conversion-table th,
.bmuc-conversion-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bmuc-line);
  text-align: left;
}

.bmuc-conversion-table th {
  background: var(--bmuc-pale);
  color: var(--bmuc-navy);
  font-size: 12px;
  font-weight: 800;
}

.bmuc-conversion-table tr:last-child td {
  border-bottom: 0;
}

.bmuc-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bmuc-faq-grid details {
  border: 1px solid var(--bmuc-line);
  border-radius: 10px;
  background: #fff;
}

.bmuc-faq-grid summary {
  padding: 13px 15px;
  color: var(--bmuc-navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.bmuc-faq-grid p {
  margin: 0;
  padding: 0 15px 14px;
}

.bmuc-guide__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bmuc-guide-section--compact h2 {
  font-size: 21px;
}

.bmuc-guide-section--compact ul {
  margin: 0;
  padding-left: 20px;
}

.bmuc-guide a {
  color: var(--bmuc-blue-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .bmuc-workspace {
    grid-template-columns: 1fr;
  }

  .bmuc-reference-card > p {
    min-height: 0;
  }

  .bmuc-memory-grid,
  .bmuc-guide__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .bmuc-app {
    margin: 12px auto 30px;
  }

  .bmuc-hero {
    min-height: 185px;
    padding: 30px 22px 42px;
    border-radius: 16px 16px 0 0;
  }

  .bmuc-hero__mark {
    display: none;
  }

  .bmuc-hero h2 {
    font-size: 34px;
  }

  .bmuc-hero p {
    font-size: 15px;
  }

  .bmuc-hero__meta {
    margin-top: 13px;
  }

  .bmuc-category-wrap {
    padding: 0 12px;
  }

  .bmuc-category-tabs {
    grid-template-columns: repeat(9, 82px);
    transform: translateY(-22px);
    border-radius: 12px;
  }

  .bmuc-category {
    min-height: 62px;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .bmuc-category svg {
    width: 19px;
    height: 19px;
  }

  .bmuc-workspace {
    padding: 2px 12px 16px;
  }

  .bmuc-memory-grid {
    gap: 10px;
    padding: 0 12px 16px;
  }

  .bmuc-converter-card,
  .bmuc-reference-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .bmuc-convert-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bmuc-swap {
    width: 40px;
    height: 40px;
    margin: -1px auto;
    transform: rotate(90deg);
  }

  .bmuc-swap:hover {
    transform: rotate(270deg);
  }

  .bmuc-value-control input {
    height: 60px;
  }

  .bmuc-equals {
    margin-top: 12px;
  }

  .bmuc-action-bar {
    position: sticky;
    z-index: 3;
    bottom: 8px;
    padding: 6px;
    border: 1px solid var(--bmuc-line);
    border-radius: 11px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 9px 24px rgba(16,43,76,.12);
  }

  .bmuc-action-bar button {
    min-height: 44px;
    padding: 7px 5px;
    font-size: 10px;
  }

  .bmuc-quick-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .bmuc-format-controls {
    width: 100%;
    justify-content: space-between;
  }

  .bmuc-quick-pair {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .bmuc-footer-note {
    display: block;
    padding: 16px;
  }

  .bmuc-footer-note p {
    margin-top: 12px;
    text-align: left;
  }

  .bmuc-history-list,
  .bmuc-faq-grid,
  .bmuc-guide__bottom {
    grid-template-columns: 1fr;
  }

  .bmuc-guide {
    margin: 34px auto;
  }

  .bmuc-guide-card,
  .bmuc-guide-section {
    padding: 19px 16px;
    border-radius: 13px;
  }

  .bmuc-guide h2 {
    font-size: 25px;
  }

  .bmuc-conversion-table {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmuc-app * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
