:root {
  --blue: #123f73;
  --blue-dark: #0d315a;
  --accent: #13765f;
  --bg: #f5f7fa;
  --line: #d7dee8;
  --text: #111827;
  --muted: #5b6878;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.topbar {
  min-height: 86px;
  padding: 16px 28px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 180px; height: 46px; object-fit: contain; }
nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
nav a:hover { background: rgba(255,255,255,0.14); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 22px; margin-bottom: 14px; }
h3 { font-size: 16px; margin-bottom: 10px; }
.topbar p { color: #d8e6f5; margin-top: 4px; }
main { width: min(920px, calc(100vw - 32px)); margin: 36px auto; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.login { width: min(460px, 100%); margin: 52px auto; }
label { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-weight: 700; }
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
}
button, .logout, .button-link {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logout { background: #fff; color: var(--blue-dark); border-color: var(--line); }
.button-link { margin-top: 16px; }
.message.error, .message.success {
  color: #7f1d1d;
  background: #fff1f1;
  border: 1px solid #e5b8b8;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}
.message.success {
  color: #064e3b;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.split { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.muted { color: var(--muted); }
.home-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #f9fbfd;
  border-radius: 8px;
  padding: 18px;
}
.download-card {
  margin: 22px 0;
  border: 1px solid var(--line);
  background: #f9fbfd;
  border-radius: 8px;
  padding: 18px;
}
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
code {
  display: block;
  overflow-wrap: anywhere;
  background: #eef4fb;
  border: 1px solid #d5e2f0;
  border-radius: 6px;
  padding: 11px;
  font-family: Consolas, "Liberation Mono", monospace;
  color: #0d315a;
}
.meta {
  display: grid;
  gap: 12px;
  margin: 0;
}
.meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}
dt { font-weight: 800; color: var(--muted); }
dd { margin: 0; min-width: 0; }
a { color: var(--blue-dark); font-weight: 800; }
@media (max-width: 680px) {
  .copy-row, .meta div { grid-template-columns: 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
}
