.workflow-panel,.workflow-set { padding: 18px 22px; border: 1px solid var(--border, #d5d8d0); border-radius: 14px; margin: 12px 0; background: var(--surface, #fff); color: var(--text, #262922); }
.workflow-panel summary { cursor: pointer; font-weight: 750; }
.workflow-panel p,.workflow-set p { font-size: 12px; line-height: 1.65; margin: 10px 0; }
.workflow-actions { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 12px 0; }
.workflow-actions button { min-height: 36px; }
.workflow-actions a { font-size: 12px; text-decoration: underline; }
.workflow-set-heading { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.workflow-set-heading span { font-size: 11px; opacity: .7; }
.workflow-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.workflow-view-tabs button { border: 1px solid #adb5a6; background: transparent; color: inherit; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 12px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.workflow-view-tabs button[aria-pressed="true"] { background: #26392a; color: #fff; border-color: #26392a; }
.workflow-panel select,.workflow-copy select,.workflow-copy textarea,.workflow-set input { font: inherit; font-size: 13px; border: 1px solid #a9b3a8; border-radius: 8px; background: transparent; color: inherit; padding: 8px; max-width: 100%; }
.workflow-copy select,.workflow-copy textarea { width: 100%; margin: 8px 0 12px; }
.workflow-copy label,.workflow-set label { font-size: 11px; display: block; margin: 8px 0; }
.workflow-copy pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; padding: 10px; border: 1px solid #adb5a6; border-radius: 8px; }
.workflow-project-list { list-style: none; padding: 0; }
.workflow-project-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid #adb5a640; padding: 10px 0; font-size: 12px; }
.workflow-project-list button { flex-shrink: 0; }
.workflow-project-list span { overflow-wrap: anywhere; }
.workflow-panel li { font-size: 12px; line-height: 1.7; }
.preflight-action { display: flex; color: inherit; text-decoration: underline; }
.workflow-panel [data-severity="error"],.workflow-panel [data-severity="warning"] { color: #9d3e17; }
.workflow-panel .error,.workflow-set .error,.workflow-copy .error { color: #b33728; }
.dashboard-projects { margin: 36px 0; }
.dashboard-projects a { color: inherit; text-decoration: underline; }
[data-theme="dark"] .workflow-panel,[data-theme="dark"] .workflow-set { background: #20251f; color: #f4f3ed; border-color: #485143; }
[data-theme="dark"] .workflow-panel [data-severity="error"],[data-theme="dark"] .workflow-panel [data-severity="warning"] { color: #ffb494; }
@media(max-width:600px) { .workflow-panel,.workflow-set { padding: 14px; } .workflow-actions { gap: 8px; } .workflow-project-list li { align-items: flex-start; } }

/* Photo and card strips are keyboard-operable, with real canvas previews. */
.workflow-view-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 3px 2px 8px; scrollbar-width: thin; }
.workflow-view-tabs .view-thumbnail { flex: 0 0 104px; width: 104px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.view-thumbnail canvas { max-width: 100%; width: auto; height: 110px; object-fit: contain; border-radius: 4px; background: #e4e8e1; }
.view-thumbnail span { width: 100%; font-size: 11px; line-height: 1.4; text-align: left; }
.workflow-view-tabs button[aria-pressed="true"] { outline: 2px solid #82a880; outline-offset: 1px; }
.photo-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.photo-library-item { position: relative; min-width: 0; }
.photo-choice { width: 100%; aspect-ratio: 1; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); padding: 3px; cursor: pointer; overflow: hidden; position: relative; }
.photo-choice img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 6px; }
.photo-choice[aria-pressed="true"] { border-color: #5a8057; box-shadow: 0 0 0 1px #5a8057; }
.photo-choice span { position: absolute; bottom: 4px; left: 4px; display: grid; place-items: center; background: #26392a; color: white; border-radius: 50%; width: 24px; height: 24px; font: 700 12px Manrope, sans-serif; }
.photo-delete { position: absolute; right: 2px; top: 2px; border: 1px solid #b9c1b6; border-radius: 50%; width: 26px; height: 26px; background: #fff; color: #273226; cursor: pointer; font-size: 18px; }
.selected-photos { margin: 10px 0; display: grid; gap: 5px; }
.selected-photos div { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.selected-photos span { flex: 1; }
.selected-photos button { min-width: 32px; min-height: 30px; border: 1px solid #9cae97; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.selected-photos button:disabled { opacity: .35; cursor: default; }
.phone-dialog { width: min(430px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #9ba994; border-radius: 20px; padding: 18px; background: var(--surface, white); color: var(--text, #222); }
.phone-dialog::backdrop { background: #101b16b3; }
.phone-shell { width: min(336px, 100%); margin: 10px auto; background: #121713; border: 8px solid #121713; border-radius: 28px; overflow: hidden; }
.phone-shell canvas { width: 100%; height: auto; display: block; }
.phone-notch { width: 90px; height: 14px; border-radius: 0 0 8px 8px; margin: 0 auto 8px; background: #292f2b; }
.phone-home { width: 95px; height: 4px; border-radius: 4px; background: #c7cec9; margin: 12px auto 4px; }
.workflow-copy input { box-sizing: border-box; width: 100%; margin: 5px 0 10px; padding: 8px; border: 1px solid #a9b3a8; border-radius: 8px; font: inherit; background: transparent; color: inherit; }
button:focus-visible { outline: 3px solid #7aa870; outline-offset: 3px; }

.workflow-copy .copy-consent { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 12px; line-height: 1.5; }
.workflow-copy .copy-consent input { width: auto; flex: 0 0 auto; margin-top: 3px; }
#copy-template-preview { display: block; width: 144px; height: auto; max-height: 256px; object-fit: contain; margin: 12px auto; border-radius: 8px; }

.workflow-project-list li { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.workflow-project-list img { width:72px; height:90px; object-fit:contain; border-radius:8px; }
.workflow-project-list button,.workflow-project-list a { min-height:44px; padding:8px; }
.local-project-list { list-style:none; padding:0; }
.local-project-list li { display:flex; gap:12px; align-items:center; margin:12px 0; flex-wrap:wrap; }
.local-project-list img { width:64px; height:80px; object-fit:cover; }
