:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#1d1d1f;background:#f5f5f7;font-synthesis:none;--blue:#007aff;--muted:#76767c;--line:#ededf1;--card:#fff;--danger:#d92c31}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,label{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--blue);text-decoration:none}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8dc5ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1px;margin-bottom:12px}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:16px}h3{font-size:16px}p{line-height:1.6}.secondary{color:var(--muted);font-size:14px}.fine{font-size:12px;color:var(--muted);line-height:1.6}.block{display:block}.centered{text-align:center}.shell{display:flex;min-height:100dvh}.sidebar{width:230px;background:#fafafc;border-right:1px solid #e9e9ee;padding:34px 22px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:#1d1d1f;font-weight:650;letter-spacing:-.3px;font-size:17px}.brand img{width:39px;height:39px}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#8e8e93;margin-top:6px}nav{display:flex;flex-direction:column;gap:8px;margin-top:46px}.nav-button{border:0;background:none;border-radius:12px;text-align:left;padding:13px 16px;color:#6a6a72;min-height:48px;font-weight:500}.nav-button span{display:inline-block;width:29px;font-size:20px;vertical-align:middle}.nav-button.active{background:#e6f0ff;color:#006ce0}.sidebar-note{margin-top:auto;padding:24px 16px 10px;color:#a0a0a6;font-size:12px;line-height:1.8}.workspace{margin-left:230px;width:calc(100% - 230px)}.topbar{height:78px;display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:0 42px;border-bottom:1px solid #e9e9ed}.mobile-brand{display:none}.badge{font-size:11px;color:#69717f;background:#e8ebf0;padding:6px 10px;border-radius:20px}.badge.live{color:#20784d;background:#e3f3e9}main{max-width:1250px;margin:auto;padding:40px 42px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.page-heading p:last-child{margin-bottom:0}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:#9b9ba4;margin-bottom:12px}.heading-symbol{font-size:68px;color:#e0e8f6;padding-right:20px}.notice{background:#edf3fc;color:#49617f;border:1px solid #e2eaf6;border-radius:12px;padding:13px 16px;font-size:13px;line-height:1.6;margin-bottom:22px}.create-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.card{background:var(--card);border:1px solid #e8e8ee;border-radius:20px;padding:24px;box-shadow:0 3px 12px #1d1d1f02;margin-bottom:22px;min-width:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-title h2{margin:0;display:flex;align-items:center;gap:11px}.step{display:inline-flex;justify-content:center;align-items:center;width:25px;height:25px;border-radius:50%;font-size:12px;color:var(--blue);background:#edf4ff}.segmented{display:flex;background:#f0f0f4;padding:4px;border-radius:11px;margin-bottom:20px;gap:3px}.segmented button{border:0;flex:1;background:none;border-radius:8px;min-height:40px;color:#6f6f76;font-size:13px;font-weight:550;padding:7px 14px}.segmented button.selected{color:#1d1d1f;background:#fff;box-shadow:0 1px 4px #00000015}.segmented.compact{margin:0;min-width:156px}.drop-zone{position:relative;display:flex;flex-direction:column;align-items:center;gap:11px;background:#fafbfd;border:1.5px dashed #d9e0ed;border-radius:15px;padding:34px 16px;text-align:center;cursor:pointer}.drop-zone.dragging{border-color:var(--blue);background:#eff6ff}.drop-zone input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}.drop-zone:focus-within{outline:3px solid #8dc5ff}.upload-icon{color:var(--blue);background:#edf4ff;border-radius:14px;width:52px;height:52px;display:grid;place-items:center;font-size:28px;margin-bottom:3px}.drop-zone strong{font-size:15px}.file-list{margin-top:12px}.file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;border-bottom:1px solid var(--line);padding:7px 0}.file-row span{overflow-wrap:anywhere}.button{border:0;background:#edf1f7;color:#3c526d;min-height:44px;padding:11px 18px;border-radius:12px;font-size:14px;font-weight:550;display:inline-flex;justify-content:center;align-items:center;gap:12px}.button.primary{background:var(--blue);color:white;box-shadow:0 3px 8px #007aff18}.button.subtle{background:transparent;color:#69717c}.button.danger{color:var(--danger);background:#fff0f0}.button.full{display:flex;width:100%;margin-top:18px}.button.small{font-size:12px;padding:9px 12px}.button:active:not(:disabled){transform:scale(.98);filter:brightness(.95)}.text-button{background:none;border:0;color:var(--blue);min-height:44px;font-size:12px;padding:8px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.setting-row p{margin:4px 0 0}.setting-row:first-of-type{padding-top:0}.switch{appearance:none;position:relative;width:46px;height:28px;flex:0 0 46px;background:#e5e5ea;border:0;border-radius:20px;cursor:pointer;transition:background .2s}.switch:after{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}.switch:checked{background:#34c759}.switch:checked:after{transform:translateX(18px)}.guide{background:linear-gradient(140deg,#fff,#f8faff)}.guide-icon{font-size:45px;color:var(--blue);margin-bottom:19px}.guide h2{font-size:20px}.guide-steps{list-style:none;counter-reset:steps;padding:0;margin:26px 0;font-size:13px;color:#6e7580}.guide-steps li{counter-increment:steps;display:flex;align-items:center;gap:12px;margin:16px 0}.guide-steps li:before{content:counter(steps);border:1px solid #dde5ef;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:#8494a8;font-size:11px}.divider{height:1px;background:var(--line);margin:20px 0}.mini-task{padding:11px 0;border-bottom:1px solid var(--line);font-size:13px;display:flex;justify-content:space-between;gap:10px}.mini-task strong{overflow-wrap:anywhere}.empty{text-align:center;color:#96969d;padding:35px 12px;font-size:14px}.search-label{font-size:12px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px;max-height:400px;overflow:auto}.template-option{border:1px solid var(--line);padding:16px 12px;border-radius:12px;display:flex;align-items:center;gap:10px;overflow-wrap:anywhere;font-size:13px;cursor:pointer}.template-option:has(input:checked){background:#edf5ff;border-color:#88bcff}input[type=checkbox]{accent-color:var(--blue);width:18px;height:18px;flex-shrink:0}.switch[type=checkbox]{width:46px;height:28px}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.tool-symbol{font-size:30px;color:var(--blue);background:#eef5ff;display:inline-flex;min-width:50px;height:50px;align-items:center;justify-content:center;border-radius:14px;margin-bottom:22px}.tool-grid .card{display:flex;flex-direction:column}.tool-grid .secondary{min-height:46px}.tool-grid .button.full{margin-top:auto}.tool-grid label{margin-bottom:18px}label{font-size:13px}label:not(.setting-row,.drop-zone,.template-option,.check-label,.file-picker){display:block;margin-top:14px}input:not([type=checkbox],[type=file]),textarea,select{display:block;background:#fafafb;color:#1d1d1f;border:1px solid #dfdfe6;border-radius:10px;padding:12px;width:100%;min-height:44px;outline-offset:2px;margin-top:8px}textarea{resize:vertical}.file-picker{display:block;background:#f8f9fc;border:1px dashed #d8dfea;border-radius:12px;padding:16px;margin:14px 0}.file-picker input{display:block;width:100%;font-size:12px;margin-top:12px}.task-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line)}.check-label{display:flex;align-items:center;gap:8px}.button-row{display:flex;gap:9px;flex-wrap:wrap}.task-item{padding:22px 0;border-bottom:1px solid var(--line)}.task-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.task-title h3{margin:0;overflow-wrap:anywhere}.task-title .fine{margin-top:7px}.task-info{display:flex;gap:12px;align-items:flex-start}.status{font-size:11px;border-radius:7px;padding:6px 8px;background:#f0f1f5;color:#747780;white-space:nowrap}.status.completed{background:#e9f7ed;color:#25894b}.status.failed{background:#fff0f0;color:#c43b40}.status.awaiting_input{background:#edf4ff;color:#007aff}.task-item .button-row{margin-top:14px}.results{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:18px}.result{border:1px solid var(--line);border-radius:12px;overflow:hidden}.result img,.result video{width:100%;max-height:240px;object-fit:contain;display:block;background:#f6f7f9}.result a{display:block;padding:12px;font-size:12px;overflow-wrap:anywhere;min-height:44px}.result .result-placeholder{background:#f6f8fc;text-align:center;padding:30px;font-size:22px;color:#8e9eb0}.editor-heading{display:flex;justify-content:space-between;align-items:center}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.group-section{background:#fafbfd;border:1px solid var(--line);border-radius:13px;padding:16px;margin-top:16px}.group-title{display:flex;align-items:center;justify-content:space-between}.group-title h3{margin:0}.group-section input{background:#fff}.icon-target{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}.icon-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:180px;overflow:auto;margin-top:12px}.icon-choice{min-height:44px;border:1px solid var(--line);border-radius:8px;background:#fafafa;padding:5px}.icon-choice img{width:100%;height:45px;object-fit:contain}.icon-choice span{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-card{max-width:480px}.auth-card .segmented button{padding:7px;font-size:12px}.auth-card form{margin-top:20px}.profile{display:flex;align-items:center;gap:16px;margin-bottom:22px}.profile h2{margin:0 0 5px}.profile .button{margin-left:auto}.avatar{width:54px;height:54px;border-radius:50%;background:#edf4ff;color:var(--blue);font-size:30px;display:grid;place-items:center}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.member-row,.bot-row{border-bottom:1px solid var(--line);padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.bot-row{flex-wrap:wrap}.invite-result{display:block;color:var(--blue);font-size:16px;overflow-wrap:anywhere}.maintenance-form{max-width:650px;background:#fafbfd;padding:20px;border-radius:15px;margin-top:20px}.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:#242932;color:white;border-radius:13px;padding:14px 22px;box-shadow:0 8px 30px #0002;z-index:10;max-width:min(90vw,520px);font-size:14px;line-height:1.6}.toast.error{background:#8a2b34}progress{width:100%;height:8px;margin-top:18px;accent-color:var(--blue)}footer{max-width:1250px;margin:10px auto;padding:0 42px 26px;color:#a1a1a8;font-size:11px;display:flex;justify-content:space-between}
@media(min-width:1500px){main{padding-top:55px}.card{padding:28px}.create-layout{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1100px){.sidebar{width:180px;padding:28px 16px}.brand{font-size:14px}.brand img{width:32px;height:32px}.workspace{margin-left:180px;width:calc(100% - 180px)}main{padding:32px 26px}.topbar{padding:0 26px}.create-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.card{padding:20px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-title .secondary{font-size:11px}footer{padding-inline:26px}}
@media(max-width:820px){.sidebar{width:84px;padding:24px 10px}.brand{justify-content:center}.brand span,.sidebar-note{display:none}.brand img{width:38px;height:38px}.nav-button{padding:10px 4px;font-size:10px;text-align:center}.nav-button span{display:block;width:auto;margin-bottom:4px}.workspace{margin-left:84px;width:calc(100% - 84px)}.create-layout{grid-template-columns:minmax(0,1fr)}.create-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.guide-steps{margin:16px 0}.guide-icon{font-size:28px;margin-bottom:10px}.tool-grid,.admin-grid{gap:16px}.task-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.sidebar{z-index:5;inset:auto 0 0;width:auto;height:calc(66px + env(safe-area-inset-bottom));padding:0 12px env(safe-area-inset-bottom);background:#fafafcf5;border-top:1px solid #e4e4eb;border-right:0;backdrop-filter:blur(16px)}.brand{display:none}nav{margin:0;flex-direction:row;gap:4px;height:66px;align-items:center}.nav-button{flex:1;font-size:10px;padding:5px 4px;border-radius:9px;min-height:52px}.nav-button span{font-size:22px;margin-bottom:2px}.nav-button.active{background:none}.workspace{margin:0;width:100%;padding-bottom:calc(70px + env(safe-area-inset-bottom))}.topbar{height:65px;padding:0 18px;gap:8px}.mobile-brand{display:block;margin-right:auto;font-size:14px;font-weight:600}.topbar .button{padding:10px;font-size:12px}.badge{font-size:10px;padding:5px 8px}main{padding:28px 18px 10px}h1{font-size:28px}.page-heading{margin-bottom:22px}.heading-symbol{font-size:45px;padding:0}.eyebrow{font-size:9px}.card{padding:20px;border-radius:17px;margin-bottom:18px}.section-title h2{font-size:16px}.section-title .secondary{font-size:10px}.create-layout{display:block}.create-aside{display:block}.create-aside .guide{display:none}.drop-zone{padding:28px 12px}.tool-grid,.admin-grid{display:block}.field-grid{grid-template-columns:1fr}.template-grid{gap:9px}.template-option{padding:14px 9px;font-size:12px}.task-title{gap:8px}.task-item .button-row .button{flex:1}.status{font-size:10px}.task-toolbar .button-row{width:100%}.task-toolbar .button-row .button{flex:1}.results{grid-template-columns:repeat(2,minmax(0,1fr))}.toast{bottom:calc(84px + env(safe-area-inset-bottom))}.member-row{font-size:13px}.bot-row .button-row{gap:5px}footer{padding:8px 18px 15px}.icon-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.auth-card .segmented button{font-size:11px}.setting-row .segmented{min-width:130px}.tool-grid .button.full{margin-top:18px}}
.coop-actions{margin-top:18px;align-items:center}.coop-manifest .file-row{padding:14px 0}.coop-manifest strong{overflow-wrap:anywhere}.coop-history-item{padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.page-heading > .button { flex-shrink: 0; white-space: nowrap; }

.clipboard-input{position:fixed;top:0;left:0;width:1px;height:1px;padding:0;border:0;opacity:0;font-size:16px}

#view-cooperation{position:relative}#view-cooperation>.page-heading{margin-bottom:0}.coop-connection>summary{display:none}.coop-connection.paired{position:relative;margin-bottom:24px;z-index:2}.coop-connection.paired>summary{display:inline-flex;list-style:none;cursor:pointer;font-size:12px;padding:0;min-height:32px}.coop-connection>summary::-webkit-details-marker{display:none}.coop-connection.paired>.card{position:absolute;left:0;top:40px;width:min(620px,calc(100vw - 140px));box-shadow:0 12px 40px #0002}.coop-connection.paired .field-grid{grid-template-columns:1fr}.coop-connection.paired .coop-actions{flex-wrap:wrap}
@media(max-width:560px){.coop-connection.paired>.card{width:calc(100vw - 36px)}}

.mobile-brand img{width:28px;height:28px;vertical-align:middle;margin-right:7px}

#coop-batch [data-coop-cancel]{min-height:32px;padding:6px 10px;border-radius:8px;font-size:12px;line-height:1.4;white-space:nowrap;flex-shrink:0}
#coop-batch .coop-manifest .file-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 12px;padding:9px 0}
#coop-batch .coop-manifest .file-row>div{min-width:0;grid-column:1;grid-row:1 / span 2}
#coop-batch .coop-manifest .file-row>.status{grid-column:2;grid-row:1;justify-self:center}
#coop-batch .coop-manifest .file-row>[data-coop-individual]{grid-column:3;grid-row:1 / span 2}
#coop-batch .coop-manifest .file-row>[data-coop-cancel]{grid-column:2;grid-row:2;justify-self:center;width:auto;background:#f0f1f5;color:#747780;padding:6px 8px;border-radius:7px;font-size:11px;font-weight:400}
#coop-batch .coop-manifest .file-row>[data-coop-cancel]:hover{background:#e6e7ed}
#coop-batch [data-coop-editor]{padding:20px;margin-bottom:16px}
#coop-batch [data-coop-editor] .section-title{margin-bottom:12px;align-items:flex-start}
#coop-batch [data-coop-editor] .section-title h2{min-width:0;overflow-wrap:anywhere}
#coop-batch [data-coop-editor] .group-section{padding:14px;margin-top:12px}
#coop-batch [data-coop-editor] .group-section h3{margin:0 0 10px;font-size:14px}
#coop-batch [data-coop-editor] .field-grid{gap:12px 16px}
#coop-batch [data-coop-editor] .field-grid>label{margin-top:0;min-width:0}
.coop-toolbar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px 24px;margin-bottom:24px}
.coop-toolbar .coop-connection{width:100%}
.coop-toolbar .coop-connection.paired{width:auto;margin-bottom:0;flex:none}
.coop-auto{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:220px}
#coop-auto .coop-auto-toggle{display:flex;align-items:center;gap:8px;margin:0;min-height:32px;font-size:12px;line-height:18px;white-space:nowrap;cursor:pointer}
#coop-auto .coop-auto-toggle input{width:18px;height:18px;margin:0;flex:none;cursor:pointer}
.coop-auto-box{flex:0 1 180px;min-width:0;max-width:100%}
#coop-auto .coop-auto-label{display:block;margin:0;font-size:12px}
#coop-auto-content{display:block;width:100%;resize:vertical;background:#fff;border:1px solid #dcdfe6;border-radius:10px;padding:10px 12px;margin-top:0}
#coop-auto-status{margin:6px 0 0}
#coop-batch .coop-group-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#coop-batch .coop-custom-groups{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0}
#coop-group-count{width:84px;min-width:0;min-height:44px;margin:0;padding:10px 12px;background:#fff}
@media(max-width:560px){#coop-batch .coop-group-actions>.button{flex:1 1 130px}#coop-batch .coop-custom-groups{width:100%}#coop-batch .coop-custom-groups>.button{flex:1}#coop-group-count{font-size:16px}}
#coop-batch [data-coop-editor] input{margin-top:6px;padding:10px 12px}
#coop-batch [data-coop-editor]>p.fine{margin:10px 0 8px}
#coop-batch [data-coop-editor]>details{margin-top:8px}
@media(pointer:coarse){#coop-batch [data-coop-cancel]{min-height:44px}}
@media(max-width:560px){
  #coop-batch [data-coop-cancel]{min-height:44px}
  #coop-batch .coop-manifest .file-row{grid-template-columns:minmax(0,1fr) auto auto;gap:4px 6px;padding:8px 0}
  #coop-batch .coop-manifest .file-row>div{grid-column:1;grid-row:1 / span 2}
  #coop-batch .coop-manifest .file-row>.status{grid-column:2;grid-row:1;justify-self:center}
  #coop-batch .coop-manifest .file-row>[data-coop-cancel]{grid-column:2;grid-row:2;justify-self:center}
  #coop-batch [data-coop-editor]{padding:16px}
  #coop-batch [data-coop-editor] .group-section{padding:12px}
  #coop-batch [data-coop-editor] input{font-size:16px}
}

#coop-batch [data-coop-editor] .section-title h2{flex-wrap:wrap}

#coop-batch .coop-manifest .file-row{grid-template-columns:minmax(100px,180px) minmax(0,1fr) auto auto}
#coop-batch .coop-manifest .file-row>.coop-previews{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#coop-batch .coop-manifest .file-row>.status,#coop-batch .coop-manifest .file-row>[data-coop-cancel]{grid-column:3}
#coop-batch .coop-manifest .file-row>[data-coop-individual]{grid-column:4}
.coop-previews figure{margin:0;text-align:center;flex:0 0 120px}
.coop-previews figure button{display:flex;align-items:center;justify-content:center;width:100%;height:120px;padding:0;border:1px solid var(--line);border-radius:10px;background:#f6f7f9;overflow:hidden}
.coop-previews img{width:100%;height:100%;object-fit:contain}
.coop-previews figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.coop-previews>p{margin:0;flex-basis:100%}
#coop-batch .coop-manifest .file-row>.status{align-self:end}
#coop-batch .coop-manifest .file-row>[data-coop-cancel]{align-self:start}
@media(max-width:820px){
  #coop-batch .coop-manifest .file-row{grid-template-columns:minmax(0,1fr) auto auto}
  #coop-batch .coop-manifest .file-row>.coop-file-name{grid-column:1;grid-row:1 / span 2}
  #coop-batch .coop-manifest .file-row>.coop-previews{grid-column:1 / -1;grid-row:3}
  #coop-batch .coop-manifest .file-row>.status,#coop-batch .coop-manifest .file-row>[data-coop-cancel]{grid-column:2}
  #coop-batch .coop-manifest .file-row>[data-coop-individual]{grid-column:3}
  .coop-previews figure{flex-basis:120px}.coop-previews figure button{height:120px}
}
.coop-preview-dialog{padding:0;border:0;border-radius:16px;width:min(900px,94vw);max-height:92dvh;background:#f6f7f9;box-shadow:0 16px 60px #0004}
.coop-preview-dialog::backdrop{background:#0009}
.coop-preview-content{padding:16px}
.coop-preview-content .button-row{justify-content:flex-end;margin-bottom:12px}
.coop-preview-content img{display:block;width:100%;max-height:calc(92dvh - 100px);object-fit:contain}
body:has(.coop-preview-dialog[open]){overflow:hidden}

.coop-file-name .coop-signature-type{display:table;margin-top:8px;padding:5px 10px;border-radius:7px;background:#f0f1f5;color:#747780;font-size:13px;font-weight:650;white-space:nowrap}

.coop-history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}.coop-history-heading h2{margin:0}.coop-history-filters{display:flex;gap:4px;padding:4px;background:#f0f1f5;border-radius:12px;max-width:100%}.coop-history-filters button{border:0;background:none;color:#747780;padding:10px 14px;min-height:44px;border-radius:9px;font-size:13px;white-space:nowrap}.coop-history-filters button.selected{background:#fff;color:var(--blue);box-shadow:0 1px 4px #0001}#coop-history .coop-history-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0}#coop-history .coop-history-item:last-child{border-bottom:0}#coop-history .coop-history-file strong{min-width:0;overflow-wrap:break-word;word-wrap:break-word;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.coop-history-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.coop-history-actions .button{white-space:nowrap}
@media(max-width:560px){.coop-history-heading{align-items:flex-start;gap:14px;margin-bottom:8px}.coop-history-filters{width:100%}.coop-history-filters button{flex:1;padding:10px 8px}#coop-history .coop-history-item{align-items:flex-start;flex-direction:column;gap:10px;padding:16px 0}.coop-history-actions{align-self:flex-end}}

.coop-history-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}#coop-history .coop-history-file{display:flex;align-items:flex-start;gap:10px;min-width:0;margin:0;cursor:pointer}#coop-history .coop-history-file input{margin:3px 0 0}

#coop-batch .coop-manifest .file-row>.status.awaiting_input,#coop-batch .coop-manifest .file-row>[data-coop-add-file-group],#coop-batch .coop-manifest .file-row>[data-coop-cancel]{width:60px;height:28px;min-height:0;padding:6px 8px;border-radius:7px;font-size:11px;font-weight:400;line-height:16px;text-align:center}
#coop-batch .coop-manifest .file-row>[data-coop-add-file-group]{grid-column:3;grid-row:2;justify-self:center}
#coop-batch .coop-manifest .file-row>[data-coop-cancel]{grid-row:3}
#coop-batch .coop-manifest .file-row>.coop-file-name,#coop-batch .coop-manifest .file-row>.coop-previews,#coop-batch .coop-manifest .file-row>[data-coop-individual]{grid-row:1 / span 3}
@media(max-width:820px){
  #coop-batch .coop-manifest .file-row>[data-coop-add-file-group]{grid-column:2}
  #coop-batch .coop-manifest .file-row>.coop-previews{grid-row:4}
}

#view-create .create-layout{display:block;max-width:900px;margin:0 auto}#view-create .page-heading{max-width:900px;margin:0 auto 28px}#view-create .template-grid{max-height:320px;overflow-y:auto;padding:4px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}#view-create .template-option{min-width:0}#view-create .template-option span{overflow-wrap:anywhere}#view-create .template-option:has(input:checked){background:#edf4ff;border-color:#8dc5ff}#view-create .template-history summary{cursor:pointer;font-size:14px;font-weight:550;display:flex;align-items:center;gap:12px}#view-create .template-history[open] summary{margin-bottom:20px}#view-create .task-item:last-child{border-bottom:0;margin-bottom:0}#view-create .editor-heading{flex-wrap:wrap;gap:8px}

.template-row{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--border,#e9e9ee)}.template-row:last-child{border-bottom:0}.template-row-name{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;max-width:calc(100% - 170px)}.template-row-name strong{overflow-wrap:anywhere}.template-row>.button{margin-left:auto}.template-thumbnail{width:130px;min-height:80px;text-align:center;font-size:12px}.template-thumbnail img{width:130px;height:100px;object-fit:contain;border-radius:8px;background:#f6f6f8}.template-editor-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.4fr);gap:24px}.template-editor-preview{position:sticky;top:20px;align-self:start}.template-editor-preview img{width:100%;max-height:600px;object-fit:contain;background:#f6f6f8;border-radius:10px}.field-original{display:block;font-size:12px;color:var(--muted);font-weight:normal;overflow-wrap:anywhere;margin:5px 0}.template-editor-layout .field-grid{grid-template-columns:1fr}
@media(max-width:700px){.template-row{gap:10px;flex-wrap:wrap}.template-row-name{max-width:calc(100% - 45px)}.template-thumbnail,.template-thumbnail img{width:90px}.template-thumbnail img{height:75px}.template-row>.button{margin-left:auto}.template-editor-layout{grid-template-columns:1fr}.template-editor-preview{position:static}.template-editor-preview img{max-height:320px}}

.template-inline-fields{flex:1;min-width:180px;display:grid;gap:12px}.template-inline-fields label{display:flex;flex-direction:column;font-size:13px;gap:4px}.template-inline-fields input{width:100%;padding:10px;border:1px solid #ddd;border-radius:8px}.template-inline-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;width:124px;flex-shrink:0}.template-inline-actions>.button{width:100%;min-height:48px}.template-inline-actions>.fine{text-align:center}.template-row-name{flex-shrink:0;width:160px}.template-thumbnail,.template-thumbnail img{width:160px}.template-thumbnail img{height:150px}@media(max-width:700px){.template-inline-fields{flex-basis:100%}.template-inline-actions{width:124px;margin-left:auto}}

.template-preview-dialog{border:0;border-radius:14px;padding:50px 18px 18px;max-width:95vw;max-height:95dvh;background:#f6f6f8}.template-preview-dialog::backdrop{background:#000a}.template-preview-dialog>img{display:block;max-width:88vw;max-height:80dvh;object-fit:contain}.preview-close{position:absolute;right:12px;top:10px}

#coop-unified-toggle{min-height:44px;flex-shrink:0}#coop-unified-toggle[aria-pressed=true]{background:#e6f0ff;color:var(--blue)}
#coop-batch .coop-template-row{align-items:flex-start;gap:20px;padding:20px 0;margin-bottom:0}#coop-batch .coop-template-row:first-child{padding-top:0}#coop-batch .coop-template-row:last-child{padding-bottom:0}#coop-batch .coop-template-row .coop-signature-type{padding:5px 10px;border-radius:7px;font-size:13px;font-weight:650;white-space:nowrap}#coop-batch .coop-template-row .template-row-name{max-width:none;width:160px}#coop-batch .coop-template-row .coop-previews{width:100%}#coop-batch .coop-template-row .coop-previews figure{width:100%}#coop-batch .coop-template-row .coop-previews button{height:150px}#coop-batch .coop-template-row .coop-previews figcaption,#coop-batch .coop-template-row .coop-previews>p{display:none}#coop-batch .coop-template-row .template-inline-fields{min-width:0}#coop-batch .coop-template-row label{margin-top:0}#coop-batch .coop-template-row .coop-file-group{display:grid;gap:16px}#coop-batch .coop-template-row .coop-file-group+.coop-file-group{border-top:1px solid var(--line);padding-top:16px}#coop-batch .coop-template-row .coop-file-group h3{margin:0;font-size:14px}#coop-batch .coop-template-row .template-inline-actions{width:100px}#coop-batch .coop-template-row .template-inline-actions .status{text-align:center;white-space:normal}#coop-batch .coop-template-row [data-coop-cancel]{min-height:44px}
@media(max-width:700px){#coop-batch .coop-template-row{flex-wrap:wrap;gap:16px}#coop-batch .coop-template-row .template-row-name{width:130px;max-width:100%}#coop-batch .coop-template-row .coop-previews button{height:130px}#coop-batch .coop-template-row .template-inline-fields{flex:1 1 100%;order:2}#coop-batch .coop-template-row .template-inline-actions{margin-left:auto}#coop-batch .coop-template-row input{font-size:16px}.coop-auto{min-width:0;flex-basis:100%}}

.coop-batch-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}#coop-batch .coop-batch-heading-actions #coop-unified-toggle{white-space:nowrap}#coop-batch>.card>.section-title{flex-wrap:wrap}#coop-batch .coop-batch-heading-actions{margin-left:auto}

.sidebar nav{position:relative;isolation:isolate}
.sidebar .nav-button{position:relative;z-index:1;border-radius:999px}
.sidebar .nav-button.active{background:transparent;color:#0062cc}
.nav-capsule{position:absolute;pointer-events:none;border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(204,225,255,.42));border:1px solid rgba(255,255,255,.88);box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #b7d0ec55,0 3px 12px #506b9220;-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);transform-origin:center}
@media(prefers-reduced-motion:reduce){.nav-capsule{animation:none!important}}
.glass-menu{position:relative;isolation:isolate}
.glass-menu>button{position:relative;z-index:1;border-radius:999px}
.glass-menu>button[aria-pressed="true"]{background:transparent;box-shadow:none;color:#0062cc}
.coop-history-filters.glass-menu{background:transparent}
@media(max-width:560px){.glass-menu[aria-label="任务视图"]{flex-wrap:nowrap}.glass-menu[aria-label="任务视图"]>button{flex:1;min-height:44px}}

/* Approved gentle studio surface; workflow styles remain in styles.css. */
:root{--blue:#955368;--muted:#716166;--line:#eee3e5;--card:#fff;--danger:#a23e47;--studio-bg:#fcf9f9;--studio-ink:#393134;--studio-blush:#faecef;color:var(--studio-ink);background:var(--studio-bg);font-size:14px;line-height:1.6}
body{background:var(--studio-bg)}::selection{background:#efd0da;color:#393134}input,textarea{caret-color:var(--blue)}::placeholder{color:#796b70;opacity:1}a{text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}*{scrollbar-color:#cdb6be var(--studio-bg);scrollbar-width:thin}
.shell{display:block}.sidebar{position:relative;inset:auto;width:100%;height:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:18px 32px;border:0;border-bottom:1px solid var(--line);background:#fff;backdrop-filter:none}.brand{display:flex;color:var(--studio-ink);font-size:17px;font-weight:600;gap:10px}.brand img{width:34px;height:34px}.brand span{display:block}.sidebar-note,.mobile-brand{display:none}.sidebar nav{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;height:auto}.sidebar .nav-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}.studio-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar .nav-button.active{color:var(--blue)}.workspace{margin:0;width:100%;padding-bottom:0}.topbar{height:54px;border:0;padding:0 32px;gap:12px;max-width:1280px;margin:auto}.topbar .button{font-size:13px;padding:8px 14px;min-height:40px}.badge{background:var(--studio-blush);color:#716166;font-size:12px}.badge.live{background:#edf5ef;color:#336448}main{max-width:1280px;padding:16px 32px 32px;margin:auto}h1{font-size:25px;font-weight:500;letter-spacing:-.02em;margin-bottom:8px}h2{font-size:17px;font-weight:600;letter-spacing:0}h3{font-size:14px}.page-heading{gap:16px;margin-bottom:24px}.secondary{color:var(--muted)}.fine{font-size:12px;color:var(--muted)}footer{max-width:1280px;padding:0 32px 24px;font-size:12px;color:var(--muted)}
.card{border:0;border-radius:14px;box-shadow:none;padding:24px;margin-bottom:20px}.section-title{gap:16px}.button{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--studio-ink);font-size:14px;min-height:44px;padding:10px 16px;font-weight:500}.button:hover:not(:disabled){background:#faf2f4;border-color:#ddc3cb}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover:not(:disabled){background:#804559;border-color:#804559}.button.subtle{background:transparent;border-color:transparent;color:var(--muted)}.button.danger{color:var(--danger);background:transparent;border-color:var(--line)}.button.small{font-size:13px;min-height:44px}.notice{border:0;background:#f8eff2;color:#765562;border-radius:10px;padding:12px 16px;font-size:13px;margin-bottom:18px}.status{font-size:12px;color:var(--muted);background:#f8f1f3;border-radius:6px}.status.awaiting_input{background:var(--studio-blush);color:#955368}.status.completed{color:#336448;background:#edf5ef}.status.failed{color:var(--danger);background:#fff0f1}.empty{color:var(--muted);padding:28px 12px}.step{background:var(--studio-blush);color:var(--blue)}
label{font-size:14px;color:var(--studio-ink)}input:not([type=checkbox],[type=file]),textarea,select{background:#fffdfd;color:var(--studio-ink);border-color:#dfcdd2;border-radius:8px;min-height:44px;font-size:14px}.field-original{color:var(--muted);font-size:12px}.group-section{background:#fff;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0 0}.auth-card{max-width:480px;margin:0 auto 24px}.auth-card .segmented{background:var(--studio-blush)}.auth-card .segmented button{font-size:13px;min-height:44px}.auth-card .segmented button.selected{color:var(--blue);box-shadow:none}.avatar{color:var(--blue);background:var(--studio-blush)}.file-picker,.maintenance-form{background:#fcf5f7;border-color:#dfcdd2}.template-option:has(input:checked),#view-create .template-option:has(input:checked){background:var(--studio-blush);border-color:#c79cab}.template-thumbnail img,.template-editor-preview img,.coop-preview-dialog,.template-preview-dialog{background:#fff7f9}
.nav-capsule{background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,219,228,.5));border:1px solid rgba(255,255,255,.96);box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #d8abb950,0 3px 10px #824b6015;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.glass-menu{background:transparent;gap:4px;padding:3px;border:0}.glass-menu>button,.coop-history-filters button{background:transparent;color:var(--muted);font-size:14px;min-height:44px;padding:10px 16px;border-color:transparent}.glass-menu>button[aria-pressed=true],.coop-history-filters button.selected,#coop-unified-toggle[aria-pressed=true]{background:transparent;color:var(--blue);box-shadow:none}.coop-history-filters.glass-menu{background:transparent}.glass-menu[aria-label="任务视图"]{margin-bottom:20px;width:fit-content}.coop-history-heading{margin-bottom:16px}
#view-cooperation>.page-heading{margin-bottom:16px}.coop-toolbar{margin-bottom:20px;gap:16px 24px}.coop-connection.paired>summary{color:var(--muted);font-size:13px;min-height:44px;padding:8px 12px}.coop-connection.paired>.card{width:min(620px,calc(100vw - 64px));top:48px;box-shadow:0 12px 36px #60414c20}.coop-auto-toggle{font-size:13px;color:var(--muted);min-height:44px;align-items:center}.coop-batch-heading-actions{gap:16px}.coop-batch-heading-actions>.fine{font-variant-numeric:tabular-nums}.coop-batch-heading-actions #coop-fill-mode{flex-wrap:nowrap;margin:0}#coop-fill-mode>button{white-space:nowrap}.coop-batch-heading-actions #coop-mode-slot{max-width:100%}#coop-batch>.card:has(.coop-group-actions){padding-top:18px}#coop-submit{max-width:520px;margin-top:18px}
#coop-batch .coop-file-list{padding:0 24px}#coop-batch .coop-template-row{display:grid;grid-template-columns:135px minmax(0,1fr) 108px;align-items:start;gap:24px;padding:24px 0}#coop-batch .coop-template-row:first-child{padding-top:24px}#coop-batch .coop-template-row:last-child{padding-bottom:24px}#coop-batch .coop-template-row .template-row-name{width:135px;gap:8px}#coop-batch .coop-template-row .template-row-name strong{font-size:13px;font-weight:500}#coop-batch .coop-template-row .coop-previews button{height:135px;background:#fff7f9;border:0;border-radius:10px}#coop-batch .coop-template-row .template-inline-fields{display:block;min-width:0}#coop-batch .coop-template-row .coop-file-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#coop-batch .coop-template-row .coop-file-group h3{grid-column:1/-1}#coop-batch .coop-template-row .template-inline-actions{width:108px;gap:8px}#coop-batch .coop-template-row .template-inline-actions>.button{min-height:44px;padding:10px 8px;font-size:13px}#coop-batch .coop-template-row .coop-signature-type{font-size:12px;font-weight:500}.coop-signature-type{background:#faecef!important;color:#955368!important}#coop-batch .coop-manifest .file-row>.status.awaiting_input,#coop-batch .coop-manifest .file-row>[data-coop-add-file-group],#coop-batch .coop-manifest .file-row>[data-coop-cancel]{width:auto;min-width:76px;height:auto;min-height:44px;font-size:12px;padding:10px 8px;color:var(--muted);background:transparent}.coop-previews figure button{background:#fff7f9}
@media(max-width:820px){.sidebar{padding:16px 24px;gap:16px;flex-wrap:wrap}.sidebar nav{gap:2px}.sidebar .nav-button{padding:10px 14px}.brand{font-size:16px}.topbar{padding:0 24px}main{padding:14px 24px 28px}footer{padding-inline:24px}#coop-batch .coop-template-row{grid-template-columns:110px minmax(0,1fr);gap:20px}#coop-batch .coop-template-row .template-row-name{width:110px}#coop-batch .coop-template-row .coop-previews button{height:110px}#coop-batch .coop-template-row .template-inline-actions{grid-column:2;flex-direction:row;flex-wrap:wrap;width:auto;margin:0}#coop-batch .coop-template-row .template-inline-actions>.button{width:auto}#coop-batch .coop-template-row .coop-file-group{grid-template-columns:1fr}.coop-batch-heading-actions{margin-left:0!important}}
@media(max-width:560px){.sidebar{padding:14px 18px 8px;gap:10px;border-top:0;z-index:auto}.brand{font-size:16px}.brand img{width:30px;height:30px}.sidebar nav{width:100%;height:auto;margin:0;gap:2px}.sidebar .nav-button{flex:1;font-size:13px;min-height:44px;padding:10px 7px;gap:6px}.studio-icon{width:16px;height:16px}.workspace{padding-bottom:env(safe-area-inset-bottom)}.topbar{height:48px;padding:0 18px}.topbar .button{font-size:13px}main{padding:12px 18px 24px}h1{font-size:23px}.card{padding:18px;border-radius:14px;margin-bottom:16px}.page-heading{align-items:flex-start}.page-heading>.button{font-size:13px;padding:8px 12px}footer{padding:0 18px 20px;gap:12px;flex-wrap:wrap}.coop-connection.paired>.card{width:calc(100vw - 36px)}input:not([type=checkbox],[type=file]),textarea,select{font-size:16px}.glass-menu>button{font-size:13px;padding:10px 12px}.glass-menu[aria-label="任务视图"]{width:100%}#coop-fill-mode{width:100%}#coop-fill-mode>button{flex:1}.coop-batch-heading-actions,#coop-mode-slot{width:100%}.coop-history-filters button{font-size:13px}.coop-group-actions{gap:10px}.coop-group-actions>.button{flex:1;font-size:13px}.coop-custom-groups{width:100%}#coop-submit{max-width:none}#coop-batch .coop-file-list{padding:0 16px}#coop-batch .coop-template-row{grid-template-columns:85px minmax(0,1fr);gap:14px;padding:20px 0}#coop-batch .coop-template-row:first-child{padding-top:20px}#coop-batch .coop-template-row:last-child{padding-bottom:20px}#coop-batch .coop-template-row .template-row-name{width:85px;max-width:none}#coop-batch .coop-template-row .coop-previews button{height:85px}#coop-batch .coop-template-row .template-inline-fields{order:initial}#coop-batch .coop-template-row .template-inline-actions{gap:6px}#coop-batch .coop-template-row .template-inline-actions .status{width:100%;text-align:left}.toast{bottom:calc(20px + env(safe-area-inset-bottom))}.auth-card .segmented button{font-size:12px}}

/* Batch work stays adjacent to its reference artworks. */
.coop-unified-work{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.3fr);gap:20px;align-items:start}.coop-unified-work>.coop-gallery{grid-column:1;grid-row:auto;margin:0}.coop-unified-work>[data-coop-editor]{grid-column:2;margin:0!important}.coop-unified-work{margin-bottom:20px}.coop-unified-work .coop-manifest .file-row{display:flex!important;flex-wrap:wrap;gap:10px;padding:18px 0!important;border-bottom:1px solid var(--line)}.coop-unified-work .coop-manifest .file-row:last-child{border:0}.coop-unified-work .coop-file-name{width:100%}.coop-unified-work .coop-previews{width:100%}.coop-unified-work .coop-previews figure{flex-basis:135px;max-width:135px}.coop-unified-work .coop-previews figure button{height:135px}.coop-unified-work .coop-previews>p{display:none}.coop-unified-work .coop-manifest .file-row>[data-coop-individual]{font-size:13px;min-height:44px}.coop-group-settings>summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:44px;padding:10px 0}.coop-group-settings[open] .coop-group-actions{padding:12px 0}.coop-batch-heading-actions>.fine{display:none}.coop-toolbar{align-items:center}.topbar{height:44px}#coop-batch>.card:first-child .notice{margin:14px 0;font-size:12px;background:transparent;padding:0;color:var(--muted)}#coop-batch>.card:first-child .section-title{margin-bottom:0}#coop-batch>.card:first-child:has(+.coop-file-list){margin-bottom:0;border-radius:14px 14px 0 0;padding-bottom:8px}#coop-batch>.coop-file-list{border-radius:0 0 14px 14px}#coop-batch>.card:first-child>.button-row{justify-content:flex-end}#coop-batch>.card:first-child [data-coop-cancel]{background:transparent;border:0;min-height:44px}
@media(max-width:820px){.coop-unified-work{grid-template-columns:1fr}.coop-unified-work>.coop-gallery{grid-column:1;grid-row:auto}.coop-unified-work>[data-coop-editor]{grid-column:1}.coop-unified-work .coop-manifest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.coop-unified-work .coop-manifest .file-row{align-content:start}.coop-unified-work .coop-previews figure{max-width:100%;flex-basis:100%}}
@media(max-width:560px){.coop-unified-work{gap:16px}.coop-unified-work .coop-manifest{grid-template-columns:1fr}.coop-unified-work .coop-manifest .file-row{display:grid!important;grid-template-columns:85px minmax(0,1fr)!important;gap:8px 12px}.coop-unified-work .coop-manifest .file-row>.coop-previews{grid-column:1!important;grid-row:1/span 5!important}.coop-unified-work .coop-manifest .file-row>.coop-file-name{grid-column:2!important;grid-row:1!important}.coop-unified-work .coop-manifest .file-row>.status,.coop-unified-work .coop-manifest .file-row>button{grid-column:2!important;grid-row:auto!important;justify-self:start}.coop-unified-work .coop-previews figure button{height:85px}.coop-unified-work .coop-previews figcaption{display:none}.coop-unified-work .coop-file-name .coop-signature-type{margin-top:4px}.coop-group-settings>summary{font-size:14px}}

.coop-shared-editors{display:grid;gap:20px;min-width:0}.coop-shared-editors>[data-coop-editor]{margin:0!important}
@media(max-width:820px){.coop-unified-work>.coop-shared-editors{grid-column:1;grid-row:1}.coop-unified-work>.coop-gallery{grid-row:2}}
@media(max-width:560px){#coop-batch .coop-unified-work .coop-manifest .file-row>.coop-previews{grid-column:1!important;grid-row:1/span 5!important}#coop-batch .coop-unified-work .coop-manifest .file-row>.coop-file-name{grid-column:2!important;grid-row:1!important}#coop-batch .coop-unified-work .coop-manifest .file-row>.status,#coop-batch .coop-unified-work .coop-manifest .file-row>[data-coop-add-file-group],#coop-batch .coop-unified-work .coop-manifest .file-row>[data-coop-individual],#coop-batch .coop-unified-work .coop-manifest .file-row>[data-coop-cancel]{grid-column:2!important;grid-row:auto!important;justify-self:start}}

/* Template library: artwork first, marked reference after selection. */
#view-create .create-layout,#view-create .page-heading{max-width:none}#view-create .create-main>.card:has(#library-section){background:transparent;padding:0}#view-create .create-main>.card:has(#library-section)>.section-title{display:none}#library-section>.search-label{margin-top:0;margin-bottom:24px}#template-list.template-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 24px}.template-gallery-item{min-width:0}.template-gallery-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:4/5;border:0;border-radius:14px;background:#fff5f7;padding:12px;overflow:hidden}.template-gallery-preview img{position:absolute;inset:0;padding:inherit;display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:8px}.template-preview-fallback{color:var(--muted);font-size:14px}.template-gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.template-gallery-caption strong{font-size:14px;font-weight:500;overflow-wrap:anywhere;min-width:0}.template-gallery-caption .button{white-space:nowrap;flex-shrink:0}.template-library-back{margin-bottom:16px}#template-list .template-selected{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.25fr) 124px;gap:24px;border:0;background:#fff;border-radius:14px;padding:24px}#template-list .template-selected .template-row-name{width:100%;max-width:none}#template-list .template-selected .template-thumbnail{width:100%}#template-list .template-selected .template-thumbnail img{width:100%;height:auto;max-height:580px;object-fit:contain}#template-list .template-selected .template-inline-fields{min-width:0}#template-list .template-selected .template-inline-actions{margin:0}
@media(max-width:820px){#template-list.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}#template-list .template-selected{grid-template-columns:minmax(180px,1fr) minmax(0,1fr)}#template-list .template-selected .template-inline-actions{grid-column:2;width:100%}}
@media(max-width:560px){#template-list.template-gallery{gap:24px 12px}.template-gallery-preview{padding:6px;border-radius:12px}.template-gallery-caption{align-items:stretch;flex-direction:column;gap:8px;margin-top:10px}.template-gallery-caption .button{font-size:13px;padding:9px 8px;width:100%}#template-list .template-selected{grid-template-columns:1fr;padding:18px;gap:18px}#template-list .template-selected .template-thumbnail img{max-height:360px}#template-list .template-selected .template-inline-fields{flex-basis:auto;order:initial}#template-list .template-selected .template-inline-actions{grid-column:1;width:100%}}

/* Distinguish template preview boundaries from the warm page surface. */
.template-gallery-preview{border:1px solid #d8bac4}
.template-gallery-preview:hover{border-color:#b88295}

/* Keep the four primary destinations within reach without covering page content. */
:root{--bottom-nav-height:68px}
.sidebar{padding-bottom:18px;padding-top:max(18px,env(safe-area-inset-top,0px))}
.sidebar nav{position:fixed;inset:auto 0 0;z-index:10;display:flex;justify-content:center;gap:6px;margin:0;width:100%;height:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px));padding:10px max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));border-top:1px solid var(--line);background:var(--card)}
.sidebar .nav-button{flex:1 1 0;max-width:180px;min-width:0;min-height:44px;padding:10px 7px}
.workspace{padding-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px))}
.toast{bottom:calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom,0px));width:max-content;max-width:min(520px,calc(100vw - 32px));padding:10px 14px;border-radius:10px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;box-shadow:0 4px 16px #0002}
html{scroll-padding-bottom:calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom,0px))}
@media(max-width:560px){.sidebar{padding:14px 18px;padding-top:max(14px,env(safe-area-inset-top,0px))}.sidebar nav{gap:2px}.sidebar .nav-button{font-size:13px;gap:6px}}

/* Account output records */
.output-records { min-width: 0; }
.output-records-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.output-records-switch { display:flex; gap:4px; max-width:100%; }
.output-records-switch button { min-height:44px; padding:8px 18px; border:0; border-radius:999px; background:transparent; color:#393134; cursor:pointer; font:inherit; }
.output-records-switch button[aria-pressed="true"] { background:#faecef; color:#804559; }
.output-records-switch button:hover { background:#fff7f9; }
.output-records-figures { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin:28px 0 16px; }
.output-records-figures p { margin:0; color:#716166; font-size:14px; }
.output-records-figures strong { font-size:clamp(28px,5vw,48px); font-weight:500; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.output-records-income { color:#955368; }
.output-records-detail { margin-top:24px; padding-top:20px; border-top:1px solid #eee3e5; }
.output-records-money { display:flex; justify-content:space-between; gap:16px; padding:16px 0; font-variant-numeric:tabular-nums; }
.output-records-money span { min-width:0; overflow-wrap:anywhere; }
#record-status:empty { display:none; }
@media(max-width:560px) { .output-records-heading { gap:12px; } .output-records-heading:first-child h2 { width:100%; } .output-records-switch { width:100%; } .output-records-switch button { flex:1; } .output-records-figures { gap:16px; margin-top:24px; } }

.template-library-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.template-library-controls strong{flex:1;min-width:0;overflow-wrap:anywhere}.template-library-controls .button{min-height:44px}
.template-folders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin-bottom:24px}.template-folders:empty{display:none}.template-folder{display:flex;align-items:center;gap:12px;min-height:88px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--studio-ink);text-align:left}.template-folder svg{width:32px;height:32px;flex-shrink:0;fill:none;stroke:var(--blue);stroke-width:1.5;stroke-linejoin:round}.template-folder>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}.template-folder:hover{background:var(--studio-blush)}

.template-fill-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.template-fill-toolbar>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.template-picked .template-gallery-preview{border:2px solid var(--blue);background:var(--studio-blush)}
.template-picked .template-gallery-caption .button{background:var(--blue);color:var(--card)}
.template-action-bar{position:sticky;bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px) + 12px);z-index:3;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px;padding:12px 16px;background:var(--card);border:1px solid var(--line);border-radius:14px}
.template-action-bar>span{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}
#template-list .template-selected{margin-bottom:20px;scroll-margin-bottom:180px}
#template-list input{scroll-margin-bottom:180px}
@media(max-width:820px){.template-action-bar{position:static;gap:8px}}
@media(max-width:560px){.template-fill-toolbar>strong{flex-basis:calc(100% - 130px)}.template-action-bar{padding:10px;bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px) + 8px)}.template-action-bar .button{padding:10px 12px}.template-action-bar>span{font-size:12px}.template-library-controls{gap:8px}.template-library-controls .button{padding:10px 12px}}
body:has(#view-create:not([hidden]) #template-selection-bar:not([hidden])) .toast{bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px) + 120px)}

#template-auto{margin-bottom:20px}
#template-auto{display:block}
#template-auto .coop-auto-toggle{display:flex;align-items:center;gap:8px;margin:0;min-height:44px;cursor:pointer}
#template-auto .coop-auto-label{margin:0}
#template-auto .coop-auto-box{width:100%;max-width:640px}
#template-auto-content{margin-top:0}
@media(max-width:700px){#template-auto-content,#template-list [data-template-field]{font-size:16px}}

#template-list .template-content-group+.template-content-group{border-top:1px solid var(--line);padding-top:16px}
#template-list .template-content-group .group-title h3{margin:0;font-size:14px;font-weight:600}
#template-list .template-content-group .group-title .button{padding:10px 12px}
.template-image-search{margin:0 0 24px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.template-image-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.template-image-heading h2{margin:0;font-size:17px}
.template-image-search:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.template-image-upload{display:flex;align-items:center;gap:20px;margin-top:16px}
.template-image-upload>img{width:100px;height:110px;object-fit:contain;border-radius:10px;background:var(--card);flex-shrink:0}
.template-image-upload .file-picker{flex:1;min-width:0;margin:0;background:var(--card);border-color:#dfcdd2}
.template-image-upload .fine{display:block;margin-top:10px}
.template-image-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin-top:20px}
.template-image-results:empty{display:none}
.template-image-results .template-gallery-caption>div{min-width:0}
.template-image-results .fine{margin:4px 0 0}
@media(max-width:820px){.template-image-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}}
@media(max-width:560px){.template-image-search{padding:16px 0}.template-image-upload{align-items:flex-start;gap:12px;flex-wrap:wrap}.template-image-upload>img{width:76px;height:84px}.template-image-upload .file-picker{flex-basis:220px}.template-image-results{gap:20px 12px}}

.replacement-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.replacement-field-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.replacement-field .keep-original{display:inline-flex;flex-direction:row;align-items:center;gap:6px;min-height:44px;margin:0;font-size:12px;color:var(--muted);cursor:pointer}
.replacement-field .keep-original input{width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--blue)}
.replacement-field>input:disabled{background:var(--studio-blush);cursor:not-allowed}
