/* Scoped to the standalone workspace so Staff shell controls keep their layout. */
#teamdash[data-team-focus="td-tenancy-builder"] > .panel:not(#td-tenancy-builder){display:none!important}
#tenancyBuilderBack{min-height:44px}
.tb-person-details{border:1px solid var(--line,#e5ebe3);border-radius:8px;padding:16px;margin:18px 0}
.tb-person-details legend{font-weight:700;padding:0 6px;color:var(--forest,#123d2a)}
.tb-person-details label,.tb-form-grid>label{font-weight:600}
.tb-document{display:block;width:100%;height:65vh;min-height:360px;max-height:820px;border:1px solid var(--line,#e5ebe3);background:#fff;border-radius:8px;margin:18px 0}
.tb-fingerprint{font-size:13px;color:var(--mute,#5a655e);overflow-wrap:anywhere}
.tb-source-document{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0;border-top:1px solid var(--line,#e5ebe3)}
.tb-source-document>b,.tb-source-document>span{flex-basis:100%}
.tb-workspace [data-tb-file-status]{display:block;font-size:13px;font-weight:400;margin-top:6px}
@media(max-width:700px){#teamdash[data-team-focus="td-tenancy-builder"]>#tdnav{display:none!important}.tb-person-details{padding:12px}.tb-source-document .tb-button{width:100%}.tb-document{height:60vh;min-height:320px}}
.tb-workspace{max-width:1060px;margin:0 auto;min-width:0;padding:4px 0 28px;color:var(--ink,#15201a);font-family:Inter,system-ui,sans-serif;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.tb-workspace *{box-sizing:border-box;min-width:0}
.tb-workspace h2,.tb-workspace h3,.tb-workspace h4{font-family:Montserrat,sans-serif;letter-spacing:-.02em;color:var(--forest,#123d2a);line-height:1.25;margin:0 0 12px}
.tb-workspace h2{font-size:25px}
.tb-workspace h3{font-size:18px}
.tb-workspace h4{font-size:15px;margin-top:22px}
.tb-workspace p{margin:0 0 14px}
.tb-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.tb-heading p,.tb-muted{color:var(--mute,#5a655e)}
.tb-selectors{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:22px}
.tb-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0 0 22px}
.tb-steps li{display:flex;align-items:center;gap:8px;padding:10px 8px;border-bottom:2px solid var(--line,#e5ebe3);color:var(--mute,#5a655e);font-size:13px;font-weight:600}
.tb-steps li[aria-current=step]{border-color:#123d2a;color:#123d2a;font-weight:800}
.tb-steps span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:50%;background:var(--mint,#f1f7ef);font-size:13px}
.tb-steps li[aria-current=step] span{background:#123d2a;color:#fff}
.tb-applicants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tb-mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.tb-mode-choices [aria-pressed=true]{background:#123d2a;border-color:#123d2a;color:#fff}
.tb-applicant{padding:16px;border:1px solid var(--line,#e5ebe3);border-radius:10px;background:#fff}
.tb-applicant.tb-applicant-selected{border:2px solid #286345;padding:15px;background:#f1f7f2}
.tb-applicant h4{margin:0 0 8px;font-size:16px}
.tb-applicant p{margin:0 0 10px}
.tb-applicant .tb-status{display:block;width:fit-content;margin-bottom:14px}
.tb-applicant .tb-button{width:100%}
.tb-applicant h5{font-size:13px;margin:18px 0 8px;color:#123d2a}
.tb-person-choice{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:8px 0;padding:12px 10px;border:1px solid var(--line,#e5ebe3);border-radius:8px;cursor:pointer;font-weight:400}
.tb-person-choice input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:#123d2a}
.tb-person-choice>span{flex:1}
.tb-person-choice small{display:block;font-size:13px;color:var(--mute,#5a655e);margin-top:4px}
.tb-person-selected{background:var(--mint,#f1f7ef);border-color:var(--forest,#123d2a)}
.tb-readiness{font-weight:600}
.tb-selected-household{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--nzr-status-success-border,#99bda6);border-radius:10px;background:var(--mint,#f1f7ef);margin-bottom:20px}
.tb-selected-household span{display:block;color:var(--mute,#5a655e);margin-top:4px}
.tb-selected-household .tb-button{flex:none}
.tb-form-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:20px}
.tb-review-details{margin:0;display:grid;gap:18px}
.tb-review-details dt{font-weight:700;margin-bottom:5px}
.tb-review-details dd{margin:0;white-space:pre-wrap}
.tb-selectors label,.tb-field,.tb-delivery label{display:block;font-weight:700}
.tb-workspace select,.tb-workspace input:not([type=checkbox]),.tb-workspace textarea{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid var(--line,#e5ebe3);background:#fff;color:var(--ink,#15201a);padding:11px 12px;border-radius:8px;font:inherit;font-size:16px;font-weight:400;margin-top:6px}
.tb-workspace textarea{resize:vertical;line-height:1.5}
.tb-workspace select:focus-visible,.tb-workspace input:focus-visible,.tb-workspace textarea:focus-visible,.tb-button:focus-visible{outline:3px solid var(--forest,#123d2a);outline-offset:3px}
.tb-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 15px;border:1px solid var(--line,#e5ebe3);border-radius:8px;font:inherit;font-family:Montserrat,sans-serif;font-weight:700;font-size:14px;line-height:1.35;text-align:center;text-decoration:none;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.tb-button-primary{background:var(--forest,#123d2a);border-color:var(--forest,#123d2a);color:#fff}
.tb-button-secondary{background:#fff;color:var(--forest,#123d2a)}
.tb-button:hover:not(:disabled){filter:brightness(.96)}
.tb-workspace :disabled{opacity:.62;cursor:not-allowed}
.tb-card,.tb-empty{padding:22px;border:1px solid var(--line,#e5ebe3);border-radius:12px;background:#fff;margin:0 0 20px}
.tb-empty{background:var(--mint,#f1f7ef)}
.tb-empty p:last-child,.tb-card>p:last-child{margin-bottom:0}
.tb-notice{border:1px solid var(--nzr-status-success-border,#99bda6);border-left:4px solid var(--forest,#123d2a);border-radius:8px;background:var(--mint,#f1f7ef);padding:14px 16px;margin:0 0 18px;color:var(--nzr-status-success-text,#26503b)}
.tb-notice-error{border-color:var(--nzr-status-error-border,#fee2e2);border-left-color:var(--nzr-status-error-text,#81251e);background:var(--nzr-status-error-surface,#fef2f2);color:var(--nzr-status-error-text,#81251e)}
.tb-notice ul{padding-left:20px;margin:10px 0}
.tb-notice p:last-child{margin-bottom:0}
.tb-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}
.tb-facts dt{color:var(--mute,#5a655e);font-size:13px;margin:0 0 4px}
.tb-facts dd{font-weight:700;margin:0}
.tb-copy{white-space:pre-wrap}
.tb-tenants,.tb-party-list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px}
.tb-tenants li,.tb-party-list li{background:var(--mint,#f1f7ef);border-radius:8px;padding:12px}
.tb-tenants span,.tb-party-list span,.tb-delivery>span{display:block;color:var(--mute,#5a655e);margin-top:3px}
.tb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tb-field-wide{grid-column:1/-1}
.tb-draft-status{color:var(--mute,#5a655e);font-size:13px}
.tb-confirm{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:14px 0;margin-top:12px;cursor:pointer;font-weight:600}
.tb-confirm input{width:24px;height:24px;flex:0 0 24px;margin:1px 0 0;accent-color:#123d2a}
.tb-confirm span{flex:1}
.tb-agreements{display:grid;gap:16px}
.tb-agreement{border-top:1px solid var(--line,#e5ebe3);padding-top:16px}
.tb-agreement-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:6px}
.tb-status{display:inline-block;padding:4px 9px;border-radius:6px;background:var(--nzr-status-success-surface,#f1f6f3);font-size:13px;font-weight:700;color:var(--nzr-status-success-text,#26503b)}
.tb-deliveries{margin-bottom:20px}
.tb-delivery{padding:16px;background:var(--nzr-status-error-surface,#fef2f2);border:1px solid var(--nzr-status-error-border,#fee2e2);border-radius:10px;margin:12px 0}
.tb-delivery label{margin:12px 0}
.tb-delivery input[readonly]{font-size:13px;background:#fff}
@media(max-width:700px){.tb-workspace{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.tb-selectors,.tb-form-grid,.tb-applicants,.tb-mode-choices{grid-template-columns:1fr}.tb-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-card,.tb-empty{padding:16px}.tb-heading{gap:12px}.tb-heading h2{font-size:22px}.tb-heading>.tb-button{flex:none}.tb-workspace select,.tb-workspace input:not([type=checkbox]),.tb-workspace textarea{font-size:16px}.tb-button-primary{width:100%}.tb-confirm{font-size:13px}.tb-selected-household{align-items:flex-start;flex-direction:column}.tb-steps li{align-items:flex-start;flex-direction:column;font-size:13px;padding:8px 3px;gap:5px}.tb-form-actions>.tb-button{width:100%}}
@media(max-width:360px){.tb-heading{flex-direction:column}.tb-heading>.tb-button{align-self:flex-start}.tb-card,.tb-empty{padding:13px}.tb-facts{gap:14px 10px}.tb-notice{padding:12px}.tb-selectors{gap:12px}.tb-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.tb-steps li{flex-direction:row;align-items:center;overflow-wrap:normal}}
/* Additional terms (2026-10-26). One tappable row per optional term; the
   standard terms read in a disclosure; every control 44px. */
.tb-clauses{border-top:1px solid var(--line,#E5EBE3);margin-top:18px;padding-top:14px}
.tb-clauses h5{margin:16px 0 8px;font-size:13px}
.tb-clause-read summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700}
.tb-clause-read ol{margin:4px 0 12px 18px;padding:0;display:grid;gap:8px;font-size:12.5px;line-height:1.5}
.tb-clause-option{border:1px solid var(--line,#E5EBE3);border-radius:10px;padding:10px 12px;margin:0 0 8px;min-width:0}
.tb-check{display:flex;gap:10px;align-items:flex-start;min-height:44px;cursor:pointer;font-weight:400}
.tb-check input{width:22px;height:22px;margin-top:2px;flex:none}
.tb-hint{display:block;font-weight:400;font-size:12px;line-height:1.45;color:#5A655E;margin-top:3px}
.tb-blank{display:inline;padding:0 3px;border-bottom:1px solid currentColor;font-style:italic}
/* Unit titles (2026-10-28). A term the property requires reads as required,
   not as a greyed-out choice, and the review says the rules are attached. */
.tb-required-note{display:inline-block;margin-top:4px;font-size:13px;font-weight:700;color:var(--forest,#123d2a)}
.tb-clause-option input[data-tb-required-clause]{opacity:1}
.tb-unit-title{padding:12px 14px;border-radius:8px;background:var(--mint,#f1f7ef);font-weight:600}
/* Responsibilities (William, 2026-11-13: "in its own section"). One card per
   row; every control 44px and thumb-reachable; nothing revealed on hover.
   The staff note and every hint are text a person has to read, so 13px or
   more. */
.tb-resp{border-top:1px solid var(--line,#E5EBE3);margin-top:18px;padding-top:14px}
.tb-resp-note{padding:12px 14px;border-radius:8px;border-left:4px solid var(--forest,#123d2a);background:var(--mint,#f1f7ef);font-size:14px;line-height:1.5}
.tb-resp-hint,.tb-resp-status,.tb-resp-review{font-size:13px;line-height:1.5;color:var(--mute,#5a655e)}
.tb-resp-status:empty{display:none}
.tb-resp-status:focus-visible,.tb-resp-ask p:focus-visible{outline:3px solid var(--forest,#123d2a);outline-offset:3px}
.tb-resp-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;border:1px solid var(--line,#E5EBE3);border-radius:10px;padding:12px;margin:0 0 10px;min-width:0}
.tb-resp-row legend{padding:0 6px;font-size:13px;font-weight:700;color:var(--forest,#123d2a)}
.tb-resp-row .tb-resp-notes,.tb-resp-row-actions{grid-column:1/-1}
.tb-resp-row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tb-resp-row-actions .tb-button{padding:10px 6px}
.tb-resp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.tb-resp-ask{border:1px solid var(--forest,#123d2a);border-radius:10px;padding:14px;margin:12px 0;background:#fff}
.tb-resp-ask p{margin:0}
.tb-resp-error .tb-button{margin-top:10px}
@media(max-width:700px){.tb-resp-row{grid-template-columns:1fr}.tb-resp-actions>.tb-button,.tb-resp-error .tb-button{width:100%}}
