:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --line: #d6dce5;
  --text: #1d2935;
  --accent: #1464a5;
  --danger: #b42318;
  --ok: #067647;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f7fafc, #e8eef5);
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  text-align: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: #1f6feb;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.user-line {
  color: #6b7280;
  font-size: 14px;
}

.container {
  width: min(1100px, 94vw);
  margin: 24px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

header h1 { margin-bottom: 4px; }
header p { margin-top: 0; color: #4f5f71; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs a {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 10px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

input, select, textarea, button {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #c3cfdd;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

button {
  width: auto;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.inline {
  display: inline-block;
}

.inline-actions {
  margin: 10px 0;
}

.inline button {
  width: auto;
  margin-right: 4px;
}

details {
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

button[disabled] {
  background: #9aa7b6;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.notice {
  color: var(--ok);
  margin-bottom: 12px;
}

.error {
  color: var(--danger);
  margin-bottom: 12px;
}

pre {
  white-space: pre-wrap;
  background: #0f1720;
  color: #e5edf7;
  border-radius: 8px;
  padding: 12px;
}

@media (max-width: 800px) {
  .container { padding: 12px; }
  th, td { font-size: 13px; }
}
