.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.workspace-topbar { display:flex; gap:18px; align-items:center; justify-content:space-between; margin-bottom:26px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.workspace-topbar > a { display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:13px; }
.global-search { position:relative; width: min(520px,100%); }
.global-search > img { position:absolute; left:12px; top:12px; }
.global-search > input { padding-left:38px; background:#f6f9fb; }
#global-search-results { position:absolute; top:48px; left:0; right:0; z-index:40; background:white; border:1px solid var(--line); box-shadow:0 10px 35px #18304726; border-radius:8px; max-height:65vh; overflow:auto; }
#global-search-results a, #global-search-results button { display:block; text-align:left; width:100%; padding:10px 15px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:white; white-space:normal; overflow-wrap:anywhere; }
#global-search-results a:hover, #global-search-results button:hover { background:var(--teal-soft); text-decoration:none; }
#global-search-results small { display:block; font-weight:400; font-size:12px; }
.search-count { display:block; padding:9px 15px; color:var(--muted); font-size:12px; }
.workspace-views { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:18px; }
.workspace-views button { border:0; border-radius:5px 5px 0 0; border-bottom:3px solid transparent; font-size:13px; font-weight:500; padding:10px 12px; }
.workspace-views button.selected { color:var(--navy); border-bottom-color:var(--navy); background:#f0f9f9; font-weight:650; }
.workspace-views span { padding:1px 6px; border-radius:10px; margin-left:3px; color:var(--muted); background:#eef2f4; font-size:11px; }
.workspace-views .save-view { color:var(--navy); }
.workspace-filterbar { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; margin-bottom:14px; }
.workspace-filterbar > input { width:260px; min-width:160px; flex:1 1 230px; max-width:340px; }
.workspace-filterbar label { font-size:11px; color:var(--muted); gap:2px; min-width:105px; max-width:200px; }
.workspace-filterbar select { font-size:13px; min-height:38px; padding:7px 9px; }
.workspace-filterbar button { min-height:38px; font-size:12px; }
.extra-filters { position:relative; font-size:13px; padding:7px; }
.extra-filters > div { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.workspace-display-row { margin-bottom:12px; }
.list-display-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.list-display-tools label { flex-direction:row; align-items:center; font-size:12px; color:var(--muted); }
.list-display-tools select { width:auto; min-height:34px; padding:4px 7px; font-size:12px; max-width:180px; }
.list-display-tools button { padding:5px 9px; font-size:12px; }
.workspace-display-row .actions button { font-size:12px; padding:5px 12px; }
button.selected { background:var(--teal-soft); color:var(--navy); border-color:#b5dadd; }
.workspace-table { font-size:13px; min-width:610px; }
.workspace-table th { font-size:11px; }
.workspace-table th button { font-size:11px; padding:0; border:0; background:transparent; color:inherit; white-space:nowrap; }
.workspace-table td { vertical-align:middle; max-width:270px; overflow-wrap:anywhere; padding:12px 10px; }
.workspace-table small { display:block; font-size:11px; line-height:1.5; margin-top:3px; }
.workspace-table .selection-cell { width:35px; padding-left:10px; padding-right:5px; }
.workspace-table tr.is-selected { background:#eef9f8; }
.workspace-table tr.is-current { box-shadow:inset 3px 0 var(--navy); background:#e8f5f4; }
.workspace-table .text-action { background:transparent; border:0; text-align:left; padding:0; color:var(--navy); font-size:13px; }
.workspace-table .record-actions { min-width:93px; white-space:nowrap; }
.workspace-table .record-actions button, .workspace-table .record-actions a { display:inline-block; font-size:11px; padding:5px; }
.small-tags { display:flex; gap:3px; flex-wrap:wrap; margin-top:4px; }
.small-tags .tag { font-size:10px; }
.workspace-bulk { display:flex; align-items:center; gap:9px; flex-wrap:wrap; background:#e7f5f3; padding:11px 14px; border:1px solid #bbdbd7; border-radius:7px; margin:12px 0; }
.workspace-bulk strong { font-size:13px; margin-right:8px; }
.workspace-bulk button { font-size:12px; padding:5px 10px; }
.workspace-aggregation { border:1px solid var(--line); border-radius:7px; margin:12px 0; padding:10px 14px; font-size:13px; }
.workspace-aggregation summary { color:var(--muted); cursor:pointer; }
.aggregate-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:25px; padding:16px 0 4px; }
.aggregate-grid h3 { font-size:13px; }
.aggregate-grid section > div { display:flex; justify-content:space-between; gap:10px; margin:5px 0; }
.aggregate-grid strong { color:var(--navy); }
.column-choice { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:8px 4px; border-bottom:1px solid var(--line); }
.column-choice button { padding:3px 12px; }
.stage-board { display:flex; gap:14px; overflow:auto; align-items:stretch; padding-bottom:15px; min-width:0; }
.stage-column { flex:0 0 245px; background:#f3f7f9; border-radius:8px; padding:12px; }
.stage-column h3 { font-size:13px; padding:2px 0 12px; display:flex; justify-content:space-between; border-bottom:2px solid #c9dade; }
.stage-column h3 span { color:var(--navy); }
.stage-column article { border:1px solid var(--line); border-radius:6px; background:white; padding:13px; margin-top:12px; overflow-wrap:anywhere; }
.stage-column article p { font-size:12px; margin:7px 0; }
.stage-column article button { display:block; font-size:12px; margin-top:10px; width:100%; }
.stage-empty { color:var(--muted); font-size:12px; padding:12px 0; }
.lead-workspace.has-detail { grid-template-columns:minmax(0,1fr) 340px; }
.lead-workspace .lead-detail-pane { max-height:calc(100vh - 70px); top:8px; }
.workspace-bulk .bulk-danger { color:#b42318; border-color:#f0b7b1; margin-left:auto; }
button.primary.bulk-danger { background:#b42318; border-color:#b42318; color:#fff; }
.bulk-preview { border:1px solid var(--line); border-radius:8px; padding:14px; background:#f6f9fb; }
.bulk-preview ul { margin:8px 0; padding-left:22px; overflow-wrap:anywhere; }
#trash-results td { max-width:290px; overflow-wrap:anywhere; }
@media(max-width:1200px) {
  .lead-workspace.has-detail { grid-template-columns:minmax(0,1fr); }
  .lead-workspace .lead-detail-pane { position:fixed; top:0; right:0; bottom:0; width:min(460px,100vw); z-index:30; max-height:100vh; box-shadow:-8px 0 30px #18304730; display:none; }
  .lead-workspace .lead-detail-pane.is-open { display:block; }
}
@media(max-width:700px) {
  .workspace-topbar { gap:8px; margin-bottom:20px; }
  .workspace-topbar > a { font-size:11px; }
  .workspace-views { flex-wrap:nowrap; overflow:auto; }
  .workspace-views button { flex-shrink:0; padding:9px; }
  .workspace-filterbar > input { max-width:none; flex-basis:100%; }
  .workspace-filterbar label { flex:1 1 120px; max-width:none; }
  .workspace-bulk { gap:7px; }
  .workspace-bulk strong { width:100%; }
  .content { padding:18px 14px; }
}
