:root { --bg: #f8fafc; --surface: #ffffff; --border: #e2e8f0; --text: #0f172a; --muted: #64748b; --primary: #2563eb; --primary-hover: #1d4ed8; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
.brand span { color: var(--primary); }
.search-box { flex: 1; max-width: 420px; margin: 0 24px; }
.search-box input { width: 100%; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; outline: none; }
.search-box input:focus { border-color: var(--primary); background: #fff; }
.btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.layout { max-width: 1180px; margin: 28px auto; padding: 0 24px; display: grid; grid-template-columns: 230px 1fr; gap: 24px; }
aside { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: fit-content; }
.nav-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 4px; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.badge { font-size: 12px; color: var(--muted); background: var(--bg); padding: 1px 7px; border-radius: 999px; }
.quota { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--border); border-radius: 999px; margin: 8px 0; overflow: hidden; }
.bar-fill { width: 64%; height: 100%; background: var(--primary); }
main { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar h1 { margin: 0; font-size: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 12px; border-bottom: 1px solid #f1f5f9; }
tr:hover td { background: #f8fafc; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; }
.tag-img { background: #ecfdf5; color: #059669; }
.tag-doc { background: #eff6ff; color: #2563eb; }
.tag-zip { background: #fef3c7; color: #b45309; }
.tag-vid { background: #f3e8ff; color: #7e22ce; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin: 36px 0 24px; }
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); align-items: center; justify-content: center; z-index: 50; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 360px; box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
.modal h2 { margin: 0 0 8px; font-size: 18px; }
.modal p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.modal input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.modal-err { color: #dc2626; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
@media (max-width: 780px) { .layout { grid-template-columns: 1fr; } .search-box { display: none; } }
