.office-draft { min-width:0; margin: 1rem 0; border: 1px solid #c8c8c8; border-radius: 8px; background: #fafafa; color: #333333; }
.office-draft > summary { padding: .9rem; font-weight: 600; cursor: pointer; }
.office-body { padding: 0 .9rem 1rem; }
.office-note, .office-status { font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; }
.office-status { color: #3c3c3c; }
.office-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .75rem 0; }
.office-fields label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; min-width: 0; }
.office-draft input, .office-draft select { width:100%; box-sizing:border-box; min-width:0; min-height:44px; border:1px solid #c9c9c9; border-radius:8px; padding:10px 12px; background:white; color:#2f2f2f; font-size:16px; line-height:24px; }
.office-line { min-width: 0; margin: 1rem 0; border: 1px solid #dadada; border-radius: 6px; padding: .8rem; }
.office-line legend { max-width:100%; font-weight:600; line-height:24px; overflow-wrap:anywhere; }
.office-draft button { max-width:100%; border:1px solid #3c3c3c; border-radius:8px; background:white; color:#3c3c3c; padding:10px 16px; cursor:pointer; min-height:44px; font-size:14px; line-height:22px; transition:background-color 200ms cubic-bezier(.32,.72,0,1),border-color 200ms cubic-bezier(.32,.72,0,1),transform 200ms cubic-bezier(.32,.72,0,1); }
.office-draft button:hover:not(:disabled) { background:#f1f1f1; }
.office-draft button:active:not(:disabled) { transform:scale(.98); }
.office-draft button:disabled { opacity: .5; cursor: wait; }
.office-draft input[type="checkbox"] { width: 1.1rem; height: 1.1rem; min-height: 0; margin-right: .5rem; vertical-align: middle; }
.office-price-editor { margin: 1rem 0; padding: .65rem; background: #fff; }
.office-draft :focus-visible { outline: 2px solid #3c3c3c; outline-offset: 3px; }
.office-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.office-tools select { flex: 1 1 190px; }
.office-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: white; border-left: 3px solid #3c3c3c; padding: .8rem; font: inherit; font-size: .83rem; line-height: 1.65; }
@media (max-width: 600px) { .office-fields { grid-template-columns: 1fr; } .office-tools > button { width: 100%; } }

/* The same monochrome document surface as the rest of the workbench. */
.office-draft { color: #222; background: #fafafa; border-color: #ddd; border-radius: 12px; }
.office-draft > summary { font-size: 14px; padding: 14px 16px; }
.office-body { padding: 0 16px 16px; }
.office-status { color: #555; }
.office-draft button { color: #333; border-color: #bbb; border-radius: 8px; background: #fff; }
.office-draft input,
.office-draft select { color: #222; border-color: #ccc; border-radius: 8px; }
.office-draft input[type="checkbox"] { accent-color: #222; }
.office-line { border-color: #ddd; border-radius: 8px; background: #fff; }
.office-preview { color: #333; border-left-color: #777; }
.office-draft :focus-visible { outline-color: #777; }
@media(prefers-reduced-motion:reduce) { .office-draft button { transition:none; } .office-draft button:active:not(:disabled) { transform:none; } }
