*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'GDS Transport', Arial, sans-serif;
  background: #f3f2f1;
  color: #0b0c0c;
  line-height: 1.5;
}

header {
  background: #0b0c0c;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.logout-link {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

main {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  padding: 32px;
  border-top: 4px solid #1d70b8;
}

.login-card {
  max-width: 400px;
  margin: 80px auto;
}

h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

input[type='text'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  border: 2px solid #0b0c0c;
  font-family: inherit;
}

select {
  appearance: auto;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

textarea.drag-over {
  border-color: #1d70b8;
  background: #eef6ff;
}

.drop-hint {
  font-size: 0.85rem;
  color: #505a5f;
  margin-bottom: 4px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #00703c;
  color: #fff;
  box-shadow: 0 2px 0 #002d18;
}

.btn-primary:hover {
  background: #005a30;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.alert-error {
  border-color: #d4351c;
  background: #fef2f0;
  color: #942514;
}

.alert-success {
  border-color: #00703c;
  background: #f0f9f4;
  color: #00552e;
}

.alert-info {
  border-color: #1d70b8;
  background: #e8f1fb;
  color: #0b4a8b;
}

.lookup-panel {
  margin-bottom: 24px;
  border: 1px solid #b1b4b6;
  padding: 12px 16px;
}

.lookup-panel summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

.lookup-form {
  margin-top: 12px;
}

.lookup-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.lookup-row input {
  flex: 1;
}

.btn-secondary {
  background: #fff;
  color: #0b0c0c;
  border: 2px solid #0b0c0c;
  box-shadow: 0 2px 0 #0b0c0c;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #f3f2f1;
}

.hint {
  color: #505a5f;
  margin-bottom: 24px;
}

.hint-label {
  font-weight: 400;
  color: #505a5f;
  font-size: 0.9rem;
}

.action-row {
  margin-bottom: 20px;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dept-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  background: #fff;
  border: 2px solid #0b0c0c;
  cursor: pointer;
}

.dept-btn:hover {
  background: #f3f2f1;
  border-color: #1d70b8;
  color: #1d70b8;
}

.dept-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dept-header h2 {
  margin: 0;
}

.dept-tag {
  font-size: 0.9rem;
  color: #505a5f;
  white-space: nowrap;
}

.dept-tag a {
  color: #1d70b8;
}

code {
  background: #f3f2f1;
  padding: 2px 6px;
  font-size: 0.9em;
  word-break: break-all;
}
