:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263b36;
  background: #f2f6f4;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #25694f;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button[aria-busy="true"] {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #619b82;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.15rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
p {
  color: #65736e;
  margin-bottom: 20px;
}
small {
  display: block;
  color: #5f7066;
  font-size: 0.8rem;
  margin-top: 3px;
}
strong,
.strong {
  font-weight: 650;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #263b36;
  font-weight: 650;
  font-size: 0.95rem;
}
.brand small {
  font-size: 0.73rem;
  font-weight: 400;
}
.brand-mark {
  border: 1px solid #c9d8d0;
  background: #fff;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 0.9rem;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  background: #eaf0ec;
  padding: 30px 20px;
  border-right: 1px solid #d9e1dc;
  display: flex;
  flex-direction: column;
}
nav {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}
nav a {
  padding: 11px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #52665b;
  font-weight: 550;
}
nav a:hover {
  background: #dfe9e2;
}
nav a[aria-current] {
  background: #d6e5dc;
  color: #204f3b;
}
.profile {
  margin-top: auto;
  font-size: 0.85rem;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.profile span {
  color: #5f7066;
}
.profile button {
  justify-self: start;
  padding-left: 0;
}
main {
  margin-left: 242px;
  padding: 44px clamp(24px, 4vw, 64px);
  max-width: 1800px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.heading p:last-child {
  margin-bottom: 0;
}
.primary,
.secondary,
.danger,
.text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
  min-height: 42px;
}
.primary {
  background: #246b51;
  border: 1px solid #246b51;
  color: white;
}
.primary:hover {
  background: #1c563f;
}
.secondary {
  background: white;
  border: 1px solid #d1dbd4;
  color: #344b3e;
}
.secondary:hover {
  background: #f5f8f5;
}
.danger {
  background: #9f3d37;
  border: 1px solid #9f3d37;
  color: white;
}
.text {
  background: transparent;
  border: 1px solid transparent;
  color: #52655a;
}
.panel {
  background: #fff;
  border: 1px solid #dce4df;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
.padded {
  padding: 28px;
}
.panel .padded {
  padding-bottom: 12px;
}
.search {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid #e3e9e5;
}
.search input {
  max-width: 400px;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th {
  background: #f8faf8;
  color: #5f7066;
  font-size: 0.74rem;
  letter-spacing: 0.025em;
  font-weight: 550;
  padding: 13px 20px;
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #edf0ee;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fcfdfc;
}
.badge {
  display: inline-flex;
  white-space: nowrap;
  border: 1px solid #d6e6dd;
  background: #eef6f0;
  color: #3d7055;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 550;
}
.badge.amber {
  background: #fff7e8;
  color: #946624;
  border-color: #f0dfbc;
}
.badge.red {
  background: #fbeeee;
  color: #963e39;
  border-color: #edcfcc;
}
.empty {
  text-align: center;
  padding: 60px 24px;
  color: #5f7066;
}
.empty p {
  margin: 0;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e6ebe7;
  padding: 16px 20px;
  font-size: 0.8rem;
  color: #5f7066;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.footnote {
  font-size: 0.73rem;
  color: #5f7066;
  margin-top: 28px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
dl {
  display: flex;
  gap: 40px;
  margin: 24px 0;
}
dt {
  color: #5f7066;
  font-size: 0.8rem;
  margin-bottom: 5px;
}
dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.stack {
  display: grid;
  gap: 18px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
hr {
  border: 0;
  border-top: 1px solid #e0e7e2;
  margin: 28px 0;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  overflow-wrap: anywhere;
  font-size: 0.87em;
}
.muted {
  font-size: 0.85rem;
  color: #5f7066;
}
.info {
  background: #f1f6f2;
  border-radius: 7px;
  padding: 20px;
  margin: 22px 0;
  font-size: 0.9rem;
  color: #5b6f60;
}
.info p {
  margin: 6px 0 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 20px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #cdd8d0;
  border-radius: 6px;
  background: #fff;
  color: #304638;
  padding: 12px 14px;
  margin-top: 9px;
  min-width: 0;
}
textarea {
  resize: vertical;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0;
}
.licence-form {
  max-width: 1000px;
}
.licence-form footer {
  border-top: 1px solid #e0e7e2;
  margin-top: 28px;
  padding-top: 24px;
}
footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
dialog {
  border: 1px solid #d8e2db;
  border-radius: 12px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: 90vh;
  color: inherit;
  box-shadow: 0 24px 80px #1d36252b;
}
dialog::backdrop {
  background: #152a204d;
}
dialog header {
  padding: 26px 28px 0;
}
dialog h2 {
  font-size: 1.35rem;
}
dialog .dialog-body {
  padding: 24px 28px;
}
dialog header + .dialog-body {
  padding-top: 0;
}
dialog footer {
  padding: 18px 28px;
  background: #f6f8f6;
  border-top: 1px solid #e0e6e1;
}
dialog label:last-child {
  margin-bottom: 0;
}
.error {
  background: #fff0ed;
  color: #8e3a2f;
  border: 1px solid #edc8c1;
  border-radius: 6px;
  padding: 14px;
  margin: 12px 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.error button {
  display: block;
  margin-top: 10px;
}
.login {
  margin: 0 auto;
  max-width: 520px;
  padding-top: clamp(30px, 12vh, 160px);
}
.login > .brand {
  margin-bottom: 32px;
}
.login .panel {
  padding: 34px;
}
.login h1 {
  font-size: 1.9rem;
}
.login .muted {
  margin: 26px 0 0;
}
.wide {
  width: 100%;
}
.key-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
}
.key-list li {
  padding: 20px 0;
  border-bottom: 1px solid #e4ebe5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.nowrap {
  white-space: nowrap;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #294d3a;
  color: white;
  padding: 12px 22px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
}
.skip {
  position: fixed;
  left: 16px;
  top: -70px;
  padding: 12px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 1500px) {
  :root {
    font-size: 16px;
  }
}
@media (max-width: 1000px) {
  aside {
    width: 210px;
    padding: 24px 14px;
  }
  main {
    margin-left: 210px;
    padding: 32px 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 0.83rem;
  }
  .brand-mark {
    display: none;
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    padding: 18px 20px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid #d9e1dc;
  }
  .brand small {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    margin-top: 16px;
    gap: 6px;
    padding-bottom: 4px;
  }
  nav a {
    font-size: 0.8rem;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .profile {
    display: flex;
    justify-content: flex-end;
  }
  .profile strong,
  .profile span {
    display: none;
  }
  main {
    margin: 0;
    padding: 28px 16px;
  }
  .heading {
    align-items: flex-start;
    gap: 16px;
  }
  .heading h1 {
    font-size: 1.65rem;
  }
  .heading > div {
    min-width: 0;
  }
  .heading > div > p {
    font-size: 0.9rem;
  }
  .heading > .primary {
    font-size: 0.8rem;
    padding: 9px 11px;
  }
  .padded {
    padding: 22px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl {
    gap: 24px;
  }
  .search {
    padding: 16px;
  }
  .key-list li {
    display: block;
  }
  .key-list .actions {
    margin-top: 12px;
  }
  .login {
    margin: auto;
    padding: 40px 20px;
  }
  .login .panel {
    padding: 26px;
  }
  .footnote {
    line-height: 1.7;
  }
  .pagination {
    padding: 14px;
    font-size: 0.75rem;
  }
  .pagination button {
    padding: 8px 10px;
  }
  .panel {
    margin-bottom: 20px;
  }
  .profile .text {
    padding: 4px 0;
    min-height: 32px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #toast {
    transition: opacity 0.15s;
  }
}

.search select {
  width: 210px;
  margin: 0;
}
.renewal-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid #e9d9b7;
  border-radius: 8px;
  background: #fff9ed;
  color: #85672d;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.renewal-notice strong {
  display: block;
}
@media (max-width: 700px) {
  .search {
    flex-wrap: wrap;
  }
  .search input {
    max-width: none;
    flex: 1 0 100%;
  }
  .search select {
    flex: 1;
    min-width: 0;
  }
  .renewal-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

::selection {
  background: #cce3d5;
  color: #203d2c;
}
input,
textarea {
  caret-color: #246b51;
}
@media (max-width: 700px) {
  nav {
    scrollbar-width: thin;
    scrollbar-color: #839a8d #dce6df;
  }
}

.customer-choices {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.customer-choices legend {
  font-weight: 600;
  margin-bottom: 16px;
}
.customer-choices span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  dialog footer {
    flex-wrap: wrap;
  }
  dialog footer button {
    white-space: normal;
  }
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #5f7066;
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e0e7e2;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.reauth-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.reauth-inline input {
  flex: 1;
  min-width: 180px;
  margin-top: 0;
}
.reauth-inline button {
  margin-top: 0;
}
