:root{font-family:Inter,Microsoft YaHei,PingFang SC,Arial,sans-serif;color:#172033;background:#eef2f7;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,select,textarea,input{font:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh;background:radial-gradient(circle at 12% 0%,rgba(29,78,216,.12),transparent 28%),linear-gradient(135deg,#f8fafc,#edf2f7 52%,#e5edf6)}.sidebar{width:260px;height:100vh;position:sticky;top:0;flex:0 0 260px;padding:24px 18px;background:#ffffffdb;border-right:1px solid #d9e2ee;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);display:flex;flex-direction:column;gap:22px;overflow:hidden}.brand{display:flex;align-items:center;gap:12px;padding:8px 6px 16px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;color:#fff;background:linear-gradient(135deg,#1f5eff,#16a085);border-radius:8px;box-shadow:0 16px 30px #1f5eff3d}.brand strong,.brand span{display:block}.brand strong{font-size:18px}.brand span{margin-top:3px;color:#64748b;font-size:12px}nav{display:grid;gap:6px;min-height:0;overflow-y:auto}.nav-item{border:0;color:#475569;background:transparent;display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:8px;text-align:left}.nav-item:hover,.nav-item.active{color:#123056;background:#eaf1ff}.nav-item.active{font-weight:700}.sidebar-footer{margin-top:auto;display:grid;gap:12px;flex:0 0 auto}.user-menu-wrap{position:relative}.user-entry{width:100%;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 12px;color:#172033;border:1px solid #d9e2ee;border-radius:8px;background:#fff;text-align:left;box-shadow:0 14px 32px #0f172a14}.user-entry:hover{border-color:#bfdbfe;background:#f8fbff}.user-entry strong,.user-entry small{display:block}.user-entry small{margin-top:3px;color:#64748b;font-size:12px}.user-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 auto;color:#155eef;border-radius:8px;background:#eaf1ff}.login-entry .user-avatar{color:#047857;background:#dcfce7}.subscription-entry{width:100%;min-height:56px;padding:10px 12px;display:flex;align-items:center;gap:12px;color:#172033;border:1px solid #b9e2d2;border-radius:8px;background:#f1fbf7;text-align:left}.subscription-entry:hover,.subscription-entry.active{border-color:#10b981;background:#dcfce7}.subscription-entry strong,.subscription-entry small{display:block}.subscription-entry small{margin-top:3px;color:#047857;font-size:12px}.subscription-entry-icon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;color:#047857;border-radius:8px;background:#fff}.user-menu{position:absolute;left:0;bottom:calc(100% + 10px);z-index:30;width:100%;padding:14px;border:1px solid #d9e2ee;border-radius:8px;background:#fff;box-shadow:0 18px 50px #0f172a2e}.user-menu-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.user-menu-actions button{width:100%}.main{flex:1;padding:28px;overflow:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.eyebrow{margin:0 0 7px;color:#2563eb;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:30px}h2{font-size:34px;line-height:1.2;margin-bottom:14px}h3{margin-bottom:0;font-size:18px}.primary-action,.secondary-action,.danger-action,.hero-actions button{min-height:42px;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;font-weight:700}.primary-action{color:#fff;background:#155eef;box-shadow:0 14px 28px #155eef38}.secondary-action{color:#1e293b;background:#e8eef7}.danger-action{color:#991b1b;background:#fee2e2}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.global-error{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:12px 14px;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px}.dashboard-grid{display:grid;grid-template-columns:1fr;gap:18px}.hero-panel,.panel,.single-panel,.compose-panel,.result-panel{border:1px solid #d9e2ee;border-radius:8px;background:#fffffff0;box-shadow:0 18px 46px #0f172a14}.hero-panel{min-height:300px;padding:34px;display:grid;grid-template-columns:minmax(0,1.1fr) 360px;align-items:center;gap:30px}.hero-panel p{color:#475569;max-width:760px;line-height:1.75}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.hero-actions button{color:#0f172a;background:#fff;border:1px solid #ccd8e8}.hero-actions button:first-child{color:#fff;border-color:#155eef;background:#155eef}.hero-visual{position:relative;min-height:220px}.doc-card{position:absolute;right:12px;bottom:28px;width:230px;padding:18px;border:1px solid #d9e2ee;border-radius:8px;background:#fff;box-shadow:0 20px 40px #0f172a1f}.doc-card.floating{right:92px;bottom:104px}.doc-card strong,.doc-card span{display:block}.doc-card strong{margin-top:12px}.doc-card span{margin-top:5px;color:#64748b;font-size:13px}.metric-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric-card,.feature-grid article{padding:18px;border:1px solid #d9e2ee;border-radius:8px;background:#fff}.metric-card span,.metric-card small{display:block}.metric-card span{color:#64748b;font-size:13px}.metric-card strong{display:block;margin:8px 0;font-size:26px}small.good{color:#047857}.panel,.single-panel,.compose-panel,.result-panel{padding:22px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.panel-title span{color:#64748b;font-size:13px}.review-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.library-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:18px;align-items:start}.rules-library-layout{grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr)}.left-stack{display:grid;gap:18px;min-width:0}.review-layout>.result-panel{min-width:0;overflow:hidden}.panel-resizer{position:relative;align-self:stretch;min-height:680px;cursor:col-resize;touch-action:none;outline:none}.panel-resizer:before{content:"";position:absolute;top:0;right:3px;bottom:0;left:3px;border-radius:8px;background:transparent;transition:background .16s ease}.panel-resizer span{position:sticky;top:calc(50vh - 28px);display:block;width:4px;height:56px;margin:24px auto;border-radius:4px;background:#cbd5e1;box-shadow:0 0 0 1px #94a3b81f;transition:background .16s ease,transform .16s ease}.panel-resizer:hover:before,.panel-resizer:focus-visible:before,.review-layout.is-resizing .panel-resizer:before{background:#2563eb14}.panel-resizer:hover span,.panel-resizer:focus-visible span,.review-layout.is-resizing .panel-resizer span{background:#2563eb;transform:scaleY(1.12)}body.is-resizing-panels{cursor:col-resize;-webkit-user-select:none;user-select:none}.sticky-result{position:sticky;top:18px;min-height:680px}label{display:block;color:#334155;font-weight:700;font-size:13px}select,textarea,input{width:100%;margin-top:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;outline:none}select,input{height:42px;padding:0 12px}textarea{min-height:240px;padding:14px;resize:vertical;line-height:1.65}.medium-editor{min-height:150px}.small-editor{min-height:95px}.rule-description-editor.compact{min-height:62px;height:62px}.textarea-label{margin-top:16px}.upload-strip,.tip-box,.error-box{margin-top:14px;display:flex;align-items:center;gap:10px;border-radius:8px;padding:12px 14px;font-size:13px}.upload-strip{width:fit-content;max-width:100%;color:#475569;background:#f1f5f9}.file-upload{cursor:pointer}.file-upload input{display:none}.action-row,.mini-actions,.review-submit-row{margin-top:16px;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.empty-table,.empty-result{min-height:150px;display:grid;place-items:center;align-content:center;gap:10px;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;padding:18px}.rules-table-wrap{margin-top:14px;overflow:auto;border:1px solid #d9e2ee;border-radius:8px}.rules-table{width:100%;border-collapse:collapse;min-width:940px;background:#fff}.rules-table th,.rules-table td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;font-size:13px}.rules-table th{background:#f1f5f9;color:#334155}.rules-table textarea{min-height:74px;margin-top:0}.rules-table input{margin-top:0}.icon-button{border:0;color:#991b1b;background:#fee2e2;width:34px;height:34px;border-radius:8px}.saved-rule-toolbar,.saved-rule-actions,.panel-actions,.modal-input-actions,.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.saved-rule-toolbar{margin-bottom:16px}.saved-rule-toolbar h3{margin-bottom:4px}.saved-rule-toolbar span{color:#64748b;font-size:13px}.current-rules-table{margin-top:16px}.category-chip{display:inline-block;padding:4px 9px;color:#155eef;background:#eaf1ff;border-radius:999px;font-size:12px;font-weight:700}.editable-rules-table td:first-child{min-width:120px}.editable-rules-table td:nth-child(2){min-width:230px}.editable-rules-table td:nth-child(3){min-width:240px}.editable-rules-table td:nth-child(4){min-width:300px}.editable-rules-table select+select,.editable-rules-table select+textarea{margin-top:8px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#0f172a8f}.rule-modal{width:min(1380px,96vw);max-height:92vh;overflow:auto;padding:24px;background:#fff;border-radius:8px;box-shadow:0 30px 80px #0f172a47}.login-modal{width:min(460px,94vw);padding:24px;background:#fff;border-radius:8px;box-shadow:0 30px 80px #0f172a47}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.modal-header h2{margin-bottom:6px}.modal-header p{margin-bottom:0;color:#64748b}.modal-close{width:38px;height:38px;border:0;border-radius:8px;background:#eef2f7}.code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.code-row input{margin-top:8px}.code-row button{align-self:end;white-space:nowrap}.auth-code-tip{margin-top:12px;padding:10px 12px;color:#155eef;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;font-size:13px;font-weight:700}.remember-row{margin-top:14px;display:inline-flex;align-items:center;gap:8px;font-weight:700}.remember-row input{width:16px;height:16px;margin-top:0}.modal-grid{display:grid;grid-template-columns:minmax(320px,.72fr) minmax(620px,1.28fr);gap:18px}.modal-input-panel,.modal-table-panel{padding:18px;border:1px solid #d9e2ee;border-radius:8px;background:#f8fafc}.modal-source-editor{min-height:170px;margin-top:12px}.parse-scope-panel{position:relative;margin-top:16px;padding:14px;border:1px solid #d9e2ee;border-radius:8px;background:#fff}.parse-scope-title{display:inline-flex;align-items:center;margin-bottom:12px;padding:4px 9px;color:#155eef;border-radius:999px;background:#eaf1ff;font-size:12px;font-weight:800}.parse-input-section{padding:0 0 18px;border:0;background:transparent}.parse-input-section+.parse-input-section{margin-top:18px}.requirement-section{position:relative}.requirement-section:before{content:"";position:absolute;top:-18px;left:18px;width:2px;height:18px;background:#bfdbfe}.parse-input-heading strong,.parse-input-heading span{display:block}.parse-input-heading strong{color:#334155;font-size:13px}.parse-input-heading span{margin-top:4px;color:#64748b;font-size:12px;line-height:1.5}.parse-input-heading em{color:#dc2626;font-style:normal}.parse-requirement-editor{min-height:112px;margin-top:12px}.uploaded-file-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-top:12px;padding:10px 38px 10px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff}.uploaded-file-icon{position:relative;display:grid;place-items:center;width:48px;height:52px;color:#475569;border-radius:6px;background:#fff;box-shadow:0 3px 12px #0f172a1a}.uploaded-file-icon.word{color:#2563eb}.uploaded-file-icon.csv{color:#15803d}.uploaded-file-icon.json{color:#b45309}.uploaded-file-icon.md,.uploaded-file-icon.txt{color:#475569}.uploaded-file-icon span{position:absolute;right:3px;bottom:3px;padding:1px 3px;color:#fff;border-radius:3px;background:#334155;font-size:7px;font-weight:900;line-height:1.2}.uploaded-file-info{min-width:0}.uploaded-file-info strong,.uploaded-file-info span{display:block}.uploaded-file-info strong{overflow:hidden;color:#1e3a8a;text-overflow:ellipsis;white-space:nowrap}.uploaded-file-info span{margin-top:4px;color:#64748b;font-size:12px}.remove-uploaded-file{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:24px;height:24px;padding:0;color:#fff;border:2px solid #ffffff;border-radius:50%;background:#dc2626;box-shadow:0 3px 10px #dc26264d}.remove-uploaded-file:hover{background:#b91c1c}.modal-input-actions,.modal-footer{margin-top:16px;justify-content:flex-end}.upload-action-row{margin-top:10px}.parse-action-row{margin-top:16px;padding-top:0}.generate-layout{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr);gap:18px;align-items:start}.generate-control-grid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px}.generate-output-panel{min-width:0}.generate-result{min-height:420px}.sample-grid{display:grid;gap:12px}.sample-grid article{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:14px;padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.sample-icon{display:grid;place-items:center;width:42px;height:42px;color:#155eef;background:#eaf1ff;border-radius:8px}.sample-grid strong,.sample-grid span{display:block}.sample-grid span{margin-top:5px;color:#64748b;font-size:13px}.sample-grid p{margin:8px 0 0;color:#475569;line-height:1.6}.result-summary{color:#334155;line-height:1.7;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.review-result-panel{min-height:0}.review-result-sections{display:grid;gap:16px}.result-block{padding:16px;border:1px solid #d9e2ee;border-radius:8px;background:#fff}.result-block-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.result-block-title h4{margin:0;color:#172033;font-size:16px}.result-block-title span{color:#64748b;font-size:13px}.result-placeholder{margin-top:16px;padding:16px;color:#64748b;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;text-align:center}.correction-list{display:grid;gap:12px;max-height:340px;overflow:auto;padding-right:4px}.correction-card{padding:14px;border:1px solid #d9e2ee;border-radius:8px;background:#fff}.correction-card p{margin:8px 0 0;color:#475569;line-height:1.6}.correction-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.correction-head span{color:#155eef;background:#eaf1ff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800}.correction-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:8px}.correction-table{width:100%;min-width:980px;border-collapse:collapse;background:#fff}.correction-table th,.correction-table td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;color:#334155;font-size:13px;line-height:1.55}.correction-table th{color:#172033;background:#f1f5f9;font-weight:800}.correction-table th:first-child,.correction-table td:first-child{width:70px;text-align:center}.correction-table tr:last-child td{border-bottom:0}.ai-result{white-space:pre-wrap;margin:16px 0 0;padding:16px;min-height:220px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#172033;line-height:1.7;font-family:Microsoft YaHei,PingFang SC,Arial,sans-serif}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.feature-grid strong,.feature-grid span{display:block}.feature-grid strong{margin-top:10px}.feature-grid span{margin-top:6px;color:#64748b;line-height:1.6}.rule-list,.archive-list,.task-list{display:grid;gap:12px}.rule-item{width:100%;text-align:left;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:14px}.rule-item.active{border-color:#155eef;background:#eaf1ff}.rule-item strong,.rule-item span{display:block}.rule-item span{margin-top:5px;color:#64748b;font-size:13px}.archive-list article,.task-list article{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:16px}.archive-list article{display:grid;grid-template-columns:1fr auto;gap:12px}.archive-list strong,.archive-list span,.task-list strong,.task-list span{display:block}.archive-list span,.task-list span{margin-top:5px;color:#64748b;font-size:13px}.archive-list p{margin:8px 0 0;color:#475569}.mini-actions{align-content:start;margin-top:0}.mini-actions button{border:0;border-radius:8px;padding:8px 10px;display:inline-flex;align-items:center;gap:6px}.task-list article{display:flex;justify-content:space-between;gap:18px}.task-list em{flex:0 0 auto;color:#155eef;font-style:normal;font-weight:800}.subscription-page{display:grid;gap:18px}.subscription-status-band{min-height:150px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-top:1px solid #d9e2ee;border-bottom:1px solid #d9e2ee;background:#ffffff9e}.subscription-status-band h2{margin-bottom:8px;font-size:28px}.subscription-status-band p:last-child{max-width:700px;margin-bottom:0;color:#64748b}.subscription-badge{min-width:180px;padding:14px 16px;display:flex;align-items:center;gap:12px;color:#92400e;border:1px solid #fde68a;border-radius:8px;background:#fffbeb}.subscription-badge.active{color:#047857;border-color:#a7f3d0;background:#ecfdf5}.subscription-badge small,.subscription-badge strong{display:block}.subscription-badge small{margin-bottom:3px;font-size:12px;font-weight:600}.subscription-summary-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:18px}.subscription-plan-panel,.subscription-account-panel,.subscription-payment-panel,.subscription-history-panel{padding:22px}.subscription-price{margin:24px 0 18px;display:flex;align-items:baseline;gap:8px}.subscription-price strong{font-size:38px;color:#0f766e}.subscription-price span{color:#64748b;font-weight:700}.subscription-benefits{margin:0 0 24px;padding:0;display:grid;gap:11px;list-style:none}.subscription-benefits li{display:flex;align-items:center;gap:9px;color:#334155}.subscription-benefits svg{color:#059669}.subscription-cta{width:100%}.subscription-account-list,.payment-order-list{margin:16px 0 0}.subscription-account-list div,.payment-order-list div{min-height:47px;display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:16px;border-bottom:1px solid #e2e8f0}.subscription-account-list dt,.payment-order-list dt{color:#64748b}.subscription-account-list dd,.payment-order-list dd{margin:0;color:#172033;font-weight:700;overflow-wrap:anywhere}.subscription-payment-panel{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:center}.payment-details .secondary-action{margin-top:18px}.payment-empty-copy{min-height:170px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;color:#64748b}.payment-empty-copy strong{color:#172033}.payment-qr-area{min-height:286px;display:grid;justify-items:center;align-content:center;gap:10px;border-left:1px solid #e2e8f0}.payment-qr-area img,.payment-qr-placeholder{width:240px;height:240px;border:1px solid #d9e2ee;border-radius:8px;background:#fff}.payment-qr-area img{padding:8px;object-fit:contain}.payment-qr-placeholder{display:grid;place-items:center;align-content:center;gap:10px;color:#94a3b8;background:#f8fafc}.payment-qr-area small{max-width:260px;color:#64748b;text-align:center}.subscription-table-wrap{margin-top:16px;overflow-x:auto}.subscription-table-wrap table{width:100%;border-collapse:collapse;min-width:880px}.subscription-table-wrap th,.subscription-table-wrap td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:middle}.subscription-table-wrap th{color:#64748b;background:#f8fafc;font-size:13px}.order-number{max-width:220px;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:12px}.payment-status{display:inline-flex;padding:4px 8px;color:#92400e;border-radius:6px;background:#fef3c7;white-space:nowrap}.payment-status.paid,.payment-status.success,.payment-status.trade_success,.payment-status.completed{color:#047857;background:#d1fae5}.payment-status.closed,.payment-status.cancelled,.payment-status.canceled,.payment-status.expired,.payment-status.failed{color:#991b1b;background:#fee2e2}@media(max-width:1180px){.review-layout,.library-layout,.generate-layout,.hero-panel{grid-template-columns:1fr}.review-layout{gap:18px}.panel-resizer{display:none}.sticky-result{position:static}.metric-row,.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-grid,.generate-control-grid,.subscription-summary-grid,.subscription-payment-panel{grid-template-columns:1fr}.payment-qr-area{padding-top:22px;border-top:1px solid #e2e8f0;border-left:0}}@media(max-width:760px){.app-shell{display:block}.sidebar{width:auto;height:auto;position:static;flex:none;overflow:visible;border-right:0;border-bottom:1px solid #d9e2ee}.subscription-status-band{padding:22px;align-items:flex-start;flex-direction:column}.subscription-badge{width:100%}.subscription-account-list div,.payment-order-list div{grid-template-columns:1fr;gap:4px;padding:10px 0}.main{padding:18px}.topbar,.panel-title,.task-list article,.archive-list article{align-items:stretch;grid-template-columns:1fr;flex-direction:column}.metric-row,.feature-grid{grid-template-columns:1fr}h1{font-size:24px}h2{font-size:27px}.hero-visual{display:none}.modal-backdrop{padding:8px}.rule-modal{width:100%;max-height:96vh;padding:16px}.saved-rule-actions,.panel-actions,.modal-input-actions,.modal-footer{width:100%}.saved-rule-actions button,.panel-actions button,.modal-input-actions button,.modal-input-actions label,.modal-footer button{flex:1 1 auto}}
