.cbm-tool {
  background: #f5f7f6;
  color: #142f40;
  font: 400 1rem/1.55 "Segoe UI", Arial, sans-serif;
  padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 6vw, 80px);
}
.cbm-tool [hidden] { display: none; }
.cbm-tool *, .cbm-tool *::before, .cbm-tool *::after { box-sizing: border-box; }
.cbm-wrap { width: min(1180px, 90%); margin: auto; }
.cbm-tool h1, .cbm-tool h2, .cbm-tool p { margin: 0; }
.cbm-tool .rs-crumb { color: #4a606a; margin: 0; }
.cbm-heading { margin: clamp(18px, 3vw, 40px) 0 30px; }
.cbm-heading h1 { font-size: clamp(2.5rem, 5.1vw, 4.7rem); letter-spacing: -.055em; line-height: 1.03; font-weight: 650; }
.cbm-heading p, .cbm-help, .cbm-guide p { color: #445b66; }
.cbm-heading p { margin-top: .8em; max-width: 64ch; font-size: 1.1rem; }
.cbm-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.cbm-packages, .cbm-result { border-radius: 14px; padding: clamp(20px, 2.4vw, 36px); }
.cbm-packages { background: #fff; border: 1px solid #d6dfe1; }
.cbm-tool h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.18; letter-spacing: -.035em; }
.cbm-panel-heading, .cbm-group-end, .cbm-result dl div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 16px; }
.cbm-help { margin-top: .65em !important; font-size: .95rem; }
.cbm-tool :is(input, select, textarea, button) { font: inherit; }
.cbm-tool button { cursor: pointer; }
.cbm-tool :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #cb621c; outline-offset: 3px; }
.cbm-quiet, .cbm-copy { min-height: 40px; border: 0; background: transparent; padding: 3px 0; font-size: .88rem !important; font-weight: 620 !important; text-decoration: underline; text-underline-offset: .24em; }
.cbm-quiet { color: #30596d; }
.cbm-group { min-width: 0; margin: 26px 0 0; padding: 13px 0 0; border: none; border-top: 1px solid #d7e1e3; }
.cbm-group legend { padding-right: .85em; font-weight: 680; color: #19415a; }
.cbm-controls, .cbm-extra { display: grid; gap: 10px 14px; margin: 5px 0 12px; }
.cbm-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cbm-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cbm-group label, .cbm-manual { display: block; min-width: 0; font-size: .88rem; font-weight: 600; }
.cbm-group small { font-weight: 400; }
.cbm-group :is(input, select), .cbm-manual textarea {
  display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px;
  padding: 8px 10px; background: #fff; border: 1px solid #9fadb3; border-radius: 5px; color: #153748; font-weight: 400;
}
.cbm-group-end { color: #4c606b; font-size: .88rem; }
.cbm-add { margin-top: 18px; background: #eff4f4; color: #173b4e; border: 1px solid #bdcdd2; border-radius: 5px; padding: 10px 16px; font-weight: 620 !important; }
.cbm-result { background: #142d42; color: #fff; }
.cbm-volume { color: #ffae66; font-weight: 640; line-height: 1.1; margin: 20px 0 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cbm-volume output { font-size: clamp(2.7rem, 4.2vw, 4rem); letter-spacing: -.055em; }
.cbm-volume span { font-size: 1.4rem; }
.cbm-result dl { padding: 0; margin: 0; }
.cbm-result dl div { border-top: 1px solid #4d606f; padding: 9px 0; }
.cbm-result dd { margin: 0; font-weight: 630; }
.cbm-result p { margin-top: 14px; font-size: .94rem; color: #d5e0e7; }
.cbm-result-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.cbm-primary { background: #ffac62; border: 0; color: #152d3d; padding: 12px 18px; border-radius: 5px; font-weight: 680 !important; }
.cbm-copy { color: #fff; }
.cbm-result button:disabled { opacity: .55; cursor: default; }
.cbm-manual { margin-top: 15px; }
.cbm-result a { color: white; text-underline-offset: .2em; }
.cbm-guide { display: grid; grid-template-columns: minmax(175px, .6fr) 1.7fr; gap: clamp(18px, 3vw, 42px); align-items: center; margin: clamp(32px, 5vw, 64px) 0 0; }
.cbm-guide img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cbm-guide p { margin: 10px 0; }
.cbm-guide a { color: #804116; text-underline-offset: .2em; }
@media (max-width: 800px) { .cbm-workspace { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .cbm-wrap { width: calc(100% - 32px); }
  .cbm-packages, .cbm-result { padding: 18px; }
  .cbm-controls, .cbm-extra { gap: 8px; }
  .cbm-controls:first-of-type { grid-template-columns: 1fr 1fr; }
  .cbm-controls:first-of-type label:last-child { grid-column: 1 / -1; }
  .cbm-group :is(input,select) { font-size: 16px; padding: 7px; }
  .cbm-guide { grid-template-columns: 1fr; }
  .cbm-guide img { max-height: 165px; object-fit: cover; }
}
