@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#14213d;background-color:#f2f0ea}body{margin:0}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{background:#3b3d35;color:#f1f5f9;padding:1.25rem 2rem;box-shadow:0 1px 4px #1118271a}.app-header h1{margin:0;font-size:1.5rem}.app-body{flex:1;display:flex;overflow:hidden}.history-sidebar{display:flex;gap:0;background:#fff;border-right:1px solid #e2e8f0;transition:width .3s ease;box-shadow:inset -1px 0 #0f172a0d;overflow:hidden}.history-sidebar.expanded{width:480px}.history-sidebar.collapsed{width:76px}.history-rail{width:76px;display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem .5rem;border-right:1px solid rgba(15,23,42,.08);background:#f2f0ea}.history-rail-button{width:48px;height:48px;border-radius:12px;border:1px solid rgba(15,23,42,.1);background:#fff;display:flex;align-items:center;justify-content:center;font-size:1.25rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.history-rail-button:hover{transform:translateY(-2px);box-shadow:0 6px 16px -12px #0f172a99}.history-rail-button.primary{background:linear-gradient(135deg,#14213d,#1f3e68);color:#f8fafc;border:none}.history-rail-button.orange-primary{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff;border:none;font-weight:600}.history-rail-button.orange-primary:hover{background:linear-gradient(135deg,#c2410c,#ea580c);box-shadow:0 6px 16px -8px #ea580cb3}.history-content{flex:1;padding:1.5rem;overflow-y:auto}.history-actions{display:flex;justify-content:center;margin-bottom:1rem}.history-new-button{width:100%;padding:.75rem 1rem;border-radius:.75rem;border:1px solid rgba(15,23,42,.12);background:#0f172a0a;font-weight:600;cursor:pointer;transition:background .2s ease,transform .2s ease}.history-new-button:hover{background:#0f172a14;transform:translateY(-1px)}.history-header h2{margin:0;font-size:1.1rem}.history-content h2{margin-top:0;font-size:1.1rem}.history-content ul{padding:0;margin:1rem 0 0;list-style:none;display:grid;gap:.75rem}.history-item-clickable{cursor:pointer;padding:.75rem;border-radius:.5rem;transition:background .2s ease,transform .1s ease}.history-item-clickable:hover{background:#0f172a0d;transform:translate(2px)}.history-item-clickable:active{transform:translate(0)}.history-description{margin:.5rem 0 0;color:#64748b;font-size:.9rem}.history-loading,.history-error,.history-empty{padding:2rem 1rem;text-align:center;color:#64748b}.history-error{color:#dc2626}.history-error p{margin:0 0 1rem;font-weight:500}.retry-button{padding:.5rem 1rem;border-radius:.5rem;border:1px solid rgba(220,38,38,.2);background:#dc26261a;color:#dc2626;font-weight:600;cursor:pointer;transition:all .2s ease}.retry-button:hover{background:#dc262633;transform:translateY(-1px)}.history-empty{color:#94a3b8;font-style:italic}.chat-sidebar{width:480px;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e2e8f0;box-shadow:inset -1px 0 #0f172a0d;transition:all .3s ease;overflow:hidden}.chat-content{flex:1;padding:1.5rem;display:flex;flex-direction:column;overflow:hidden}.chat-header h2{margin:0;font-size:1.1rem}.chat-description{margin:.5rem 0 0;color:#64748b;font-size:.9rem}.chat-messages{flex:1;overflow-y:auto;margin:1.5rem 0;padding:1rem;background:#0f172a05;border-radius:.75rem}.chat-empty{text-align:center;color:#94a3b8;font-style:italic;margin:2rem 0}.chat-input-container{display:flex;gap:.75rem;padding-top:1rem;border-top:1px solid #e2e8f0}.chat-input{flex:1;padding:.75rem 1rem;border:1px solid #e2e8f0;border-radius:.5rem;font-size:.95rem;font-family:inherit}.chat-input:focus{outline:none;border-color:#3b3d35;box-shadow:0 0 0 3px #3b3d351a}.chat-send-button{padding:.75rem 1.5rem;background:#3b3d35;color:#fff;border:none;border-radius:.5rem;font-weight:600;cursor:pointer;transition:all .2s ease}.chat-send-button:hover{background:#2d2f29;transform:translateY(-1px);box-shadow:0 4px 12px #3b3d354d}.form-error{padding:1rem;background:#dc26261a;border:1px solid rgba(220,38,38,.2);border-radius:.75rem;margin-bottom:1rem}.form-error p{margin:0;color:#dc2626;font-weight:500}.history-title{margin:0;font-weight:600}.history-meta{margin:.25rem 0 0;font-size:.875rem;color:#475569;display:flex;gap:.5rem;align-items:center}.status{padding:.25rem .5rem;border-radius:.5rem;font-weight:600;text-transform:capitalize}.status.completed{background:#22c55e26;color:#15803d}.status.in-progress{background:#6366f126;color:#4338ca}.app-content{flex:1;display:flex;flex-direction:column;padding:1.5rem 2rem;gap:1.5rem;overflow:auto}.search-tabs{display:flex;gap:1.5rem;align-items:center}.chat-toggle-button{padding:.5rem 1rem;border-radius:999px;font-weight:600;color:#475569;background:#0f172a0d;border:none;cursor:pointer;transition:all .2s ease}.chat-toggle-button:hover{background:#0f172a1a}.chat-toggle-button.active{background:#e45b28;color:#fff;box-shadow:0 3px 8px #e45b284d}.search-tabs ul{margin:0;padding:.25rem;list-style:none;display:inline-flex;gap:.5rem;background:#0f172a0d;border-radius:999px}.search-tabs li{margin:0}.search-tabs a{display:inline-block;padding:.5rem 1rem;border-radius:999px;font-weight:600;color:#475569}.search-tabs .active a,.search-tabs li.active a{background:#e45b28;color:#fff;box-shadow:0 3px 8px #e45b284d}.app-page{background:#fff;border-radius:1rem;padding:2rem;box-shadow:0 0 0 1px #0f172a0d,0 12px 24px -12px #0f172a33}.section-header h2{margin:0}.section-header p{margin:.5rem 0 0;color:#475569}.card{background:#f8fafc;border-radius:.75rem;padding:1.5rem;border:1px solid rgba(15,23,42,.08)}.auth-page{display:grid;place-items:center;padding:4rem 1.5rem;text-align:center}.definition-form{display:grid;gap:1.5rem}.definition-form label{font-weight:600;color:#1f2a44}.field-wrapper{display:grid;gap:.75rem}.field-header{display:flex;justify-content:space-between;align-items:center}.field-label-wrapper{display:flex;align-items:center;gap:.75rem}.field-hint{font-size:.75rem;color:#94a3b8;font-weight:400}.edit-field-button{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border:1px solid rgba(15,23,42,.12);border-radius:.5rem;background:#0f172a0a;color:#475569;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease}.edit-field-button:hover{background:#0f172a14;transform:translateY(-1px)}.edit-field-button svg{flex-shrink:0}.static-field{border-radius:.75rem;border:1px solid rgba(15,23,42,.08);padding:1rem;font-size:1rem;background:#f8fafc;color:#1f2a44;min-height:44px;white-space:pre-wrap;line-height:1.5}.definition-form input[type=text],.definition-form textarea{border-radius:.75rem;border:1px solid rgba(15,23,42,.12);padding:1rem;font-size:1rem;font-family:inherit;resize:vertical;box-shadow:inset 0 1px 2px #0f172a0d;background:#fff;transition:all .2s ease}.definition-form textarea{min-height:120px}.definition-form input[type=text]:focus,.definition-form textarea:focus-visible{outline:2px solid #3B3D35;outline-offset:2px;box-shadow:0 0 0 4px #3b3d351a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media (max-width: 768px){.form-row{grid-template-columns:1fr}}.spec-section{display:grid;gap:1rem}.spec-header{display:flex;align-items:center;gap:.75rem}.spec-header h3{margin:0;font-size:1rem;font-weight:600;color:#1f2a44}.spec-header-actions{display:flex;gap:.75rem;align-items:center}.add-spec-btn{padding:.4rem .75rem;font-size:.8rem;white-space:nowrap}.spec-items{display:flex;flex-wrap:wrap;gap:.75rem}.spec-card{display:inline-flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-radius:.5rem;border:2px solid;gap:.75rem;cursor:pointer;transition:all .2s ease;width:fit-content;max-width:100%}.spec-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0f172a1a}.spec-card.spec-required{background:#ffa5001a;border-color:#ff8c00}.spec-card.spec-required-preferred{background:linear-gradient(135deg,#ffa5001a,#ffa5001a 50%,#22c55e1a 50%,#22c55e1a);border-color:#ff8c00;border-right-color:#22c55e;border-bottom-color:#22c55e}.spec-card.spec-preferred{background:#22c55e1a;border-color:#22c55e}.spec-card-content{flex:1;display:grid;gap:.5rem}.spec-card-title{margin:0;font-size:1rem;font-weight:600;color:#1f2a44}.spec-card-values{display:flex;flex-wrap:wrap;gap:.5rem}.spec-value{font-size:.875rem;padding:.25rem .5rem;border-radius:.375rem}.required-badge{background:#3b82f633;color:#1e40af}.preferred-badge{background:#22c55e33;color:#15803d}.remove-spec-button{padding:.25rem .5rem;border-radius:.375rem;border:none;background:#ef44441a;color:#dc2626;font-size:.875rem;cursor:pointer;transition:background .2s ease;flex-shrink:0}.remove-spec-button:hover{background:#ef444433}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:1rem;box-shadow:0 20px 60px #0000004d;width:100%;max-width:650px;max-height:90vh;overflow:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;border-bottom:1px solid #e2e8f0}.modal-header h3{margin:0;font-size:1.25rem;font-weight:600;color:#1f2a44}.modal-close{padding:.25rem .5rem;border:none;background:transparent;font-size:1.5rem;color:#64748b;cursor:pointer;transition:color .2s ease}.modal-close:hover{color:#1f2a44}.modal-body{padding:1.5rem;display:grid;gap:1.25rem}.modal-body label{display:grid;gap:.5rem;font-weight:600;color:#1f2a44;font-size:.875rem}.modal-body input,.modal-body select{border-radius:.5rem;border:1px solid rgba(15,23,42,.12);padding:.75rem;font-size:1rem;font-family:inherit;background:#fff}.modal-body input:focus,.modal-body select:focus{outline:2px solid #3B3D35;outline-offset:2px}.modal-footer{display:flex;gap:.75rem;justify-content:flex-end;padding:1.5rem;border-top:1px solid #e2e8f0}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem}.form-actions-left{display:flex;align-items:center;gap:.75rem}.form-actions-right{display:flex;align-items:center;gap:1rem}.delete-button{padding:.75rem 1.25rem;border-radius:.75rem;border:1px solid rgba(220,38,38,.3);background:#dc26260d;color:#dc2626;font-weight:600;font-size:.9375rem;cursor:pointer;transition:all .2s ease;font-family:inherit}.delete-button:hover:not(:disabled){background:#dc26261a;border-color:#dc262680;transform:translateY(-1px)}.delete-button:disabled{opacity:.5;cursor:not-allowed}.save-status{display:flex;align-items:center;gap:.5rem}.saving-indicator{color:#64748b;font-size:.875rem;font-weight:500;animation:pulse 1.5s ease-in-out infinite}.saved-indicator{color:#10b981;font-size:.875rem;font-weight:600}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.table-placeholder table{width:100%;border-collapse:collapse;font-size:.95rem}.table-placeholder th,.table-placeholder td{padding:.875rem;border-bottom:1px solid #e2e8f0;text-align:left}.table-placeholder tr:last-child td{border-bottom:none}.welcome-page{display:grid;gap:2rem;text-align:center}.welcome-actions{display:flex;gap:1rem;justify-content:center}.primary-button,.secondary-button{padding:.75rem 1.5rem;border-radius:999px;font-weight:600}.primary-button{background:#3b3d35;color:#fff}.secondary-button{background:#3b3d351a;color:#3b3d35}.welcome-highlights{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.welcome-highlights article{background:#fff;border-radius:1rem;padding:1.5rem;box-shadow:0 10px 20px -15px #0f172a4d;text-align:left}@media (max-width: 960px){.history-sidebar.expanded,.chat-sidebar{width:420px}.app-content{padding:1.5rem}}@media (max-width: 768px){.app-body{flex-direction:column}.history-sidebar{width:100%;border-bottom:1px solid #e2e8f0;border-right:none;box-shadow:inset 0 -1px #0f172a0d}.chat-sidebar{width:100%;border-top:1px solid #e2e8f0;border-left:none;box-shadow:inset 0 1px #0f172a0d}.history-rail{flex-direction:row;justify-content:center;width:100%;border-right:none;border-bottom:1px solid rgba(15,23,42,.08)}.history-sidebar.collapsed{width:100%}}
