:root {
  color: #20231f;
  background: #f4f5f0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
}

button {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid #dfe1d8;
  background: #fafbf7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 22px;
  border-bottom: 1px solid #e5e7df;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #1f503d;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.brand div,
.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand span:last-child,
.account-copy span {
  margin-top: 2px;
  color: #7b8078;
  font-size: 11px;
  text-transform: capitalize;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 10px;
  color: #777d73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.count {
  display: grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 10px;
  background: #eceee7;
  color: #676c64;
  font-size: 10px;
}

.project-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}

.project {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #40443e;
  cursor: pointer;
  text-align: left;
}

.project:hover {
  background: #f0f2eb;
}

.project.active {
  background: #e7eee8;
  color: #173e30;
}

.project-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #d8ddd4;
  border-radius: 8px;
  background: #fff;
  color: #586059;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project.active .project-avatar {
  border-color: #b9cbbf;
  color: #1f503d;
}

.project-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-copy small {
  margin-top: 3px;
  color: #898e86;
  font-size: 10px;
}

.sidebar-note {
  padding: 8px 10px;
  color: #858a82;
  font-size: 12px;
}

.account {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-top: 1px solid #e5e7df;
}

.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #dfe7e0;
  color: #24513f;
  font-size: 12px;
  font-weight: 700;
}

.account-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sign-out {
  border: 0;
  background: transparent;
  color: #757a73;
  cursor: pointer;
  font-size: 10px;
}

.content {
  min-width: 0;
  padding: 42px 44px 64px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #728076;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #20251f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.summary {
  margin: 8px 0 0;
  color: #7c8179;
  font-size: 12px;
}

.health {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.health.healthy {
  border-color: #c7ddce;
  background: #eff7f1;
  color: #286141;
}

.health.healthy .health-dot {
  background: #34845a;
}

.health.missing {
  border-color: #e5c8bc;
  background: #fbf2ee;
  color: #93472d;
}

.health.missing .health-dot {
  background: #cb6040;
}

.grid-card,
.loading-card,
.error-banner {
  border: 1px solid #dfe2da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(32 35 31 / 4%);
}

.grid-card {
  overflow: hidden;
}

.inventory-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 11px 16px;
  border-bottom: 1px solid #e7e9e2;
  background: #fbfcf9;
}

.inventory-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #626961;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.inventory-toolbar input {
  accent-color: #2f6a4f;
}

.deprecated-count {
  display: grid;
  min-width: 19px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: #eceee9;
  color: #747a72;
  font-size: 9px;
}

.grid-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  min-width: 190px;
  padding: 16px 18px;
  border-right: 1px solid #eceee8;
  border-bottom: 1px solid #e7e9e2;
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f8f9f5;
  color: #747b72;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-column {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 310px;
  min-width: 310px;
  max-width: 310px;
  background: #fff;
  box-shadow: 1px 0 0 #e7e9e2;
}

th.key-column {
  z-index: 2;
  background: #f8f9f5;
}

.actions-column {
  width: 104px;
  min-width: 104px;
  text-align: center;
}

.environment-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.environment-heading strong {
  color: #3e443d;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.environment-heading span {
  color: #9a9e97;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.environment-heading em {
  color: #a34d38;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.key-details > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.key-details code,
.value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.key-details code {
  color: #292d28;
  font-size: 11px;
  font-weight: 650;
}

.key-details p {
  margin: 7px 0 0;
  color: #8a8f87;
  font-size: 10px;
  line-height: 1.45;
}

.classification,
.deprecated-badge {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.classification.public {
  background: #e7f1eb;
  color: #357052;
}

.classification.secret {
  background: #eeeaf5;
  color: #665184;
}

.deprecated-badge {
  background: #f0f0ed;
  color: #898d87;
}

.deprecated {
  opacity: 0.58;
}

.value {
  display: block;
  overflow: hidden;
  max-width: 280px;
  color: #30352f;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.value.revealed {
  padding: 6px 8px;
  border: 1px solid #e3dcec;
  border-radius: 5px;
  background: #f8f5fb;
  color: #4e3c66;
}

.masked {
  color: #999d96;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  text-transform: capitalize;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status.missing,
.status.unset {
  color: #a54c33;
}

.status.missing::before,
.status.unset::before {
  background: #d76647;
}

.status.unavailable {
  color: #8b7c53;
}

.status.unavailable::before {
  background: #b99b4f;
}

.reveal-button {
  min-width: 70px;
  padding: 6px 9px;
  border: 1px solid #ced5cc;
  border-radius: 6px;
  background: #fff;
  color: #3e5c4b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.reveal-button:hover:not(:disabled) {
  border-color: #9eb1a3;
  background: #f3f7f3;
}

.reveal-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.loading-card {
  padding: 42px;
  color: #7d827a;
  font-size: 13px;
  text-align: center;
}

.error-banner {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-color: #e6c4b9;
  background: #fff7f4;
  color: #8f402c;
  font-size: 12px;
}

.view-tabs {
  display: flex;
  gap: 4px;
  margin: -8px 0 20px;
  border-bottom: 1px solid #dfe2da;
}

.view-tab {
  padding: 10px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #7b8178;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.view-tab:hover {
  color: #315441;
}

.view-tab.active {
  border-bottom-color: #2f6a4f;
  color: #204c38;
}

.audit-table {
  min-width: 1180px;
}

.audit-table th,
.audit-table td {
  min-width: 130px;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 165px;
  min-width: 165px;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 275px;
  min-width: 275px;
}

.audit-table th:nth-child(5),
.audit-table td:nth-child(5) {
  width: 290px;
  min-width: 290px;
}

.audit-table time {
  color: #666d64;
  font-size: 10px;
  white-space: nowrap;
}

.actor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.actor strong {
  color: #363b35;
  font-size: 11px;
}

.actor small {
  overflow: hidden;
  max-width: 240px;
  color: #92978f;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actor-kind,
.operation,
.result,
.consumer-status {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actor-kind.human {
  background: #e7f1eb;
  color: #2d6749;
}

.actor-kind.machine {
  background: #e9edf5;
  color: #465f86;
}

.actor-kind.unknown {
  background: #f6e9e4;
  color: #9a4933;
}

.operation.read-values,
.operation.admin-reveal {
  background: #eeeaf5;
  color: #665184;
}

.operation.presence-check {
  background: #edf0ea;
  color: #687066;
}

.audit-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #8a8f87;
  font-size: 9px;
}

.audit-keys code {
  padding: 3px 5px;
  border-radius: 4px;
  background: #f2f3ef;
  color: #4f554e;
  font-size: 8px;
}

.result.success {
  background: #e8f2eb;
  color: #2e6949;
}

.result.failure {
  background: #f7e9e4;
  color: #9d4933;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.usage-card {
  padding: 20px;
  border: 1px solid #dfe2da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(32 35 31 / 4%);
}

.usage-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.usage-kind {
  margin: 0 0 5px;
  color: #778078;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.usage-card h2 {
  margin: 0;
  color: #30352f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.consumer-status.active {
  background: #e7f1eb;
  color: #2d6749;
}

.consumer-status.revoked {
  background: #eeeeeb;
  color: #7c817a;
}

.usage-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.usage-card dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
}

.usage-card dt {
  color: #8b9188;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.usage-card dd {
  min-width: 0;
  margin: 0;
  color: #50564f;
  font-size: 10px;
}

.usage-card code {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.usage-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.usage-credentials {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.usage-credential,
.credential-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid #e4e6df;
  border-radius: 8px;
  background: #fafbf8;
}

.usage-credential > div:first-child,
.credential-row > div:first-child {
  display: grid;
  gap: 6px;
}

.usage-credential strong,
.credential-row strong {
  color: #3d443d;
  font-size: 11px;
}

.usage-credential > div:first-child > code,
.credential-row span {
  color: #82887f;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}

.usage-keys code {
  padding: 3px 5px;
  border-radius: 4px;
  background: #edf0ea;
  color: #565f56;
  font-size: 8px;
}

.settings-layout {
  display: grid;
  gap: 18px;
}

.settings-card {
  padding: 22px;
  border: 1px solid #dfe2da;
  border-radius: 12px;
  background: #fff;
}

.settings-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.settings-card-heading h2 {
  margin: 3px 0 0;
  color: #30352f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.settings-card-heading > p,
.issued-key p,
.settings-empty {
  margin: 0;
  color: #7b8178;
  font-size: 10px;
}

.consumer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.consumer-form > label {
  display: grid;
  gap: 6px;
  color: #666e65;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consumer-form input,
.consumer-form select {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d4d9d1;
  border-radius: 6px;
  background: #fff;
  color: #333a33;
  font: inherit;
  text-transform: none;
}

.variable-picker {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
  max-height: 240px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #dfe2da;
  border-radius: 8px;
}

.variable-picker legend {
  padding: 0 6px;
  color: #666e65;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.variable-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.variable-picker .select-all-variables {
  grid-column: 1 / -1;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e5de;
  color: #3f5949;
  font-size: 10px;
}

.variable-picker code {
  font-size: 9px;
}

.primary-button,
.issued-key button,
.credential-actions button {
  padding: 8px 11px;
  border: 1px solid #bfc9bf;
  border-radius: 6px;
  background: #fff;
  color: #315441;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.primary-button {
  justify-self: start;
  border-color: #315f47;
  background: #315f47;
  color: #fff;
}

.primary-button:disabled,
.credential-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.issued-key {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #a9c8b4;
  border-radius: 10px;
  background: #f0f8f2;
  color: #27523a;
}

.issued-key code {
  overflow: auto;
  padding: 9px;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.consumer-settings-list {
  display: grid;
  gap: 12px;
}

.consumer-settings-card {
  border: 1px solid #e1e4dd;
  border-radius: 9px;
  overflow: hidden;
}

.consumer-settings-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  background: #fafbf8;
}

.consumer-settings-card > header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.consumer-settings-card > header strong {
  color: #353b35;
  font-size: 12px;
}

.consumer-settings-card > header code {
  color: #858b83;
  font-size: 9px;
}

.credential-row {
  margin: 0 14px 14px;
}

.credential-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.credential-actions .danger-button {
  border-color: #dfc5bc;
  color: #914b37;
}

.developer-access-note {
  padding: 15px 18px;
  border: 1px solid #d9e1d8;
  border-radius: 9px;
  background: #f7faf6;
}

.developer-access-note strong {
  color: #35513f;
  font-size: 11px;
}

.developer-access-note p {
  margin: 4px 0 0;
  color: #737b71;
  font-size: 10px;
}
