:root{color-scheme:light;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;color:#24312f;background:#f4f6f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(90deg,rgba(20,113,106,.05),transparent 34%),linear-gradient(180deg,#f8faf9,#eff3f2)}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;gap:22px;padding:22px 16px;color:#f8faf9;background:#262b29}.brand{display:flex;align-items:center;gap:12px;min-height:54px}.brand-mark,.auth-icon,.file-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;color:#fff;background:#14716a}.brand strong{display:block;font-size:18px}.brand span{display:block;color:#becac7;font-size:12px}.sidebar nav{display:grid;gap:8px}.sidebar nav button,.sidebar-status{border-radius:8px;color:#e7ecea;background:#ffffff0f}.sidebar nav button{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;text-align:left}.sidebar nav button.active{color:#fff;background:#14716a}.sidebar-status{display:grid;gap:10px;margin-top:auto;padding:12px}.status-line{display:flex;align-items:center;gap:8px;color:#dce5e2;font-size:13px}.main{min-width:0;padding:24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.topbar h1{margin:0;color:#1c2725;font-size:28px;font-weight:700}.topbar p{margin:4px 0 0;color:#697773;font-size:14px}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.toast{max-width:360px;padding:9px 12px;overflow:hidden;border:1px solid #f2c5b6;border-radius:8px;color:#8a2d1d;background:#fff6f1;text-overflow:ellipsis;white-space:nowrap}.content-grid{display:grid;gap:16px;align-items:start}.accounts-grid{grid-template-columns:minmax(420px,1fr) minmax(420px,520px)}.settings-grid{grid-template-columns:repeat(2,minmax(420px,1fr))}.material-grid{grid-template-columns:1fr}.panel{min-width:0;border:1px solid #dde5e2;border-radius:8px;background:#ffffffeb;box-shadow:0 10px 28px #37444012}.account-list,.detail-panel,.folder-panel,.settings-panel{padding:16px}.panel-head,.panel-title-row,.subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel h2,.subsection-head h2{margin:0;color:#263330;font-size:17px}.search-box{display:flex;align-items:center;gap:8px;min-width:0;flex:1;height:40px;padding:0 12px;border:1px solid #d8e1dd;border-radius:8px;color:#687772;background:#fff}.search-box input{width:100%;min-width:0;border:0;outline:0;color:#24312f;background:transparent}.primary-button,.ghost-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 13px;border-radius:8px;white-space:nowrap}.primary-button{color:#fff;background:#14716a}.primary-button:hover{background:#0f5f5a}.ghost-button{border:1px solid #d8e1dd;color:#263330;background:#fff}.ghost-button:hover{background:#f3f7f5}.danger-icon,.ghost-icon,.row-actions button,.timeline-item button,.material-actions button,.category-actions button,.password-field button{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;color:#596864;background:#f1f5f3}.danger-icon:hover,.row-actions button:hover,.timeline-item button:hover,.material-actions button:hover,.category-actions button:hover{color:#9d2f25;background:#fff0ed}.table-wrap{width:100%;overflow-x:auto}table{width:100%;min-width:620px;border-collapse:collapse}th,td{padding:12px 10px;border-bottom:1px solid #edf1ef;text-align:left;vertical-align:top}th{color:#66736f;font-size:12px;font-weight:700}td{color:#263330;font-size:14px}td small{display:block;margin-top:2px;color:#7a8783;font-size:12px}tbody tr{transition:background .16s ease}.account-list tbody tr{cursor:pointer}tbody tr:hover,.selected-row{background:#f0f8f6}.wide-cell{min-width:260px}.row-actions{display:flex;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:18px;border-bottom:1px solid #edf1ef}.single-form,.chat-form{display:grid;gap:12px}.chat-form{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}label{display:grid;gap:6px;min-width:0;color:#5f6d69;font-size:13px;font-weight:650}input,select,textarea{width:100%;min-width:0;border:1px solid #d8e1dd;border-radius:8px;color:#24312f;background:#fff}input,select{height:38px;padding:0 10px}textarea{min-height:76px;padding:10px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#14716a;outline:3px solid rgba(20,113,106,.12)}.span-2{grid-column:span 2}.password-field{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px}.password-field input{min-width:0}.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.subsection-head{margin-top:18px}.timeline{display:grid;gap:10px;max-height:480px;overflow:auto;padding-right:2px}.timeline-item,.material-item{border:1px solid #e1e8e5;border-radius:8px;background:#fff}.timeline-item{display:grid;gap:8px;padding:12px}.timeline-item>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.timeline-item strong,.material-item strong{min-width:0;overflow-wrap:anywhere;color:#1f2c29}.timeline-item span,.material-item span,.material-item small{color:#73807c;font-size:13px}.timeline-item p,.material-item p{margin:0;color:#46524f;overflow-wrap:anywhere}.timeline-item footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.timeline-item time{color:#798682;font-size:12px}.status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;color:#315a65;background:#e9f4f6;font-size:12px;font-weight:700;white-space:nowrap}.status.ok{color:#19633c;background:#e7f6eb}.status.warn{color:#7c4a12;background:#fff3da}.status.muted{color:#66736f;background:#eef1ef}.empty-state,.loading{display:grid;place-items:center;min-height:180px;color:#74817d}.folder-list{display:flex;gap:8px;min-width:0;margin-bottom:0;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}.folder{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:36px;padding:0 12px;border-radius:8px;color:#35413e;background:#f2f6f4;text-align:left;white-space:nowrap}.active-folder{color:#fff;background:#14716a}.category-actions{display:grid;gap:6px;margin-top:14px}.settings-form-head{margin:18px 0 12px;padding-top:14px;border-top:1px solid #edf1ef}.settings-form-head h2{margin:0;font-size:15px}.settings-category-list{max-height:290px;overflow:auto;padding-right:2px}.category-actions div{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;gap:6px;align-items:center;min-height:36px;color:#4d5a56;font-size:13px}.category-actions span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-head{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 16px;border-bottom:1px solid #edf1ef}.folder-panel{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.folder-panel .panel-title-row{margin-bottom:0}.folder-panel .ghost-icon{display:none}.album-head h2{margin:0;font-size:17px}.album-head span{display:block;margin-top:2px;color:#74817d;font-size:13px}.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:12px;padding:16px}.album-tile{position:relative;min-width:0;overflow:hidden;border:1px solid #dde5e2;border-radius:8px;background:#fff;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}.album-tile:hover,.album-tile:focus-visible{border-color:#14716a;outline:0;box-shadow:0 12px 24px #14716a24;transform:translateY(-1px)}.album-thumb{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:#e9efec}.album-thumb img,.album-thumb video{display:block;width:100%;height:100%;object-fit:cover}.album-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#14716a;background:#e7f4f1}.album-meta{display:grid;gap:2px;padding:9px 10px 10px}.album-meta strong,.album-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-meta strong{color:#263330;font-size:13px}.album-meta span{color:#74817d;font-size:12px}.album-actions{position:absolute;top:8px;right:8px;display:flex;gap:6px;opacity:0;transition:opacity .16s ease}.album-tile:hover .album-actions,.album-tile:focus-within .album-actions{opacity:1}.album-actions button{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:#fff;background:#1f2c29b8}.album-actions button:hover{background:#14716a}.preview-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#fff;background:#0e1312f0}.upload-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:18;display:grid;place-items:center;padding:24px;background:#1f2c296b}.upload-dialog{width:min(560px,100%);overflow:hidden;border:1px solid #dce5e2;border-radius:8px;color:#263330;background:#fff;box-shadow:0 22px 54px #1f2c292e}.upload-dialog-head,.upload-dialog-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.upload-dialog-head{border-bottom:1px solid #edf1ef}.upload-dialog-head h2{margin:0;font-size:18px}.upload-dialog-head span,.upload-dialog-bottom span{display:block;margin-top:2px;color:#74817d;font-size:13px}.upload-dialog-head button{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;color:#596864;background:#f1f5f3}.upload-dialog-head button:hover{color:#1f2c29;background:#e7eeeb}.upload-dialog-form{display:grid;gap:12px;padding:16px}.upload-dialog-bottom{border-top:1px solid #edf1ef}.upload-dialog-bottom div{display:flex;gap:10px}.preview-top,.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:14px 18px}.preview-top strong,.preview-top span,.preview-bottom span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-top strong{font-size:16px}.preview-top span,.preview-bottom span{color:#cbd5d2;font-size:13px}.preview-top button,.preview-bottom button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border-radius:8px;color:#fff;background:#ffffff1f}.preview-top button{width:38px}.preview-bottom div{display:flex;gap:10px}.preview-bottom button{padding:0 13px}.preview-top button:hover,.preview-bottom button:hover{background:#fff3}.preview-stage{display:grid;place-items:center;min-width:0;min-height:0;padding:10px 18px}.preview-stage img,.preview-stage video{display:block;max-width:100%;max-height:100%;border-radius:8px;object-fit:contain}.preview-file,.preview-loading{display:grid;place-items:center;gap:12px;color:#e7ecea}.preview-file strong{max-width:min(520px,80vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-screen{display:grid;place-items:center;min-height:100vh;padding:24px;background:#f4f6f5}.auth-panel{display:grid;gap:16px;width:min(420px,100%);padding:28px;border:1px solid #dce5e2;border-radius:8px;background:#fff;box-shadow:0 18px 38px #3744401a}.auth-panel h1{margin:0;color:#1f2c29;font-size:24px}.form-error{margin:0;color:#9d2f25}@media(max-width:1180px){.accounts-grid,.settings-grid,.material-grid{grid-template-columns:1fr}}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:2;padding:12px}.brand,.sidebar-status{display:none}.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar nav button{justify-content:center;min-height:40px;padding:0 8px;font-size:13px}.main{padding:16px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%;justify-content:space-between}.toast{max-width:100%}.panel-head{align-items:stretch;flex-direction:column}.form-grid,.chat-form{grid-template-columns:1fr}.span-2{grid-column:span 1}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.album-actions{opacity:1}.preview-top,.preview-bottom{align-items:flex-start;flex-direction:column}.preview-bottom div{width:100%}.preview-bottom button{flex:1}}
