* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #0f172a;
  background: #f0f9ff;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
h2 {
  font-size: 18px;
}
p {
  line-height: 1.6;
  color: #64748b;
}
button {
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: white;
  color: #0284c7;
  padding: 11px 20px;
  font-weight: 600;
}
button.primary {
  background: #0284c7;
  color: white;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: #f8fcff;
  color: #0f172a;
}
label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0 8px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.page {
  max-width: 1440px;
  padding: 36px;
  margin: auto;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  color: #0284c7;
}
.brand small {
  letter-spacing: 2px;
  font-size: 10px;
  color: #94a3b8;
  display: block;
  margin-top: 5px;
}
.card {
  background: white;
  border: 1px solid #e0f2fe;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px #0284c708;
}
.login {
  max-width: 420px;
  margin: 12vh auto;
  padding: 32px;
}
.login img {
  width: 64px;
  display: block;
  margin: auto;
}
.login button {
  width: 100%;
  margin-top: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.summary strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}
.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.filters input {
  flex: 1;
}
.filters select {
  max-width: 220px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  text-transform: uppercase;
  color: #64748b;
  font-size: 10px;
  letter-spacing: 1px;
}
td,
th {
  padding: 18px 12px;
  border-bottom: 1px solid #e0f2fe;
}
td {
  font-size: 12px;
}
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 11px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.details div {
  background: #f8fcff;
  border: 1px solid #e0f2fe;
  border-radius: 18px;
  padding: 18px;
}
.details dt {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.warning {
  padding: 16px;
  border-radius: 18px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.8;
}
.event {
  border-left: 2px solid #bae6fd;
  padding: 0 0 18px 18px;
  margin-left: 8px;
}
.event small {
  display: block;
  color: #94a3b8;
  margin: 6px 0;
}
#notice {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  border-radius: 18px;
  padding: 14px 22px;
  z-index: 10;
  max-width: 90vw;
}
a {
  color: #0284c7;
  text-decoration: none;
}
.empty {
  padding: 44px;
  text-align: center;
  color: #94a3b8;
}
@media (max-width: 850px) {
  .page {
    padding: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .filters {
    flex-direction: column;
  }
  .card {
    padding: 18px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 24px;
  }
}

.operation-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.operation-nav button[aria-current="page"] {
  background: #0284c7;
  color: white;
}
.page header {
  gap: 12px;
  flex-wrap: wrap;
}
.table-scroll {
  overflow: auto;
}
.subtle {
  display: block;
  color: #64748b;
  margin-top: 6px;
}
.page section.card,
.feedback-entry {
  margin: 20px 0;
}
input[type="checkbox"] {
  width: auto;
  accent-color: #0284c7;
}
section[hidden] {
  display: none !important;
}
pre {
  max-width: 540px;
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-message {
  white-space: pre-wrap;
  color: #0f172a;
}
[role="alert"] {
  color: #b91c1c;
}
button:disabled {
  cursor: default;
}
dl.card {
  margin: 20px 0;
}
.filters button {
  white-space: nowrap;
}
