*{box-sizing:border-box}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;background-color:#f5f7fa;color:#333}#root{min-height:100vh}a{color:inherit;text-decoration:none}button{font-family:inherit}input,textarea,select{font-family:inherit;font-size:inherit}.layout{display:flex;min-height:100vh}.mobile-header{display:none}.sidebar{width:240px;background:#1a1a2e;color:#fff;display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100vh;z-index:1000}.sidebar-header{padding:1.5rem;border-bottom:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center}.sidebar-header h1{margin:0;font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.close-sidebar{display:none;background:none;border:none;color:#ffffffb3;font-size:1.5rem;cursor:pointer;padding:.25rem;line-height:1}.close-sidebar:hover{color:#fff}.sidebar-overlay{display:none}.sidebar-nav{flex:1;padding:1rem 0;overflow-y:auto}.nav-link{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.5rem;color:#ffffffb3;text-decoration:none;transition:all .2s}.nav-link:hover{color:#fff;background:#ffffff0d}.nav-link.active{color:#fff;background:linear-gradient(90deg,rgba(102,126,234,.3) 0%,transparent 100%);border-left:3px solid #667eea}.nav-icon{font-size:1.25rem}.sidebar-footer{padding:1rem 1.5rem;border-top:1px solid rgba(255,255,255,.1)}.user-info{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem}.user-name{font-weight:600;color:#fff}.user-role{font-size:.8rem;color:#ffffff80;text-transform:capitalize}.logout-button{width:100%;padding:.625rem;background:#ffffff1a;border:none;border-radius:6px;color:#fffc;cursor:pointer;transition:all .2s}.logout-button:hover{background:#ffffff26;color:#fff}.main-content{flex:1;margin-left:240px;padding:2rem;background:#f5f7fa;min-height:100vh}@media(max-width:768px){.mobile-header{display:flex;align-items:center;justify-content:space-between;position:fixed;top:0;left:0;right:0;height:56px;background:#1a1a2e;color:#fff;padding:0 1rem;z-index:999;box-shadow:0 2px 4px #0000001a}.menu-button{background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center}.menu-icon{font-size:1.5rem}.mobile-title{font-size:1.125rem;font-weight:600;margin:0}.mobile-header-spacer{width:40px}.sidebar{transform:translate(-100%);transition:transform .3s ease}.sidebar.open{transform:translate(0)}.close-sidebar{display:block}.sidebar-overlay{display:block;position:fixed;inset:0;background:#00000080;z-index:999}.main-content{margin-left:0;padding:1rem;padding-top:calc(56px + 1rem)}}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.login-card{background:#fff;padding:2.5rem;border-radius:12px;box-shadow:0 10px 40px #0003;width:100%;max-width:400px}.login-card h1{margin:0 0 .25rem;font-size:2rem;color:#333;text-align:center}.login-subtitle{margin:0 0 2rem;color:#666;text-align:center;font-size:.9rem}.login-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;color:#333;font-size:.9rem}.form-group input{padding:.75rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.login-button{padding:.875rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:.5rem}.login-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.login-button:disabled{opacity:.7;cursor:not-allowed}.login-error{background:#fff5f5;color:#c53030;padding:.75rem 1rem;border-radius:8px;font-size:.9rem;border:1px solid #fc8181}.dashboard{max-width:1200px;margin:0 auto}.dashboard-header{margin-bottom:2rem}.dashboard-header h1{margin:0 0 .5rem;font-size:1.75rem;color:#333}.dashboard-header p{margin:0;color:#666}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2.5rem}.stat-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000000d;display:flex;align-items:center;gap:1rem;text-decoration:none;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.stat-icon{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.5rem}.files-icon{background:linear-gradient(135deg,#4facfe,#00f2fe)}.notes-icon{background:linear-gradient(135deg,#667eea,#764ba2)}.specs-icon{background:linear-gradient(135deg,#f093fb,#f5576c)}.stat-content{display:flex;flex-direction:column;gap:.25rem}.stat-value{font-size:1.75rem;font-weight:700;color:#333}.stat-label{font-size:.9rem;color:#666}.quick-actions h2{font-size:1.25rem;margin:0 0 1rem;color:#333}.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.action-card{background:#fff;padding:1.25rem;border-radius:10px;box-shadow:0 2px 8px #0000000d;display:flex;flex-direction:column;align-items:center;gap:.75rem;text-decoration:none;color:#333;transition:transform .2s,box-shadow .2s}.action-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.action-icon{font-size:1.5rem}.action-card span:last-child{font-size:.9rem;font-weight:500}.tag-input-container{position:relative}.tag-input-wrapper{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;padding:.375rem .5rem;border:1px solid #ddd;border-radius:6px;background:#fff;min-height:34px}.tag-input-wrapper:focus-within{border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.tag-input-wrapper .tag{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px;font-size:.75rem}.tag-input-wrapper .tag button{background:none;border:none;color:#fffc;cursor:pointer;padding:0;font-size:.875rem;line-height:1;display:flex;align-items:center;justify-content:center}.tag-input-wrapper .tag button:hover{color:#fff}.tag-text-input{flex:1;min-width:80px;border:none;outline:none;font-size:.875rem;padding:.125rem;background:transparent}.tag-text-input::placeholder{color:#999}.tag-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 4px 12px #0000001a;max-height:200px;overflow-y:auto;z-index:100}.tag-dropdown-item{padding:.625rem .875rem;cursor:pointer;font-size:.9rem;color:#333;transition:background .15s}.tag-dropdown-item:hover,.tag-dropdown-item.highlighted{background:#f5f7fa}.tag-dropdown-item.create-new{color:#667eea;font-weight:500;border-bottom:1px solid #eee}.tag-dropdown-item.create-new:hover,.tag-dropdown-item.create-new.highlighted{background:#f0f4ff}.files-page{max-width:1200px;margin:0 auto}.files-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.files-header h1{margin:0;font-size:1.75rem;color:#333}.header-actions{display:flex;gap:.5rem}.secondary-button{padding:.625rem 1rem;background:#fff;color:#667eea;border:1px solid #667eea;border-radius:8px;cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s}.secondary-button:hover{background:#667eea;color:#fff}.create-button{padding:.625rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;font-size:.95rem;transition:transform .2s,box-shadow .2s}.create-button-secondary{padding:.625rem 1.25rem;background:#fff;color:#667eea;border:2px solid #667eea;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}.files-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.files-filters{display:flex;gap:.75rem;flex:1;align-items:center;flex-wrap:wrap}.tag-filter-section{flex:1;min-width:150px;max-width:280px}.breadcrumb{background:#fff;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;display:flex;align-items:center;flex-wrap:wrap}.breadcrumb-item{background:none;border:none;color:#667eea;cursor:pointer;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}.breadcrumb-item:hover{background:#667eea1a}.breadcrumb-separator{color:#999;margin:0 .25rem}.empty-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.text-input{width:100%;padding:.625rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:.9rem}.text-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.files-list{display:flex;flex-direction:column;gap:.5rem}.file-list-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s}.file-list-item:hover,.file-list-item.folder{background:#f8f9fa}.file-list-item.folder:hover{background:#f0f0f0}.file-list-item.public{background:linear-gradient(90deg,#f0fff4,#fff);border-left:3px solid #68d391}.file-list-item .file-icon{font-size:1.25rem;flex-shrink:0}.file-list-item .file-name{flex:1;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-list-item .file-meta{display:flex;align-items:center;gap:1rem;color:#888;font-size:.85rem;flex-shrink:0}.file-list-item .public-indicator{color:#38a169}.file-list-item .tag-count{color:#667eea}.file-list-item .file-actions{display:flex;gap:.25rem;flex-shrink:0}.files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}.file-card{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000d;cursor:pointer;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;overflow:hidden;max-width:100%;box-sizing:border-box}.file-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001a}.file-card.folder{background:#f8f9fa}.file-card.public{background:linear-gradient(135deg,#f0fff4,#e6fffa);border:1px solid #68d391}.file-card.public:hover{border-color:#38a169}.file-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.file-card-header .file-icon{font-size:1.5rem}.public-badge{font-size:.75rem;background:#38a169;color:#fff;padding:.125rem .5rem;border-radius:12px;font-weight:500}.file-card-name{margin:0 0 .5rem;font-size:.95rem;font-weight:600;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-card-tags{display:flex;flex-wrap:wrap;gap:.375rem;margin-bottom:.75rem;min-height:24px}.file-card-tags .tag{padding:.125rem .5rem;background:#f0f0f0;color:#666;border-radius:12px;font-size:.75rem}.file-card-tags .tag.more{background:#e0e0e0}.file-card-footer{display:flex;justify-content:space-between;font-size:.8rem;color:#999;margin-bottom:.75rem}.file-card-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:auto;padding-top:.5rem;border-top:1px solid #f0f0f0}.action-btn.open{background:#f0fff4;color:#38a169;text-decoration:none}.action-btn.open:hover{background:#c6f6d5}.action-btn.copy{background:#f0f4ff;color:#667eea}.action-btn.copy:hover{background:#e0e7ff}.action-btn.download{background:#e6fffa;color:#319795}.action-btn.download:hover{background:#b2f5ea}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;padding:1.5rem;border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #00000026}.modal-content h3{margin:0 0 1.25rem;font-size:1.25rem;color:#333}.form-group{margin-bottom:1rem}.form-group label{display:block;font-size:.9rem;font-weight:500;color:#555;margin-bottom:.5rem}.form-group .hint{display:block;font-size:.8rem;color:#999;margin-top:.25rem}.file-input{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:6px}.checkbox-group label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.checkbox-group input[type=checkbox]{width:18px;height:18px;cursor:pointer}.upload-progress{background:#ebf8ff;color:#2b6cb0;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;border:1px solid #90cdf4;font-size:.9rem}.public-url-display{margin-bottom:1rem}.public-url-display label{display:block;font-size:.9rem;font-weight:500;color:#555;margin-bottom:.5rem}.url-box{display:flex;gap:.5rem;align-items:center}.url-box code{flex:1;padding:.5rem;background:#f5f7fa;border-radius:6px;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-url-link{flex:1;padding:.5rem;background:#f0fff4;border-radius:6px;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#38a169;text-decoration:none;border:1px solid #68d391}.public-url-link:hover{background:#c6f6d5}.copy-btn{padding:.5rem .75rem;background:#f0f0f0;border:none;border-radius:6px;cursor:pointer;font-size:.85rem}.copy-btn:hover{background:#e0e0e0}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.25rem}.cancel-btn{padding:.625rem 1.25rem;background:#f0f0f0;border:none;border-radius:8px;cursor:pointer;font-weight:500}.cancel-btn:hover:not(:disabled){background:#e0e0e0}.cancel-btn:disabled{opacity:.6;cursor:not-allowed}.save-btn{padding:.625rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500}.save-btn:hover:not(:disabled){box-shadow:0 2px 8px #667eea66}.save-btn:disabled{opacity:.6;cursor:not-allowed}@media(max-width:768px){.files-page{overflow-x:hidden;max-width:100vw;width:100%;box-sizing:border-box}.files-list{max-width:100%;width:100%;overflow:hidden;box-sizing:border-box}.files-header{flex-direction:column;align-items:stretch;gap:1rem}.files-header h1{font-size:1.5rem}.files-toolbar{flex-direction:row;justify-content:space-between}.files-filters{flex-direction:column;flex:1;gap:.5rem}.search-input{width:100%}.tag-filter-section{max-width:none;width:100%}.breadcrumb{padding:.5rem;font-size:.85rem;overflow-x:auto}.files-grid{grid-template-columns:1fr}.file-card-name{font-size:.9rem}.file-card-actions{flex-wrap:wrap;justify-content:center}.file-list-item{flex-wrap:wrap;padding:.625rem .75rem;gap:.5rem;max-width:100%;box-sizing:border-box}.file-list-item .file-icon{font-size:1.1rem;flex-shrink:0}.file-list-item .file-name{flex:1 1 0;min-width:0;max-width:calc(100% - 100px);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-list-item .file-meta{order:3;width:100%;justify-content:flex-start;gap:.5rem;font-size:.75rem;padding-left:1.75rem}.file-list-item .file-actions{order:2;flex-shrink:0}.file-list-item .action-btn{width:28px;height:28px;font-size:.8rem}.modal-overlay{padding:.5rem;box-sizing:border-box}.modal-content{width:100%;max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);padding:1rem;margin:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.modal-content h3{font-size:1.1rem;margin-bottom:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.form-group{margin-bottom:.75rem}.url-box{flex-direction:column;align-items:stretch}.public-url-link{word-break:break-all;white-space:normal}.modal-actions{flex-direction:column;gap:.5rem;margin-top:1rem}.modal-actions button{width:100%}}.notes-page{max-width:1200px;margin:0 auto}.notes-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.notes-header h1{margin:0;font-size:1.75rem;color:#333}.notes-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.notes-filters{display:flex;gap:.75rem;flex:1;align-items:center;flex-wrap:wrap}.search-input{width:180px;padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.875rem}.tag-input{padding:.625rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:.9rem;width:150px}.notes-list{display:flex;flex-direction:column;gap:.5rem}.note-list-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s}.note-list-item:hover{background:#f8f9fa}.note-list-item .note-icon{font-size:1.25rem;flex-shrink:0}.note-list-item .note-name{flex:1;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-list-item .note-meta{display:flex;align-items:center;gap:1rem;color:#888;font-size:.85rem;flex-shrink:0}.note-list-item .tag-count{color:#667eea}.note-list-item .note-actions{display:flex;gap:.25rem;flex-shrink:0}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.note-card{background:#fff;padding:1.25rem;border-radius:12px;box-shadow:0 2px 8px #0000000d;cursor:pointer;transition:transform .2s,box-shadow .2s}.note-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001a}.note-card h3{margin:0 0 .5rem;font-size:1.1rem;color:#333}.note-summary{margin:0 0 .75rem;color:#666;font-size:.9rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.note-tags{display:flex;gap:.375rem;flex-wrap:wrap;margin-bottom:.75rem}.note-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.75rem;border-top:1px solid #f0f0f0}.note-date{font-size:.8rem;color:#999}@media(max-width:768px){.notes-page{overflow-x:hidden}.notes-header{flex-direction:column;align-items:stretch;gap:.75rem}.notes-header h1{font-size:1.5rem}.notes-toolbar{flex-direction:row;justify-content:space-between}.notes-filters{flex-direction:column;flex:1;gap:.5rem}.search-input{width:100%}.tag-filter{max-width:none;width:100%}.notes-grid{grid-template-columns:1fr}.note-card h3{font-size:1rem}.note-list-item{padding:.625rem .75rem}.note-list-item .note-meta{flex-direction:column;align-items:flex-end;gap:.25rem}}.markdown-toolbar{display:flex;align-items:center;gap:.25rem;padding:.5rem;background:#f8f9fa;border:1px solid #ddd;border-bottom:none;border-radius:8px 8px 0 0;flex-wrap:wrap}.toolbar-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:#fff;border:1px solid #e0e0e0;border-radius:6px;cursor:pointer;font-size:.9rem;color:#555;transition:all .2s}.toolbar-btn:hover:not(:disabled){background:#f0f4ff;border-color:#667eea;color:#667eea}.toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.toolbar-separator{width:1px;height:24px;background:#ddd;margin:0 .375rem}@media(max-width:480px){.markdown-toolbar{gap:.125rem;padding:.375rem}.toolbar-btn{width:28px;height:28px;font-size:.8rem}.toolbar-separator{height:20px;margin:0 .25rem}}.note-editor{max-width:900px;margin:0 auto}@media(max-width:768px){.editor-header{flex-direction:column;gap:1rem;align-items:stretch}.editor-actions{justify-content:flex-end}}.specs-page{max-width:1200px;margin:0 auto}.specs-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.specs-header h1{margin:0;font-size:1.75rem;color:#333}.create-button{padding:.625rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;transition:transform .2s,box-shadow .2s}.create-button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.specs-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.specs-filters{display:flex;gap:.75rem;flex:1;align-items:center;flex-wrap:wrap}.search-input{width:150px;padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.875rem}.filter-select{padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.875rem;background:#fff;cursor:pointer}.filter-select:focus{outline:none;border-color:#667eea}.tag-filter{flex:1;min-width:150px;max-width:250px}.view-toggle{display:flex;gap:.25rem;background:#f5f5f5;border-radius:6px;padding:.2rem}.view-btn{width:32px;height:32px;border:none;background:transparent;border-radius:4px;cursor:pointer;font-size:1rem;color:#666;transition:all .2s}.view-btn:hover{background:#e8e8e8}.view-btn.active{background:#667eea;color:#fff}.tag-input{padding:.625rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:.9rem;width:130px}.add-tag-btn{padding:.625rem 1rem;background:#f0f0f0;border:none;border-radius:8px;cursor:pointer;font-weight:500;transition:background .2s}.active-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.empty-state{text-align:center;padding:3rem;background:#fff;border-radius:12px}.empty-state p{margin:0 0 1rem;color:#666}.create-button-secondary{padding:.5rem 1rem;background:#fff;color:#667eea;border:1px solid #667eea;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}.create-button-secondary:hover{background:#667eea;color:#fff}.specs-list{display:flex;flex-direction:column;gap:.5rem}.spec-list-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s}.spec-list-item:hover{background:#f8f9fa}.spec-list-item .spec-icon{font-size:1.25rem;flex-shrink:0}.spec-list-item .spec-name{flex:1;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spec-list-item .spec-meta{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.spec-list-item .spec-project{font-size:.85rem;color:#667eea;font-weight:500}.spec-list-item .spec-date{font-size:.85rem;color:#888}.spec-list-item .spec-actions{display:flex;gap:.25rem;flex-shrink:0}.action-btn{width:32px;height:32px;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:background .2s}.action-btn.delete{background:#fff5f5;color:#e53e3e}.action-btn.delete:hover{background:#fed7d7}.specs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.spec-card{background:#fff;padding:1.25rem;border-radius:12px;box-shadow:0 2px 8px #0000000d;cursor:pointer;transition:transform .2s,box-shadow .2s}.spec-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000001a}.spec-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.spec-project{font-size:.85rem;color:#667eea;font-weight:500}.spec-card h3{margin:0 0 .5rem;font-size:1.1rem;color:#333}.spec-summary{margin:0 0 .75rem;color:#666;font-size:.9rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.spec-tags{display:flex;gap:.375rem;flex-wrap:wrap;margin-bottom:.75rem}.spec-footer{display:flex;justify-content:space-between;align-items:center;padding-top:.75rem;border-top:1px solid #f0f0f0}.spec-date{font-size:.8rem;color:#999}.delete-btn{padding:.375rem .75rem;background:#fff5f5;color:#e53e3e;border:none;border-radius:6px;cursor:pointer;font-size:.8rem;transition:background .2s}.delete-btn:hover{background:#fed7d7}@media(max-width:768px){.specs-page{overflow-x:hidden}.specs-header{flex-direction:column;align-items:stretch;gap:.75rem}.specs-header h1{font-size:1.5rem}.specs-toolbar{flex-direction:row;justify-content:space-between}.specs-filters{flex-direction:column;flex:1;gap:.5rem}.search-input,.filter-select{width:100%}.tag-filter{max-width:none;width:100%}.specs-grid{grid-template-columns:1fr}.spec-card h3{font-size:1rem}.spec-list-item{padding:.625rem .75rem}.spec-list-item .spec-meta{flex-direction:column;align-items:flex-end;gap:.25rem}}.spec-editor{max-width:900px;margin:0 auto}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.back-button{padding:.5rem 1rem;background:#fff;border:1px solid #ddd;border-radius:8px;cursor:pointer;font-size:.9rem;color:#666;transition:all .2s}.back-button:hover{border-color:#667eea;color:#667eea}.editor-actions{display:flex;gap:.75rem}.save-button{padding:.625rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;transition:transform .2s,box-shadow .2s}.save-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.save-button:disabled{opacity:.7;cursor:not-allowed}.success-message{background:#f0fff4;color:#276749;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;border:1px solid #68d391}.loading{text-align:center;padding:3rem;color:#666}.editor-content{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000000d}.form-row{display:flex;gap:1rem;margin-bottom:1rem}.form-group{flex:1}.form-group label{display:block;font-weight:500;color:#333;margin-bottom:.5rem;font-size:.9rem}.project-input,.status-select{width:100%;padding:.75rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:.95rem}.project-input:focus,.status-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.status-select{background:#fff;cursor:pointer}.title-input{width:100%;padding:.875rem 1rem;border:1px solid #ddd;border-radius:8px;font-size:1.25rem;font-weight:600;margin-bottom:1rem}.title-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.tags-section{margin-bottom:1rem}.tags-label{display:block;font-size:.875rem;font-weight:500;color:#555;margin-bottom:.5rem}.tags-input-row{display:flex;gap:.5rem;margin-bottom:.75rem}.tag-input{flex:1;max-width:200px;padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.9rem}.tags-list{display:flex;gap:.5rem;flex-wrap:wrap}.tag{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:#f0f0f0;color:#555;border-radius:20px;font-size:.85rem}.tag button{background:none;border:none;color:#999;cursor:pointer;padding:0;font-size:.75rem;line-height:1}.tag button:hover{color:#e53e3e}.editor-wrapper{display:flex;flex-direction:column}.content-textarea{width:100%;min-height:400px;padding:1rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;line-height:1.6;font-family:Monaco,Menlo,Consolas,monospace;resize:vertical}.content-textarea.with-toolbar{border-radius:0 0 8px 8px;border-top-color:#ddd}.content-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.content-textarea.with-toolbar:focus{border-top-color:#667eea}.content-textarea::placeholder{color:#999}.upload-indicator{text-align:center;padding:.5rem;color:#667eea;font-size:.9rem;background:#f0f4ff;border-radius:6px;margin-top:.5rem}@media(max-width:768px){.editor-header{flex-direction:column;gap:1rem;align-items:stretch}.editor-actions{justify-content:flex-end}.form-row{flex-direction:column}}.search-page{max-width:900px;margin:0 auto}.search-header{margin-bottom:1.5rem}.search-header h1{margin:0;font-size:1.75rem;color:#333}.search-form{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 2px 8px #0000000d;margin-bottom:1rem}.search-row{display:flex;gap:.75rem;margin-bottom:.75rem}.search-input{flex:1;padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.875rem}.search-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.search-button{padding:.5rem 1.25rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;font-size:.875rem;transition:transform .2s,box-shadow .2s}.search-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.search-button:disabled{opacity:.7;cursor:not-allowed}.filter-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.type-filter{display:flex;align-items:center;gap:.5rem}.type-filter label{font-weight:500;color:#555;font-size:.875rem}.type-options{display:flex;gap:.25rem;background:#f5f5f5;border-radius:6px;padding:.2rem}.type-options button{padding:.375rem .75rem;background:transparent;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;transition:all .2s}.type-options button:hover{background:#e8e8e8}.type-options button.active{background:#667eea;color:#fff}.tag-filter{flex:1;min-width:150px;max-width:280px}.tag-input{padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.9rem;width:150px}.tag-input:focus{outline:none;border-color:#667eea}.add-tag-btn{padding:.5rem 1rem;background:#f0f0f0;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .2s}.add-tag-btn:hover{background:#e0e0e0}.active-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}.active-tag{display:inline-flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#667eea;color:#fff;border-radius:20px;font-size:.85rem}.active-tag button{background:none;border:none;color:#fff;cursor:pointer;padding:0;font-size:.8rem;opacity:.8}.active-tag button:hover{opacity:1}.error-message{background:#fff5f5;color:#c53030;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;border:1px solid #fc8181}.search-results{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000d;overflow:hidden}.results-header{padding:1rem 1.5rem;background:#f8f9fa;border-bottom:1px solid #eee}.results-count{font-size:.9rem;color:#666}.no-results{padding:3rem;text-align:center}.no-results p{margin:0;color:#666}.no-results-hint{margin-top:.5rem!important;font-size:.9rem;color:#999!important}.results-list{padding:.5rem}.result-item{padding:1.25rem;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .2s}.result-item:last-child{border-bottom:none}.result-item:hover{background:#f8f9fa}.result-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.type-badge{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.75rem;font-weight:500;text-transform:capitalize}.type-note{background:#e0e7ff;color:#3730a3}.type-spec{background:#fce7f3;color:#9d174d}.result-project{font-size:.85rem;color:#667eea;font-weight:500}.status-badge{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.75rem;font-weight:500;text-transform:capitalize}.status-draft{background:#fef3c7;color:#92400e}.status-review{background:#dbeafe;color:#1e40af}.status-final{background:#d1fae5;color:#065f46}.result-item h3{margin:0 0 .5rem;font-size:1.1rem;color:#333}.result-summary{margin:0 0 .75rem;color:#666;font-size:.9rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.result-footer{display:flex;justify-content:space-between;align-items:center}.result-tags{display:flex;gap:.375rem;flex-wrap:wrap}.tag{display:inline-block;padding:.25rem .625rem;background:#f0f0f0;color:#555;border-radius:12px;font-size:.8rem}.result-date{font-size:.8rem;color:#999}@media(max-width:768px){.search-form{padding:.75rem}.search-row{flex-direction:column;gap:.5rem}.search-input{width:100%}.filter-row{flex-direction:column;align-items:stretch;gap:.5rem}.type-filter{flex-direction:row;justify-content:space-between;width:100%}.type-options{flex:1;justify-content:flex-end}.tag-filter{max-width:none;width:100%}}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:#f5f7fa}.loading-spinner{width:40px;height:40px;border:3px solid #e0e0e0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen p{margin-top:1rem;color:#666}.placeholder-page{text-align:center;padding:3rem}.placeholder-page h1{color:#333;margin-bottom:.5rem}.placeholder-page p{color:#666}
