:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #15202b;
  background: #f4f7fa;
  line-height: 1.45;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.site-header {
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid #dfe7ef;
  display: flex;
  align-items: center;
  padding: 10px max(20px, calc((100vw - 1280px) / 2));
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand img {
  width: 185px;
  max-height: 52px;
}
.nav {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.nav a,
.link-button {
  color: #174c74;
  text-decoration: none;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 10px;
}
.nav a:hover,
.link-button:hover {
  text-decoration: underline;
}
.nav a.active {
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 currentColor;
}
.userbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.userbox form {
  margin: 0;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.hero {
  padding: 22px 0;
}
.hero h1,
h1 {
  margin-top: 0;
}
.card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(20, 45, 70, 0.05);
  margin-bottom: 20px;
}
.card.narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-action {
  display: flex;
  align-items: end;
}
label {
  display: block;
  font-weight: 650;
  margin: 12px 0 6px;
}
label input,
label select {
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bdcbd8;
  border-radius: 9px;
  background: #fff;
  color: #17212b;
  font: inherit;
}
textarea {
  resize: vertical;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  background: #146aa1;
  color: white;
  text-decoration: none;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}
.button.secondary {
  background: #e8f1f7;
  color: #174c74;
}
.button.danger,
.danger {
  background: #a83232;
}
.button.small {
  padding: 7px 10px;
  margin: 0;
  font-size: 0.88rem;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form input {
  flex: 1;
}
.inline-form .button {
  margin: 0;
}
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.alert.success {
  background: #e9f7ef;
  color: #185f39;
}
.alert.error {
  background: #fff0f0;
  color: #8b2424;
}
.alert.info {
  background: #eef6ff;
  color: #214f75;
}
.muted,
.hint,
.small {
  color: #6b7c8c;
}
.hint,
.small {
  font-size: 0.88rem;
}
.table-card {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5ebf0;
  vertical-align: top;
}
th {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #617384;
}
.actions {
  display: flex;
  gap: 12px;
}
.actions a {
  color: #146aa1;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf2f7;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge.ok,
.badge.completed {
  background: #ddf5e7;
  color: #17643b;
}
.badge.off,
.badge.cancelled {
  background: #f9e1e1;
  color: #8a2525;
}
.badge.requested {
  background: #fff2cf;
  color: #7b5c05;
}
.badge.scheduled {
  background: #dfeeff;
  color: #205c8e;
}
.badge.in_progress {
  background: #eee5ff;
  color: #573b92;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
}
.detail-list dt {
  font-weight: 700;
  color: #536575;
}
.detail-list dd {
  margin: 0;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  border-left: 3px solid #d8e6f0;
  padding: 0 0 18px 15px;
  margin-left: 5px;
}
.timeline small {
  display: block;
  color: #718096;
}
.result {
  margin-top: 18px;
  padding: 15px;
  border-radius: 10px;
}
.result.ok {
  background: #e9f7ef;
}
.result.off {
  background: #fff0f0;
}
details {
  margin: 14px 0;
}
.notice {
  text-align: center;
}
.auth-shell {
  padding-top: 5vh;
}
@media (max-width: 800px) {
  .grid.two,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .userbox {
    width: 100%;
    justify-content: space-between;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .detail-list dt {
    margin-top: 8px;
  }
  .heading-row {
    flex-direction: column;
  }
}
