:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f9;
  color: #18202a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
a { color: #1557b0; overflow-wrap: anywhere; }

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.card {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(20, 36, 56, 0.06);
  padding: 24px;
}

.login-card { width: min(430px, 100%); margin: 10vh auto 0; }
.login-card form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select {
  width: 100%;
  border: 1px solid #bdc8d6;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}

button, .button-like {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: #1557b0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
button:hover, .button-like:hover { filter: brightness(0.95); }
button:disabled { opacity: 0.55; cursor: wait; }
.secondary, .secondary-like { background: #edf2f7; color: #213042; }
.danger { background: #fff0f0; color: #a31e1e; }
.tiny { padding: 7px 10px; font-size: 13px; }

.workspace { display: grid; gap: 20px; }
.topbar, .files-heading, .selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar h1, h2 { margin: 0 0 8px; }
.eyebrow { margin: 0 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #687789; }
.root-link { font-size: 14px; }
.muted { color: #667487; line-height: 1.5; }
.compact { margin: 4px 0 0; }

.picker-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.dropzone {
  border: 2px dashed #b9c6d6;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: #627286;
  background: #f8fafc;
  cursor: pointer;
}
.dropzone.dragging { border-color: #1557b0; background: #edf5ff; }
.selection { margin-top: 16px; padding: 14px; border-radius: 12px; background: #f4f7fa; }
.selection-actions { display: flex; gap: 8px; }
progress { width: 100%; height: 14px; margin-top: 16px; }
.message { min-height: 1.4em; margin-bottom: 0; }
.message.error { color: #a31e1e; }

.table-wrap { width: 100%; overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e7ecf1; vertical-align: top; }
th { font-size: 13px; color: #657487; }
.actions { display: flex; justify-content: flex-end; gap: 7px; min-width: 220px; }
.empty { margin-top: 18px; padding: 28px; text-align: center; color: #6b7888; background: #f7f9fb; border-radius: 12px; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .page { width: min(100% - 20px, 1100px); margin-top: 10px; }
  .card { padding: 18px; border-radius: 12px; }
  .topbar, .files-heading, .selection { align-items: stretch; flex-direction: column; }
  .topbar button, .selection-actions, .selection-actions button { width: 100%; }
  .selection-actions { flex-direction: column; }
  .actions { min-width: 150px; flex-direction: column; }
}
