:root {
  font-family:
    "Aktiv",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1c2024;
  background: #fcfcfd;
  font-size: 14px;
  --accent: #2709dc;
  --accent-hover: #3400a8;
  --accent-soft: #ebf2ff;
  --border: #e2e4e9;
  --muted: #60646c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: inherit;
  padding: 8px 12px;
  line-height: 18px;
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f0f0f3;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #81a0ff;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  background: transparent;
}
input,
select,
textarea {
  border: 1px solid #d9d9e0;
  border-radius: 6px;
  background: white;
  padding: 10px;
  color: #1c2024;
  outline-color: #81a0ff;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #81a0ff;
  outline-offset: 1px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 7px 0 10px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
p {
  line-height: 1.6;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 24px 16px;
  background: #f9f9fb;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}
.brand img {
  width: 81px;
  height: 32px;
}
.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.nav-label {
  margin: 36px 12px 10px;
}
nav {
  display: grid;
  gap: 4px;
}
nav button {
  background: none;
  border: 0;
  text-align: left;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  color: #60646c;
  font-weight: 500;
}
nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.aside-bottom {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.aside-bottom p {
  overflow-wrap: anywhere;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #007a54;
  border-radius: 100%;
  margin-right: 4px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}
.workspace {
  margin-left: 224px;
}
header {
  height: 64px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.context {
  display: flex;
  gap: 12px;
  align-items: center;
}
.context label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
header select {
  font-weight: 600;
  border: 0;
  padding-left: 2px;
}
header a {
  font-size: 12px;
}
main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  min-height: calc(100vh - 113px);
}
.global-search {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.global-search input {
  max-width: 520px;
  width: 100%;
  background: #fff;
}
.global-search button {
  font-size: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 740px;
}
.pill {
  border: 1px solid var(--border);
  background: #f0f0f3;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.controls input {
  min-width: 200px;
}
.controls .grow {
  flex: 1;
  max-width: 460px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
}
.card-title {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.card-title small {
  font-weight: 400;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
th {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  background: #f9f9fb;
  color: #60646c;
}
th,
td {
  padding: 12px 18px;
  border-bottom: 1px solid #eceef0;
}
tr:last-child td {
  border-bottom: 0;
}
td button {
  font-size: 12px;
  padding: 4px 8px;
  margin-right: 6px;
}
td .danger {
  color: #a73936;
}
td:first-child {
  font-weight: 500;
}
td.wrap {
  white-space: normal;
  min-width: 220px;
  max-width: 450px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  border: 1px solid #dfe9ff;
  background: #f6f9ff;
  padding: 13px 17px;
  border-radius: 7px;
  margin: 12px 0;
  line-height: 1.6;
  font-size: 13px;
}
.notice.error {
  background: #fff1ee;
  border-color: #edc7bd;
  color: #922f24;
}
.empty {
  padding: 70px 25px;
  text-align: center;
}
.empty h2 {
  font-size: 18px;
}
.empty p {
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
footer {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  color: #60646c;
  font-size: 11px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
}
.metric strong {
  display: block;
  font-size: 35px;
  letter-spacing: -0.6px;
  margin: 14px 0;
}
.login {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 14vh auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px #1c202408;
}
.login .brand {
  margin-bottom: 36px;
}
.login .button {
  margin: 20px 0 12px;
  width: 100%;
  text-align: center;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 780px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: inherit;
  box-shadow: 0 24px 100px #1c202426;
}
dialog::backdrop {
  background: #10182866;
  backdrop-filter: blur(2px);
}
dialog label {
  margin-top: 20px;
}
dialog input,
dialog textarea,
dialog select {
  width: 100%;
}
dialog li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f9f9fb;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 6px;
  max-height: 400px;
  overflow: auto;
  font-size: 11px;
}
#global-results {
  margin-bottom: 25px;
}
#global-results h3 {
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  aside {
    width: 175px;
    padding: 25px 12px;
  }
  .workspace {
    margin-left: 175px;
  }
  header,
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .context {
    gap: 6px;
  }
  .context label {
    display: none;
  }
  .pill {
    font-size: 9px;
  }
}
@media (max-width: 680px) {
  aside {
    position: static;
    width: auto;
    padding: 15px;
  }
  aside .brand {
    font-size: 24px;
  }
  .nav-label {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: auto;
    align-items: start;
    padding: 15px;
  }
  .context {
    flex-wrap: wrap;
  }
  header a {
    display: none;
  }
  main {
    padding: 20px 15px;
  }
  .page-heading {
    gap: 10px;
  }
  h1 {
    font-size: 27px;
  }
  .global-search {
    margin-bottom: 30px;
  }
  th,
  td {
    padding: 12px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .controls {
    align-items: stretch;
  }
  .controls input {
    min-width: 0;
  }
  footer {
    padding: 15px;
  }
}

/* Flow product typography and interaction tokens. */
@font-face {
  font-family: "Aktiv";
  src: url("/assets/aktiv-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aktiv";
  src: url("/assets/aktiv-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aktiv";
  src: url("/assets/aktiv-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
::selection {
  background: #dfe9ff;
}
body {
  -webkit-font-smoothing: antialiased;
}
input::placeholder,
textarea::placeholder {
  color: #7e808a;
}
button,
.button {
  transition:
    background-color 120ms,
    border-color 120ms;
}
.primary:hover {
  color: white;
  border-color: var(--accent-hover);
}
#refresh {
  white-space: nowrap;
  flex-shrink: 0;
}
#role {
  text-transform: capitalize;
}
#description {
  font-size: 13px;
}
.eyebrow {
  letter-spacing: 0.3px;
}
tbody tr:hover {
  background: #fcfcfd;
}
td .danger:hover {
  background: #fff1ee;
  border-color: #edc7bd;
}
.login .brand {
  padding: 0;
}
.login h1 {
  font-size: 24px;
}
.login > p {
  color: var(--muted);
}
dialog h2 {
  margin: 0 0 12px;
}
dialog .eyebrow {
  margin-bottom: 12px;
}
#staff-dialog {
  max-width: 540px;
}
@media (max-width: 680px) {
  #shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  main {
    min-height: 0;
    flex: 1;
    width: 100%;
  }
  .aside-bottom {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .aside-bottom p {
    display: inline;
    margin-left: 8px;
  }
  #logout {
    float: right;
  }
  .global-search input {
    min-width: 0;
  }
  .global-search button {
    white-space: nowrap;
  }
  .login {
    margin-top: 8vh;
    padding: 28px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
  }
}
