.admin-link { color: var(--text); text-decoration: none; border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; border-radius: 9px; }
.admin-link:hover { border-color: var(--accent); }
.admin-main { max-width: 1100px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; padding-top: 70px; }
.upload-card, .file-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.upload-card { padding: 34px; }
.upload-card h1 { font-size: 32px; margin: 8px 0; }
.upload-card > p { color: var(--muted); }
.upload-form > label { display: block; margin: 20px 0; color: var(--muted); }
.upload-form > label > input:not([type=file]) { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--text); }
.drop-zone { position: relative; padding: 34px 20px; border: 1px dashed var(--accent); border-radius: 14px; text-align: center; background: var(--panel2); cursor: pointer; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone span { margin-top: 6px; font-size: 12px; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.primary-button { border: 0; border-radius: 10px; background: var(--accent); color: #092016; font-weight: 800; padding: 12px 18px; cursor: pointer; }
.flash { padding: 12px 14px; border-radius: 10px; margin: 18px 0; }
.flash.success { background: #183528; color: var(--accent); }
.flash.error { background: #40242a; color: #ff9fa9; }
.file-card { max-height: 620px; overflow: auto; }
.file-row { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.file-row div { min-width: 0; flex: 1; }
.file-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row p { color: var(--muted); font-size: 11px; margin: 3px 0; }
.file-row em { font-style: normal; color: var(--muted); font-size: 10px; }
.file-row.is-hidden { opacity: .58; }
.file-row .record-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.record-actions form { margin: 0; }
.record-actions button { border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.record-actions button.danger { color: #ff9fa9; border-color: #563039; }
@media (max-width: 760px) { .admin-main { display: block; padding-top: 30px; } .file-card { margin-top: 18px; } }
.logout-button { color: var(--muted); border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.logout-button:hover { color: var(--text); border-color: var(--accent); }
.login-page { min-height: 100vh; }
.login-main { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.login-card h1 { font-size: 30px; margin: 8px 0; }
.login-card > p { color: var(--muted); }
.login-form label { display: block; margin: 18px 0; color: var(--muted); }
.login-form input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2); color: var(--text); outline: none; }
.login-form input:focus { border-color: var(--accent); }
