@font-face{font-family:Studio;src:local("Microsoft YaHei"),local("PingFang SC");font-display:swap}*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:#f7f5f2;color:#292726;font-family:Inter,"PingFang SC",Studio,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #dedbd6;background:#fff;color:inherit;border-radius:10px;min-height:40px;padding:9px 16px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.35;transition:background .15s,box-shadow .15s,transform .15s}button:hover:not(:disabled){background:#f2eeeb;border-color:#c8c1ba}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #cda6ae;outline-offset:3px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:0;border-color:#9c5361;box-shadow:0 0 0 3px #953d4e12}h1,h2,h3,h4,p{margin:0}h1{font-size:30px;line-height:1.35;letter-spacing:-.7px;font-weight:650}h2{font-size:21px;line-height:1.45;letter-spacing:-.4px;font-weight:650}h3{font-size:16px;line-height:1.5;font-weight:650}small{font-size:12px}img,video{max-width:100%}svg.icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.primary{background:#913e4e;border-color:#913e4e;color:white}.primary:hover:not(:disabled){background:#7d3040;border-color:#7d3040;box-shadow:0 3px 10px #913e4e15}.secondary{background:#fff}.quiet{border-color:transparent;background:transparent;color:#775c60}.quiet:hover:not(:disabled){border-color:transparent;background:#f5eeec}.danger{color:#ad4038;background:#fff7f6;border-color:#f0d1ce}.compact{min-height:36px;padding:7px 15px;font-size:13px}.icon-button{border:0;padding:8px;width:36px;height:36px;min-height:36px;background:transparent}.muted,.subtle{color:#8d8781}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:600;letter-spacing:1.8px;color:#986e75}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;border-right:1px solid #eae6e0;background:#fbfaf8;padding:28px 18px 15px;display:flex;flex-direction:column;z-index:50;overflow-y:auto}.brand{display:flex;gap:11px;align-items:center;font-size:22px;letter-spacing:1px;font-weight:700;padding:0 12px}.brand small{display:block;color:#98908a;font-size:10px;letter-spacing:2px;font-weight:400;margin-top:0}.brand-symbol{width:38px;height:42px;display:grid;place-items:center;color:#913e4e}.brand-symbol .icon{width:34px;height:34px;stroke-width:1.1;fill:#913e4e0a}.new-create{margin:27px 8px 22px;min-height:43px;gap:10px;border-radius:11px}.nav-group{margin:0 0 21px}.nav-label{display:block;padding:0 16px;margin-bottom:8px;font-size:10px;letter-spacing:1.3px;color:#aaa19a}.nav-link{display:flex;align-items:center;gap:12px;padding:10px 15px;min-height:42px;border-radius:9px;margin:2px 0;color:#706962;position:relative;font-size:13px}.nav-link .icon{width:18px;height:18px;stroke-width:1.6}.nav-link:hover{background:#f2eeea;color:#4f4542}.nav-link.active{background:#eee3e2;color:#8e3b4b;font-weight:600}.nav-link.active:after{content:"";position:absolute;right:13px;top:18px;width:5px;height:5px;border-radius:50%;background:#a66571}.sidebar-bottom{margin-top:auto;padding-top:24px}.help-link{display:flex;align-items:center;gap:10px;padding:12px 16px;color:#918982;font-size:12px}.help-link span{margin-left:auto}.user-card{display:flex;width:100%;padding:13px 10px;border:0;background:#f2eeea;border-radius:12px;text-align:left;gap:9px}.avatar{background:#e6d8d5;color:#8c5260;width:33px;height:33px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:600;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.user-copy{min-width:0;flex:1}.user-copy strong{font-size:12px;display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:128px}.user-copy small{display:block;font-size:9px;color:#a1968e;margin-top:3px}.user-card>.icon{width:15px}.main-shell{margin-left:230px;min-width:0;flex:1;display:flex;flex-direction:column;min-height:100vh}.topbar{height:76px;position:sticky;top:0;z-index:30;background:#f7f5f2f5;backdrop-filter:blur(10px);border-bottom:1px solid #eae6df;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:18px}.page-location{display:flex;align-items:center;gap:15px;white-space:nowrap}.page-location>span:first-of-type{font-size:13px;font-weight:600}.page-location small{font-size:11px;color:#999088}.header-divider{height:12px;border-left:1px solid #d8d2cb}.top-actions{display:flex;gap:12px;align-items:center}.search-button{background:transparent;border:0;font-size:11px;color:#938a83;min-height:32px;padding:5px 8px}.search-button .icon{width:16px}.search-button kbd{font:10px inherit;background:#eeeae5;padding:1px 5px;border-radius:4px;margin-left:17px}.balance-button{color:#8c5b62;background:#fffaf7;border-color:#e9dfd8;min-height:33px;font-size:11px;padding:6px 12px;border-radius:8px}.balance-button .icon{width:14px;height:14px}#page-content{padding:32px 38px 40px;max-width:1600px;width:100%;margin:0 auto;flex:1;outline:none}.app-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 38px 22px;font-size:10px;color:#aaa098;gap:16px}.app-footer div{display:flex;gap:19px}.mobile-menu,.mobile-nav{display:none}.sidebar-shade{position:fixed;inset:0;border:0;border-radius:0;background:#0005;z-index:45;width:100%;height:100%}.sidebar-shade[hidden]{display:none}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:25px;gap:16px}.page-header p{color:#938a83;margin-top:8px;font-size:13px}.page-header .eyebrow{margin-bottom:9px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:30px 0 16px}.section-heading h2{font-size:18px}.section-heading p{font-size:11px;color:#9d948e}.section-heading a{font-size:11px;color:#8a7771}.toolbar,.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.toolbar.end,.actions.end{justify-content:flex-end}.card{background:#fff;border:1px solid #e9e4de;border-radius:16px;padding:24px;min-width:0}.card>.muted,.card>p{font-size:13px}.card+.card{margin-top:16px}.card .section-heading:first-child{margin-top:0}.card h2+p,.card h3+p{margin-top:7px}.card .toolbar{margin-top:20px}.card>.form-grid{margin-top:20px}.form-grid,.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;color:#605752}.field>span{font-weight:550}.field em{color:#a15461;font-style:normal;margin-left:4px}.field small{color:#a19890;font-size:11px;line-height:1.6;font-weight:400}.field.wide,.wide{grid-column:1/-1}.field input,.field textarea,.field select,input.text-input,textarea.text-input{width:100%;border:1px solid #e2dcd6;border-radius:9px;padding:11px 13px;background:#fff;color:#342d29;min-height:43px;outline:none;font-size:13px;line-height:1.5}.field textarea,textarea.text-input{resize:vertical;min-height:105px}.field input::placeholder,.field textarea::placeholder{color:#b7aea7}.checkbox-field{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}.checkbox-field input{width:17px;height:17px;min-height:17px;accent-color:#913e4e;order:-1}.checkbox-field small{flex-basis:100%;margin-left:27px}.split-layout,.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:22px;align-items:start}.split-layout>.card+.card,.split>.card+.card{margin:0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.grid-2>.card,.grid-3>.card,.grid-4>.card{margin:0}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tool-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #e7e0da;border-radius:14px;padding:22px;min-height:160px;text-align:left;transition:transform .18s,border-color .18s,box-shadow .18s;overflow:hidden;color:inherit;font-weight:400}.tool-card:hover{border-color:#c4a8a6;background:#fff;box-shadow:0 8px 22px #583c2f07;transform:translateY(-3px);cursor:pointer}.tool-card .tool-icon{width:42px;height:42px;background:#f4e9e6;color:#9a5d67;border-radius:12px;display:grid;place-items:center;margin-bottom:16px}.tool-card h3{font-size:15px}.tool-card p{color:#978b83;font-size:11px;line-height:1.8;margin-top:6px}.tool-card .arrow{position:absolute;right:20px;top:24px;color:#c7b9ae}.tool-card .badge{position:absolute;right:16px;top:16px}.tool-card .tags{margin-top:auto;padding-top:14px}.tags,.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{min-height:31px;border-radius:7px;padding:6px 13px;font-size:11px;color:#85776f;background:#fff;border:1px solid #e8e1d9}.chip.active,.chip[aria-pressed=true]{background:#8e3e4f;color:#fff;border-color:#8e3e4f}.badge{font-size:10px;padding:3px 8px;background:#f5efea;color:#9b7e6a;border:1px solid #eadfd4;border-radius:5px;display:inline-flex;align-items:center;gap:5px;line-height:1.4}.notice{background:#faf4e8;border:1px solid #eee0c3;color:#947d53;border-radius:10px;padding:12px 15px;font-size:12px;line-height:1.8;margin:16px 0}.notice.error{background:#fff3f1;border-color:#efcec9;color:#a74d41}.notice.success{background:#eff7f1;border-color:#d9e7dc;color:#557c60}.status{display:inline-flex;border-radius:5px;padding:3px 8px;font-size:10px;font-weight:500}.status-success{color:#538369;background:#eff6f0}.status-error{color:#b76a5f;background:#fcf1ed}.status-neutral{color:#918174;background:#f4f0e9}.status-row{display:flex;gap:10px;align-items:center;margin:10px 0}.hero{background:#eee6df;border:1px solid #e2d6cb;border-radius:18px;padding:34px 38px;display:grid;grid-template-columns:1fr 260px;gap:25px;min-height:230px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 75% 15%,#fff9ed8a,transparent 65%);pointer-events:none}.hero-content{z-index:1;position:relative}.hero .eyebrow{font-size:9px;letter-spacing:2px;color:#ad897a;margin-bottom:16px}.hero h1{font-size:29px;line-height:1.5;letter-spacing:.1px;color:#4d3931}.hero h1 span{color:#965264}.hero p{color:#a48c7d;font-size:12px;margin:12px 0 22px}.hero-art{position:relative;min-height:175px;align-self:center}.art-card{position:absolute;width:118px;height:150px;background:#fbf6ef;border:1px solid #cdb8a6;border-radius:13px;box-shadow:4px 11px 24px #4d322e12;display:grid;place-items:center;color:#a88872}.art-card .icon{width:45px;height:45px;stroke-width:.8}.art-card:first-child{transform:rotate(-16deg);left:9px;top:15px;background:#dfc6b6}.art-card:nth-child(2){transform:rotate(4deg);left:92px;top:-2px;background:#f9f3e8}.art-card:nth-child(3){width:67px;height:67px;border-radius:19px;right:15px;bottom:12px;transform:rotate(14deg);color:#fff8f1;background:#9a6370;border-color:#895964;box-shadow:5px 10px 14px #6a3b461a}.art-card:nth-child(3) .icon{width:29px;height:29px}.home-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:18px}.stat-card{display:flex;align-items:center;gap:13px;border:1px solid #e8e2dc;background:#fdfbf8;border-radius:12px;padding:15px 18px}.stat-card>.icon{color:#b5968d;width:20px}.stat-card strong{display:block;font-size:18px;font-weight:650;line-height:1.4}.stat-card small{font-size:10px;color:#9f9389}.stat-card .stat-help{font-size:10px;margin-left:auto;color:#b1a398}.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:23px}.home-main .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-list{display:flex;flex-direction:column;margin-top:12px}.quick-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f0ebe5}.quick-row:last-child{border:0}.quick-row>.icon{width:17px;color:#a88f7f}.quick-row>div{flex:1;min-width:0}.quick-row h4{font-size:12px;font-weight:550}.quick-row p{font-size:10px;color:#a3998f;margin-top:3px}.quick-row .arrow{width:13px;color:#c5b7aa}.guide-card{background:#f0ebe4;border:1px solid #e7ddcf;border-radius:14px;padding:23px;margin-top:20px}.guide-card h3{font-size:15px;margin:13px 0 8px}.guide-card p{font-size:11px;line-height:1.8;color:#a18d7d}.guide-card .icon{color:#a9866d}.guide-card a{display:flex;align-items:center;gap:6px;color:#98735f;font-size:11px;margin-top:20px}.home-aside>.section-heading{margin-top:30px}.home-aside .card{padding:18px}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.media-card{border:1px solid #e5ded7;background:#fff;border-radius:13px;overflow:hidden;min-width:0}.media-card .thumb{aspect-ratio:4/3;background:#eee8e2;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.media-card .thumb img,.media-card .thumb video{width:100%;height:100%;object-fit:cover}.media-card .thumb .icon{width:35px;height:35px;color:#b6a595;stroke-width:1}.media-card-body{padding:14px 15px}.media-card h3{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-card p{font-size:10px;color:#9f9388;margin-top:6px}.media-card .toolbar{gap:6px;margin-top:12px}.media-card .toolbar button{min-height:30px;padding:6px 10px;font-size:10px}.media-card .badge{position:absolute;left:10px;top:10px;background:#fffcf5de}.media-card.selected{border-color:#913e4e;box-shadow:0 0 0 2px #913e4e22}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.template-card{border-radius:13px;overflow:hidden;background:#fff;border:1px solid #e6dfd8}.template-card>img{width:100%;aspect-ratio:3/4;object-fit:cover}.template-card>div{padding:14px}.empty-state,.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 22px;min-height:230px;color:#978b80}.empty-icon{width:57px;height:57px;border-radius:16px;background:#eee8e2;display:grid;place-items:center;color:#b39d89;margin-bottom:16px}.empty-icon .icon{width:27px;height:27px;stroke-width:1.2}.empty-state h3{color:#7c6d62;font-size:14px}.empty-state p{max-width:420px;font-size:12px;line-height:1.9;margin-top:8px}.empty-state .toolbar{justify-content:center;margin-top:20px}.loading-page{display:flex;align-items:center;justify-content:center;gap:13px;min-height:300px;color:#a29990;font-size:12px}.spinner{width:19px;height:19px;border:2px solid #e0d6cf;border-top-color:#985e6b;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-dialog{border:1px solid #e6ded7;border-radius:18px;padding:0;box-shadow:0 25px 80px #2c171b26;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 60px);color:inherit;background:#fcfaf7}.app-dialog.wide-dialog{width:min(950px,calc(100% - 32px))}.app-dialog::backdrop{background:#211c194f;backdrop-filter:blur(3px)}.dialog-head{padding:21px 24px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #ebe4dd;position:sticky;top:0;background:#fcfaf7;z-index:2}.dialog-head h2{font-size:18px}.dialog-body{padding:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.confirmation-copy{max-height:55vh;overflow:auto;font-size:13px;line-height:1.9;color:#78685d}.app-dialog .media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-dialog .field+.field{margin-top:16px}.login-qr{width:185px;height:185px;padding:9px;background:#fff;border-radius:12px;border:1px solid #e9e0d8;margin:20px auto;display:block;object-fit:contain}.login-intro{text-align:center;color:#95887c;font-size:12px;line-height:1.9}.login-mode{border-top:1px solid #e9e1d9;padding-top:17px;margin-top:23px}.login-mode summary{cursor:pointer;color:#8c7264;font-size:12px}.login-mode form{margin-top:18px}.login-state{text-align:center;min-height:24px;font-size:12px;color:#97716d}.login-actions{display:flex;justify-content:center;margin-top:16px;gap:9px}.agreement{font-size:10px;color:#9e9085;text-align:center;margin-top:20px}.agreement a{text-decoration:underline}.toast-region{position:fixed;top:88px;right:25px;z-index:150;display:flex;flex-direction:column;gap:10px;max-width:calc(100vw - 30px);pointer-events:none}.toast{border:1px solid #e2d8ce;border-radius:12px;background:#fffaf4;box-shadow:0 8px 30px #46251d18;padding:13px 18px;max-width:420px;color:#796655;font-size:12px;white-space:pre-wrap}.toast.error{border-color:#ecc9c1;background:#fff5f1;color:#a44d42}.toast.success{border-color:#d2e1d3;background:#f6fcf6;color:#53745a}.prose{font-size:14px;line-height:1.9;word-break:break-word}.prose p{margin:0 0 13px}.prose h3{margin:20px 0 10px}.prose ul,.prose ol{padding-left:23px;margin:10px 0 18px}.prose li{margin:6px 0}.prose pre{background:#f0ece7;border:1px solid #e5ddd5;padding:17px;border-radius:11px;white-space:pre-wrap;font-size:12px;overflow:auto;line-height:1.8}.prose code{background:#eee8e2;border-radius:4px;padding:1px 4px;font-family:Consolas,monospace;overflow-wrap:anywhere}.prose pre code{padding:0;background:transparent}.prose strong{font-weight:650}.chat-layout{max-width:920px;margin:0 auto;display:flex;flex-direction:column;min-height:calc(100dvh - 188px)}.chat-intro{text-align:center;padding:65px 30px 35px}.chat-intro>.icon{width:43px;height:43px;stroke-width:1.1;color:#98606b;margin-bottom:16px}.chat-intro h1{font-size:27px}.chat-intro p{font-size:12px;color:#a09287;margin-top:11px}.chat-suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 auto 40px;width:100%;max-width:750px}.chat-suggestions button{text-align:left;align-items:flex-start;flex-direction:column;font-size:12px;min-height:89px;padding:17px;background:#fff;border:1px solid #e6ded5;color:#7d6a5b;font-weight:500}.chat-messages{flex:1;padding:10px 4px 30px}.chat-message{display:flex;gap:13px;margin:20px 0 28px}.chat-message .chat-avatar{width:29px;height:29px;border:1px solid #e7d7d4;color:#945865;background:#f3e8e5;border-radius:9px;display:grid;place-items:center;flex-shrink:0;margin-top:4px}.chat-avatar .icon{width:17px;height:17px}.chat-message .message-content{min-width:0;max-width:calc(100% - 45px)}.chat-message.user{justify-content:flex-end}.chat-message.user .message-content{background:#ece4df;border-radius:15px 15px 3px 15px;padding:13px 19px;white-space:pre-wrap;font-size:14px;color:#66534a;max-width:80%}.message-tools{display:flex;gap:5px;margin-top:6px}.message-tools button{min-height:28px;font-size:10px;padding:5px 9px;color:#a29286}.chat-composer{position:sticky;bottom:12px;border:1px solid #dcd1c8;background:#fffdf9;border-radius:17px;box-shadow:0 5px 20px #3e28200b;padding:14px 16px 11px}.chat-composer textarea{border:0;outline:0;width:100%;resize:none;background:transparent;font:inherit;font-size:14px;min-height:56px;max-height:180px;line-height:1.7}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#aa9c90;font-size:10px}.composer-tools button{min-height:33px;padding:7px 15px;font-size:12px}.thinking{display:flex;gap:10px;align-items:center;color:#a38e80;font-size:12px;padding-top:10px}.dropzone{border:1px dashed #d9c5b8;background:#fbf7f1;border-radius:12px;padding:24px 18px;text-align:center;cursor:pointer;color:#ad907a}.dropzone.dragover{background:#f4e8e3;border-color:#a57278}.dropzone .icon{width:27px;height:27px;margin-bottom:8px}.dropzone p{font-size:12px;color:#8a7060}.dropzone small{font-size:10px;color:#b29c8b}.dropzone input{width:100%;margin-top:12px}.upload-list{margin-top:10px}.upload-row{padding:10px 12px;display:flex;justify-content:space-between;border:1px solid #e7dfd7;border-radius:8px;font-size:11px;margin-top:6px;gap:10px}.pagination{display:flex;justify-content:center;gap:12px;margin-top:25px;align-items:center;font-size:12px;color:#a2907f}.record-list{display:flex;flex-direction:column;gap:10px}.record-row{display:flex;gap:16px;align-items:center;padding:16px;background:#fff;border:1px solid #e8dfd5;border-radius:10px}.record-row>div{flex:1;min-width:0}.record-row h3{font-size:13px}.record-row p{font-size:11px;color:#9e8d7c;margin-top:4px}.table-wrap{overflow-x:auto;border:1px solid #e7dfd6;border-radius:11px}table{width:100%;border-collapse:collapse;min-width:550px;background:#fff;font-size:12px}th{text-align:left;color:#998676;background:#f9f5ef;font-weight:500}th,td{padding:14px 16px;border-bottom:1px solid #ece5dd}tr:last-child td{border:0}td{color:#6f5c4c}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.summary-item{border-radius:12px;background:#f5eee6;padding:18px;color:#9f8770}.summary-item strong{display:block;font-size:25px;color:#8c5362;margin-top:7px}.summary-item span{font-size:11px}.result-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.result-media figure{margin:0;min-width:0}.result-media img,.result-media video{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:#ece8e3}.result-media audio{width:100%}.result-media figcaption{display:flex;gap:8px;margin-top:10px}.full-image{width:100%;max-height:75vh;object-fit:contain;background:#ece8e3;border-radius:12px}.progress-track{height:6px;background:#ece5dd;border-radius:6px;overflow:hidden;margin:18px 0}.progress-track progress{width:100%;height:6px;accent-color:#9a5967}.person-header{display:flex;align-items:center;gap:17px}.person-header .avatar{width:58px;height:58px;font-size:22px;border-radius:17px}.person-header>div{flex:1}.person-header p{color:#a18d7a;font-size:11px;margin-top:7px}.person-materials{margin-top:25px}.auth-banner{background:#f8f0de;border:1px solid #ebdfbf;padding:18px;border-radius:12px;margin:20px 0;color:#9f8351;font-size:12px;line-height:1.8}.clipboard-fallback{position:fixed;left:-1000px;top:0;width:1px;height:1px}.search-results{display:flex;flex-direction:column;gap:8px;margin-top:18px}.search-result{width:100%;justify-content:flex-start;text-align:left;padding:13px 15px}.search-result>.icon{color:#a47d75}.search-result small{display:block;font-size:10px;color:#ab9a8b}.search-result>div{flex:1}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details summary{cursor:pointer;font-size:12px;color:#977a65}details .field{margin-top:14px}.step-list{display:flex;flex-direction:column;gap:12px}.step-card{padding:18px;border:1px solid #e8ddd1;background:#fdfaf6;border-radius:11px}.step-card h3{font-size:14px}.step-card p{font-size:12px;color:#a28a73;margin-top:8px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric-card{padding:22px;border:1px solid #e5d9ca;border-radius:12px;background:#fffaf4}.metric-card strong{font-size:26px;display:block;color:#965f60}.metric-card span{font-size:11px;color:#ab9178}.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.help-grid .card{margin:0}.account-nav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:23px}.account-nav a{padding:7px 13px;border:1px solid #e5dbd0;background:#fff;border-radius:8px;font-size:11px;color:#9d8068}.account-nav a.active{background:#913e4e;border-color:#913e4e;color:#fff}.asset-pick-actions{position:sticky;bottom:-24px;background:#fcfaf7;padding:16px 0 0;margin-top:20px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #e7dcd0}.asset-picker-card{cursor:pointer}.asset-picker-card input{accent-color:#913e4e}.pending-submission{border-color:#e9cf9f;background:#fffaee}.flow-options{display:flex;flex-wrap:wrap;gap:8px}.flow-options button.active{background:#eee0dc;border-color:#bc8c8e;color:#8a4451}[hidden]{display:none!important}
@media(min-width:1500px){.hero{min-height:250px}.hero h1{font-size:33px}.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-main .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1250px){.sidebar{width:212px;padding-left:13px;padding-right:13px}.main-shell{margin-left:212px}.topbar{padding:0 25px}#page-content{padding:27px 25px 32px}.top-actions{gap:7px}.page-location small,.header-divider{display:none}.home-columns{grid-template-columns:minmax(0,1fr) 225px;gap:18px}.home-main .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid,.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding:30px}.hero h1{font-size:27px}.hero-art{transform:scale(.85);transform-origin:right center}.hero{grid-template-columns:1fr 220px}.stat-card{padding:13px 14px}.stat-card .stat-help{display:none}.app-footer{padding-left:25px;padding-right:25px}}
@media(max-width:1000px){.sidebar{width:192px;padding-left:10px;padding-right:10px}.main-shell{margin-left:192px}.brand{font-size:20px;padding:0 8px}.brand-symbol{width:29px}.brand small{font-size:9px;letter-spacing:1px}.nav-link{font-size:12px;padding:10px 13px;gap:9px}.topbar{padding:0 22px}.search-button kbd{display:none}.search-button span{display:none}#page-content{padding:24px 22px 30px}.home-columns{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.home-aside>.section-heading{display:none}.home-aside>.card,.home-aside>.guide-card{margin:0}.home-main .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 180px}.hero-art{transform:scale(.72)}.hero h1{font-size:26px}.split-layout,.split{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.app-footer{padding-left:22px;padding-right:22px}.summary-grid{gap:10px}.summary-item{padding:15px}.summary-item strong{font-size:23px}}
@media(max-width:760px){body{font-size:13px}.sidebar{width:245px;transform:translateX(-100%);transition:transform .2s;padding:25px 18px 18px}.sidebar.open{transform:translateX(0)}.brand{font-size:23px;padding-left:11px}.brand small{font-size:10px}.brand-symbol{width:35px}.nav-link{font-size:14px;min-height:44px}.main-shell{margin-left:0}.topbar{height:62px;padding:0 17px}.mobile-menu{display:inline-flex}.page-location{gap:9px}.page-location>span:first-of-type{font-size:12px}.top-actions{gap:4px}.search-button{padding:7px}.balance-button{font-size:10px;padding:6px 9px;min-height:32px}.topbar .compact{font-size:11px;padding:6px 11px;min-height:32px}#page-content{padding:23px 18px 33px}.app-footer{padding:10px 18px 91px;font-size:9px}.app-footer>span{max-width:150px}.app-footer div{gap:12px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;background:#fffdf9f7;backdrop-filter:blur(10px);border-top:1px solid #e7dfd6;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:40;min-height:64px}.mobile-nav a,.mobile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 12px;min-width:58px;border-radius:8px;min-height:48px;font-size:10px;color:#aa9787;font-weight:450}.mobile-nav a.active{color:#913e4e;background:#f4eae5}.mobile-nav .icon{width:20px;height:20px;stroke-width:1.55}h1{font-size:25px}.page-header{margin-bottom:20px}.page-header p{font-size:12px}.hero{border-radius:14px;padding:27px 24px;grid-template-columns:1fr;min-height:245px}.hero h1{font-size:26px;max-width:280px}.hero .eyebrow{font-size:8px;margin-bottom:14px}.hero p{max-width:230px;font-size:11px}.hero .toolbar{position:relative;z-index:2}.hero-art{position:absolute;right:-16px;bottom:11px;width:190px;height:170px;transform:scale(.62);opacity:.74;transform-origin:right bottom;pointer-events:none}.home-stats{gap:8px;margin-top:12px}.stat-card{padding:13px 10px;gap:8px}.stat-card>.icon{width:17px}.stat-card strong{font-size:17px}.stat-card small{font-size:9px}.home-main .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-grid{gap:12px}.tool-card{min-height:155px;padding:18px 17px}.tool-card h3{font-size:13px}.tool-card p{font-size:10px}.tool-card .tool-icon{width:35px;height:35px;border-radius:10px;margin-bottom:12px}.tool-card .tool-icon .icon{width:18px}.tool-card .arrow{right:13px;top:18px;width:14px}.tool-card .badge{font-size:8px;right:11px;top:12px}.section-heading{margin-top:27px;margin-bottom:14px}.section-heading h2{font-size:17px}.section-heading a{font-size:10px}.home-aside{grid-template-columns:1fr}.guide-card{display:none}.media-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.media-card-body{padding:11px 12px}.media-card h3{font-size:11px}.media-card p{font-size:9px}.media-card .toolbar button{font-size:10px}.card{padding:19px;border-radius:13px}.form-grid,.fields{gap:15px;grid-template-columns:1fr}.grid-2,.grid-3,.help-grid{grid-template-columns:1fr}.grid-4{gap:12px}.summary-grid{grid-template-columns:repeat(3,1fr);gap:7px}.summary-item{padding:13px 10px;border-radius:9px}.summary-item strong{font-size:20px}.summary-item span{font-size:9px}.toolbar,.actions{gap:8px}button{min-height:42px}.toolbar button{font-size:12px;padding:9px 13px}.chat-layout{min-height:calc(100dvh - 190px)}.chat-intro{padding:40px 10px 25px}.chat-intro h1{font-size:23px}.chat-intro p{font-size:11px}.chat-suggestions{grid-template-columns:1fr;gap:8px;margin-bottom:25px}.chat-suggestions button{min-height:50px;padding:13px 15px;font-size:12px;flex-direction:row;align-items:center;justify-content:space-between}.chat-message{gap:9px;margin:15px 0 25px}.chat-message .message-content{max-width:calc(100% - 38px)}.chat-message.user .message-content{max-width:88%;font-size:13px}.prose{font-size:13px;line-height:1.85}.chat-composer{bottom:calc(73px + env(safe-area-inset-bottom));padding:12px 13px 10px;border-radius:14px}.chat-composer textarea{font-size:16px}.composer-tools{font-size:9px}.chat-messages{padding-bottom:18px}.app-dialog{max-height:calc(100dvh - 32px);width:calc(100% - 24px);border-radius:15px}.dialog-head{padding:16px 18px}.dialog-body{padding:20px 18px}.dialog-head h2{font-size:17px}.app-dialog .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-dialog.wide-dialog{width:calc(100% - 24px)}.toast-region{top:74px;right:15px}.toast{font-size:12px;max-width:calc(100vw - 30px)}.result-media{grid-template-columns:1fr}.result-media img,.result-media video{max-height:65vh}.record-row{gap:10px;padding:13px}.record-row .toolbar{flex-direction:column}.record-row h3{font-size:12px}.metric-grid{grid-template-columns:1fr}.page-header>.toolbar{justify-content:flex-end}.page-header>.toolbar button{font-size:11px}.asset-pick-actions{bottom:-20px;padding-bottom:0}.person-header{gap:12px}.person-header .avatar{width:48px;height:48px;border-radius:14px}.person-header h2{font-size:19px}.person-header .toolbar{max-width:120px}.field input,.field select,.field textarea{font-size:16px}.field small{font-size:11px}}
.tool-grid>.card{margin:0}.tool-grid>.tool-card.card{padding-top:24px}.tool-grid>.tool-card.card>.badge{position:static;margin-bottom:15px;font-size:9px}.tool-card>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;margin-bottom:12px}.tool-card>span:last-child:not(.badge){margin-top:auto;padding-top:15px;font-size:11px;color:#9a6a76}.page-header>.button{flex-shrink:0;white-space:nowrap}.hero h1{text-wrap:balance}.button,.link-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dedbd6;border-radius:10px;min-height:40px;padding:9px 16px;font-weight:550;line-height:1.35;cursor:pointer}.button.primary,.link-button.primary{border-color:#913e4e}.button:hover{filter:brightness(.97)}.sidebar{scrollbar-width:thin;scrollbar-color:#d8ccc6 transparent}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-thumb{background:#d8ccc6;border-radius:8px}.hero-copy{position:relative;z-index:2}.hero-secondary{display:flex;align-items:center;gap:10px;padding:10px;color:#886c65;font-size:12px}.shortcut-panel>h3{font-size:16px;margin:10px 0 7px}.shortcut-panel>p:not(.eyebrow){font-size:11px;color:#9a8e87;margin-bottom:15px}.shortcut{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid #f0eae4}.shortcut:last-child{border:0;padding-bottom:0}.shortcut>span{width:34px;height:34px;background:#f6f0ec;border-radius:9px;display:grid;place-items:center;color:#a28a7a}.shortcut>span .icon{width:17px;height:17px}.shortcut>div{flex:1;min-width:0}.shortcut strong{display:block;font-size:12px;font-weight:550}.shortcut small{display:block;font-size:9px;color:#ac9e95;margin-top:3px}.shortcut>.icon{width:14px;height:14px;color:#b09e93}.guide-card{margin-top:18px}.guide-icon{display:block;margin-bottom:17px;color:#a47870}.guide-card .eyebrow{font-size:9px;letter-spacing:1.4px}.guide-card h3{margin:11px 0 8px;font-size:15px}.guide-card p:not(.eyebrow){font-size:11px;color:#9c887d}.guide-card a{display:flex;align-items:center;gap:12px;margin-top:20px;font-size:12px;color:#8f665d}.home-empty{display:flex;align-items:center;gap:15px;padding:23px}.home-empty>span{width:44px;height:44px;border:1px dashed #ddd0c7;display:grid;place-items:center;border-radius:12px;color:#bca89b}.home-empty>div{flex:1}.home-empty h3{font-size:12px}.home-empty p{font-size:10px;color:#a49488;margin-top:5px}.home-empty>.button{font-size:11px}.home-empty .icon{width:18px}.recent-work-grid{display:grid;gap:10px}.record-row>div{flex:1;min-width:0}.record-row>.icon{width:16px;color:#a69a90}.work-icon{width:40px;height:40px;background:#f2ebe7;border-radius:9px;display:grid;place-items:center;color:#a47b7b}.art-front span,.art-front .art-lines{display:none}.hero-art .art-front>.icon{width:35px;height:35px}.art-circle{width:65px;height:65px;border:1px solid #e4d6c4;border-radius:50%;margin:25px auto;background:radial-gradient(circle at 40% 35%,#ead6c2,#d4baa8)}.art-back>.icon{width:50px;height:50px;margin:30px}.person-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.person-card>.avatar{width:48px;height:48px;border-radius:14px}.person-card h2{font-size:18px}.person-card>span:last-child{font-size:12px;color:#966876}.media-thumb{padding:0;border:0;border-radius:0;width:100%;overflow:hidden}.media-symbol,.media-missing{min-height:155px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#efeae5;color:#a48c7c}.media-symbol>.icon,.media-missing>.icon{width:37px;height:37px;stroke-width:1}.media-symbol>span,.media-missing>span{font-size:11px}.load-more{display:flex;justify-content:center;margin:25px}.result-section{margin-top:20px}.document-output{text-align:center;padding:38px;width:100%}.document-output>.icon{width:65px;height:65px;color:#a26a73;margin-bottom:22px}.progress-card{text-align:center;margin:24px 0}.progress-card h2{margin:18px 0 9px}.progress-card progress{width:min(450px,100%);margin-top:20px;accent-color:#913e4e}.record-studio{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding:20px 0}.record-studio>strong{width:100%;text-align:center;font-size:40px}.record-studio>[data-audio]{width:100%;text-align:center}.picker-search,.quick-search{width:100%;border:1px solid #e5dfd8;padding:13px;border-radius:9px;margin:14px 0}.asset-pick-actions{display:flex;align-items:center;justify-content:space-between;padding:18px 0;gap:15px;background:white;position:sticky;bottom:0}.asset-picker-card .media-thumb{height:125px}.asset-picker-card input{width:17px;height:17px;vertical-align:middle;margin-right:7px}.asset-picker-grid{max-height:53vh;overflow:auto}.search-result{display:flex;align-items:center;gap:12px;padding:14px;border-radius:9px}.search-result:hover{background:#f5eeea}.search-result>.icon:last-child{margin-left:auto;width:15px}.login-qr{display:flex;flex-direction:column;align-items:center;text-align:center}.login-qr img{width:210px;height:210px;object-fit:contain;margin:15px}.login-qr p{font-size:12px;color:#91827a}.login-legal{font-size:10px;color:#a5958b;margin-top:24px}.login-legal a{text-decoration:underline}.login-confirmed{text-align:center;padding:30px 0}.login-confirmed>.icon{width:55px;height:55px;color:#53846a}.login-confirmed p{margin:14px}.tabs{display:flex;gap:8px;margin:20px 0}.tabs button{flex:1}.tabs button.active{background:#f3e8e5;color:#913e4e;border-color:#cfa7ae}.chat-mark{display:grid;place-items:center;width:68px;height:68px;border-radius:23px;background:#f0e5e1;color:#a26474;margin:0 auto 22px}.chat-mark>.icon{width:37px;height:37px}.chat-thinking{display:flex;align-items:center;gap:12px;color:#9e877c;padding:16px 0}.chat-disclaimer{text-align:center;color:#ab9d93;font-size:10px;margin:12px 0}.chat-composer textarea{width:100%;border:0;resize:vertical;outline:0!important;box-shadow:none!important;background:transparent;min-height:75px;line-height:1.7}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#aa998e;font-size:10px}.message-tools{display:flex;gap:12px;align-items:center;margin-top:10px}.message-tools .button,.message-tools button{font-size:10px}.task-card{border:1px solid #e4d6cf;border-radius:13px;padding:20px;margin:18px 0;background:#fcf8f3}.task-card>p{margin:10px 0}.task-card>small{display:block;margin-top:14px}.template-preview{width:100%;border-radius:10px}.detail-list>div{display:grid;grid-template-columns:130px 1fr;border-bottom:1px solid #eee7e1;padding:12px 0}.detail-list dt{color:#9c897d}.detail-list dd{margin:0}.checkbox-field{display:flex;align-items:flex-start;gap:9px}.checkbox-field input{accent-color:#913e4e;min-width:16px;height:16px;margin-top:3px}.clipboard-fallback{position:fixed;left:-9999px;top:0}.offline-notice{font-size:12px}
@media(max-width:760px){.button,.link-button{min-height:42px;font-size:12px;padding:10px 14px}.hero .button{font-size:11px}.hero-secondary{font-size:10px;padding:7px}.hero-copy>p{max-width:230px}.home-empty{flex-wrap:wrap}.home-empty>div{min-width:170px}.home-empty>button{margin-left:55px}.media-symbol,.media-missing{min-height:125px}.asset-pick-actions{padding:14px 0}.person-card{padding:18px}.chat-disclaimer{margin-bottom:15px}.login-qr img{width:185px;height:185px}.detail-list>div{grid-template-columns:90px 1fr}.shortcut{padding:17px 0}.home-aside>.guide-card{display:none}}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading .eyebrow{margin-bottom:9px}.page-heading .muted{font-size:13px;margin-top:9px}.facts{margin:18px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px}.facts>div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #eee8e2;min-width:0}.facts dt{font-size:12px;color:#a29287;flex-shrink:0}.facts dd{margin:0;text-align:right;overflow-wrap:anywhere;font-size:13px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.grid>.card{margin:0}.record{border-bottom:1px solid #ece4dd;padding:19px 0}.record:first-child{padding-top:12px}.record:last-child{border-bottom:0}.record h3{margin:8px 0}.record p{font-size:13px;line-height:1.85;color:#8e7f75;margin:7px 0}.record .actions{margin-top:13px}.record .eyebrow{font-size:10px}.qr-image{display:block;width:210px;height:210px;object-fit:contain;margin:15px auto}.checkbox{display:inline-flex;align-items:center;gap:8px;margin:8px 16px 8px 0;cursor:pointer}.checkbox input{accent-color:#913e4e;width:16px;height:16px}fieldset{min-width:0;border:1px solid #e7ded7;border-radius:11px;padding:18px;margin:16px 0}legend{font-size:12px;color:#9b8072;padding:0 8px}fieldset .field+.field,form:not(.form-grid)>.field+.field{margin-top:17px}form>.actions{margin-top:20px}.card>.actions,.card>p+.actions{margin-top:18px}.card>h2{margin-bottom:18px;font-size:18px}.card>h3{margin:12px 0}#campaign-poster-canvas{max-width:100%;width:360px;height:auto;display:block;margin:20px auto;border:1px solid #e4d9d1;border-radius:12px}.record-row{flex-wrap:wrap}.record-row>div{min-width:120px}.grid>.card h2{font-size:17px}.card .notice{margin:16px 0}
@media(max-width:760px){.page-heading{flex-wrap:wrap;gap:15px}.page-heading h1{font-size:24px}.page-heading .muted{font-size:12px}.facts{grid-template-columns:1fr;gap:0}.grid{grid-template-columns:1fr}.facts dt{font-size:11px;max-width:40%;white-space:normal}.facts dd{font-size:12px}.page-heading>.actions{max-width:100%}.record-row .actions{width:100%}.checkbox{font-size:12px;margin-right:14px}.card>h2{font-size:17px}fieldset{padding:14px}}
[data-studio-form]>fieldset{border:0;padding:0;margin:0;min-width:0}[data-studio-form] footer.card{margin-top:20px}[data-studio-form] aside .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}[data-studio-form] .media-card>img{width:100%;aspect-ratio:1;object-fit:cover}[data-studio-form] .media-card>video{width:100%;aspect-ratio:1;background:#302827}[data-studio-form] .media-card>audio{width:100%;min-width:0}[data-studio-form] .media-card>p{padding:8px 10px;font-size:11px;overflow-wrap:anywhere}[data-studio-form] .media-card>button{font-size:11px;min-height:32px;margin:0 6px 7px}[data-studio-form] aside .media-card:has(audio){grid-column:1/-1}[data-studio-form] .section-heading:first-child{margin-top:0}[data-studio-form] .actions{margin-top:18px}[data-studio-form] aside .card>p.muted{font-size:11px;line-height:1.8;margin-top:15px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
.app-footer,.app-footer div{flex-wrap:wrap}.app-footer div{row-gap:8px}.prose h1,.prose h2{font-size:1.2em;line-height:1.5;margin:20px 0 10px}.prose blockquote{margin:12px 0;padding-left:14px;border-left:3px solid #d9c3c7;color:#796c65}
.film-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:880px;margin-top:40px}.film-choice{padding:38px!important;margin:0!important}.film-choice h2{font-size:30px;margin:16px 0}.film-choice .button{margin-top:32px}.film-choice.cinematic{background:#eee6e2}.film-choice .muted{line-height:1.8}@media(max-width:640px){.film-choices{grid-template-columns:1fr;gap:12px;margin-top:20px}.film-choice{padding:28px!important}}


/* Login dialog: contain the QR, guidance and legal copy in normal flow. */
.app-dialog:has([data-login-body]) {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.app-dialog:has([data-login-body]) .dialog-head { padding: 18px 24px; }
.app-dialog:has([data-login-body]) .dialog-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 24px;
}
.app-dialog:has([data-login-body]) .dialog-body > .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.app-dialog:has([data-login-body]) .tabs {
  flex-shrink: 0;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid #e9e1da;
  border-radius: 12px;
  background: #f2ede8;
}
.app-dialog:has([data-login-body]) .tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #887c73;
  font-size: 13px;
}
.app-dialog:has([data-login-body]) .tabs button.active {
  border-color: #e6dbd2;
  background: #fffdfb;
  color: #873c4c;
  box-shadow: 0 2px 5px #3f281209;
}
.app-dialog [data-login-body] { min-width: 0; flex-shrink: 0; }
.app-dialog div.login-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.app-dialog .login-qr img {
  display: block;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid #e7ddd4;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}
.app-dialog .login-qr p {
  max-width: 28em;
  margin: 0;
  color: #8a7c72;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.app-dialog .login-qr [data-new-qr] {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: #8d4a58;
  font-size: 12px;
}
.app-dialog .login-legal {
  flex-shrink: 0;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #ece4dc;
  color: #a09186;
  font-size: 11px;
  line-height: 1.85;
  text-align: center;
  overflow-wrap: anywhere;
}
.app-dialog .login-legal a { color: #8c7164; text-underline-offset: 3px; }
.app-dialog:has([data-login-body]) [data-code-login] { margin: 0; gap: 16px; }
.app-dialog:has([data-login-body]) [data-code-login] > .field { margin: 0; }
.app-dialog:has([data-login-body]) [data-code-login] > p { font-size: 12px; line-height: 1.8; }
.app-dialog:has([data-login-body]) .login-confirmed { padding: 16px 0; }
.app-dialog:has([data-login-body]) .login-confirmed p { line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .app-dialog:has([data-login-body]) { width: calc(100% - 24px); }
  .app-dialog:has([data-login-body]) .dialog-head { padding: 16px 20px; }
  .app-dialog:has([data-login-body]) .dialog-body { padding: 20px; gap: 16px; }
}
@media (max-height: 680px) {
  .app-dialog:has([data-login-body]) .dialog-head { padding-top: 14px; padding-bottom: 14px; }
  .app-dialog:has([data-login-body]) .dialog-body { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .app-dialog .login-qr { gap: 10px; }
  .app-dialog .login-qr img { width: 176px; height: 176px; }
  .app-dialog .login-legal { padding-top: 12px; }
}


/* Result images stay compact; originals open on explicit request. */
.result-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 16px;
  max-width: 1120px;
  margin: 20px 0;
}
.result-sections > .result-section { min-width: 0; margin: 0; }
.result-sections > .result-section:not(.result-image-section) { grid-column: 1 / -1; }
.result-image-section.card { padding: 18px; }
.result-image-section .section-heading { margin: 0 0 10px; align-items: flex-start; }
.result-image-section .section-heading h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.result-image-section .result-image-meta { margin: 0; font-size: 11px; line-height: 1.7; }
.result-image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  min-height: 0;
  margin: 14px 0;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #f0ece7;
  overflow: hidden;
  cursor: zoom-in;
}
.result-image-button > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 6px;
  object-fit: contain;
}
.result-image-section > .toolbar { gap: 8px; }
.result-image-section > .toolbar .button,
.result-image-section > .toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.result-output-image { max-width: 440px; }
.result-output-image .result-media { display: block; margin: 0; }
.result-output-image .result-image-button { height: 300px; }
.result-original-preview { display: flex; justify-content: center; align-items: center; min-height: 120px; }
.result-original-preview > img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
@media (max-width: 760px) {
  .page-header:has(> .toolbar > a[href="#/works"]) { flex-wrap: wrap; gap: 12px; }
  .page-header:has(> .toolbar > a[href="#/works"]) > .toolbar { flex-shrink: 0; }
  .page-header:has(> .toolbar > a[href="#/works"]) > .toolbar .button { white-space: nowrap; }
  .result-image-button { height: 240px; }
  .result-output-image { max-width: 100%; }
  .result-output-image .result-image-button { height: 260px; }
}
