:root{color:#17211d;background:#f5f7f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(135deg,rgba(15,118,110,.08),transparent 34%),linear-gradient(315deg,rgba(231,111,81,.08),transparent 30%),#f5f7f6}button,input{font:inherit}button{cursor:pointer}.app-shell{width:min(1180px,calc(100vw - 32px));margin:0 auto;padding:28px 0}.app-shell-auth{display:grid;min-height:100vh;place-items:center;padding:24px 0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:76px;margin-bottom:20px}.topbar-actions{display:flex;align-items:center;gap:10px}.brand{display:flex;align-items:center;gap:14px}.brand-mark{display:grid;width:48px;height:48px;place-items:center;color:#fff;background:#0f766e;border-radius:8px;box-shadow:0 12px 30px #0f766e3d}h1,h2,p{margin:0}h1{font-size:24px;line-height:1.1}h2{font-size:18px}p{margin-top:4px;color:#64736e;font-size:14px}.status-pill{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;color:#0d5d56;background:#e8f7f1;border:1px solid #b8d8d1;border-radius:999px;font-size:13px;font-weight:700}.copy-toast{position:fixed;top:18px;right:18px;z-index:60;display:inline-flex;align-items:center;gap:8px;max-width:min(420px,calc(100vw - 36px));padding:12px 14px;color:#fff;background:#17211df0;border:1px solid rgba(255,255,255,.08);border-radius:10px;box-shadow:0 18px 36px #17211d3d;font-size:13px;font-weight:700}.copy-toast svg{flex:0 0 auto;color:#58d59b}.logout-button{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;color:#0d5d56;background:#e8f7f1;border:1px solid #b8d8d1;border-radius:999px;font-size:13px;font-weight:700}.auth-card{display:grid;gap:14px;width:min(520px,100%);margin:48px auto 0;padding:22px;background:#fffffff0;border:1px solid #dce5e1;border-radius:12px;box-shadow:0 18px 40px #17211d14}.auth-card-loading{margin-top:0;justify-items:center}.auth-card-head{display:flex;align-items:center;gap:14px}.auth-card-head svg{flex:0 0 auto;color:#0f766e}.network-error-card{display:flex;gap:18px;width:min(760px,calc(100vw - 40px));margin:48px auto 0;padding:28px 30px;background:#fff;border:1px solid #dce5e1;border-radius:14px;box-shadow:0 18px 40px #17211d14}.network-error-icon{flex:0 0 auto;width:72px;height:72px;border:2px solid #c9d3cf;border-radius:999px;display:grid;place-items:center}.network-error-face{width:34px;height:34px;border-bottom:3px solid #9ca9a5;border-left:3px solid transparent;border-right:3px solid transparent;border-radius:50%;transform:rotate(180deg) translateY(2px);position:relative}.network-error-face:before,.network-error-face:after{content:"";position:absolute;top:-18px;width:5px;height:5px;background:#9ca9a5;border-radius:999px}.network-error-face:before{left:4px}.network-error-face:after{right:4px}.network-error-body{min-width:0}.network-error-body h2{font-size:28px;line-height:1.2}.network-error-body p{margin-top:10px;font-size:15px}.network-error-list{margin:18px 0 0;padding-left:18px;color:#5e6d68;font-size:14px;line-height:1.8}.network-error-code{margin-top:20px;color:#7b8c86;font-size:12px}.auth-form{display:grid;gap:12px}.pulse{width:8px;height:8px;background:#21a67a;border-radius:999px;box-shadow:0 0 0 5px #21a67a29}.workspace{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px;align-items:start}.tool-tabs{display:inline-grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:4px;margin-bottom:18px;padding:4px;background:#eef3f1;border:1px solid #d6e1dd;border-radius:8px}.tool-tabs button{min-height:38px;padding:0 16px;color:#40534e;background:transparent;border:0;border-radius:6px;font-weight:800}.tool-tabs button.selected{color:#fff;background:#17211d;box-shadow:0 8px 16px #17211d24}.tool-tabs button:disabled{cursor:not-allowed;opacity:.7}.panel{min-width:0;padding:18px;background:#ffffffe6;border:1px solid #dce5e1;border-radius:8px;box-shadow:0 18px 40px #17211d14}.upload-panel,.result-panel{display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-heading svg{flex:0 0 auto;color:#0f766e}.dropzone{display:grid;width:100%;min-height:168px;place-items:center;gap:8px;padding:22px;color:#24413a;background:#f9fbfa;border:1px dashed #8dbbb0;border-radius:8px}.dropzone.is-active{color:#0d5d56;background:#e8f7f1;border-color:#0f766e}.dropzone strong{max-width:100%;overflow-wrap:anywhere;font-size:16px}.dropzone span{color:#64736e;font-size:13px}.selected-files{display:grid;gap:6px;width:100%;margin-top:8px}.selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;color:#24413a;background:#ffffffd6;border:1px solid #dce5e1;border-radius:8px;font-size:12px}.selected-file-meta{display:grid;gap:4px;min-width:0}.selected-file-meta span:first-child{overflow-wrap:anywhere}.selected-file-meta span:last-child{color:#64736e}.selected-file-remove{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:#8a4b4b;background:#fff4f3;border:1px solid #f1d0cc;border-radius:999px}.settings{display:grid;gap:10px;margin:16px 0}.section-title{display:flex;align-items:center;gap:8px;color:#40534e;font-size:13px;font-weight:800}.option-label{margin-top:4px;color:#64736e;font-size:12px;font-weight:800}.segmented{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:4px;padding:4px;background:#eef3f1;border:1px solid #d6e1dd;border-radius:8px}.segmented button{min-height:36px;color:#40534e;background:transparent;border:0;border-radius:6px;font-size:13px;font-weight:700}.segmented button.selected{color:#fff;background:#0f766e;box-shadow:0 8px 16px #0f766e2e}.text-input{-webkit-text-security:disc;width:100%;min-height:40px;padding:0 12px;color:#17211d;background:#f9fbfa;border:1px solid #d6e1dd;border-radius:8px}.gallery-card{display:grid;gap:10px;padding:12px;background:#f9fbfa;border:1px solid #dce5e1;border-radius:8px}.gallery-card strong,.gallery-card span{display:block}.gallery-card strong{color:#24413a;font-size:14px}.gallery-card span{margin-top:4px;color:#64736e;font-size:12px}.secondary-action{min-height:38px;color:#0d5d56;background:#e8f7f1;border:1px solid #b8d8d1;border-radius:8px;font-weight:800}.secondary-action:disabled{cursor:not-allowed;opacity:.6}.hint-text{color:#64736e;font-size:12px;line-height:1.5}.primary-action,.download-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;color:#fff;background:#17211d;border:0;border-radius:8px;font-weight:800;text-decoration:none}.upload-panel>.primary-action{margin-top:16px}.secondary-wide-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;margin-top:14px;color:#0d5d56;background:#e8f7f1;border:1px solid #b8d8d1;border-radius:8px;font-weight:800}.copy-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.copy-actions-grid .secondary-wide-action{margin-top:0}.copy-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.copy-section{padding:12px;background:#f9fbfa;border:1px solid #dce5e1;border-radius:8px}.copy-section-title{color:#24413a;font-size:13px;font-weight:800}.copy-section .copy-actions-grid,.copy-actions-grid-meta{margin-top:10px}.primary-action:disabled{cursor:not-allowed;opacity:.48}.progress-card{padding:14px;background:#f9fbfa;border:1px solid #dce5e1;border-radius:8px}.progress-card-inline{margin-top:14px}.progress-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#40534e;font-size:13px}.progress-track{width:100%;height:10px;overflow:hidden;background:#dfe8e4;border-radius:999px}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#0f766e,#e76f51);border-radius:inherit;transition:width .22s ease}.stage-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:10px;color:#7b8c86;font-size:12px;text-align:center}.stage-grid span.done{color:#0f766e;font-weight:800}.alert{display:flex;align-items:center;gap:8px;margin-top:14px;padding:10px 12px;border-radius:8px;font-size:13px}.alert.error{color:#9f1d1d;background:#fff0ee;border:1px solid #ffc5bd}.success-icon{color:#16a071}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat{min-height:78px;padding:12px;background:#f9fbfa;border:1px solid #dce5e1;border-radius:8px}.stat span{display:block;color:#64736e;font-size:12px;font-weight:700}.stat strong{display:block;margin-top:8px;overflow-wrap:anywhere;font-size:22px}.diagnostics-card{margin-bottom:14px;padding:12px 14px;border-radius:8px;border:1px solid #dce5e1}.diagnostics-card.is-success{background:#f3fbf8;border-color:#b8d8d1}.diagnostics-card.is-warning{background:#fff8ec;border-color:#f0d3a0}.diagnostics-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.diagnostics-head strong{color:#24413a;font-size:14px}.diagnostics-head span,.diagnostics-text{color:#64736e;font-size:12px}.diagnostics-text{margin-top:8px;line-height:1.5}.diagnostics-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.diagnostics-list span{padding:6px 10px;color:#7a4b00;background:#fff3da;border:1px solid #f0d3a0;border-radius:999px;font-size:12px;font-weight:700}.table-wrap{max-height:430px;overflow:auto;border:1px solid #dce5e1;border-radius:8px}table{width:100%;min-width:820px;border-collapse:collapse;font-size:13px}th,td{padding:10px 12px;border-bottom:1px solid #e8eeeb;text-align:left;white-space:nowrap}th{position:sticky;top:0;z-index:1;color:#fff;background:#0f766e;font-size:12px}tbody tr:nth-child(2n){background:#fbfcfc}.download-button{margin-top:14px;background:#0f766e}.copy-hint{margin-top:10px;color:#64736e;font-size:12px;line-height:1.5}.history-panel{margin-top:14px;padding:14px;background:#f9fbfa;border:1px solid #dce5e1;border-radius:8px}.history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-head h3{margin:0;font-size:15px}.history-head span,.history-meta,.history-empty{color:#64736e;font-size:12px}.history-list{display:grid;gap:10px;margin-top:12px;max-height:260px;overflow:auto}.history-card{padding:12px;background:#fff;border:1px solid #dce5e1;border-radius:8px}.history-card-compact{padding:10px 12px}.history-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card-head strong,.history-card-head span{display:block}.history-card-head strong{color:#24413a;font-size:14px}.history-card-head span{margin-top:4px;color:#64736e;font-size:12px}.history-toggle{min-height:34px;padding:0 12px;color:#0d5d56;background:#e8f7f1;border:1px solid #b8d8d1;border-radius:8px;font-weight:700}.history-meta{margin-top:8px}.history-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}.history-actions .secondary-wide-action{margin-top:0}.history-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#17211d6b;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.history-dialog{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:16px;background:#fff;border:1px solid #dce5e1;border-radius:12px;box-shadow:0 24px 60px #17211d38}.history-auth-dialog{width:min(460px,calc(100vw - 32px));padding:18px;background:#fff;border:1px solid #dce5e1;border-radius:12px;box-shadow:0 24px 60px #17211d38}.history-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-dialog-head strong,.history-dialog-head span{display:block}.history-dialog-head strong{color:#24413a;font-size:16px}.history-dialog-head span{margin-top:4px;color:#64736e;font-size:12px}.empty-state{display:grid;min-height:360px;place-items:center;align-content:center;gap:12px;color:#7b8c86;background:#f9fbfa;border:1px dashed #cbd9d4;border-radius:8px;font-weight:800}.spin{animation:spin .88s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.copy-actions-grid,.copy-section-grid{grid-template-columns:1fr}}@media(max-width:560px){.app-shell{width:min(100vw - 20px,1180px);padding:18px 0}.network-error-card{flex-direction:column;align-items:flex-start;padding:22px 20px}.topbar{align-items:flex-start;flex-direction:column}.panel{padding:14px}.stats-grid{grid-template-columns:1fr}}
