@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap";:root{--bg:#fff;--bg-subtle:#f8f9fa;--bg-hover:#f1f3f5;--border:#e9ecef;--border-strong:#dee2e6;--text:#212529;--text-secondary:#495057;--text-muted:#868e96;--accent:#0f3e22;--accent-light:#e8f5e9;--red:#e03131;--red-light:#fff5f5;--amber:#e67700;--amber-light:#fff9db;--green:#2b8a3e;--green-light:#ebfbee;--shadow-sm:0 1px 3px #0000000a;--shadow-md:0 4px 12px #0000000f;--radius:8px;--transition:.15s ease}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;scroll-behavior:smooth;font-size:15px}body{background:var(--bg-subtle);color:var(--text);word-break:break-word;min-height:100vh;font-family:Inter,Noto Sans Thai,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.6}.bg-grid,.bg-glow{display:none}.app{flex-direction:column;min-height:100vh;display:flex;position:relative}.app-header{z-index:50;background:var(--bg);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 24px;display:flex;position:sticky;top:0}.header-left{align-items:center;gap:16px;display:flex}.logo-container{flex-direction:column;display:flex}.logo-text{color:var(--text);letter-spacing:-.02em;font-size:1.2rem;font-weight:800}.logo-sub{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-top:1px;font-size:.7rem;font-weight:500}.header-actions{align-items:center;gap:16px;display:flex}.btn-menu{border-radius:var(--radius);background:var(--bg);border:1px solid var(--border);width:36px;height:36px;color:var(--text-secondary);cursor:pointer;transition:all var(--transition);justify-content:center;align-items:center;display:flex}.btn-menu:hover{background:var(--bg-hover);color:var(--text)}.btn-new-session{border:1px solid var(--border);background:var(--text);color:var(--bg);cursor:pointer;transition:all var(--transition);border-radius:6px;align-items:center;gap:6px;padding:8px 16px;font-family:inherit;font-size:.85rem;font-weight:600;display:flex}.btn-new-session:hover{opacity:.85}.export-group-header{border-right:1px solid var(--border);gap:8px;padding-right:16px;display:flex}.btn-export{cursor:pointer;transition:all var(--transition);text-transform:uppercase;letter-spacing:.05em;border:1px solid #0000;border-radius:6px;align-items:center;gap:6px;padding:6px 10px;font-family:inherit;font-size:.75rem;font-weight:700;display:flex}.btn-export.docx{color:#1864ab;background:#e7f5ff;border-color:#a5d8ff}.btn-export.docx:hover{background:#d0ebff}.btn-export.xlsx{color:#2b8a3e;background:#ebfbee;border-color:#b2f2bb}.btn-export.xlsx:hover{background:#d3f9d8}.btn-export.pptx{color:#d9480f;background:#fff4e6;border-color:#ffd8a8}.btn-export.pptx:hover{background:#ffe8cc}.btn-export.md{color:#495057;background:#f8f9fa;border-color:#dee2e6}.btn-export.md:hover{background:#e9ecef}.app-main{flex:1;width:100%;max-width:800px;margin:0 auto;padding:32px 24px}.upload-section{flex-direction:column;gap:24px;max-width:600px;margin:40px auto;display:flex}.upload-zone{border:2px dashed var(--border-strong);border-radius:var(--radius);background:var(--bg);cursor:pointer;min-height:220px;transition:all var(--transition);justify-content:center;align-items:center;padding:32px;display:flex}.upload-zone:hover{border-color:var(--accent);background:var(--accent-light)}.upload-zone.drag-over{border-color:var(--accent);background:var(--accent-light);border-style:solid}.upload-zone.disabled{opacity:.5;pointer-events:none}.upload-zone-content{text-align:center;flex-direction:column;align-items:center;gap:12px;display:flex}.upload-icon{background:var(--accent-light);width:52px;height:52px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;display:flex}.upload-title{color:var(--text);font-size:1.15rem;font-weight:600}.upload-subtitle{color:var(--text-muted);font-size:.85rem}.upload-formats{gap:6px;margin-top:4px;display:flex}.format-badge{color:var(--text-muted);background:var(--bg-subtle);text-transform:uppercase;letter-spacing:.04em;border-radius:4px;padding:3px 10px;font-size:.7rem;font-weight:600}.upload-file-info{flex-direction:column;gap:4px;display:flex}.upload-file-name{color:var(--green);font-size:1rem;font-weight:600}.upload-file-size{color:var(--text-muted);font-size:.8rem}.upload-hint{color:var(--text-muted);font-size:.75rem;font-style:italic}.upload-error{color:#fff;background:var(--red);border-radius:6px;margin-top:8px;padding:10px 14px;font-size:.8rem}.status-indicator{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:24px;animation:.3s fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.status-pipeline{flex-direction:column;display:flex}.pipeline-step{align-items:flex-start;gap:16px;padding:10px 0;display:flex;position:relative}.pipeline-step .pipeline-connector{background:var(--border);width:2px;height:16px;position:absolute;top:-6px;left:15px}.pipeline-step .pipeline-connector.filled{background:var(--text)}.pipeline-node-circle{background:var(--bg);border:2px solid var(--border);width:32px;height:32px;color:var(--text-muted);transition:all var(--transition);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.75rem;font-weight:700;display:flex}.pipeline-step.complete .pipeline-node-circle{background:var(--text);border-color:var(--text);color:#fff}.pipeline-step.active .pipeline-node-circle{border-color:var(--accent);color:var(--accent)}.pipeline-step.error .pipeline-node-circle{background:var(--red);border-color:var(--red);color:#fff}.pipeline-spinner{border:2px solid #0000;border-top-color:var(--accent);border-right-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.pipeline-label{align-items:flex-start;gap:10px;min-height:32px;padding-top:5px;display:flex}.pipeline-step-icon{font-size:1rem;line-height:1.4}.pipeline-step-label{color:var(--text-secondary);font-size:.85rem;font-weight:600}.pipeline-step.active .pipeline-step-label,.pipeline-step.complete .pipeline-step-label{color:var(--text)}.pipeline-step-desc{color:var(--text-muted);margin-top:2px;font-size:.78rem}.status-detail{background:var(--bg-subtle);border-left:3px solid var(--accent);color:var(--text-secondary);border-radius:0 6px 6px 0;margin-top:12px;padding:12px 14px;font-size:.82rem}.status-detail.error{background:var(--red-light);border-left-color:var(--red);color:var(--red)}.dashboard{flex-direction:column;gap:0;animation:.4s fadeIn;display:flex}.dash-topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;padding-bottom:20px;display:flex}.dash-meeting-title{color:var(--text);font-size:1.6rem;font-weight:700;line-height:1.25}.dash-date{color:var(--text-muted);margin-top:4px;font-size:.78rem}.dash-attendees{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:8px;margin-bottom:20px;padding-bottom:20px;display:flex}.attendee-chip{background:var(--bg-subtle);border:1px solid var(--border);color:var(--text);border-radius:20px;align-items:center;gap:8px;padding:5px 12px 5px 5px;font-size:.82rem;font-weight:500;display:inline-flex}.attendee-avatar{background:var(--accent);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:.7rem;font-weight:700;display:flex}.dash-summary{background:var(--accent-light);border-radius:var(--radius);border-left:4px solid var(--accent);margin-bottom:28px;padding:20px}.dash-summary p{color:var(--text);font-size:.95rem;line-height:1.7}.dash-section{margin-bottom:28px}.section-heading{color:var(--text);border-bottom:2px solid var(--text);align-items:center;gap:8px;margin-bottom:16px;padding-bottom:12px;font-size:.95rem;font-weight:700;display:flex}.section-heading-risk{border-bottom-color:var(--amber)}.section-icon{background:var(--bg-subtle);width:24px;height:24px;color:var(--text-secondary);border-radius:4px;justify-content:center;align-items:center;font-size:.75rem;font-weight:700;display:flex}.section-count{background:var(--text);color:#fff;border-radius:12px;justify-content:center;align-items:center;min-width:24px;height:24px;margin-left:auto;padding:0 8px;font-size:.72rem;font-weight:700;display:flex}.section-count.risk{background:var(--amber)}.section-count.warning{background:var(--red)}.decision-list{flex-direction:column;gap:12px;display:flex}.decision-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);transition:box-shadow var(--transition);padding:16px}.decision-card:hover{box-shadow:var(--shadow-md)}.decision-card h3{color:var(--text);margin-bottom:6px;font-size:.95rem;font-weight:600}.decision-rationale{color:var(--text-secondary);font-size:.85rem;line-height:1.6}.decision-window{background:var(--green-light);color:var(--green);border-radius:4px;margin-top:8px;padding:3px 10px;font-size:.72rem;font-weight:600;display:inline-block}.table-wrap{border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}.action-table{border-collapse:collapse;text-align:left;width:100%}.action-table th{text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);background:var(--bg-subtle);border-bottom:2px solid var(--border-strong);white-space:nowrap;padding:12px 16px;font-size:.8rem;font-weight:600}.action-table td{border-bottom:1px solid var(--border);vertical-align:top;padding:14px 16px}.action-table tr:last-child td{border-bottom:none}.col-num{width:40px;color:var(--text-muted);font-weight:600}.col-task{color:var(--text);min-width:200px;font-weight:500}.col-owner{min-width:120px}.col-deadline{min-width:100px;color:var(--text-secondary);font-size:.85rem}.col-context{color:var(--text-muted);min-width:180px;font-size:.85rem}.owner-tag{background:var(--accent-light);color:var(--accent);border-radius:4px;padding:3px 10px;font-size:.75rem;font-weight:600;display:inline-block}.owner-tag.unassigned{background:var(--amber-light);color:var(--amber)}.risk-list{flex-direction:column;gap:12px;display:flex}.risk-card{background:var(--amber-light);border-radius:var(--radius);border:1px solid #ffd43b;padding:16px}.risk-card h3{color:var(--text);margin-bottom:6px;font-size:.9rem;font-weight:600}.risk-card p{color:var(--text-secondary);font-size:.85rem;line-height:1.6}.risk-impact{margin-top:8px;font-weight:600;color:var(--red)!important}.topic-list{flex-direction:column;gap:8px;display:flex}.topic-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);overflow:hidden}.topic-title{color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--transition);padding:14px 16px;font-size:.9rem;font-weight:600;list-style:none}.topic-title:hover{background:var(--bg-subtle)}.topic-title::marker{display:none}.topic-title::-webkit-details-marker{display:none}.topic-item[open] .topic-title{border-bottom:1px solid var(--border);background:var(--bg-subtle)}.topic-body{padding:14px 16px}.topic-body p{color:var(--text-secondary);font-size:.85rem;line-height:1.7}.topic-nuance{border-top:1px solid var(--border);margin-top:10px;padding-top:10px;font-style:italic}.open-list{flex-direction:column;gap:8px;padding:0;list-style:none;display:flex}.open-list li{color:var(--text);background:var(--red-light);border-radius:var(--radius);padding:12px 16px 12px 36px;font-size:.88rem;line-height:1.5;position:relative}.open-list li:before{content:"?";color:var(--red);font-size:.8rem;font-weight:700;position:absolute;top:12px;left:14px}.dash-transcript{border:1px solid var(--border);border-radius:var(--radius);margin-top:20px;overflow:hidden}.dash-transcript summary{color:var(--text-muted);cursor:pointer;background:var(--bg);-webkit-user-select:none;user-select:none;padding:14px 16px;font-size:.85rem;font-weight:600}.dash-transcript summary:hover{background:var(--bg-subtle)}.dash-transcript pre{color:var(--text-secondary);background:var(--bg-subtle);white-space:pre-wrap;word-break:break-word;border-top:1px solid var(--border);max-height:400px;padding:16px;font-size:.8rem;line-height:1.7;overflow-y:auto}.app-footer{text-align:center;border-top:1px solid var(--border);background:var(--bg);padding:16px 24px}.app-footer p{color:var(--text-muted);font-size:.72rem}@media (width<=768px){.app-header{padding:10px 16px}.app-main{padding:20px 16px}.dash-meeting-title{font-size:1.3rem}.logo-sub{display:none}}.sidebar-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;opacity:0;pointer-events:none;transition:opacity var(--transition);background:#0006;position:fixed;inset:0}.sidebar-backdrop.open{opacity:1;pointer-events:auto}.history-sidebar{background:var(--bg);width:320px;box-shadow:var(--shadow-md);z-index:101;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;transform:translate(-100%)}.history-sidebar.open{transform:translate(0)}.history-header{border-bottom:1px solid var(--border);background:var(--bg-subtle);z-index:10;justify-content:space-between;align-items:center;padding:20px;display:flex;position:sticky;top:0}.history-header h3{color:var(--text);font-size:1rem;font-weight:700}.btn-icon{color:var(--text-muted);cursor:pointer;transition:all var(--transition);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:6px;display:flex}.btn-icon:hover{background:var(--border);color:var(--text)}.history-list{flex-direction:column;gap:8px;padding:12px;display:flex}.history-status,.history-error{color:var(--text-muted);text-align:center;padding:16px;font-size:.85rem}.history-error{color:var(--accent-rose)}.history-item{border-radius:var(--radius-sm);text-align:left;cursor:pointer;transition:all var(--transition-fast);background:0 0;border:1px solid #0000;flex-direction:column;gap:6px;padding:16px;display:flex}.history-item:hover{background:var(--bg-primary);border-color:var(--border-glass)}.history-item-title{color:var(--text-primary);font-family:Inter,Sarabun,sans-serif;font-size:.95rem;font-weight:600;line-height:1.3}.history-item-date{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.75rem}
