: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;
}

.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;
}
