/* Existing cream/sage tool language; focused sheets preserve the sandbox underneath. */
.flow-sheet .flow-replay{min-width:0;margin:14px 0 22px;padding:14px 18px;border:1px solid #dce0cf;border-radius:10px}.flow-replay legend{font-size:14px;font-weight:600;padding:0 6px}.flow-sheet label.flow-check{display:flex;align-items:flex-start;gap:10px;line-height:1.7;margin:8px 0}.flow-check input{flex-shrink:0;margin-top:5px;accent-color:#3e5948}.flow-replay .help{margin:12px 0;max-width:72ch}.flow-replay #flowReplayCode{max-width:360px}.flow-replay #flowPublish{border-radius:8px;background:#eef1e5}.flow-replay #flowPublish:hover{background:#e5ecd9}.flow-replay [hidden]{display:none!important}#returnShareFlow{min-height:44px;padding:10px 14px;background:#eef1e5;border-radius:8px;margin:10px 0}
.cloud-sheet.flow-sheet[open]{display:flex;flex-direction:column;height:min(820px,92dvh);max-height:92dvh;padding:0;overflow:hidden;max-width:calc(100vw - 24px)}
.cloud-sheet.flow-sheet>header{padding:20px 26px 12px;margin:0;flex-shrink:0}.flow-tabs{display:flex;align-items:center;gap:8px;padding:0 26px 12px;border-bottom:1px solid #dce0cf;flex-shrink:0;flex-wrap:wrap}.flow-tabs button{border-radius:8px;color:#53624d}.flow-tabs button[aria-pressed=true]{background:#eef1e5;color:#293e37;font-weight:600}.flow-tabs #flowCount{margin-left:auto;font-variant-numeric:tabular-nums}.flow-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 26px 24px;scrollbar-color:#b5c6a6 #fffdf8}.flow-content section[hidden]{display:none}.flow-sheet .flow-brand{margin:8px 0 24px}.flow-sheet summary{cursor:pointer;min-height:44px}.flow-rows-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 8px}.flow-rows-heading h3{margin:0;font-size:16px}.flow-sheet .flow-row{padding:0;border-top:1px solid #dce0cf}.flow-row>summary{padding:14px 0;line-height:1.6}.flow-row>summary strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.flow-row-number{color:#53624d;font-size:12px;font-variant-numeric:tabular-nums;margin:0 12px 0 6px}.flow-row>label{margin:4px 0 18px}.flow-sheet .flow-preview{margin:18px auto 0}.flow-action-bar{flex-shrink:0;background:#fffdf8;border-top:1px solid #dce0cf;padding:14px 26px 16px}.flow-sheet .flow-action-bar .actions{margin:0;align-items:center}.flow-action-bar #flowSave{margin-left:auto}.flow-action-bar [role=status]{font-size:13px;line-height:1.6;margin:10px 0 0;max-width:75ch}.flow-action-bar [role=status]:empty{display:none}.flow-action-bar .needs-review{background:#f5e8e1;color:#763a29}.cloud-sheet :focus-visible{outline:2px solid #a0503d;outline-offset:3px}.cloud-sheet input,.cloud-sheet textarea{caret-color:#a0503d}.flow-sheet button:disabled{cursor:not-allowed}
.share-flow-notice{padding:14px 16px;background:#eef1e5;border-radius:10px;margin:16px 0}.share-flow-notice strong{font-size:14px}.share-flow-notice p{font-size:12px;line-height:1.7;margin:6px 0 10px}.share-flow-notice button{padding:10px 12px;background:#3e5948;color:#fffdf8;border-radius:8px;min-height:44px}.share-flow-notice button:hover{background:#324b3c}.share-dialog .share-actions button{min-height:44px}.share-dialog button:disabled{cursor:not-allowed}
.editor-start-guide{flex-shrink:0;background:#fffdf8;border-bottom:1px solid #dce0cf;padding:4px 20px;color:#293e37;font-size:12px}.editor-start-guide summary{cursor:pointer;min-height:28px;line-height:28px;color:#53624d}.editor-start-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;list-style:none;padding:0;margin:3px 0 8px;line-height:1.7}.editor-start-guide p{font-size:11px;line-height:1.6;color:#53624d}.editor-start-guide button{padding:4px 8px;min-height:32px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.editor-start-guide:not([open]){padding-top:0;padding-bottom:0}body.presenting .editor-start-guide{display:none}
@media(max-width:700px){.cloud-sheet.flow-sheet>header{padding:14px 16px 8px}.flow-tabs{padding:0 16px 8px;gap:4px}.flow-tabs #flowCount{font-size:12px}.flow-content{padding:4px 16px 18px}.flow-action-bar{padding:10px 12px 12px}.flow-sheet .flow-action-bar .actions{gap:6px;display:grid;grid-template-columns:1fr 1fr}.flow-action-bar #flowRefresh{grid-column:1/-1;font-size:12px}.flow-action-bar #flowSave{margin:0}.flow-action-bar button{font-size:12px;padding:9px 8px}.flow-action-bar [role=status]{font-size:12px;margin-top:8px;max-height:64px;overflow-y:auto}.editor-start-guide{padding:4px 12px}.editor-start-guide ol{display:block}.editor-start-guide li{margin-bottom:4px}.editor-start-guide p{display:none}}
.video-sheet{max-width:780px}.video-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.video-sheet progress{width:100%;height:12px;accent-color:#3e5948;margin-top:20px}.video-sheet video,.video-sheet canvas{display:block;width:100%;max-height:42vh;object-fit:contain;background:#eeebe3;margin:20px auto}.video-sheet [hidden]{display:none}.video-download{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;background:#3e5948;color:#fffdf8;border-radius:10px;text-decoration:none}.video-download:hover{background:#324b3c}.video-sheet :focus-visible{outline:3px solid #a0503d;outline-offset:3px}.video-sheet button:disabled{opacity:.5;cursor:not-allowed}.video-sheet [role=status]{min-height:26px;font-variant-numeric:tabular-nums}@media(max-width:700px){.video-options{grid-template-columns:1fr;gap:0}.video-sheet .actions>*{flex:1;text-align:center;justify-content:center}}
.video-label-option{grid-column:1/-1}.video-label-option small{font-size:12px;color:#53624d;line-height:1.6}.video-label-option select{max-width:360px}
.live-view{min-width:0}@media(max-width:700px){.live-view>header{flex-wrap:wrap}.live-view>header>div{flex-basis:100%;order:3}.live-view #fullscreen{margin-left:auto;flex-shrink:0}}
.cloud-tools{display:flex;gap:6px;align-items:center}.cloud-tools button,.cloud-tools a{font-size:12px;white-space:nowrap}.cloud-sheet{width:min(960px,calc(100vw - 24px));max-height:90dvh;border:0;border-radius:16px;padding:26px;background:#fffdf8;color:#293e37;box-shadow:0 20px 70px #293e3730}.cloud-sheet::backdrop{background:#293e3760}.cloud-sheet h2{margin:0;font-size:23px}.cloud-sheet header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}.cloud-sheet p{line-height:1.7}.cloud-sheet label{display:grid;gap:8px;margin:14px 0}.cloud-sheet input:not([type=checkbox]),.cloud-sheet select,.cloud-sheet textarea{width:100%;font:inherit;color:inherit;background:#fff;border:1px solid #b9c5af;border-radius:10px;padding:10px;min-height:44px}.cloud-sheet textarea{min-height:108px;resize:vertical;line-height:1.7}.cloud-sheet button{min-height:44px;padding:9px 14px}.cloud-sheet .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.cloud-sheet .help{color:#53624d;font-size:13px}.cloud-sheet [role=status]{white-space:pre-wrap;color:#763a29}.flow-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.flow-row{padding:20px 0;border-top:1px solid #dce0cf}.flow-row h3{font-size:16px}.flow-logos{display:grid;grid-template-columns:1fr 1fr;gap:18px}.flow-logos img{max-width:180px;max-height:72px;object-fit:contain}.flow-preview{max-width:540px;margin:24px auto}.flow-preview canvas{width:100%;height:auto}.live-badge{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:9000;background:#293e37;color:#fff;border:0;border-radius:10px;padding:10px 16px;box-shadow:0 4px 18px #293e3720}.template-list{list-style:none;padding:0;margin:24px 0}.template-list li{padding:18px 0;border-bottom:1px solid #dce0cf;display:flex;align-items:center;justify-content:space-between;gap:16px}.template-list .actions{display:flex;gap:8px;flex-wrap:wrap}.template-list strong{display:block}.template-list small{display:block;color:#5b675c;margin-top:6px}.template-heading{margin-top:40px;padding-top:28px;border-top:1px solid #dce0cf}.guest-gate{border:0;border-radius:16px;padding:28px;max-width:420px;color:#293e37;background:#fffdf8;box-shadow:0 16px 60px #293e3730}.guest-gate::backdrop{background:#293e3780}.guest-gate p{line-height:1.7}.guest-gate input{display:block;width:100%;min-height:46px;border:1px solid #b9c5af;border-radius:10px;font:inherit;padding:10px;margin:10px 0}.guest-gate [role=alert]{color:#763a29}.shared-flow{max-height:40vh;overflow:auto;max-width:800px;margin:12px auto;padding:12px;background:#fffdf8}.shared-flow p{white-space:pre-wrap;text-align:left;line-height:1.8}.shared-flow summary{cursor:pointer;min-height:30px}
@media(max-width:700px){.cloud-sheet{padding:18px}.flow-fields,.flow-logos{grid-template-columns:1fr}.cloud-tools{gap:2px}.cloud-tools button,.cloud-tools a{padding:8px;font-size:11px}.template-list li{display:block}.template-list .actions{margin-top:14px}.cloud-sheet h2{font-size:20px}.live-badge{top:auto;bottom:110px;max-width:90vw}}
@media(max-width:700px){.topbar{height:112px;flex-wrap:wrap;gap:4px 10px;padding:6px 10px}.topbar .brand{flex-shrink:0}.topbar .project{flex:1}.topbar .header-actions{flex-basis:100%;overflow-x:auto;flex-shrink:0;min-height:44px}.topbar .header-actions>button{white-space:nowrap;flex-shrink:0;min-height:40px}.topbar .cloud-tools{flex-shrink:0}.topbar .cloud-tools a,.topbar .cloud-tools button{min-height:40px;display:inline-flex;align-items:center}.workspace{height:calc(100dvh - 112px)}}
