*{box-sizing:border-box}body{margin:0;background:#f7f8fa;color:#202c32;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:wait}header{height:82px;border-bottom:1px solid #e1e5e7;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#fff}.brand{display:flex;align-items:center;gap:12px;color:#172c27;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:-.6px}.brand-icon{background:#204b40;color:white;border-radius:10px;padding:5px 10px;font-size:25px}.brand small{font-size:12px;font-weight:400;color:#84918c;margin-left:8px;letter-spacing:1px}.tag{font-size:10px;color:#87938d;letter-spacing:1px}main{max-width:1340px;margin:auto;display:grid;grid-template-columns:minmax(400px,1fr) minmax(460px,1fr);gap:7vw;padding:46px 5vw}.eyebrow{font-size:10px;letter-spacing:2px;color:#72877c}h1{font-size:32px;font-weight:600;letter-spacing:-1px;margin:12px 0}.intro{color:#84908d;font-size:13px;margin-bottom:30px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 13px}.section-heading h2{font-size:11px;font-weight:500;color:#95a29a;margin:0;letter-spacing:1px}.section-heading h2 span{font-size:14px;color:#34463d;letter-spacing:0;margin-left:12px}.section-heading>span,.text-button{font-size:11px;color:#8a9690}.text-button{background:none}.segmented{display:flex;background:#e9eeeb;border-radius:10px;padding:4px;gap:4px}.segmented button{flex:1;padding:11px;border-radius:7px;background:transparent;color:#73827b}.segmented .active{background:#fff;color:#284e40;box-shadow:0 2px 5px #243e4010}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}label{font-size:11px;color:#7d8a83;display:flex;flex-direction:column;gap:7px}input,select,textarea{border:1px solid #dde5df;background:#fff;border-radius:7px;padding:10px;color:#33453b;outline:none;width:100%;min-width:0}input:focus,textarea:focus,select:focus{border-color:#559d7a;box-shadow:0 0 0 3px #559d7a12}.messages{max-height:310px;overflow:auto;padding-right:4px}.message{border:1px solid #e2e8e3;background:#fff;border-radius:9px;padding:10px;margin-bottom:8px;transition:border-color .15s}.message.selected{border-color:#69a88b}.row{display:flex;align-items:center;gap:8px}.row select{width:90px;padding:5px;font-size:11px}.row input{width:90px;padding:4px;font-size:11px}.row .number{color:#a1aca5;font-size:10px;margin-right:auto}.remove{background:none;color:#a7afa9;font-size:19px}.message textarea{resize:vertical;min-height:48px;max-height:150px;border:0;padding:8px 0 0;font-size:13px;line-height:1.6;box-shadow:none}.add{width:100%;padding:11px;border:1px dashed #c9d6ce;color:#648170;background:transparent;border-radius:8px;font-size:12px}.export-label{padding:11px 0;color:#43594b;font-size:12px}.actions{display:flex;gap:10px;margin-top:17px}.actions button{border-radius:8px;padding:13px 19px;font-size:13px;flex:1}.primary{background:#285b47;color:#fff}.primary:hover{background:#1c4736}.secondary{background:#e6ece8;color:#375644}#status{font-size:11px;color:#829088;line-height:1.6;min-height:18px}#download{color:#285b47;font-weight:600;font-size:13px}.stage{background:#e8edea;border:1px solid #dce4de;border-radius:18px;padding:20px 26px;display:flex;align-items:center;flex-direction:column;position:sticky;top:20px;align-self:start}.stage-top,.stage-bottom{display:flex;justify-content:space-between;width:100%;color:#829087;font-size:9px;letter-spacing:1px;gap:10px}.stage-top i{display:inline-block;width:6px;height:6px;background:#478369;border-radius:50%;margin-right:6px}.phone{margin:24px 0 22px;width:min(100%,330px);border:7px solid #242a28;border-radius:43px;overflow:hidden;box-shadow:0 25px 45px #24382c28,0 0 0 1px #8d9991;background:#ededed;line-height:0}canvas{width:100%;height:auto;cursor:pointer}.stage-bottom{font-size:9px;letter-spacing:0}[hidden]{display:none!important}@media(min-width:1500px){.phone{width:360px}}@media(max-width:900px){main{gap:30px;padding:30px 4vw;grid-template-columns:1fr 1fr}.brand small,.tag{display:none}.stage{padding:18px 12px}.stage-top{font-size:8px}h1{font-size:26px}}@media(max-width:680px){header{height:65px}main{display:flex;flex-direction:column-reverse;padding:20px}.stage{position:static;width:100%}.phone{width:280px}.editor{width:100%}.stage-bottom{display:none}.phone{margin-bottom:6px}}
.messages{max-height:440px}.timeline-tools{display:grid;grid-template-columns:2fr 1fr;gap:8px;padding:12px;background:#edf1ee;border-radius:9px}.timeline-tools button{padding:9px;border-radius:6px;font-size:11px}.hint{font-size:11px;color:#87938c;line-height:1.7}details{font-size:11px;color:#7c8b81;line-height:1.8;border:1px solid #e0e7e1;border-radius:8px;padding:10px;margin-top:12px}summary{cursor:pointer;color:#506959}details a{color:#3d7055}.row{flex-wrap:wrap}.row input[type=datetime-local]{width:190px}.row select.type{width:105px}.message .media-label{margin-top:10px}.message input[type=file],input[type=file]{font-size:10px;padding:8px}.message .quick{display:flex;gap:5px;margin-top:7px}.quick button,.preview-tools button{padding:5px 9px;color:#658373;background:#edf2ee;border-radius:5px;font-size:11px}.message .meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.add-row{display:flex;gap:10px}.add-row select{width:150px}.check{display:flex;flex-direction:row;align-items:center;line-height:1.6;padding-top:18px}.check input{width:auto}.preview-tools{display:flex;gap:10px;margin-top:15px}.stage{max-height:calc(100vh - 40px)}.phone{width:min(100%,calc((100vh - 190px)*.462));flex-shrink:0}.stage-bottom{font-size:8px}.editor input:disabled{background:#f0f2f0}#result{padding:12px;border:1px solid #d7e1d9;border-radius:9px}#result-video{display:block;width:100%;max-height:340px;background:#151b17;margin-bottom:12px;border-radius:6px}.media-note{font-size:10px;color:#83968a;padding-top:5px}.error{color:#ab573c!important}.tag{max-width:280px;text-align:right}.stage-top{font-size:9px}@media(max-width:680px){.stage{max-height:none}.phone{width:280px}.timeline-tools{grid-template-columns:2fr 1fr}.stage-bottom{display:flex}.stage{position:static}}
.drag-handle{touch-action:none;cursor:grab;background:#edf2ee;color:#71867a;padding:4px 7px;border-radius:5px;font-size:18px;letter-spacing:-3px;min-width:27px}.drag-handle:active{cursor:grabbing}.dragging{opacity:.3}.drag-ghost{position:fixed;z-index:10000;pointer-events:none;opacity:.9;box-shadow:0 15px 35px #1c3d3926;max-height:170px;overflow:hidden;transform:rotate(1deg)}.drop-before{border-top:3px solid #39845c}.drop-after{border-bottom:3px solid #39845c}.move-button{background:#edf2ee;border-radius:4px;padding:5px 7px;color:#65836e}.move-button:disabled{opacity:.25}.receipt-button{font-size:11px;color:#538466;background:#edf3ee;padding:9px;margin-top:9px;border-radius:6px}.check.compact{padding:10px 0 0}.row .number{margin-right:0}#undo-order{margin:0 0 10px;padding:0;color:#48805d}#undo-order:disabled{color:#a7b4aa}.row select{max-width:95px}
.phone{position:relative}#phone-controls{position:absolute;inset:0;pointer-events:none}.phone-hit{position:absolute;pointer-events:auto;background:transparent!important;color:transparent!important;border:0!important;padding:0!important;border-radius:4px;cursor:pointer;outline:none;box-shadow:none!important;margin:0;min-width:0;font-size:16px}.phone-hit:focus-visible{outline:2px solid #07c16055;outline-offset:-2px}input.phone-hit{opacity:.015;cursor:text}.interaction-bar{display:flex;align-items:end;justify-content:space-between;width:100%;gap:10px;margin-top:14px}.interaction-bar label{flex:1;font-size:10px}.interaction-bar select{padding:7px;font-size:11px}.interaction-bar button{padding:9px 12px;border-radius:6px;color:#47674f;background:#fff;font-size:11px}.flow-hint{font-size:10px;color:#839186;line-height:1.6;margin-bottom:0}.phone{width:min(100%,calc((100vh - 280px)*.462));margin:15px 0}.preview-tools{flex-wrap:wrap;margin-top:10px}#record-flow{background:#dce7df;color:#25573b}.avatar-field{display:grid;grid-template-columns:42px 1fr;align-items:center}.avatar-field>span{grid-column:1/-1}.avatar-field img{width:40px;height:40px;border-radius:7px;object-fit:cover}.avatar-field input{font-size:9px;min-width:0}.drag-handle,.move-button{transition:background .16s,color .16s,box-shadow .16s,transform .16s}.drag-handle:hover,.drag-handle:focus-visible{background:#cce4d5;color:#235d3d;box-shadow:0 0 0 2px #438a5c25;transform:scale(1.08)}.move-button:hover:not(:disabled),.move-button:focus-visible{background:#cce4d5;color:#235d3d;box-shadow:0 0 0 2px #438a5c25;transform:translateY(-1px)}.message:hover{border-color:#adc9b6}.drag-handle{position:relative}.drag-handle:hover:after,.drag-handle:focus-visible:after{content:attr(data-tooltip);position:absolute;z-index:5;left:0;top:100%;margin-top:5px;padding:7px 9px;border-radius:5px;background:#254334;color:#fff;font-size:10px;letter-spacing:0;white-space:nowrap;pointer-events:none}.phone-hit:hover{cursor:pointer}@media(max-width:680px){.phone{width:280px}.stage{max-height:none}.interaction-bar{max-width:310px}}

/* Large, directly interactive preview. Device chrome never enters the canvas. */
main{max-width:1520px;grid-template-columns:minmax(360px,1fr) minmax(370px,1.1fr);gap:36px;padding:28px 4vw}.stage{top:12px;padding:16px;max-height:none;min-width:0}.view-tools{display:flex;gap:7px;flex-wrap:wrap;width:100%;margin-top:12px}.view-tools button,.view-tools select{padding:8px 10px;border-radius:6px;font-size:11px;background:#fff;color:#355943}.view-tools select{width:auto;flex:1}.view-tools button:hover{background:#d4e4d9}.interaction-bar{margin-top:8px;align-items:center}.interaction-bar label{flex-direction:row;align-items:center;white-space:nowrap}.interaction-bar select{width:auto;flex:1}.phone-space{width:100%;display:flex;align-items:center;justify-content:center;padding:16px 0;min-height:0}.phone{width:min(100%,390px);margin:0;border:0;border-radius:0;box-shadow:0 8px 28px #24382c18;flex-shrink:0;aspect-ratio:var(--screen-ratio,390/844);line-height:0;background:#ededed}.phone canvas{display:block;width:100%;height:auto;aspect-ratio:var(--screen-ratio,390/844)}.device-frame .phone{width:min(calc(100% - 14px),390px);border-radius:12.8% / 5.92%;box-shadow:0 0 0 6px #222624,0 0 0 7px #8b918e,0 15px 35px #24382c25}.device-frame .phone[data-platform="android"]{border-radius:8.2% / 3.8%}.preview-tools{justify-content:center;align-items:center;width:100%;gap:7px;margin-top:8px}.preview-tools button,.preview-tools a{padding:9px 12px;font-size:12px;text-decoration:none;border-radius:6px}#stage-stop{background:#b33f3b;color:white}#stage-download{color:#20573b;background:#d5e6da;font-weight:600}.stage-status{font-size:11px;line-height:1.5;color:#6b7f71;margin:8px 0 0;text-align:center;min-height:17px}.flow-hint{max-width:390px}.stage-bottom{max-width:390px}.view-tools button:focus-visible,.preview-tools button:focus-visible{outline:2px solid #437b58;outline-offset:2px}
body.focus-view{overflow:hidden}body.focus-view>header,body.focus-view .editor{display:none}body.focus-view main{display:block;padding:0;max-width:none}body.focus-view .stage,.stage:fullscreen{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;max-height:none;border:0;border-radius:0;background:#e8edea;padding:10px 18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,390px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px 18px;align-items:center}.focus-view .stage-top,.focus-view .stage-bottom,.focus-view .flow-hint{display:none}.focus-view .view-tools{grid-column:1;grid-row:1 / 3;align-self:start;max-width:180px;flex-direction:column;margin:0}.focus-view .view-tools select{width:100%}.focus-view .interaction-bar{grid-column:3;grid-row:1 / 3;align-self:start;max-width:180px;margin:0;flex-direction:column;align-items:stretch}.focus-view .interaction-bar label{flex-direction:column;align-items:stretch;gap:8px}.focus-view .phone-space{grid-column:2;grid-row:1 / 3;height:100%;padding:8px;overflow:hidden}.focus-view .phone{width:min(100%,calc((100dvh - 114px)*390/var(--screen-h,844)));max-height:100%;}.focus-view .preview-tools{grid-column:1 / -1;grid-row:3;margin:0}.focus-view .stage-status{grid-column:1 / -1;grid-row:4;margin:0}.focus-view .preview-tools #top,.focus-view .preview-tools #bottom{display:none}
@media(max-width:760px){main{display:flex;flex-direction:column-reverse;padding:18px;gap:24px}.stage{position:static;width:100%}.phone{width:min(100%,390px)}.focus-view .stage{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:5px;padding:8px 10px}.focus-view .view-tools{grid-column:1;grid-row:1;max-width:none;flex-direction:row;flex-wrap:nowrap}.focus-view .view-tools select{width:0;min-width:100px}.focus-view .interaction-bar{grid-column:1;grid-row:2;max-width:none;flex-direction:row;align-items:center}.focus-view .interaction-bar label{flex-direction:row;align-items:center}.focus-view .phone-space{grid-column:1;grid-row:3;padding:6px}.focus-view .phone{width:min(100%,calc((100dvh - 170px)*390/var(--screen-h,844)))}.focus-view .preview-tools{grid-row:4}.focus-view .stage-status{grid-row:5;font-size:10px}.view-tools button{white-space:nowrap}}

/* Keep ordinary preview controls reachable on short desktop windows. */
body:not(.focus-view) .stage{max-height:calc(100dvh - 24px);overflow:auto;scrollbar-width:thin}
body:not(.focus-view) .phone{width:min(100%,390px,calc((100dvh - 205px)*390/var(--screen-h,844)))}
body:not(.focus-view) .device-frame .phone{width:min(calc(100% - 14px),390px,calc((100dvh - 205px)*390/var(--screen-h,844)))}
@media(max-width:760px){body:not(.focus-view) .stage{max-height:none;overflow:visible}body:not(.focus-view) .phone{width:min(100%,390px)}body:not(.focus-view) .device-frame .phone{width:min(calc(100% - 14px),390px)}}

textarea.phone-hit{opacity:.015;resize:none;cursor:text;overflow:hidden;line-height:1.4;white-space:pre-wrap} .device-frame .phone[data-platform="ios"]:after{content:"";position:absolute;z-index:2;pointer-events:none;left:28%;top:0;width:44%;height:3.7%;background:#161616;border-radius:0 0 14% 14% / 0 0 70% 70%}.phone[data-platform="ios"]{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}

/* In the bounded column, scroll excess content instead of shrinking the
   phone's slot below its aspect-ratio height and centering it over controls. */
body:not(.focus-view) .stage > *{flex-shrink:0}
body:not(.focus-view) .phone-space{flex:0 0 auto;min-height:auto}
/* Task-focused editor: one panel at a time, with exports always in the preview. */
.editor{min-width:0}.editor-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#e7ede9;padding:5px;border-radius:10px;position:sticky;top:0;z-index:5;margin-bottom:20px}.editor-tabs button{padding:12px 5px;border-radius:7px;background:transparent;color:#6f8177}.editor-tabs button.active{background:#fff;color:#24543b;box-shadow:0 2px 5px #153c2010;font-weight:600}.editor-panel>h2{font-size:17px;font-weight:500}.editor-panel .messages{max-height:60vh;min-height:150px}.export-images{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.export-images button{padding:15px 10px;border-radius:8px}.image-results{display:grid;gap:14px;margin:15px 0}.image-results>div{border:1px solid #d3dfd5;border-radius:9px;background:#fff;padding:12px}.image-results a{display:block;color:#255b3e;font-size:13px;margin-bottom:10px}.image-results img{display:block;max-width:100%;max-height:440px;object-fit:contain;object-position:top;margin:auto}.editor-panel>details:last-child{margin-bottom:15px}.editor-panel .fields:empty{display:none}.preview-tools{row-gap:8px}.focus-view .preview-tools #stage-snapshot,.focus-view .preview-tools #stage-longshot{padding:9px}.intro{margin-bottom:20px}@media(max-width:760px){.editor-tabs{top:0}.editor-panel .messages{max-height:65vh}}
.image-preview{max-height:440px;overflow:auto;border-radius:5px;background:#ededed}.image-results .image-preview img{max-height:none;width:100%;height:auto;object-fit:initial}.editor-tabs button:focus-visible{outline:2px solid #478369;outline-offset:-2px}
.group-settings{border-top:1px solid #dbe4de;margin-top:24px;padding-top:8px}.group-settings>.check{font-size:13px;color:#345441;padding-bottom:12px}.group-settings>label{margin-bottom:12px}.member-card{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:14px;margin:12px 0;border:1px solid #dce5df;background:#fff;border-radius:10px}.member-card>img{width:44px;height:44px;object-fit:cover;border-radius:6px;align-self:center}.member-card>label:nth-of-type(2){grid-column:1/-1}.member-card>.text-button{grid-column:1/-1;text-align:left;padding:0}.add-row{flex-wrap:wrap}.add-row #new-sender,.add-row #new-type{width:calc(50% - 5px);flex:1}.add-row #add{flex-basis:100%}.interaction-bar{flex-wrap:wrap}#payment-target-label{flex-basis:100%;margin-top:3px}.focus-view #payment-target-label{flex-basis:auto}.member-card .text-button:hover{color:#235d3d;text-decoration:underline}

/* Clear action hierarchy and a visible message composer. */
.app-switch{display:flex;align-items:center;gap:16px;margin:20px 0 14px;color:#345747;font-size:13px;font-weight:600}.app-switch select{max-width:230px;font-size:15px;font-weight:600;border-color:#9ebbac;padding:12px}.editor-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.editor-tabs button{font-size:12px}.message-composer{padding:16px;margin:0 0 20px;border:1px solid #b7d4c3;background:#f1f8f3;border-radius:12px;box-shadow:0 3px 12px #234d3610}.composer-heading{width:100%;font-size:14px;font-weight:650;color:#24543b;margin-bottom:4px}.message-composer select{font-size:13px;padding:11px}#add,.wide{background:#216b49;color:#fff;border:1px solid #216b49;font-size:15px;font-weight:650;padding:14px;border-radius:8px;min-height:48px}#add:hover,.wide:hover{background:#155337;box-shadow:0 3px 10px #154d3620}#add:active,.wide:active{transform:translateY(1px)}button:focus-visible{outline:3px solid #5caa82;outline-offset:3px}.wide{width:100%;margin:16px 0}.timeline-tools{margin-top:12px}.preview-tools #record-flow{background:#216b49;color:white;font-weight:600}.preview-tools #stage-snapshot,.preview-tools #stage-longshot{background:white;border:1px solid #aec7b9;color:#285b47;font-weight:600}.scene-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 22px}.scene-grid button{background:#fff;border:1px solid #cbded1;padding:17px;text-align:left;border-radius:10px;min-height:86px;color:#284e3b}.scene-grid button:hover{border-color:#478369;background:#edf6ef}.scene-grid strong{display:block;font-size:14px;margin-bottom:8px}.scene-grid span{font-size:11px;color:#7a8b80}.editor-panel h3{font-size:14px;color:#3c5c49;margin:26px 0 10px}.wallet-entry-list{max-height:260px;overflow:auto}.bill-row{display:flex;gap:8px;border-bottom:1px solid #dde5df;padding:8px 0}.bill-row>button:first-child{background:#edf3ee;color:#375742;padding:12px;border-radius:6px;flex:1;text-align:left}.interaction-bar label:has(#scene-launcher){flex-basis:100%}.focus-view .interaction-bar label:has(#scene-launcher){flex-basis:auto}@media(max-width:440px){.editor-tabs button{font-size:11px;padding:11px 2px}.scene-grid{grid-template-columns:1fr}}
.editor-tabs.four-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
