/* Flow occupies the same workspace surface as Calendar. */
.flow-panel{min-width:0;padding:clamp(14px,2vw,26px);border:1px solid var(--line,#dbe1e5);border-radius:14px;background:var(--card,#fff);color:var(--ink,#213244)}
.flow-panel.hidden{display:none!important}.flow-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.flow-heading h2{margin:0;font-size:1.35rem}.flow-subtitle{display:block;margin:5px 0;color:var(--muted,#596b79);font-size:.84rem;line-height:1.5}.flow-privacy{font-size:.85rem;line-height:1.65;max-width:100ch;color:var(--muted,#596b79)}
.flow-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:20px 0 12px}.flow-file-title{min-width:0;overflow-wrap:anywhere}.flow-file-title strong{font-size:1.05rem}.flow-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.flow-actions .button{min-height:40px;text-decoration:none;white-space:normal}.flow-danger{color:#a43737!important}.flow-message{padding:12px 14px;border-radius:8px;background:var(--soft,#f1f5f7);font-size:.85rem;line-height:1.55;color:var(--ink,#334a5c)}.flow-error{background:#fff2f0;color:#8b2929}.flow-empty{padding:36px 20px;border:1px dashed #a8b5c0;border-radius:10px;background:var(--soft,#f8fafb);line-height:1.65;margin:18px 0;text-align:center;color:var(--muted,#526676)}
.flow-form{max-width:780px;padding:20px 0}.flow-form h3{margin:0 0 8px}.flow-field{display:flex;flex-direction:column;gap:7px;font-size:.88rem;font-weight:600;max-width:780px;margin:18px 0}.flow-field input,.flow-field select{width:100%;min-width:0;min-height:44px;border:1px solid #aab8c4;border-radius:7px;padding:10px 12px;background:var(--card,#fff);color:inherit;font:inherit;font-weight:400}.flow-field input:focus,.flow-field select:focus{outline:2px solid var(--ui-accent,#305d82);outline-offset:2px}.flow-preview{display:block;width:100%;height:min(76vh,980px);min-height:460px;border:1px solid #c2ccd4;border-radius:8px;background:#f8fafb}.flow-history{margin:24px 0 0;font-size:.8rem;color:var(--muted,#596b79)}.flow-history summary{cursor:pointer;font-weight:600}.flow-history li{padding:5px 0;overflow-wrap:anywhere}
@media(max-width:700px){.flow-panel{padding:14px;border-radius:10px}.flow-toolbar{display:block}.flow-actions{margin-top:12px;gap:8px}.flow-actions .button{flex:1 1 140px;justify-content:center;min-height:44px}.flow-preview{min-height:420px;height:68vh}.flow-empty{padding:24px 14px}.flow-field input,.flow-field select{font-size:16px}.flow-heading{margin-bottom:10px}}
