/* Contract worksheet follows the existing Workspace paper and control tokens. */
.cf-root,.cf-review{max-width:100%;color:var(--ink);overflow-wrap:anywhere}
.cf-root h3,.cf-review h3{margin:0 0 8px;font-size:18px}
.cf-root h4{margin:12px 0 6px;font-size:14px}
.cf-root p,.cf-review p{margin:6px 0 10px}
.cf-details{margin:10px 0;border-top:1px solid var(--line);padding-top:8px}
.cf-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none;padding:10px 0;font-weight:600}
.cf-details>summary::-webkit-details-marker{display:none}
.cf-details>summary::before{content:"+";width:12px;flex:0 0 12px;font-size:18px;font-weight:400;line-height:1}
.cf-details[open]>summary::before{content:"−"}
.cf-form fieldset{border:1px solid var(--line);border-radius:var(--radius);padding:12px;margin:12px 0;min-width:0}
.cf-form legend{font-weight:600;padding:0 5px}
.cf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.cf-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin-bottom:10px}
.cf-field label{font-size:13px;font-weight:500}
.cf-field input,.cf-field select,.cf-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--line-2,var(--line));border-radius:6px;padding:9px;background:var(--surface);color:var(--ink);font:inherit}
.cf-field textarea{resize:vertical;line-height:1.5}
.cf-root button,.cf-review button{min-height:44px;max-width:100%;white-space:normal;margin:4px 8px 4px 0}
.cf-root button:focus-visible,.cf-review button:focus-visible,.cf-field :focus-visible,.cf-choice input:focus-visible,.cf-details>summary:focus-visible,.cf-scroll:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cf-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;margin:10px 0}
.cf-values dt,.cf-values dd{margin:0;padding-bottom:6px;border-bottom:1px solid var(--line)}
.cf-values dd{text-align:right;font-variant-numeric:tabular-nums}
.cf-review blockquote{margin:8px 0;padding-left:12px;border-left:2px solid var(--line-2,var(--line))}
.cf-review pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.cf-scroll{max-width:100%;overflow-x:auto}
.cf-scroll table{border-collapse:collapse;min-width:640px;width:100%;font-variant-numeric:tabular-nums}
.cf-scroll th,.cf-scroll td{text-align:left;padding:8px;border-bottom:1px solid var(--line);vertical-align:top;white-space:nowrap;overflow-wrap:normal}
.cf-scroll-hint{display:none}
.cf-status[role=alert]{border-left:3px solid currentColor;padding-left:10px}
.cf-history-row,.cf-scenario-result{padding:10px 0;border-bottom:1px solid var(--line)}
.cf-delete{margin-top:16px}
.cf-decision-evidence{border:1px solid var(--line);border-radius:6px;padding:10px;margin:12px 0;min-width:0}
.cf-decision-evidence legend{font-weight:600;padding:0 5px}
.cf-choice{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;padding:7px 0;overflow-wrap:anywhere}
.cf-choice input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:var(--navy)}
.cf-decision-record{border-top:1px solid var(--line);padding:8px 0}
@media(max-width:600px){.cf-grid{grid-template-columns:minmax(0,1fr)}.cf-form fieldset{padding:10px}.cf-values{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cf-scroll-hint{display:block}}
/* The approved narrow Tools layout places this menu beside the left edge. Keep its choices in the disclosure. */
@media(max-width:899px){body.fd-design .fd-notice-tools-body .fx-menu{position:static;max-width:100%;margin-top:6px}}
