.office-tool .prose { padding-inline: 0; }
.office-workspace { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.office-options { margin-top: 1.75rem; padding: clamp(1.25rem, 2.8vw, 2rem); border: 1px solid #cbd8d4; border-radius: 12px; background: #f9fcfa; }
.office-options-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.office-options-head h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.office-options-head p { margin: 0; color: #47605c; }
.office-controls { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.office-field { display: grid; gap: .4rem; min-width: 12rem; font-weight: 700; }
.office-field select { min-height: 2.8rem; padding: .5rem .75rem; border: 1px solid #8aa7a1; border-radius: 8px; background: #fff; color: #1d3143; font: inherit; }
.office-preview-wrap { padding: 1rem; border: 1px solid #dce6e2; border-radius: 10px; background: #fff; }
.office-preview-label { display: block; margin-bottom: .65rem; color: #345c58; font-size: .9rem; font-weight: 800; }
.office-source-preview { max-height: 19rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: #263443; }
.office-source-preview table { width: 100%; border-collapse: collapse; white-space: normal; }
.office-source-preview th, .office-source-preview td { padding: .55rem .7rem; border: 1px solid #d7e2df; text-align: left; vertical-align: top; }
.office-source-preview th { background: #edf7f3; }
.office-options .choice-note { margin: 1rem 0 0; }
.office-result-preview { display: grid; gap: 1rem; }
.office-result-preview canvas { display: block; width: min(100%, 34rem); height: auto; margin: 0 auto; border: 1px solid #d2dcda; background: #fff; box-shadow: 0 8px 20px #1c33401a; }
.office-word-preview { width: min(100%, 42rem); max-height: 28rem; overflow: auto; padding: clamp(1rem, 3vw, 2rem); margin: auto; border: 1px solid #d2dcda; background: #fff; box-shadow: 0 8px 20px #1c33401a; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.office-again { padding: .7rem 1rem; border: 1px solid #607f7a; border-radius: 8px; background: #fff; color: #1e4549; font: inherit; font-weight: 700; cursor: pointer; }
.office-again:hover, .office-again:focus-visible { background: #edf8f5; }
@media (max-width: 700px) {
  .office-options { padding: 1.1rem; }
  .office-controls, .office-field { width: 100%; }
  .office-source-preview { max-height: 16rem; }
  .office-result-preview canvas { width: 100%; }
}
