:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#25212a;background:#faf8f5;font-synthesis:none;--ink:#25212a;--muted:#6e6571;--line:#e9dfd7;--plum:#2c2134;--orange:#b4492c;--paper:#fff;--peach:#f8e4d6;--radius:19px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.56}
button,a,input,textarea,select{outline-offset:4px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #b95133}
a{color:inherit;text-decoration:none}
button{color:inherit}
h1,h2,h3,p{margin-top:0}
[hidden]{display:none!important}
i[data-icon]{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;flex:0 0 auto;vertical-align:middle}
i[data-icon] svg{width:100%;height:100%;display:block}
.shell{height:100dvh;display:grid;grid-template-columns:234px minmax(0,1fr)}
.sidebar{background:var(--plum);color:#fff6f0;display:flex;flex-direction:column;padding:26px 16px 14px;min-height:0}
.brand{display:flex;gap:10px;align-items:center;width:max-content;margin:0 7px}
.brand b,.profile b{display:block;font-size:16px;line-height:1.3}
.brand small{display:block;font-size:9px;letter-spacing:.14em;margin-top:4px;color:#e9c7b8;font-weight:650}
.brand-mark{height:37px;width:37px;background:#f5c5ac;border-radius:12px;display:grid;grid-template-columns:repeat(2,7px);grid-auto-rows:7px;place-content:center;gap:3px;flex:none;transform:rotate(-6deg)}
.brand-mark i{display:block;background:#3d2835;border-radius:100%;transform:scale(1.03)}
.brand-mark i:first-child{border-radius:7px 7px 0 7px}
.brand-mark i:nth-child(2){border-radius:7px 7px 7px 0}
.brand-mark i:nth-child(3){border-radius:7px 0 7px 7px}
.brand-mark i:nth-child(4){border-radius:0 7px 7px 7px}
.new-work{display:flex;align-items:center;justify-content:center;gap:8px;margin:32px 0 14px;background:#f4c4ac;border:0;border-radius:11px;min-height:43px;color:#312031;font-size:14px;font-weight:750}
.new-work:hover{background:#ffdbc6}
.main-nav{display:grid;gap:3px}
.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 11px;border-radius:9px;color:#f2e7ee;font-size:14px;font-weight:570}
.nav-item:hover,.nav-item.active{background:#48394d;color:white}
.nav-item.active i{color:#f7c3a8}
.history-title{display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin-top:27px;margin-bottom:7px;color:#e2d0db}
.history-title h2{font-size:12px;margin:0;letter-spacing:.09em}
.bare{border:0;background:transparent;padding:0}
.icon-button{width:34px;height:34px;border-radius:8px}
.icon-button:hover{background:#b0a0b42b}
.history-title i{width:15px;height:15px}
.search{display:flex;align-items:center;border:1px solid #66576a;border-radius:9px;padding:0 9px;gap:7px;color:#cdbcc9}
.search i{height:15px;width:15px}
.search input{background:transparent;border:0;color:white;padding:8px 0;min-width:0;width:100%;font-size:13px}
.search input::placeholder{color:#d3c4d0}
.history{flex:1;min-height:36px;overflow:auto;margin:9px -1px 12px;scrollbar-width:thin}
.history>p{color:#cab9c7;text-align:center;font-size:13px;margin:20px 0 0}
.history-item{display:flex;align-items:center;border-radius:8px}
.history-item:hover,.history-item.selected{background:#48394d}
.history-open{background:none;border:0;flex:1;color:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:10px;font-size:13px}
.history-options{color:#f2cabb;padding:2px 8px;border:0;background:none}
.sidebar-bottom{border-top:1px solid #59485b;padding-top:8px;display:grid;gap:5px}
.profile{border:0;border-top:1px solid #58465a;background:none;color:inherit;display:grid;grid-template-columns:32px 1fr 18px;gap:9px;align-items:center;text-align:left;padding:12px 6px 2px;min-width:0}
.profile:hover b{text-decoration:underline}
.avatar{width:32px;height:32px;border-radius:50%;background:#654b63;color:#ffe6d5;display:grid;place-items:center;font-size:14px;font-weight:700}
.profile b{font-size:13px}
.profile small{display:block;color:#d7c8d3;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:3px}
.main{display:flex;flex-direction:column;min-width:0;min-height:0}
.topbar{height:66px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(16px,3vw,36px);border-bottom:1px solid #ebe2db;background:#fffaf5}
.top-title,.header-actions{display:flex;gap:10px;align-items:center}
.top-title{min-width:0}
.top-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-menu{display:none}
.points-pill,.line-button,.primary,.dark-button,.outline-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;white-space:nowrap;border-radius:9px;min-height:37px;padding:7px 12px;font-weight:700;font-size:14px}
.points-pill{background:#fff0df;color:#7e341c;border:1px solid #f0d4b8}
.points-pill:hover{background:#ffe5ce}
.points-pill i{width:17px;height:17px}
.line-button,.outline-button{background:white;border:1px solid #e3d8d2}
.line-button:hover,.outline-button:hover{background:#fff5ed;border-color:#d9ad94}
.dark-button{background:#33263b;color:white;border:1px solid #33263b}
.dark-button:hover{background:#4d3853}
.primary{border:1px solid #a8432a;background:#a8432a;color:white}
.primary:hover{background:#8d3420}
.viewport{min-height:0;overflow:auto;overscroll-behavior:contain}
.workbench{width:min(100%,1128px);padding:20px clamp(20px,3.8vw,48px) 10px;margin:0 auto}
.hero{display:grid;grid-template-columns:1.05fr 1fr;min-height:268px;border:1px solid #efd2c0;border-radius:24px;overflow:hidden;background:#f8e6da;isolation:isolate}
.hero-copy{padding:26px 10px 25px clamp(24px,4vw,53px);position:relative;z-index:1}
.hero h1{font-size:clamp(32px,4.1vw,54px);letter-spacing:-.062em;line-height:1.12;margin-bottom:15px;font-weight:810}
.hero h1 span{color:#a44028}
.hero p{margin:0 0 18px;color:#5d4651;line-height:1.65;font-size:15px}
.hero-art{background-image:linear-gradient(90deg,#f8e6da 0%,transparent 27%),url('/media/examples.webp');background-size:100% 100%,200% 200%;background-repeat:no-repeat;background-position:0 0,0 0}
.tools{margin-top:17px}
.tools h2,.composition-title b{font-size:16px;margin:0;font-weight:735}
.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.tool-card{min-width:0;min-height:68px;display:grid;grid-template-columns:39px minmax(0,1fr) 13px;align-items:center;gap:8px;text-align:left;background:white;border:1px solid var(--line);border-radius:13px;padding:9px;color:var(--ink);transition:transform .15s,border-color .15s}
.tool-card:hover{border-color:#d7a18a;transform:translateY(-2px)}
.tool-card b,.tool-card small{display:block}
.tool-card b{font-size:14px;overflow-wrap:anywhere}
.tool-card small{font-size:11px;color:#6d616e;line-height:1.4;margin-top:4px}
.tool-card>i{width:13px;height:13px;color:#746777}
.tool-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center}
.tool-icon i{width:21px;height:21px}
.peach{background:#fae4db;color:#a44428}.purple{background:#eee2f8;color:#694895}.sage{background:#e1ede5;color:#3f6652}.yellow{background:#f8efcf;color:#805707}
.composer{margin-top:10px;padding:10px 0 8px;background:linear-gradient(180deg,#faf8f500,#faf8f5 12%);z-index:3}
.workbench:has(.conversation:not([hidden])) .composer{position:sticky;bottom:0}
.composition-title{display:flex;align-items:center;justify-content:space-between;margin:0 1px 7px;gap:10px}
.composition-title>span{display:flex;align-items:center;gap:6px}
.composition-title i{color:#a84127;width:16px;height:16px}
.small-note{font-size:12px;color:#70646f}
.compose-box{background:white;border:1px solid #ddcec4;border-radius:17px;padding:11px;box-shadow:0 8px 27px #3824320d}
.compose-box:focus-within{border-color:#b77b65}
.compose-box textarea{border:0;display:block;width:100%;min-height:47px;max-height:180px;resize:vertical;padding:4px;color:var(--ink);outline:none}
.compose-box textarea::placeholder{color:#756b75}
.composer-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.attach{min-height:35px;min-width:35px;border:1px solid var(--line);background:#fff9f4;border-radius:9px}
.option{display:inline-flex;align-items:center;border:1px solid #efe5dc;border-radius:8px;background:#fcf9f6;padding:4px 5px 4px 8px;min-height:34px;gap:4px;color:#776876;font-size:12px}
.option select{max-width:120px;padding:1px;background:transparent;border:0;font-size:13px;font-weight:650;color:var(--ink)}
.send{margin-left:auto}
.send i{width:16px;height:16px}
.composer-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#675b67;font-size:12px;margin:6px 3px 0}
.attachments{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.attachment-chip{display:flex;align-items:center;gap:5px;background:#f6eee8;border:1px solid var(--line);padding:4px 5px;border-radius:8px;font-size:12px}
.attachment-chip img{width:27px;height:27px;object-fit:cover;border-radius:4px}
.attachment-chip button{border:0;background:transparent;font-size:17px}
#crop-area{margin:6px 0 9px}
.crop-stage{margin-top:9px;position:relative;display:inline-flex;vertical-align:top;touch-action:none;cursor:crosshair}
.crop-stage img{display:block;max-width:100%;max-height:180px;user-select:none;pointer-events:none}
.crop-rect{position:absolute;background:#ffe4c743;border:2px solid #ffbe88;box-shadow:0 0 0 1px #3d2639;pointer-events:none}
.conversation{min-height:310px;display:grid;gap:16px;align-content:start}
.job{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.job-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.job-type{font-size:13px;color:#823d2a;font-weight:700}
.job-prompt{background:#fcf3ec;margin:5px 0 10px;padding:10px 12px;border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere}
.job-state{font-size:14px;color:var(--muted)}
.job-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:8px}
.job-results figure{margin:0}
.job-results img{max-width:100%;height:220px;width:100%;object-fit:contain;border-radius:10px;border:1px solid var(--line)}
.checker{background:repeating-conic-gradient(#eee7e1 0% 25%,#fff 0% 50%) 0 / 18px 18px}
.result-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.result-actions button,.result-actions a{font-size:13px}
.trash-view h1{font-size:36px}
.trash-view p{color:var(--muted)}
.trash-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:9px 1px;gap:10px}
.modal{max-width:min(780px,calc(100vw - 32px));width:100%;border:1px solid #e6d7cb;border-radius:21px;padding:0;color:var(--ink);max-height:calc(100dvh - 44px);box-shadow:0 20px 90px #25152957;background:white}
.modal.narrow{width:470px}
.modal::backdrop{background:#1e1427a0}
.modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px;position:sticky;top:0;background:#fffaf5;border-bottom:1px solid var(--line);padding:17px 21px;z-index:2}
.modal-head h2{font-size:22px;margin:0}
.modal-head p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.close{background:#fff;border:1px solid var(--line);border-radius:8px;width:34px;height:34px;font-size:22px;flex:none}
.modal-body{padding:20px;display:grid;gap:15px}
.modal-body p{margin-bottom:0}
.modal-form{display:grid;gap:12px}
.field{display:grid;gap:6px;font-weight:650;font-size:14px;min-width:0}
.field input,.field textarea,.field select,.text-input{width:100%;background:#fff;border:1px solid #d9ccc4;border-radius:8px;padding:10px;color:var(--ink);font-weight:400}
.notice{padding:11px 13px;background:#fff3e8;border:1px solid #f0d5c3;border-radius:9px;color:#6f3d31;font-size:14px;line-height:1.5}
.muted{color:var(--muted)}
.balance-display{font-size:29px;margin:0;color:#842f1e}
.packages,.examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.package{display:grid;gap:5px;background:#fcf7f2;border:1px solid #eadbd1;border-radius:11px;padding:10px 7px;line-height:1.3;font-size:13px;text-align:left}
.package b{font-size:20px;color:#90391f}
.package[aria-pressed=true]{background:#ffe5d3;border-color:#b36c51}
.list-title{font-size:16px;margin:6px 0 0}
.cost-table{width:100%;font-size:14px;border-collapse:collapse}
.cost-table td,.cost-table th{text-align:left;border-bottom:1px solid var(--line);padding:7px 5px}
.order-qr{max-width:180px;max-height:180px;justify-self:start}
.example-card{overflow:hidden;border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;min-width:0}
.example-card div:not(.gallery-photo){padding:10px;display:grid;align-content:start;gap:5px;flex:1}
.example-card h3{font-size:15px;margin:0}
.example-card p{font-size:13px;color:var(--muted)}
.example-card button{margin:5px 8px 8px}
.gallery-photo{aspect-ratio:3/2;background-image:url('/media/examples.webp');background-size:200% 200%;background-position:var(--x,0%) var(--y,0%);background-repeat:no-repeat}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:12px 16px;border-radius:10px;background:#322638;color:#fff;max-width:min(92vw,610px);z-index:15;box-shadow:0 6px 20px #28183030;font-size:14px}
.section{background:white;border:1px solid var(--line);border-radius:16px;padding:clamp(13px,2.5vw,23px);display:grid;gap:13px;margin-bottom:15px}
.section h2,.section h3{margin:0}
.section p{margin:0}
.ppt-hero .hero-art{background-image:linear-gradient(90deg,#f8e6da,transparent 30%),url('/media/examples.webp');background-position:0 0,100% 0}
.ppt-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;margin-top:18px;align-items:start}
.ppt-history{position:sticky;top:10px;max-height:calc(100vh - 40px);overflow:auto}
.ppt-historical{display:flex;align-items:center;justify-content:space-between;gap:3px;min-width:0;border-bottom:1px solid var(--line)}
.ppt-historical .bare:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;text-align:left;padding:7px 0}
.tabs{display:flex;flex-wrap:wrap;gap:5px}
.tabs button{padding:6px 9px;background:white;border:1px solid var(--line);border-radius:8px;font-size:13px;min-height:34px}
.tabs button[aria-pressed=true]{background:#fbe6d9;border-color:#e5b79b;color:#783925}
.styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.style-card{background:var(--sample-paper);color:var(--sample-ink);border:1px solid var(--line);border-radius:9px;text-align:left;padding:8px;font-size:13px;display:grid;gap:6px;font-weight:700}
.style-card[aria-pressed=true]{outline:2px solid var(--sample-accent);outline-offset:-2px}
.style-card span{display:block;border-radius:5px;background:linear-gradient(105deg,var(--sample-ink) 0% 55%,var(--sample-accent) 55% 75%,var(--sample-soft) 75%);height:23px}
.dialogue{max-height:290px;overflow:auto;display:grid;gap:8px}
.dialogue div{padding:9px 11px;border-radius:8px;background:#f4edf8;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.dialogue .user{background:#f9e9dc}
.section-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.outline-list{display:grid;gap:12px}
.slide-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;border:1px solid var(--line);padding:12px;border-radius:12px}
.slide-edit-fields{display:grid;gap:7px}
.slide-preview{color:var(--sample-ink);background:var(--sample-paper);border-radius:8px;aspect-ratio:16/9;overflow:hidden;padding:8%;font-size:clamp(9px,1.1vw,13px);align-self:start;border:1px solid var(--line)}
.slide-preview b{display:block;font-size:1.48em;margin-bottom:7px;line-height:1.15;overflow-wrap:anywhere}
.slide-preview p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:pre-wrap;line-height:1.2}
.slide-preview img{width:36%;height:65%;max-height:115px;object-fit:contain;float:right;margin-left:6px;background:var(--sample-soft)}
.ppt-sources{display:grid;gap:10px}
.ppt-preview-text{max-height:145px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:#fbf7f0;border-radius:8px;font-size:13px}
.admin-wrap{max-width:1020px;margin:25px auto;padding:0 16px}
.admin-list{display:grid;gap:8px}
.admin-row{padding:10px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;overflow-wrap:anywhere}
@media(max-width:1040px){.shell{grid-template-columns:190px minmax(0,1fr)}.tool-card{grid-template-columns:34px 1fr}.tool-icon{width:34px;height:34px}.tool-card>i{display:none}.hero{min-height:244px}}
@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{display:none}.sidebar.open{position:fixed;display:flex;z-index:8;inset:0 auto 0 0;width:min(246px,75vw);box-shadow:0 0 0 100vmax #281d3249}.mobile-menu{display:inline-block}.ppt-layout{grid-template-columns:minmax(0,1fr)}.ppt-history{position:static;max-height:none}.topbar{height:57px}}
@media(max-width:565px){.workbench{padding:15px 12px 6px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:20px 19px 17px}.hero h1{font-size:clamp(30px,9vw,43px);margin-bottom:9px}.hero-copy p{margin-bottom:12px;font-size:14px}.hero-art,.ppt-hero .hero-art{min-height:145px;background-image:linear-gradient(180deg,#f8e6da,transparent 21%),url('/media/examples.webp');background-size:100% 100%,200% auto;background-position:0 0,0 7%}.ppt-hero .hero-art{background-position:0 0,100% 7%}.desktop-break{display:none}.tools{margin-top:17px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tool-card{min-height:59px}.tool-card small{font-size:11px}.composer{margin-top:9px}.composition-title{margin-bottom:4px}.composer-controls{gap:4px}.option{min-height:33px;padding:3px 4px;gap:3px}.option select{font-size:12px;max-width:87px}.compose-box{padding:7px}.send{padding:5px 8px}.packages{gap:5px}.examples{grid-template-columns:1fr}.example-card{display:grid;grid-template-columns:40% 1fr}.example-card button{grid-column:2}.modal-body{padding:13px}.modal-head{padding:12px}.slide-editor{grid-template-columns:1fr}.styles{grid-template-columns:repeat(3,minmax(0,1fr))}.ppt-history{max-height:none}}
@media(max-width:365px){.topbar{padding:0 8px}.top-title,.header-actions{gap:4px}.top-title b{font-size:13px}.points-pill,.line-button{font-size:12px;padding:5px 7px}.hero h1{font-size:32px}.composer-meta{font-size:11px}.option select{max-width:78px}}
