/* Keep the complete Action desk within the available width after rotation.
   This deliberately replaces the older horizontally scrolling focus strip. */
.action-desk-page {
 min-width:0;max-width:100%;
 padding-left:env(safe-area-inset-left,0px);
 padding-right:env(safe-area-inset-right,0px);
}
.action-page-header,
.action-page-header > div,
.action-page-header .page-actions,
.action-focus,
.action-filter-panel,
.action-filter-main,
.action-filter-grid,
.action-list,
.action-row,
.action-insights {
 min-width:0;
 max-width:100%;
}
.action-page-header {display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px}
.action-page-header > div:first-child {flex:1 1 300px}
.action-page-header .page-actions {flex:0 1 auto;flex-wrap:wrap;margin-top:0}
.action-page-header .page-actions > .btn {
 min-width:0;max-width:100%;min-height:48px;white-space:normal;
}
.action-page-header .page-actions > .btn > span {
 min-width:0;overflow-wrap:anywhere;
}
.action-focus {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 overflow:visible;scroll-snap-type:none;padding:2px;gap:10px;
}
.action-focus-item {
 min-width:0;max-width:100%;grid-template-columns:22px minmax(0,1fr) auto;
 white-space:normal;line-height:1.3;
}
.action-focus-item > span {min-width:0;overflow-wrap:anywhere;font-size:14px}
.action-focus-item > strong {min-width:0;max-width:8ch;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.action-filter-main {grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.action-filter-panel .field,
.action-filter-panel .search-field,
.action-filter-panel input,
.action-filter-panel select {min-width:0;max-width:100%;width:100%}
.action-more-filters .action-filter-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.action-row {grid-template-columns:minmax(0,1fr) minmax(125px,190px) minmax(140px,150px)}
.action-list {grid-template-columns:minmax(0,1fr)}
.action-open {display:grid;grid-template-columns:76px minmax(0,1fr);min-width:0;max-width:100%;white-space:normal}
.action-copy {flex:1 1 0;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
.action-owner,
.action-owner > span {min-width:0;max-width:100%}
.action-meta-text {flex:1 1 0;min-width:0;overflow-wrap:anywhere}
.action-buttons {min-width:0;gap:8px}
.action-buttons > .btn {
 min-width:0;max-width:100%;min-height:48px;white-space:normal;
}
.action-buttons > .btn > span {min-width:0;overflow-wrap:anywhere}
.action-pagination {flex-wrap:wrap}
.action-pagination > .btn {min-width:0;min-height:48px;white-space:normal}
.action-results-header > * {min-width:0;overflow-wrap:anywhere}
.action-insight {min-width:0}
.action-insight h3 {overflow-wrap:anywhere}
.action-editor .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.action-editor .field,
.action-editor input,
.action-editor select {min-width:0;max-width:100%;width:100%}

@media(max-width:1200px) {
 .action-focus {grid-template-columns:repeat(2,minmax(0,1fr))}
 .action-row {display:flex;flex-direction:column;align-items:stretch;gap:14px}
 .action-owner {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .action-owner > small {grid-column:1/-1;overflow-wrap:anywhere}
 .action-buttons {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .action-buttons > .btn {width:100%}
 .action-buttons > .btn:only-child {grid-column:1/-1}
 .action-insights {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px) {
 .action-page-header .page-actions {flex:1 1 100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);width:100%;gap:10px}
 .action-page-header .page-actions > .btn {width:100%;font-size:14px;padding:12px}
 .action-more-filters .action-filter-grid {grid-template-columns:minmax(0,1fr)}
 .action-results-header {align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:680px) {
 .action-focus {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px;margin:16px 0}
 .action-focus-item {padding:12px 10px;min-height:78px;gap:7px;grid-template-columns:18px minmax(0,1fr) auto}
 .action-focus-item > span {font-size:13px}
 .action-filter-main {grid-template-columns:minmax(0,1fr)}
 .action-filter-panel select,.action-editor select,.action-editor input {font-size:16px;min-height:48px}
 .action-open {grid-template-columns:64px minmax(0,1fr);gap:12px}
 .action-buttons > .btn {font-size:14px;padding:12px 8px}
 .action-editor .form-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px) {
 .action-focus-item {grid-template-columns:18px minmax(0,1fr)}
 .action-focus-item > strong {grid-column:1/-1;font-size:24px;max-width:none}
 .action-owner {grid-template-columns:minmax(0,1fr)}
 .action-page-header .page-actions {grid-template-columns:minmax(0,1fr)}
}

/* Device and uploaded action queues are deliberately separate. */
.action-desk-page .action-source-panel{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:20px;align-items:center;padding:20px;margin-bottom:24px}
.action-desk-page .action-source-panel .field{margin:0;min-width:0}
.action-desk-page .action-source-panel .field-hint{margin:0;line-height:1.6;overflow-wrap:anywhere}
.action-desk-page .action-source-panel select{width:100%;min-height:48px}
.action-editor .action-private-notice{padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--lime);border-radius:12px;line-height:1.6}
@media(max-width:680px){.action-desk-page .action-source-panel{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}.action-desk-page .action-source-panel .field-hint{font-size:13px}}
