*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}:root{--blue:#0d4fb4;--blue-light:#E5EDF8;--blue-dark:#0B3F8F;--dark:#0B1F3B;--gray-900:#2C2F36;--gray-700:#4A4F57;--gray-500:#6E7580;--gray-400:#8A9099;--gray-300:#C8CDD4;--gray-200:#DFE3E8;--gray-100:#F4F6F8;--white:#ffffff;--radius:12px;--shadow-sm:0 1px 3px rgba(11,31,59,0.06);--shadow-md:0 4px 20px rgba(11,31,59,0.08);--shadow-lg:0 12px 40px rgba(11,31,59,0.1)}html{scroll-behavior:smooth}body{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;color:var(--gray-900);background:var(--gray-100);line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}h1,h2,h3,h4,h5,h6,.nav-logo,.btn{font-family:'Barlow',-apple-system,BlinkMacSystemFont,sans-serif}a{text-decoration:none;color:inherit}button{cursor:pointer;border:none;font-family:inherit}input,textarea{font-family:inherit}.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:6px;font-size:15px;font-weight:600;transition:all 0.3s ease;border:none}.btn-primary{background:var(--blue);color:var(--white)}.btn-primary:hover{background:var(--blue-dark);transform:translateY(-1px);box-shadow:0 8px 24px rgba(14,79,179,0.3)}.btn-outline{background:transparent;color:var(--blue);border:2px solid var(--blue)}.btn-outline:hover{background:var(--blue);color:var(--white)}.btn-sm{padding:8px 18px;font-size:13px}.portal-nav{background:var(--white);border-bottom:1px solid var(--gray-200);padding:14px 24px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100}.portal-nav-left{display:flex;align-items:center;gap:12px}.nav-logo{font-size:20px;font-weight:800;color:var(--dark);display:flex;align-items:center;gap:8px}.logo-mark{width:32px;height:32px;background:var(--blue);border-radius:6px;display:flex;align-items:center;justify-content:center;color:white;font-size:14px;font-weight:800}.portal-nav-left span{color:var(--gray-400);font-weight:400;font-size:14px;margin-left:4px}.portal-nav-right{display:flex;align-items:center;gap:12px}.user-name{font-size:14px;font-weight:500;color:var(--gray-700)}.btn-link{background:none;border:none;color:var(--gray-500);font-size:13px;font-weight:500;cursor:pointer;padding:4px 8px}.btn-link:hover{color:var(--blue)}.auth-gate{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px}.auth-card{background:var(--white);border-radius:16px;box-shadow:var(--shadow-md);width:100%;max-width:420px;overflow:hidden}.auth-header{padding:32px 32px 0;text-align:center}.auth-header h1{font-size:24px;font-weight:700;color:var(--dark);margin-bottom:8px}.auth-header p{font-size:14px;color:var(--gray-500)}.auth-tabs{display:flex;margin:24px 32px 0;border-bottom:2px solid var(--gray-200)}.auth-tab{flex:1;padding:10px;font-size:14px;font-weight:600;color:var(--gray-500);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:all 0.2s}.auth-tab.active{color:var(--blue);border-bottom-color:var(--blue)}.auth-form{padding:24px 32px 32px;display:flex;flex-direction:column;gap:14px}.auth-form[hidden]{display:none}.form-group{display:flex;flex-direction:column;gap:5px}.form-group label{font-size:13px;font-weight:500;color:var(--gray-700)}.form-group input{padding:10px 14px;border:1px solid var(--gray-300);border-radius:8px;font-size:14px;color:var(--gray-900);outline:none;transition:border-color 0.2s}.form-group input:focus{border-color:var(--blue)}.auth-error{background:#fef2f2;color:#991b1b;font-size:13px;padding:8px 12px;border-radius:8px;display:none}.auth-footer{padding:0 32px 24px;text-align:center}.auth-footer a{color:var(--blue);font-size:13px;font-weight:500}.dashboard{flex:1;display:flex;min-height:0}.dashboard[hidden]{display:none}.sidebar{width:320px;background:var(--white);border-right:1px solid var(--gray-200);display:flex;flex-direction:column;flex-shrink:0}.sidebar-header{padding:16px 20px;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;justify-content:space-between}.sidebar-header h2{font-size:16px;font-weight:700;color:var(--dark)}.new-chat-btn{background:var(--blue);color:var(--white);border:none;width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.2s}.new-chat-btn:hover{background:var(--blue-dark)}.conv-list{flex:1;overflow-y:auto;padding:8px}.conv-item{padding:12px 14px;border-radius:10px;cursor:pointer;transition:background 0.15s;margin-bottom:2px}.conv-item:hover{background:var(--gray-100)}.conv-item.active{background:var(--blue-light)}.conv-item-subject{font-size:14px;font-weight:600;color:var(--dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}.conv-item-preview{font-size:13px;color:var(--gray-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-item-meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px}.conv-item-date{font-size:11px;color:var(--gray-400)}.conv-status-badge{font-size:10px;font-weight:600;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:0.5px}.conv-status-badge.active{background:#dcfce7;color:#166534}.conv-status-badge.escalated{background:#fef3c7;color:#92400e}.conv-status-badge.closed{background:var(--gray-200);color:var(--gray-500)}.conv-empty{padding:40px 20px;text-align:center;color:var(--gray-500);font-size:14px}.thread-area{flex:1;display:flex;flex-direction:column;min-width:0}.thread-header{padding:16px 24px;border-bottom:1px solid var(--gray-200);background:var(--white)}.thread-header h3{font-size:16px;font-weight:600;color:var(--dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-header p{font-size:12px;color:var(--gray-400);margin-top:2px}.thread-messages{flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}.thread-msg{max-width:70%;padding:12px 16px;border-radius:14px;font-size:14px;line-height:1.5;word-wrap:break-word}.thread-msg.assistant{align-self:flex-start;background:var(--white);color:var(--gray-900);border-bottom-left-radius:4px;box-shadow:var(--shadow-sm)}.thread-msg.user{align-self:flex-end;background:var(--blue);color:var(--white);border-bottom-right-radius:4px}.thread-msg.system{align-self:center;background:transparent;color:var(--gray-400);font-size:12px;text-align:center}.thread-msg-time{font-size:11px;opacity:0.6;margin-top:4px}.thread-msg .att-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:6px;font-size:12px;margin-top:6px;cursor:pointer;transition:opacity 0.2s}.thread-msg .att-badge:hover{opacity:0.8}.thread-msg.user .att-badge{background:rgba(255,255,255,0.2);color:var(--white)}.thread-msg.assistant .att-badge{background:var(--gray-100);color:var(--gray-700)}.thread-empty{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:40px;color:var(--gray-400)}.thread-empty h3{font-size:18px;font-weight:600;color:var(--gray-500);margin-bottom:8px}.thread-empty p{font-size:14px;max-width:300px}.thread-input-area{padding:16px 24px;border-top:1px solid var(--gray-200);background:var(--white)}.thread-input-row{display:flex;align-items:flex-end;gap:10px}.thread-attach-btn{background:none;border:none;color:var(--gray-400);cursor:pointer;padding:8px;border-radius:8px;flex-shrink:0}.thread-attach-btn:hover{color:var(--blue)}.thread-input-row textarea{flex:1;border:1px solid var(--gray-300);border-radius:12px;padding:10px 14px;font-size:14px;color:var(--gray-900);resize:none;min-height:42px;max-height:100px;outline:none;transition:border-color 0.2s;line-height:1.4}.thread-input-row textarea:focus{border-color:var(--blue)}.thread-send-btn{background:var(--blue);border:none;color:var(--white);width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;transition:background 0.2s,opacity 0.2s}.thread-send-btn:hover{background:var(--blue-dark)}.thread-send-btn:disabled{opacity:0.4;cursor:not-allowed}.thread-file-preview{display:none;align-items:center;gap:8px;background:var(--gray-100);padding:6px 10px;border-radius:8px;margin-bottom:10px;font-size:13px;color:var(--gray-700)}.thread-file-preview.visible{display:flex}.thread-file-preview .file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-file-preview .file-remove{background:none;border:none;color:var(--gray-500);cursor:pointer;font-size:16px;padding:0 2px}.thread-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px;background:var(--white);border-radius:14px;border-bottom-left-radius:4px;box-shadow:var(--shadow-sm)}.thread-typing span{width:7px;height:7px;border-radius:50%;background:var(--gray-400);animation:bounce 1.4s ease-in-out infinite}.thread-typing span:nth-child(2){animation-delay:0.2s}.thread-typing span:nth-child(3){animation-delay:0.4s}@keyframes bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}.profile-panel{display:none;flex:1;padding:40px;overflow-y:auto}.profile-panel.active{display:block}.profile-card{background:var(--white);border-radius:16px;box-shadow:var(--shadow-sm);max-width:500px;padding:32px}.profile-card h2{font-size:20px;font-weight:700;color:var(--dark);margin-bottom:24px}.profile-card .form-group{margin-bottom:16px}.profile-card .form-group input{width:100%;padding:10px 14px;border:1px solid var(--gray-300);border-radius:8px;font-size:14px;color:var(--gray-900);outline:none}.profile-card .form-group input:focus{border-color:var(--blue)}.profile-saved{font-size:13px;color:#166534;display:none;margin-top:8px}.portal-footer{background:var(--white);border-top:1px solid var(--gray-200);padding:16px 24px;text-align:center;font-size:13px;color:var(--gray-500)}.portal-footer a{color:var(--blue)}@media (max-width: 768px){.sidebar{width:100%;position:absolute;top:0;left:0;bottom:0;z-index:10}.dashboard{position:relative}.thread-area{display:none}.thread-area.active{display:flex;position:absolute;top:0;left:0;right:0;bottom:0;z-index:20;background:var(--gray-100)}.sidebar.hidden{display:none}.thread-header{display:flex;align-items:center;gap:12px}.thread-back-btn{background:none;border:none;color:var(--gray-500);cursor:pointer;padding:4px}.profile-panel{padding:24px 16px}.profile-card{padding:24px}}
.parts-header{text-align:center;margin-bottom:56px}.aeo-header{text-align:center;margin-bottom:48px}.why-header{text-align:center;margin-bottom:56px}.pillars-header{text-align:center;margin-bottom:56px}.process-header{text-align:center;margin-bottom:56px}.faq-header{text-align:center;margin-bottom:48px}.nearby-header{text-align:center;margin-bottom:2rem}.materials-header{text-align:center;margin-bottom:48px}.finishes-header{text-align:center;margin-bottom:48px}.industries-header{text-align:center;margin-bottom:48px}.comparison-header{text-align:center;margin-bottom:48px}.eco-header{text-align:center;margin-bottom:48px}.local-context-inner{max-width:760px;margin:0 auto;text-align:center}.local-context-body{text-align:left}.capabilities-demand,.capabilities-demand-secondary{margin-left:auto;margin-right:auto;text-align:left}
