* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f0f4f9;
  color: #1f2937;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
}

.branding {
  background: #4488dd url("/static/illustration.jpg") center/cover no-repeat;
}

.panel {
  background: #fff;
  padding: 40px 52px;
  overflow: auto;
}

.logo {
  max-width: 240px;
  margin-bottom: 24px;
}

h1, h2 {
  margin: 0 0 16px;
  font-weight: 500;
}

h1 {
  font-size: 26px;
}

.hint {
  margin-bottom: 16px;
  color: #4b5563;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color .2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2672ec;
  box-shadow: 0 0 0 3px rgba(38,114,236,.15);
}

button {
  border: 0;
  background: #2672ec;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}

button:hover {
  background: #1a5cdb;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

th {
  background: #f3f4f6;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #4b5563;
}

td {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
}

tr:hover td {
  background: #f9fafb;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.ok {
  color: #15803d;
}

.panel-full {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 40px;
  background: #fff;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar a {
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
