/* Project controls only: preserve the established photographic workspace. */
.project-card-actions{display:flex;align-items:stretch;gap:8px;margin-top:16px;flex-wrap:wrap;grid-column:1/-1}
.project-card-actions .btn{flex:1 1 88px;min-width:0;min-height:44px;padding:10px 12px;font-size:13px;line-height:1.25;white-space:normal;justify-content:center}
.project-card-actions .btn span{overflow-wrap:anywhere}
.project-card-actions .btn svg{width:18px;height:18px;flex-shrink:0}
.project-card-actions .btn:focus-visible,.project-action-choice:focus-visible{outline:2px solid var(--lime);outline-offset:3px;box-shadow:0 0 0 5px color-mix(in srgb,var(--lime) 12%,transparent)}
.project-grid.list-view .project-card-actions{justify-content:flex-end;margin-top:12px}
.project-grid.list-view .project-card-actions .btn{flex:0 1 150px}
.project-toolbar-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.project-sort-field{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}
.project-sort-field select{width:auto;max-width:190px;min-height:44px;font-size:13px}
.project-empty-state{grid-column:1/-1}
.project-controls-modal .modal-heading{min-width:0}
.project-controls-modal .modal-heading p,.project-controls-modal .body-copy{overflow-wrap:anywhere}
.project-controls-modal .modal-footer .btn{min-height:44px;white-space:normal;line-height:1.3}
.project-actions-menu{display:flex;flex-direction:column;gap:10px}
.project-action-choice{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:14px;width:100%;min-width:0;max-width:100%;min-height:74px;padding:14px 16px;border:1px solid transparent;border-radius:12px;background:var(--bg);color:var(--text);text-align:left;white-space:normal;transition:background .15s,border-color .15s}
.project-action-choice>span{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.project-action-choice:hover{background:var(--surface-2);border-color:var(--line)}
.project-action-choice strong{display:block;font-size:15px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.project-action-choice small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.project-action-choice>svg:first-child{color:var(--lime)}
.project-action-choice>svg:last-child{color:var(--muted)}
.project-action-danger{margin-top:8px}
.project-action-danger>svg:first-child,.project-action-danger strong{color:var(--danger,#ff8a80)}
[data-theme=light] .project-action-choice>svg:first-child{color:#171717}
[data-theme=light] .project-action-danger>svg:first-child,[data-theme=light] .project-action-danger strong{color:#b42318}
.project-confirm-name{padding:14px 16px;background:var(--bg);border-radius:10px}
.project-confirm-name>span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.project-confirm-name strong{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.project-delete-confirm .field input{width:100%;min-width:0;font-size:16px;min-height:48px}
.deleted-project-list{display:flex;flex-direction:column;gap:12px}
.deleted-project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;border-radius:12px;background:var(--bg)}
.deleted-project-copy{min-width:0}
.deleted-project-copy h3{font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.deleted-project-copy p{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.deleted-project-copy small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:8px}
.deleted-project-row>.btn{min-height:44px;flex-shrink:0;white-space:normal}
.deleted-project-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.deleted-project-pager>span{font-size:12px;color:var(--muted)}
.project-restored-message{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-radius:12px;background:var(--bg)}
.project-restored-message>svg{color:var(--lime);flex-shrink:0}
.project-restored-message>p{flex:1 1 180px;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.project-restored-message strong{display:block}
.project-restored-message .btn{min-height:44px}
@media(max-width:740px){
 .project-toolbar-controls{width:100%;gap:10px}
 .project-toolbar-controls .segmented{flex:1 1 auto}
 .project-sort-field{flex:1 1 190px;white-space:normal}
 .project-sort-field select{flex:1;max-width:none;min-width:0;font-size:14px}
 .project-card-actions{gap:7px;margin-top:13px}
 .project-card-actions .btn{flex:1 1 78px;min-height:44px;padding:9px 10px;font-size:13px}
 .project-grid.list-view .project-card-actions .btn{flex:1 1 88px}
 .project-controls-modal .modal-footer .btn{flex:1 1 130px}
 .project-action-choice{padding:13px 14px;gap:12px}
 .deleted-project-row{padding:14px;gap:12px}
}
@media(max-width:420px){
 .project-card-actions{flex-direction:column}
 .project-card-actions .btn,.project-grid.list-view .project-card-actions .btn{flex:0 0 auto;width:100%}
 .deleted-project-row{grid-template-columns:minmax(0,1fr)}
 .deleted-project-row>.btn{width:100%;justify-content:center}
}
