:root{color:#17211b;background:#f6f2ea;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.appShell{min-height:100vh}.topbar{z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#f6f2eae6;border-bottom:1px solid #ded5c6;justify-content:space-between;align-items:center;gap:24px;padding:18px 36px;display:flex;position:sticky;top:0}.brand{letter-spacing:0;font-weight:800}.topbar nav{color:#526257;flex-wrap:wrap;gap:16px;display:flex}main{width:min(1120px,100vw - 32px);margin:0 auto;padding:34px 0 64px}.homeHero{grid-template-columns:minmax(0,1.2fr) 360px;align-items:center;gap:32px;min-height:440px;display:grid}.eyebrow{color:#8d5436;margin:0 0 12px;font-weight:700}h1{margin:0;font-size:52px;line-height:1.05}h2{margin:0 0 12px}.subtitle{color:#526257;max-width:650px;font-size:18px;line-height:1.8}.helperText,.notice{color:#657267;margin:8px 0 0;line-height:1.7}.notice{background:#fff;border:1px solid #e5dccd;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:14px;display:flex}.actions,.sectionTitle{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.button{color:#17211b;cursor:pointer;background:#fffaf1;border:1px solid #b7aa98;border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:0 18px;display:inline-flex}.button.primary{color:#fff;background:#246b4a;border-color:#246b4a}.button.danger{color:#9b2f22;background:#fff5f1;border-color:#b94a3a}.coverPanel{aspect-ratio:4/5;color:#fff;background:#244237;border-radius:8px;flex-direction:column;justify-content:flex-end;padding:28px;display:flex;box-shadow:0 20px 60px #24423738}.coverPanel span{color:#e8c987;font-size:24px}.coverPanel strong{margin:8px 0;font-size:38px;line-height:1.15}.coverPanel small{line-height:1.7}.cardGrid,.statsGrid,.adminGrid,.fileGrid{gap:16px;display:grid}.cardGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.infoCard,.toolPanel,.gateBox,.stat,.letterNote{background:#fffaf1;border:1px solid #ded5c6;border-radius:8px;padding:22px}.infoCard p,.msg,.empty,.letterNote span{color:#657267;line-height:1.7}.pageHeader{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.segmented{border:1px solid #b7aa98;border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{cursor:pointer;background:#fffaf1;border:0;padding:10px 18px}.segmented button.active{color:#fff;background:#246b4a}.searchModes{flex-wrap:wrap;width:fit-content;max-width:100%}.fileList,.letterList,.stackForm,.letterForm,.spaceList{gap:12px;display:grid}.privateUpload,.searchPanel{background:#fff;border:1px solid #e5dccd;border-radius:8px;gap:12px;margin-bottom:16px;padding:14px;display:grid}.privateUpload>div{gap:4px;display:grid}.privateUpload small{color:#657267}.uploadForm,.searchForm{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.fileGrid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.fileRow,.letterItem,.fileCard,.folderCard,.spaceItem{background:#fff;border:1px solid #e5dccd;border-radius:8px;gap:10px;padding:14px;display:grid}.folderCard{text-align:left;cursor:pointer;min-height:120px}.folderCard strong,.fileCard strong,.spaceItem strong{overflow-wrap:anywhere}.fileRow small,.letterItem span,.letterItem small,.fileInfo small,.folderCard small,.spaceItem small,.fileDescription,.historyItem small{color:#657267}.fileIcon,.imageThumb,.videoThumb{aspect-ratio:4/3;background:#f6f2ea;border:1px solid #e5dccd;border-radius:8px;width:100%}.fileIcon,.videoThumb{color:#8d5436;place-items:center;font-weight:700;display:grid}.imageThumb,.videoThumb{cursor:zoom-in;padding:0;overflow:hidden}.imageThumb img,.previewBox img,.previewBox video{object-fit:contain;width:100%;height:100%;display:block}.fileDescription{overflow-wrap:anywhere;margin:6px 0 0;line-height:1.6}.descriptionEditor,.descriptionHistory{gap:10px;display:grid}.descriptionEditor textarea{min-height:110px}.historyItem{background:#fffaf1;border:1px solid #e5dccd;border-radius:8px;gap:4px;padding:10px;display:grid}.historyItem p{overflow-wrap:anywhere;margin:0;line-height:1.6}.fileActions,.inlineForm{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.inlineForm input{flex:160px}.fullRow{grid-column:1/-1}.folderBar{margin-bottom:14px}.previewMask{z-index:20;background:#17211bad;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.previewBox{background:#fffaf1;border-radius:8px;gap:14px;width:min(920px,100%);max-height:calc(100vh - 48px);padding:16px;display:grid}.previewBox img,.previewBox video{background:#fff;border-radius:8px;max-height:calc(100vh - 150px)}.gatePage{place-items:center;min-height:65vh;display:grid}.gateBox{width:min(420px,100%)}.gateBox form,.stackForm{margin-top:18px}input,textarea,select{color:#17211b;background:#fff;border:1px solid #cfc5b7;border-radius:8px;width:100%;padding:12px 14px}textarea{resize:vertical;min-height:220px}.letterLayout{grid-template-columns:minmax(0,1fr) 320px;gap:18px;display:grid}.letterNote{align-content:start;gap:12px;display:grid}.letterNote strong{color:#8d5436;font-size:30px}.statsGrid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.stat span{font-size:30px;font-weight:800;display:block}.stat small{color:#657267}.adminGrid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}@media (width<=780px){.topbar{flex-direction:column;align-items:flex-start;padding:14px 16px}main{width:min(100% - 24px,1120px);padding-top:24px}.homeHero,.cardGrid,.letterLayout,.statsGrid,.adminGrid,.fileGrid{grid-template-columns:1fr}.homeHero{min-height:auto}h1{font-size:34px}.pageHeader,.notice{flex-direction:column;align-items:flex-start}.segmented,.segmented button,.actions .button,.fileActions .button,.fileActions a,.uploadForm .button,.searchForm .button,.inlineForm .button{width:100%}.segmented button{flex:1}.uploadForm,.searchForm{grid-template-columns:1fr}.coverPanel{aspect-ratio:16/10}.toolPanel,.gateBox,.infoCard,.stat,.letterNote{padding:16px}.previewMask{padding:10px}.previewBox{max-height:calc(100vh - 20px)}.previewBox img,.previewBox video{max-height:calc(100vh - 130px)}}
