:root {
  font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #263c35;
  background: #f5f5ef;
  font-size: 15px;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  border: 1px solid #c6d0c6;
  border-radius: 7px;
  background: #fff;
  color: #263c35;
  padding: 8px 14px;
  cursor: pointer;
}
button:hover {
  background: #edf2e9;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
button.primary {
  background: #315343;
  color: white;
  border-color: #315343;
}
button.danger {
  color: #963c2e;
}
a {
  color: #315343;
}
.shell {
  display: grid;
  grid-template-columns: 215px minmax(0,1fr);
  min-height: 100vh;
}
aside {
  padding: 36px 24px;
  border-right: 1px solid #dce1d5;
  display: flex;
  flex-direction: column;
  background: #eef0e6;
}
.brand {
  text-decoration: none;
  font: 600 25px Georgia,serif;
  color: #263c35;
}
.brand span {
  display: block;
  font: 10px ui-sans-serif,sans-serif;
  letter-spacing: 3px;
  margin-top: 7px;
}
aside p {
  font-size: 12px;
  color: #69786b;
  margin: 45px 0 14px;
}
nav button {
  width: 100%;
  text-align: left;
  background: #dae2d2;
  border: 0;
  font-weight: 600;
}
.aside-bottom {
  margin-top: auto;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 40px;
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #80966c;
}
main {
  padding: 34px 42px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 10px;
  color: #74816d;
  margin: 0 0 10px;
}
h1 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -.5px;
  margin: 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
h3 {
  font-size: 16px;
}
.tools,
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.notice {
  padding: 11px 16px;
  border: 1px solid #d5ddc6;
  border-radius: 7px;
  background: #eaf0de;
  color: #4f6244;
  font-size: 13px;
  margin-bottom: 24px;
}
#feedback:not(:empty) {
  padding: 12px;
  background: #fff2db;
  border: 1px solid #e8d3a5;
  border-radius: 7px;
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.panel {
  background: #fff;
  border: 1px solid #dce1d5;
  border-radius: 10px;
  padding: 23px;
  margin: 20px 0;
}
.muted {
  color: #6e796f;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin: 22px 0;
}
.metric {
  background: #fff;
  border: 1px solid #dce1d5;
  border-radius: 9px;
  padding: 20px;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  margin-top: 5px;
}
.table-wrap {
  overflow: auto;
  margin-top: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
td,
th {
  border-bottom: 1px solid #e6e9e0;
  padding: 15px 12px;
}
th {
  font-size: 12px;
  font-weight: 500;
  color: #6e796f;
  background: #f7f8f3;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td .small {
  display: block;
}
.badge {
  background: #eaf0e3;
  color: #4a6640;
  border-radius: 5px;
  font-size: 12px;
  padding: 4px 8px;
}
.badge.paused,
.badge.unknown,
.badge.failed {
  background: #fff0d5;
  color: #845a27;
}
.badge.closed,
.badge.revoked {
  background: #f7e5de;
  color: #914b3b;
}
.small {
  font-size: 11px;
  color: #7c887c;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tabs .selected {
  background: #315343;
  color: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}
label {
  font-size: 13px;
  display: grid;
  gap: 5px;
}
input,
select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #c6d0c6;
  border-radius: 6px;
  background: white;
  color: #263c35;
}
input[type=checkbox] {
  width: auto;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.full {
  grid-column: 1/-1;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #6e796f;
}
.pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
footer {
  font-size: 11px;
  color: #798575;
  padding: 24px 0;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
dialog {
  max-height: 85dvh;
  overflow-y: auto;
  border: 1px solid #c6d0c6;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  padding: 26px;
  color: #263c35;
}
dialog::backdrop {
  background: #162d2560;
}
.detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
a.download {
  display: inline-block;
  padding: 10px 15px;
  background: #eaf0de;
  border-radius: 6px;
  margin-top: 12px;
}
:focus-visible {
  outline: 3px solid #99ad61;
  outline-offset: 3px;
}
@media (max-width:900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  aside {
    padding: 16px 22px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid #dce1d5;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    font-size: 8px;
  }
  aside p,
  .aside-bottom {
    display: none;
  }
  nav {
    margin-left: auto;
  }
  main {
    padding: 24px 20px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 13px;
  }
  .metric strong {
    font-size: 24px;
  }
  h1 {
    font-size: 24px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools {
    gap: 6px;
  }
  .panel {
    padding: 16px;
  }
  header {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }
}

.share-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.share-layout img {
  display: block;
  background: white;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.share-content {
  flex: 1;
  min-width: min(260px,100%);
}
.share-content .row {
  margin-top: 14px;
}
.share-content a.download {
  margin-top: 0;
}
.share-content input {
  font-size: 12px;
}

main {
  min-width: 0;
}
.share-content {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}

dialog[data-private] section { border-top: 1px solid #dce3dc; padding: 12px 0; }
dialog[data-private] button { margin: 4px 4px 4px 0; }
