* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
    margin: 0;
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

h1 { font-size: 22px; margin: 0; }

h2 { font-size: 16px; margin: 0 0 8px; }

#account { display: flex; align-items: center; gap: 12px; color: #4b5563; }

.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); margin-bottom: 16px; }

#login-form { display: grid; gap: 12px; max-width: 360px; margin: 40px auto; }

label { display: grid; gap: 4px; font-size: 14px; color: #4b5563; }

input, select, button { font: inherit; }

input:not([type=file]), select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; }

button { padding: 8px 14px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; }

button:hover { background: #1d4ed8; }

button.link { background: none; color: #2563eb; padding: 0; }

button.danger { background: none; color: #dc2626; padding: 4px 8px; }

button.danger:hover { background: #fee2e2; }

.error { color: #dc2626; margin: 0; min-height: 1em; }

#admin-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }

.drop { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 2px dashed #cbd5e1; border-radius: 10px; cursor: pointer; text-align: center; padding: 16px; color: #64748b; }

.drop.over { border-color: #2563eb; background: #eff6ff; }

.drop input { display: none; }

#progress { position: relative; height: 22px; margin-top: 12px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }

#progress-bar { height: 100%; width: 0; background: #60a5fa; transition: width 0.2s; }

#progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }

td { padding: 8px 6px; border-top: 1px solid #f1f5f9; vertical-align: middle; }

td.name { word-break: break-all; }

td.name a { color: #1f2937; text-decoration: none; }

td.name a:hover { color: #2563eb; text-decoration: underline; }

td.meta { color: #6b7280; white-space: nowrap; font-size: 13px; }

td.actions { text-align: right; width: 1%; }

.empty { color: #9ca3af; margin: 0; }

@media (max-width: 560px) {
    td.date { display: none; }
}
