.tmc {
  --tmc-wood: #efe6dd;
  --tmc-wood-line: #e2d5c8;
  --tmc-off: #d9cfc6;
  --tmc-radius: 20px;
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  color: var(--ink);
}

.tmc-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.tmc-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.tmc-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 640px;
}

.tmc-byline {
  font-size: 14px;
  color: var(--muted);
}

.tmc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.tmc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.tmc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--tmc-radius);
  padding: 28px;
}

.tmc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.tmc-card-titles {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tmc-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;
}

.tmc .tmc-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 2px;
}

.tmc-card-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tmc-segment {
  display: inline-flex;
  background: var(--placeholder);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.tmc-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;
}

.tmc-segment-btn[aria-checked="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.tmc-rooms {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.tmc-room {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--soft);
}

.tmc-room-head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.tmc-room-head .tmc-field {
  flex: 1 1 auto;
}

.tmc-room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tmc-room-grid [hidden] {
  display: none;
}

.tmc-icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tmc-icon-btn:hover {
  color: var(--coral-text);
  border-color: var(--coral);
}

.tmc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tmc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.tmc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tmc-label-row label {
  cursor: pointer;
}

.tmc-input-wrap {
  position: relative;
  display: block;
}

.tmc-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.tmc-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;
}

.tmc-input-wrap .tmc-input {
  padding-right: 44px;
}

.tmc-input::-webkit-outer-spin-button,
.tmc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tmc-input:hover {
  border-color: #d1d5db;
}

.tmc-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.22);
}

.tmc-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.tmc-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.tmc-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.tmc-error {
  font-size: 12.5px;
  color: #b91c1c;
}

.tmc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tmc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tmc-span-3 {
  grid-column: span 3;
}

.tmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tmc-btn:hover {
  transform: translateY(-1px);
}

.tmc-btn-ghost {
  background: transparent;
  color: var(--coral-text);
  border-color: var(--coral-tint-2);
}

.tmc-btn-ghost:hover {
  background: var(--coral-tint);
  border-color: var(--coral);
}

.tmc-btn-primary {
  background: var(--coral);
  color: var(--ink);
  width: 100%;
}

.tmc-btn-primary:hover {
  background: #ff6362;
}

.tmc-btn-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  flex: 1 1 0;
}

.tmc-btn-dark:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.tmc-trim-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.tmc-elevation {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 96px;
}

.tmc-elevation svg {
  display: block;
  width: 100%;
  height: auto;
}

.tmc-el {
  fill: #e4dbd2;
  transition: fill 0.25s ease;
}

.tmc-el .tmc-el-line {
  fill: none;
  stroke: #d6c9bc;
  stroke-width: 2;
}

.tmc-el.is-on {
  fill: var(--coral);
}

.tmc-el.is-on .tmc-el-line {
  stroke: var(--coral-text);
}

.tmc-trim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tmc-trim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tmc-trim.is-on {
  border-color: var(--coral);
  background: var(--coral-tint);
}

.tmc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 40px;
  min-width: 0;
}

.tmc-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tmc-check-box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #c9c3bd;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tmc-check-box svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tmc-check input:checked + .tmc-check-box {
  background: var(--coral-text);
  border-color: var(--coral-text);
}

.tmc-check input:checked + .tmc-check-box svg {
  opacity: 1;
}

.tmc-check input:focus-visible + .tmc-check-box {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.tmc-check-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tmc-check-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tmc-check-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.tmc-price .tmc-input {
  min-height: 40px;
  font-size: 15px;
  padding: 8px 46px 8px 26px;
}

.tmc-price-cur {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}

.tmc-price .tmc-suffix {
  right: 10px;
  font-size: 12px;
}

.tmc-trim:not(.is-on) .tmc-price {
  opacity: 0.55;
}

.tmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmc-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;
}

.tmc-chip:hover {
  border-color: var(--coral);
}

.tmc-chip[aria-checked="true"] {
  background: var(--coral-text);
  border-color: var(--coral-text);
  color: var(--white);
}

.tmc-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-text);
  background: var(--coral-tint);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.tmc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --tmc-pct: 40%;
}

.tmc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--coral-text) 0, var(--coral-text) var(--tmc-pct), var(--border) var(--tmc-pct), var(--border) 100%);
}

.tmc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}

.tmc-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--coral-text);
}

.tmc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--coral-text);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.15);
}

.tmc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--coral-text);
}

.tmc-range:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 8px;
}

.tmc-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;
}

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

.tmc-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;
}

.tmc-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;
}

.tmc-switch input:checked + .tmc-switch-ui {
  background: var(--coral-text);
}

.tmc-switch input:checked + .tmc-switch-ui::after {
  transform: translateX(18px);
}

.tmc-switch input:focus-visible + .tmc-switch-ui {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.tmc-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.tmc-switch-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tmc-summary {
  position: sticky;
  top: 96px;
}

.tmc-summary-inner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--tmc-radius);
  padding: 28px 24px 22px;
}

.tmc .tmc-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;
}

.tmc-empty p {
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 18px 0 24px;
}

.tmc-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tmc-hero-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.tmc-hero-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-text);
}

.tmc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
}

.tmc-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.tmc-stats dt {
  font-size: 12px;
  color: var(--footer-text);
}

.tmc-stats dd {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 2px 0 0;
}

.tmc-rows {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border-top: 1px solid var(--footer-border);
}

.tmc-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--footer-border);
}

.tmc-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.tmc-row-top span:last-child {
  color: var(--coral);
  white-space: nowrap;
}

.tmc-row-meta {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.5;
  margin-top: 3px;
}

.tmc-note {
  font-size: 13px;
  line-height: 1.5;
  color: #fde68a;
  background: rgba(253, 230, 138, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.tmc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tmc-small {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 14px;
}

.tmc-cutlist {
  margin-top: 28px;
}

.tmc-cut-group + .tmc-cut-group {
  margin-top: 26px;
}

.tmc .tmc-cut-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tmc-cut-title span {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.tmc-board {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.tmc-board-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tmc-bar {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tmc-off);
  border: 1px solid var(--tmc-wood-line);
}

.tmc-seg {
  min-width: 0;
  background: var(--tmc-wood);
  border-right: 2px solid var(--white);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmc-seg:nth-child(odd) {
  background: #f7d9d4;
}

.tmc-seg-off {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 500;
}

.tmc-cut-more {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.tmc-article {
  max-width: 820px;
  margin: 56px auto 0;
}

.tmc-article h2:first-child {
  margin-top: 0;
}

.tmc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .tmc-layout {
    grid-template-columns: 1fr;
  }

  .tmc-summary {
    position: static;
  }

  .tmc-trim-wrap {
    grid-template-columns: 1fr;
  }

  .tmc-elevation {
    position: static;
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .tmc {
    padding-top: 32px;
  }

  .tmc-card {
    padding: 20px 16px;
  }

  .tmc-room {
    padding: 14px;
  }

  .tmc-room-head {
    flex-wrap: wrap;
  }

  .tmc-room-head .tmc-field:first-child {
    flex: 1 1 100%;
  }

  .tmc-room-head .tmc-field + .tmc-field {
    flex: 1 1 0;
  }

  .tmc-room-grid,
  .tmc-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmc-span-3 {
    grid-column: 1 / -1;
  }

  .tmc-grid-2 {
    grid-template-columns: 1fr;
  }

  .tmc-trim {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .tmc-board {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .tmc-hero-num {
    font-size: 52px;
  }
}

@media (max-width: 400px) {
  .tmc-trim {
    grid-template-columns: 1fr;
  }

  .tmc-price {
    padding-left: 32px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .skip-link,
  .tmc-form,
  .tmc-actions,
  .tmc-article {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .tmc-layout {
    display: block;
  }

  .tmc-summary {
    position: static;
  }

  .tmc-summary-inner {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
  }

  .tmc-hero-num,
  .tmc-stats dd,
  .tmc-row-top span:last-child {
    color: #111827;
  }

  .tmc-stats div {
    background: #f9fafb;
  }

  .tmc-cutlist {
    break-before: auto;
  }
}
