/* Scoped to preserve the auth and commissions appearance restored by #27. */
#operatorHistoryOverlay{padding:12px;background:var(--overlay);color:var(--ink);}
#operatorHistoryOverlay .modal-box{box-sizing:border-box;width:min(100%,780px);max-height:calc(100dvh - 24px);padding:20px;overflow:auto;border-radius:16px;background:var(--surface);color:var(--ink);}
#operatorHistoryOverlay .modal-head{align-items:flex-start;gap:12px;}
#operatorHistoryOverlay h2{margin:0;font-size:21px;line-height:1.25;}
#operatorHistoryOverlay h3{font-size:17px;margin:12px 0;}
#operatorHistoryOverlay p{overflow-wrap:anywhere;}
#operatorHistoryOverlay header p{margin:6px 0 14px;color:var(--muted-strong);font-size:14px;}
#operatorHistoryOverlay .modal-close{flex:none;min-width:44px;min-height:44px;border:0;background:var(--surface-2);color:var(--ink);font-size:24px;cursor:pointer;}
#operatorHistoryOverlay .oh-tabs{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:14px;border-bottom:1px solid var(--line-strong);}
#operatorHistoryOverlay .oh-tabs button{border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);color:var(--ink);padding:9px 12px;min-height:44px;cursor:pointer;text-align:left;font-size:14px;}
#operatorHistoryOverlay .oh-tabs [aria-selected=true]{background:var(--accent-fill);color:var(--accent-on-fill);border-color:var(--accent-fill);}
#operatorHistoryOverlay .oh-entry{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
#operatorHistoryOverlay .oh-entry dl{display:grid;grid-template-columns:1fr;gap:3px;margin:12px 0;font-size:14px;line-height:1.5;}
#operatorHistoryOverlay dt{color:var(--muted-strong);}
#operatorHistoryOverlay dd{margin:0 0 9px;overflow-wrap:anywhere;min-width:0;}
#operatorHistoryOverlay .oh-note,#operatorHistoryOverlay .oh-empty{font-size:14px;color:var(--muted-strong);line-height:1.5;}
#operatorHistoryOverlay .oh-presence{font-weight:600;}
#operatorHistoryOverlay .oh-status{font-weight:400;color:var(--muted-strong);font-size:13px;}
#operatorHistoryOverlay summary{cursor:pointer;min-height:44px;display:list-item;padding-top:10px;font-size:14px;}
#operatorHistoryOverlay pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;}
#operatorHistoryOverlay .oh-error{color:var(--ink);background:var(--accent-soft);padding:12px;}
#operatorHistoryOverlay :focus-visible{outline:3px solid var(--accent);outline-offset:2px;}
.operator-history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.operator-history-actions .btn-secondary{width:auto;min-height:44px;margin:0;font-size:14px;}
@media(min-width:600px){#operatorHistoryOverlay .oh-entry dl{grid-template-columns:180px minmax(0,1fr);gap:6px 16px;}#operatorHistoryOverlay dd{margin:0;}#operatorHistoryOverlay .modal-box{padding:24px;}}

/* Client card form shares the established history palette without global overrides. */
.client-cards{color:var(--ink);font-family:var(--font-body);}
.client-cards h3{font-size:17px;margin:0 0 12px;}
.client-cards p{line-height:1.5;overflow-wrap:anywhere;}
.client-card-entry{padding:18px 0;border-bottom:1px solid var(--line);}
.client-card-entry dl{display:grid;gap:5px;margin:0 0 12px;}
.client-card-entry dt{color:var(--muted-strong);}
.client-card-entry dd{margin:0 0 8px;overflow-wrap:anywhere;}
.client-cards summary{min-height:44px;padding:10px 0;cursor:pointer;}
.client-card-notice{background:var(--accent-soft);padding:12px;color:var(--ink);}
.client-cards :focus-visible{outline:3px solid var(--accent);outline-offset:2px;}
.client-card-suggestion{font-size:16px;line-height:1.5;}
@media(min-width:600px){.client-card-entry dl{grid-template-columns:210px minmax(0,1fr);gap:8px 16px;}.client-card-entry dd{margin:0;}}

#operatorHistoryOverlay .oh-boundary{border-left:3px solid var(--accent);padding:1px 12px;margin:12px 0;}
#operatorHistoryOverlay .oh-boundary h4{margin:8px 0;font-size:15px;}
#operatorHistoryOverlay .oh-audit-event{padding:8px 0;overflow-wrap:anywhere;}
#operatorHistoryOverlay .oh-audit-event p{margin:6px 0;font-size:14px;}
