@import url("./ai-chat.css");
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#0f172a;background:#f6f8fc;font-synthesis:none;--blue:#2563eb;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--soft:#f8fafc;--blue-soft:#eff6ff}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.65}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--blue);text-decoration:none}h1,h2,h3,strong{font-weight:600}.icon{flex:0 0 auto;vertical-align:middle}.button,button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:8px 14px;border-radius:8px;font-size:13px;font-weight:500;line-height:1.4;transition:background .18s,border-color .18s,color .18s}.button:hover,button:hover{background:var(--soft);border-color:#cbd5e1}.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover,.button.primary:hover{background:#1d4ed8;border-color:#1d4ed8}.subtle{background:transparent}.danger{color:#b91c1c}.icon-button{padding:8px;width:38px;flex-shrink:0}.boot{padding:80px;text-align:center;color:var(--muted)}
.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100dvh}.sidebar{background:#f8fafc;border-right:1px solid var(--line);padding:26px 16px 18px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:24px;min-height:0}.brand{display:flex;align-items:center;gap:9px;color:#172554;font-weight:600;font-size:14px;white-space:nowrap}.mark{height:35px;width:35px;flex:0 0 35px;background:var(--blue);color:#fff;display:grid;place-items:center;border-radius:9px}.mark .icon{width:22px;height:22px}.brand small{display:block;font-size:9px;color:#94a3b8;letter-spacing:1.2px;font-weight:400;margin-top:3px}.sidebar>.primary{justify-content:flex-start;padding-left:14px;min-height:40px}.project-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.sidebar-label{font-size:11px;color:#94a3b8;letter-spacing:.5px;display:flex;justify-content:space-between;padding:0 12px}.sidebar-label span{font-variant-numeric:tabular-nums}.project-nav-list{overflow:auto;min-height:0;display:grid;align-content:start;gap:4px}.project-nav-item{justify-content:flex-start;min-width:0;text-align:left;border:0;background:transparent;color:#475569;border-radius:8px;padding:11px 12px;font-size:13px;gap:10px}.project-nav-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-nav-item .icon{color:#94a3b8;width:17px;height:17px}.project-nav-item:hover{background:#f1f5f9}.project-nav-item.selected{background:#eaf1ff;color:#1d4ed8;font-weight:600}.project-nav-item.selected .icon{color:var(--blue)}.sidebar-empty{font-size:12px;color:#94a3b8;padding:0 12px}.nav{display:grid;gap:3px;border-top:1px solid var(--line);padding-top:14px}.nav button{justify-content:flex-start;color:var(--muted);background:transparent;border:0;text-align:left;padding:10px 12px;font-weight:400;font-size:13px}.nav button .icon{width:17px;height:17px;color:#94a3b8}.nav button.active{background:#eaf1ff;color:#1d4ed8;font-weight:500}.nav button.active .icon{color:var(--blue)}.nav button:hover{background:#edf2f7;color:var(--ink)}.sidebar-footer{border-top:1px solid var(--line);padding:15px 8px 0}.account{display:flex;gap:10px;align-items:center;min-width:0}.avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;background:#e2e8f0;border-radius:50%;color:#475569;font-size:13px}.account-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account small{display:block;color:#94a3b8;font-size:11px}.logout{background:transparent;border:0;color:#94a3b8}.main{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 28px;gap:18px}.header-project{min-width:0}.header-project h1{font-size:17px;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:650px}.header-project p{font-size:11px;color:#94a3b8;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.quota{border:0;background:transparent;color:var(--muted);font-size:12px;padding:8px 10px;white-space:nowrap}.quota strong{color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums}.merchant-button{font-size:12px}.content{max-width:1280px;padding:32px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.heading h1{font-size:25px;line-height:1.4;margin:0 0 7px;letter-spacing:-.4px}.heading p{margin:0;color:var(--muted);font-size:13px}.eyebrow{color:var(--blue);font-size:11px;letter-spacing:1.5px;font-weight:500;margin-bottom:8px}
/* Native disclosure menus remain accessible with keyboard and touch. */
details{margin:14px 0}summary{cursor:pointer;font-weight:500}summary .icon{vertical-align:middle}.toolbar-menu{position:relative;margin:0;flex-shrink:0}.toolbar-menu>summary{list-style:none}.toolbar-menu>summary::-webkit-details-marker{display:none}.menu-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:202px;background:white;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 28px rgba(15,23,42,.09)}.menu-popover button,.menu-popover a{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;border:0;min-height:37px;background:transparent;padding:8px 10px;color:#334155;border-radius:6px;font-size:12px;text-align:left;white-space:nowrap}.menu-popover button:hover,.menu-popover a:hover{background:var(--soft);color:var(--blue)}.menu-popover .icon{width:16px;height:16px;color:#64748b}.menu-popover p{font-size:10px;color:#94a3b8;margin:6px 10px;padding-top:7px;border-top:1px solid var(--line);line-height:1.6}.button[aria-disabled=true],a[aria-disabled=true]{opacity:.4;pointer-events:none}
/* Existing project, account, history and administration screens. */
.stats{display:flex;gap:24px;margin-bottom:28px;background:white;border:1px solid var(--line);border-radius:10px;padding:18px 22px}.stat{display:flex;gap:13px;align-items:center;flex:1}.stat+.stat{border-left:1px solid var(--line);padding-left:24px}.stat span{color:var(--muted);font-size:12px}.stat strong{font-size:23px;line-height:1.2}.stat small{font-size:11px;color:#94a3b8;font-weight:400;margin-left:5px}.tools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:24px 0 16px}.tools h2,.tools h3{font-size:15px;margin:0}.search{width:280px;max-width:100%;background:white}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{border:1px solid var(--line);border-radius:12px;background:white;padding:23px;display:flex;flex-direction:column;min-height:216px;transition:border-color .18s}.project-card:hover{border-color:#a5bff2}.card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.project-icon{width:39px;height:39px;border-radius:9px;background:#eff6ff;color:var(--blue);display:grid;place-items:center;font-weight:600}.pill{font-size:10px;line-height:1.4;background:#f1f5f9;color:#64748b;border-radius:5px;padding:4px 7px;white-space:nowrap;font-weight:400}.pill.blue{color:#2563eb;background:#eff6ff}.project-card h3{font-size:17px;margin:17px 0 7px;overflow-wrap:anywhere}.project-card p{font-size:12px;color:var(--muted);margin:0 0 18px}.card-bottom{border-top:1px solid #f1f5f9;padding-top:14px;margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#94a3b8}.card-bottom button{min-height:30px;padding:5px 9px;color:var(--blue);font-size:12px;border:0;background:#eff6ff}.empty{background:#fff;border:1px dashed var(--line);border-radius:12px;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.empty .empty-icon{font-size:24px;color:var(--blue);background:#eff6ff;width:48px;height:48px;display:grid;place-items:center;border-radius:12px;margin-bottom:15px}.empty h3{margin:0 0 8px;font-size:17px}.empty p{max-width:380px;color:var(--muted);font-size:13px;margin:0 0 22px}.notice{border:1px solid #dbeafe;background:#eff6ff;border-radius:8px;padding:14px 18px;font-size:13px;color:#1e3a8a;margin:20px 0}.notice.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:20px}.panel h2{font-size:17px;margin:0 0 20px}.panel h3{font-size:15px;margin:0 0 12px}.tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:25px}.tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:11px 15px;color:var(--muted)}.tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}label{display:block;font-size:13px;font-weight:500;margin-bottom:7px}input,textarea,select{width:100%;padding:9px 12px;border:1px solid #dbe2eb;border-radius:8px;color:var(--ink);background:#fff;font-size:14px}input:focus,textarea:focus,select:focus{outline:2px solid #bfdbfe;outline-offset:1px;border-color:#93b4ef}textarea{resize:vertical;min-height:120px;line-height:1.8}input::placeholder,textarea::placeholder{color:#94a3b8}.field{margin-bottom:18px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{font-size:12px;color:var(--muted);margin:6px 0 0}.actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;margin-top:20px}.file-list{display:grid;gap:10px}.file-item{border:1px solid var(--line);border-radius:8px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.file-item strong{font-size:13px;display:block;overflow-wrap:anywhere}.file-item small{font-size:11px;color:var(--muted)}.upload{border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;padding:24px;margin-top:20px}.upload input{background:white;font-size:13px}.draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.draft{padding:22px;background:white;border:1px solid var(--line);border-radius:12px}.draft h3{font-size:17px;line-height:1.5;margin:13px 0}.script{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;color:#334155;max-height:340px;overflow:auto}.draft-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.draft-footer button{padding:6px 12px;font-size:12px}.meta{color:var(--muted);font-size:11px;margin-top:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{text-align:left;color:var(--muted);font-weight:400;background:#f8fafc}th,td{padding:13px 15px;border-bottom:1px solid var(--line)}.positive{color:#15803d}.negative{color:#b91c1c}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.status-grid>div{padding:18px;background:#f8fafc;border-radius:9px}.status-grid span{font-size:12px;color:var(--muted);display:block}.status-grid strong{font-size:14px;display:block;margin-top:6px}.back{font-size:12px;margin-bottom:18px}
/* Workspace: independently scrolling conversation and continuous document. */
.is-workspace .content{max-width:none;height:calc(100dvh - 78px);padding:22px 24px 24px}.workbench-layout{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:20px;height:100%;min-height:0}.conversation-pane,.document-pane{min-width:0;min-height:0;background:white;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(15,23,42,.025)}.pane-heading,.document-toolbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 22px;border-bottom:1px solid #edf1f6;min-height:78px}.pane-title{display:flex;gap:12px;align-items:center;min-width:0}.pane-symbol{height:34px;width:34px;flex:0 0 34px;display:grid;place-items:center;background:#eff6ff;color:var(--blue);border-radius:9px}.document-symbol{background:#f1f5f9;color:#64748b}.pane-heading h2,.document-toolbar h2{font-size:15px;margin:0;line-height:1.4}.pane-heading p,.document-toolbar p{font-size:11px;color:#94a3b8;margin:5px 0 0}.live-indicator{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;color:#94a3b8}.live-indicator i{width:5px;height:5px;background:#74a389;border-radius:50%}.chat-messages{flex:1;min-height:0;overflow:auto;padding:26px 22px 20px;overscroll-behavior:contain}.chat-message{display:flex;gap:12px;margin-bottom:30px;align-items:flex-start}.chat-avatar{flex-shrink:0;display:grid;place-items:center;background:#eff6ff;color:#2563eb;border-radius:8px;width:27px;height:27px}.chat-avatar .icon{width:16px;height:16px}.chat-bubble{min-width:0;max-width:calc(100% - 39px);font-size:13px;line-height:1.95;overflow-wrap:anywhere;color:#334155}.chat-bubble>strong{color:#1e293b;font-weight:500}.chat-bubble p{margin:7px 0 0}.chat-message.user .chat-avatar{display:none}.chat-message.user{justify-content:flex-end}.chat-message.user .chat-bubble{background:#eff6ff;border-radius:12px 12px 4px 12px;padding:13px 16px;max-width:90%;color:#1e3a5f}.chat-message.assistant .chat-bubble{padding-top:1px}.chat-text{white-space:pre-wrap}.chat-bubble details{margin:0}.chat-bubble summary{font-weight:400;line-height:1.95}.chat-bubble details[open] summary{margin-bottom:12px}.bubble-actions{display:flex;gap:7px;margin-top:13px}.bubble-actions button{min-height:29px;padding:5px 9px;font-size:11px;border-color:#e8edf4;color:#64748b}.bubble-actions .icon{width:13px;height:13px}.chat-attachments{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #edf1f6;padding-top:14px;margin-top:14px}.chat-attachments>span{font-size:11px;color:#94a3b8;width:100%;margin-bottom:4px}.chat-attachments button,.chat-attachments .button{max-width:100%;overflow-wrap:anywhere;text-align:left;font-size:11px;min-height:29px;padding:5px 8px}.chat-attachments .icon{width:13px;height:13px}.conversation-compose{flex-shrink:0;padding:12px 18px 14px;border-top:1px solid #edf1f6;background:#fff;border-radius:0 0 12px 12px}.generation-settings{position:relative}.generation-bar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.generation-bar>label{margin:0;color:#94a3b8;font-size:11px;white-space:nowrap;font-weight:400}.generation-bar>select{width:104px;padding:5px 9px;font-size:12px;min-height:31px;border-color:transparent;background:#f8fafc}.generation-more{margin:0 0 0 auto}.generation-more>summary{display:flex;align-items:center;gap:6px;font-size:11px;color:#64748b;list-style:none;padding:6px 0}.generation-more>summary::-webkit-details-marker{display:none}.generation-more .icon{width:14px;height:14px}.generation-options{position:absolute;left:0;bottom:calc(100% + 8px);width:100%;background:white;border:1px solid var(--line);border-radius:10px;padding:18px;box-shadow:0 6px 24px rgba(15,23,42,.08);z-index:4;max-height:min(360px,55dvh);overflow:auto}.generation-options label{font-size:11px}.generation-options .field{margin-bottom:12px}.generation-options select,.generation-options input{font-size:12px;padding:8px}.generation-options .row{gap:10px}.generation-options .actions{margin-top:12px;justify-content:space-between}.generation-options .actions button{font-size:12px}.composer-box{background:white;border:1px solid #dbe3ee;border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.04);transition:border-color .18s}.composer-box:focus-within{border-color:#93b4ef}form[data-form=chat] textarea{min-height:84px;max-height:150px;resize:vertical;background:transparent;font-size:13px;line-height:1.8;border:0;border-radius:12px 12px 0 0;padding:14px 15px 6px;display:block;outline:none}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px 9px}.attachment-actions{display:flex;gap:1px;min-width:0}.attachment-actions button{border:0;background:transparent;font-size:10px;padding:6px 7px;min-height:30px;color:#64748b;gap:4px}.attachment-actions button:hover{background:#f1f5f9;color:var(--blue)}.attachment-actions .icon{width:15px;height:15px}.composer-bottom>.primary{font-size:12px;min-height:34px;padding:8px 11px;white-space:nowrap}.composer-note{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:9px;font-size:9px;color:#94a3b8;line-height:1.5}.composer-note button{border:0;background:transparent;padding:0;min-height:22px;font-size:10px;color:#64748b;white-space:nowrap}.task-history{margin:24px 0 0;border-top:1px solid #edf1f6;padding-top:14px}.task-history>summary{font-size:11px;color:#94a3b8;font-weight:400}.task-history>summary .icon{width:14px;height:14px;margin-right:5px}.task-history .panel{padding:12px;margin:12px 0 0;background:#f8fafc}.task-history .panel h2{font-size:12px;margin-bottom:8px}.task-history .file-item{padding:10px;flex-direction:column;gap:8px;background:white}.task-history .actions{margin:0}.task-history button{font-size:11px;min-height:28px;padding:5px 9px}.task-history .tools{margin:0 0 10px}
.document-actions{display:flex;gap:7px;align-items:center}.document-actions button{font-size:11px;white-space:nowrap;min-height:32px;padding:7px 10px;border-color:transparent;color:#64748b}.document-actions .icon{width:15px;height:15px}.document-actions .icon-button{min-height:32px;width:32px;border-color:transparent;color:#64748b}.document-filters{display:flex;gap:6px;padding:14px 20px;border-bottom:1px solid #edf1f6;flex-shrink:0;flex-wrap:wrap}.filter-chip{min-height:29px;padding:6px 10px;font-size:11px;border-color:transparent;border-radius:6px;color:#64748b;background:transparent}.filter-chip:hover{background:#f8fafc;border-color:transparent}.filter-chip.selected{background:#eff6ff;color:#2563eb;font-weight:500}.document-scroll{flex:1;min-height:0;overflow:auto;background:#fff;padding:28px 32px;border-radius:0 0 12px 12px;overscroll-behavior:contain}.document-paper{max-width:860px;margin:auto;background:white;min-height:100%}.document-title{padding:0 0 23px;border-bottom:1px solid #e8edf4}.document-title>span{font-size:9px;letter-spacing:1.7px;color:#a0aec0}.document-title h2{overflow-wrap:anywhere;font-size:21px;line-height:1.55;margin:9px 0 8px;letter-spacing:-.3px}.document-title h2 small{display:block;font-size:14px;font-weight:400;color:#64748b;margin-top:3px;letter-spacing:0}.document-title p{font-size:11px;color:#94a3b8;margin:0}.document-entry{padding:25px 0 23px;border-bottom:1px solid #e8edf4;position:relative;scroll-margin-top:16px}.document-entry:last-child{border-bottom:0}.document-entry-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.document-entry-meta{display:flex;align-items:center;gap:11px;color:#94a3b8;font-size:10px}.entry-number{color:#94a3b8;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.6px}.entry-tools{display:flex;align-items:center;gap:3px;opacity:.25;transition:opacity .18s}.document-entry:hover .entry-tools,.document-entry:focus-within .entry-tools{opacity:1}.entry-tools>.icon-button,.entry-tools summary{min-height:28px;width:28px;padding:6px;border:0;background:transparent;color:#94a3b8;border-radius:6px}.entry-tools .icon{width:15px;height:15px}.entry-tools button:hover,.entry-tools summary:hover{background:#f1f5f9;color:var(--blue)}.document-entry h3{font-size:17px;line-height:1.75;margin:11px 0 14px;overflow-wrap:anywhere;font-weight:600;letter-spacing:.1px}.document-entry h3[role=button],.document-copy[role=button]{cursor:text;outline-offset:5px}.document-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:#475569;line-height:2.1;max-height:none;overflow:visible}.shooting-notes{margin:16px 0 0;font-size:12px;color:#64748b}.shooting-notes summary{font-size:11px;font-weight:400}.shooting-notes ol{padding-left:22px;line-height:1.8}.document-entry-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:15px}.document-entry-footer>small{color:#94a3b8;font-size:10px}.edit-shortcut{opacity:0;font-size:10px;color:#94a3b8;min-height:22px;padding:0;border:0;background:transparent}.document-entry:hover .edit-shortcut,.document-entry:focus-within .edit-shortcut{opacity:1}.preview-heading{border-top:1px dashed #cbd5e1;margin-top:20px;padding-top:23px}.preview-heading h3{font-size:13px;color:#64748b;margin:0 0 6px}.preview-heading p{font-size:11px;color:#94a3b8;margin:0}.document-entry.is-preview{opacity:.82}.document-paper>.empty{border:0;min-height:320px;padding:45px 20px}.document-paper>.empty h3{font-size:15px;margin-top:8px}.document-paper>.empty p{font-size:12px;line-height:1.9}.document-paper>.empty button{font-size:11px;color:var(--muted)}.is-editing .entry-tools{opacity:1}.inline-title{font-size:17px;font-weight:600;margin-top:13px}.inline-meta{display:flex;align-items:center;gap:12px;margin:12px 0}.inline-meta label{font-size:11px;color:#94a3b8;margin:0}.inline-meta select{width:auto;font-size:11px;padding:6px 10px}.is-editing textarea{font-size:14px;line-height:2;min-height:220px}.is-editing .actions{margin-top:12px}.is-editing .actions .hint{margin-right:auto;margin-top:0;font-size:10px}.is-editing .actions button{font-size:11px;min-height:32px}
/* Private merchant drawer uses the same existing versioned forms and uploads. */
dialog{border:1px solid var(--line);border-radius:12px;padding:28px;width:min(650px,calc(100vw - 30px));max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 16px 60px rgba(15,23,42,.14)}dialog::backdrop{background:rgba(15,23,42,.28)}dialog h2{margin:0 0 22px;font-size:21px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;background:#f8fafc;padding:15px;border-radius:8px}.merchant-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:-8px 0 32px rgba(15,23,42,.08);overflow:hidden}.merchant-drawer[open]{display:flex;flex-direction:column;animation:drawer-in .2s ease-out}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:25px 26px;border-bottom:1px solid var(--line);flex-shrink:0}.drawer-header h2{font-size:18px;margin:0}.drawer-header p{font-size:11px;color:#94a3b8;margin:5px 0 0}.drawer-header .icon-button{border:0;color:#64748b}.drawer-body{overflow:auto;padding:24px 26px 30px;min-height:0;flex:1}.drawer-body .row{gap:12px}.drawer-body label{font-size:12px}.drawer-body textarea{font-size:13px}.merchant-extra{border:1px solid var(--line);border-radius:8px;padding:12px 15px}.merchant-extra summary{font-size:12px;color:#475569}.merchant-extra summary .hint{font-size:10px;margin-left:5px}.merchant-fields{padding-top:20px}.merchant-fields .field:last-child{margin-bottom:0}.merchant-fields input{font-size:12px}.drawer-attachments{border-top:1px solid var(--line);margin-top:24px;padding-top:4px}.drawer-attachments .tools h3{font-size:14px}.drawer-attachments .tools button{font-size:11px;min-height:31px}.drawer-file-list{display:grid;gap:10px;margin:18px 0}.drawer-file{display:flex;gap:12px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.file-symbol{width:32px;height:32px;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:7px;color:#64748b;flex-shrink:0}.file-symbol .icon{width:16px;height:16px}.drawer-file>div{min-width:0}.drawer-file strong{display:block;font-size:12px;overflow-wrap:anywhere}.drawer-file small{font-size:10px;color:#94a3b8}.file-actions{display:flex;gap:12px;margin-top:7px}.file-actions button,.file-actions a{font-size:10px;border:0;background:transparent;padding:0;min-height:20px;color:#2563eb}.drawer-body>.subtle{font-size:11px;margin-top:20px;color:#64748b}@keyframes drawer-in{from{transform:translateX(24px);opacity:.6}to{transform:translateX(0);opacity:1}}
/* Existing feedback, detailed process, and authentication surfaces. */
.job-reason{font-size:12px;color:#92400e;max-width:720px;margin:5px 0;overflow-wrap:anywhere}.job-card{margin:10px 0;align-items:flex-start}.job-main{min-width:0;flex:1}.job-card .actions{margin-top:0;flex-wrap:wrap;flex-shrink:0}.job-status{display:inline-block;font-size:10px;font-weight:500;border-radius:5px;padding:3px 8px;margin-bottom:7px}.job-status.running{background:#eff6ff;color:#2563eb}.job-status.finished{background:#edf6f0;color:#3e7653}.preview{border-color:#bfdbfe;background:#f8fbff}.report-section{padding:6px 0}#report-content{min-height:70px}#sync-status{margin-bottom:16px}.form-error{color:#b91c1c;background:#fff1f2;border-radius:8px;font-size:12px;padding:12px;display:none}.form-error.visible{display:block;margin-bottom:15px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#0f172a;color:white;border-radius:8px;box-shadow:0 4px 18px rgba(15,23,42,.12);font-size:12px;max-width:90vw;display:none;z-index:10}#toast.visible{display:block}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:44% 56%;background:white}.auth-aside{background:#172554;color:white;padding:55px 12%;display:flex;flex-direction:column;justify-content:space-between}.auth-aside .brand{color:white;font-size:16px}.auth-aside .brand small{color:#93a7d0}.auth-aside h1{font-size:36px;line-height:1.65;letter-spacing:-.7px;font-weight:500;margin:30px 0 20px}.auth-aside p{color:#a7b8d9;line-height:1.9;font-size:14px}.auth-aside .auth-steps{border-top:1px solid #334779;padding-top:25px;display:grid;gap:17px;font-size:13px;color:#a7b8d9}.auth-step{display:flex;gap:12px;align-items:center}.auth-step span{border:1px solid #425b91;border-radius:7px;width:27px;height:27px;font-size:10px;display:grid;place-items:center}.auth-main{display:flex;align-items:center;justify-content:center;padding:50px 35px}.auth-form{width:100%;max-width:390px}.auth-form h2{font-size:27px;margin:0 0 10px}.auth-form>p{color:var(--muted);font-size:13px;margin:0 0 30px}.auth-form .primary{width:100%;min-height:43px;margin-top:8px;font-size:14px}.auth-form footer{font-size:11px;color:#94a3b8;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hidden,[hidden]{display:none!important}
@media(min-width:1700px){.is-workspace .content{padding:26px 30px 30px}.workbench-layout{gap:24px}.chat-messages{padding:30px 26px}.conversation-compose{padding:14px 22px 17px}.document-scroll{padding:32px 42px}.pane-heading,.document-toolbar{padding:21px 26px}.document-copy{font-size:15px}.document-entry h3{font-size:18px}}
@media(max-width:1450px){.is-workspace .content{padding:18px}.workbench-layout{gap:16px}.topbar{padding:0 23px}.document-scroll{padding:24px 25px}.pane-heading,.document-toolbar{padding:17px 18px;min-height:74px}.document-filters{padding:12px 16px;gap:3px}.filter-chip{padding:5px 8px;font-size:10px}.chat-messages{padding:22px 17px}.conversation-compose{padding:11px 13px 12px}.attachment-actions button{padding:6px 5px}.attachment-actions button span{display:none}.composer-note{font-size:9px}.document-copy{font-size:14px}.pane-heading p,.document-toolbar p{font-size:10px}.live-indicator{font-size:9px}.pane-title{gap:9px}.document-actions button{font-size:10px;padding:7px}.header-actions{gap:7px}}
@media(max-width:1200px){.shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:24px 14px 16px}.brand{font-size:12px;gap:8px}.brand small{font-size:8px}.mark{width:32px;height:32px;flex-basis:32px}.topbar{padding:0 20px}.content{padding:26px}.is-workspace .content{padding:14px}.workbench-layout{gap:12px}.pane-heading,.document-toolbar{padding:16px 14px}.document-scroll{padding:22px}.live-indicator{display:none}.document-actions button span{display:none}.header-actions .quota{padding:8px 4px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-grid{grid-template-columns:1fr}.pane-symbol{width:30px;height:30px;flex-basis:30px}.document-filters{gap:2px;padding:10px 13px}.composer-bottom>.primary{font-size:11px;padding:8px 9px}}
@media(max-width:1000px){.topbar{padding:0 18px}.header-actions{gap:6px}.merchant-button{padding:8px 10px}.merchant-button span{display:none}.export-menu>summary{padding:8px 10px}.pane-symbol{display:none}.is-workspace .content{padding:12px}.document-scroll{padding:20px}.chat-messages{padding:20px 14px}.chat-message{gap:8px}.chat-bubble{max-width:calc(100% - 35px)}.document-entry h3{font-size:16px}.composer-note>span{font-size:8px}.attachment-actions{gap:0}.generation-bar{gap:6px}.generation-bar>select{width:95px}.generation-more summary{font-size:10px}}
@media(max-width:860px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:22px 12px 14px;gap:20px}.brand{font-size:11px;gap:6px}.brand small{font-size:7px;letter-spacing:1px}.mark{width:29px;height:29px;flex-basis:29px}.is-workspace .content{height:auto}.workbench-layout{grid-template-columns:1fr;height:auto;gap:18px}.conversation-pane{height:570px}.document-pane{min-height:650px}.document-scroll{max-height:900px}.pane-symbol{display:grid}.pane-heading p,.document-toolbar p{font-size:11px}.live-indicator{display:flex}.document-actions button span{display:inline}.attachment-actions button span{display:inline}.document-filters{gap:5px}.filter-chip{font-size:11px;padding:6px 9px}.header-project h1{max-width:230px}.header-actions .quota{font-size:10px}.header-actions .quota strong{font-size:12px}.export-menu>summary span{font-size:11px}.header-actions .toolbar-menu>.icon-button{width:30px;padding:6px}.stats{padding:15px;gap:12px}.stat{display:block}.stat+.stat{padding-left:13px}.stat strong{display:block;font-size:21px;margin-top:5px}.project-grid,.status-grid{grid-template-columns:1fr}.auth-aside h1{font-size:29px}}
@media(max-width:640px){.shell{display:block}.sidebar{position:relative;height:auto;max-height:none;padding:16px;gap:14px}.sidebar .brand{font-size:14px}.brand small{font-size:8px}.mark{height:32px;width:32px;flex-basis:32px}.sidebar>.primary{width:100%}.project-nav{max-height:190px}.project-nav-list{display:flex;gap:6px;overflow:auto}.project-nav-item{flex-shrink:0;max-width:180px;padding:9px 11px;background:#f1f5f9}.sidebar-label{padding:0}.sidebar-footer{padding:10px 4px 0}.account small{display:inline;margin-left:8px}.nav{display:flex;flex-wrap:wrap;gap:1px;padding-top:8px}.nav button{font-size:11px;min-height:31px;padding:7px 8px}.nav button .icon{width:14px;height:14px}.topbar{height:auto;min-height:91px;padding:14px 16px;align-items:flex-start;gap:9px;flex-wrap:wrap}.header-project h1{font-size:16px;max-width:100%}.header-project{width:100%}.header-actions{width:100%;justify-content:flex-end}.header-actions .quota{margin-right:auto}.merchant-button span{display:inline;font-size:11px}.header-project p{font-size:10px}.content{padding:22px 16px}.is-workspace .content{padding:14px 12px}.heading h1{font-size:22px}.heading{gap:10px;align-items:flex-start}.heading button{white-space:nowrap;font-size:11px;padding:8px 10px}.stats{gap:10px}.stat span{font-size:10px}.stat small{font-size:10px}.row{grid-template-columns:1fr}.tools{align-items:flex-start;flex-direction:column;gap:12px}.search{width:100%}.panel{padding:20px}.file-item{align-items:flex-start;flex-wrap:wrap}.tabs{overflow:auto}.tabs button{white-space:nowrap}.pane-heading,.document-toolbar{padding:16px}.document-scroll{padding:23px 20px}.document-copy{font-size:14px}.document-entry h3{font-size:16px}.entry-tools{opacity:1}.document-title h2{font-size:20px}.generation-options .row{grid-template-columns:1fr 1fr}.conversation-pane{height:550px}.document-pane{min-height:600px}.document-filters{padding:11px 13px;gap:3px}.filter-chip{font-size:10px;padding:5px 8px}.document-entry-footer>small{font-size:9px}.edit-shortcut{display:none}.drawer-header,.drawer-body{padding-left:22px;padding-right:22px}.drawer-body .row{grid-template-columns:1fr 1fr}.auth-shell{display:block}.auth-aside{padding:25px}.auth-aside h1,.auth-aside p,.auth-steps{display:none!important}.auth-main{padding:45px 24px}.job-card{flex-direction:column}.job-card .actions{align-self:flex-end}.drawer-attachments .tools{flex-direction:row;align-items:center}.is-editing .actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Comfortable office reading: keep secondary information legible. */
.header-project p,.pane-heading p,.document-toolbar p,.document-title p{color:var(--muted);font-size:12px}.project-nav-item{font-size:14px}.sidebar-label{color:var(--muted);font-size:12px}.chat-bubble{font-size:14px}.chat-attachments>span,.task-history>summary{color:var(--muted);font-size:12px}.document-copy{font-size:15px;line-height:2}.document-entry h3{font-size:18px}.filter-chip{font-size:12px}.document-actions button{font-size:12px}.generation-bar>label,.generation-more>summary{font-size:12px;color:var(--muted)}form[data-form=chat] textarea{font-size:14px}.composer-note{font-size:10px;color:var(--muted)}.composer-note button{font-size:11px}.attachment-actions button{font-size:11px}.document-entry-footer>small{font-size:11px;color:var(--muted)}.entry-number{color:var(--muted)}.live-indicator{font-size:11px;color:var(--muted)}
@media(max-width:1450px){.filter-chip{font-size:11px}.pane-heading p,.document-toolbar p{font-size:11px}.document-actions button{font-size:11px}.live-indicator{font-size:10px}.composer-note{font-size:9px}.generation-bar>label,.generation-more>summary{font-size:11px}}
@media(max-width:1000px){.filter-chip{font-size:10px}.composer-note>span{font-size:8px}.document-entry h3{font-size:17px}.document-copy{font-size:14px}.chat-bubble{font-size:13px}}
@media(max-width:640px){.composer-note>span{font-size:9px}.filter-chip{font-size:11px}}
.generation-options .field{margin-bottom:9px}.generation-options label{margin-bottom:5px}.generation-options .actions{position:sticky;bottom:-18px;background:white;padding:10px 0 0;border-top:1px solid #edf1f6}
.live-indicator.is-disconnected i{background:#a78b52}
.edit-conflict{font-size:12px;color:#64748b;background:#f8fafc;padding:12px;border-radius:8px;margin-bottom:15px}.edit-conflict p{margin:0}.edit-conflict pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.edit-conflict button{font-size:11px;min-height:31px}.edit-conflict details{margin:10px 0}

.dedup-report{margin:12px 0 4px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:12px}.dedup-report summary{color:#1e3a8a;font-weight:600;cursor:pointer}.dedup-report p,.dedup-report ul{margin:9px 0}.dedup-report ul{padding-left:18px;line-height:1.8}.dedup-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.dedup-scores span{display:flex;justify-content:space-between;gap:8px;color:#64748b}.dedup-scores strong{color:#0f172a}
.dedup-state{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin:10px 0 4px;padding:9px 11px;border-radius:8px;border:1px solid #dbeafe;background:#f8fbff;color:#1e3a8a;font-size:12px;line-height:1.6}.dedup-state strong{font-weight:600}.dedup-state span{color:#475569}.dedup-state.success{border-color:#cce8d6;background:#f4fbf6;color:#25603b}.dedup-state.warning{border-color:#f5d6a4;background:#fffaf0;color:#92400e}.dedup-state.warning span{color:#7c4a12}
/* Shared merchant navigation and typed generation workspaces. */
.merchant-nav-group{min-width:0}.merchant-nav-group>.project-nav-item{width:100%}.workspace-nav{display:grid;gap:2px;margin:5px 0 12px 20px;padding-left:10px;border-left:1px solid #e2e8f0}.workspace-nav button{border:0;background:transparent;text-align:left;justify-content:flex-start;color:#64748b;font-size:13px;font-weight:400;padding:8px 10px;min-height:35px}.workspace-nav button:hover{background:#f1f5f9}.workspace-nav button.active{background:#eff6ff;color:#2563eb;font-weight:600}.workspace-nav .icon{width:15px;height:15px}.workspace-label{display:inline-block;margin-left:12px;padding:3px 8px;font-size:11px;font-weight:500;background:#eff6ff;color:#1d4ed8;border-radius:6px;vertical-align:middle}.workbench-layout{grid-template-columns:minmax(0,40fr) minmax(0,60fr)}.creation-context{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#64748b;margin-bottom:10px}.generation-bar{justify-content:flex-start}.generation-bar>select{width:110px}.generation-bar input[type=number]{width:76px;padding:7px 9px}.creation-modes{border:0;padding:0;margin:12px 0 0;display:flex;flex-wrap:wrap;gap:12px}.creation-modes legend{font-size:11px;color:#64748b;padding:0;margin-bottom:8px}.creation-modes label{display:flex;align-items:center;gap:5px;font-size:12px;color:#475569;cursor:pointer}.creation-modes input,.draft-selection{width:14px;height:14px;margin:0;accent-color:#2563eb;flex-shrink:0}.mode-hint{font-size:10px;color:#64748b;margin:8px 0 10px}.generate-button{width:100%;height:38px;font-size:12px}.generation-settings{padding:0 0 12px;border-bottom:1px solid #edf1f6;margin-bottom:12px}.conversation-compose{padding:16px}.conversation-pane form[data-form=chat] textarea{min-height:80px;height:80px}.draft-review{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:11px;color:#64748b;margin-top:17px}.draft-review button{border:0;background:#f8fafc;color:#64748b;font-size:11px;padding:5px 7px;min-height:26px}.draft-review small{width:100%;font-size:10px}.workspace-overview{height:100%;overflow:auto;padding:10px 4px 20px}.overview-intro h2{font-size:25px;font-weight:600;margin:16px 0 9px}.overview-intro p{font-size:13px;color:#64748b}.creation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}.creation-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;white-space:normal;padding:22px;min-width:0;background:white;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.025)}.creation-card:hover{border-color:#bfdbfe;background:#fcfdff}.creation-card strong{font-size:16px;font-weight:600;color:#0f172a}.creation-card p{font-size:12px;color:#64748b;line-height:1.8;font-weight:400;margin:0}.creation-card small{font-size:11px;color:#2563eb;font-weight:400;margin-top:auto}.shared-analysis h3{font-size:14px;font-weight:600;margin-top:22px}.shared-analysis p,.shared-analysis ol{font-size:13px;color:#475569;line-height:1.9}.collection-workspace{height:100%}.collection-controls{flex-shrink:0;padding-bottom:14px;border-bottom:1px solid #edf1f6}.collection-search{display:flex;gap:10px;padding:0 22px;align-items:center}.collection-search>input{flex:1;min-width:0;font-size:12px;height:36px}.collection-search>select{width:190px;font-size:12px;height:36px}.collection-advanced{position:relative}.collection-advanced>summary{font-size:12px;color:#64748b;white-space:nowrap}.collection-advanced>div{position:absolute;right:0;top:35px;z-index:20;background:white;border:1px solid #e2e8f0;border-radius:10px;width:280px;padding:16px;box-shadow:0 4px 16px rgba(15,23,42,.08)}.collection-advanced label{display:block;font-size:12px;color:#64748b;margin:0 0 10px}.collection-advanced input{margin-top:5px}.collection-workspace .document-toolbar>.actions{gap:8px}.collection-workspace .document-toolbar button{font-size:12px}.entry-tools:focus-within{opacity:1}.draft-selection{cursor:pointer}.project-nav-list{display:block}.document-paper{max-width:940px;margin-inline:auto}
@media(max-width:1450px){.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.conversation-compose{padding:12px}.creation-modes{gap:9px}.generation-bar{gap:8px}.generation-bar>label{font-size:11px}.mode-hint{font-size:10px}.header-project h1{font-size:16px}.workspace-label{margin-left:7px}}
@media(max-width:860px){.workbench-layout{grid-template-columns:1fr}.conversation-pane{height:700px}.collection-workspace{height:auto;min-height:650px}.collection-workspace .document-toolbar{flex-wrap:wrap}.collection-search{flex-wrap:wrap}.collection-search>select{width:170px}.workspace-overview{height:auto}.creation-grid{gap:12px}.creation-card{padding:18px}.workspace-label{font-size:10px}}
@media(max-width:640px){.project-nav{max-height:310px}.project-nav-list{display:block;overflow:auto}.workspace-nav{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0;border:0;padding-left:0}.workspace-nav button{font-size:12px;padding:7px 9px}.creation-grid{grid-template-columns:1fr 1fr}.creation-card{padding:16px;gap:9px}.creation-card strong{font-size:14px}.creation-card small{font-size:10px}.creation-card p{font-size:11px}.overview-intro h2{font-size:22px}.collection-search{padding:0 16px}.collection-search>input{flex-basis:100%}.collection-advanced>div{right:0}.collection-workspace .document-toolbar>.actions{flex-wrap:wrap}.creation-modes{gap:14px}.workspace-label{margin-left:8px}.conversation-pane{height:710px}}
.sidebar{gap:14px}.nav button{padding:8px 12px;min-height:33px}.workspace-nav button{padding:7px 10px;min-height:32px}.workspace-nav{gap:1px;margin-bottom:8px}.composer-label{display:block;font-size:11px;font-weight:500;color:#64748b;padding:12px 14px 0}.conversation-pane form[data-form=chat] textarea{min-height:68px;height:68px}.conversation-compose .generate-button{margin-top:10px}.generation-settings{padding-bottom:4px;margin-bottom:8px}.mode-hint{margin-bottom:6px}.composer-bottom{min-height:31px}.collection-workspace .document-paper{max-width:960px}
/* Confirmed package controls use the existing business-blue workspace surface. */
#groupbuy-panel{flex:0 1 auto;min-height:0;max-height:38%;overflow:auto;border-bottom:1px solid var(--line);background:#f8fafc}#groupbuy-panel:empty{display:none}.groupbuy-panel{margin:0;padding:12px 18px}.groupbuy-panel>summary{font-size:12px;display:flex;align-items:center;gap:10px;cursor:pointer}.groupbuy-panel-body{padding-top:10px}.groupbuy-toolbar,.groupbuy-card-top,.groupbuy-card-actions{display:flex;align-items:center;gap:8px;justify-content:space-between}.groupbuy-toolbar button,.groupbuy-card-actions button{font-size:11px;padding:5px 8px;min-height:28px}.groupbuy-cards{display:grid;gap:8px}.groupbuy-card{padding:12px;background:white;border:1px solid #e2e8f0;border-radius:9px;font-size:12px;min-width:0}.groupbuy-card p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.groupbuy-card label{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;margin:0}.groupbuy-card input[type=checkbox]{width:14px;height:14px;flex-shrink:0}.groupbuy-card strong{font-weight:600;overflow-wrap:anywhere}.groupbuy-card small{display:block;color:#64748b;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.groupbuy-card .groupbuy-price{font-weight:600;color:#2563eb}.groupbuy-card-actions{margin-top:9px;font-size:10px;color:#64748b;flex-wrap:wrap}.groupbuy-card-actions a{font-size:11px}.groupbuy-allocation{display:flex;align-items:center;gap:14px;padding:10px 0 0;border:0;margin:8px 0 0}.groupbuy-allocation legend{font-size:11px;color:#64748b}.groupbuy-allocation label{display:flex;gap:5px;align-items:center;font-size:11px;margin:0}.groupbuy-allocation input{width:13px;height:13px}.groupbuy-count{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:6px 0;gap:8px}.groupbuy-count input{width:65px;min-height:28px;padding:4px 7px;font-size:12px}.groupbuy-allocation-status{font-size:11px;color:#64748b;line-height:1.7;margin:8px 0 0}.groupbuy-allocation-status.is-error{color:#b45309}.groupbuy-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.groupbuy-editor-grid .wide{grid-column:1/-1}.groupbuy-editor-grid .field{margin:0}.groupbuy-image-pending{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:11px;margin:8px 0;padding:9px;background:white;border:1px solid #e2e8f0;border-radius:8px}.groupbuy-image-pending small{flex-basis:100%;color:#b45309}.groupbuy-binding{color:#64748b;font-size:11px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#groupbuy-result-filter{min-width:0;width:145px;font-size:11px;padding:6px 8px;min-height:32px}.document-actions{flex-wrap:wrap}@media(max-width:1100px){#groupbuy-result-filter{width:115px}.groupbuy-card-top{align-items:flex-start}}@media(max-width:700px){#groupbuy-panel{max-height:300px}.groupbuy-editor-grid{grid-template-columns:1fr}.groupbuy-editor-grid .wide{grid-column:1}.groupbuy-panel{padding:12px 14px}#groupbuy-result-filter{width:120px}}

/* Keep package cards usable alongside the fixed composer on laptop screens. */
.has-groupbuys #groupbuy-panel{flex:0 1 38%;max-height:38%;min-height:160px}
.has-groupbuys #groupbuy-panel:has(details:not([open])){flex-basis:auto;min-height:0}
.has-groupbuys .conversation-compose{padding:10px 12px}
.has-groupbuys .creation-context{margin-bottom:5px}
.has-groupbuys .generation-bar{margin-bottom:6px}
.has-groupbuys .creation-modes{margin-top:6px;gap:8px}
.has-groupbuys .creation-modes legend{float:left;line-height:22px;margin:0 8px 0 0}
.has-groupbuys .mode-hint{margin:4px 0}
.has-groupbuys .composer-label{padding-top:7px}
.has-groupbuys form[data-form=chat] textarea{min-height:68px;height:68px}
.has-groupbuys .composer-bottom{padding:3px 6px 5px}
.has-groupbuys .composer-note{margin-top:5px}
.has-groupbuys .chat-messages{padding:10px 14px;min-height:36px}
@media(max-height:740px) and (min-width:861px){.has-groupbuys .pane-heading{min-height:60px;padding-block:12px}.has-groupbuys #groupbuy-panel{min-height:145px;max-height:32%}.has-groupbuys .chat-messages{min-height:28px}}
@media(max-width:860px){.has-groupbuys #groupbuy-panel{flex-basis:240px;min-height:240px;max-height:300px}.has-groupbuys .chat-messages{min-height:80px}.has-groupbuys{height:760px}}

.has-groupbuys .groupbuy-panel{padding:8px 12px}
.has-groupbuys .groupbuy-panel-body{padding-top:6px}
.has-groupbuys .creation-modes{align-items:center}
.has-groupbuys .creation-modes label{margin-bottom:0}
.has-groupbuys .generation-settings{padding-bottom:0;margin-bottom:6px}

.duration-bar{margin-top:7px}.duration-bar label{font-size:11px;color:#64748b}.duration-bar select{height:30px;padding:4px 8px}.duration-bar input[type=number]{height:30px;padding:4px 8px}

.persona-panel{padding:10px 16px;border-bottom:1px solid #e2e8f0;background:#fbfcff;font-size:12px;flex-shrink:0}.persona-panel>div:first-child{display:flex;align-items:center;gap:9px}.persona-panel strong{font-weight:600}.persona-toolbar{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.persona-toolbar button{font-size:11px;min-height:28px;padding:4px 9px}.persona-panel .pill{font-size:10px}.field:has([name^=persona_status_]) select{width:140px;margin:6px 0}.field:has([name^=persona_status_]) textarea{display:block;width:100%;margin-top:3px}

.semantic-review{flex-wrap:wrap}.semantic-review small{flex-basis:100%;line-height:1.8}.source-claim{padding:16px 0;border-bottom:1px solid #E2E8F0}.source-claim p{line-height:1.8;white-space:pre-wrap}
/* AI conversation: a fixed header/composer and one chronological scroll area. */
.is-conversation{height:100dvh;overflow:hidden}.is-conversation .main{height:100dvh;display:flex;flex-direction:column;min-height:0}.is-conversation .topbar{flex:none}.is-conversation .content{flex:1;min-height:0;height:auto;margin:0;padding:0;overflow:hidden;background:#fff}.ai-conversation{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:#fff}.conversation-timeline{padding:28px max(28px,calc((100% - 850px)/2));position:relative;overflow-anchor:none;scroll-behavior:auto}.conversation-timeline .chat-message{margin:0 0 24px}.conversation-timeline .chat-bubble{max-width:90%;font-size:14px}.chat-bubble time{display:block;color:#94a3b8;font-size:11px;margin-bottom:7px;line-height:1.5}.conversation-empty{max-width:540px;margin:clamp(24px,8vh,90px) auto;text-align:center;color:#64748b}.conversation-empty .pane-symbol{margin:auto}.conversation-empty h2{font-size:22px;color:#0f172a;margin:14px 0 8px}.conversation-empty p{font-size:14px}.conversation-empty button{margin-top:14px}.conversation-task{margin:0 0 22px;padding:14px 16px;border:1px solid #e8edf4;border-radius:10px;background:#fcfdff;max-width:100%;font-size:13px}.task-heading{display:flex;align-items:center;gap:10px;margin-bottom:8px}.task-heading time{font-size:11px;color:#94a3b8}.task-state{display:inline-flex;gap:5px;font-size:11px;border-radius:5px;padding:2px 7px;color:#64748b;background:#f1f5f9}.task-state.success{background:#edf7f1;color:#387352}.task-state.working{background:#eff6ff;color:#2563eb}.task-state.waiting{background:#fff7ed;color:#a16207}.task-state.error{background:#fff1f2;color:#be123c}.conversation-task>strong{font-weight:500;font-size:14px}.conversation-task>p{font-size:12px;color:#64748b;margin:6px 0}.task-actions,.bubble-actions{flex-wrap:wrap;display:flex;align-items:center;gap:10px}.task-actions{margin-top:10px}.task-actions button{padding:3px 0;border:0;min-height:25px;background:transparent;color:#64748b;font-size:12px}.task-actions button:first-child{color:#2563eb}.task-actions button:hover{color:#1d4ed8}.inline-task-process{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:12px}.inline-task-process details{margin:10px 0}.inline-task-process summary{font-size:12px;color:#475569;cursor:pointer}.inline-task-process p{font-size:12px;overflow-wrap:anywhere}.inline-task-process .panel{padding:16px;margin-bottom:12px;border:1px solid #e2e8f0;box-shadow:none}.inline-task-process h3{font-size:13px}.inline-task-process .process-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 15px}.process-steps p{margin:0}.inline-task-process textarea{min-height:80px}.conversation-bottom{flex:none;position:relative;background:white;padding:0 28px 20px}.ai-compose{max-width:850px;margin:auto}.compose-context{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#64748b;margin-bottom:8px}.creation-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.creation-shortcuts button{font-size:12px;color:#64748b;background:#f8fafc;border:0;padding:6px 10px;min-height:30px}.creation-shortcuts button:hover{color:#2563eb;background:#eff6ff}.ai-compose textarea{resize:none!important;min-height:66px!important;height:66px;max-height:110px}.ai-compose .attachment-actions button span{display:inline}.latest-message{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:3;font-size:12px;color:#2563eb;background:white;border-color:#dbe7fa;box-shadow:0 2px 8px rgba(15,23,42,.05);min-height:32px;white-space:nowrap}.message-attachment{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.message-attachment>strong{font-size:13px;overflow-wrap:anywhere}.message-attachment>span{font-size:11px;color:#64748b}.attachment-status{font-size:11px!important;color:#64748b}.message-image{display:block;max-width:100%;max-height:340px;object-fit:contain;margin-top:12px;border-radius:8px}.task-result-highlight{background:#f8fbff;outline:1px solid #bfdbfe;border-radius:8px}.mobile-project-toggle{display:none}
@media(min-width:1700px){.is-conversation .content{padding:0}.conversation-timeline{padding-block:36px}.conversation-bottom{padding-bottom:26px}}
@media(max-width:860px){.is-conversation .content{height:auto;padding:0}.conversation-timeline{padding:22px}.conversation-bottom{padding:0 22px 16px}}
@media(max-width:640px){.is-conversation{display:block;height:100dvh}.is-conversation .sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(320px,90vw);height:100dvh;z-index:30;background:#f8fafc;box-shadow:8px 0 30px rgba(15,23,42,.12);overflow:auto}.is-conversation .sidebar.mobile-open{display:flex}.is-conversation .main{height:100dvh}.is-conversation .topbar{padding:12px;min-height:94px;gap:5px}.is-conversation .header-project{width:calc(100% - 86px)}.is-conversation .mobile-project-toggle{display:inline-flex;min-height:28px;font-size:11px;padding:5px 7px}.is-conversation .header-actions{width:100%;gap:5px}.is-conversation .content{padding:0;height:auto}.conversation-timeline{padding:18px 14px}.conversation-bottom{padding:0 14px 12px}.conversation-timeline .chat-bubble{font-size:13px}.conversation-timeline .chat-message.user .chat-bubble{max-width:95%}.conversation-task{padding:12px}.task-actions{gap:12px}.conversation-empty{margin:25px auto}.conversation-empty h2{font-size:19px}.conversation-empty p{font-size:13px}.inline-task-process .process-steps{grid-template-columns:1fr}.creation-shortcuts{gap:4px;margin-bottom:7px}.creation-shortcuts button{font-size:11px;padding:5px 8px;min-height:28px}.ai-compose .attachment-actions button{font-size:11px;padding:5px}.ai-compose .compose-context{font-size:10px}.ai-compose .composer-bottom>.primary{min-height:32px;padding:6px 10px}.is-conversation .nav{display:grid}.is-conversation .project-nav{max-height:none;flex:1}.is-conversation .workspace-nav{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ai-conversation *{scroll-behavior:auto;transition:none}}

.mobile-sidebar-backdrop{display:none}
@media(max-width:640px){.is-conversation .mobile-sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100vw;height:100dvh;z-index:29;border:0;border-radius:0;padding:0;background:rgba(15,23,42,.15)}}
/* V4: shared typed workspace, one timeline above a compact creation surface. */
.is-generate{height:100dvh;overflow:hidden}.is-generate .main{height:100dvh;display:flex;flex-direction:column;min-height:0}.is-generate .topbar{flex:none}.is-generate .content{flex:1;min-height:0;height:auto;margin:0;overflow:hidden}.compact-creation{display:grid!important;grid-template-rows:60px minmax(0,7fr) minmax(172px,3fr);position:relative;overflow:visible}.compact-creation .pane-heading{min-height:0;height:60px;padding:12px 16px}.creation-timeline{position:relative;min-height:0;background:white;overflow:hidden;border-radius:0}.creation-timeline .chat-messages{height:100%;padding:18px 16px;overflow:auto;position:relative;overflow-anchor:none}.creation-timeline .latest-message{bottom:10px}.creation-timeline .chat-message{margin-bottom:20px}.compact-creation .conversation-compose{padding:8px 10px;min-height:0;background:#f8fafc;border-top:1px solid #e2e8f0;border-radius:0 0 12px 12px;box-shadow:0 -2px 5px rgba(15,23,42,.025);display:flex;flex-direction:column;gap:5px}.compact-creation .generation-settings{padding:0;margin:0;border:0}.compact-creation .creation-context{margin:0;font-size:11px;min-height:18px}.creation-context>strong{font-size:12px;font-weight:600;color:#475569}.creation-context-tools{display:flex;align-items:center;gap:8px}.creation-context .pill{font-size:10px;padding:3px 6px}.compact-generation-row{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:4px}.compact-generation-row .generation-bar{margin:0;gap:4px;min-height:26px;flex:none}.compact-generation-row select{width:84px;height:26px;min-height:26px;padding:3px 6px;font-size:11px}.compact-generation-row input[type=number]{width:48px;height:26px;min-height:26px;padding:3px 4px;font-size:11px}.compact-generation-row .creation-modes{margin:0;gap:2px;flex-wrap:nowrap;min-width:0}.compact-generation-row .creation-modes label{margin:0;min-height:26px;display:block;position:relative;white-space:nowrap}.compact-generation-row .creation-modes input{position:absolute;opacity:0;width:1px;height:1px}.compact-generation-row .creation-modes span{display:block;border:1px solid transparent;border-radius:5px;padding:4px 5px;font-size:10px;background:transparent;color:#64748b}.compact-generation-row .creation-modes input:checked+span{background:white;border-color:#cbdaf4;color:#2563eb}.compact-generation-row .creation-modes input:focus-visible+span{outline:2px solid #2563eb;outline-offset:1px}.compact-creation #chat-composer{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}.compact-creation .composer-box{border-radius:8px;box-shadow:none;flex:1;min-height:0;display:flex;flex-direction:column;background:white}.compact-creation form[data-form=chat] textarea{height:44px;min-height:44px;flex:1;max-height:none;padding:6px 9px;font-size:12px;line-height:18px;resize:none;overflow:auto;border:0;border-radius:8px 8px 0 0}.compact-creation .composer-bottom{flex:none;min-height:24px;height:24px;padding:0 4px 2px;gap:4px}.compact-creation .composer-bottom button{font-size:10px;min-height:22px;padding:3px 5px;border:0;background:transparent;color:#64748b}.compact-creation .attachment-actions button{min-height:22px;padding:3px 4px;gap:3px}.compact-creation .attachment-actions button span{display:inline}.compact-creation .attachment-actions .icon{height:13px;width:13px}.generation-submit-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex:none}.generation-submit-row .composer-note{font-size:10px;color:#94a3b8;margin:0}.compact-creation .generate-button{width:auto;flex:1;max-width:230px;min-height:30px;height:30px;padding:5px 9px;margin:0;font-size:11px}.creation-advanced{position:relative;margin:0}.creation-advanced>summary{font-size:10px;font-weight:400;color:#64748b;list-style:none;padding:2px 4px}.creation-advanced>summary::-webkit-details-marker{display:none}.creation-advanced>summary:after{content:' ▾'}.creation-advanced[open]>summary{color:#2563eb}.creation-settings-popover{position:absolute;z-index:16;right:0;bottom:calc(100% + 10px);width:min(360px,75vw);max-height:min(460px,65vh);overflow:auto;padding:14px;background:white;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 6px 24px rgba(15,23,42,.09)}.creation-settings-popover .mode-hint{font-size:11px;margin:0 0 9px}.creation-settings-popover #groupbuy-panel{max-height:none;min-height:0;overflow:visible;flex:none;border:0;background:white}.creation-settings-popover .groupbuy-panel{margin:0;padding:0}.creation-settings-popover .persona-panel{padding:0;border:0;background:white}.creation-settings-popover .duration-bar{margin:0 0 12px}.is-generate .document-toolbar{min-height:60px;padding:12px 16px;gap:8px}.is-generate .document-actions{gap:5px;flex-wrap:nowrap}.is-generate .document-actions select{font-size:10px;width:83px;height:28px;min-height:28px;padding:3px 5px}.is-generate #groupbuy-result-filter{width:90px}.is-generate .document-actions .icon-button{width:30px;height:30px;min-height:30px;padding:5px}.is-generate .pane-title{gap:8px}.is-generate .pane-symbol{height:28px;width:28px;flex-basis:28px}.is-generate .pane-heading p,.is-generate .document-toolbar p{font-size:10px;margin:3px 0 0}.is-generate .document-toolbar h2{font-size:14px}#latest-result-time{font-size:10px;display:block;color:#94a3b8;margin-top:2px}.result-status{flex:none;padding:0 16px;border-bottom:1px solid #edf1f6;background:#fbfdff;font-size:11px}.result-status[hidden]{display:none}.result-status>div{padding:9px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.result-status button{margin-left:auto;color:#2563eb;background:transparent;min-height:24px;padding:3px 5px;border:0;font-size:11px}.result-progress strong{font-size:11px;font-weight:500}.result-progress small{width:100%;font-size:10px;color:#64748b}.result-arrival{color:#2563eb}.result-settled{color:#64748b}.document-scroll{overflow-anchor:none;position:relative}.document-entry.is-new-result{background:#fbfdff;border-left:2px solid #a6c4ff;padding-left:14px}.document-entry.task-result-highlight{outline:1px solid #bfdbfe;background:#f5f9ff;outline-offset:3px}.document-entry-meta{flex-wrap:wrap;row-gap:4px}.new-result-label{font-size:9px;letter-spacing:.5px;color:#2563eb;background:#eff6ff;padding:2px 4px;border-radius:4px}.draft-created-time{font-size:10px;color:#94a3b8;white-space:nowrap}.compact-review{margin-top:12px;align-items:flex-start;gap:10px}.compact-review>span{font-size:11px;color:#64748b}.compact-review>details{margin:0;flex:1}.compact-review>details>summary{font-size:10px;color:#94a3b8;text-align:right;font-weight:400}.compact-review details .draft-review{margin-top:9px;padding:9px;background:#f8fafc;border-radius:6px}.document-entry-footer{padding-top:8px;margin-top:8px}.workspace-count{margin-left:auto;font-size:10px;color:#94a3b8;font-variant-numeric:tabular-nums}#toast.visible{display:flex;align-items:center;gap:10px}#toast button{min-height:26px;font-size:11px;padding:3px 6px;background:#334155;border:0;color:white}
@media(max-height:700px) and (min-width:861px){.is-generate .content{padding:12px 16px}.compact-creation{grid-template-rows:52px minmax(0,7fr) minmax(160px,3fr)}.compact-creation .pane-heading{height:52px;padding:8px 12px}.compact-creation .conversation-compose{padding:6px 8px;gap:3px}.compact-creation form[data-form=chat] textarea{min-height:36px;height:36px}.compact-creation .composer-note{display:none}.compact-creation .generate-button{max-width:none}.is-generate .document-toolbar{min-height:52px;padding:9px 12px}}
@media(max-width:1100px) and (min-width:861px){.is-generate .content{padding:14px}.is-generate .workbench-layout{grid-template-columns:minmax(320px,42fr) minmax(0,58fr);gap:12px}.compact-generation-row{gap:3px}.compact-generation-row .creation-modes span{font-size:9px;padding:4px 3px}.is-generate .document-toolbar>.pane-title>.pane-symbol{display:none}.is-generate .document-toolbar{flex-wrap:wrap}.is-generate .document-actions{margin-left:auto}}
@media(max-width:860px){.is-generate{height:auto;overflow:visible}.is-generate .main{height:auto;display:block}.is-generate .content{height:auto;overflow:visible;padding:14px}.is-generate .workbench-layout{height:auto;display:flex;flex-direction:column;gap:14px}.compact-creation{height:620px!important;min-height:0;grid-template-rows:60px minmax(0,1fr) 190px}.compact-creation .conversation-compose{padding:10px}.is-generate .document-pane{height:650px;min-height:0}.is-generate .sidebar{height:auto}.is-generate .document-scroll{min-height:0}.creation-settings-popover{width:min(360px,80vw)}}
@media(max-width:420px){.compact-creation{height:590px!important;grid-template-rows:56px minmax(0,1fr) 194px}.compact-creation .pane-heading{height:56px}.compact-generation-row{gap:4px}.compact-generation-row .creation-modes span{padding:4px;font-size:10px}.compact-creation .conversation-compose{padding:10px 8px}.compact-generation-row select{width:80px}.generation-submit-row .composer-note{display:none}.compact-creation .generate-button{max-width:none}.is-generate .document-toolbar{flex-wrap:wrap}.is-generate .document-actions{margin-left:auto}.is-generate .document-entry-meta{gap:4px}.creation-settings-popover{width:78vw;right:-36px}}

/* V7 — a quiet reading surface, an ice-blue project rail and a focused composer. */
:root{--ink:#102a43;--soft:#f7fafe;--blue-soft:#eff6ff;--rail:#e3f2fd;--selected:#dbeafe;--strong-line:#93c5fd;color:var(--ink);background:var(--soft)}
.shell{grid-template-columns:224px minmax(0,1fr)}.sidebar{background:var(--rail);border-right-color:#d4e5f6;padding:22px 14px 16px;gap:18px}.brand{color:#102a43;font-size:14px}.brand .mark{background:#fff;border:0;color:var(--blue);box-shadow:none;border-radius:12px}.brand small{color:#7292ad;letter-spacing:1px;font-size:8px}.sidebar>.primary{border-radius:12px;min-height:38px;box-shadow:none}.sidebar-label{font-size:10px;color:#6585a0;letter-spacing:.5px}.sidebar-search{font-size:12px;height:32px;min-height:32px;background:rgba(255,255,255,.75);border-color:transparent;border-radius:9px;margin:7px 0 10px}.sidebar-search:focus{background:white}.project-nav-list{overflow:auto;min-height:0}.project-nav-item{font-size:13px;font-weight:600;border-radius:10px;min-height:36px;color:#355671}.project-nav-item.selected{background:#d4e8fb;color:#153c6b;border:0}.project-nav-item:hover{background:#d8eafb}.workspace-nav{border:0;margin:4px 0 10px 10px;padding-left:0;gap:3px}.workspace-nav button{min-height:32px;font-size:12px;border-radius:9px;padding:7px 10px;color:#466480;transition:background .16s ease,color .16s ease}.workspace-nav button.active{background:#2563eb;color:white;box-shadow:0 2px 5px rgba(37,99,235,.1)}.workspace-nav button.active .workspace-count{color:#dbeafe}.workspace-nav button:not(.active):hover{background:#d7e9fa;color:#1d4ed8}.sidebar .nav{border-top:1px solid #cbdff2;padding-top:12px}.sidebar .nav button{border-radius:10px;font-size:12px;color:#48677e}.sidebar-footer{border-color:#cbdff2}.sidebar .avatar{background:white;color:#2563eb;border-radius:10px}.account-name{color:#25475f}.account-name small{color:#7292ad}.workspace-count{color:#6c8aa6}
.topbar{height:70px;min-height:70px;padding:0 22px;border-color:#e8eef6;background:#fdfefe}.header-project h1{font-size:17px;color:#102a43;line-height:1.5}.header-project p{font-size:11px;color:#7b8fa2;max-width:560px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-label{background:#eff6ff;border:0;color:#2563eb;border-radius:7px;font-size:10px}.header-actions button,.header-actions summary{border-radius:10px}.quota{background:#eff6ff;border-color:transparent;color:#64748b}.quota strong{color:#2563eb}.is-workspace .content{padding:16px 18px;height:calc(100dvh - 70px);background:#f7fafe}.is-generate .content{height:auto}.workbench-layout{grid-template-columns:minmax(0,40fr) minmax(0,60fr);gap:18px}.conversation-pane,.document-pane{border-color:#e4edf7;border-radius:16px;box-shadow:0 1px 3px rgba(15,23,42,.025)}.compact-creation{grid-template-rows:56px minmax(0,7fr) minmax(182px,3fr)}.compact-creation .pane-heading{height:56px;padding:10px 15px;background:white;border-radius:16px 16px 0 0}.pane-heading h2,.document-toolbar h2{font-size:14px;font-weight:600;color:#102a43}.pane-heading p,.document-toolbar p{color:#7b8fa2}.pane-symbol{background:#eff6ff;border:0;border-radius:9px;color:#2563eb}.live-indicator{font-size:10px;color:#6487a0}.creation-timeline .chat-messages{padding:18px 15px}.chat-message.user .chat-bubble{background:#eaf3ff;border:0;border-radius:13px 13px 4px 13px}.chat-message.assistant .chat-bubble{background:transparent;border:0;padding-top:4px}.chat-message .chat-avatar{background:#f1f6fc;border:0;color:#6585a0;border-radius:9px}.conversation-task{padding:11px 13px;background:#f8fafc;border-color:#edf1f7;border-radius:12px;margin-bottom:15px}.conversation-task.is-working{background:#f5f9ff;border-color:#dfebfb}.conversation-task.is-waiting{background:#fffcf5;border-color:#fde7b7}.conversation-task>strong{font-size:12px}.conversation-task>p{font-size:11px;line-height:1.6}.task-heading{margin-bottom:5px;justify-content:space-between}.task-state{border-radius:6px;font-size:10px}.task-actions{gap:13px;margin-top:7px}.task-actions button{font-size:11px;min-height:24px}.task-actions .confirm-task-button{padding:4px 9px;min-height:28px;background:#fff0d6;border-radius:7px;color:#a16207;font-weight:600}.inline-task-process{border-color:#e6edf5}.latest-message{border-radius:999px;box-shadow:0 2px 10px rgba(15,23,42,.07)}
.compact-creation .conversation-compose{padding:9px 12px 10px;gap:6px;background:#eff6ff;border-top:1px solid #c9def8;box-shadow:0 -3px 7px rgba(37,99,235,.025);border-radius:0 0 16px 16px}.creation-context>strong{font-size:12px;color:#2a4b69}.creation-context .pill{background:#dbeafe;color:#1e40af;border-radius:7px}.compact-generation-row{gap:6px;margin-top:6px}.compact-generation-row select{background:#fff;border:1px solid #d9e7f7;border-radius:8px;height:28px;min-height:28px;font-size:11px}.compact-generation-row .creation-modes{border:0;background:#e0edfd;border-radius:999px;padding:3px;gap:1px}.compact-generation-row .creation-modes span{border-radius:999px;padding:5px 7px;font-size:10px;border:0}.compact-generation-row .creation-modes input:checked+span{background:#2563eb;color:white;border-color:transparent;box-shadow:0 1px 3px rgba(37,99,235,.12)}.compact-generation-row .creation-modes input:not(:checked)+span:hover{background:#d2e4fb;color:#1e40af}.compact-creation .composer-box{border:1px solid #d4e5f7;border-radius:13px;overflow:hidden;box-shadow:0 1px 3px rgba(15,23,42,.025)}.compact-creation form[data-form=chat] textarea{font-size:12px;line-height:19px;padding:8px 10px;min-height:48px;height:48px;border-radius:13px 13px 0 0}.compact-creation .composer-bottom{height:26px;min-height:26px;padding:0 6px 4px}.compact-creation .composer-bottom button{font-size:10px;border-radius:6px}.compact-creation .attachment-actions button:hover{background:#eff6ff;color:#2563eb}.generation-submit-row{flex-direction:row-reverse;gap:6px}.compact-creation .generate-button{max-width:none;min-height:34px;height:34px;border-radius:10px;font-size:12px;flex:1;box-shadow:none}.compact-creation .composer-note{display:none}.creation-advanced>summary{color:#62819e}.creation-settings-popover{border-color:#d5e4f5;border-radius:14px}.button.primary,button.primary{background:#2563eb}.button.primary:hover,button.primary:hover{background:#1d4ed8}button:active,.button:active{filter:brightness(.97)}button,.button{transition:background .16s ease,border-color .16s ease,color .16s ease}
.is-generate .document-toolbar{min-height:56px;padding:10px 17px;background:white;border-radius:16px 16px 0 0;border-bottom-color:#edf2f8}.is-generate #latest-result-time{display:none}.is-generate .document-actions select{border-radius:8px}.document-scroll{background:white;padding:22px 26px}.is-generate .document-title{display:none}.document-paper{padding:0;border:0;box-shadow:none;max-width:none}.document-entry{padding:22px 0 20px;border-color:#edf1f6;border-radius:0}.document-entry:first-child{padding-top:8px}.document-entry-top{align-items:flex-start;gap:10px}.entry-tools{flex-shrink:0}.document-entry-meta .pill{font-size:10px;background:#f2f6fa;color:#59738b;border:0}.entry-number{color:#668098;font-weight:500}.draft-created-time{color:#8296a8;font-size:10px}.document-entry h3{font-size:17px;line-height:1.65;font-weight:600;margin:10px 0 13px;color:#102a43}.document-copy{font-size:14px;line-height:1.95;color:#304b60}.copy-metrics{font-size:11px;font-weight:500;color:#6485a1;margin:8px 0 4px;font-variant-numeric:tabular-nums}.document-entry.is-editing .copy-metrics{color:#2563eb}.document-entry.is-new-result{background:#f0f7ff;border:1px solid #cfe3fb;border-left:3px solid #2563eb;border-radius:12px;padding:17px 15px;margin:0 0 14px}.document-entry.is-new-result .copy-metrics{color:#2563eb}.new-result-label{background:#2563eb;color:white;border-radius:5px;font-size:9px;padding:2px 5px}.document-entry.task-result-highlight{background:#eaf4ff;outline-color:#93c5fd;border-radius:12px}.entry-tools .icon-button{color:#738aa0;border-color:transparent;background:transparent;border-radius:8px}.entry-tools .icon-button:hover{background:#e5f0ff;color:#2563eb}.document-entry-footer{border:0}.compact-review{margin-top:10px}.compact-review>span{font-size:10px;color:#7a91a5}.compact-review>details>summary{color:#8395a7}.document-entry-footer small,.document-entry-footer .edit-shortcut{font-size:10px;color:#93a4b4}.result-status{padding:0 17px;background:white;border-color:#edf2f8}.result-status>div{padding:10px 0}.result-progress{color:#2563eb;gap:7px}.result-progress.is-waiting{color:#9a670d}.result-progress.is-waiting small{color:#967a51}.result-progress.is-waiting button{background:#fff2db;color:#a16207;border-radius:7px;font-weight:600}.result-status>.result-arrival{position:relative;background:#eaf4ff;border:1px solid #cde2fb;border-radius:12px;margin:10px 0;padding:12px;gap:10px;flex-wrap:nowrap}.arrival-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#d3e6ff;color:#1d4ed8;flex:none;font-size:15px}.result-arrival>div{min-width:0;flex:1}.result-arrival strong{font-size:13px;display:block;font-weight:600}.result-arrival p{font-size:11px;color:#52779a;margin:3px 0}.result-arrival time{font-size:10px;color:#819cb4}.result-arrival button{font-size:11px;font-weight:600;white-space:nowrap;margin:0;border-radius:8px;padding:5px 7px}.result-arrival .dismiss-result-notice{align-self:flex-start;padding:0 3px;font-size:16px;color:#7b9dbd}.result-settled{font-size:10px}.workspace-view-switch{display:none}
dialog{border-radius:16px;border-color:#e3edf7;box-shadow:0 18px 64px rgba(15,23,42,.14)}dialog::backdrop{background:rgba(24,48,75,.26)}dialog.confirmation-modal{width:min(760px,calc(100vw - 32px));height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;display:flex;flex-direction:column}.confirmation-header{flex:none;position:relative;padding:23px 25px 17px;border-bottom:1px solid #e6eef7;background:white}.confirmation-header>.icon-button{position:absolute;right:16px;top:16px;border:0;background:#f3f7fb;color:#7b90a5}.confirmation-eyebrow{font-size:10px;color:#a16207;background:#fff5e4;border-radius:6px;padding:4px 7px}.confirmation-header h2{font-size:19px;font-weight:600;margin:13px 0 5px;color:#102a43}.confirmation-header p{font-size:12px;color:#718ba2;margin:0}#confirmation-content{flex:1;min-height:0;overflow:hidden}#confirmation-content>p{padding:20px 25px}#confirmation-content>.actions{padding:12px 25px}.confirmation-form{height:100%;display:flex;flex-direction:column;min-height:0}.confirmation-body{overflow:auto;min-height:0;flex:1;padding:20px 25px}.confirmation-body .panel{border:1px solid #e7eef7;background:#fbfdff;padding:17px;border-radius:12px;box-shadow:none;margin-bottom:14px}.confirmation-body h3{font-size:14px;font-weight:600}.confirmation-body p{font-size:12px;line-height:1.85}.confirmation-body textarea{min-height:78px;max-height:230px;font-size:13px;line-height:1.8}.confirmation-body .field{margin-bottom:20px}.confirmation-analysis{font-size:12px;color:#64748b;padding:10px 13px;background:#f5f9ff;border-radius:10px;margin-bottom:18px}.confirmation-actions{flex:none;margin:0!important;padding:13px 25px;border-top:1px solid #e3edf7;background:white;gap:8px;justify-content:flex-end;flex-wrap:wrap}.confirmation-actions button{min-height:36px;font-size:12px;border-radius:10px}.confirmation-actions .primary{margin-left:auto}#toast{background:#153c61;border-radius:12px;z-index:40}.ai-conversation{background:#fff}.conversation-bottom{background:#eff6ff;border-top:1px solid #d8e8f9;padding-top:12px}.ai-compose .composer-box{border-radius:14px;border-color:#d5e7f8;box-shadow:none}.creation-shortcuts button{border-radius:999px;background:white;color:#4e7598}
@media(min-width:1700px){.is-workspace .content{padding:20px 24px}.document-scroll{padding:25px 34px}.workbench-layout{gap:20px}.document-copy{font-size:15px}}
@media(max-width:1350px) and (min-width:1101px){.sidebar{padding:18px 12px}.is-workspace .content{padding:12px}.workbench-layout{gap:12px}.compact-generation-row .creation-modes span{padding:5px 5px;font-size:10px}.document-scroll{padding:20px}.topbar{padding:0 16px}}
@media(max-height:740px) and (min-width:861px){.is-workspace .content{padding:10px 12px}.compact-creation{grid-template-rows:52px minmax(0,7fr) minmax(174px,3fr)}.compact-creation .pane-heading{height:52px;padding:8px 12px}.compact-creation .conversation-compose{padding:7px 9px;gap:4px}.compact-generation-row{margin-top:4px}.compact-generation-row .creation-modes span{padding:4px 5px}.compact-creation form[data-form=chat] textarea{min-height:40px;height:40px;padding:6px 9px}.compact-creation .composer-bottom{height:23px;min-height:23px;padding-bottom:2px}.compact-creation .generate-button{height:32px;min-height:32px}.is-generate .document-toolbar{min-height:52px}}
@media(max-width:1100px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{display:none;position:fixed;inset:0 auto 0 0;width:224px;height:100dvh;z-index:31;background:#e3f2fd;box-shadow:6px 0 30px rgba(15,23,42,.12)}.sidebar.mobile-open{display:flex}.mobile-sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100vw;height:100dvh;z-index:30;background:rgba(15,23,42,.18);border:0;border-radius:0;padding:0}.mobile-project-toggle{display:inline-flex;min-height:30px;font-size:11px;padding:5px 9px;border-color:#d5e5f6;background:white;border-radius:8px}.is-generate .workbench-layout{grid-template-columns:minmax(310px,40fr) minmax(0,60fr);gap:12px}.is-generate .content{padding:12px}.topbar{gap:10px;padding:0 13px}.header-project{flex:1;min-width:0}.header-project h1{font-size:16px}.header-actions{gap:5px}.is-generate .document-toolbar{flex-wrap:nowrap}.is-generate .document-toolbar>.pane-title>.pane-symbol{display:none}.compact-generation-row .creation-modes span{font-size:10px;padding:5px 6px}}
@media(max-width:860px){.is-generate{height:100dvh;overflow:hidden}.is-generate .main{height:100dvh;display:flex;flex-direction:column;min-height:0}.is-generate .topbar{height:auto;min-height:70px;flex:none}.is-generate .content{min-height:0;flex:1;display:flex;flex-direction:column;height:auto;padding:10px;overflow:hidden;gap:8px}.workspace-view-switch{display:flex;align-self:center;background:#e3effd;border-radius:999px;padding:3px;gap:3px;flex:none}.workspace-view-switch button{border:0;border-radius:999px;background:transparent;color:#6585a0;padding:6px 20px;font-size:12px;min-height:30px}.workspace-view-switch button.selected{background:#2563eb;color:white}.is-generate .workbench-layout{display:flex;flex:1;min-height:0;height:auto;gap:0}.compact-creation{height:100%!important;width:100%;grid-template-rows:52px minmax(0,7fr) minmax(182px,3fr)}.compact-creation .pane-heading{height:52px}.is-generate .document-pane{height:100%;width:100%;min-height:0}.workbench-layout[data-pane-view=creation] .document-pane{display:none}.workbench-layout[data-pane-view=results] .conversation-pane{display:none!important}.document-scroll{padding:16px}.creation-settings-popover{max-height:55dvh;width:min(360px,83vw);right:0}.header-actions .merchant-button span{display:none}.header-actions .merchant-button{padding:7px}.header-project p{max-width:280px}.is-generate .sidebar{height:100dvh}.document-entry h3{font-size:16px}.result-status>.result-arrival{padding:10px;gap:7px}.result-arrival button{font-size:10px;padding:4px}.arrival-icon{width:25px;height:25px}.result-arrival p{font-size:10px}.is-conversation .sidebar{background:#e3f2fd}.is-conversation .mobile-sidebar-backdrop:not([hidden]){z-index:30}.is-conversation .sidebar{z-index:31}}
@media(max-width:560px){.topbar{flex-wrap:wrap;padding:10px 12px;gap:6px;height:auto!important;min-height:98px!important}.header-project{min-width:0;flex:1}.header-actions{width:100%;justify-content:flex-end}.header-project h1{font-size:15px}.header-project p{font-size:10px;max-width:270px}.header-actions button,.header-actions summary{min-height:30px;height:30px;padding:5px 8px;font-size:10px}.header-actions .merchant-button span{display:inline}.compact-generation-row{gap:5px}.compact-generation-row .creation-modes span{font-size:10px;padding:5px 6px}.compact-creation .conversation-compose{padding:8px 10px;gap:5px}.compact-generation-row select{width:79px}.compact-generation-row input[type=number]{width:42px}.compact-creation .pane-heading{padding:8px 12px}.confirmation-header{padding:19px 17px 14px}.confirmation-header h2{font-size:17px}.confirmation-header p{font-size:11px}.confirmation-body{padding:16px}.confirmation-actions{padding:10px 14px;gap:6px}.confirmation-actions button{font-size:11px;padding:7px 9px}.confirmation-header>.icon-button{right:11px;top:11px}.document-entry-top{gap:4px;flex-wrap:wrap}.entry-tools{margin-left:auto}.document-entry-meta{gap:5px}.is-generate .document-toolbar{flex-wrap:wrap}.is-generate .document-actions{margin-left:auto}.result-arrival .arrival-icon{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Local navigation retains chrome; loading is scoped to the active content. */
.content.is-loading{position:relative}.content.is-loading:after{content:'正在打开商家…';position:absolute;top:12px;left:50%;transform:translateX(-50%);background:#eff6ff;color:#2563eb;padding:9px 18px;border:1px solid #dbeafe;border-radius:10px;z-index:20;box-shadow:0 1px 3px #0f172a0a}.content.is-loading>*{opacity:.45;pointer-events:none}.workspace-nav button{transition:background .12s,color .12s}.load-more-results{width:100%;margin:16px 0;padding:12px;background:#f7faff;color:#2563eb;border:1px solid #e2e8f0;border-radius:9px}.load-more-results:hover{background:#eff6ff}

/* Merchant menus collapse locally without rebuilding the workspace. */
.project-nav-item .merchant-name{flex:1;text-align:left}.project-nav-item .merchant-chevron{display:flex;flex:0 0 16px;justify-content:center;margin-left:auto}.project-nav-item .merchant-chevron .icon{width:14px;height:14px;transition:transform .12s}.project-nav-item[aria-expanded="false"] .merchant-chevron .icon{transform:rotate(-90deg)}.workspace-nav[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.project-nav-item .merchant-chevron .icon{transition:none}}

/* AI七序 × QI7 V2. Local fonts, flat SVG geometry, stable working surfaces. */
:root{
  --brand-navy:#0F172A;--brand-sidebar:#101B31;--brand-deep:#162033;
  --brand-blue:#2563EB;--brand-blue-hover:#1D4ED8;--brand-highlight:#60A5FA;
  --surface:#F8FAFC;--card:#FFFFFF;--border:#E2E8F0;--text:#0F172A;
  --text-secondary:#475569;--text-quiet:#64748B;--text-faint:#94A3B8;
  --navy:var(--brand-navy);--blue:var(--brand-blue);--ink:var(--text);
  --muted:var(--text-secondary);--line:var(--border);--soft:var(--surface);
  --rail:var(--brand-sidebar);--quiet:var(--text-quiet);--sidebar-width:260px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  background:var(--surface);color:var(--ink);
}
::selection{color:#172554;background:#DBEAFE}
:where(button,a,summary,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--brand-highlight);outline-offset:3px}
button:active:not(:disabled),.button:active{filter:brightness(.97)}
.button,button{border-radius:9px;transition:background-color .15s,border-color .15s,color .15s}
.primary,.button.primary{background:var(--blue);border-color:var(--blue);color:var(--card);box-shadow:0 1px 3px #0f172a08}
.primary:hover,.button.primary:hover{background:var(--brand-blue-hover);border-color:var(--brand-blue-hover);box-shadow:none}
input,select{min-height:40px;border-color:var(--line);border-radius:9px}
textarea{border-color:var(--line);border-radius:10px}
input::placeholder,textarea::placeholder{color:var(--text-quiet);opacity:1}
.hint,.meta{color:var(--text-quiet)}
.brand{gap:12px;line-height:1.1;letter-spacing:-.4px;color:var(--ink);padding:0;border:0;background:transparent;justify-content:flex-start;min-height:48px}
.brand .mark{width:42px;height:44px;flex:0 0 42px;background:transparent;border:0;box-shadow:none;border-radius:0;display:grid;place-items:center}
.mark svg{width:44px;height:44px;display:block}
.brand-wordmark{font-size:25px;letter-spacing:-1px;font-weight:600;display:block;text-align:left}
.brand-wordmark small{font-size:9px;letter-spacing:1.9px;color:var(--text-secondary);font-weight:500;margin-top:7px}
.brand-cross{font-size:21px;color:var(--text-quiet);font-weight:400;margin:0 10px;vertical-align:2px}
.brand-latin{letter-spacing:-1.2px}
.brand-full .brand-wordmark{font-size:32px}
.brand-full .mark,.brand-full .mark svg{width:56px;height:56px;flex-basis:56px}
.shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr);background:var(--surface)}
.sidebar{background:var(--brand-sidebar);border-right:0;padding:25px 18px 18px;gap:23px;scrollbar-color:#40516b transparent}
.sidebar .brand{color:var(--card);margin:0 5px 0 2px}
.sidebar .brand:hover{background:transparent;color:var(--card)}
.sidebar .brand small{color:#B7C6DE;font-size:9px}
.sidebar>.primary{min-height:42px;justify-content:flex-start;border-radius:9px;background:#1C2D49;border:1px solid #314966;color:#E3EDFF;box-shadow:none}
.sidebar>.primary:hover{background:#233C5D;border-color:#577AA5;color:white}
.sidebar-label{font-size:11px;letter-spacing:1px;color:#A7B8D2;padding:0 9px}
.sidebar-search{height:36px;min-height:36px;border:1px solid #30435F;background:#16243D;color:#E2E8F0;padding:8px 11px;font-size:12px;margin:7px 0 8px}
.sidebar-search::placeholder{color:#ACBDD5}
.sidebar-search:focus{background:#1B2F4B;color:white;border-color:var(--brand-highlight);outline:2px solid #60A5FA33}
.project-nav-list{gap:6px;padding-right:2px;scrollbar-width:thin}
.project-nav-item{font-size:13px;font-weight:500;border:0;border-radius:8px;min-height:40px;padding:10px 10px;gap:10px;color:#C0CFE4;background:transparent}
.project-nav-item .icon{color:#9BB6D8}
.project-nav-item:hover{background:#1A2C46;color:#F8FAFC}
.project-nav-item.selected{background:#1D304D;color:#F8FAFC;font-weight:600;box-shadow:none}
.project-nav-item.selected .icon{color:#81B7FF}
.workspace-nav{margin:6px 0 10px 15px;padding:0 0 0 9px;border:0;border-left:1px solid #33455F;gap:3px}
.workspace-nav button{color:#BDCCE2;min-height:35px;padding:8px 10px;font-size:12px;line-height:1.4;border-radius:7px;gap:10px;background:transparent}
.workspace-nav button .icon{width:16px;height:16px;color:inherit}
.workspace-nav button:not(.active):hover{background:#1B2E49;color:#F8FAFC}
.workspace-nav button.active{background:var(--blue);color:white;box-shadow:none}
.workspace-nav button.active .icon{color:white}
.workspace-count,.workspace-nav button:not(.active) .workspace-count{color:#A8BEDB;font-size:10px}
.workspace-nav button.active .workspace-count{color:#DBEAFE}
.sidebar .nav{border-top:1px solid #2C3E57;padding-top:13px;gap:4px}
.sidebar .nav button{color:#BCCCE2;font-size:12px;border-radius:8px;min-height:36px}
.sidebar .nav button .icon{color:#A3BBDC}
.sidebar .nav button:hover{background:#1B2E49;color:#F8FAFC}
.sidebar .nav button.active{background:#1D304D;color:#F8FAFC}
.sidebar .nav button.active .icon{color:#81B7FF}
.sidebar-footer{border-color:#2C3E57;padding:17px 4px 0}
.sidebar .avatar{background:#2D415E;color:#E3EDFF;border-radius:10px}
.account-name{color:#F8FAFC;font-size:12px}
.account-name small{color:#B0C1DA;font-size:10px}
.sidebar .logout{color:#ADC3E2;flex:none}
.sidebar .logout:hover{background:#223958;color:white}
.sidebar-empty{color:#B7C6DE}
.topbar{background:var(--card);border-color:var(--line)}
.header-project h1{font-size:18px;letter-spacing:-.3px;color:var(--ink)}
.header-project p{color:var(--text-quiet);font-size:11px}
.header-project .workspace-label{color:var(--brand-blue-hover);background:#EFF6FF;font-size:11px;border-radius:6px;padding:4px 8px;font-weight:500}
.quota{color:var(--text-secondary)}
.quota strong{color:var(--ink)}
.is-workspace .content{background:var(--surface)}
.conversation-pane,.document-pane{border-color:var(--line);border-radius:14px;box-shadow:0 1px 3px #0f172a04}
.pane-heading,.document-toolbar{border-color:var(--line);background:var(--card)}
.pane-symbol{border-radius:9px;background:#EFF6FF;color:var(--blue)}
.pane-heading h2,.document-toolbar h2{font-size:14px;color:var(--ink);font-weight:600}
.pane-heading p,.document-toolbar p{font-size:11px;color:var(--text-quiet)}
.live-indicator{color:var(--text-quiet)}
.chat-messages{background:var(--card);scrollbar-width:thin}
.chat-bubble{font-size:13px;line-height:1.85;color:var(--text-secondary)}
.chat-message.user .chat-bubble{background:#EFF6FF;color:#1E3A8A;border:1px solid #DBEAFE;border-radius:12px 12px 3px 12px}
.chat-message .chat-avatar{background:#EFF6FF;border-radius:8px}
.task-inline{background:#FAFBFD;border:1px solid var(--line);border-radius:11px;box-shadow:none}
.task-inline.task-running{border-color:#BFDBFE;background:#F8FBFF}
.task-inline.task-needs-confirmation{border-color:#FCD9A7;background:#FFFCF5}
.task-inline .task-time,.task-inline .task-meta{color:var(--text-quiet)}
.conversation-compose{background:#F1F5FB;border-top-color:#D8E2EE}
.creation-context{color:var(--text-secondary)}
.creation-context h3{font-size:12px;color:var(--ink)}
.creation-type-tag{background:white;border:1px solid #DBEAFE;color:#1D4ED8;font-size:10px}
.compact-creation .composer-box{background:white;border-color:#CCD8E7;border-radius:12px;box-shadow:0 1px 3px #0f172a04}
.compact-creation .composer-box:focus-within{border-color:#7CA7EF;box-shadow:0 0 0 3px #2563EB0A}
.compact-creation form[data-form=chat] textarea{font-size:12px;line-height:1.7;color:var(--ink)}
.composer-bottom{border-color:#E8EEF5;background:white;border-radius:0 0 12px 12px}
.attachment-actions button{color:var(--text-secondary);font-size:11px}
.attachment-actions button:hover{background:#EFF6FF;color:var(--blue)}
.creation-modes{background:#E7EDF6}
.creation-modes label span{font-weight:500}
.generation-submit-row .generate-button{border-radius:9px;font-weight:600}
.compact-creation:not(.has-groupbuys){grid-template-rows:56px minmax(0,7fr) minmax(208px,3fr)}
.compact-creation:not(.has-groupbuys) #chat-composer{flex:none;min-height:auto}
.compact-creation:not(.has-groupbuys) .composer-box{flex:none;min-height:90px}
.compact-creation:not(.has-groupbuys) form[data-form=chat] textarea{flex:none;height:60px;min-height:60px;max-height:120px}
.compact-creation:not(.has-groupbuys) .composer-bottom{flex:none;height:28px;min-height:28px;padding-top:0;padding-bottom:2px}
.conversation-bottom{background:#F1F5FB;border-color:#D8E2EE}
.creation-shortcuts button{background:white;border-color:var(--line);color:var(--text-secondary)}
.creation-shortcuts button:hover{background:#EFF6FF;color:var(--blue)}
.document-scroll{background:var(--card);padding:24px 28px;scrollbar-width:thin}
.document-paper{padding:0;border:0;box-shadow:none;max-width:840px;margin:0 auto}
.document-entry{padding:24px 0;border-color:var(--line);border-radius:0}
.document-entry:first-child{padding-top:8px}
.document-entry-meta{gap:10px}
.entry-number{font-size:24px;line-height:1.2;font-weight:500;letter-spacing:-.8px;color:#59708C;font-variant-numeric:tabular-nums}
.document-entry-meta .pill{font-size:10px;background:#F1F5F9;color:var(--text-secondary);border-radius:5px;padding:3px 6px}
.draft-created-time{font-size:11px;color:var(--text-quiet)}
.document-entry h3{font-size:18px;line-height:1.6;letter-spacing:-.2px;color:var(--ink);margin:12px 0}
.document-copy{font-size:15px;line-height:1.85;color:#334155;white-space:pre-wrap}
.copy-metrics{color:var(--text-quiet);font-size:11px;margin:9px 0 4px}
.entry-tools{gap:2px}
.entry-tools .icon-button{color:var(--text-quiet)}
.entry-tools .icon-button:hover{background:#EFF6FF;color:var(--blue)}
.entry-tools .icon-button:focus-visible{opacity:1}
.compact-review>span,.compact-review>details>summary{color:var(--text-quiet);font-size:11px}
.document-entry-footer small,.document-entry-footer .edit-shortcut{color:var(--text-quiet);font-size:11px}
.document-entry.is-new-result{background:#F4F8FF;border-color:#CBDEF9;border-left:3px solid var(--blue);box-shadow:none;border-radius:12px}
.document-entry.task-result-highlight{background:#EFF6FF;outline-color:#93C5FD}
.is-editing textarea{font-size:15px;line-height:1.85;border-color:#B8D1F6}
.is-editing .inline-title{font-size:18px}
.result-status>.result-arrival{background:#EFF6FF;border-color:#C9DCFA;border-radius:12px}
.result-arrival p,.result-arrival time{color:var(--text-secondary)}
.result-arrival button{color:var(--brand-blue-hover)}
.menu-popover{border-radius:12px;border-color:var(--line);box-shadow:0 10px 32px #0f172a14}
.menu-popover button,.menu-popover a{border-radius:7px}
dialog{border-radius:16px;border-color:var(--line);box-shadow:0 24px 90px #0f172a2b}
dialog::backdrop{background:#0F172A59}
.merchant-drawer{border-radius:0}
.drawer-header{background:var(--card);border-color:var(--line)}
.drawer-body{background:var(--card)}
.drawer-header h2,.confirmation-header h2{color:var(--ink);letter-spacing:-.4px}
.confirmation-footer,.confirmation-actions{background:#FAFBFD;border-color:var(--line)}
#toast{border-radius:11px;background:var(--brand-navy);box-shadow:0 6px 25px #0f172a20}
.panel{border-radius:14px;border-color:var(--line);padding:24px;box-shadow:0 1px 3px #0f172a04}
.panel h2{font-size:18px;letter-spacing:-.2px}
.panel h3{font-size:15px}
.status-grid>div{background:var(--surface);border:1px solid var(--line);border-radius:10px}
.status-grid strong{color:var(--ink)}
.table-wrap{border:1px solid var(--line);border-radius:10px}
th{color:var(--text-secondary);background:var(--surface);font-weight:500}
th,td{padding:14px 16px}
.table-wrap tr:last-child td{border-bottom:0}
.file-item,.drawer-file{border-color:var(--line);border-radius:10px}
.heading h1{font-size:24px;color:var(--ink);letter-spacing:-.5px}
.heading p{color:var(--text-secondary)}
.project-hero{background:transparent;border-radius:0;min-height:142px;padding:4px 0 22px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;border-bottom:1px solid var(--line)}
.hero-eyebrow{font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--text-quiet)}
.project-hero h2{font-size:clamp(28px,2.3vw,38px);font-weight:600;letter-spacing:-1px;line-height:1.4;margin:12px 0 9px;color:var(--ink)}
.project-hero h2 em{color:var(--blue);font-style:normal}
.project-hero p{font-size:13px;color:var(--text-secondary);margin:0}
.hero-sequence{width:100px;flex:none;display:flex;flex-direction:column;align-items:center;gap:12px;margin-right:12px}
.hero-sequence span svg{width:82px;height:82px;display:block}
.hero-sequence small{font-size:8px;letter-spacing:1.2px;color:var(--text-quiet)}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:transparent;border:0;padding:0;margin-bottom:30px;gap:16px}
.stat{padding:20px;border:1px solid var(--line);border-radius:12px;background:white;gap:12px;flex-wrap:wrap}
.stat+.stat{border-left:1px solid var(--line);padding-left:20px}
.stat>.icon{color:var(--blue);width:20px;height:20px}
.stat>span{color:var(--text-secondary);font-size:12px}
.stat strong{color:var(--ink);margin-left:auto;white-space:nowrap;font-size:25px}
.project-card{border-radius:14px;border-color:var(--line);padding:23px;box-shadow:0 1px 3px #0f172a04;content-visibility:auto;contain-intrinsic-size:auto 218px}
.project-card:hover{border-color:#A9C7EF;box-shadow:0 3px 9px #0f172a06;transform:none}
.project-icon{border-radius:10px;background:#EFF6FF;color:var(--brand-blue-hover)}
.project-card h3{font-size:18px;letter-spacing:-.3px}
.project-card p,.card-bottom span{color:var(--text-quiet)}
.project-card .card-bottom button{border:1px solid #D9E6F7;background:#F8FBFF;color:var(--brand-blue-hover);border-radius:8px}
/* Arrival is the only large dark canvas; no downloaded images or moving backgrounds. */
.auth-shell{min-height:100dvh;padding:16px;grid-template-columns:minmax(0,55%) minmax(0,45%);background:var(--card);gap:0}
.auth-aside{background:var(--brand-navy);border-radius:20px;padding:40px clamp(34px,4.5vw,80px);position:relative;overflow:hidden;gap:24px;isolation:isolate}
.auth-brandline{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:1}
.auth-aside .brand{color:white}
.auth-aside .brand small{color:#B5C6E1;font-size:9px}
.auth-aside .brand-cross{color:#B5C6E1}
.brand-credit{font-size:9px;color:#B5C6E1;letter-spacing:1px;white-space:nowrap}
.auth-story{margin:auto 0 22px;position:static;min-width:0}
.auth-story>.hero-eyebrow{color:#AFC5E7;position:relative;z-index:1}
.auth-aside h1{font-size:clamp(42px,3.9vw,64px);font-weight:600;line-height:1.32;letter-spacing:-1.8px;margin:22px 0 18px;position:relative;z-index:1}
.auth-aside h1 em{color:#A0C7FF;font-style:normal}
.auth-aside .auth-story>p{font-size:16px;line-height:1.85;color:#C3D1E6;margin:0;position:relative;z-index:1;letter-spacing:.5px}
.sequence-art{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:-1;pointer-events:none}
.auth-aside .auth-steps{display:grid;grid-template-columns:1fr;gap:23px;padding:0 0 32px;border:0;font-size:14px;color:#E8EEF8;flex:none;position:relative;z-index:1}
.auth-step{align-items:center;gap:15px}
.auth-step>span{border:1px solid #344862;color:#93BEFD;background:#162741;border-radius:10px;width:40px;height:40px;flex-shrink:0}
.auth-step>span .icon{width:20px;height:20px}
.auth-step small{display:block;font-size:12px;color:#B5C6E1;margin-top:4px;line-height:1.65}
.auth-main{background:var(--card);position:relative;padding:48px clamp(28px,4.5vw,76px)}
.auth-main:after{content:"AI七序";position:absolute;bottom:32px;left:0;right:0;text-align:center;color:var(--text-quiet);font-size:11px;letter-spacing:.5px}
.auth-form{max-width:400px;width:100%}
.auth-form .eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--blue);margin-bottom:18px;font-weight:600}
.auth-form h2{font-size:30px;color:var(--ink);letter-spacing:-1px;line-height:1.4;margin:0 0 11px}
.auth-form>p{color:var(--text-secondary);font-size:14px;line-height:1.8;margin-bottom:34px}
.auth-form label{font-size:13px;color:var(--text-secondary);font-weight:500;margin-bottom:9px}
.auth-form input{height:48px;border-radius:9px;background:white;border-color:#CBD5E1;font-size:14px;box-shadow:none}
.auth-form input:focus{border-color:var(--blue);outline:0;box-shadow:0 0 0 3px #2563EB14}
.auth-form .primary{min-height:46px;border-radius:9px;font-weight:600;margin-top:10px;font-size:14px}
.auth-form footer{font-size:12px;color:var(--text-quiet);text-align:center;margin-top:20px}
.skip-link{position:fixed;top:8px;left:8px;z-index:50;transform:translateY(-150%);background:white;color:var(--brand-blue-hover);padding:8px 16px;border:1px solid #AAC7EE;border-radius:8px;box-shadow:0 3px 10px #0f172a14}
.skip-link:focus{transform:translateY(0)}
@media(min-width:1700px){:root{--sidebar-width:272px}.document-scroll{padding:30px 38px}.document-copy{font-size:16px}.document-entry h3{font-size:20px}.pane-title h2{font-size:15px}.chat-bubble{font-size:14px}.composer-box textarea{font-size:13px}}
@media(max-width:1350px) and (min-width:1101px){:root{--sidebar-width:248px}.sidebar{padding-inline:14px}.document-scroll{padding:20px 22px}.document-copy{font-size:14px}.document-entry h3{font-size:17px}.auth-aside{padding-inline:34px}}
@media(max-height:780px) and (min-width:861px){.auth-aside{padding-top:28px;padding-bottom:28px;gap:20px}.auth-aside h1{font-size:44px;margin-top:16px}.auth-aside .auth-steps{gap:17px;padding-bottom:16px}.auth-story{margin:auto 0 24px}.document-scroll{padding:20px 24px}}
@media(max-height:780px){.compact-creation:not(.has-groupbuys){grid-template-rows:52px minmax(0,7fr) minmax(188px,3fr)}.compact-creation:not(.has-groupbuys) .conversation-compose{padding:7px 10px;gap:4px}.compact-creation:not(.has-groupbuys) .composer-box{min-height:74px}.compact-creation:not(.has-groupbuys) form[data-form=chat] textarea{height:44px;min-height:44px;max-height:44px}.compact-creation:not(.has-groupbuys) .composer-bottom{height:28px;min-height:28px}.compact-creation:not(.has-groupbuys) .generation-submit-row{margin-top:4px}.compact-creation:not(.has-groupbuys) .compact-generation-row{margin-top:0}}
@media(max-width:1100px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar,.is-conversation .sidebar{width:260px;background:var(--brand-sidebar)}.sidebar.mobile-open{display:flex}.mobile-project-toggle{display:inline-flex}}
@media(max-width:860px){.auth-shell{display:block;padding:12px}.auth-aside{padding:23px 25px;border-radius:16px;gap:24px}.auth-brandline{gap:12px}.auth-story{margin:0}.auth-aside .auth-story h1{display:block!important;font-size:32px;line-height:1.3;margin:0;letter-spacing:-1px}.auth-aside .auth-story>p,.auth-story>.hero-eyebrow,.sequence-art,.auth-aside .auth-steps{display:none!important}.auth-main{padding:35px 20px 64px;background:transparent}.auth-main:after{bottom:14px}.auth-form{max-width:450px}.auth-form h2{font-size:25px}.auth-form>p{margin-bottom:24px}.auth-brandline .brand-full .brand-wordmark{font-size:27px}.brand-full .mark,.brand-full .mark svg{width:46px;height:46px;flex-basis:46px}.brand-full .brand-cross{font-size:19px;margin-inline:8px}.project-hero{min-height:140px;padding-top:4px}.project-hero h2{font-size:28px}.hero-sequence{width:70px;margin:0}.hero-sequence span svg{width:64px;height:64px}.document-scroll{padding:18px 20px}.document-copy{font-size:15px}.document-entry h3{font-size:18px}.entry-number{font-size:22px}.document-entry-meta{gap:7px}.creation-modes label span{font-size:11px}.sidebar .brand-wordmark{font-size:25px}}
@media(max-width:560px){.project-hero{padding-bottom:20px;margin-bottom:22px}.project-hero h2{font-size:27px;max-width:280px}.project-hero h2 em{display:block}.project-hero p{font-size:12px;max-width:260px}.hero-sequence{display:none}.stats{gap:8px;margin-bottom:24px}.stat,.stat+.stat{padding:12px 10px;gap:8px;min-width:0;align-items:flex-start;flex-direction:column}.stat>.icon{width:18px;height:18px}.stat>span{font-size:11px}.stat strong{font-size:24px;margin:0}.stat small{font-size:10px;margin-left:3px}.heading h1{font-size:21px}.heading p{font-size:12px}.heading{gap:12px}.project-card{padding:21px}.document-entry h3{font-size:17px}.document-copy{font-size:14px;line-height:1.85}.document-scroll{padding:16px 18px}.brand-credit{font-size:8px}.auth-main{padding-inline:12px}.auth-aside .auth-story h1{font-size:30px}.auth-form input{height:46px}.panel{padding:18px}.status-grid{grid-template-columns:1fr}.table-wrap{border-radius:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Groupbuy V2: visible workflow, one dialog scroll surface, shared generation logic. */
.compact-creation.has-groupbuys {
  grid-template-rows: 56px auto minmax(48px, 1fr) auto;
  height: 100%;
  min-height: 0;
}
.has-groupbuys #groupbuy-panel {
  flex: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: #fff;
}
.groupbuy-flow { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; }
.groupbuy-flow-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.groupbuy-flow-heading h2 { margin: 0; font-size: 18px; font-weight: 600; color: #102a43; }
.groupbuy-flow-heading > span { font-size: 14px; color: #52667f; white-space: nowrap; }
.groupbuy-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.groupbuy-steps .groupbuy-step {
  min-width: 0; min-height: 92px; padding: 8px 7px;
  display: grid; align-content: start; justify-items: start; gap: 4px;
  text-align: left; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #f8fafc; color: #41566f; white-space: normal;
}
.groupbuy-step-number { display: inline-flex; width: 22px; height: 22px; justify-content: center; align-items: center; border-radius: 7px; background: #e8edf3; font-weight: 600; font-size: 14px; }
.groupbuy-step strong { font-size: 15px; line-height: 1.45; font-weight: 600; }
.groupbuy-step-status { font-size: 14px; line-height: 1.4; }
.groupbuy-steps .groupbuy-step.is-current { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.groupbuy-step.is-current .groupbuy-step-number { background: #2563eb; color: #fff; }
.groupbuy-steps .groupbuy-step.is-complete { color: #27634b; }
.groupbuy-step.is-complete .groupbuy-step-number { background: #e7f4ec; }
.groupbuy-steps .groupbuy-step:hover { border-color: #93c5fd; background: #f0f6ff; }
.groupbuy-flow-next { margin-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.groupbuy-flow-next p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1 1 180px; }
.groupbuy-flow-next.is-required p { color: #925018; }
.groupbuy-flow-next.is-ready p { color: #27634b; }
.groupbuy-entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.groupbuy-flow-next button, .groupbuy-entry-actions button { min-height: 36px; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.has-groupbuys .conversation-compose { padding: 9px 12px 10px; gap: 6px; }
.has-groupbuys .creation-context > strong { font-size: 14px; }
.has-groupbuys .creation-context .pill { font-size: 12px; }
.has-groupbuys .compact-generation-row { gap: 5px; flex-wrap: wrap; }
.has-groupbuys .compact-generation-row select { min-height: 36px; height: 36px; font-size: 14px; width: 93px; }
.has-groupbuys .compact-generation-row input[type=number] { height: 36px; font-size: 14px; }
.has-groupbuys .compact-generation-row .creation-modes span { font-size: 13px; padding: 8px 5px; }
.has-groupbuys .creation-advanced summary { font-size: 12px; }
.has-groupbuys .composer-box textarea { font-size: 14px; height: 56px; min-height: 56px; max-height: 56px; padding: 8px 10px; line-height: 1.55; }
.groupbuy-writing-note { font-size: 14px; line-height: 1.5; margin: 5px 0 6px; color: #4d617b; }
.has-groupbuys .composer-bottom { padding: 3px 7px 6px; }
.has-groupbuys .attachment-actions button { font-size: 13px; min-height: 30px; padding: 3px 5px; }
.has-groupbuys .generation-submit-row { margin-top: 6px; }
.has-groupbuys .generate-button { min-height: 36px; font-size: 14px; }
.has-groupbuys .chat-messages { min-height: 0; }
.groupbuy-overview-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 8px; font-size: 14px; color: #52667f; }
.groupbuy-overview-note button { color: #1d4ed8; background: transparent; border: 0; padding: 3px 0; font-size: 14px; }
/* Package detail / editor dialogs use the dialog itself as the only scroll region. */
dialog.groupbuy-modal { width: min(680px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 16px; }
.groupbuy-modal h2 { font-size: 20px; margin: 0 0 14px; }
.groupbuy-modal .groupbuy-step-description { font-size: 14px; line-height: 1.65; color: #4d617b; margin: 8px 0 14px; }
.groupbuy-modal .groupbuy-confirm-required { background: #fff8ee; border-left: 3px solid #d9953b; border-radius: 6px; padding: 12px 14px; }
.groupbuy-confirm-required > strong { font-size: 16px; color: #925018; }
.groupbuy-confirm-required p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: #715132; }
.groupbuy-package-totals { font-size: 14px; font-weight: 500; color: #41566f; margin: 14px 0; }
.groupbuy-modal .groupbuy-cards { display: grid; gap: 12px; max-height: none; overflow: visible; }
.groupbuy-modal .groupbuy-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin: 0; background: #fff; }
.groupbuy-modal .groupbuy-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.groupbuy-card-top > strong, .groupbuy-card-top label strong { font-size: 16px; line-height: 1.5; }
.groupbuy-modal .groupbuy-card-top label { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.groupbuy-modal input[type=checkbox], .groupbuy-modal input[type=radio] { width: 18px; height: 18px; min-height: 18px; accent-color: #2563eb; flex: none; margin-top: 3px; }
.groupbuy-confirmation { font-size: 14px; line-height: 1.5; }
.groupbuy-confirmation.confirmed { color: #27634b; }
.groupbuy-confirmation.pending, .groupbuy-pending-note { color: #925018; }
.groupbuy-modal .groupbuy-price { font-size: 17px; font-weight: 600; margin: 10px 0 6px; color: #102a43; }
.groupbuy-package-content { font-size: 15px; line-height: 1.7; white-space: pre-wrap; margin: 0 0 10px; overflow-wrap: anywhere; }
.groupbuy-package-detail { font-size: 14px; line-height: 1.65; white-space: pre-wrap; margin: 6px 0; overflow-wrap: anywhere; }
.groupbuy-modal .groupbuy-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; }
.groupbuy-modal button, .groupbuy-modal .groupbuy-card-actions a { font-size: 14px; min-height: 36px; padding: 8px 12px; border-radius: 8px; }
.groupbuy-modal .groupbuy-editor-grid { overflow: visible; max-height: none; gap: 14px; }
.groupbuy-modal .field label, .groupbuy-modal .groupbuy-count, .groupbuy-modal .groupbuy-allocation, .groupbuy-modal .groupbuy-allocation-status { font-size: 14px; line-height: 1.6; }
.groupbuy-modal .field input, .groupbuy-modal .field textarea { font-size: 15px; padding: 9px 11px; }
.groupbuy-modal .groupbuy-allocation { margin: 18px 0 12px; }
.groupbuy-modal .groupbuy-allocation label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.groupbuy-modal .groupbuy-count { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; }
.groupbuy-modal .groupbuy-count input { width: 100px; min-height: 38px; font-size: 15px; }
.groupbuy-modal .groupbuy-allocation-status { margin: 14px 0; color: #27634b; }
.groupbuy-modal .groupbuy-allocation-status.is-error { color: #925018; }
.groupbuy-modal .groupbuy-step-footer, .groupbuy-modal .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid #e2e8f0; margin-top: 18px; padding-top: 14px; }
.groupbuy-image-pending { margin: 14px 0; padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0; }
.groupbuy-image-pending p, .groupbuy-pending-note { font-size: 14px; line-height: 1.6; }
.groupbuy-pending-note button { margin-left: 6px; }
@media (max-height:740px) and (min-width:861px) {
  .groupbuy-flow { padding: 8px 12px; }
  .groupbuy-flow-heading { margin-bottom: 7px; }
  .groupbuy-steps .groupbuy-step { padding: 6px; min-height: 82px; gap: 3px; }
  .groupbuy-flow-next { margin-top: 6px; }
  .has-groupbuys .conversation-compose { padding: 7px 10px; gap: 3px; }
  .has-groupbuys .composer-box textarea { height: 44px; min-height: 44px; max-height: 44px; }
  .has-groupbuys .composer-bottom { padding-bottom: 3px; }
}
@media (max-width:860px) {
  .compact-creation.has-groupbuys { grid-template-rows: 52px auto minmax(48px,1fr) auto; height: 100%; }
  .has-groupbuys #groupbuy-panel { flex-basis: auto; min-height: 0; max-height: none; }
  .groupbuy-flow-heading { flex-wrap: wrap; }
  dialog.groupbuy-modal { padding: 18px; }
  .groupbuy-modal .groupbuy-editor-grid { grid-template-columns: 1fr; }
  .groupbuy-modal .groupbuy-editor-grid .wide { grid-column: auto; }
}
@media (max-width:400px) {
  .groupbuy-flow { padding: 8px 10px; }
  .groupbuy-flow-heading > span { display: none; }
  .groupbuy-steps .groupbuy-step { padding: 6px; }
  .groupbuy-step strong { font-size: 15px; }
  .groupbuy-modal .groupbuy-card { padding: 12px; }
}
/* Keep the actual input and attachment toolbar sized, including short mobile windows. */
.groupbuy-steps .groupbuy-step { min-height: 74px; gap: 6px; }
.groupbuy-step-progress { display: flex; align-items: center; gap: 5px; min-width: 0; }
.groupbuy-step-status { font-size: 14px; white-space: normal; }
.groupbuy-step-number { flex: none; width: 20px; height: 20px; }
.groupbuy-flow-counts { margin: 7px 0 0; color: #52667f; font-size: 14px; line-height: 1.5; }
.has-groupbuys #chat-composer { flex: none; min-height: auto; }
.has-groupbuys .composer-box { flex: none; min-height: 90px; }
.has-groupbuys .composer-box textarea { flex: none; }
.has-groupbuys .composer-bottom { flex: none; }
.has-groupbuys .conversation-compose { min-height: max-content; }
@media (max-height:740px) {
  .groupbuy-flow { padding: 7px 10px; }
  .groupbuy-flow-heading { margin-bottom: 5px; }
  .groupbuy-steps .groupbuy-step { padding: 5px 6px; min-height: 66px; gap: 3px; }
  .groupbuy-flow-counts { margin-top: 5px; }
  .groupbuy-flow-next { margin-top: 5px; gap: 4px 8px; }
  .has-groupbuys .conversation-compose { padding: 6px 10px; gap: 3px; }
  .has-groupbuys .creation-context { display: none; }
  .has-groupbuys .compact-generation-row { margin-top: 0; }
  .has-groupbuys .groupbuy-writing-note { margin: 4px 0; }
  .has-groupbuys .composer-box { min-height: 76px; }
  .has-groupbuys .composer-box textarea { height: 44px; min-height: 44px; max-height: 44px; }
  .has-groupbuys .composer-bottom { padding: 0 7px 3px; }
  .has-groupbuys .generation-submit-row { margin-top: 4px; }
}
@media (max-width:860px) and (max-height:740px) {
  .compact-creation.has-groupbuys { grid-template-rows: 52px auto minmax(28px,1fr) auto; }
  .groupbuy-step strong { line-height: 1.35; }
  .groupbuy-step-progress { gap: 3px; }
}
@media (max-width:860px) and (max-height:740px) {
  .compact-creation.has-groupbuys { grid-template-rows: 44px auto minmax(24px,1fr) auto; }
  .compact-creation.has-groupbuys .pane-heading { height: 44px; padding: 6px 12px; }
  .groupbuy-flow { padding: 5px 10px; }
  .is-generate:has(.has-groupbuys) .topbar { padding-top: 7px; padding-bottom: 7px; gap: 6px; }
}
.groupbuy-modal .hint, .groupbuy-modal > a { font-size: 14px; line-height: 1.65; color: #4d617b; }
.groupbuy-modal input[type=file] { font-size: 14px; min-height: 40px; }
:root{--account-menu-width:180px}
.auth-switch{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;color:var(--muted,#64748b);font-size:14px}
.auth-switch button{border:0;background:transparent;color:#2563eb;padding:6px 4px;font-weight:600}
.account-toggle{max-width:var(--account-menu-width);gap:6px}
.account-toggle>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu .menu-popover{min-width:220px}
.account-menu .menu-popover>strong,.account-menu .menu-popover>small{padding:4px 10px;display:block;overflow-wrap:anywhere}
.account-menu .menu-popover>small{color:#64748b}
@media(max-width:1366px){.account-toggle{max-width:110px}.account-toggle>.icon:last-child{display:none}}
@media(max-width:600px){.account-toggle{max-width:105px;padding:6px 8px}.account-toggle>.icon{display:none}.auth-switch{margin-top:14px}}
.compliance-review{width:100%;margin:10px 0;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.7}.compliance-review p{white-space:pre-wrap}.compliance-findings{border-left:3px solid #f59e0b;padding-left:12px;margin:10px 0}.compliance-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.compliance-compare>div{min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:white}.compliance-compare h4{margin:6px 0;font-size:13px}.compliance-compare p{white-space:pre-wrap;line-height:1.8}.compliance-review .notice{margin:10px 0}
@media(max-width:700px){.compliance-compare{grid-template-columns:1fr}}
:root{--points-blue:#2563eb}
.recharge-page{max-width:1240px;margin:0 auto}.recharge-page>.tools{align-items:center;margin-bottom:20px}.recharge-page h1{font-size:26px;margin:0 0 8px}.points-balance{display:flex;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#10203e,#193867);color:white;border-radius:18px;padding:30px;margin:20px 0}.points-balance>div>strong{display:block;font-size:44px;line-height:1.3;margin:8px 0}.points-balance small{font-size:16px;font-weight:400}.points-balance p{color:#c7d8f4;margin-bottom:0}.points-rate{display:flex;flex-direction:column;gap:10px;justify-content:center}.points-rate>strong{font-size:17px!important;margin:0!important}.points-rate span{font-size:13px;color:#d4e3fd}.recharge-plans{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.recharge-plan{position:relative;border:1px solid #dbe5f5;border-radius:16px;background:white;padding:25px 22px;display:flex;flex-direction:column;gap:14px}.recharge-plan.recommended{border:2px solid #2563eb;padding:24px 21px;box-shadow:0 8px 25px #2563eb12}.recharge-plan h3{font-size:17px;margin:0}.recharge-badge{position:absolute;top:-14px;right:16px;border-radius:20px;color:white;background:#2563eb;padding:4px 12px;font-size:12px}.plan-price{font-size:34px;font-weight:750;letter-spacing:-1px}.plan-price small{font-size:19px;margin-right:4px}.plan-points{color:#2563eb;font-size:26px}.plan-points small{font-size:13px}.recharge-plan p{margin:0;font-size:12px;color:#64748b}.recharge-plan .pill{align-self:flex-start}.plan-estimate{font-size:13px;line-height:1.9;color:#64748b;border-top:1px solid #eef2f7;padding-top:14px}.recharge-plan button{margin-top:auto;width:100%;min-height:42px}.block{display:block;margin-top:6px;color:#64748b;font-size:12px;overflow-wrap:anywhere}.recharge-page td{max-width:350px;overflow-wrap:anywhere}.recharge-page .panel{margin:20px 0}.points-faq details{padding:14px 0;border-bottom:1px solid #edf1f7}.points-faq details:last-child{border:0}.points-faq p{font-size:14px;line-height:1.8;color:#64748b}.recharge-modal{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow-y:auto}.recharge-checkout p{line-height:1.7}.checkout-price{font-size:28px;color:#2563eb}.payment-channels{display:flex;margin:20px 0 12px}.payment-channels button{flex:1;border-radius:0}.payment-channels button:first-child{border-radius:8px 0 0 8px}.payment-channels button:last-child{border-radius:0 8px 8px 0}.payment-channels button[aria-pressed=true]{background:#eef4ff;color:#2563eb;border-color:#c9daff}.payment-prompt{text-align:center;font-size:13px;color:#4771af}.payment-qr{display:block;width:260px;max-width:100%;height:auto;max-height:none;margin:12px auto;border-radius:10px}.payment-links{display:flex;justify-content:center;gap:18px;margin:16px 0 22px;font-size:13px}.recharge-checkout .actions{flex-wrap:wrap}.recharge-checkout .actions button{flex:1;min-height:44px}.receipt-check{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-size:14px;margin:20px 0}.receipt-check input{width:18px;flex:0 0 18px;margin-top:3px}.generation-points{font-size:11px;margin:8px 0 0;line-height:1.4}
.recharge-contact{display:grid;grid-template-columns:minmax(0,1fr) 170px;align-items:center;gap:22px;margin:20px 0;padding:22px 26px;border:1px solid #dbe5f5;border-radius:16px;background:#fff}.recharge-contact strong{display:block;font-size:18px;color:#0f172a}.recharge-contact p{margin:8px 0;color:#475569;line-height:1.75}.recharge-contact small{display:block;color:#64748b;line-height:1.6}.recharge-contact img{display:block;width:170px;max-width:100%;height:auto;border:1px solid #e2e8f0;border-radius:10px}.recharge-contact-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;font-size:13px}.recharge-contact.compact{grid-template-columns:minmax(0,1fr) 135px;gap:14px;margin:18px 0;padding:14px;background:#f8fbff}.recharge-contact.compact strong{font-size:15px}.recharge-contact.compact p{font-size:12px;margin:6px 0}.recharge-contact.compact small{font-size:11px}.recharge-contact.compact img{width:135px}
@media(max-width:1150px){.recharge-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.points-balance{padding:24px}}
@media(max-width:600px){.recharge-page>.tools{align-items:flex-start;flex-direction:column}.recharge-page h1{font-size:22px}.points-balance{flex-direction:column;padding:22px;gap:22px}.points-balance>div>strong{font-size:38px}.points-rate{gap:7px}.recharge-plans{gap:12px}.recharge-plan{padding:20px 14px;gap:12px}.recharge-plan.recommended{padding:19px 13px}.recharge-plan h3{font-size:15px}.plan-price{font-size:28px}.plan-points{font-size:23px}.plan-estimate{font-size:12px}.recharge-page .panel{padding:16px}.recharge-modal{padding:18px}.recharge-badge{font-size:11px;right:9px}.recharge-page .tools>button{max-width:100%}.recharge-contact,.recharge-contact.compact{grid-template-columns:1fr;padding:16px}.recharge-contact img,.recharge-contact.compact img{width:170px;margin:auto}}
.topic-library{max-width:1240px;margin:0 auto;padding:8px 0 32px}.topic-library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 28px;background:linear-gradient(115deg,#f5f8ff,#eaf2ff);border:1px solid #dbe6fb;border-radius:18px}.topic-library-heading h2{font-size:27px;margin:12px 0 8px;color:#10213d}.topic-library-heading p{color:#52647f;line-height:1.7;margin:0;max-width:720px}.topic-library-heading button{flex:none}.topic-library-guide{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:16px 22px;margin:16px 0;border:1px solid #e3eaf5;border-radius:14px;background:#fff;color:#34435b}.topic-library-guide strong{color:#172846}.topic-library-guide small{width:100%;color:#75849a}.topic-library-controls{display:flex;gap:12px;margin:20px 0 8px}.topic-library-controls input{flex:1;min-width:0}.topic-library-controls select{min-width:170px}.topic-section{margin-top:24px}.topic-section h3{display:flex;align-items:center;gap:10px;font-size:18px;margin:0 0 12px}.topic-section>.hint{margin:0 0 12px}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.topic-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:20px;border:1px solid #dfe7f4;border-radius:14px;background:#fff}.topic-card[hidden]{display:none}.topic-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.topic-card-top small{color:#8290a4}.topic-card h3{font-size:17px;line-height:1.5;margin:2px 0 4px;color:#10213d}.topic-card p{font-size:13px;line-height:1.65;color:#53647c;margin:0;overflow-wrap:anywhere}.topic-card p strong{color:#33455f}.topic-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:10px}.topic-card-actions button{font-size:13px}.topic-empty{grid-column:1/-1;color:#74849a;background:#fff;padding:20px;border:1px dashed #ccd8e9;border-radius:12px}.topic-pending-note{font-size:12px;line-height:1.5;color:#1d4ed8;margin:6px 0;padding:7px 9px;border-radius:8px;background:#eef4ff}
@media(max-width:720px){.topic-library-heading{flex-direction:column;padding:20px}.topic-library-heading h2{font-size:23px}.topic-library-controls{flex-direction:column}.topic-library-controls select{width:100%}.topic-grid{grid-template-columns:1fr}.topic-card{padding:16px}}
.topic-reference-preview{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.topic-history{padding:18px 0}.topic-history>summary,.topic-extra>summary{cursor:pointer;color:#245fd4;font-weight:600}.topic-history>.hint{margin:12px 0}.topic-reference-full{max-height:55vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.topic-extra{margin:12px 0}.topic-extra .field{margin-top:12px}
/* Announcement, private user feedback and administrator review reuse the workbench palette. */
.support-announcement-bar{display:flex;align-items:center;gap:8px;background:#edf4ff;border-bottom:1px solid #dce8fc;color:#254d86;padding:7px 24px;min-height:42px}.support-announcement-open{flex:1;min-width:0;justify-content:flex-start;border:0;background:transparent;text-align:left;color:#254d86;padding:3px 0;min-height:28px;font-size:13px;line-height:1.6;gap:9px}.support-announcement-open:hover,.support-announcement-close:hover{background:transparent;border-color:transparent;color:#1d4ed8}.support-announcement-open>span:nth-child(2){overflow-wrap:anywhere}.support-announcement-open strong{font-weight:600}.support-announcement-more{margin-left:auto;white-space:nowrap;font-size:12px;color:#2563eb}.support-announcement-close{flex:none;border:0;color:#6b83a7;background:transparent;padding:3px;min-height:28px;width:28px;font-size:21px;font-weight:400}.support-announcement-divider{margin:0 3px}.support-unread{display:inline-flex;align-items:center;border-radius:20px;padding:3px 9px;color:#2458ba;background:#eaf2ff;font-size:12px;vertical-align:middle}.nav [data-support-unread]{margin-left:auto;min-width:18px;min-height:18px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#2563eb;color:white;font-size:10px;font-variant-numeric:tabular-nums}
dialog.support-modal{width:min(700px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:27px}.support-modal h2{font-size:21px;line-height:1.5;margin:0 0 18px;padding-right:8px}.support-modal h3{font-size:15px;color:#17365d;margin:23px 0 10px}.support-modal p{line-height:1.85;overflow-wrap:anywhere}.support-announcement-body{line-height:1.9;color:#43546b;font-size:14px}.support-announcement-body p{margin:0 0 17px}.support-dialog-footer{border-top:1px solid #e3eaf4;padding-top:17px;margin-top:23px;gap:9px;flex-wrap:wrap}.support-dialog-footer button{min-height:40px}.support-contact-dialog>p:first-child{color:#52647f}.support-account-note{padding:12px 15px;background:#f2f6fc;border:1px solid #dfe8f6;border-radius:10px;color:#52647f;line-height:1.9;overflow-wrap:anywhere}.support-account-note strong{color:#193d72}.support-wechat-id{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:20px;color:#64748b;font-size:13px}.support-wechat-id strong{font-size:19px;color:#163a6a;overflow-wrap:anywhere}.support-contact-qr{display:block;width:300px;max-width:100%;height:auto;margin:18px auto;border:1px solid #e3eaf4;border-radius:12px}.support-contact-links{display:flex;justify-content:center;gap:20px;font-size:13px;margin:12px 0 22px}.support-recharge-reminder{display:flex;align-items:center;gap:16px;padding:21px 24px;margin:22px 0;background:#f1f6ff;border:1px solid #d5e3fb;border-radius:14px}.support-recharge-reminder>div{min-width:0;flex:1}.support-reminder-icon{align-self:flex-start;margin-top:2px;font-size:20px}.support-recharge-reminder strong{color:#1b437a;font-size:16px}.support-recharge-reminder p{color:#4e6688;margin:7px 0 0;line-height:1.7;font-size:13px}.support-recharge-reminder small{display:block;margin-top:6px;color:#64748b;font-size:12px}.support-recharge-reminder>button{flex:none;border-color:#cbdcf7;color:#2458aa}.support-recharge-reminder.compact{gap:10px;padding:14px 16px;margin:18px 0}.support-recharge-reminder.compact strong{font-size:14px}.support-recharge-reminder.compact p{font-size:12px}.support-recharge-reminder.compact .support-reminder-icon{font-size:16px}.support-recharge-success{text-align:center}.support-recharge-success>h3{font-size:24px;margin:10px 0 8px}.support-success-symbol{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;margin:0 auto 16px;background:#eaf2ff;color:#2563eb;font-size:30px}.support-recharge-success>.hint{text-align:left;margin:16px 0;color:#71829b;font-size:12px}.support-recharge-success .support-dialog-footer{justify-content:center}
.support-feedback-form>.hint{margin-top:0}.support-feedback-form textarea,.support-review-form textarea,.support-settings-form textarea{resize:vertical;line-height:1.8;min-height:100px}.support-feedback-form .hint,.support-settings-form .hint{display:block;margin-top:6px;line-height:1.7}.support-required{color:#c2414d}.support-feedback-policy{padding:11px 13px;background:#f2f6fd;color:#49668c;font-size:12px;line-height:1.7;border-radius:9px}.support-checkbox{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.7;margin:16px 0;color:#43546b}.support-checkbox input{width:17px;min-height:17px;height:17px;flex:0 0 17px;margin:3px 0 0}.support-page{max-width:1240px;margin:auto;padding-bottom:30px}.support-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.support-page-heading h1{font-size:25px;line-height:1.5;margin:0 0 7px;color:#17304f}.support-page-heading p{font-size:13px;color:#687b96;margin:0}.support-page-heading>.actions{margin-top:3px;flex-wrap:wrap}.support-feedback-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.support-feedback-card{min-width:0;padding:21px 23px;border:1px solid #dfe7f4;border-radius:13px;background:#fff}.support-feedback-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.support-feedback-card-head>strong{font-size:15px;color:#253f61}.support-status{display:inline-flex;align-items:center;justify-content:center;font-size:11px;padding:3px 8px;line-height:1.5;border-radius:6px;white-space:nowrap;font-weight:500}.support-status.pending{background:#fff6e8;color:#9a661a}.support-status.processing{background:#eaf2ff;color:#235bb6}.support-status.resolved{background:#edf7f1;color:#397459}.support-status.invalid{background:#f0f2f6;color:#6b7280}.support-feedback-excerpt{font-size:14px;color:#52647f;line-height:1.8;margin:16px 0 19px;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.support-feedback-card-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding-top:13px;border-top:1px solid #edf1f7}.support-feedback-card-foot>span{font-size:12px;color:#8593a8}.support-feedback-card-foot>button{font-size:12px;color:#2563eb;min-height:33px;padding:6px 10px}.support-empty{grid-column:1/-1;text-align:center;padding:42px 20px;background:#fff;border:1px dashed #d5dfef;border-radius:14px;color:#6d7d95}.support-empty strong{font-size:16px;color:#3e5575}.support-empty p{font-size:13px;margin:10px 0 18px}.support-detail-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#78889f;margin:0 0 18px}.support-detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;padding:15px;background:#f6f9fd;border-radius:10px;margin:0}.support-detail-facts>div{min-width:0}.support-detail-facts dt{font-size:11px;color:#7c8da6}.support-detail-facts dd{font-size:12px;color:#37506f;margin:4px 0 0;overflow-wrap:anywhere}.support-feedback-description,.support-review-note>p{white-space:pre-wrap;overflow-wrap:anywhere;color:#405774;font-size:14px;line-height:1.9}.support-feedback-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.support-feedback-images>a{min-width:0;display:block;background:#f8fafd;border:1px solid #e1e8f2;border-radius:9px;overflow:hidden}.support-feedback-images img{display:block;object-fit:contain;height:135px;width:100%;background:#f0f4fa}.support-feedback-images span{display:block;font-size:11px;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-review-note{border-left:3px solid #bdd1f1;background:#f5f8fe;padding:1px 15px 13px;margin-top:24px}.support-review-note h3{margin-top:12px}.support-review-note>small{color:#8390a3;font-size:11px}.support-reward-history{border-top:1px solid #e3eaf3;margin-top:24px}.support-reward-history ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}.support-reward-history li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 16px;padding:10px 12px;background:#f3f7fe;border-radius:8px;font-size:12px;color:#71829c}.support-reward-history li>strong{color:#245bbb;font-weight:600}.support-reward-history li>small{display:block;width:100%;color:#667993;white-space:pre-wrap;overflow-wrap:anywhere}.support-review-form,.support-reward-form{border-top:1px solid #e3eaf3;margin-top:24px}.support-reward-input{display:flex;align-items:flex-end;gap:12px}.support-reward-input>.field{flex:1;min-width:0;margin:0}.support-reward-input>button{flex:none;min-height:40px}.support-config-qr{display:flex;align-items:center;gap:15px;margin:16px 0}.support-config-qr img{width:130px;max-width:40%;height:auto;border:1px solid #e2e8f0;border-radius:8px}.support-feedback-filters{display:grid;grid-template-columns:minmax(150px,1.4fr) repeat(4,minmax(110px,1fr)) auto;align-items:end;gap:12px;padding:20px;margin-bottom:20px;border:1px solid #dfe7f4;border-radius:13px;background:white}.support-feedback-filters .field{margin:0}.support-feedback-filters label{font-size:12px}.support-feedback-filters>button{min-height:40px}.support-feedback-table{padding:22px}.support-feedback-table>.tools{margin-bottom:16px}.support-feedback-table h2{font-size:17px;margin:0}.support-feedback-table td{max-width:320px;overflow-wrap:anywhere}.support-admin-excerpt{font-size:12px;color:#738299;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0;max-width:350px}.support-is-unread td:first-child>strong{color:#2458aa}.support-unread-label{display:block;color:#2563eb;font-size:10px;margin-top:4px}
@media(max-width:1100px){.support-feedback-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.support-page-heading{flex-wrap:wrap}.support-recharge-reminder{padding:18px}}
@media(max-width:700px){.support-announcement-bar{padding:7px 14px;gap:3px}.support-announcement-open{font-size:12px;gap:6px;align-items:flex-start}.support-announcement-more{display:none}.support-announcement-open>span:first-child{margin-top:1px}.support-announcement-close{align-self:flex-start}.support-page-heading h1{font-size:22px}.support-feedback-list{grid-template-columns:1fr}.support-page-heading{gap:14px}.support-page-heading>.actions{width:100%;justify-content:flex-start}.support-feedback-card{padding:18px}.support-feedback-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.support-feedback-filters>button{align-self:end}.support-feedback-table{padding:16px}.support-feedback-table .tools{gap:8px}.support-recharge-reminder,.support-recharge-reminder.compact{flex-wrap:wrap;gap:10px;padding:15px}.support-recharge-reminder>div{flex-basis:calc(100% - 34px)}.support-recharge-reminder>button{margin-left:30px;min-height:35px}.support-recharge-reminder strong{font-size:14px}.support-recharge-reminder p{font-size:12px}.support-detail-facts{gap:12px}.support-feedback-images{grid-template-columns:repeat(2,minmax(0,1fr))}.support-feedback-images img{height:125px}.support-reward-input{align-items:stretch;flex-direction:column}.support-reward-input>button{align-self:flex-start}dialog.support-modal{padding:20px;max-height:calc(100dvh - 22px)}.support-modal h2{font-size:19px}.support-dialog-footer{gap:8px}.support-dialog-footer button{font-size:12px;min-height:38px}.support-contact-qr{width:270px}.support-announcement-body{font-size:14px}}
@media(max-width:400px){.support-detail-facts{grid-template-columns:1fr}.support-feedback-filters{grid-template-columns:1fr}.support-feedback-card-foot>button{width:100%}.support-dialog-footer button{flex:1}.support-recharge-success .support-dialog-footer button:first-child{flex-basis:100%;order:3}}
.support-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding:16px 0 0;border-top:1px solid #e3eaf3;font-size:12px;color:#70839d}.support-pagination>div{display:flex;gap:8px}.support-pagination button{font-size:12px;min-height:35px;padding:7px 13px}.support-pagination button:disabled{opacity:.45;background:#f6f8fc;color:#8795aa}.support-feedback-table .support-pagination{margin-top:18px}
@media(max-width:450px){.support-pagination{align-items:flex-start;flex-direction:column;gap:12px}.support-pagination>div{width:100%}.support-pagination button{flex:1}}
.inspiration-library{max-width:1320px;margin:auto}.inspiration-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:24px}.inspiration-heading h2{font-size:26px;margin:12px 0}.inspiration-heading p{color:#64748b;line-height:1.8}.inspiration-heading .actions{flex-wrap:wrap;margin:4px 0}.inspiration-filters{display:flex;gap:14px;align-items:flex-end;background:white;border:1px solid #dbe4f1;padding:20px;border-radius:14px}.inspiration-filters .field{margin:0;min-width:150px}.inspiration-filters .inspiration-search{flex:1;min-width:0}.inspiration-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0;color:#64748b;font-size:13px}.inspiration-summary button{font-size:12px}.inspiration-reference-note,.topic-import-reference-note{font-size:12px;line-height:1.9;color:#64748b;background:#eff6ff;border-radius:8px;padding:12px 16px}.inspiration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.inspiration-card{display:flex;flex-direction:column;background:white;border:1px solid #dde5f1;border-radius:14px;padding:22px;min-width:0}.inspiration-card h3{font-size:17px;line-height:1.75;margin:16px 0 10px;overflow-wrap:anywhere}.inspiration-excerpt{color:#64748b;line-height:1.9;font-size:13px;flex:1;white-space:pre-wrap;overflow-wrap:anywhere}.inspiration-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.inspiration-card-actions button{font-size:12px;padding:9px 10px}.inspiration-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:26px 0;font-size:13px;color:#64748b}.inspiration-modal{width:min(900px,calc(100vw - 32px));max-width:900px}.inspiration-detail h3{font-size:20px;line-height:1.8;overflow-wrap:anywhere}.inspiration-full-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2;color:#334155;margin:20px 0}.inspiration-source{display:inline-block;margin:6px 0 16px}.topic-import-context p{font-size:13px;color:#64748b;line-height:1.8}.topic-import-context strong{margin-left:10px}.topic-import-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:20px}.topic-import-file-field{grid-column:1/-1}.topic-import-preview-heading{display:flex;justify-content:space-between;gap:16px;margin-top:25px;border-top:1px solid #e2e8f0;padding-top:20px}.topic-import-preview-heading h3{margin:0 0 8px}.topic-import-preview-heading p,.topic-import-message{font-size:12px;line-height:1.8;color:#64748b}.topic-import-select-tools{display:flex;align-items:center;gap:8px}.topic-import-select-tools button{font-size:11px}.topic-import-entry{border:1px solid #dbe4f1;border-radius:10px;padding:18px;margin:14px 0;background:#fafcff}.topic-import-entry-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.topic-import-entry-top label{display:flex;align-items:center;gap:8px;margin:0}.topic-import-entry-top input[type=checkbox]{width:16px;height:16px}.topic-import-status{font-size:11px;color:#15803d}.topic-import-status.duplicate{color:#64748b}.topic-import-status.invalid,.topic-import-warning{color:#b45309}.topic-import-entry details{margin:14px 0}.topic-import-entry summary{font-size:12px;color:#2563eb;cursor:pointer}.topic-import-entry textarea{margin-top:12px;white-space:pre-wrap}.topic-import-source-url{margin-bottom:0}.topic-import-source-url a{display:inline-block;font-size:12px;margin-top:6px}.topic-import-warning{font-size:12px;line-height:1.8}.topic-import-commit-actions{justify-content:space-between}.topic-import-source-actions{justify-content:flex-end}
@media(max-width:1180px){.inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inspiration-heading{flex-direction:column;gap:8px}.inspiration-filters{flex-wrap:wrap}.inspiration-filters .inspiration-search{min-width:200px}}
@media(max-width:640px){.inspiration-grid{grid-template-columns:1fr}.inspiration-heading h2{font-size:23px}.inspiration-filters{padding:14px;gap:12px}.inspiration-filters .field{min-width:0;flex:1 1 40%}.inspiration-filters .inspiration-search{flex-basis:100%;min-width:0}.inspiration-card{padding:18px}.inspiration-modal{width:calc(100vw - 20px);padding:18px}.topic-import-source-grid{grid-template-columns:1fr}.topic-import-preview-heading{flex-direction:column}.topic-import-entry{padding:13px}.topic-import-commit-actions{align-items:stretch;flex-direction:column}.inspiration-full-copy{font-size:14px}.inspiration-heading .actions{gap:8px}.inspiration-heading .actions button{font-size:12px}}
.email-code-row{display:flex;align-items:flex-end;gap:12px;margin-bottom:20px}.email-code-row .field{flex:1;min-width:0;margin-bottom:0}.email-code-row>button{height:44px;white-space:nowrap}.email-code-message{overflow-wrap:anywhere;min-height:20px}.auth-form .email-code-row input{letter-spacing:2px}@media(max-width:400px){.email-code-row{gap:7px}.email-code-row>button{padding:8px;font-size:12px}}

.daily-login-claim{white-space:nowrap;border:1px solid #b8caff;background:#eef3ff;color:#3058c7;font-weight:600;font-size:12px;padding:9px 12px;border-radius:9px}.daily-login-claim:not(:disabled):hover{background:#e0eaff;border-color:#829feb}.daily-login-claim.is-claimed{background:#f4f6f8;color:#7b8796;border-color:#e0e5ec;opacity:1}@media(max-width:640px){.header-actions{flex-wrap:wrap}.daily-login-claim{padding:8px 9px;font-size:11px}}

/* Points account overview and actionable recharge orders. */
.recharge-redesign{max-width:1180px;padding:2px 0 30px}
.recharge-heading,.recharge-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.recharge-heading{margin-bottom:22px}.recharge-heading h2{font-size:26px;letter-spacing:-.6px;margin:0 0 7px;color:#17253d}.recharge-heading p,.recharge-section-heading p{margin:0;color:#748299;font-size:13px;line-height:1.7}
.recharge-heading-actions{display:flex;gap:8px;flex-shrink:0}.recharge-heading-actions button{font-size:12px;min-height:36px}
.recharge-overview{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.recharge-overview.without-reward{grid-template-columns:1fr}
.recharge-redesign .points-balance{position:relative;display:block;overflow:hidden;margin:0;min-width:0;min-height:221px;border-radius:18px;padding:25px 30px;background:linear-gradient(115deg,#15294b,#21497b)}
.balance-caption{display:flex;justify-content:space-between;gap:16px;align-items:center;position:relative;z-index:1}.balance-caption>span{display:flex;align-items:center;gap:8px;color:#d7e5f8;font-size:13px;white-space:nowrap}.balance-caption i{width:6px;height:6px;border-radius:50%;background:#84b7ff;box-shadow:0 0 0 4px #ffffff0d}.balance-caption small{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#abc0dc;max-width:50%}
.balance-value{display:flex;align-items:baseline;gap:10px;margin:10px 0 17px;position:relative;z-index:1}.recharge-redesign .balance-value>strong{margin:0;font-size:54px;line-height:1.2;letter-spacing:-1.8px;font-variant-numeric:tabular-nums}.balance-value>span{font-size:14px;color:#c4d6ef}
.balance-estimates{display:flex;gap:12px;position:relative;z-index:1}.balance-estimates>span{padding:8px 12px;border:1px solid #ffffff1a;border-radius:8px;background:#ffffff07;font-size:12px;color:#bdd0ea}.balance-estimates strong{font-weight:500;color:#fff;margin-left:6px}.balance-decoration{position:absolute;right:28px;bottom:-39px;color:#ffffff05;font-weight:800;font-size:240px;line-height:1;pointer-events:none;transform:rotate(10deg)}
.daily-reward-card{display:flex;flex-direction:column;align-items:stretch;padding:20px 22px;border:1px solid #dce5f2;border-radius:18px;background:linear-gradient(125deg,#fff,#f8faff);min-width:0}.daily-reward-heading{display:flex;align-items:center;gap:11px}.daily-gift-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff2d8;color:#b6862d;flex-shrink:0}.daily-gift-icon svg{width:23px;height:23px}.daily-reward-heading h3{margin:0 0 3px;font-size:14px;color:#293b54}.daily-reward-heading p{margin:0;color:#8490a2;font-size:11px}.daily-reward-value{font-size:31px;font-weight:750;color:#2b58b7;margin:11px 0 12px;line-height:1.2;letter-spacing:-.8px}.daily-reward-value>span{font-size:12px;color:#8390a4;font-weight:400;letter-spacing:0;margin-left:4px}.daily-reward-card .daily-login-claim{width:100%;min-height:36px;margin-top:auto;font-size:12px}.daily-reward-card>small{margin-top:8px;font-size:10px;text-align:center;color:#8491a4}
.points-usage-strip{display:flex;align-items:center;gap:12px 22px;padding:15px 2px;color:#69798f;font-size:12px;flex-wrap:wrap}.points-usage-strip>span:first-child{color:#344b6c;font-weight:600}.points-usage-strip>span+span{padding-left:20px;border-left:1px solid #dbe3ee}.points-usage-strip strong{color:#304d77;font-weight:600}.points-usage-strip>small{margin-left:auto;font-size:11px;color:#8b97a8}
.balance-conversion{font-size:11px;color:#8390a3;margin:0 0 22px}.balance-conversion summary{cursor:pointer;display:list-item;width:fit-content}.balance-conversion p{padding:11px 14px;border-radius:9px;background:#edf3fc;line-height:1.7;color:#61758f;margin:8px 0}
.recharge-plan-section{margin-top:25px}.recharge-section-heading h2{font-size:19px;margin:0 0 6px;color:#1d304d}.recharge-section-heading h2>span{display:inline-block;background:#fff2d7;color:#9b722e;vertical-align:middle;margin-left:8px;border-radius:6px;padding:3px 7px;font-size:11px;font-weight:500}.recharge-payment-note{font-size:11px;color:#8390a4;white-space:nowrap}
.recharge-redesign .recharge-plans{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0 19px}.recharge-redesign .recharge-plan{min-width:0;padding:23px 20px 20px;border-radius:14px;gap:0;border-color:#dfe6f0;transition:box-shadow .18s,border-color .18s}.recharge-redesign .recharge-plan:hover{border-color:#b6caef;box-shadow:0 8px 22px #193a6a08}.recharge-redesign .recharge-plan.recommended{padding:22px 19px 19px;border:2px solid #4374ee;box-shadow:0 4px 20px #2563eb0a;background:linear-gradient(180deg,#f5f8ff 0,#fff 90px)}
.recharge-redesign .recharge-plan h3{font-size:16px;color:#24334d}.plan-caption{display:block;font-size:11px;color:#8c98aa;margin-top:7px}.recharge-redesign .plan-price{font-size:32px;line-height:1.3;margin:20px 0 15px;letter-spacing:-1px;color:#18263b;font-variant-numeric:tabular-nums}.recharge-redesign .plan-price small{font-size:15px;font-weight:500;margin-right:3px}.plan-credit-total{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.recharge-redesign .plan-points{font-size:26px;line-height:1.2;letter-spacing:-.6px;color:#315fd5;font-variant-numeric:tabular-nums}.plan-credit-total>span{font-size:11px;color:#7b8ba4}.plan-credit-total .plan-gift{font-size:10px;color:#5271b3;background:#edf3ff;border-radius:4px;padding:3px 5px;align-self:center;margin-left:auto;white-space:nowrap}.recharge-redesign .plan-breakdown{font-size:10px;line-height:1.7;margin-top:9px;min-height:17px;color:#91a0b3}
.recharge-redesign .plan-estimate{display:flex;flex-direction:column;gap:7px;border-color:#edf1f7;padding-top:15px;margin-top:17px;font-size:11px;line-height:1.5;color:#8a97aa}.plan-estimate>span{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}.plan-estimate strong{font-weight:400;color:#647a99}.recharge-redesign .recharge-plan>button{margin-top:19px;min-height:38px;font-size:12px;border-radius:8px}.recharge-redesign .recharge-plan>button:disabled{font-size:11px}.recharge-redesign .recharge-badge{font-size:10px;padding:4px 10px;top:-12px;right:15px}
.recharge-pending-panel{padding:19px 22px;border:1px solid #e9dfc9;background:#fffdfa;border-radius:14px;margin:8px 0 24px;scroll-margin-top:95px;outline-offset:4px}.recharge-pending-panel .recharge-section-heading>button{background:white;font-size:11px;white-space:nowrap}.recharge-pending-panel .recharge-section-heading p{font-size:12px;color:#9a8a71}.recharge-pending-list{margin-top:13px;border-top:1px solid #efe8da}.recharge-pending-order{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:23px;padding:13px 0;border-bottom:1px solid #efe8da}.recharge-pending-order:last-child{border-bottom:0;padding-bottom:0}.pending-order-info{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;align-items:baseline;min-width:0}.pending-order-info>strong{font-size:13px;color:#39465b}.pending-order-info>span{font-size:12px;color:#758295}.pending-order-info i{font-style:normal;margin:0 7px;color:#b6bfcc}.pending-order-info>small{grid-column:1/-1;font-size:10px;color:#a0a5ad}.pending-order-actions{display:flex;gap:8px}.pending-order-actions>button{font-size:11px;padding:8px 12px;min-height:33px;white-space:nowrap}.pending-order-actions>.cancel-recharge-order{border-color:transparent;color:#959ca7;background:transparent}.pending-order-actions>.cancel-recharge-order:hover{color:#a65a47;border-color:#e8d4c9;background:#fff9f3}.recharge-state{display:inline-block;border-radius:5px;padding:4px 7px;font-size:10px;white-space:nowrap;background:#f0f3f8;color:#8894a7}.recharge-state.created{color:#ac7a34;background:#fff0d5}.recharge-state.pending{color:#426ebc;background:#ebf1ff}.recharge-state.approved{color:#39846b;background:#eaf6ef}.recharge-state.rejected{color:#ab6b53;background:#fff0e7}
.recharge-redesign>.support-recharge-reminder{margin:18px 0;padding:16px 20px;border-radius:12px;gap:12px;background:#f0f5fc;border-color:#e0e8f5}.recharge-redesign>.support-recharge-reminder strong{font-size:13px}.recharge-redesign>.support-recharge-reminder p{font-size:11px;margin-top:4px}.recharge-redesign>.support-recharge-reminder small{font-size:10px}.recharge-redesign>.support-recharge-reminder button{font-size:11px;min-height:33px}
.recharge-redesign>.panel{border:1px solid #e1e7f0;border-radius:12px;box-shadow:none;margin:13px 0;padding:19px 21px}.recharge-history>summary,.recharge-ledger>summary{cursor:pointer;color:#334964;font-size:14px;font-weight:600;list-style:none;display:flex;gap:10px;align-items:center}.recharge-history>summary:before,.recharge-ledger>summary:before{content:'›';display:inline-block;color:#91a0b7;font-size:20px;line-height:1}.recharge-history[open]>summary:before,.recharge-ledger[open]>summary:before{transform:rotate(90deg)}.recharge-history>summary>span,.recharge-ledger>summary>span{margin-left:auto;font-size:11px;font-weight:400;color:#91a0b3}.recharge-history .table-wrap,.recharge-ledger .table-wrap{margin-top:18px}.recharge-history summary::-webkit-details-marker,.recharge-ledger summary::-webkit-details-marker{display:none}.recharge-redesign .panel td{font-size:12px}.recharge-ledger{scroll-margin-top:95px}.recharge-redesign .points-faq{margin-top:22px;background:transparent;border:0;padding:0 2px}.recharge-redesign .points-faq h2{font-size:16px;color:#51647f;margin:0 0 7px}.recharge-redesign .points-faq details{padding:12px 0}.recharge-redesign .points-faq summary{font-size:12px;color:#748298;cursor:pointer}.recharge-redesign .points-faq p{font-size:12px;line-height:1.9;max-width:850px}
@media(max-width:1100px){.recharge-overview{grid-template-columns:minmax(0,1fr) 245px;gap:14px}.recharge-redesign .recharge-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.points-usage-strip{gap:10px 15px}.points-usage-strip>small{margin-left:0;flex-basis:100%}.recharge-pending-order{gap:12px}.pending-order-info{grid-template-columns:1fr}.pending-order-info>small{grid-column:auto}.balance-caption small{max-width:45%}}
@media(max-width:700px){.recharge-heading{align-items:flex-start;gap:10px}.recharge-heading h2{font-size:23px}.recharge-heading p{font-size:11px}.recharge-heading-actions{gap:5px}.recharge-heading-actions button{font-size:10px;padding:7px;min-height:32px}.recharge-overview{grid-template-columns:1fr}.recharge-redesign .points-balance{min-height:190px;padding:23px}.recharge-redesign .balance-value>strong{font-size:48px}.daily-reward-card{display:grid;grid-template-columns:1fr auto;gap:6px 15px;padding:17px 20px;align-items:center}.daily-reward-heading{grid-column:1}.daily-reward-heading h3{font-size:13px}.daily-reward-value{grid-row:2;grid-column:1;font-size:27px;margin:5px 0}.daily-reward-card .daily-login-claim{grid-row:1/3;grid-column:2;align-self:center;margin:0;padding:9px 12px;min-width:121px;width:auto}.daily-reward-card>small{grid-column:1/-1;text-align:left;font-size:10px;margin-top:2px}.points-usage-strip{padding:14px 0;gap:9px 12px;font-size:11px}.points-usage-strip>span+span{padding-left:12px}.balance-conversion{margin-bottom:20px}.recharge-section-heading{align-items:flex-start;gap:12px}.recharge-section-heading h2{font-size:17px}.recharge-section-heading p{font-size:11px}.recharge-plan-section>.recharge-section-heading{flex-wrap:wrap}.recharge-payment-note{font-size:10px}.recharge-redesign .recharge-plans{margin-top:21px;gap:12px}.recharge-redesign .recharge-plan,.recharge-redesign .recharge-plan.recommended{padding:19px 14px 16px}.recharge-redesign .recharge-plan h3{font-size:14px}.plan-caption{font-size:10px}.recharge-redesign .plan-price{font-size:29px;margin:16px 0 13px}.recharge-redesign .plan-points{font-size:24px}.plan-credit-total .plan-gift{margin-left:0}.recharge-redesign .plan-breakdown{min-height:34px}.recharge-redesign .plan-estimate{font-size:10px;margin-top:13px}.recharge-redesign .recharge-plan>button{font-size:11px;margin-top:16px}.recharge-pending-panel{padding:16px;margin-top:3px}.recharge-pending-order{grid-template-columns:1fr auto;gap:10px}.pending-order-info{gap:4px}.pending-order-actions{grid-column:1/-1;justify-content:flex-end}.pending-order-info>small{font-size:9px}.recharge-state{font-size:9px}.recharge-redesign>.panel{padding:16px}.recharge-redesign>.support-recharge-reminder{padding:15px}.recharge-redesign>.support-recharge-reminder>button{margin-left:27px}}
@media(prefers-reduced-motion:reduce){.recharge-redesign .recharge-plan{transition:none}}

.daily-reward-card .daily-login-claim:not(:disabled){background:#2f64e8;border-color:#2f64e8;color:#fff}.daily-reward-card .daily-login-claim:not(:disabled):hover{background:#2558d6;border-color:#2558d6}

.recharge-order-records{scroll-margin-top:95px;outline-offset:4px}.recharge-order-records .recharge-section-heading>button{font-size:11px;white-space:nowrap}.recharge-order-records .table-wrap{margin-top:17px}.recharge-order-records .recharge-state.created{color:#a56e20}.recharge-orders-empty{padding:19px 0 5px;margin:0}.recharge-saved-note{background:#edf5ff;border:1px solid #dbe8fa;border-radius:9px;padding:11px 13px;color:#496988;font-size:12px;line-height:1.8;margin:0 0 19px}.recharge-heading-actions{flex-wrap:wrap;justify-content:flex-end}.recharge-order-records td button{white-space:nowrap}

/* Merchant trash and unified feedback contact area. */
.merchant-nav-row{display:flex;align-items:center;gap:2px;min-width:0}.merchant-nav-row>.project-nav-item{min-width:0;flex:1;width:auto}.merchant-delete{flex:none;border:0;background:transparent;color:#647795;width:27px;height:30px;padding:5px;min-height:0;border-radius:7px}.merchant-delete .icon{width:15px;height:15px}.merchant-delete:hover,.merchant-delete:focus-visible{color:#e2a394;background:#ffffff0c;border-color:transparent}.project-card-delete{margin-left:auto;color:#8a98ac;border-color:transparent;background:transparent}.project-card-delete:hover{color:#b46452;background:#fff6f1}.project-card .card-top>.pill{margin-left:auto}.trashed-project{border-style:dashed}.trashed-project .project-icon{background:#eff2f7;color:#94a0b2}.trashed-project .card-bottom>span{color:#94a0b2}
.feedback-support-hub{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:35px;align-items:center;background:linear-gradient(115deg,#f3f7ff,#fff);border:1px solid #dce6f5;border-radius:16px;padding:26px 29px;margin:22px 0 27px;scroll-margin-top:90px}.feedback-support-label{font-size:11px;color:#6784b8;letter-spacing:.7px}.feedback-support-intro h2{font-size:23px;color:#213e68;margin:10px 0}.feedback-support-intro>p{font-size:13px;line-height:1.9;color:#6c809d;max-width:520px;margin:0 0 18px}.feedback-support-intro>button{font-size:12px;min-height:38px}.feedback-support-intro>small{display:block;font-size:11px;color:#8d9cb0;margin-top:12px;overflow-wrap:anywhere}.feedback-wechat{display:flex;gap:17px;align-items:center;padding-left:25px;border-left:1px solid #e0e8f5;min-width:0}.feedback-wechat>a{flex:none}.feedback-wechat img{display:block;width:126px;height:126px;object-fit:contain;background:white;border:1px solid #e0e8f2;border-radius:10px;padding:5px}.feedback-wechat strong{font-size:14px;color:#324967}.feedback-wechat p{font-size:11px;color:#8b99ac;line-height:1.8;margin:8px 0}.feedback-wechat small{font-size:11px;color:#748aa9;display:block;overflow-wrap:anywhere}.feedback-wechat>div>a{display:inline-block;font-size:11px;margin-top:9px;color:#3c6fca}.feedback-qr-empty{display:grid;place-items:center;width:126px;min-height:126px;padding:16px;border:1px dashed #d6dfec;color:#93a1b6;font-size:12px;text-align:center;flex:none;border-radius:10px}.feedback-records-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px}.feedback-records-heading h2{font-size:18px;margin:0;color:#334963}.feedback-records-heading>span{font-size:12px;color:#8d9bb0}
@media(max-width:1100px){.feedback-support-hub{grid-template-columns:1fr;gap:22px}.feedback-wechat{padding:20px 0 0;border-left:0;border-top:1px solid #e0e8f5}.feedback-wechat img{width:118px;height:118px}}
@media(max-width:640px){.feedback-support-hub{padding:20px;margin:16px 0 22px}.feedback-support-intro h2{font-size:20px}.feedback-support-intro>p{font-size:12px}.feedback-wechat{gap:20px}.feedback-wechat img{width:112px;height:112px}.merchant-delete{color:#91a0b7}}

.auth-public-links{display:flex;justify-content:center;gap:20px;margin-top:24px;font-size:12px}.auth-public-links a{color:#64748b;text-decoration:none}.auth-public-links a:hover{color:#2563eb;text-decoration:underline}

/* Merchant-first navigation: keep auxiliary tools within a compact fixed footer. */
.shell .sidebar{height:100dvh;max-height:100dvh;min-height:0;overflow:visible;gap:12px;padding:18px 14px 12px}
.sidebar>.brand,.sidebar>.primary,.sidebar>.sidebar-tools,.sidebar>.sidebar-footer{flex:none}
.sidebar>.primary{min-height:36px}
.sidebar>.project-nav{flex:1 1 0;min-height:0;max-height:none;gap:8px;overflow:hidden}
.sidebar .sidebar-search{flex:none;margin:0;height:32px;min-height:32px}
.sidebar .sidebar-label{flex:none;letter-spacing:.3px}
.sidebar .project-nav-list{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:3px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.sidebar .merchant-nav-group{flex:none}
.sidebar .project-nav-item{max-width:none;min-height:36px;padding:8px;gap:8px;background:transparent}
.sidebar .project-nav-item.selected{background:#1D304D}
.sidebar .merchant-delete{opacity:0}
.sidebar .merchant-nav-row:hover .merchant-delete,.sidebar .merchant-nav-row:focus-within .merchant-delete{opacity:1}
.sidebar .workspace-nav{display:grid;grid-template-columns:minmax(0,1fr);margin:4px 0 6px 15px;padding-left:8px;gap:2px}
.sidebar .workspace-nav[hidden],.sidebar .merchant-nav-group[hidden]{display:none}
.sidebar .workspace-nav>button{min-height:30px;padding:6px 9px;font-size:12px}
.sidebar .merchant-utilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin-top:5px;padding-top:6px;border-top:1px solid #2C3E57}
.sidebar .merchant-utilities button{min-width:0;min-height:28px;justify-content:center;padding:4px 0;font-size:10px;gap:0;white-space:nowrap}
.sidebar-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;border-top:1px solid #2C3E57;padding-top:8px}
.sidebar-tools .sidebar-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;min-height:44px;padding:5px 2px;border:0;border-radius:7px;background:transparent;color:#AFC1DB;line-height:1.3;font-size:10px;cursor:pointer;list-style:none}
.sidebar-tools .sidebar-tool .icon{width:16px;height:16px;color:inherit}
.sidebar-tools .sidebar-tool:hover,.sidebar-tools .sidebar-tool.active,.sidebar-more[open]>summary{background:#1D304D;color:#F8FAFC}
.sidebar-tools .sidebar-tool:focus-visible,.sidebar-more-menu button:focus-visible{outline:2px solid #81B7FF;outline-offset:-2px}
.sidebar-more{position:relative;min-width:0;margin:0;padding:0;border:0}
.sidebar-more>summary::-webkit-details-marker{display:none}
.sidebar-more>summary .support-unread{position:absolute;top:1px;right:0;font-size:9px}
.sidebar-more-menu{position:absolute;bottom:calc(100% + 8px);right:0;z-index:40;width:184px;max-height:calc(100dvh - 120px);overflow:auto;padding:6px;background:#17263E;border:1px solid #3A4F6C;border-radius:10px;box-shadow:0 8px 28px #07132355}
.sidebar-more-menu button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:34px;width:100%;border:0;background:transparent;color:#D6E2F3;padding:7px 9px;font-size:12px;text-align:left}
.sidebar-more-menu button:hover,.sidebar-more-menu button.active{background:#263D5C;color:white}
.sidebar .sidebar-footer{padding:9px 2px 0}
.sidebar .account{gap:8px}
.sidebar .avatar{width:30px;height:30px;flex:none}
.sidebar .account-name small{display:block;margin:2px 0 0;font-size:10px}
.sidebar [data-sidebar-credits]{font-variant-numeric:tabular-nums}
@media(hover:none){.sidebar .merchant-delete{opacity:1}}
@media(max-height:650px){.shell .sidebar{padding-top:12px;gap:8px}.sidebar .brand .mark,.sidebar .brand .mark svg{width:30px;height:30px;flex-basis:30px}.sidebar>.primary{min-height:32px}.sidebar-tools{padding-top:6px}.sidebar-tools .sidebar-tool{min-height:38px}.sidebar .sidebar-footer{padding-top:6px}}

/* Clear prices, saved profiles, and per-task settlement. */
.plan-offer{display:flex;flex-direction:column;gap:5px;margin:14px 0;padding:12px;border-radius:12px;background:#eff6ff;color:#1e40af}
.plan-offer .plan-gift{font-size:20px;line-height:1.35}.plan-offer>span{font-size:13px}.plan-credit-label{font-size:13px;color:#475569;margin-top:14px}.plan-credit-total{display:flex;align-items:baseline;gap:8px}.plan-credit-total .plan-points{font-size:34px;font-weight:750;color:#0f172a}.plan-breakdown{font-size:12px;line-height:1.7;color:#475569}
.checkout-points{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;padding:15px;margin:14px 0;border-radius:12px;background:#eff6ff}.checkout-points strong{font-size:25px;color:#1d4ed8}.checkout-points small{flex-basis:100%;color:#475569}
.generation-billing{margin:10px 0;padding:11px 13px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;font-size:12px;line-height:1.65;color:#334155}.generation-billing-values{display:flex;flex-wrap:wrap;gap:6px 18px}.generation-billing-values strong{font-size:16px;color:#1e40af}.generation-billing-values small{flex-basis:100%}.generation-billing p{margin:5px 0 0!important;font-size:12px!important}.generation-billing .billing-refund,.generation-billing .billing-refund strong{color:#047857}.generation-billing.is-free{display:flex;flex-wrap:wrap;gap:6px 12px}.generation-billing-note{font-size:12px;color:#64748b}
.generation-points{padding:9px 12px;border-radius:8px;background:#eff6ff;color:#1e40af!important;font-weight:600;line-height:1.6}.merchant-save-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0;font-size:12px;color:#475569}.merchant-save-status button{font-size:12px;padding:4px 8px}.danger-text{color:#b91c1c}.drawer-file>div{min-width:0}.file-actions{display:flex;flex-wrap:wrap;gap:8px}.file-item strong,.drawer-file strong{overflow-wrap:anywhere}.file-item .actions{flex-wrap:wrap}
@media(max-width:600px){.generation-billing-values{gap:5px 12px}.generation-billing-values span{min-width:110px}.checkout-points strong{font-size:22px}.recharge-plan .plan-points{font-size:30px}}


/* Keep the complete mobile composer inside the available browser viewport. */
@media (max-width:860px) {
  .is-generate {
    height: var(--workspace-viewport-height,100dvh);
    min-height: 0;
  }
  .is-generate .main { height: 100%; }
  .is-generate .sidebar { height: var(--workspace-viewport-height,100dvh); }
  .is-generate .content { overflow-y: auto; overscroll-behavior-y: contain; }
  .compact-creation:not(.has-groupbuys) {
    grid-template-rows: 52px minmax(0,1fr) auto;
  }
  .compact-creation:not(.has-groupbuys) .pane-heading { height: 52px; }
  .is-generate .compact-creation .conversation-compose {
    padding-bottom: calc(10px + env(safe-area-inset-bottom,0px));
  }
  .compact-creation .generate-button { height: 44px; min-height: 44px; }
  .compact-creation:not(.has-groupbuys) form[data-form=chat] textarea,
  .compact-creation.has-groupbuys form[data-form=chat] textarea {
    font-size: 16px;
    line-height: 1.5;
    height: 64px;
    min-height: 64px;
    max-height: 120px;
  }

  /* A keyboard or landscape window may leave too little room for fixed panes. */
  :root[data-workspace-short-viewport] .is-generate .content {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: 12px;
  }
  :root[data-workspace-short-viewport] .is-generate .workbench-layout {
    flex: none;
    height: auto;
  }
  :root[data-workspace-short-viewport] .compact-creation:not(.has-groupbuys) {
    height: auto!important;
    grid-template-rows: 52px 100px auto;
  }
  :root[data-workspace-short-viewport] .compact-creation.has-groupbuys {
    height: auto!important;
    grid-template-rows: 52px auto 80px auto;
  }
  :root[data-workspace-short-viewport] .is-generate .document-pane {
    height: 320px;
  }
  :root[data-workspace-short-viewport] .creation-settings-popover {
    top: calc(100% + 8px);
    bottom: auto;
    max-height: calc(var(--workspace-viewport-height,100dvh) - 24px);
  }
}

/* Give an expanded quality report the full document width. */
.compact-review.has-writing-quality{flex-wrap:wrap}
.compact-review.has-writing-quality>details[open]{flex:1 0 100%;min-width:0}
.writing-quality-detail p{margin:8px 0;font-size:12px;line-height:1.8}
.writing-quality-detail ul{margin:8px 0;padding-left:20px;font-size:12px;line-height:1.8}
.publication-label{display:block;color:#64748b;font-size:11px;line-height:1.6;margin:8px 0 4px}
.publication-topics{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 14px;min-width:0}
.publication-topics>.publication-label{flex-basis:100%;margin:0}
.publication-topic{display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:3px 8px;border-radius:7px;background:#edf4ff;color:#2357a5;font-size:12px;line-height:1.7}
.inline-topics{width:100%;max-width:100%;box-sizing:border-box;margin-bottom:10px}
.sidebar>.ai-chat-entry{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid #42628b;background:#1d3553;color:#fff;border-radius:9px;margin:12px 0;}
