.btu {
  --btu-radius: 20px;
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  color: var(--ink);
}

.btu-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.btu-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.btu-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 640px;
}

.btu-byline {
  font-size: 14px;
  color: var(--muted);
}

.btu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.btu-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.btu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--btu-radius);
  padding: 28px;
}

.btu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.btu-card-titles {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.btu-step {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-text);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btu .btu-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 2px;
}

.btu-card-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.btu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.btu-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.btu-input-wrap {
  position: relative;
  display: block;
}

.btu-input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  appearance: none;
}

select.btu-input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.btu-input-wrap .btu-input {
  padding-right: 44px;
}

.btu-input::-webkit-outer-spin-button,
.btu-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btu-input:hover {
  border-color: #d1d5db;
}

.btu-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.22);
}

.btu-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.btu-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.btu-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.btu-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.btu-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.btu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btu-chip {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btu-chip:hover {
  border-color: var(--coral);
}

.btu-chip[aria-checked="true"] {
  background: var(--coral-text);
  border-color: var(--coral-text);
  color: var(--white);
}

.btu-switch {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.btu-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.btu-switch-ui {
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.btu-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.2);
  transition: transform 0.2s ease;
}

.btu-switch input:checked + .btu-switch-ui {
  background: var(--coral-text);
}

.btu-switch input:checked + .btu-switch-ui::after {
  transform: translateX(18px);
}

.btu-switch input:focus-visible + .btu-switch-ui {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.btu-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.btu-switch-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.btu-summary {
  position: sticky;
  top: 96px;
}

.btu-summary-inner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--btu-radius);
  padding: 28px 24px 22px;
}

.btu .btu-summary-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.btu-empty p {
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 18px 0 24px;
}

.btu-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.btu-hero-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.btu-hero-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-text);
}

.btu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
}

.btu-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.btu-stats dt {
  font-size: 12px;
  color: var(--footer-text);
}

.btu-stats dd {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 2px 0 0;
}

.btu-small {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 14px;
}

.btu-article {
  max-width: 820px;
  margin: 56px auto 0;
}

.btu-article h2:first-child {
  margin-top: 0;
}

.btu-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .btu-layout {
    grid-template-columns: 1fr;
  }
  .btu-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .btu {
    padding-top: 32px;
  }
  .btu-card {
    padding: 20px 16px;
  }
  .btu-grid-2 {
    grid-template-columns: 1fr;
  }
  .btu-hero-num {
    font-size: 52px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .btu-layout {
    display: block;
  }
  .btu-summary {
    position: static;
  }
  .btu-summary-inner {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
  }
  .btu-stats div {
    background: #f9fafb;
  }
}

.btu-segment {
  display: inline-flex;
  background: var(--placeholder);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.btu-segment-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btu-segment-btn[aria-checked="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.btu-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.btu-grid-2.btu-gap-top {
  margin-top: 18px;
}

.btu-span-2 {
  grid-column: span 2;
}

.btu-hint-gap {
  display: block;
  margin-top: 10px;
}

.btu-switch + .btu-switch {
  margin-top: 10px;
}

.btu-diagram {
  margin: 0;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.btu-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .btu-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btu-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  .btu-grid-3,
  .btu-grid-4 {
    grid-template-columns: 1fr;
  }
}

.btu-chip small {
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  margin-left: 6px;
}

.btu-chip:active,
.btu-option:active,
.btu-stepper-btn:active,
.btu-room-tab:active {
  transform: translateY(1px);
}

.btu-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.btu-room-tab,
.btu-room-add,
.btu-room-remove {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btu-room-tab:hover,
.btu-room-add:hover {
  border-color: var(--coral);
}

.btu-room-tab[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btu-room-add {
  border-style: dashed;
  color: var(--coral-text);
}

.btu-room-remove {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-inline: 8px;
}

.btu-room-remove:hover {
  color: var(--coral-text);
}

.btu-name-row {
  margin-top: 0;
}

.btu-gap-top {
  margin-top: 16px;
}

.btu-field[hidden] {
  display: none;
}

.btu-area-out {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.5em;
}

.btu-area-out strong {
  color: var(--ink);
}

.btu-preset-label {
  display: block;
  margin: 18px 0 10px;
}

.btu-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.btu-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btu-option span {
  font-size: 13px;
  color: var(--muted);
}

.btu-option:hover {
  border-color: var(--coral);
}

.btu-option[aria-checked="true"] {
  border-color: var(--coral-text);
  background: var(--coral-tint);
  box-shadow: inset 0 0 0 1px var(--coral-text);
}

.btu-option[aria-checked="true"] span {
  color: var(--coral-dark);
}

.btu-stepper {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 6px;
}

.btu-stepper .btu-input {
  text-align: center;
}

.btu-stepper-btn {
  min-height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.btu-stepper-btn:hover {
  border-color: var(--coral);
}

.btu-field-switch .btu-switch {
  margin-top: 0;
  height: 100%;
}

.btu-room-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--footer-text);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.btu-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--footer-border);
}

.btu-steps li,
.btu-all-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--footer-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--footer-border);
}

.btu-steps-val {
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.btu-pick {
  border-top: 1px solid var(--footer-border);
  padding-top: 14px;
}

.btu-pick[hidden] {
  display: none;
}

.btu .btu-pick-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.btu-pick-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.btu-pick-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--footer-border);
  background: rgba(255, 255, 255, 0.04);
}

.btu-pick-opt.is-on {
  border-color: var(--coral);
  background: rgba(255, 118, 117, 0.14);
}

.btu-pick-size {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.btu-pick-sub {
  font-size: 12px;
  color: var(--footer-text);
}

.btu-pick-tag {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--coral);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.btu-pick-note,
.btu-note,
.btu-all-total {
  font-size: 14px;
  line-height: 1.55;
  color: var(--footer-text);
  margin-top: 12px;
}

.btu-note {
  background: rgba(255, 118, 117, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
}

.btu-note[hidden],
.btu-all[hidden] {
  display: none;
}

.btu-all {
  border-top: 1px solid var(--footer-border);
  margin-top: 16px;
  padding-top: 14px;
}

.btu-all-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.btu-all-list span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btu-all-total strong {
  color: var(--white);
}

.btu-stats dd {
  font-variant-numeric: tabular-nums;
}

.btu-convert-card {
  margin-top: 28px;
}

.btu-conv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.btu-conv {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--border);
  min-width: 0;
}

.btu .btu-conv-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.btu-conv-in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
}

.btu-conv-out {
  display: grid;
  gap: 6px;
  margin: 0;
}

.btu-conv-out div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
}

.btu-conv-out dt {
  font-size: 13px;
  color: var(--muted);
}

.btu-conv-out dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 1024px) {
  .btu-conv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .btu-options {
    grid-template-columns: 1fr;
  }
  .btu-option {
    min-height: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btu *,
  .btu *::before,
  .btu *::after {
    transition: none !important;
  }
}

.btu-hint,
.btu-card-sub,
.btu-pick-note,
.btu-note,
.btu-all-total,
.btu-small,
.btu-lead {
  text-wrap: pretty;
}

.btu-summary-inner :focus-visible {
  outline-color: var(--coral);
}

.btu-bar {
  position: fixed;
  left: 12px;
  right: 76px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}

.btu-bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.btu-bar-num {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btu-bar-sub {
  font-size: 12.5px;
  color: var(--footer-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btu-bar-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .btu-bar.is-on {
    display: flex;
  }
}

@media print {
  .btu-bar {
    display: none !important;
  }
}

.btu-wide-suffix .btu-input {
  padding-right: 64px;
}

.btu-article > p:first-child {
  margin-top: 0;
}
