:root { color-scheme: light; --navy: #102c3c; --teal: #176f70; --line: #d7e0e3; --muted: #60747d; --page: #f3f6f7; --white: #fff; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: var(--page); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(20px, calc((100vw - 1100px) / 2)); border-bottom: 1px solid var(--line); background: var(--white); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.content { width: min(1100px, calc(100% - 32px)); margin: 32px auto 70px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0 0 7px; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; }
h2 { margin: 0 0 14px; font-size: 20px; }
.vin { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.hint, .file-info span, small { color: var(--muted); }
.hint { max-width: 760px; margin: 0 0 24px; }
.folder, .admin-section, .auth-card { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 5px 18px rgb(16 44 60 / 5%); }
.files, .document-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 12px; }
.file { display: flex; min-width: 0; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.image-preview { width: 108px; height: 84px; flex: none; border-radius: 7px; object-fit: cover; background: #e8edef; }
.video-preview { width: 190px; max-width: 42%; aspect-ratio: 16 / 9; flex: none; border-radius: 7px; background: #10171c; }
.pdf-preview { width: 190px; height: 150px; flex: none; border: 1px solid var(--line); border-radius: 7px; }
.file-icon { display: grid; width: 54px; height: 54px; flex: none; place-items: center; border-radius: 8px; color: var(--teal); background: #eaf2f2; font-size: 24px; }
.file-info { display: grid; min-width: 0; gap: 4px; font-size: 13px; }
.file-info strong { overflow-wrap: anywhere; }
a { color: var(--teal); font-weight: 700; }
.notice { padding: 13px 15px; border-radius: 9px; background: #eaf2f2; }
.notice.error { color: #842b28; background: #fae9e7; }
.auth-card { width: min(440px, calc(100% - 30px)); margin: 10vh auto; padding: 28px; }
.stack, .stack label, .user-create-form label { display: grid; gap: 7px; }
.stack { gap: 15px; margin-top: 20px; }
input, select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bdcbd0; border-radius: 8px; color: var(--navy); background: #fff; font: inherit; }
button, .button-link { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.primary, .button-link { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--teal); text-decoration: none; }
.secondary { color: var(--navy); background: #eaf0f2; }
.danger { color: #842b28; background: #fae9e7; }
.search-row { display: flex; gap: 8px; margin: 20px 0; }
.search-row input { flex: 1; }
.pagination { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.folder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.folder-head h2 { margin: 0; }
.folder { position: relative; }
.zip-icon { display: inline-grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 8px; color: #fff; background: var(--teal); }
.admin-section { margin-top: 28px; }
.user-create-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; gap: 12px; margin: 18px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
td small { display: block; margin-top: 3px; }
td form { margin: 0; }
code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .topbar { padding: 12px 14px; } .content { margin-top: 22px; } .folder, .admin-section { padding: 14px; } .file { flex-wrap: wrap; } .video-preview, .pdf-preview { width: 100%; max-width: 100%; } .search-row { flex-direction: column; } }
