@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";#nprogress{pointer-events:none}#nprogress .bar{z-index:1031;background:#29d;width:100%;height:2px;position:fixed;top:0;left:0}#nprogress .peg{opacity:1;width:100px;height:100%;display:block;position:absolute;right:0;transform:rotate(3deg)translateY(-4px);box-shadow:0 0 10px #29d,0 0 5px #29d}#nprogress .spinner{z-index:1031;display:block;position:fixed;top:15px;right:15px}#nprogress .spinner-icon{box-sizing:border-box;border:2px solid #0000;border-color:#29d #0000 #0000 #29d;border-radius:50%;width:18px;height:18px;animation:.4s linear infinite nprogress-spinner}.nprogress-custom-parent{position:relative;overflow:hidden}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--bg-body:#1a1a1a;--bg-surface:#222;--bg-surface-2:#2a2a2a;--bg-hover:#333;--bg-active:#3a3a3a;--bg-input:#1a1a1a;--text-primary:#e8e8e8;--text-secondary:#999;--text-muted:#666;--accent:#005eb8;--accent-hover:#00478f;--folder-color:#f0b232;--border:#333;--border-hover:#444;--success:#2ea043;--warning:#d29922;--danger:#d4382c;--info:#388bfd;--radius:4px;--radius-md:6px;--radius-lg:8px;--file-grid:24px 1fr 160px 120px 100px 80px 70px}*{box-sizing:border-box;margin:0;padding:0}html{font-size:14px}body{background:var(--bg-body);color:var(--text-primary);-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button{cursor:pointer;color:inherit;background:0 0;border:none;font-family:inherit}input,textarea,select{background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-md);outline:none;width:100%;padding:8px 12px;font-family:inherit;font-size:.93rem;transition:border-color .15s}input:focus,textarea:focus,select:focus{border-color:var(--accent)}input::placeholder,textarea::placeholder{color:var(--text-muted)}input[type=radio],input[type=checkbox]{width:auto;accent-color:var(--accent);flex-shrink:0;padding:0}input[type=file]{cursor:pointer;padding:6px 8px;font-size:.85rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#444;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.app-layout{height:100vh;display:flex;overflow:hidden}.sidebar{background:var(--bg-surface);border-right:1px solid var(--border);flex-direction:column;align-items:center;gap:4px;width:52px;min-width:52px;padding:12px 0;display:flex}.sidebar-icon{border-radius:var(--radius-md);width:36px;height:36px;color:var(--text-secondary);justify-content:center;align-items:center;transition:all .15s;display:flex;position:relative}.sidebar-icon:hover{background:var(--bg-hover);color:var(--text-primary)}.sidebar-icon.active{color:var(--accent)}.sidebar-icon.active:before{content:"";background:var(--accent);border-radius:0 2px 2px 0;width:3px;height:20px;position:absolute;top:50%;left:-6px;transform:translateY(-50%)}.sidebar-logo{background:var(--accent);border-radius:var(--radius-md);color:#fff;justify-content:center;align-items:center;width:36px;height:36px;margin-bottom:16px;font-size:.8rem;font-weight:700;display:flex}.sidebar-spacer{flex:1}.main-content{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.content-area{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.topbar{background:var(--bg-surface);border-bottom:1px solid var(--border);align-items:center;gap:12px;min-height:50px;padding:10px 20px;display:flex}.topbar-search{background:var(--bg-body);border:1px solid var(--border);border-radius:var(--radius-lg);flex:1;align-items:center;gap:8px;max-width:500px;padding:0 12px;display:flex}.topbar-search svg{color:var(--text-muted);flex-shrink:0}.topbar-search input{background:0 0;border:none;padding:7px 0;font-size:.93rem}.topbar-search input:focus{box-shadow:none}.topbar-right{align-items:center;gap:8px;margin-left:auto;display:flex}.breadcrumb-bar{border-bottom:1px solid var(--border);background:var(--bg-surface);align-items:center;gap:2px;min-height:38px;padding:8px 20px;font-size:.93rem;display:flex}.bc-item{border-radius:var(--radius);color:var(--text-secondary);cursor:pointer;white-space:nowrap;align-items:center;padding:2px 6px;font-weight:450;transition:all .12s;display:inline-flex}.bc-item:hover{color:var(--text-primary);background:var(--bg-hover)}.bc-item.current{color:var(--text-primary);cursor:default;font-weight:500}.bc-item.current:hover{background:0 0}.bc-sep{color:var(--text-muted);margin:0 2px;font-size:.75rem}.toolbar{border-bottom:1px solid var(--border);background:var(--bg-surface);align-items:center;gap:8px;padding:8px 20px;display:flex}.toolbar-spacer{flex:1}.file-list-container{flex:1;overflow-y:auto}.file-list-header{grid-template-columns:var(--file-grid);color:var(--text-muted);border-bottom:1px solid var(--border);background:var(--bg-surface);z-index:2;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;padding:6px 20px;font-size:.78rem;font-weight:500;display:grid;position:sticky;top:0}.file-list-header span{align-items:center;gap:4px;display:flex}.file-list-header .col-actions{text-align:right}.file-list-header .sortable{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s}.file-list-header .sortable:hover{color:var(--text-primary)}.file-list-header .sortable.active{color:var(--accent)}.file-row{grid-template-columns:var(--file-grid);border-bottom:1px solid var(--border);align-items:center;gap:8px;min-height:44px;padding:6px 20px;transition:background .1s;display:grid}.file-row:hover{background:var(--bg-hover)}.file-row .col-name{cursor:default;align-items:center;gap:10px;min-width:0;display:flex}.file-row.folder-row .col-name{cursor:pointer}.file-row .col-name .f-icon{flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:flex}.file-row .col-name .f-icon.folder-icon{color:var(--folder-color)}.file-row .col-name .f-icon.pdf-icon{color:#ef4444}.file-row .col-name .f-icon.img-icon{color:#22c55e}.file-row .col-name .f-icon.doc-icon{color:#3b82f6}.file-row .col-name .f-icon.sheet-icon{color:#10b981}.file-row .col-name .f-icon.generic-icon{color:var(--text-muted)}.file-row .col-name .f-label{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:.93rem;font-weight:450;overflow:hidden}.file-row.folder-row .col-name .f-label{color:var(--text-primary)}.file-row .col-date,.file-row .col-type,.file-row .col-size,.file-row .col-filesize{color:var(--text-secondary);white-space:nowrap;font-size:.85rem}.file-row .col-actions{opacity:0;justify-content:flex-end;align-items:center;gap:2px;transition:opacity .12s;display:flex}.file-row:hover .col-actions{opacity:1}.col-checkbox{justify-content:center;align-items:center;display:flex}.btn{border-radius:var(--radius-md);white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:6px 14px;font-size:.85rem;font-weight:500;transition:all .12s;display:inline-flex}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-outline{border:1px solid var(--border);color:var(--text-secondary)}.btn-outline:hover{background:var(--bg-hover);border-color:var(--border-hover);color:var(--text-primary)}.btn-ghost{color:var(--text-muted);border-radius:var(--radius);padding:5px}.btn-ghost:hover{background:var(--bg-hover);color:var(--text-primary)}.btn-sm{padding:4px 10px;font-size:.8rem}.btn-danger{color:var(--danger)}.btn-danger:hover{background:#d4382c1a}.badge{letter-spacing:.01em;border-radius:10px;align-items:center;padding:2px 8px;font-size:.72rem;font-weight:600;display:inline-flex}.badge-draft{color:#999;background:#6663}.badge-review{color:var(--info);background:#388bfd26}.badge-approved{color:var(--success);background:#2ea04326}.badge-obsolete,.badge-expired{color:var(--danger);background:#d4382c26}.badge-expiring{color:var(--warning);background:#d2992226}.badge-active{color:var(--success);background:#2ea04326}.modal-overlay{z-index:100;background:#000000a6;justify-content:center;align-items:center;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.modal-box{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:460px;max-width:92%;animation:.2s slideUp}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.modal-head h2{font-size:1rem;font-weight:600}.modal-body{padding:18px}.modal-foot{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:12px 18px;display:flex}.modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.modal-header h2{font-size:1rem;font-weight:600}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.radio-group{gap:20px;margin-top:6px;display:flex}.radio-option{cursor:pointer;color:var(--text-secondary);-webkit-user-select:none;user-select:none;align-items:center;gap:7px;font-size:.9rem;font-weight:400;display:flex}.radio-option input[type=radio]{margin:0}.radio-option.selected{color:var(--text-primary);font-weight:500}.viewer-overlay{z-index:200;background:#000000e6;flex-direction:column;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.viewer-bar{background:var(--bg-surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:8px 16px;display:flex}.viewer-bar h3{white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:500;overflow:hidden}.viewer-content{flex:1;justify-content:center;align-items:center;display:flex;overflow:hidden}.viewer-content iframe{border:none;width:100%;height:100%}.viewer-content img{object-fit:contain;max-width:100%;max-height:100%}.form-group{flex-direction:column;gap:4px;display:flex}.form-group+.form-group{margin-top:12px}.form-label{color:var(--text-secondary);font-size:.82rem;font-weight:500}.form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:20px;display:grid}.stat-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px}.stat-card .stat-label{color:var(--text-muted);margin-bottom:4px;font-size:.78rem;font-weight:500}.stat-card .stat-value{font-size:1.75rem;font-weight:700;line-height:1.2}.detail-panel{background:var(--bg-surface);border-left:1px solid var(--border);flex-direction:column;width:320px;min-width:320px;min-height:0;display:flex;overflow-y:auto}.detail-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.detail-head h3{font-size:.95rem;font-weight:600}.detail-body{padding:16px}.detail-row{border-bottom:1px solid var(--border);justify-content:space-between;padding:6px 0;font-size:.85rem;display:flex}.detail-row .detail-key{color:var(--text-muted)}.detail-row .detail-val{color:var(--text-primary);text-align:right;font-weight:450}.detail-section-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-top:16px;margin-bottom:6px;font-size:.72rem;font-weight:600}.revision-item{border-bottom:1px solid var(--border);padding:8px 0;font-size:.82rem}.revision-item .rev-header{justify-content:space-between;align-items:center;display:flex}.revision-item .rev-desc{color:var(--text-muted);margin-top:2px}.empty-state{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;padding:60px 20px;display:flex}.empty-state svg{opacity:.25;margin-bottom:12px}.empty-state p{font-size:.9rem}.empty-state .sub{margin-top:4px;font-size:.8rem}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (width<=1200px){:root{--file-grid:24px 1fr 150px 100px 80px 70px}.file-list-header .col-type,.file-row .col-type{display:none}}@media (width<=980px){:root{--file-grid:24px 1fr 100px 80px 70px}.file-list-header .col-date,.file-row .col-date{display:none}.detail-panel{z-index:150;width:340px;max-width:88vw;position:fixed;top:0;bottom:0;right:0;box-shadow:-6px 0 24px #00000073}}@media (width<=680px){.topbar{flex-wrap:wrap;gap:8px}.topbar-search{flex-basis:100%;order:2;max-width:none}.topbar-right{flex-wrap:wrap;margin-left:0}:root{--file-grid:24px 1fr 70px 70px}.file-list-header .col-size,.file-row .col-size{display:none}.file-row,.file-list-header{padding-left:12px;padding-right:12px}.file-row{min-height:52px}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=420px){.stats-grid{grid-template-columns:1fr}}.mobile-menu-btn{z-index:210;border-radius:var(--radius-md);background:var(--bg-surface);border:1px solid var(--border);width:38px;height:38px;color:var(--text-primary);justify-content:center;align-items:center;display:none;position:fixed;top:8px;left:8px}.sidebar-backdrop{z-index:199;background:#00000080;animation:.15s fadeIn;display:none;position:fixed;inset:0}@media (width<=768px){.sidebar{z-index:200;transition:transform .2s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.sidebar-open{transform:translate(0);box-shadow:4px 0 18px #00000073}.sidebar-backdrop{display:block}.mobile-menu-btn{display:inline-flex}.topbar{padding-left:54px}}.context-menu{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg);z-index:1000;min-width:180px;padding:6px;animation:.1s fadeIn;position:fixed;box-shadow:0 4px 12px #00000080}.context-item{color:var(--text-primary);border-radius:var(--radius-md);cursor:pointer;align-items:center;gap:10px;padding:8px 12px;font-size:.85rem;transition:background .1s;display:flex}.context-item:hover{background:var(--bg-hover)}.context-item.danger{color:var(--danger)}.context-item.danger:hover{background:#d4382c1a}.context-sep{background:var(--border);height:1px;margin:4px 0}.selection-bar{background:var(--accent);color:#fff;z-index:50;border-radius:30px;align-items:center;gap:16px;padding:10px 20px;font-size:.9rem;font-weight:500;animation:.2s slideUp;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #d4382c66}.selection-bar .btn-ghost{color:#fff;opacity:.8}.selection-bar .btn-ghost:hover{opacity:1;background:#ffffff1a}.custom-checkbox{border:1px solid var(--text-muted);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;width:16px;height:16px;transition:all .1s;display:flex}.custom-checkbox.checked{background:var(--accent);border-color:var(--accent);color:#fff}.file-row:hover .custom-checkbox{border-color:var(--text-primary)}.file-row .custom-checkbox{opacity:0}.file-row:hover .custom-checkbox,.file-row .custom-checkbox.checked,.file-list-header .custom-checkbox{opacity:1}.dropzone-overlay{border:2px dashed var(--accent);border-radius:var(--radius-lg);z-index:1000;pointer-events:none;background:#222222d9;flex-direction:column;justify-content:center;align-items:center;animation:.1s fadeIn;display:flex;position:absolute;inset:0}.dropzone-overlay .drop-text{color:var(--text-primary);margin-top:16px;font-size:1.5rem;font-weight:600}.rubber-band{background:#005eb826;border:1px solid #005eb880;border-radius:2px}.transfer-panel{z-index:500;color:#e3e3e3;background:#2d2e30;border-radius:8px 8px 0 0;flex-direction:column;width:320px;font-family:Inter,sans-serif;transition:transform .3s cubic-bezier(.16,1,.3,1);display:flex;position:fixed;bottom:0;right:24px;overflow:hidden;box-shadow:0 4px 16px #00000080}.transfer-panel.minimized{transform:translateY(calc(100% - 48px))}.transfer-header{cursor:pointer;-webkit-user-select:none;user-select:none;background:#2d2e30;justify-content:space-between;align-items:center;height:48px;padding:12px 16px;display:flex}.transfer-title{color:#f1f3f4;font-size:.95rem;font-weight:500}.transfer-controls{align-items:center;gap:8px;display:flex}.transfer-controls .icon-btn{color:#9aa0a6;border-radius:50%;padding:4px;transition:background .2s,color .2s}.transfer-controls .icon-btn:hover{color:#f1f3f4;background:#ffffff1a}.transfer-list{background:#1e1f22;flex-direction:column;max-height:340px;display:flex;overflow-y:auto}.transfer-item{border-bottom:1px solid #ffffff0f;align-items:flex-start;gap:12px;padding:12px 16px;display:flex}.transfer-item-icon{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;margin-top:2px;display:flex}.transfer-item-icon.upload{color:#8ab4f8;background:#4285f426}.transfer-item-icon.download{color:#81c995;background:#81c99526}.transfer-item-info{flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex}.transfer-item-name{color:#f1f3f4;white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:450;overflow:hidden}.transfer-item-label{color:#9aa0a6;margin-top:2px;font-size:.72rem}.transfer-item-status-icon{flex-shrink:0;justify-content:center;align-items:center;display:flex}.transfer-item-status-icon .success{color:#81c995}.transfer-item-status-icon .failed{color:#f28b82}.transfer-item-progress-bg{background:#ffffff14;border-radius:2px;width:100%;height:4px;margin-top:6px;overflow:hidden}.transfer-item-progress-fill{border-radius:2px;height:100%;transition:width .2s ease-out}.transfer-item-progress-fill.upload{background:#8ab4f8}.transfer-item-progress-fill.download{background:#81c995}.transfer-item-size{color:#9aa0a6;margin-top:4px;font-size:.72rem}.transfer-item-status{margin-top:4px;font-size:.75rem;font-weight:500}.transfer-item-status.success{color:#81c995}.transfer-item-status.failed{color:#f28b82}.transfer-item-progress-fill.indeterminate{animation:1.5s ease-in-out infinite indeterminate}@keyframes indeterminate{0%{width:40%;transform:translate(-100%)}50%{width:60%;transform:translate(100%)}to{width:40%;transform:translate(-100%)}}@keyframes spin{to{transform:rotate(360deg)}}.api-key-display{transition:all .15s}.api-key-display:hover{border-color:var(--border-hover)!important}.api-usage-card code{background:var(--bg-body);border-radius:4px;padding:2px 6px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.8rem}@media (width<=768px){.api-usage-card{overflow-x:auto}}#nprogress .bar{background:var(--accent)!important;height:3px!important}#nprogress .peg{box-shadow:0 0 10px var(--accent), 0 0 5px var(--accent)!important}
