:root {
  color: #173348;
  background: #f2f6f8;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  padding: 0 18px;
  color: white;
  font-weight: 650;
  border: 0;
  border-radius: 12px;
  background: #167e86;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: #123b4b;
}

.topbar > div,
.section-head,
.detail-head,
.actions {
  display: flex;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  place-items: center;
  color: #123b4b;
  font-weight: 800;
  border-radius: 13px;
  background: #bce6dc;
}

.topbar strong,
.topbar small {
  display: block;
}

.topbar small {
  margin-top: 2px;
  color: #b7d1d8;
}

.environment,
.pill {
  padding: 7px 12px;
  color: #26685f;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: #d9f0e9;
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 32px auto 72px;
}

.card {
  border: 1px solid #dce6ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(24 62 76 / 7%);
}

.access-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  padding: 30px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 6px;
}

p {
  color: #687e89;
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 8px;
  color: #16818a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: #3e5967;
  font-size: 13px;
  font-weight: 650;
}

input {
  height: 42px;
  padding: 0 13px;
  color: #173348;
  border: 1px solid #cddbe0;
  border-radius: 11px;
  outline: none;
}

input:focus {
  border-color: #16818a;
  box-shadow: 0 0 0 3px rgb(22 129 138 / 12%);
}

.status {
  min-height: 28px;
  margin: 16px 4px;
  color: #6b7e87;
  font-size: 14px;
}

.status.error {
  color: #a43e3e;
}

.status.success {
  color: #18715b;
}

.workspace {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.queue,
.detail,
.platform-card {
  padding: 24px;
}

.section-head,
.detail-head {
  justify-content: space-between;
}

.quiet,
.secondary {
  color: #21747b;
  border: 1px solid #c8dcdf;
  background: #f3f9f9;
}

.danger {
  color: #a44646;
  border: 1px solid #e7caca;
  background: #fff4f4;
}

.queue-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.queue-item {
  width: 100%;
  min-height: 0;
  padding: 16px;
  color: #173348;
  text-align: left;
  border: 1px solid #dfe8eb;
  background: #fff;
}

.queue-item:hover,
.queue-item.active {
  border-color: #63a9aa;
  background: #f2fafa;
}

.queue-item strong,
.queue-item span {
  display: block;
}

.queue-item span {
  margin-top: 5px;
  color: #758892;
  font-size: 13px;
}

.empty {
  padding: 28px 10px;
  color: #82929a;
  text-align: center;
}

.empty.large {
  padding: 100px 20px;
}

.detail-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #e7edef;
}

.detail-head p {
  margin-bottom: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.fact-grid > div {
  padding: 16px;
  border-radius: 13px;
  background: #f5f8f9;
}

.fact-grid small,
.fact-grid strong {
  display: block;
}

.fact-grid small {
  margin-bottom: 6px;
  color: #7a8c94;
}

.subsection {
  padding: 18px 0;
  border-top: 1px solid #edf1f2;
}

.subsection h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.subsection p,
.subsection ul {
  margin-bottom: 0;
}

.subsection ul {
  padding-left: 20px;
  color: #607781;
  line-height: 1.8;
}

.audit {
  max-height: 220px;
  overflow: auto;
}

.decision {
  margin-top: 16px;
  padding: 20px;
  border-radius: 14px;
  background: #eef7f5;
}

.decision p {
  color: #37665f;
}

.actions {
  justify-content: flex-end;
  gap: 10px;
}

.platform-card {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 40px;
  margin-top: 20px;
}

.platform-card form {
  grid-template-columns: 1fr 1fr;
}

.wide {
  grid-column: 1 / -1;
}

@media (max-width: 840px) {
  .access-card,
  .workspace,
  .platform-card {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
