.staff-identity{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.staff-identity span{flex:1;color:var(--muted)}.staff-login{display:flex;flex-direction:column;gap:20px;max-width:400px;margin:28px 0}.staff-login label,.staff-fields label,.staff-acl label{display:flex;flex-direction:column;gap:8px;font-size:13px;min-width:0}.staff-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.staff-fields button{align-self:end;justify-self:start}.staff-acl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}#parityView .table-wrap{margin:20px 0}#parityView .table-wrap table{min-width:700px}#parityView td{max-width:450px;white-space:pre-wrap;overflow-wrap:anywhere}#parityView h3{font-size:16px;margin:28px 0 14px}#staffView .table-wrap{margin:20px 0}#staffView details{margin:22px 0}#staffView summary{cursor:pointer;color:var(--teal)}@media(max-width:600px){.staff-fields,.staff-acl{grid-template-columns:1fr}.staff-identity span{flex-basis:100%}}@media print{#staffView,#parityView,.staff-identity{display:none!important}}
.app-shell:has(#staffView:not([hidden]) .staff-login) .sidebar{display:none}.app-shell:has(#staffView:not([hidden]) .staff-login){grid-template-columns:1fr}

/* Field connection states: text carries meaning independently of color. */
.connection-field-label{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px}
.connection-field-badge{display:inline-block;flex:0 0 auto;max-width:100%;padding:2px 6px;border:1px solid #cbd5df;border-radius:4px;font-size:.75rem;font-weight:500;line-height:1.4;letter-spacing:normal;white-space:normal}
.connection-field-badge[data-state="automatic"]{color:#075b50;background:#eaf6f3;border-color:#aecfc7}
.connection-field-badge[data-state="manual"]{color:#475465;background:#f0f3f6;border-color:#cbd5df}
.connection-field-badge[data-state="needed"]{color:#805000;background:#fff4dd;border-color:#ddc48c}
.connection-field-note{display:block;max-width:72ch;color:#425265;font-size:.75rem;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.connection-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Source tooltip */
.connection-field-badge[data-state="automatic"]{cursor:help;touch-action:manipulation;min-height:24px;padding:3px 7px}
.connection-field-badge[data-state="automatic"]:focus-visible{outline:2px solid #087d74;outline-offset:3px}
.connection-field-note.connection-source-tooltip{position:fixed;inset:auto;margin:0;width:max-content;max-width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;box-sizing:border-box;padding:10px 12px;background:#fff;color:#253c48;border:1px solid #8fa8b2;border-radius:6px;box-shadow:0 5px 15px #20374326;font-size:.8125rem;font-weight:400;line-height:1.6;z-index:1100;white-space:normal;overflow-wrap:anywhere}
.connection-field-note.connection-source-tooltip[hidden]{display:none}
@media print{.connection-source-tooltip{display:none!important}}
