:root{--navy:#102943;--blue:#1677ff;--line:#dbe4ef;--bg:#f3f6fb;--text:#172033}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif}
.top{height:66px;padding:0 28px;background:linear-gradient(110deg,#0b1d36,#163f70);display:flex;align-items:center;justify-content:space-between;color:#fff}
.brand{font-weight:900;color:#fff;text-decoration:none;letter-spacing:.04em}
.brand small{display:block;color:#bcd0e8;font-size:10px;margin-top:3px}
.top nav{display:flex;gap:6px}
.top nav a{color:#dceaff;text-decoration:none;padding:8px 11px;border-radius:8px;font-size:13px;font-weight:750}
.top nav a:hover{background:#ffffff18}
main{max-width:1320px;margin:auto;padding:24px}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.page-head span{color:#1677ff;font-size:11px;font-weight:900;letter-spacing:.12em}
.page-head h1{margin:4px 0;font-size:28px}
.page-head p{margin:0;color:#67748b}
.primary{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0d56a5,#1677ff);color:#fff!important;text-decoration:none;border:0;border-radius:9px;padding:11px 15px;font-weight:850;cursor:pointer}
.message{background:#e8f7f0;color:#087a50;border:1px solid #bce7d4;border-radius:10px;padding:11px 14px;margin-bottom:13px}
.upload{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;display:grid;grid-template-columns:1fr 1.25fr auto;gap:12px;align-items:end;box-shadow:0 5px 18px #1c35590d;margin-bottom:16px}
.upload label{display:block;font-size:11px;font-weight:850;color:#647189;margin-bottom:5px}
.upload input{width:100%;height:40px;border:1px solid #cbd7e6;border-radius:8px;padding:7px 10px}
.upload small{grid-column:1/-1;color:#758198}
.files{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.list-head{padding:13px 16px;background:#f8fafc;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}
.file{display:grid;grid-template-columns:62px 1fr auto;gap:13px;align-items:center;padding:13px 16px;border-bottom:1px solid #edf1f6}
.file:last-child{border-bottom:0}
.file-icon{width:52px;height:42px;display:grid;place-items:center;background:#eaf3ff;color:#0b62bf;border-radius:8px;font-size:11px;font-weight:900}
.file-info h2{font-size:15px;margin:0 0 4px}
.file-info p{font-size:11px;color:#768197;margin:0}
.actions{display:flex;gap:7px;align-items:center}
.actions a,.actions button{border:1px solid #cfd9e6;background:#fff;color:#33425a;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer}
.actions .download{background:#102943;color:#fff;border-color:#102943}
.actions form{margin:0}
.muted{font-size:10px;color:#8792a4}
.empty{text-align:center;padding:55px;color:#8490a3}
@media(max-width:760px){.top{height:auto;padding:12px 14px;display:block}
.top nav{margin-top:9px;overflow:auto}
.top nav a{white-space:nowrap}
main{padding:14px}
.page-head{display:block}
.page-head .primary{margin-top:12px}
.upload{grid-template-columns:1fr}
.file{grid-template-columns:48px 1fr}
.actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}
}
.storage{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 15px;margin-bottom:13px;display:grid;grid-template-columns:1fr auto;gap:7px 14px;align-items:center}
.message-error{background:#fff0f0;color:#b42318;border-color:#f3b7b2}
.storage div:first-child{display:flex;gap:12px;align-items:center}.storage span,.storage small{font-size:11px;color:#718097}.storage>strong{color:#176ac1}
.storage-bar{grid-column:1/-1;height:8px;background:#e8eef6;border-radius:10px;overflow:hidden}.storage-bar i{display:block;height:100%;background:linear-gradient(90deg,#22b8a7,#1677ff)}
.storage p{grid-column:1/-1;color:#b45400;margin:0;font-size:12px}.storage-warn{border-color:#f2bd79;background:#fffaf1}.storage-warn .storage-bar i{background:#ef8c18}
.upload{grid-template-columns:1fr .8fr 1.1fr .8fr auto}.upload input,.upload select{width:100%;height:40px;border:1px solid #cbd7e6;border-radius:8px;padding:7px 10px;background:#fff}
.list-head{align-items:center}.list-head small{color:#77849a;margin-left:5px}.sort-form{display:flex;align-items:center;gap:7px}.sort-form label{font-size:11px;color:#65738a;font-weight:800}.sort-form select{height:33px;border:1px solid #cbd7e6;border-radius:7px;background:#fff;padding:4px 8px}.pinned{background:#fffdf3;border-left:4px solid #f2b53d}.order-tools{display:flex;gap:5px;align-items:center;margin-top:7px}.order-tools input{height:30px;border:1px solid #cbd7e6;border-radius:6px;padding:3px 6px}.order-tools button{height:30px;border:1px solid #cbd7e6;border-radius:6px;background:#f8fafc;color:#344258;font-size:10px;font-weight:800;cursor:pointer}
@media(max-width:760px){.storage div:first-child{display:block}.upload{grid-template-columns:1fr}.list-head{align-items:flex-start;gap:8px}.sort-form{display:block}.sort-form label{display:block;margin-bottom:3px}.order-tools{flex-wrap:wrap}}
