.calculator-intro { margin-bottom: 14px; }
.calculator-intro h1 { margin: 0 0 6px; font-size: clamp(20px, 4vw, 25px); }
.calculator-intro p { margin: 5px 0 9px; }
.content-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
html[data-stage]:not([data-stage="upload"]) .calculator-intro { display: none; }
#samplePreviewRestored { scroll-margin-top: 110px; }
.demo-body { padding: 0 16px 16px; }
.demo-body p { margin: 6px 0 12px; }
.demo-body label { display: grid; gap: 5px; max-width: 380px; }
.demo-body label + label { margin-top: 10px; }
.demo-comparison:not(:empty) { border-inline-start: 3px solid var(--accent); padding: 4px 12px; margin-block: 12px; }
.demo-comparison p { margin: 4px 0; }
.demo-body select { min-width: 0; width: 100%; }
.demo-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-metrics div { border: 1px solid var(--border); padding: 10px; border-radius: 8px; }
.demo-metrics dt { color: var(--muted); }
.demo-metrics dd { margin: 2px 0 0; font-weight: 700; }
.demo-calendar { width: 100%; table-layout: fixed; border-collapse: collapse; }
.demo-calendar caption { text-align: left; padding: 6px 0; }
.demo-calendar :is(th, td) { border: 1px solid var(--border); padding: 5px 1px; text-align: center; }
.demo-calendar td span, .demo-calendar td strong { display: block; }
.demo-calendar [data-shift="주"] { background: var(--day-bg); color: var(--day-text); }
.demo-calendar [data-shift="야"] { background: var(--night-bg); color: var(--night-text); }
.demo-calendar [data-shift="휴"] { background: var(--surface-2); }
.source-list { padding-left: 1.4rem; }
.source-list li { margin-block: 0.45rem; }
.guide-table { overflow-x: auto; }
.guide-table table { width: 100%; border-collapse: collapse; }
.guide-table :is(th, td) { padding: 0.55rem; border: 1px solid var(--border); text-align: left; }
.guide-table > table { min-width: 650px; margin: 0; }
.guide-table :is(th, td) { word-break: keep-all; }
.guide-table td { white-space: nowrap; }
.guide-table-hint { display: none; }
@media (max-width: 700px) {
  .guide-table-hint { display: block; }
}
:root body.unified-flow #samplePreviewRestored > summary::after {
  content: "" !important;
  font-size: 0 !important;
  width: 7px !important;
  height: 7px !important;
  border: 0 !important;
  border-right: 2px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  transform: translateY(-50%) rotate(45deg) !important;
}
:root body.unified-flow #samplePreviewRestored[open] > summary::after {
  transform: translateY(-50%) rotate(225deg) !important;
}

.demo-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
