:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2b2f36;
  background: #eef1f5;
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: white;
  border-bottom: 1px solid #d7dce4;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
header div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header strong {
  font-size: 20px;
}
header span {
  color: #596273;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 28px 32px;
}
h1 {
  font-size: 26px;
  margin: 0 0 8px;
}
h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
p {
  line-height: 1.7;
  color: #596273;
}
button,
input {
  font: inherit;
  border: 1px solid #b8c2d1;
  border-radius: 7px;
  padding: 10px 14px;
}
button {
  cursor: pointer;
  background: white;
  color: #244f99;
  white-space: nowrap;
}
button:hover {
  background: #edf3ff;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input {
  background: white;
  min-width: 0;
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #2f6fe4;
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 8px;
}
.panel {
  background: white;
  border: 1px solid #d7dce4;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.heading p {
  margin: 0;
}
.badge {
  padding: 6px 12px;
  background: #e0e8f5;
  border-radius: 20px;
  color: #244f99;
}
.search {
  margin: 26px 0 20px;
}
.search div {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.search input {
  flex: 1;
}
.layout {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 12px;
  color: #596273;
  font-weight: 500;
}
td,
th {
  padding: 14px 8px;
  border-bottom: 1px solid #e6eaf0;
  vertical-align: top;
}
td button {
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: #697487;
  margin-top: 6px;
  word-break: break-all;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin: 0;
}
dt {
  color: #596273;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
a {
  color: #245fc5;
}
.money {
  font-variant-numeric: tabular-nums;
}
.error {
  color: #a72c2c !important;
}
.selected {
  background: #edf3ff;
}
#login {
  max-width: 440px;
  margin: 40px auto;
}
#login form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
#notice:empty {
  display: none;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.detail-email {
  overflow-wrap: anywhere;
}
.source {
  font-size: 12px;
  border-top: 1px solid #e6eaf0;
  padding-top: 16px;
  margin-top: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }
  header,
  main {
    padding: 20px;
  }
  .panel {
    padding: 18px;
  }
}
@media (max-width: 550px) {
  header {
    flex-direction: column;
  }
  .search div {
    flex-wrap: wrap;
  }
  .search input {
    flex-basis: 100%;
  }
  dl {
    grid-template-columns: 110px 1fr;
  }
  td,
  th {
    padding: 12px 5px;
  }
}

.users .table-wrap {
  max-height: 64vh;
  overflow: auto;
}
.users thead {
  position: sticky;
  top: 0;
  background: white;
}

.operation {
  margin-top: 24px;
  border-color: #b88b38;
}
.operation:empty {
  display: none;
}
.operation button {
  margin: 12px 8px 0 0;
}
.credit-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 8px;
}
.credit-form h4 {
  margin: 0;
}
.credit-form select {
  font: inherit;
  padding: 10px;
  max-width: 100%;
}
.credit-grant,
.credit-history {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  line-height: 1.7;
}
.credit-grant dl {
  margin-top: 12px;
}
.credit-history td {
  overflow-wrap: anywhere;
  max-width: 240px;
}

.workspace-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.workspace-nav [aria-pressed="true"] {
  background: #e0e8f5;
  border-color: #244f99;
  font-weight: 600;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cost-vendor .heading {
  flex-wrap: wrap;
  gap: 8px;
}
.cost-vendor h2 {
  margin: 0;
}
.cost-category {
  color: #596273;
  font-size: 12px;
}
.cost-vendor a {
  display: inline-block;
  padding: 8px 0;
}
.cost-note {
  font-size: 12px;
  margin-bottom: 0;
}
.cost-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.cost-form input { max-width: 160px; }
.cost-result { overflow-wrap: anywhere; }
.cost-result ul { padding-left: 20px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
