@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --hm-yellow: #FFC000;
  --hm-yellow-hover: #E6AD00;
  --hm-yellow-active: #CC9900;
  --hm-dark-blue: #1B365D;
  --hm-red: #C41914;
  --hm-gray-dark: #44546A;
  --hm-gray-medium: #A5A5A5;
  --hm-gray-light: #E7E6E6;
  --hm-surface: #FFFFFF;
  --hm-surface-tertiary: #F5F5F5;
  --hm-success: #2E7D32;
  --font-primary: "Outfit", Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Consolas, monospace;
  --shadow-focus: 0 0 0 3px rgba(255, 192, 0, 0.4);
}

* { box-sizing: border-box; border-radius: 0; }

html, body { margin: 0; min-height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--hm-surface);
  color: var(--hm-dark-blue);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  background: var(--hm-surface);
  border-bottom: 1px solid var(--hm-gray-light);
}
.topbar__logo { height: 40px; width: auto; display: block; }
.topbar__divider { width: 1px; height: 36px; background: var(--hm-gray-light); }
.topbar__title { display: flex; flex-direction: column; }
.topbar__app { font-size: 1.25rem; font-weight: 600; }
.topbar__sub { font-size: 0.8125rem; color: var(--hm-gray-dark); }
.topbar__user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.875rem; }
.topbar__user-name { color: var(--hm-gray-dark); }
.topbar__user[hidden] { display: none; }
.login { max-width: 480px; margin: 48px auto; text-align: center; }
.login p { color: var(--hm-gray-dark); }
.accent-bar { height: 4px; background: var(--hm-yellow); }

.content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 24px;
  align-content: start;
}

.card {
  background: var(--hm-surface);
  border: 1px solid var(--hm-gray-light);
  border-top: 3px solid var(--hm-yellow);
  padding: 24px;
}
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card__title { margin: 0 0 16px; font-size: 1.125rem; font-weight: 600; }
.card__header .card__title { margin: 0; }
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  min-width: 24px;
  padding: 0 8px;
  margin-left: 6px;
  background: var(--hm-yellow);
  color: var(--hm-dark-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.dropzone {
  display: block;
  border: 2px dashed var(--hm-gray-medium);
  background: var(--hm-surface-tertiary);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  outline: none;
}
.dropzone:hover, .dropzone--active, .dropzone:has(+ #file-input:focus-visible) { border-color: var(--hm-yellow); background: #FFF8E1; }
.dropzone:has(+ #file-input:focus-visible) { box-shadow: var(--shadow-focus); }
.dropzone__icon { width: 36px; height: 36px; fill: var(--hm-yellow); }
.dropzone__text { display: block; margin: 8px 0 4px; font-weight: 500; }
.dropzone__hint { display: block; margin: 0; font-size: 0.8125rem; color: var(--hm-gray-dark); }
.link { color: var(--hm-dark-blue); text-decoration: underline; text-decoration-color: var(--hm-yellow); text-underline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.messages { margin-top: 12px; display: grid; gap: 6px; }
.msg { padding: 8px 12px; border-left: 4px solid var(--hm-dark-blue); background: var(--hm-surface-tertiary); font-size: 0.875rem; }
.msg--ok { border-left-color: var(--hm-success); }
.msg--error { border-left-color: var(--hm-red); color: var(--hm-red); }

.btn {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--hm-yellow); color: var(--hm-dark-blue); }
.btn--primary:hover:not(:disabled) { background: var(--hm-yellow-hover); }
.btn--primary:active:not(:disabled) { background: var(--hm-yellow-active); }
.btn--secondary { background: transparent; color: var(--hm-dark-blue); border-color: var(--hm-dark-blue); }
.btn--secondary:hover:not(:disabled) { background: var(--hm-surface-tertiary); }
.btn--danger { background: transparent; color: var(--hm-red); border-color: var(--hm-red); }
.btn--danger:hover:not(:disabled) { background: #FBEAEA; }
.btn--small { padding: 4px 10px; font-size: 0.8125rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-gray-dark);
  border-bottom: 2px solid var(--hm-yellow);
  padding: 8px;
}
.table td { padding: 8px; border-bottom: 1px solid var(--hm-gray-light); vertical-align: middle; }
.table tbody tr:hover { background: var(--hm-surface-tertiary); }
.col-check { width: 36px; }
.col-num { text-align: right; white-space: nowrap; }
.col-actions { width: 1%; white-space: nowrap; }
.actions { display: flex; gap: 6px; }
.filename { font-family: var(--font-mono); word-break: break-all; }
input[type="checkbox"] { accent-color: var(--hm-yellow); width: 16px; height: 16px; }

.empty { color: var(--hm-gray-dark); margin: 16px 0 0; }
.note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--hm-gray-dark); }

.footer {
  border-top: 4px solid var(--hm-yellow);
  background: var(--hm-surface);
  color: var(--hm-dark-blue);
  text-align: center;
  padding: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .topbar, .content { padding: 16px; }
  .topbar__divider, .topbar__sub { display: none; }
}
