:root{color:#101828;font-synthesis:none;text-rendering:optimizelegibility;background:#f2f4f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html{min-width:320px;min-height:100%}body{background:#f2f4f7;min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}#root{min-height:100vh}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.inbox-page,.thread-page{width:min(1120px,100% - 32px);margin:0 auto;padding:48px 0 64px}.inbox-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px;display:flex}.eyebrow{letter-spacing:.12em;text-transform:uppercase;margin:0 0 6px;font-size:.8rem;font-weight:700}.inbox-header h1,.thread-page-header h1{margin:0;font-size:clamp(2rem,4vw,3rem)}.subtitle{color:#667085;margin:8px 0 0}.primary-button{color:#fff;background:#111827;border:0;border-radius:10px;padding:12px 18px;font-weight:700}.filter-panel{background:#fff;border:1px solid #e4e7ec;border-radius:14px;grid-template-columns:1fr 1fr auto;align-items:end;gap:16px;margin-bottom:20px;padding:18px;display:grid}.filter-panel label{gap:8px;font-weight:600;display:grid}.filter-panel input{color:#101828;background:#fff;border:1px solid #d0d5dd;border-radius:8px;width:100%;padding:10px 12px}.filter-panel input:focus{outline-offset:1px;border-color:#84adff;outline:2px solid #84adff}.checkbox-label{align-items:center;min-height:42px;gap:8px!important;display:flex!important}.checkbox-label input{width:auto}.thread-list{background:#fff;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden}.thread-row{color:#101828;text-align:left;background:#fff;border:0;border-bottom:1px solid #eaecf0;width:100%;padding:18px;display:block}.thread-row:last-child{border-bottom:0}.thread-row:hover{background:#f9fafb}.thread-row-unread{background:#f4f7ff}.thread-row-top{justify-content:space-between;gap:16px;display:flex}.thread-row-top span,.thread-participants,.thread-snippet,.thread-meta{color:#667085}.thread-participants{margin-top:7px;font-size:.92rem}.thread-snippet{margin-top:8px;line-height:1.5}.thread-meta{align-items:center;gap:12px;margin-top:12px;font-size:.88rem;display:flex}.unread-badge{color:#1d4ed8;background:#dbeafe;border-radius:999px;padding:3px 8px;font-weight:700}.pagination{justify-content:center;align-items:center;gap:18px;margin-top:22px;display:flex}.pagination button{color:#101828;background:#fff;border:1px solid #d0d5dd;border-radius:8px;padding:9px 14px}.state-card,.error-message,.success-message{border-radius:12px;padding:16px}.state-card{background:#fff;border:1px solid #e4e7ec}.error-message{color:#b42318;background:#fef3f2;margin-bottom:16px}.success-message{color:#027a48;background:#ecfdf3;margin-bottom:16px}.thread-page-header{gap:20px;margin-bottom:28px;display:grid}.secondary-button{color:#101828;background:#fff;border:1px solid #d0d5dd;border-radius:8px;width:fit-content;padding:10px 14px;font-weight:600}.message-list{gap:20px;display:grid}.message-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden}.message-header{border-bottom:1px solid #eaecf0;justify-content:space-between;gap:20px;padding:18px;display:flex}.message-header h2{margin:0 0 8px;font-size:1.1rem}.message-header p{color:#667085;margin:4px 0}.message-header time{color:#667085;white-space:nowrap}.message-subject{margin:0;padding:16px 18px 0}.attachment-badge{color:#c2410c;background:#fff7ed;border-radius:999px;width:fit-content;margin:14px 18px 0;padding:5px 10px;font-size:.85rem;font-weight:700}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:18px;font-family:inherit;line-height:1.6}.message-html{padding:18px;line-height:1.6;overflow-x:auto}.message-html img,.message-html table{max-width:100%}@media (width<=760px){.inbox-header,.message-header{flex-direction:column}.filter-panel{grid-template-columns:1fr}.thread-row-top{flex-direction:column;gap:6px}.primary-button{width:100%}.message-header time{white-space:normal}}@media (width<=760px){.thread-heading-row,.summary-card-header{flex-direction:column}.thread-heading-row .primary-button{width:100%}}.thread-heading-row{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.summary-card{background:#f5f8ff;border:1px solid #c7d7fe;border-radius:14px;margin-bottom:24px;padding:20px}.summary-card-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px;display:flex}.summary-card-header h2{margin:0;font-size:1.25rem}.summary-count{color:#1d4ed8;white-space:nowrap;background:#dbeafe;border-radius:999px;padding:5px 10px;font-size:.85rem;font-weight:700}.summary-text{color:#344054;white-space:pre-wrap;margin:0;line-height:1.7}@media (width<=760px){.thread-heading-row,.summary-card-header{flex-direction:column}.thread-heading-row .primary-button{width:100%}}.sales-opportunity-card{background:#fff;border:1px solid #d0d5dd;border-radius:14px;margin-bottom:24px;padding:20px}.sales-opportunity-card h2{margin:0 0 12px}.sales-opportunity-card p{margin:6px 0;line-height:1.6}.quotation-extraction-card{background:#fff;border:1px solid #d0d5dd;border-radius:14px;margin-bottom:24px;padding:20px}.quotation-extraction-card h2{margin:0 0 16px}.quotation-requirements-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 20px;display:grid}.quotation-requirements-grid p{margin:0;line-height:1.6}*{box-sizing:border-box}body{margin:0}.app-shell{background:#f5f7fb;min-height:100vh;display:flex}.sidebar{color:#fff;z-index:20;background:#0f172a;flex-direction:column;width:250px;min-height:100vh;display:flex;position:fixed;top:0;bottom:0;left:0}.sidebar-brand{border-bottom:1px solid #253047;align-items:center;gap:12px;padding:28px 22px;display:flex}.sidebar-brand strong{font-size:17px;display:block}.sidebar-brand span{color:#94a3b8;margin-top:3px;font-size:12px;display:block}.brand-icon{color:#fff;background:#2563eb;border-radius:11px;justify-content:center;align-items:center;width:42px;height:42px;font-weight:800;display:flex}.sidebar nav{flex:1;padding:20px 12px}.nav-item{color:#cbd5e1;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;width:100%;margin-bottom:5px;padding:13px 14px;font-size:14px;display:flex}.nav-item:hover{color:#fff;background:#1e293b}.nav-item.active{color:#fff;background:#2563eb}.nav-icon{text-align:center;width:22px;font-size:17px}.sidebar-bottom{border-top:1px solid #253047;padding:15px 12px 22px}.app-content{width:calc(100% - 250px);min-height:100vh;margin-left:250px}.dashboard-page{max-width:1500px;margin:auto;padding:42px 48px}.page-header{justify-content:space-between;align-items:flex-start;margin-bottom:35px;display:flex}.page-header h1{color:#0f172a;margin:5px 0 8px;font-size:36px}.system-online{color:#166534;background:#dcfce7;border-radius:999px;padding:9px 14px;font-size:13px;font-weight:700}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:42px;display:grid}.metric-card,.agent-card,.placeholder-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:24px}.metric-card span{color:#64748b;font-size:13px}.metric-card strong{color:#0f172a;margin:10px 0 6px;font-size:19px;display:block}.metric-card p{color:#64748b;margin:0;font-size:14px}.section-title{color:#0f172a;margin-bottom:18px;font-size:22px}.agent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.agent-card{position:relative}.agent-card h2{color:#0f172a;margin:16px 0 10px}.agent-card p{color:#64748b;min-height:76px;line-height:1.6}.agent-number{color:#2563eb;font-size:13px;font-weight:800}.workflow{color:#475569;background:#f1f5f9;border-radius:8px;margin:18px 0;padding:12px;font-size:12px}.login-page{background:linear-gradient(135deg,#0f172a,#172554);justify-content:center;align-items:center;min-height:100vh;padding:25px;display:flex}.login-card{background:#fff;border-radius:18px;width:100%;max-width:440px;padding:38px;box-shadow:0 25px 60px #00000040}.login-brand{align-items:center;gap:14px;margin-bottom:35px;display:flex}.login-brand h1{margin:0;font-size:21px}.login-brand p{color:#64748b;margin:4px 0 0;font-size:12px}.login-heading h2{margin-bottom:7px;font-size:27px}.login-heading p{color:#64748b;margin-bottom:28px}.login-card label{margin-bottom:18px;font-weight:600;display:block}.login-card input{border:1px solid #cbd5e1;border-radius:8px;width:100%;margin-top:8px;padding:13px;font-size:14px}.login-button{width:100%;margin-top:5px}.login-footer{text-align:center;color:#94a3b8;margin:25px 0 0;font-size:12px}.placeholder-card{min-height:250px}@media (width<=1000px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.agent-grid{grid-template-columns:1fr}}.primary-button{cursor:pointer;border:0;border-radius:10px;padding:11px 18px;font-weight:700}.customer-form,.customers-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin-bottom:20px;padding:22px}.form-grid{grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:14px;display:grid}.customer-form input,.customer-form textarea,.customer-search input{box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:11px 12px}.customer-form textarea{min-height:90px;margin-bottom:14px}.customer-search{gap:10px;margin-bottom:20px;display:flex}.customer-search input{flex:1}.customer-search button,.customer-table button{cursor:pointer;border:1px solid #d1d5db;border-radius:8px;padding:9px 14px}.customer-table-wrap{overflow-x:auto}.customer-table{border-collapse:collapse;width:100%}.customer-table th,.customer-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:13px 10px}.customer-table th{text-transform:uppercase;font-size:12px}.empty-state{text-align:center;padding:35px}.error-message{background:#fee2e2;border-radius:8px;margin-bottom:15px;padding:12px}@media (width<=800px){.form-grid{grid-template-columns:1fr}}
