:root{color-scheme:light;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#14231b;background:#e9eee9;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #14231b;--muted: #6f7d73;--line: #dce5dd;--panel: #fffdf8;--panel-green: #edf7f1;--green: #2f6f4e;--green-dark: #1e4d36;--blue: #2f5f88;--blue-soft: #e7f0f8;--amber-soft: #fff2d8;--shadow: 0 18px 42px rgba(25, 45, 32, .12)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#15271d1f,#e9eee9f5),radial-gradient(circle at top,rgba(47,111,78,.18),transparent 38%),#e9eee9}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(47,95,136,.32);outline-offset:2px}.mobile-shell{width:100%;height:100vh;overflow:hidden}.phone-frame{position:relative;display:flex;width:100%;height:100%;flex-direction:column;overflow:hidden;background:#f7f5ef}.content-area{flex:1;overflow-y:auto;display:flex;flex-direction:column}.phone-frame.login-frame{background:linear-gradient(135deg,#eef8f2,#dfeee4)}.login-screen{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;padding:24px 16px;background:transparent}.login-brand{text-align:center;margin-bottom:24px}.login-brand h1{margin:0;font-size:28px;line-height:1.2;color:#163826;font-weight:700}.login-mark{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);display:flex;align-items:center;justify-content:center;color:#fff}.login-card{width:100%;max-width:320px;display:flex;flex-direction:column;gap:12px;padding:18px;background:#ffffffeb;border:1px solid rgba(47,111,78,.12);border-radius:18px;box-shadow:0 20px 40px #16382614;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.login-card label{display:flex;flex-direction:column;gap:6px}.login-card label span{font-size:13px;color:#355845;font-weight:600}.login-card input{padding:10px 14px;border:2px solid #d7e7dc;border-radius:12px;font-size:16px;transition:all .2s;background:#fff;color:#163826}.login-card input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px #2f6f4e1f}.password-field{position:relative}.password-field input{width:100%;padding-right:44px}.password-toggle{position:absolute;top:50%;right:8px;display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:10px;background:#e9f2ec;color:var(--green-dark);transform:translateY(-50%)}.login-error{color:#ef4444;font-size:14px}.login-button{width:100%;min-height:48px;padding:12px 20px;background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.app-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-start;gap:14px;padding:16px 12px;background:#14231b;color:#f8fbf7}.eyebrow{margin:0 0 4px;color:#7fa389;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}h1,h2,p{margin:0}h1{font-size:1.45rem;letter-spacing:0}h2{font-size:1.18rem;letter-spacing:0}.screen{flex:1;min-height:0;overflow-y:auto}.editor-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.card-title{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:16px}.card-title strong{flex:1}.card-title span{font-size:13px;color:var(--muted)}.avatar,.profile-avatar{display:grid;flex:0 0 auto;place-items:center;background:#dceee4;color:var(--green-dark)}.avatar-user{background:var(--green);color:#fff}.chat-list{display:grid;gap:14px;padding:12px 0;overflow-y:auto;flex:1;min-height:0}.qa-shell{display:flex;flex:1;min-height:0;flex-direction:column}.qa-shell .screen-qa{flex:1;min-height:0;padding-bottom:0}.quick-prompt-list{display:grid;gap:7px;margin-top:10px}.quick-prompt-list button{display:inline-flex;align-items:flex-start;gap:6px;border:0;border-radius:10px;font-size:.82rem;font-weight:800;line-height:1.45;padding:8px 9px;text-align:left;background:#edf7f1;color:#1e4d36}.quick-prompt-list button svg{flex:0 0 auto;margin-top:2px}.message{display:flex;align-items:flex-start;gap:9px}.message.user{justify-content:flex-end}.avatar{width:30px;height:30px;border-radius:9px;margin-top:3px}.bubble{max-width:82%;padding:13px 14px;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 10px 24px #202d2414}.message.assistant .bubble{border-top-left-radius:6px}.message.user .bubble{border-top-right-radius:6px;background:var(--green);color:#fff}.bubble p{line-height:1.72}.bubble small{display:block;margin-top:10px;color:#6d7b71;font-size:.76rem;line-height:1.5}.message.user small{color:#ffffffbd}.ai-checklist{display:grid;gap:7px;margin-top:10px}.ai-checklist span{display:inline-flex;align-items:flex-start;gap:6px;padding:7px 8px;border-radius:10px;background:var(--panel-green);color:var(--green-dark);font-size:.82rem;font-weight:700}.thinking{display:inline-flex;align-items:center;gap:5px;min-width:66px}.thinking span{width:7px;height:7px;border-radius:999px;animation:pulse 1s infinite ease-in-out;background:var(--green)}.type-cursor{display:inline-block;width:2px;height:1.1em;margin-left:2px;border-radius:999px;background:currentColor;vertical-align:-.16em;animation:cursor-blink .82s steps(2,start) infinite}.thinking span:nth-child(2){animation-delay:.12s}.thinking span:nth-child(3){animation-delay:.24s}.composer{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;padding:10px;border-top:1px solid var(--line);background:#fffdf8f5}input,textarea{width:100%;border:1px solid #cbd7ce;border-radius:14px;background:#fff;color:var(--ink)}input{min-height:46px;padding:0 13px}textarea{resize:vertical;min-height:150px;padding:12px;line-height:1.7}.composer button,.primary-button{padding:10px 16px;background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s}.primary-button:hover:not(:disabled){filter:brightness(.95);transform:translateY(-1px)}.primary-button:disabled{opacity:.5;cursor:not-allowed}.ghost-button{padding:10px 16px;background:#fff;color:var(--muted);border:1px solid var(--line);border-radius:10px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s}.ghost-button.active{background:var(--panel-green);border-color:var(--green);color:var(--green-dark)}.ghost-button:hover:not(:disabled){border-color:var(--green);color:var(--green)}.ghost-button.active:hover{background:var(--panel-green);border-color:var(--green);color:var(--green-dark)}.ghost-button:disabled{opacity:.5;cursor:not-allowed}.editor-card,.result-card,.list-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.card-title{display:flex;align-items:center;gap:8px;color:var(--green-dark)}.card-title span,.result-title{display:flex;align-items:center;gap:8px}.result-title{justify-content:space-between}.copy-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:5px;border:1px solid #cbd7ce;border-radius:999px;background:#fff;color:var(--green-dark);font-size:.8rem;font-weight:900;padding:6px 10px}.copy-button:disabled{cursor:not-allowed;opacity:.48}.action-row{display:grid;grid-template-columns:.8fr 1.2fr;gap:10px}.result-card{background:linear-gradient(180deg,#fffdf8,#f2f7f3)}.result-card.empty{background:#fffdf8}.result-card p{color:#26372d;line-height:1.8}.safe-note{display:flex;align-items:flex-start;gap:8px;padding:10px;border-radius:12px;background:var(--amber-soft);color:#755016;font-size:.84rem;font-weight:800}.profile-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;justify-content:space-between;align-items:center;margin-top:14px}.profile-identity{display:flex;min-width:0;align-items:center;gap:14px}.profile-avatar{width:60px;height:60px;border:0;border-radius:18px}.logout-button{display:inline-flex;min-height:38px;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;border:1px solid #d7e1d9;border-radius:999px;background:#fff;color:#365242;font-size:.82rem;font-weight:900;padding:8px 11px}.profile-card span{color:var(--muted)}.user-info-card{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fffdf8;box-shadow:var(--shadow)}.user-info-card div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.86rem}.user-info-card strong{color:var(--ink);font-size:.95rem}.profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}.stat-button{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;text-align:center}.stat-button strong{display:block;font-size:24px;color:var(--ink)}.stat-button small{font-size:13px;color:var(--muted)}.profile-notice{background:var(--panel-green);border-radius:12px;padding:12px;font-size:13px;color:var(--green-dark);display:flex;align-items:center;gap:8px;margin-top:12px}.history-row{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px;cursor:pointer;transition:all .2s}.history-row:hover{background:#fffdf8}.history-type-tag{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:4px 10px;border-radius:999px;background:var(--panel-green);color:var(--green-dark);font-size:.72rem;font-weight:800;margin-right:8px;flex-shrink:0}.history-row>span:not(.history-type-tag){display:grid;gap:3px;flex:1;min-width:0;text-align:left}.history-row>span:not(.history-type-tag) strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bottom-nav{flex-shrink:0;display:flex;gap:0;padding:0;border-top:1px solid var(--line);background:#fffdf8f5;height:56px}.bottom-nav::-webkit-scrollbar{display:none}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:0;background:transparent;color:#6c7b70;font-size:10px;font-weight:600;flex:1;padding:6px 0;min-width:0}.bottom-nav button.active{color:var(--green-dark)}.bottom-nav button .tab-icon{stroke-width:1.5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@keyframes pulse{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes cursor-blink{0%,45%{opacity:1}46%,to{opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(max-width:520px){.mobile-shell{display:block;padding:0}.phone-frame{width:100%;min-height:100vh;max-height:none;border:0;border-radius:0}}.primary-button:disabled svg{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.import-tabs{display:flex;gap:8px;padding:4px;background:#fffdf8;border-radius:12px;border:1px solid var(--line)}.import-tabs button{flex:1;padding:10px;background:transparent;border:none;border-radius:8px;font-size:14px;color:var(--muted);cursor:pointer;transition:all .2s}.import-tabs button.active{background:#fff;color:var(--green-dark);font-weight:600;box-shadow:0 1px 3px #0000001a}.import-actions-row{display:flex;gap:8px}.import-upload-box{position:relative;display:flex;align-items:center;gap:16px;padding:20px;border:2px dashed #cbd7ce;border-radius:12px;cursor:pointer;transition:all .2s}.import-upload-box:hover{border-color:var(--green);background:var(--panel-green)}.import-upload-box input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-icon{width:48px;height:48px;border-radius:12px;background:var(--panel-green);color:var(--green-dark);display:flex;align-items:center;justify-content:center}.upload-info{flex:1;display:flex;flex-direction:column;gap:4px}.upload-info strong{font-size:15px;color:var(--ink)}.upload-info span{font-size:13px;color:var(--muted)}.upload-btn{padding:8px 16px;background:var(--green);color:#fff;border-radius:999px;font-size:13px;font-weight:600}.import-preview{display:flex;flex-direction:column;gap:12px}.preview-header{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#fffdf8;border-radius:8px}.preview-stats{display:flex;gap:12px}.stat-item{padding:8px 16px;background:#fffdf8;border-radius:8px;display:flex;flex-direction:column;gap:4px}.stat-item span{font-size:12px;color:var(--muted)}.stat-item strong{font-size:18px;color:var(--ink)}.preview-table-wrapper{overflow-x:auto}.status-badge{display:inline-flex;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600}.status-badge.idle{background:#fffdf8;color:var(--muted)}.status-badge.ready{background:var(--panel-green);color:var(--green-dark)}.status-badge.parsing,.status-badge.processing{background:var(--blue-soft);color:var(--blue)}.status-badge.imported{background:var(--panel-green);color:var(--green-dark)}.status-badge.warning{background:var(--amber-soft);color:#755016}.validate-actions{display:flex;align-items:center;gap:12px}.validate-content{display:flex;flex-direction:column;gap:16px}.validate-section{padding:16px;background:#fffdf8;border-radius:12px;display:flex;flex-direction:column;gap:12px}.section-title{font-weight:600;color:var(--ink)}.field-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.field-chip{padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:13px;text-align:left;cursor:pointer;transition:all .2s}.field-chip.matched{background:var(--panel-green);border-color:var(--green);color:var(--green-dark)}.quality-checks{display:flex;flex-direction:column;gap:8px}.check-item{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fff;border-radius:8px;font-size:13px}.check-item.pass{color:var(--green-dark)}.check-item.fail{color:#b91c1c}.import-history{display:flex;flex-direction:column;gap:8px}.history-item{padding:12px;background:#fffdf8;border-radius:8px;display:flex;flex-direction:column;gap:4px}.history-item strong{font-size:14px;color:var(--ink)}.history-item span{font-size:12px;color:var(--muted)}.analysis-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start}.analysis-filters label{display:flex;flex-direction:column;gap:8px;height:100%}.analysis-filters label span{font-size:13px;color:var(--muted);min-height:36px;line-height:1.4;display:flex;align-items:center}.analysis-filters input,.analysis-filters select{width:100%;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:#fff;box-sizing:border-box;margin-top:auto}.analysis-filters input:focus,.analysis-filters select:focus{outline:none;border-color:var(--green)}.filter-actions{grid-column:1 / -1;display:flex;gap:8px;justify-content:flex-end}.filter-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.summary-item{padding:12px;background:#fffdf8;border-radius:8px;display:flex;flex-direction:column;gap:4px}.summary-item span{font-size:11px;color:var(--muted)}.summary-item strong{font-size:16px;color:var(--ink)}.filter-chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fffdf8;border:1px solid var(--line);border-radius:999px;font-size:13px;cursor:pointer}.chip:hover{background:var(--panel-green)}.analysis-tabs{display:flex;gap:8px;margin-bottom:12px}.analysis-tabs button{flex:1;padding:10px;background:#fffdf8;border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer}.analysis-tabs button.active{background:#fff;border-color:var(--green);color:var(--green-dark);font-weight:600}.table-actions{display:flex;gap:8px;margin-bottom:12px}.result-table-wrapper{overflow-x:auto;border-radius:8px;border:1px solid var(--line)}.result-table{width:100%;border-collapse:collapse;font-size:13px;min-width:800px}.result-table thead{background:#fffdf8}.result-table th{padding:10px 12px;text-align:left;font-weight:600;color:var(--ink);border-bottom:1px solid var(--line);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}.result-table th:first-child,.result-table td:first-child{position:sticky;left:0;background:inherit;z-index:1}.result-table thead th:first-child{background:#fffdf8;z-index:2}.result-table tbody tr:hover td:first-child{background:#fffdf8}.result-table th:hover{background:var(--panel-green)}.result-table td{padding:10px 12px;border-bottom:1px solid var(--line);color:var(--ink)}.result-table tbody tr{cursor:pointer;transition:background .2s}.result-table tbody tr:hover{background:#fffdf8}.status-tag{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap}.status-tag.pending{background:var(--amber-soft);color:#755016}.status-tag.done{background:var(--panel-green);color:var(--green-dark)}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:13px;color:var(--muted)}.page-buttons{display:flex;gap:8px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}@media(max-width:768px){.stats-grid{grid-template-columns:1fr}}.stats-panel{background:#fffdf8;border-radius:12px;padding:16px;overflow:hidden}.stats-panel.full-width{grid-column:1 / -1}.panel-title{font-weight:600;color:var(--ink);margin-bottom:12px}.bar-list{display:flex;flex-direction:column;gap:8px}.bar-row{display:grid;grid-template-columns:80px 1fr 60px;align-items:center;gap:8px}.bar-label{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:8px;background:var(--line);border-radius:4px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--green-dark));transition:width .3s}.bar-value{font-size:13px;color:var(--ink);text-align:right}.legend-list{display:flex;flex-direction:column;gap:8px}.legend-row{display:flex;align-items:center;gap:12px}.legend-dot{width:12px;height:12px;border-radius:3px}.legend-info{flex:1;display:flex;flex-direction:column;gap:2px}.legend-info strong{font-size:13px;color:var(--ink)}.legend-info small{font-size:11px;color:var(--muted)}.pie-chart-container{display:flex;justify-content:center;margin-bottom:16px}.pie-chart{width:100%;max-width:200px;height:200px}.top-list{display:flex;flex-direction:column;gap:8px}.top-item{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border-radius:8px;border:1px solid var(--line)}.top-rank{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--panel-green);color:var(--green-dark);border-radius:50%;font-weight:600;font-size:14px}.top-info{flex:1;display:flex;flex-direction:column;gap:4px}.top-info strong{font-size:14px;color:var(--ink)}.top-info span{font-size:12px;color:var(--muted)}.top-area{font-size:16px;font-weight:600;color:var(--green-dark)}.empty-stats{text-align:center;padding:40px 20px;color:var(--muted);font-size:14px}.flow-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}@media(max-width:768px){.flow-stats-grid{grid-template-columns:1fr}}.flow-stat-card{background:#fff;border-radius:10px;padding:16px;border:1px solid var(--line)}.flow-type{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--panel-green)}.flow-metrics{display:flex;justify-content:space-around;gap:12px}.flow-metric{display:flex;flex-direction:column;align-items:center;gap:4px}.flow-metric span{font-size:12px;color:var(--muted)}.flow-metric strong{font-size:18px;color:var(--ink)}
