/* Shared workspace components. One readable scale for desktop and mobile.
   Product-specific layouts and surface colors stay in their existing files. */
.screen[data-page="workspace"] {
  --tool-copy:14px;
  --tool-meta:12px;
  --tool-label:12px;
  --tool-heading:16px;
  --tool-title:24px;
  --tool-control:48px;
  --tool-button-radius:12px;
  --tool-compact:36px;
  --tool-compact-copy:13px;
}
.screen[data-page="workspace"] :is(.tool-workspace-title,.tool-workspace-head-title){font-size:var(--tool-title)!important;line-height:1.25!important;letter-spacing:-.025em!important;white-space:normal;overflow-wrap:anywhere}
.screen[data-page="workspace"] :is(.tool-workspace-head-desc,.tool-note,.tool-switch-copy span,.live-result-message,.live-result-meta,.live-error-copy,.live-empty-result){font-size:var(--tool-copy)!important;line-height:1.55!important;overflow-wrap:anywhere}
.screen[data-page="workspace"] :is(.tool-workspace-kicker,.tool-block-side,.tool-label,.tool-upload-meta,.tool-file-size,.tool-batch-file-item,.tool-batch-file-item b,.tool-batch-file-more,.tool-settings-meta,.tool-field-mark,.tool-status,.tool-result-stat span,.tool-result-row-meta,.tool-result-row-side,.tool-history-clear,.tool-history-meta,.tool-history-side,.tool-empty-history,.tool-account-meta,.tool-account-logo,.tool-inline-error,.contract-field-error,.live-history-pager span,.live-request-id){font-size:var(--tool-meta)!important;line-height:1.5!important;letter-spacing:normal!important;text-transform:none!important}
.screen[data-page="workspace"] .tool-label{font-size:var(--tool-label)!important;font-weight:700!important;gap:8px;flex-wrap:wrap}
.screen[data-page="workspace"] :is(.tool-block-title,.tool-result-title){font-size:var(--tool-heading)!important;line-height:1.4!important}
.screen[data-page="workspace"] :is(.tool-upload-title,.tool-settings-title,.tool-switch-copy b,.tool-file-name,.tool-result-row-title,.tool-history-title,.tool-history-main,.tool-account-title){font-size:var(--tool-copy)!important;line-height:1.5!important}
.screen[data-page="workspace"] :is(.tool-input,.tool-textarea,.tool-select,.tool-date){font-size:16px!important;line-height:1.5!important;min-height:var(--tool-control);padding:11px 13px!important;max-width:100%;box-sizing:border-box}
.screen[data-page="workspace"] .tool-textarea{height:auto}
.screen[data-page="workspace"] :is(.tool-field,.tool-grid-2>*,.tool-workspace-head-copy,.tool-result-head>*,.tool-result-row>*,.tool-history-row>*){min-width:0}
.screen[data-page="workspace"] .tool-block-head{flex-wrap:wrap;row-gap:8px}
.screen[data-page="workspace"] .tool-block-head>.tool-block-title{flex:1 1 180px;min-width:0}
.screen[data-page="workspace"] .tool-note{padding:14px 16px!important}
.screen[data-page="workspace"] :is(.tool-action,.tool-result-link,.live-download-action){font-size:var(--tool-copy)!important;line-height:1.4!important;min-height:44px;height:auto!important;padding:11px 14px;white-space:normal;overflow-wrap:anywhere;text-align:center}
.screen[data-page="workspace"] .tool-copy-actions button{font-size:14px!important;min-height:44px;line-height:1.4!important;padding:10px 14px}
.screen[data-page="workspace"] .tool-action.small{min-height:44px}
.screen[data-page="workspace"] .tool-action{min-height:var(--tool-control);display:inline-flex;align-items:center;justify-content:center;gap:8px}
.screen[data-page="workspace"] :is(.tool-action,.tool-result-link,.live-download-action){border-radius:var(--tool-button-radius)!important;box-sizing:border-box}
.screen[data-page="workspace"] :is(.tool-segment button,.tool-chip){font-size:var(--tool-copy)!important;line-height:1.4!important;min-height:44px;height:auto;white-space:normal}
.screen[data-page="workspace"] .tool-segment button{padding:10px 8px!important;min-width:0}
.screen[data-page="workspace"] .tool-button-compact{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--tool-compact)!important;min-height:var(--tool-compact)!important;font-size:var(--tool-compact-copy)!important;line-height:1.35!important;border-radius:10px!important;padding:7px 12px!important;box-sizing:border-box;white-space:nowrap;text-decoration:none}
.screen[data-page="workspace"] .tool-button-compact:not(.danger){background:#1A1D21!important;border:1px solid rgba(255,255,255,.10)!important;color:#C7CDD6!important;box-shadow:none!important}
.screen[data-page="workspace"] .tool-button-compact.is-preparing-download{color:transparent!important}
.screen[data-page="workspace"] .tool-button-compact:not(.danger):hover{background:#23262B!important;color:#FFF!important}
.screen[data-page="workspace"] .live-download-row{grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center}
.screen[data-page="workspace"] .live-download-row .tool-result-row-meta{font-size:var(--tool-meta)!important;line-height:1.5!important}
.screen[data-page="workspace"] .tool-history-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.screen[data-page="workspace"] .instagram-history-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0!important;max-width:340px}
.screen[data-page="workspace"] .instagram-history-actions .tool-button-compact{min-width:84px;flex:1}
.screen[data-page="workspace"] .tool-result-stat b{font-size:20px!important;line-height:1.3!important}
.screen[data-page="workspace"] .tool-result-stat span{margin-top:5px!important}
.screen[data-page="workspace"] .tool-history-row{align-items:start}
.screen[data-page="workspace"] .tool-history-meta{overflow-wrap:anywhere}
.screen[data-page="workspace"] .tool-table{font-size:var(--tool-copy)!important}
.screen[data-page="workspace"] .tool-table th{font-size:var(--tool-meta)!important}
.screen[data-page="workspace"] .tool-table :is(th,td){padding:11px 9px!important;line-height:1.5!important}
.screen[data-page="workspace"] .live-support-details{margin-top:14px;color:var(--text-2);font-size:var(--tool-meta);line-height:1.5}
.screen[data-page="workspace"] .live-support-details summary{cursor:pointer;min-height:32px;padding:6px 0}
.screen[data-page="workspace"] .live-support-details .live-request-id{margin-top:6px;overflow-wrap:anywhere}
.screen[data-page="workspace"] :is(.tool-action,.tool-result-link,.live-download-action,.live-support-details summary):focus-visible{outline:2px solid var(--blue-soft,#9CB7FF)!important;outline-offset:3px}
.screen[data-page="workspace"] .tool-action.is-live-busy::before{content:"";display:inline-block;flex:0 0 14px;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bh-tool-spin .8s linear infinite}
.screen[data-page="workspace"] .tool-progress i{transition:width .2s ease}
.screen[data-page="workspace"] [data-artistconnect-history-card] .tool-block-head{align-items:center;gap:12px;margin-bottom:10px}
.screen[data-page="workspace"] .artistconnect-history-intro{font-size:13px;line-height:1.55;color:var(--text-2);margin-bottom:8px;max-width:70ch}
.screen[data-page="workspace"] .artistconnect-history-item{padding:16px 0;min-width:0}
.screen[data-page="workspace"] .artistconnect-history-item+.artistconnect-history-item{border-top:1px solid var(--border)}
.screen[data-page="workspace"] .artistconnect-history-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:5px;min-width:0}
.screen[data-page="workspace"] .artistconnect-history-heading .tool-history-main{flex:1 1 220px;overflow-wrap:anywhere;font-weight:700}
.screen[data-page="workspace"] .artistconnect-history-state{font-size:12px;line-height:1.5;color:var(--text-2);margin-left:auto}
.screen[data-page="workspace"] .artistconnect-history-item .track-extra-results{margin-top:12px;border-radius:12px}
.screen[data-page="workspace"] .track-extra-results summary{font-size:14px!important;line-height:1.5!important;padding:12px 14px!important;min-height:44px}
.screen[data-page="workspace"] .track-extra-results summary span{font-size:12px!important;height:26px;min-width:26px}
.screen[data-page="workspace"] .track-extra-results>.tool-result-list{padding:0 12px 12px}
@keyframes bh-tool-spin{to{transform:rotate(360deg)}}

/* Overlays mounted outside the workspace use the same scale. */
:is(.live-picker,.live-sheet-card){font-size:14px}
:is(.live-picker-kicker,.live-picker-loading,.live-picker-item small,.live-picker-count,.live-sheet-section-head small,.live-sheet-card label,.live-cookie-upload-meta small){font-size:12px!important;line-height:1.5!important}
.live-picker-title{font-size:20px!important;line-height:1.3!important}
.live-picker-item b,.live-cookie-upload-meta span{font-size:14px!important;line-height:1.5!important}
.live-sheet-section-head b{font-size:16px!important;line-height:1.4!important}
.live-picker-search input,.live-sheet-card input:not([type="checkbox"]),.live-sheet-card select,.live-sheet-card textarea{font-size:16px!important;line-height:1.5!important;min-height:48px;box-sizing:border-box}
.live-picker-foot .tool-action{font-size:14px!important;min-height:48px;height:auto;padding:11px 14px}

/* Instagram uses the same field/result typography; preserve its custom controls. */
.screen.instagram-workspace :is(.instagram-field-hint,.instagram-monitor-note,.instagram-login-security-note,.instagram-login-message,.instagram-login-step-copy span,.instagram-proxy-measurements span,.instagram-proxy-measurements small,.instagram-export-copy span){font-size:var(--tool-meta)!important;line-height:1.5!important}
.screen.instagram-workspace :is(.instagram-export-copy b,.instagram-login-step-copy b,.instagram-monitor-side-title,.instagram-proxy-measurements b,.instagram-completion>span){font-size:var(--tool-copy)!important;line-height:1.5!important}
.screen.instagram-workspace .instagram-toolbar .instagram-tab{font-size:var(--tool-copy)!important;line-height:1.4!important}
.screen.instagram-workspace .instagram-guide-entry-copy b{font-size:var(--tool-copy)!important;line-height:1.4!important}
.screen.instagram-workspace .instagram-completion-close{padding:0!important;min-width:44px;width:44px;font-size:20px!important}
.screen.instagram-workspace .instagram-lab .tool-segment button{font-size:14px!important;min-height:44px}
.screen.instagram-workspace .instagram-connection-actions{grid-template-columns:1fr!important}
.screen.instagram-workspace .instagram-connection-actions .tool-result-link{min-height:44px;height:44px!important;padding:10px 12px!important;font-size:14px!important;line-height:1.4!important;border-radius:12px!important}

@media(max-width:767px){
  .screen[data-page="workspace"]{--tool-title:20px;--tool-compact:44px}
  .screen[data-page="workspace"] .tool-workspace-head{gap:12px}
  .screen[data-page="workspace"] .tool-result-buttons{grid-template-columns:1fr}
  .screen[data-page="workspace"] .tool-result-head{align-items:flex-start;flex-wrap:wrap}
  .screen[data-page="workspace"] .tool-inline-actions{flex-wrap:wrap}
  .screen[data-page="workspace"] .tool-inline-actions>*{flex:1 1 120px;min-width:0}
  .screen.instagram-workspace .instagram-toolbar .instagram-tab{font-size:12px!important}
  .screen[data-page="workspace"] .tool-history-row{grid-template-columns:6px minmax(0,1fr)!important;row-gap:8px!important}
  .screen[data-page="workspace"] .tool-history-side{grid-column:2;align-items:flex-start}
  .screen[data-page="workspace"] .instagram-history-actions{max-width:none;width:100%}
  .screen[data-page="workspace"] .instagram-history-actions .tool-button-compact{min-width:68px;padding-inline:8px!important}
  .screen[data-page="workspace"] .live-download-row{grid-template-columns:34px minmax(0,1fr)}
  .screen[data-page="workspace"] .live-download-row>.live-download-action{grid-column:2;justify-self:start}
  .screen[data-page="workspace"] .artistconnect-history-heading .tool-history-main{flex-basis:100%}
  .screen[data-page="workspace"] .artistconnect-history-state{margin-left:0;margin-right:auto}
}
@media(prefers-reduced-motion:reduce){
  .screen[data-page="workspace"] .tool-action.is-live-busy::before{animation:none}
  .screen[data-page="workspace"] .tool-progress i{transition:none}
}

/* CRM data actions share the workspace control scale. */
.screen[data-page="crm"] .crm-list-section-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
.screen[data-page="crm"] .crm-list-actions{display:flex;flex-wrap:wrap;gap:8px}
.screen[data-page="crm"] :is(.crm-list-actions button,.crm-selection-bar button,.crm-selection-bar select,.crm-page){min-height:44px!important;border:1px solid var(--border-2)!important;border-radius:10px!important;padding:9px 12px!important;background:#17191F!important;color:var(--text,#eef3fc)!important;font-weight:600;cursor:pointer}
.screen[data-page="crm"] :is(.crm-list-actions button,.crm-selection-bar button,.crm-selection-bar select,.crm-page){font-family:inherit!important;font-size:14px!important;line-height:1.35!important}
.screen[data-page="crm"] :is(button:disabled,select:disabled){opacity:.45;cursor:default}
.screen[data-page="crm"] .crm-selection-bar{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:12px 0 16px;padding:12px;border:1px solid var(--border);border-radius:14px;background:#141619;font-size:14px;color:var(--text,#eef3fc)}
.screen[data-page="crm"] .crm-selection-bar label{display:flex;align-items:center;gap:8px;min-height:44px}
.screen[data-page="crm"] .crm-contact-filter{margin-left:auto;flex-wrap:wrap}
.screen[data-page="crm"] .crm-artist{grid-template-columns:24px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0;padding:12px!important}
.screen[data-page="crm"] .crm-select{display:flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer}
.screen[data-page="crm"] input[type="checkbox"],.crm-data-dialog input[type="checkbox"]{width:20px;height:20px;accent-color:#7da5ff;flex:0 0 20px;cursor:pointer}
.screen[data-page="crm"] .crm-artist-open{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:88px;background:transparent;color:inherit;border:0;padding:0;text-align:left;font-family:inherit;cursor:pointer}
.screen[data-page="crm"] .crm-artist-open .crm-avatar{width:40px!important;height:40px!important;font-size:14px!important;grid-row:1/3}
.screen[data-page="crm"] .crm-artist-open .crm-artist-copy{min-width:0;padding:0!important}
.screen[data-page="crm"] .crm-artist-open .crm-artist-side{grid-column:2;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.screen[data-page="crm"] .crm-artist-name{font-size:16px!important;line-height:1.35!important;overflow-wrap:anywhere}
.screen[data-page="crm"] .crm-artist-type{font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere}
.screen[data-page="crm"] :is(.crm-contact,.crm-folder-tag,.crm-status){font-size:12px!important;line-height:1.4!important;max-width:100%;overflow-wrap:anywhere;white-space:normal!important}
.screen[data-page="crm"] :is(.crm-search input,.crm-filter,.crm-folder-main){font-size:14px!important}
.screen[data-page="crm"] :is(.crm-filter,.crm-folder-main){min-height:44px!important;height:auto!important}
.screen[data-page="crm"] .crm-contact-row{flex-wrap:wrap!important;min-width:0}
.screen[data-page="crm"] .crm-pagination{flex-wrap:wrap}
.crm-data-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--border-2,rgba(255,255,255,.13));border-radius:18px;background:#141619;color:#eef3fc;box-shadow:0 28px 90px rgba(0,0,0,.5);font-family:inherit;font-size:14px;line-height:1.5;overflow:auto}
.crm-data-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.crm-data-dialog .crm-data-head{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;margin-bottom:16px}
.crm-data-dialog h2{font-size:20px;line-height:1.3;margin:0 0 6px;font-weight:650}
.crm-data-dialog button,.crm-data-dialog select{min-height:44px;max-width:100%;padding:10px 14px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#1b1d23;color:inherit;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;white-space:normal}
.crm-data-dialog select{width:100%;font-size:16px}
.crm-data-dialog .crm-data-head>button{flex:0 0 44px;padding:8px;font-size:22px}
.crm-data-dialog :is(button:disabled,input:disabled){opacity:.45;cursor:default}
.crm-data-dialog .crm-data-field{display:grid;gap:8px;margin-bottom:14px}
.crm-data-dialog .crm-data-note{font-size:13px;line-height:1.5;color:#a1acbd;margin:8px 0;overflow-wrap:anywhere}
.crm-data-dialog .crm-data-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:14px}
.crm-data-dialog .crm-data-body{min-height:0;overflow:auto;max-height:45dvh}
.crm-data-dialog .crm-preview-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding-bottom:12px}
.crm-data-dialog .crm-preview-toolbar label{display:flex;align-items:center;gap:8px;min-height:44px}
.crm-data-dialog .crm-preview-row{display:flex;align-items:flex-start;gap:10px;border-top:1px solid rgba(255,255,255,.08);padding:12px 0;cursor:pointer}
.crm-data-dialog .crm-preview-row>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.crm-data-dialog .crm-preview-row b{font-size:15px}
.crm-data-dialog .crm-preview-row small{font-size:12px;line-height:1.5;color:#a1acbd}
.crm-data-dialog .crm-preview-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.crm-data-dialog .crm-import-batch{display:grid;gap:6px;width:100%;text-align:left;margin:8px 0;overflow-wrap:anywhere}
.crm-data-dialog .crm-import-batch span{font-size:13px;color:#a1acbd}
.crm-data-dialog[aria-busy="true"]::after{content:"";display:block;width:18px;height:18px;margin:12px auto 0;border:2px solid #727a88;border-top-color:transparent;border-radius:50%;animation:bh-tool-spin .8s linear infinite}
.screen[data-page="crm"] :focus-visible,.crm-data-dialog :focus-visible{outline:2px solid #7da5ff;outline-offset:3px}
@media(max-width:767px){
  .screen[data-page="crm"] .crm-list-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .screen[data-page="crm"] .crm-selection-bar{gap:8px 12px}
  .screen[data-page="crm"] .crm-contact-filter{margin-left:0;width:100%}
  .screen[data-page="crm"] .crm-contact-filter select{flex:1;min-width:0}
  .screen[data-page="crm"] .crm-pagination{gap:6px}
  .screen[data-page="crm"] .crm-page{padding:8px!important;min-width:34px!important;font-size:13px!important}
  .crm-data-dialog{padding:16px}
}
@media(prefers-reduced-motion:reduce){.crm-data-dialog[aria-busy="true"]::after{animation:none}}

.screen[data-page="crm"] .crm-filters{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.screen[data-page="crm"] #crmSearch,.screen[data-page="crm"] #crmContactFilter{font-size:16px!important;min-height:44px!important}

.screen[data-page="crm"] .crm-tag-filter{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0}
.screen[data-page="crm"] #crmTagFilter{min-height:44px;font-family:inherit;font-size:16px;border-radius:10px;border:1px solid var(--border-2);padding:9px 12px;background:#17191F;color:inherit;max-width:100%;min-width:0}
.screen[data-page="crm"] .crm-tag{font-size:12px;line-height:1.4;color:#b4c6ea;padding:4px 7px;border:1px solid rgba(125,165,255,.2);border-radius:7px;max-width:100%;overflow-wrap:anywhere}
.crm-data-dialog .crm-bulk-fields,.crm-data-dialog .crm-mapping-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.crm-data-dialog input:not([type="checkbox"]){box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#1b1d23;color:inherit;font-family:inherit;font-size:16px}
.crm-data-dialog .crm-mapping-fields{max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding-right:6px}
.crm-data-dialog .crm-mapping-options .crm-data-field,.crm-data-dialog .crm-mapping-fields .crm-data-field{min-width:0}
.crm-data-dialog .crm-mapping-fields select{min-width:0;text-overflow:ellipsis}
.crm-data-dialog .crm-mapping-samples{margin-top:12px;font-size:13px}
.crm-data-dialog .crm-mapping-samples summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.crm-data-dialog .crm-mapping-scroll{max-width:100%;overflow:auto;max-height:180px}
.crm-data-dialog table{border-collapse:collapse;font-size:12px;line-height:1.4}
.crm-data-dialog :is(td,th){padding:8px;border:1px solid rgba(255,255,255,.1);min-width:100px;max-width:240px;overflow-wrap:anywhere;text-align:left}
@media(max-width:767px){.screen[data-page="crm"] .crm-tag-filter{width:100%}.screen[data-page="crm"] #crmTagFilter{flex:1}.crm-data-dialog .crm-bulk-fields,.crm-data-dialog .crm-mapping-options,.crm-data-dialog .crm-mapping-fields{grid-template-columns:minmax(0,1fr)}}

/* Folder deletion shares the existing CRM controls and neutral surfaces. */
.screen[data-page="crm"] .crm-folders-head{flex-wrap:wrap}
.screen[data-page="crm"] .crm-folders-side{flex-wrap:wrap;justify-content:flex-end}
.screen[data-page="crm"] .crm-folders-manage{height:auto!important;min-height:44px!important;padding:9px 12px!important;font-size:14px!important;line-height:1.35!important;border-radius:10px!important;background:#17191f!important;color:var(--text,#eef3fc)!important}
.screen[data-page="crm"] #crmFolderList .crm-folder-delete{display:grid!important;width:40px;min-height:44px;height:auto;align-self:stretch;flex:0 0 40px}
.crm-data-dialog .crm-delete-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin:14px 0;border:1px solid var(--border-2,rgba(255,255,255,.13));border-radius:12px;background:#1b1d23}
.crm-data-dialog .crm-delete-summary span{font-size:14px;line-height:1.5;color:#a1acbd}
.crm-data-dialog .crm-delete-summary strong{font-size:26px;line-height:1.2;font-weight:650;white-space:nowrap}
.crm-data-dialog .crm-delete-folder-name{font-size:16px;font-weight:600;overflow-wrap:anywhere;margin:0 0 12px}
.crm-data-dialog .crm-danger-button{color:#f0a5ac;border-color:rgba(240,165,172,.3);background:rgba(190,64,80,.12)}
.crm-data-dialog .crm-delete-shortcut{padding-top:16px;margin-top:16px;border-top:1px solid var(--border,rgba(255,255,255,.08))}
.crm-data-dialog .crm-delete-shortcut button{width:100%}
.crm-data-dialog .crm-delete-error{color:#f0a5ac}
@media(max-width:420px){.crm-data-dialog[data-mode="deletion"] .crm-data-actions{grid-template-columns:minmax(0,1fr)}}

/* Personal collection filters reuse the existing Instagram advanced card. */
.screen[data-page="workspace"] .instagram-exclusions .tool-textarea{min-height:120px;font-size:16px!important;line-height:1.5;resize:vertical}
.screen[data-page="workspace"] .instagram-filter-check{display:flex;gap:12px;align-items:flex-start;min-width:0;cursor:pointer}
.screen[data-page="workspace"] .instagram-filter-check>input{width:20px;height:20px;flex:0 0 20px;margin:3px 0 0;accent-color:#7da5ff}
.screen[data-page="workspace"] .instagram-filter-check>span{display:grid;gap:6px;min-width:0}
.screen[data-page="workspace"] .instagram-filter-check b{font-size:14px;line-height:1.4;font-weight:600}
.screen[data-page="workspace"] .instagram-filter-check small{font-size:13px;line-height:1.5;color:var(--text-muted,#a1acbd)}
.screen[data-page="workspace"] .instagram-filter-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.screen[data-page="workspace"] [data-instagram-filter-feedback].is-error{color:#f0a5ac}
@media(max-width:767px){.screen[data-page="workspace"] .instagram-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.screen[data-page="workspace"] .instagram-filter-actions button{width:100%;height:auto!important;min-height:44px!important;white-space:normal!important}}

/* Saved-session check follows the same Instagram form controls. */
.screen[data-page="workspace"] .instagram-login-session{width:100%;min-height:44px;margin-bottom:10px;white-space:normal}
.screen[data-page="workspace"] .instagram-login-session+.instagram-field-hint{margin-bottom:18px}

.screen[data-page="workspace"] .instagram-login-dialog .instagram-editor-actions .tool-action{font-size:14px!important;line-height:1.35!important;white-space:normal!important}
