:root {
  color-scheme: light;
  --violet: #7960d9;
  --ink: #202744;
  --muted: #68718a;
  --primary: #3b5bfd;
  --line: #d7d9e4;
  --paper: #eef0f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  display: flex;
  min-height: 100vh;
}
aside {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 20px;
  background: #182659;
  color: #f0f2ff;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
}
.brand {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  color: inherit;
}
.brand img { display:block; width:100%; max-width:196px; height:auto; }
.brand small { margin-top:10px; }
.login-logo { display:block; width:210px; max-width:100%; height:auto; margin:0 0 28px; }
aside { background:linear-gradient(165deg,#15255b 0%,#282657 100%); }
nav button:hover { background:#ffffff12; color:#fff; }
nav button.active { background:linear-gradient(100deg,#3b5bfd,#7155cd); }
button:not(.secondary):hover,.button:not(.secondary):hover { filter:brightness(1.06); }
#login,.metric,.identity-card { border-radius:12px; }
.identity-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.identity-card { padding:26px; background:#fff; border:1px solid var(--line); min-width:0; }
.identity-card h2 { font-size:20px; margin-bottom:10px; }
.identity-wide { grid-column:1/-1; }
.identity-checks { list-style:none; padding:0; margin:20px 0 0; }
.identity-checks li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid #eceffd; }
.identity-checks .status { color:#344cbe; background:#edf0ff; padding:2px 10px; border-radius:20px; font-size:12px; white-space:nowrap; }
.identity-checks .danger { color:#934a39; background:#fbe8e3; }
.identity-details { display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px 14px; }
.identity-details dt { color:var(--muted); }
.identity-details dd { margin:0; overflow-wrap:anywhere; }
.identity-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.identity-links { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.identity-uri { padding:10px 12px; background:#f2f3fc; border-radius:6px; overflow-wrap:anywhere; font-size:12px; }
@media(max-width:1000px) { .identity-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:680px) { .identity-form-grid { grid-template-columns:minmax(0,1fr); } .identity-card { padding:20px; } }
.brand span {
  color: #c5b8ff;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 400;
  color: #b7c1ed;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
aside .eyebrow {
  margin-top: 40px;
  color: #b7c1ed;
}
nav {
  display: grid;
  gap: 3px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #d0d8fb;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 13px;
}
nav button.active {
  background: linear-gradient(100deg,#3b5bfd,#7155cd);
  color: #fff;
}
aside footer {
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  color: #b7c1ed;
}
#environment {
  display: inline-block;
  border: 1px solid #7383c4;
  border-radius: 20px;
  padding: 3px 12px;
}
main {
  margin-left: 240px;
  padding: 40px 48px;
  width: calc(100% - 240px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 6px 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 18px;
}
.identity {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 68%;
}
#staff{font-size:12px;max-width:460px;overflow-wrap:anywhere;flex:1;min-width:0}
.identity button{flex-shrink:0;white-space:nowrap}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font: inherit;
  display: inline-block;
}
.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#message {
  margin: 12px 0;
  color: #984428;
  white-space: pre-wrap;
}
#login {
  background: white;
  border: 1px solid var(--line);
  padding: 36px;
  max-width: 680px;
}
#metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.metric {
  border-top: 3px solid #8370e8;
  background: #fff;
  padding: 18px;
}
.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  margin-top: 10px;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 20px 0;
}
label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
input,
select,
textarea {
  border: 1px solid #c8ccdc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  font: 14px/1.5 inherit;
  max-width: 100%;
}
.toolbar label {
  flex: 1;
}
.toolbar select {
  max-width: 260px;
}
#content {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 160px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  background: #eceffd;
  font-weight: 500;
  color: #555f80;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}
td {
  padding: 13px 14px;
  border-top: 1px solid #e8eaf3;
  max-width: 360px;
  word-break: break-word;
  vertical-align: top;
}
td button {
  font-size: 11px;
  padding: 4px 8px;
  margin: 2px;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
  max-width: 900px;
  overflow-wrap: anywhere;
  margin: 0;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
}
.procurement-notices {
  padding: 18px 25px 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.procurement-notices p {
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.pagination {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}
dialog {
  width: min(640px, 95vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  color: var(--ink);
}
dialog::backdrop {
  background: #151c4580;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
form label {
  margin: 14px 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--primary);
}
form button[type="submit"] {
  margin-top: 15px;
}
textarea {
  min-height: 70px;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 28px 22px;
  }
  #metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 680px) {
  #content table {
    min-width: 800px;
  }
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  aside nav {
    grid-template-columns: repeat(2, 1fr);
  }
  aside footer {
    display: none;
  }
  body {
    display: block;
  }
  main {
    margin: 0;
    width: 100%;
  }
  header {
    align-items: start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .identity {
    flex-wrap: wrap;
    max-width: 100%;
    flex-basis: 100%;
  }
  #metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
:root {
  font-synthesis: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #9ca9ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.details {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0;
  padding: 22px;
}
.details dt {
  color: var(--muted);
  font-size: 12px;
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.details .details {
  padding: 0;
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
}
.detail-card {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
fieldset {
  margin: 18px 0;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 6px;
}
legend {
  font-weight: 600;
}
.checkbox-field {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  margin: 8px 15px 8px 0;
  gap: 7px;
  color: var(--ink);
}
.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 80px;
}
.row-actions button {
  white-space: nowrap;
}
.badge {
  display: inline-block;
  border-radius: 18px;
  padding: 2px 8px;
  font-size: 11px;
  background: #eff0fb;
  white-space: nowrap;
}
.status-active,
.status-succeeded,
.status-cloud_available,
.status-delivered {
  background: #e3f0e6;
  color: #256641;
}
.status-pending_approval,
.status-running,
.status-queued,
.status-upload_pending {
  background: #faf0d8;
  color: #806317;
}
.status-failed,
.status-suspended,
.status-revoked {
  background: #fbe8e3;
  color: #934a39;
}
.data-section {
  padding: 24px;
}
.data-section + .data-section {
  border-top: 1px solid var(--line);
}
.data-section h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
#detail-dialog, #run-dialog {
  width: min(920px, 95vw);
  max-height: 88vh;
  overflow: auto;
}
#command-dialog,
#case-dialog {
  max-height: 90vh;
  overflow: auto;
}
#command-status,
#case-status {
  white-space: pre-wrap;
  color: #984428;
}
#description {
  max-width: 950px;
}
#metrics:empty {
  display: none;
}
.metric strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.data-section textarea {display:block;width:100%;min-height:76px;margin-bottom:12px}
#reauth {
  margin-bottom: 15px;
}
.reauth-link {
  margin-top: 8px;
}
@media (max-width: 680px) {
  .details,
  .details .details {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 12px;
    gap: 9px;
  }
  .toolbar label {
    flex-basis: 100%;
  }
  .identity {
    font-size: 11px;
  }
  #metrics {
    gap: 9px;
  }
  .metric {
    padding: 11px;
  }
}
.collection-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0;
}
.collection-filters label { min-width: 0; }
.collection-filters input { display: block; width: 100%; margin-top: 6px; }
.collection-actions { grid-column: 1 / -1; display: flex; gap: 12px; }
.collection-actions button { margin: 0; }
.collection-table { overflow-x: auto; }
.collection-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; }
.collection-review { padding: 20px; }
.collection-review .collection-pager { flex-wrap: wrap; }
@media (max-width: 680px) {
  .collection-filters { grid-template-columns: minmax(0, 1fr); }
}
