* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: #1f2937; background: #f3f4f6; }
header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 24px; background: #1e3a8a; color: #fff; }
header h1 { margin: 0; font-size: 20px; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a { color: #bfdbfe; text-decoration: none; }
nav a:hover { color: #fff; text-decoration: underline; }
.ws { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #bfdbfe; }
.ws select { padding: 6px 8px; border-radius: 6px; border: 0; font-size: 14px; }
main { max-width: 1040px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; padding: 16px 20px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); margin-bottom: 16px; overflow-x: auto; }
.narrow { max-width: 380px; margin: 48px auto; }
h2, h3 { margin-top: 0; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; }
input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px; }
button { padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #1f2937; cursor: pointer; font-size: 14px; }
button:hover { background: #f9fafb; }
button.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
button.primary:hover { background: #1d4ed8; }
button.link { background: none; border: 0; color: #bfdbfe; padding: 0; }
button.danger { color: #b91c1c; }
button:disabled { opacity: .5; cursor: not-allowed; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.toolbar input[type=search] { margin-left: auto; min-width: 200px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: baseline; }
.dot.word { background: #93c5fd; }
.dot.excel { background: #86efac; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
td.name { font-weight: 600; }
td.actions { white-space: nowrap; text-align: right; }
td.actions button { margin-left: 4px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e5e7eb; margin-right: 8px; text-transform: uppercase; }
.muted { color: #6b7280; }
#msg, #login-msg { min-height: 1.5em; color: #b91c1c; font-weight: 600; }
#msg.ok, #login-msg.ok { color: #047857; }
