:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #152033;
  --muted: #68768a;
  --line: #dbe3ee;
  --brand: #0b4ea2;
  --brand2: #083b7a;
  --ok: #0f7b3f;
  --bad: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 32, 55, .06);
}
.wrap {
  width: min(1120px, calc(100% - 24px));
  margin: 18px auto 40px;
  display: grid;
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 32, 55, .07);
}
.login-card { width: min(420px, calc(100% - 24px)); margin: 8vh auto; }
h1, h2 { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: .95rem; }
label { display: grid; gap: 7px; font-weight: 650; margin: 12px 0; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: auto; transform: scale(1.2); }
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.btn:hover { background: var(--brand2); }
.btn.full { width: 100%; margin-top: 10px; }
.btn.small { padding: 10px 14px; }
.link { color: var(--brand); text-decoration: none; font-weight: 700; }
.navlinks { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn.danger { background: var(--bad); }
.inline-form { display: inline-flex; margin: 3px 4px 3px 0; }
.folder-form { margin-top: 12px; }
code { background: #f2f5f9; padding: 2px 6px; border-radius: 7px; }
.drop-zone {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  border: 2px dashed #9eb2ce;
  border-radius: 18px;
  background: #f8fbff;
  text-align: center;
  transition: .18s ease;
}
.drop-zone.active { background: #edf6ff; border-color: var(--brand); transform: scale(1.01); }
.drop-icon { font-size: 32px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e7eef8; }
.file-btn input { display: none; }
.file-name { color: var(--brand); font-weight: 700; word-break: break-word; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.progress-wrap { margin-top: 16px; }
.progress { height: 14px; background: #e7eef8; border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--brand); transition: width .2s ease; }
.hidden { display: none; }
.alert { margin-top: 16px; border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.alert.success { background: #eefaf3; border-color: #bce4ca; color: #0b5b2d; }
.alert.error { background: #fff1f0; border-color: #ffccc7; color: #8a1f17; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; color: #fff; font-weight: 750; font-size: .85rem; }
.badge.ok { background: var(--ok); }
.badge.bad { background: var(--bad); }
pre { white-space: pre-wrap; word-break: break-word; background: #f6f8fb; padding: 14px; border-radius: 12px; }
@media (max-width: 720px) {
  .card { padding: 16px; border-radius: 14px; }
  .grid { grid-template-columns: 1fr; gap: 4px; }
  .drop-zone { padding: 26px 12px; }
  .topbar { padding: 12px; }
}
