@import url("/static/tokens.css");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 600;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 19px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin-top: 1px;
}
.workspace-label {
  margin: 43px 13px 13px;
  color: #949990;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  color: #64706b;
  font-size: 13px;
  font-weight: 500;
}
.nav button:hover {
  background: #f6f7f3;
}
.nav button.selected {
  background: #eaf1eb;
  color: var(--green);
}
.nav .count {
  margin-left: auto;
  min-width: 19px;
  text-align: center;
  border: 1px solid #c7d9cd;
  color: var(--green);
  border-radius: 5px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 10px 0;
}
.offline-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  background: #639677;
  border-radius: 100%;
  display: inline-block;
  flex: none;
}
.sidebar-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 21px;
}
.account {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  align-items: center;
}
.avatar {
  background: #eff1ea;
  color: var(--green);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.account span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.account small {
  display: block;
  font-size: 10px;
  text-transform: capitalize;
}
.account button {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff90;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: #abb0a6;
}
.top-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.top-meta .pill {
  font-size: 10px;
}
.content {
  padding: 38px 42px 40px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--green);
  font-weight: 650;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.subhead {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 720px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}
.button:hover {
  background: #f4f6ef;
  text-decoration: none;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.primary:hover {
  background: #19443e;
}
.button.danger {
  color: #a04b42;
  border-color: #e5bfb8;
}
.button.small {
  padding: 6px 10px;
  font-size: 11px;
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.status-banner {
  border: 1px solid #d3e0cb;
  border-radius: 10px;
  background: #edf3e8;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 25px;
  color: #345543;
}
.status-banner p {
  font-size: 12px;
  color: #617361;
  margin-top: 3px;
}
.status-banner .icon {
  width: 21px;
  height: 21px;
}
.status-banner .right {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
  color: #547553;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 23px;
  min-width: 0;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat-top .icon {
  width: 17px;
  height: 17px;
  color: #879489;
}
.stat-value {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.3px;
  margin: 13px 0 5px;
  line-height: 1.1;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-head h2 {
  font-size: 14px;
}
.panel-head a {
  font-size: 11px;
}
.panel-body {
  padding: 22px;
}
.service-row {
  padding: 17px 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #eff0eb;
}
.service-row:last-child {
  border: 0;
}
.service-icon {
  background: #f2f4ee;
  border: 1px solid #e8ece2;
  border-radius: 8px;
  padding: 9px;
  display: grid;
  place-items: center;
  color: #5c7566;
}
.service-row h3 {
  font-size: 12px;
}
.service-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.service-row .pill {
  margin-left: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  background: #f0f1ee;
  color: #727a70;
  border: 1px solid #e4e7df;
}
.pill.green,
.pill.available,
.pill.complete,
.pill.local {
  color: #316c51;
  background: #edf4eb;
  border-color: #d7e6d1;
}
.pill.disabled,
.pill.uploaded,
.pill.issued,
.pill.receiving {
  color: #947028;
  background: #fcf5e5;
  border-color: #eee0bc;
}
.pill.revoked,
.pill.expired {
  color: #ac6155;
  background: #fcf0ed;
  border-color: #f0d6cf;
}
.activity {
  list-style: none;
  margin: 0;
  padding: 0 23px;
}
.activity li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eff0eb;
}
.activity li:last-child {
  border: 0;
}
.activity .activity-dot {
  width: 7px;
  height: 7px;
  background: #95a99a;
  border-radius: 100%;
  margin-top: 6px;
  flex: none;
}
.activity strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.activity p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.activity time {
  font-size: 10px;
  color: #92998c;
  margin-left: auto;
  white-space: nowrap;
}
.empty {
  padding: 42px 20px;
  text-align: center;
}
.empty .icon {
  width: 29px;
  height: 29px;
  color: #9ba798;
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 14px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  margin: 8px auto 17px;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
}
.step-number {
  font-size: 10px;
  background: #eef1e9;
  color: #577461;
  width: 24px;
  height: 24px;
  border-radius: 100%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.workflow h3 {
  font-size: 12px;
}
.workflow p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 240px;
}
.footnote {
  color: #949a8f;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  gap: 8px;
  flex: 1;
  max-width: 360px;
}
.search .icon {
  width: 15px;
  color: var(--muted);
}
.search input {
  border: 0;
  padding: 8px 0;
  width: 100%;
  font-size: 12px;
  outline-offset: 0;
}
.filters {
  display: flex;
  gap: 9px;
}
.filters select {
  font-size: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  max-width: 180px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: #899181;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 500;
  background: #fafbf7;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #eef0e9;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td .secondary {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
td .mono {
  font-size: 10px;
}
td.name-cell {
  white-space: normal;
  min-width: 200px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
td.name-cell strong {
  font-size: 12px;
  font-weight: 550;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.pagination {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.pagination .actions {
  gap: 6px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.service-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.service-card-head .pill {
  margin-left: auto;
}
.service-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0;
}
.service-card .host {
  display: block;
  font:
    10px/1.9 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  color: #617264;
}
.service-card .actions {
  margin-top: 20px;
}
.note {
  background: #f5f6ef;
  border: 1px solid #e4e8dc;
  padding: 14px 16px;
  border-radius: 7px;
  font-size: 12px;
  color: #677462;
  margin-bottom: 20px;
}
.warning {
  background: #fff9ec;
  border-color: #eee1bc;
  color: #8d732f;
}
.badge-icon {
  border-radius: 10px;
  background: #edf1e7;
  color: #5c755d;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  width: min(660px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #19291e30;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #12271955;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 23px 25px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dialog-header button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px;
}
.dialog-body {
  padding: 24px 25px;
}
.dialog-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbf8;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.form-grid .field {
  margin: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field span {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce1d5;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  min-height: 76px;
}
.field small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #9db6a0;
  border-color: #80a186;
}
.file-zone {
  border: 1px dashed #b9c9b7;
  background: #f7f9f2;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 21px;
}
.file-zone label {
  font-size: 12px;
  display: block;
  color: var(--green);
  font-weight: 550;
  margin-bottom: 10px;
}
.file-zone input {
  max-width: 100%;
  font-size: 11px;
}
.file-zone p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.error {
  color: #a65047;
  background: #fff1ed;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 12px;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px 15px;
  font-size: 12px;
  margin-bottom: 20px;
}
.detail-grid dt {
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hash {
  font:
    11px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  background: #f6f7f2;
  padding: 12px;
  border-radius: 6px;
}
.check-row {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  margin: 12px 0;
}
.check-row input {
  accent-color: var(--green);
}
progress {
  width: 100%;
  height: 10px;
  accent-color: var(--green);
  margin: 12px 0;
}
.token-box {
  background: #f3f5ef;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #1e4c43;
  color: #eef4e8;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  padding: 0;
}
.login-story .brand small {
  color: #bed0ba;
}
.login-story h1 {
  font-size: 53px;
  line-height: 1.13;
  font-weight: 450;
  letter-spacing: -1.8px;
  max-width: 450px;
  margin: 70px 0 22px;
}
.login-story p {
  font-size: 14px;
  color: #b9d0bc;
  max-width: 350px;
  line-height: 1.8;
}
.login-story .diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 60px 0 70px;
  color: #bfd8bd;
}
.diagram .node {
  border: 1px solid #72967c;
  border-radius: 10px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
}
.diagram .wire {
  height: 1px;
  background: #72967c;
  width: 50px;
}
.login-story .copyright {
  font-size: 10px;
  color: #9bb79d;
}
.login-form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.login-form {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 26px;
  margin: 16px 0 8px;
}
.login-form > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}
.login-form .button {
  width: 100%;
  margin-top: 8px;
}
.login-form footer {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
}
.boot {
  padding: 20vh;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #234c41;
  color: #fff;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 8px 30px #0002;
  z-index: 100;
  max-width: 420px;
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-menu {
  display: none;
}
.busy {
  opacity: 0.6;
  pointer-events: none;
}
.break {
  white-space: normal;
  overflow-wrap: anywhere;
}
.small-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 18px 0 8px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 48px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 26px;
  }
  .stat-value {
    font-size: 40px;
  }
  .grid {
    gap: 25px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 30px;
  }
  .service-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .shell.menu-open .sidebar {
    display: flex;
    position: fixed;
    z-index: 20;
    width: 230px;
    box-shadow: 20px 0 80px #0003;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    margin-right: 10px;
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
  }
  .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 11px;
  }
  .top-meta .env-label {
    display: none;
  }
  .content {
    padding: 25px 16px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .status-banner .right {
    display: none;
  }
  .status-banner {
    padding: 14px;
  }
  .workflow {
    grid-template-columns: 1fr;
  }
  .workflow > div {
    display: grid;
    grid-template-columns: 25px 1fr;
    column-gap: 12px;
  }
  .workflow .step-number {
    grid-row: span 2;
    margin: 0;
  }
  .workflow p {
    max-width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
  }
  .dialog-body {
    padding: 20px;
  }
  .detail-grid {
    grid-template-columns: 95px 1fr;
  }
  .footnote {
    display: block;
  }
  .footnote span {
    display: block;
    margin-top: 4px;
  }
  .filters select {
    max-width: 150px;
  }
  .toolbar {
    padding: 14px;
  }
  .search {
    max-width: none;
  }
  .account button {
    padding: 10px;
  }
  .page-head .actions {
    width: 100%;
  }
  .top-meta {
    font-size: 10px;
  }
}

/* Plaintext license editing and package metadata disclosure. */
details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.code-editor,
.code-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
.code-editor {
  min-height: 300px;
  resize: vertical;
}
.code-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 10px;
  max-height: 360px;
  overflow: auto;
}
.license-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.license-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.license-option input {
  width: 18px;
  height: 18px;
}
