*{box-sizing:border-box}body{margin:0;background:#f1f4f4;color:#163744;font:15px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}header{display:flex;align-items:center;gap:28px;background:#102e3a;color:#eaf1ef;padding:22px 4vw}header a{color:#e5c98b;text-decoration:none;font-size:23px;font-weight:700}small{font-size:11px;letter-spacing:2px}header b{margin-left:auto;font-size:12px;color:#d4c18e}main{max-width:1460px;padding:30px;margin:auto}h1{font-size:32px;line-height:1.35;margin:8px 0}h2{font-size:17px;margin:0 0 14px}.eyebrow{font-size:11px;letter-spacing:3px;color:#8b703b}.intro>p:last-child{color:#5a737a}#styles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0}button,.import{font:inherit;cursor:pointer;border:1px solid #bfd0d3;border-radius:8px;padding:10px 15px;color:#163744;background:white}button:hover{border-color:#137a8f}button[aria-pressed=true],.primary{color:white;background:#164f61;border-color:#164f61}#styles button{text-align:left;padding:17px}#styles small{display:block;letter-spacing:0;margin-top:5px;font-size:12px}.workspace{display:grid;grid-template-columns:minmax(290px,400px) minmax(0,1fr);gap:30px;align-items:start}aside section{padding:22px;background:white;border:1px solid #dde5e5;border-radius:14px;margin-bottom:16px}label{display:block;margin-top:14px;font-size:13px;font-weight:600}input:not([type=checkbox]),textarea{display:block;width:100%;margin-top:6px}input[type=text],textarea{padding:9px 11px;border:1px solid #bfcdd1;border-radius:6px;font:inherit;color:#163744;background:#fbfcfc}input[type=file]{font-size:12px}input[type=range]{accent-color:#176879}.note{font-size:12px;color:#62767d}.preview{min-width:0;background:#e4ebeb;border:1px solid #d2dede;border-radius:14px;padding:22px}.previewbar{display:flex;justify-content:space-between;margin-bottom:15px;font-size:13px}canvas{display:block;max-width:100%;width:510px;height:auto;margin:auto;box-shadow:0 10px 32px #143f5728}.actions{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}#warnings{color:#8c471f;margin-top:16px;font-size:13px}#status{font-size:13px}.history{border-top:1px solid #b9cbcd;padding-top:20px;margin-top:20px}.history button{margin:5px 5px 5px 0;font-size:12px}.check{font-weight:400}.import input{max-width:200px}output{color:#477c8a}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){main{padding:16px}header{flex-wrap:wrap;gap:8px;padding:16px}header span{display:none}header a{font-size:19px}h1{font-size:25px}#styles{grid-template-columns:repeat(2,1fr)}.workspace{display:flex;flex-direction:column}.workspace>aside,.preview{width:100%}.preview{padding:12px}aside{order:2}.preview{order:1}}

@media(min-width:761px){.preview{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}}

.flow-panel{padding:24px;border:1px solid #ccdadd;background:#fff;border-radius:14px;margin-top:25px}.flow-steps{display:flex;gap:25px;flex-wrap:wrap;margin:12px 0;padding-left:20px;color:#5a747c;font-size:13px}.flow-panel textarea{width:100%;max-width:100%;resize:vertical}.flow-card{border-top:1px solid #dce5e5;padding:10px 0;font-size:13px}.flow-card b{display:block}.flow-panel .note{max-width:1000px}

/* Customer-facing local workbench */
[hidden]{display:none!important}.template-library{background:white;padding:24px;border:1px solid #d8e3e5;border-radius:16px}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.library-heading h2{font-size:22px}.library-heading label{margin:0}#categoryTabs{display:flex;gap:12px;margin:18px 0}#categoryTabs button{font-size:17px}#templateGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.template-card{padding:12px;border:1px solid #d6e2e4;border-radius:12px;background:#f7faf9;display:flex;flex-direction:column;gap:9px}.template-card img{width:100%;height:260px;object-fit:contain;background:#e5edee;border-radius:6px;cursor:zoom-in}.template-card h3{font-size:16px;margin:0}.template-card p{font-size:12px;margin:0;color:#58717c}.template-card .badge{align-self:flex-start;background:#e1eee6;color:#28614b;border-radius:20px;font-size:11px;padding:3px 9px}.template-card .pending{background:#fbecd2;color:#86652b}.template-card .actions{margin:0;margin-top:auto;gap:6px}.template-card button{padding:7px 10px;font-size:12px}details>summary{cursor:pointer;padding:14px 0;font-weight:650}#creationFlow{margin:16px 0}#creationFlow .flow-panel{margin-top:0}.workspace{grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px}.preview{position:relative;top:auto;max-height:none;overflow:visible}.canvas-wrap{position:relative;width:min(100%,510px);margin:auto}.canvas-wrap canvas{width:100%;cursor:crosshair}.canvas-wrap canvas:focus{outline:2px solid #2187a2}#selectionOutline{position:absolute;pointer-events:none;border:2px solid #ffbc40;box-shadow:0 0 0 1px #173c5c88;z-index:2}.assistant-side{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}.assistant-side section{padding:20px}.context-editor select{display:block;width:100%;padding:9px;border:1px solid #bdcfd3;border-radius:6px;font:inherit;margin:8px 0}.context-editor textarea{width:100%}.agent-title{display:flex;gap:12px;align-items:center}.agent-title h2{margin:0}.agent-title span{font-size:11px;color:#557480;background:#e7f0f2;border-radius:12px;padding:2px 8px}#chatMessages{max-height:300px;overflow:auto;display:flex;flex-direction:column;gap:10px;margin:14px 0}.chat-message{padding:11px 13px;border-radius:10px;background:#eaf0f0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user{background:#d6e9ee;margin-left:20px}.chat-message small{display:block;letter-spacing:0;font-size:10px;color:#5c7780;margin-bottom:4px}.quick-actions{display:flex;gap:5px;flex-wrap:wrap}.quick-actions button{padding:6px 8px;font-size:11px}#chatForm button{margin-top:10px}#chatProposal{padding:12px;background:#fff5df;border:1px solid #ead29f;border-radius:10px;margin-bottom:12px}#chatProposal h3{margin:0;font-size:14px}#proposalChanges{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}#chatProposal button{padding:6px 10px;margin:5px 4px 0 0}#advancedControls{margin-top:22px;border-top:1px solid #cfdddd}.advanced-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.advanced-grid section{padding:20px;background:#fff;border-radius:12px}.history{margin-top:18px}#backupTools{border-top:1px dashed #c4d4d7;margin-top:14px}#templateDialog{width:min(920px,94vw);max-height:92vh;border:0;border-radius:16px;padding:22px;color:#153e4b}#templateDialog::backdrop{background:#08212bc7}.full-template{max-height:65vh;overflow:auto;background:#eaf0f1;padding:15px;margin:15px 0}.full-template img{display:block;width:100%;height:auto}#closeTemplate{float:right}#templateNote{clear:both;font-size:14px}#templateFull{color:#176579}@media(max-width:900px){#templateGrid{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:minmax(0,1fr) 320px}.advanced-grid{grid-template-columns:1fr}}@media(max-width:760px){.workspace{display:flex;flex-direction:column}.assistant-side{position:static;max-height:none;overflow:visible;width:100%;order:2}.preview{order:1}.library-heading{display:block}.template-library{padding:15px}.template-card img{height:210px}#categoryTabs{gap:7px}#categoryTabs button{padding:9px 12px;font-size:14px}#chatMessages{max-height:240px}}

.brand-library{background:white;border:1px solid #ccdce0;border-radius:14px;padding:18px}.brand-library summary{cursor:pointer;font-weight:700}.brand-library label{display:block;margin:12px 0}.brand-library input{width:100%;padding:10px;box-sizing:border-box}#brandGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brand-card{min-width:0;border:1px solid #d4e1e4;border-radius:10px;padding:8px}.brand-card .brand-pick{display:block;width:100%;border:0;background:#f4f8f8;padding:8px}.brand-pick img{width:100%;height:68px;object-fit:contain}.brand-pick span{display:block;overflow-wrap:anywhere}.brand-card small{display:block;margin:6px 0;color:#56717b}.brand-card .brand-delete{font-size:12px;padding:4px 8px}

/* 2026-10-28 · purpose-led local workbench */
:root{--ink:#153944;--muted:#63797e;--paper:#f7f8f6;--line:#dce4e2;--teal:#165c66}body{background:var(--paper);color:var(--ink);font-size:14px}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #cfaa50;outline-offset:3px}button{transition:background .15s,border-color .15s}h1{font-size:36px;letter-spacing:-1.2px}h2{font-size:22px;letter-spacing:-.5px}.app-header{height:76px;position:sticky;top:0;z-index:20;padding:0 30px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);gap:22px}.app-header .wordmark{color:#173e49;font-size:22px;white-space:nowrap}.wordmark small{display:block;font-size:9px;letter-spacing:3px;line-height:1.2;color:#7e743f}.header-divider{height:23px;border-left:1px solid var(--line)}.header-right{margin-left:auto;display:flex;align-items:center;gap:18px}.local-badge{font-size:11px;background:#edf3ee;color:#51715e;padding:4px 10px;border-radius:30px}.continue-btn{padding:7px 15px;font-size:12px}.app-nav{position:fixed;left:0;top:76px;bottom:0;width:190px;padding:30px 16px;background:#fff;border-right:1px solid var(--line);z-index:15;display:flex;flex-direction:column;gap:10px}.app-nav button{text-align:left;border:0;background:transparent;padding:13px 17px;border-radius:10px;font-size:14px;font-weight:550}.app-nav i{font-style:normal;font-size:22px;display:inline-block;vertical-align:middle;width:32px}.app-nav button[aria-current=page]{background:#e6f0ee;color:#165b61}.app-nav button:hover{background:#f0f5f2}.nav-bottom{margin-top:auto;padding:14px 8px;font-size:12px;color:#58716f}.nav-bottom small{display:block;font-size:9px;letter-spacing:0;margin:5px 0 20px}.nav-bottom span{font-size:10px;color:#83948e}.app-main{margin:0 0 0 190px;padding:36px 40px 20px;max-width:none;min-height:calc(100vh - 76px)}.app-view{max-width:1400px;margin:0 auto}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#8d7b4f;margin:0 0 9px}.home-hero{position:relative;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;overflow:hidden;border-radius:22px;background:#dcebee;min-height:360px;padding:42px 46px;isolation:isolate}.home-hero:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 60% 0,#fff9df99,transparent 70%);z-index:-1}.home-hero h1{font-size:clamp(30px,3.3vw,49px);line-height:1.35;font-weight:600;margin:10px 0 16px;color:#173e49}.hero-copy>p:not(.eyebrow){color:#4c727b;font-size:14px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0 18px}.hero-actions button{padding:13px 19px;font-weight:600;border-color:#ffffff99;background:#ffffffb8}.hero-actions .primary{background:#174f5a;color:#fff;border-color:#174f5a}.hero-actions span{margin-left:18px}.hero-copy>small{font-size:10px;color:#64838a;letter-spacing:.3px}.hero-art{height:320px;position:relative;margin:0 20px}.hero-art img{position:absolute;width:156px;height:277px;object-fit:contain;box-shadow:0 18px 24px #20465430;border:5px solid #fff;border-radius:3px;top:16px;left:6%;transform:rotate(-10deg)}.hero-art img+img{left:44%;top:32px;transform:rotate(12deg)}.hero-stamp{position:absolute;right:-20px;top:0;border:1px solid #688b8977;border-radius:100%;width:83px;height:83px;display:grid;place-content:center;color:#3c696c;font-size:14px;transform:rotate(12deg);background:#e7f0eccc}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:32px 0 16px}.section-heading h2{margin:0;font-size:21px}.text-button{border:0;background:transparent;padding:7px 0;color:#43686f;font-size:12px}.direction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.direction-grid>button,.coming-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:20px;text-align:left;position:relative;overflow:hidden}.direction-grid strong{display:block;font-size:20px;font-weight:600;margin-top:18px}.direction-grid span{font-size:10px;letter-spacing:1.4px;color:#64868b}.direction-grid p{font-size:11px;color:#72878c;margin-bottom:0}.direction-grid b{position:absolute;right:20px;top:22px;font-size:18px;font-weight:400}.direction-grid>button:hover{background:#eef5f1;border-color:#91b4ac}.coming-card{background:#f0f0eb}.coming-card em{position:absolute;right:12px;top:17px;font-size:9px;background:#e5e6de;padding:3px 6px;border-radius:15px;font-style:normal;color:#72796a}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.feature-card{padding:12px 12px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:left}.feature-card img{height:300px;width:100%;object-fit:contain;background:#e8eeec;border-radius:7px;padding:10px}.feature-card strong{display:block;font-size:16px;margin:15px 4px 4px}.feature-card span{font-size:12px;color:#71868a;display:block;margin:0 4px}.page-title{margin:0 0 28px}.page-title h1{margin:6px 0 10px}.page-title>p:last-child{color:#70858a}.template-library{border:0;background:none;border-radius:0;padding:0}.library-heading h2{display:none}.library-heading{justify-content:flex-end}.template-search{margin:0;max-width:560px;font-weight:500;color:#5d777e;font-size:12px}.template-search input{padding:12px 16px;border:1px solid #c9d9d9;border-radius:9px;font:inherit;font-size:14px;background:white;outline-offset:3px}#categoryTabs{gap:10px;margin:22px 0 10px}#categoryTabs button{font-size:14px;border-radius:24px;padding:8px 20px}#categoryDescription{color:#6e868b;font-size:12px;margin:12px 0 22px}#templateGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{background:white;padding:12px;border-color:var(--line);border-radius:14px}.template-card img{height:340px;padding:10px;background:#e7edeb;border-radius:8px}.template-card h3{font-size:16px;margin:4px 0}.template-card .actions{margin-top:10px}.template-card .actions button{flex:1;padding:9px;font-size:12px}.template-card .actions button+button{background:#1c5c66;color:white}.template-card .badge{margin-top:5px}.brief-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px}.brief-layout-choice{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:15px 20px;background:#e6efed;border-radius:12px;font-size:13px}.brief-layout-choice button{font-size:12px;padding:6px 10px}.flow-panel{margin:0;padding:25px}.flow-panel h2{font-size:18px}.flow-steps{font-size:11px;gap:20px}.flow-panel .actions button{font-size:12px}.brief-guide,.brand-guide{background:#edf2e9;padding:28px;border-radius:15px;color:#3f625c}.brief-guide h2,.brand-guide h2{font-size:20px}.brief-guide p,.brand-guide p{font-size:13px;line-height:2}.guide-icon{font-size:32px;color:#8b9a63}.local-notice{font-size:11px;background:#fff9e6;border:1px solid #e8dfbd;padding:12px;border-radius:8px;margin:20px 0}.brief-guide button{font-size:12px}.editor-toolbar{display:flex;align-items:center;gap:20px;position:sticky;top:76px;background:var(--paper);z-index:10;padding:10px 0 18px}.editor-label{font-size:15px}.editor-label small{display:block;font-size:9px;color:#819495;letter-spacing:1px}#editorActions{margin-left:auto;display:flex;gap:8px}#editorActions button{font-size:12px;padding:9px 13px}.workspace{grid-template-columns:minmax(0,1fr) 330px;gap:20px}.preview{padding:20px;background:#e7edec;border:0;border-radius:14px}.previewbar{font-size:11px;color:#657f85}.canvas-wrap{width:min(100%,430px)}.preview>.note{font-size:11px;text-align:center}.preview #warnings,.preview #status{font-size:11px}#warnings{margin:10px 0}#status{margin:5px 0}.assistant-side{top:154px;max-height:calc(100vh - 174px);border:1px solid var(--line);border-radius:13px;background:white}.assistant-side section{border:0;border-radius:0;margin:0;padding:20px}.assistant-side h2{font-size:17px}.assistant-side .note{font-size:11px}#toolTabs{display:flex;padding:10px;gap:6px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}#toolTabs button{flex:1;font-size:13px;padding:9px;border:0;background:transparent}#toolTabs button[aria-pressed=true]{color:#155360;background:#e3f0ed}.agent-context-button{width:100%;margin-top:22px;color:#176273;background:#eef5f4;border-color:#c6dddc}.agent-title{flex-wrap:wrap;gap:5px}#chatMessages{min-height:170px;max-height:300px}.quick-actions{gap:5px}#chatForm button{width:100%}#uploads label{margin:15px 0;border-top:1px solid var(--line);padding-top:12px;font-size:12px}#uploads input{font-size:11px}#uploads button{font-size:11px;padding:3px 8px;margin-top:8px}#advancedControls{border:1px solid var(--line);border-radius:12px;padding:0 20px;margin-top:20px;background:#fff}#advancedControls>summary{font-size:13px}.advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.advanced-grid section{padding:12px}.advanced-grid h2{font-size:15px}.history{border:0;margin:0;padding:0}#history,.works-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.work-card{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden;padding:12px;min-width:0}.work-card img{height:220px;width:100%;object-fit:contain;background:#e7edeb;border-radius:6px}.work-card button{font-size:12px;margin:8px 0 0;display:block;text-align:left}.work-open{border:0;width:100%;overflow-wrap:anywhere}.work-delete{color:#9a5b48;padding:4px 9px}.empty-state{grid-column:1/-1;border:1px dashed #bdcfca;background:#f1f4ef;border-radius:12px;padding:25px;text-align:center;color:#718783;font-size:13px}.empty-state button{display:block;margin:14px auto 0;font-size:12px}#backupTools{margin-top:35px;font-size:12px}#backupTools .import{font-size:12px}.brand-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.brand-library{padding:26px}.brand-library .note{font-size:13px}#brandGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.brand-card{padding:12px}.brand-pick img{height:100px}.brand-library input{border:1px solid #cad9d9;border-radius:7px;background:#fafcfb}.brand-library label{max-width:360px}#shellStatus{font-size:11px;color:#728883;max-width:1400px;margin:24px auto 0}.brand-guide{align-self:start}#templateDialog{padding:26px}.full-template{background:#e4eae8;border-radius:9px}.full-template img{max-width:600px;margin:auto}body[data-view=editor] .app-main{padding-top:16px}body[data-view=editor] .app-nav{width:150px}body[data-view=editor] .app-main{margin-left:150px;padding-left:25px;padding-right:25px}.brand-card .brand-delete{font-size:11px}.brand-pick span{font-size:12px}
@media(min-width:1700px){.canvas-wrap{width:480px}}
@media(max-width:1150px){.app-main{padding:26px;margin-left:160px}.app-nav{width:160px;padding:24px 10px}.home-hero{padding:32px;grid-template-columns:1.4fr 1fr}.hero-art{margin:0;height:270px}.hero-art img{width:130px;height:231px}.hero-stamp{right:-18px;width:65px;height:65px;font-size:12px}.hero-copy h1{font-size:34px}.hero-actions button{font-size:12px;padding:11px}.direction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-card img{height:240px}.workspace{grid-template-columns:minmax(0,1fr) 290px}.template-card img{height:300px}.brief-layout,.brand-layout{grid-template-columns:minmax(0,1fr) 260px}.advanced-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-header{height:64px;padding:10px 16px;gap:10px;flex-wrap:nowrap}.app-header .wordmark{font-size:18px}.app-header .wordmark small{display:block;font-size:8px}.header-divider,.app-header>span{display:none}.header-right{gap:8px}.header-right .local-badge{display:block}.continue-btn{font-size:11px;padding:6px 9px}.app-nav,body[data-view=editor] .app-nav{top:auto;bottom:0;width:100%;height:67px;padding:6px 10px;flex-direction:row;justify-content:space-around;border-top:1px solid var(--line);border-right:0}.app-nav button{padding:5px 10px;text-align:center;font-size:10px;min-width:65px}.app-nav i{display:block;width:auto;line-height:24px;font-size:20px}.nav-bottom{display:none}.app-main,body[data-view=editor] .app-main{margin:0;padding:20px 16px 84px}.home-hero{display:block;min-height:0;padding:28px 24px 20px}.hero-copy h1{font-size:32px}.hero-copy>p:not(.eyebrow){font-size:12px}.hero-actions{margin:20px 0 14px;gap:8px}.hero-actions button{padding:10px 11px;font-size:11px}.hero-actions span{margin-left:7px}.hero-copy>small{font-size:9px}.hero-art{height:180px;width:230px;margin:22px auto 0}.hero-art img{width:89px;height:158px;top:5px;left:10%}.hero-art img+img{left:53%;top:12px}.hero-stamp{right:-15px;top:2px;width:56px;height:56px;font-size:10px}.section-heading{margin-top:26px;gap:10px;align-items:center}.section-heading h2{font-size:18px}.section-heading .text-button{font-size:10px}.direction-grid{gap:10px}.direction-grid>button,.coming-card{padding:15px}.direction-grid strong{font-size:18px;margin-top:14px}.direction-grid p{font-size:10px}.direction-grid span{font-size:8px}.coming-card em{position:static;display:inline-block;margin-top:8px}.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feature-card{padding:8px 8px 13px}.feature-card img{height:220px;padding:6px}.feature-card strong{font-size:14px}.feature-card span{font-size:10px}.page-title h1{font-size:26px}.page-title p{font-size:12px}.library-heading label{font-size:11px}#templateGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-card{padding:8px}.template-card img{height:230px;padding:5px}.template-card h3{font-size:14px}.template-card p{font-size:10px}.template-card .actions{flex-direction:column}.template-card .badge{font-size:9px}#categoryTabs{flex-wrap:wrap;gap:8px}#categoryTabs button{font-size:12px;padding:8px 12px}.brief-layout,.brand-layout{grid-template-columns:1fr}.flow-panel{padding:18px}.brief-guide,.brand-guide{padding:22px}.flow-steps{font-size:10px;gap:16px}.editor-toolbar{top:64px;gap:10px;flex-wrap:wrap;padding:8px 0 12px}.editor-label{font-size:12px}#editorActions{gap:5px}#editorActions button{font-size:10px;padding:7px 9px}.editor-toolbar>.text-button{font-size:11px}.workspace{display:flex;gap:16px}.assistant-side{position:static;max-height:none;width:100%}.preview{padding:12px;width:100%}.previewbar{font-size:10px}.canvas-wrap{width:min(100%,430px)}#toolTabs{position:static}.assistant-side section{padding:18px}#history,.works-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-card img{height:180px}.empty-state{padding:20px;font-size:12px}#brandGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-library{padding:18px}.brand-library .note{font-size:12px}.brand-pick img{height:75px}.advanced-grid{grid-template-columns:1fr}#shellStatus{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.brief-guide .agent-panel{margin:24px -12px -12px;padding:18px;border:1px solid #d1dfd6;border-radius:12px;background:white}.brief-guide .agent-panel p{line-height:1.6;font-size:11px}.brief-guide #chatMessages{min-height:100px;max-height:200px}.brief-guide #chatForm label{font-size:12px}.brief-guide .agent-title h2{font-size:16px}.local-badge{white-space:nowrap;flex-shrink:0}
@media(max-width:360px){.app-header .wordmark{font-size:15px}.header-right{gap:4px}.continue-btn{font-size:10px;padding:5px 6px}.local-badge{font-size:9px;padding:3px 6px}.home-hero{padding:22px 17px}.home-hero h1{font-size:clamp(20px,7.8vw,28px)}.hero-actions{display:grid}.hero-art{width:190px}#editorActions{margin:0;width:100%;justify-content:flex-end}.featured-grid{grid-template-columns:1fr}.feature-card img{height:280px}}

/* Imported references: originals open only on request; layer transparency stays visible. */
.catalog-filter{display:flex;align-items:center;gap:12px;margin:16px 0}.catalog-filter[hidden]{display:none}.catalog-filter select{width:auto;max-width:100%;padding:10px 14px;border:1px solid #bcced1;border-radius:10px;background:white;color:#173e4a}.full-template{background-color:#eef1ef;background-image:conic-gradient(#e1e7e4 25%,transparent 0 50%,#e1e7e4 0 75%,transparent 0);background-size:24px 24px}

.template-stage{position:relative;width:min(100%,600px);margin:auto}.template-stage #templateImage{width:100%;display:block}.brand-plan-box{position:absolute;display:flex;align-items:center;justify-content:center;border:2px dashed #176176;box-sizing:border-box;background:rgba(255,255,255,.94);color:#17485a;font-size:clamp(9px,1.4vw,14px);font-weight:600}.brand-plan-box.qr{background:#fff}#brandPlanNote{font-size:14px;line-height:1.6;color:#375965}#brandPlanOverlay{position:absolute;inset:0;pointer-events:none}

/* Visible template editing and scoped local assistant. */
.app-nav button{display:flex;align-items:center;gap:10px;white-space:nowrap}.app-nav i{flex:0 0 24px}.app-nav button{font-size:14px;padding-left:10px;padding-right:10px}
.template-dialog-actions{position:sticky;top:-26px;background:#fff;z-index:5;padding:14px 0;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #d7e1df}.template-dialog-actions .primary{min-width:180px}
.document-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.document-preview{padding:28px;background:#e5edeb;border-radius:16px;text-align:center}.document-preview canvas{width:min(100%,480px);height:auto;cursor:pointer}.document-side{position:sticky;top:148px;max-height:calc(100vh - 170px);overflow:auto;background:#fff;border:1px solid #cad9d6;border-radius:14px}.document-tabs{display:flex;position:sticky;top:0;background:white;padding:10px;gap:4px;z-index:2;border-bottom:1px solid #d7e1df}.document-tabs button{flex:1;padding:10px 6px;font-size:13px;white-space:nowrap;border:0}.document-tabs button[aria-pressed=true]{background:#e1f0ec;color:#17515b}.document-side section{padding:22px}.document-side h2{font-size:19px}.document-side label{display:block;margin:12px 0;font-size:13px}.document-side input,.document-side select,.document-side textarea{display:block;width:100%;box-sizing:border-box;padding:10px;border:1px solid #bdced1;border-radius:8px;background:#fcfdfd}.document-side textarea{min-height:90px}.document-side section>button{margin:10px 6px 0 0;font-size:13px}.document-side input[type=color]{height:44px}.document-notice{padding:14px 18px;background:#e8f0ec;border-radius:10px;font-size:13px;line-height:1.7;color:#3a605f}.document-messages{max-height:280px;min-height:130px;overflow:auto}.document-side .note{font-size:12px;line-height:1.7}#documentMount .editor-toolbar strong{margin-right:auto;font-size:17px}#documentMount .editor-toolbar button{font-size:13px;padding:10px 14px}#toolTabs button{white-space:nowrap;padding:9px 6px}
@media(max-width:760px){.app-nav button{display:block;font-size:10px;padding:4px;min-width:48px}.app-nav i{display:block}.document-workspace{grid-template-columns:1fr}.document-side{position:static;max-height:none}.document-preview{padding:14px}.document-preview canvas{max-width:100%}#documentMount .editor-toolbar{flex-wrap:wrap}#documentMount .editor-toolbar strong{width:60%}}

/* Compact gallery: the poster fills its card, with no square letterbox. */
#templateGrid{grid-template-columns:repeat(auto-fill,minmax(200px,220px));gap:20px;align-items:start;justify-content:start}
#templateGrid .template-card{min-width:0;padding:10px;gap:8px}
#templateGrid .template-card img{display:block;width:100%;height:auto;max-height:none;padding:0;aspect-ratio:auto;object-fit:contain;background:transparent;border-radius:6px}
#templateGrid .template-card p{line-height:1.6;overflow-wrap:anywhere}
#templateGrid .template-card .actions{flex-wrap:wrap;gap:6px;margin-top:8px}
#templateGrid .template-card .actions button{min-width:0;padding:9px 6px}
@media(max-width:760px){#templateGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#templateGrid .template-card{padding:7px}#templateGrid .template-card .actions{flex-direction:column}}
@media(max-width:350px){#templateGrid{grid-template-columns:1fr}}

.flow-availability{padding:16px;border-left:4px solid #ba9954;background:#fff7e6;color:#493b21;line-height:1.7;font-size:15px}#briefTemplateDialog{width:min(850px,92vw);border:1px solid #c3d5d3;border-radius:16px;padding:24px;max-height:90vh;overflow:auto}#briefTemplateDialog::backdrop{background:#0b242dcc}#briefTemplateOptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.brief-template-option{display:flex;flex-direction:column;gap:12px;padding:10px}.brief-template-option img{width:100%;height:auto}.brief-template-option span{font-size:14px}#manualFlow{border-color:#205966;color:#205966} @media(max-width:540px){#briefTemplateOptions{gap:8px}.brief-template-option{padding:5px}.brief-template-option span{font-size:12px}}

/* Compact home category navigation; keep one row even on narrow screens. */
.direction-tabs{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;max-width:100%;min-width:0;overflow-x:auto;margin:26px 0 20px;padding:6px 2px 10px;border-bottom:1px solid var(--line);scrollbar-width:thin}
.direction-tabs>button{flex:0 0 auto;white-space:nowrap;font-size:14px;line-height:20px;font-weight:500;padding:8px 16px;min-height:36px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink)}
.direction-tabs>button:hover{background:#e4efec;border-color:#b9d0cb}
.direction-tabs>.direction-all{margin-left:auto;font-size:12px;color:#52747b}
@media(max-width:760px){.direction-tabs{margin:20px 0 16px;gap:4px}.direction-tabs>button{font-size:13px;padding:8px 12px}.direction-tabs>.direction-all{font-size:12px}}

/* Home recommendations use the same compact poster width as the template library. */
:is(#featuredTemplates,#featuredLongTemplates){grid-template-columns:repeat(auto-fill,minmax(200px,220px));gap:20px;align-items:start;justify-content:start}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card{min-width:0;width:100%;padding:10px 10px 16px}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card img{display:block;width:100%;height:auto;max-height:none;padding:0;object-fit:contain;background:transparent}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card strong{font-size:14px;margin:12px 0 5px;overflow-wrap:anywhere}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card span{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:760px){:is(#featuredTemplates,#featuredLongTemplates){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:is(#featuredTemplates,#featuredLongTemplates) .feature-card{padding:7px 7px 12px}}
@media(max-width:350px){:is(#featuredTemplates,#featuredLongTemplates){grid-template-columns:1fr}}

#recentWorks{grid-template-columns:repeat(auto-fill,minmax(200px,220px));gap:20px;align-items:start;justify-content:start}
#recentWorks .work-card{padding:10px}
#recentWorks .work-card img{display:block;width:100%;height:auto;padding:0;background:transparent}
@media(max-width:760px){#recentWorks{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#recentWorks .work-card{padding:7px}}
@media(max-width:350px){#recentWorks{grid-template-columns:1fr}}

/* Local QA refresh: clearer hierarchy, compact controls, persistent feedback. */
:root{--ink:#193e45;--line:#dce5e2}body{background:#f5f7f5}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #bd8e45;outline-offset:3px}button{transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#edf3f0}.primary:hover:not(:disabled){background:#24636a;color:white}
.app-header{height:76px;border-bottom:1px solid var(--line);box-shadow:none}.app-nav{top:76px;background:#fff}.app-main{padding-top:28px}.home-hero{min-height:330px;padding:38px 42px;border-radius:20px;background:linear-gradient(115deg,#deecea,#f0f1e6);gap:24px}.hero-copy h1{font-size:clamp(30px,3vw,44px);line-height:1.35;letter-spacing:-1px}.hero-copy>p:not(.eyebrow){font-size:15px}.hero-actions{margin:24px 0 18px}.hero-actions button{font-size:14px;padding:12px 18px}.hero-art{height:280px}.hero-art img{width:140px;height:249px}.hero-copy>small{line-height:1.8;font-size:11px}.page-title{margin-bottom:24px}.page-title h1{font-size:30px}.section-heading h2{font-size:22px}.eyebrow{letter-spacing:2px}
#categoryTabs{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:8px}#categoryTabs button{flex:0 0 auto;white-space:nowrap;font-size:14px;padding:8px 15px}.template-card h3{font-size:16px}.template-card p{font-size:12px}.template-card .badge{font-size:11px}.template-search{max-width:650px}.brief-layout{grid-template-columns:minmax(0,1fr) 330px;gap:24px}.brief-guide{padding:22px;background:#edf3ee}.brief-guide>.guide-icon,.brief-guide>h2,.brief-guide>p,.brief-guide>.local-notice{display:none}.brief-guide .agent-panel{margin:0;padding:0;border:0;background:transparent}.brief-guide .agent-panel p{font-size:13px}.brief-guide #chatMessages{min-height:160px;max-height:300px}.flow-panel{margin-top:16px}.flow-steps{gap:12px;font-size:12px}.flow-availability{font-size:13px;padding:12px}.flow-panel .actions button{font-size:13px}.flow-panel .note{font-size:13px}.flow-card{padding:14px 0;line-height:1.8}#flowStatus{font-weight:600;color:#245b61}#proposalChanges{white-space:pre-wrap;max-height:220px;overflow:auto}
#shellStatus{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(620px,90vw);padding:12px 20px;background:#193e45;color:#fff;border-radius:12px;box-shadow:0 8px 30px #16374430;font-size:13px;pointer-events:none;opacity:0}#shellStatus.visible{opacity:1}
@media(max-width:1100px){.brief-layout{grid-template-columns:1fr}.brief-guide{max-width:none}.document-workspace{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:760px){.app-header{height:64px}.app-nav{top:auto}.home-hero{padding:26px 22px}.hero-copy h1{font-size:31px}.hero-art{height:190px}.hero-art img{width:92px;height:164px}.hero-actions button{font-size:12px;padding:10px 12px}.page-title h1{font-size:25px}.brief-layout,.document-workspace{grid-template-columns:1fr}.flow-panel{padding:16px}.flow-steps{font-size:11px}.flow-panel .actions{display:grid;grid-template-columns:1fr}#shellStatus{bottom:80px}.document-side{position:static}.direction-tabs{margin-top:18px}}

/* Curated homepage exhibition: six full 9:16 posters, display only. */
:is(#featuredTemplates,#featuredLongTemplates){width:100%;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;align-items:start}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:default;text-align:left;transform:none}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card:hover{transform:none;box-shadow:none;border-color:transparent}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card img{width:100%;height:auto;aspect-ratio:9/16;border-radius:4px;object-fit:contain}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card strong{display:block;margin:12px 0 4px}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card span{display:block;color:#687d7c}
@media(max-width:760px){:is(#featuredTemplates,#featuredLongTemplates){grid-template-columns:repeat(6,minmax(150px,1fr));gap:14px;overflow-x:auto;padding-bottom:12px}}

/* Complete long posters: equal-height display, preserve original image proportions. */
#featuredLongTemplates .feature-card img{aspect-ratio:1/4;object-fit:contain;object-position:center top}

#creationResultImage{width:min(100%,480px);height:auto}#materialList{width:100%}#materialList>div{display:flex;align-items:center;gap:16px;margin:8px 0}#materialList span{flex:1;overflow-wrap:anywhere}

/* Interface typography only; poster canvas fonts remain owned by their layouts. */
:root{--ui-font:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;--display-font:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;--latin-font:"Helvetica Neue",Arial,sans-serif}
body{font-family:var(--ui-font);font-weight:400;line-height:1.7;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font-family:var(--ui-font);letter-spacing:.02em}
button,label,.app-nav button,.hero-actions button{font-weight:500}
.home-hero h1,.page-title h1,.section-heading h2{font-family:var(--display-font);font-weight:600;letter-spacing:.04em;line-height:1.5;text-wrap:balance}
.home-hero h1{font-size:clamp(32px,3.1vw,46px);margin:12px 0 20px;letter-spacing:.025em}
.section-heading h2{font-size:26px;line-height:1.55}
.page-title h1{font-size:34px}
.hero-copy>p:not(.eyebrow){font-size:15px;font-weight:400;line-height:1.9;letter-spacing:.035em}
.section-heading .note{font-size:14px;line-height:1.85;font-weight:400;letter-spacing:.025em;margin:9px 0 0;color:#5c7478}
.eyebrow,.wordmark small,.editor-label small{font-family:var(--latin-font);font-weight:500;letter-spacing:.2em}
.eyebrow{font-size:10px;line-height:1.6}
.app-header .wordmark{font-family:var(--display-font);font-weight:700;letter-spacing:.04em}
.app-header>span,.app-nav button{font-size:14px;font-weight:500;letter-spacing:.035em}
.direction-tabs button{font-size:14px;font-weight:500;letter-spacing:.04em}
.feature-card strong,.template-card h3,.brand-pick span{font-family:var(--ui-font);font-weight:500;letter-spacing:.015em;line-height:1.55}
.feature-card strong{font-size:15px}.feature-card span{font-size:12px;line-height:1.7}
.template-card p,.note,.nav-bottom{font-weight:400;line-height:1.8}
.flow-panel h2,.assistant-side h2,.agent-panel h2,.editor-label,.brand-library h2{font-family:var(--ui-font);font-weight:500;letter-spacing:.02em}
input,textarea,select,.chat-message{font-weight:400;line-height:1.7}
.hero-stamp{font-family:var(--display-font);font-size:15px;line-height:1.65}
@media(max-width:760px){.home-hero h1{font-size:30px;line-height:1.55;letter-spacing:.01em}.section-heading h2{font-size:22px}.page-title h1{font-size:28px}.section-heading .note{font-size:13px}.hero-copy>p:not(.eyebrow){font-size:13px}.app-nav button{font-size:10px;letter-spacing:0}.app-header>span{font-size:12px}.hero-stamp{font-size:11px}}

/* Local homepage refinement: compact navigation, prominent Agent, larger artwork. */
@media(min-width:761px){
 .app-nav{gap:4px;padding-top:22px}
 .app-nav button{min-height:42px;padding-top:8px;padding-bottom:8px}
 .app-nav #openAgent{min-height:73px;margin-top:10px;padding:12px 12px;font-size:15px;background:#fff09a;color:#183f48}
 .app-nav #openAgent:hover{background:#ffe978}
 .app-nav #openAgent[aria-current=page]{background:#ffeb80;color:#143d44}
}
.home-hero .hero-copy>.eyebrow,.home-hero .hero-copy>p,.home-hero .hero-copy>small,.hero-stamp,#view-home>.section-heading .eyebrow,#view-home>.section-heading .note{display:none}
.hero-art{height:340px}
.hero-art img{width:168px;height:299px}
@media(max-width:760px){
 .app-nav #openAgent{background:#fff09a;color:#183f48;border-radius:9px}
 .hero-art{height:230px;width:250px}
 .hero-art img{width:110.4px;height:196.8px}
}
@media(max-width:360px){.hero-art{width:220px}}

/* Intake: visible delivery choices and dedicated QR upload. */
.brief-layout-choice{flex-wrap:wrap;justify-content:flex-start}
.brief-layout-choice>b{flex:1;min-width:180px}
.creation-category-field{order:3;flex-basis:100%;border-top:1px solid #cbdcdd;padding-top:14px}
#categoryLabel{display:block;font-size:13px;margin-bottom:10px;color:#45636c}
#creationCategory{display:flex;flex-wrap:wrap;gap:8px}
#creationCategory button{padding:10px 15px;min-height:42px;background:#fff;border:1px solid #b9ced0;border-radius:9px;font-size:14px;white-space:nowrap}
#creationCategory button[aria-pressed=true]{background:#194f5d;color:white;border-color:#194f5d;font-weight:600}
#creationCategory button:disabled{opacity:.6;cursor:default}
#creationCategory button[aria-pressed=true]:disabled{opacity:1}
.brief-qr{display:flex;gap:20px;align-items:center;margin:18px 0;padding:20px 24px;border:1px solid #cedcde;border-radius:14px;background:white}
.brief-qr>div{min-width:0;flex:1}.brief-qr h2{font-size:17px;margin:0 0 8px}.brief-qr h2 small{font:400 12px sans-serif;color:#6c8187;margin-left:8px}
.brief-qr p{font-size:13px;line-height:1.7;margin:8px 0;color:#506b74}.brief-qr-actions{display:flex;gap:8px}.brief-qr button{padding:9px 14px;font-size:13px}
#briefQrUpload{background:#f8e7ae;border-color:#e6d18e;color:#23444c}#briefQrPreview{width:100px;height:100px;object-fit:contain;background:white;border:1px solid #d7e0e0;padding:6px;flex-shrink:0}
@media(max-width:600px){.brief-qr{padding:16px;gap:12px;align-items:flex-start}#briefQrPreview{width:72px;height:72px}#creationCategory button{padding:9px 12px}}


/* Homepage experience collage. Decorative only; editor and source assets stay independent. */
.home-hero{grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);gap:20px;padding:34px 40px;min-height:570px;background:linear-gradient(115deg,#e1edeb 0%,#f5f1df 78%)}
.hero-copy{position:relative;z-index:2;min-width:0}
.hero-copy h1{font-size:clamp(40px,4.3vw,62px);line-height:1.35;letter-spacing:.015em;margin:12px 0 30px;text-wrap:initial}
.hero-copy h1 span{display:block;white-space:nowrap}
.hero-actions{gap:10px;max-width:420px}
.hero-actions button{padding:13px 17px}
.hero-art{height:500px;width:100%;margin:0;min-width:0}
.hero-motion-scene{position:absolute;inset:0;pointer-events:none;transform:translate(var(--look-x,0px),var(--look-y,0px));transition:transform .45s ease-out}
.experience-sun{position:absolute;right:5%;top:19%;width:70%;aspect-ratio:1;background:#efd873;border-radius:50%;opacity:.65}
.experience-orbit{position:absolute;left:0;top:14%;width:98%;height:73%;border:1px solid #768d7940;border-radius:50%;transform:rotate(-25deg)}
.experience-card{position:absolute;border:6px solid #fffdf5;background:#fffdf5;box-shadow:0 24px 35px -16px #244c4855;border-radius:3px;animation:experience-beat 10s linear infinite;animation-delay:var(--beat-delay,0s);transform:translateY(0) rotate(var(--tilt));transform-origin:center;will-change:transform}
.experience-window{width:100%;height:100%;overflow:hidden;position:relative}
.hero-art .experience-card img{position:static;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;border:0;border-radius:0;box-shadow:none;transform:none;animation:experience-zoom 10s linear infinite;animation-delay:var(--beat-delay,0s)}
.experience-sea{left:7%;top:5%;width:58%;height:78%;--tilt:-7deg;--beat-delay:0s;--layer:1;z-index:1}
.hero-art .experience-sea img{object-position:40% 66%}
.experience-tape{position:absolute;top:-16px;left:36%;width:30%;height:28px;background:#f3d475b3;transform:rotate(4deg);clip-path:polygon(2% 0,99% 3%,96% 100%,0 93%)}
.experience-tea{left:63%;top:3%;width:35%;height:27%;--tilt:8deg;--beat-delay:-6s;--layer:2;z-index:2}
.experience-print{left:70%;top:34%;width:29%;max-width:200px;height:auto;aspect-ratio:9/16;--tilt:9deg;--beat-delay:-2s;--layer:3;z-index:3}
.hero-art .experience-print img{object-fit:contain;animation:none}
.experience-play{left:46%;top:69%;width:27%;height:27%;--tilt:-5deg;--beat-delay:-4s;--layer:4;z-index:4}
.hero-art .experience-play img{transform:scale(1.06)}
.experience-food{left:-3%;top:69%;width:47%;height:31%;--tilt:4deg;--beat-delay:-8s;--layer:5;z-index:5}
.hero-art .experience-food img{transform:scale(1.14);animation-name:experience-food-zoom}
.hero-motion-toggle{position:absolute;right:0;bottom:-19px;padding:6px 10px;min-height:30px;font-size:11px;font-weight:400;color:#45666b;background:#ffffffb3;border:1px solid #c7d7d2;border-radius:20px;z-index:6}
.hero-motion-toggle:hover{background:#fff}.hero-motion-toggle[hidden]{display:none}
.hero-art.motion-paused .experience-card,.hero-art.motion-paused .experience-card img{animation-play-state:paused}
/* 10s phrase: 0.3s attack, 0.3s settle, 2.2s slow release, then a still interval.
   Each scene gets its own beat, spaced 2s apart: coast → food → tea → play → finished print. */
@keyframes experience-beat{
 0%,4%{transform:translateY(0) rotate(var(--tilt)) scale(1);z-index:var(--layer);animation-timing-function:cubic-bezier(.16,.85,.3,1)}
 7%{transform:translateY(-12px) rotate(calc(var(--tilt) - 2deg)) scale(1.07);z-index:8;animation-timing-function:cubic-bezier(.2,.65,.3,1)}
 10%{transform:translateY(-7px) rotate(calc(var(--tilt) + .6deg)) scale(1.035);z-index:8;animation-timing-function:ease-out}
 20%{transform:translateY(-4px) rotate(var(--tilt)) scale(1.025);z-index:8;animation-timing-function:ease-in-out}
 32%,100%{transform:translateY(0) rotate(var(--tilt)) scale(1);z-index:var(--layer)}
}
@keyframes experience-zoom{
 0%,4%{transform:scale(1.025);animation-timing-function:cubic-bezier(.16,.85,.3,1)}
 7%{transform:scale(1.12);animation-timing-function:ease-out}
 10%{transform:scale(1.08);animation-timing-function:ease-out}
 20%{transform:scale(1.065);animation-timing-function:ease-in-out}
 32%,100%{transform:scale(1.025)}
}
@keyframes experience-food-zoom{
 0%,4%{transform:scale(1.14);animation-timing-function:cubic-bezier(.16,.85,.3,1)}
 7%{transform:scale(1.24);animation-timing-function:ease-out}
 10%{transform:scale(1.2);animation-timing-function:ease-out}
 20%{transform:scale(1.18);animation-timing-function:ease-in-out}
 32%,100%{transform:scale(1.14)}
}
@media(min-width:1600px){.home-hero{min-height:620px;padding:40px 50px}.hero-art{height:540px}.hero-copy h1{font-size:64px}}
@media(min-width:761px) and (max-width:1150px){.home-hero{padding:30px 26px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:480px;gap:10px}.hero-art{height:410px}.hero-copy h1{font-size:clamp(32px,4.1vw,44px)}.hero-actions{display:flex;flex-direction:column;align-items:flex-start}.hero-actions button{font-size:13px}.experience-card{border-width:4px}}
@media(max-width:760px){.home-hero{display:block;min-height:0;padding:26px 22px 34px}.hero-copy h1{font-size:clamp(32px,6.7vw,44px);line-height:1.35;margin:4px 0 20px}.hero-copy h1 span{display:inline}.hero-actions{display:flex;flex-direction:row;margin:16px 0 12px;gap:8px}.hero-actions button{font-size:11px;padding:11px 12px}.hero-art{width:min(100%,480px);height:410px;margin:26px auto 0}.experience-card{border-width:4px}.hero-motion-toggle{bottom:-18px;font-size:10px}.experience-tape{height:20px;top:-12px}}
@media(max-width:480px){.hero-art{height:330px}.hero-copy h1{font-size:29px}.hero-copy h1 span{display:block}.experience-sea{height:75%;left:5%}.experience-tea{left:62%;width:36%;height:25%}.experience-food{left:-3%;width:48%;height:29%}.experience-print{left:70%;width:30%}.experience-play{left:47%;width:27%;height:25%}}
@media(max-width:360px){.hero-art{height:285px}.home-hero{padding:24px 18px 32px}.hero-copy h1{font-size:29px}.hero-actions{display:grid}.hero-actions button{text-align:left}}
@media(prefers-reduced-motion:reduce){.hero-art .experience-card,.hero-art .experience-card img{animation:none!important}.hero-motion-scene{transform:none;transition:none}.hero-motion-toggle{display:none}}

@media(min-width:761px) and (max-width:900px){.experience-sea{left:15%;width:50%}}


/* White continuous surfaces; full-bleed autumn artwork is the homepage exception. */
:root{--paper:#fff;--home-nav-width:190px;--surface-shadow:0 6px 24px rgba(24,57,60,.055)}
body,.app-main,.app-view,.app-header,.app-nav{background:#fff}
.app-header{box-shadow:0 2px 12px #173d4505}
.template-card,.feature-card,.work-card,.brand-library,.flow-panel,.brief-qr,.assistant-side,.document-side,.advanced-grid section{background:#fff;box-shadow:var(--surface-shadow);border-color:#e8edeb}
.brief-layout-choice,.brief-guide,.brand-guide,.preview,.document-preview,.empty-state,.brand-card .brand-pick,.document-notice,.agent-context-button{background:#fff;box-shadow:var(--surface-shadow)}
.template-card img,.feature-card img,.work-card img,.full-template{background:#fff;background-image:none}
.chat-message,.chat-message.user,#chatProposal{background:#fff;border:1px solid #e5ece9}
input[type=text],textarea,.brand-library input,.document-side input,.document-side select,.document-side textarea{background:#fff}
.editor-toolbar,#toolTabs,.document-tabs,.template-dialog-actions{background:#fff}
:is(#featuredTemplates,#featuredLongTemplates) .feature-card{background:#fff;box-shadow:none}
.home-hero{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.home-hero:before{content:'';position:absolute;left:50%;right:auto;top:-28px;bottom:-40px;width:calc(100vw - var(--home-nav-width));transform:translateX(-50%);border:0;border-radius:0;z-index:-1;background-color:#fff;background-image:none;background-size:cover;background-position:center center;background-repeat:no-repeat;pointer-events:none}
.hero-copy h1{font-family:'Yuanti SC','Hiragino Sans GB','PingFang SC','Microsoft YaHei',sans-serif;font-weight:900;color:#164c43;letter-spacing:.01em;-webkit-text-stroke:6px #fff;paint-order:stroke fill;text-shadow:0 5px 0 #7b602921,0 8px 20px #ffffffa6;line-height:1.36}
.hero-actions button{background:#fff;border:2px solid #fff;box-shadow:0 5px 17px #284a4321;font-weight:600}
.hero-actions .primary{background:#174f4b;border-color:#fff}
.hero-actions button:hover:not(:disabled){background:#fff7dd}.hero-actions .primary:hover:not(:disabled){background:#23675c}
.experience-sun,.experience-orbit{display:none}
.experience-card{background:#fff;border-color:#fff;box-shadow:0 18px 30px -12px #233f4b66}
.hero-motion-toggle[aria-pressed]{background:#fff;color:#28545a;border-color:#b8ceca;box-shadow:0 3px 12px #15394412}
@media(max-width:1150px){:root{--home-nav-width:160px}}
@media(max-width:760px){:root{--home-nav-width:0px}.home-hero:before{top:-28px;bottom:-24px;background-position:24% center}.hero-copy h1{-webkit-text-stroke-width:4px}.app-nav{box-shadow:0 -4px 18px #173d4508}}

/* Owner revision: plain white hero, larger rhythm collage, stronger wordmark. */
.home-hero{background:#fff;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);padding:30px 32px 45px;min-height:650px}
.home-hero:before{display:none}
.hero-copy h1{text-shadow:none;-webkit-text-stroke:0}
.hero-art{height:580px}
.experience-print{max-width:240px}
.app-header .wordmark{font-family:'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;font-weight:900;font-size:25px;letter-spacing:-.025em;line-height:1.2;-webkit-text-stroke:.35px currentColor}
.app-header .wordmark small{font-family:Arial,sans-serif;font-weight:700;font-size:9px;letter-spacing:.3em;line-height:1.8;-webkit-text-stroke:0}
@media(min-width:1600px){.home-hero{min-height:720px;padding:36px 42px 48px}.hero-art{height:630px}}
@media(min-width:761px) and (max-width:1150px){.home-hero{grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);padding:30px 18px 42px;min-height:540px}.hero-art{height:460px}}
@media(max-width:760px){.home-hero{padding:24px 12px 40px;min-height:0}.hero-art{width:min(100%,540px);height:460px;margin-top:32px}.app-header .wordmark{font-size:22px}}
@media(max-width:480px){.hero-art{height:380px}.app-header .wordmark{font-size:21px}}
@media(max-width:360px){.hero-art{height:335px}.home-hero{padding:24px 12px 38px}.app-header .wordmark{font-size:20px}}

@media(max-width:480px){.home-hero{padding-left:22px;padding-right:22px}.experience-sea{left:7%}.experience-print{left:68%;width:29%}.experience-food{left:0%}}

/* Remove the blank band below the header on the homepage only. */
body[data-view=home] .app-main{padding-top:0}
#view-home .home-hero{padding-top:20px;min-height:0}

@media(min-width:761px){#view-home .experience-sea{top:8%}}



/* Homepage portrait showcase: five curated posters; long-form row unchanged. */
#featuredTemplates{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){#featuredTemplates{grid-template-columns:repeat(5,minmax(150px,1fr))}}

/* Local travel material library: desktop left rail, small-screen collapsible rail. */
.material-library { min-width:0; }
.material-library h2 { font-size:22px; margin:0 0 8px; }
.material-hint,.material-count { color:#60777d; font-size:13px; line-height:1.6; margin:8px 0 14px; }
.material-library input[type=search],.material-library select { width:100%; box-sizing:border-box; margin:0 0 12px; padding:10px 12px; border:1px solid #dce4e5; background:white; border-radius:9px; color:#163e49; font:inherit; }
.material-filters { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 12px; }
.material-filters button { padding:6px 10px; border:0; background:#f4f6f6; border-radius:7px; font-size:13px; min-height:32px; }
.material-filters button[aria-pressed=true] { background:#174f4b; color:white; }
.material-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.material-card { display:flex; flex-direction:column; min-width:0; padding:0; border:1px solid #e9eeee; border-radius:10px; overflow:hidden; text-align:left; background:white; cursor:grab; }
.material-card img { width:100%; height:160px; display:block; object-fit:contain; padding:10px; box-sizing:border-box; background-color:#fafafa; background-image:conic-gradient(#edf0ef 25%,transparent 0 50%,#edf0ef 0 75%,transparent 0); background-size:16px 16px; }
.material-card span { padding:9px; font-size:13px; line-height:1.4; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:100%; box-sizing:border-box; }
.material-card:hover { border-color:#799e98; box-shadow:0 4px 14px #163e4914; }
.material-card:focus-visible { outline:3px solid #dba51c; outline-offset:2px; }
.material-library>button { margin-top:16px; width:100%; }
.material-editor-panel { background:white; border:1px solid #e4eaea; border-radius:14px; padding:16px; min-width:0; position:sticky; top:114px; max-height:calc(100vh - 140px); overflow:auto; box-sizing:border-box; }
.material-editor-panel .material-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.material-editor-panel .material-card img { height:100px; padding:5px; }
.material-editor-panel .material-card span { font-size:11px; padding:6px; }
.material-editor-panel .material-filters { gap:3px; }
.material-editor-panel .material-filters button { padding:5px 7px; font-size:12px; }
.material-editor-panel h2 { font:700 19px/1.4 sans-serif; }
.material-controls { border-top:1px solid #e2e9e7; padding-top:12px; margin-top:16px; }
.material-controls strong { display:block; margin-bottom:10px; font-size:14px; }
.material-controls select,.material-controls input { width:100%; box-sizing:border-box; }
.material-controls label { font-size:13px; display:block; margin:12px 0; }
.material-controls button { font-size:12px; padding:7px; margin:3px; }
.material-outline { position:absolute; border:2px solid #df9e17; box-sizing:border-box; pointer-events:none; z-index:3; }
.document-preview,.canvas-wrap { position:relative; }
.document-preview canvas,#poster { touch-action:none; }
.workspace:has(.material-editor-panel),.document-workspace:has(.material-editor-panel) { grid-template-columns:220px minmax(0,1fr) 300px; gap:16px; align-items:start; }
.workspace:has(.material-editor-panel)>.preview,.document-workspace:has(.material-editor-panel)>.document-preview { min-width:0; padding:18px; }
.material-editor-panel summary { display:none; }
@media (max-width:1250px) and (min-width:761px){
 .workspace:has(.material-editor-panel),.document-workspace:has(.material-editor-panel) { grid-template-columns:210px minmax(0,1fr); }
 .workspace:has(.material-editor-panel)>.assistant-side,.document-workspace:has(.material-editor-panel)>.document-side { grid-column:2; position:static; width:auto; max-height:none; }
 .material-editor-panel { grid-row:span 2; }
}
@media (max-width:760px){
 .workspace:has(.material-editor-panel),.document-workspace:has(.material-editor-panel) { grid-template-columns:minmax(0,1fr); }
 .material-editor-panel { position:static; max-height:360px; width:100%; padding:12px; }
 .material-editor-panel summary { display:list-item; font-weight:700; cursor:pointer; padding:4px; }
 .material-editor-panel .material-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .material-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .app-nav { overflow-x:auto; }
 .app-nav>button { flex-shrink:0; }
}

.material-controls { margin:0 0 14px; padding:10px 0; border-top:0; border-bottom:1px solid #e2e9e7; }
.material-controls select { padding:8px; border:1px solid #dce4e5; border-radius:7px; background:white; color:#163e49; }
.material-filters button[aria-pressed="true"] { background:#174f4b !important; color:white !important; }
.material-filters button[aria-pressed="false"] { background:#f4f6f6 !important; color:#163e49 !important; }

/* Shared editable layers and view-only canvas zoom, 2026-11-02. */
.editor-viewport{width:100%;min-width:0;max-height:calc(100vh - 260px);min-height:280px;overflow:auto;padding:24px;box-sizing:border-box;background:#fff;border:1px solid #e3e9e7;border-radius:12px;overscroll-behavior:contain}
.editor-stage{position:relative;margin:0 auto;flex:none;line-height:0;touch-action:none}.editor-stage canvas{display:block;border:0;box-shadow:0 2px 12px #183e4914;touch-action:none}
.canvas-edit-actions,.canvas-zoom{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;line-height:1.3}.canvas-edit-actions button,.canvas-zoom button{padding:7px 10px;font-size:13px;min-height:34px;white-space:nowrap}.canvas-zoom output{min-width:48px;text-align:center;font-size:13px}.editor-shortcuts{display:block;color:#677f84;font-size:12px;line-height:1.5;margin:0 0 10px}
.editor-selection{box-sizing:border-box;transform-origin:center;overflow:visible;pointer-events:none;border:2px solid #dd9d25;z-index:4}.editor-handle{position:absolute!important;pointer-events:auto;touch-action:none;width:12px!important;height:12px!important;min-height:0!important;padding:0!important;border:2px solid #b77d0e!important;border-radius:2px!important;background:white!important;margin:0!important;color:#174f4b!important;box-shadow:0 1px 4px #0003;line-height:1!important}.editor-handle.nw{top:-7px;left:-7px;cursor:nwse-resize}.editor-handle.ne{top:-7px;right:-7px;cursor:nesw-resize}.editor-handle.sw{bottom:-7px;left:-7px;cursor:nesw-resize}.editor-handle.se{bottom:-7px;right:-7px;cursor:nwse-resize}.editor-handle.rotate{width:24px!important;height:24px!important;border-radius:50%!important;top:-34px;left:calc(50% - 12px);font-size:18px;cursor:grab}.material-controls label{display:block;font-size:12px;line-height:1.5}.material-controls input[type=number],.material-controls textarea{width:100%;box-sizing:border-box}.material-controls>button{padding:5px 8px;font-size:12px;margin:4px 3px 0 0}.editor-selection[hidden]{display:none!important}
@media(max-width:760px){.editor-viewport{max-height:75vh;padding:20px}.canvas-edit-actions button{font-size:12px;padding:6px 8px}}

/* Brand positioning approved 2026-11-02. */
.home-hero .hero-copy>.brand-positioning{display:block;font-size:13px;font-weight:600;letter-spacing:.08em;color:var(--muted);margin:0 0 14px}

/* Source review stays beside the actual task, not in the template editor. */
#materialList{width:100%;min-width:0}.material-review-file{border-top:1px solid #dde5e5;padding:12px 0}.material-review-card{padding:14px;margin:12px 0;border:1px solid #dde5e5;border-radius:10px;background:#fff}.material-review-card img{display:block;max-width:100%;max-height:190px;object-fit:contain;margin:0 auto}.material-review-card select{max-width:100%;padding:8px}.material-review-card textarea{width:100%}.material-review-card label{font-weight:400}.material-review-card .actions button{font-size:12px}

/* Owner-provided bilingual artwork: preserve the exact glyphs and tracking; display colour follows navigation below.
   The viewport removes the supplied image's outer whitespace without altering the source. */
.app-header .wordmark{position:relative;display:block;flex:0 0 auto;width:108px;height:39.53px;overflow:hidden;color:#15503f;font-size:0;line-height:0;letter-spacing:0;background:#fff}
.app-header .wordmark img{position:absolute;display:block;width:133.887%;max-width:none;height:auto;left:-16.981%;top:-42.268%}
@media(max-width:760px){.app-header .wordmark{width:100px;height:36.6px;font-size:0}}
@media(max-width:360px){.app-header .wordmark{width:96px;height:35.14px}}

/* Shared UI label rule: never strand the final Chinese glyph in card actions. */
:root{--nav-label-ink:#163744}
.app-nav button{color:var(--nav-label-ink)}
.app-header .wordmark{color:var(--nav-label-ink)}
.app-header .wordmark .wordmark-filter{position:absolute;width:0;height:0;overflow:hidden}
.app-header .wordmark img{filter:url(#wordmark-nav-ink)}
#templateGrid .template-card .actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px}
#templateGrid .template-card .actions button{flex:1 0 auto;min-width:max-content;max-width:100%;white-space:nowrap;text-align:center;font-size:12px;line-height:1.4;letter-spacing:0;padding:9px 7px}
@media(max-width:760px){#templateGrid .template-card .actions{flex-direction:column}#templateGrid .template-card .actions button{width:100%;min-width:0}}

/* Reference editing and persistent versions */
.reference-edit-panel{border-top:1px solid #dce5e5;margin:16px 0;padding-top:12px}.reference-region{display:block;width:100%;max-height:520px;touch-action:none;cursor:crosshair;margin:12px 0}.reference-edit-panel button{margin:4px;font-size:14px;white-space:nowrap}.reference-edit-panel input{max-width:100%}.version-dialog{border:1px solid #dce5e5;border-radius:16px;max-width:780px;width:85vw;max-height:85vh;overflow:auto;color:#163744}.version-dialog section{border-top:1px solid #dce5e5;padding:12px 0}.version-dialog section div{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0}.version-dialog button{white-space:nowrap}.version-dialog::backdrop{background:#16374444}

.reference-edit-panel .reference-region{width:auto;height:auto;max-width:100%;max-height:520px;display:block;margin:8px auto;}

.document-side .reference-edit-panel{padding:12px;margin:12px 0;box-shadow:none}.reference-edit-panel h3{font-size:16px;margin:0 0 8px}.reference-edit-panel p{font-size:12px;line-height:1.6}.reference-edit-panel .reference-region{max-height:260px}.reference-edit-panel button{font-size:12px;padding:8px 10px}.version-dialog button:disabled{opacity:.5}

.pilot-account{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px}.pilot-account button{font-size:12px;padding:7px 10px}

/* Public browsing: prompt appears only when a visitor starts creation. */
.pilot-account{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
#loginPrompt{width:min(480px,calc(100vw - 40px));padding:28px;border:0;border-radius:18px;box-shadow:0 20px 80px #173e4b35;color:#173e4b}
#loginPrompt::backdrop{background:#163c4b44}#loginPrompt h2{font-size:24px;margin:0 0 16px}#loginPrompt p{line-height:1.7;margin-bottom:24px}#loginPrompt button{margin-right:10px}#loginPrompt button:first-of-type{background:#19545d;color:white}

/* Explicit work feedback stays compact; no canvas/layout changes. */
.learning-feedback{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.learning-feedback button{font-size:13px;padding:8px 10px;white-space:nowrap}.learning-feedback-dialog{max-width:min(540px,94vw);border:1px solid #d8e3e5;border-radius:16px;padding:24px;color:#183c49}.learning-feedback-dialog h2{font-size:22px}.learning-reasons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.learning-reasons label{display:flex;gap:8px;align-items:center}.learning-reasons input{width:auto}.learning-feedback-dialog details label{display:block;margin:12px 0}.learning-feedback-dialog select{display:block;width:100%;padding:8px}.learning-feedback-dialog .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}

.creation-context{margin:16px 0;padding:14px;border:1px solid #dce4e5;border-radius:10px}.creation-context label{display:inline-flex;gap:10px;align-items:center;margin:14px 20px 0 0}.creation-context select{padding:8px}

#creativeTheme{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:inherit;font:inherit}
#creativeThemeHelp{margin:6px 0 16px}
.flow-progress{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:10px 0 16px;list-style:none}
.flow-progress[hidden]{display:none}
.flow-progress li{border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:13px}
.flow-progress li[data-completed=true]{background:#edf3ee}

.flow-live{margin:12px 0;padding:8px 12px;background:#f1f6f5;border:1px solid var(--line);border-radius:8px}
.flow-live[data-live=true]{position:sticky;top:calc(76px + 8px);z-index:2}
.template-capabilities{display:flex;flex-wrap:wrap;gap:4px 10px;padding:0;margin:0 0 10px;list-style:none;color:#486267;font-size:12px}
.template-capabilities[hidden]{display:none}
.flow-status-line{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.flow-live #flowStatus{margin:0;min-width:0}
#flowElapsed{display:inline-flex;flex-wrap:wrap;gap:4px 10px;font-size:13px;font-variant-numeric:tabular-nums;color:#486267}
#flowStage{color:#173c41}
#sourceBriefCount{margin:4px 0 8px;text-align:right}
#sourceBriefCount[data-limit=true]{font-weight:600}
.flow-live .flow-progress{margin-bottom:0}
@media(max-width:760px){.flow-live[data-live=true]{top:calc(64px + 8px)}}

.quick-create{margin:16px 0}
.quick-create[hidden]{display:none}
#manualFlowSteps>summary{cursor:pointer;font-size:13px;color:#245b61}
#manualFlowSteps>summary[hidden]{display:none}

#creativeThemeOptions>summary{cursor:pointer;margin:8px 0;color:#245b61;font-size:13px}
#creativeThemeOptions>summary[hidden]{display:none}
