/* StrongPoint styling shared with the VoCoVo demo. Local Inter declarations are in fonts.css. */
:root {
  --blue: #4148c5;
  --indigo: #4951dc;
  --yellow: #ffb800;
  --blue-deep: #141e50;
  --blue-soft: #efeffb;
  --ink: #141e50;
  --muted: #5a5e76;
  --border: #e3e4eb;
  --surface: #fff;
  --canvas: #f7f7f9;
  --danger: #b44831;
  --green: #2d7560;
  --amber: #946521;
  --shadow: 0 12px 45px #141e5012;
  --accent: var(--blue);
  --nav: var(--blue-deep);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

button:hover, .button-link:hover {
  border-color: #edab00;
  background: #edab00;
  text-decoration: none;
}

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

button.secondary {
  border-color: #b9bcc9;
  background: var(--surface);
  color: var(--blue-deep);
}

button.secondary:hover {
  border-color: var(--blue);
  background: var(--canvas);
}

button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 11px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 0 19px 22px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 120px;
  margin: 0 -19px 30px;
  padding: 27px 24px;
  color: #fff;
}

.brand::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--indigo);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  content: "";
}

.brand-logo {
  display: block;
  width: 185px;
  max-width: 100%;
  height: auto;
}

.brand-subtitle {
  padding-left: 1px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.workspace-label {
  margin: 0 11px 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sidebar .foot {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 36px 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.sidebar :where(.foot) a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sidebar nav a {
  display: block;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sidebar nav a:hover {
  background: var(--canvas);
  text-decoration: none;
}

.sidebar nav a.active, .sidebar nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.workspace {
  min-width: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.row > * {
  min-width: 0;
}

.grow {
  flex: 1;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 78px;
  padding: 17px 38px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.topbar > .row {
  min-width: 0;
  max-width: 100%;
}

.topbar > .row:last-child {
  margin-left: auto;
  justify-content: flex-end;
}

.identity {
  min-width: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.identity strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.content {
  max-width: 1440px;
  margin: auto;
  padding: 36px 38px 60px;
}

.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.pagehead > div {
  min-width: 0;
}

.pagehead > button {
  flex-shrink: 0;
  margin-top: 3px;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}

h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.03em;
}

h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.pagehead p {
  max-width: 660px;
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.card {
  min-width: 0;
  margin-bottom: 25px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 2px 4px #141e5003;
}

.card > :last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.grid > .card {
  margin-bottom: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.badge {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25px;
  white-space: nowrap;
}

.badge.active, .badge.delivered, .badge.succeeded {
  background: #eaf4ef;
  color: var(--green);
}

.badge.open, .badge.pending, .badge.retry, .badge.draft,
.badge.resolving, .badge.development {
  background: #fff4dd;
  color: #765918;
}

.badge.expired, .badge.dead-letter, .badge.failed,
.badge.suspended, .badge.rejected {
  background: #fff0eb;
  color: var(--danger);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

input, textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b9bcc9;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

input::placeholder, textarea::placeholder {
  color: #6e7288;
}

input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.full {
  grid-column: 1 / -1;
}

.help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

textarea {
  min-height: 90px;
  line-height: 1.65;
  resize: vertical;
}

select[multiple] {
  min-height: 150px;
}

.form-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  scrollbar-gutter: stable;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  max-width: 350px;
  padding: 16px 14px;
  border-bottom: 1px solid #eeeff3;
  vertical-align: top;
  overflow-wrap: anywhere;
}

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

tbody tr:hover {
  background: #fafafd;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.request {
  border-left: 4px solid var(--blue);
}

.request .meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.meta dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #f0e0bd;
  border-radius: 4px;
  background: #fff9ed;
  color: #765918;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.alert.error {
  border-color: #efcdd1;
  background: #fff1f2;
  color: var(--danger);
}

.login {
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 8vh auto;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.login .brand {
  min-height: 132px;
  margin: -38px -38px 32px;
  padding: 29px 38px;
}

.login .brand::before {
  border-top-left-radius: 5px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 32px) 100%, 0 100%);
}

.login h1 {
  margin-bottom: 14px;
  font-size: 28px;
}

.login form {
  margin-top: 26px;
}

.login .button-link {
  display: flex;
  width: 100%;
  margin: 22px 0;
  padding: 13px 16px;
}

.loading {
  margin: 60px 38px;
  color: var(--muted);
  font-size: 13px;
}

#notice {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  width: max-content;
  max-width: min(540px, calc(100vw - 48px));
  padding: 15px 17px;
  border: 1px solid #cbded5;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#notice.error {
  border-color: #efcdd1;
  border-left-color: var(--danger);
  color: var(--danger);
}

details {
  margin-top: 18px;
}

summary {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  cursor: pointer;
}

details[open] > summary {
  margin-bottom: 14px;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--muted);
  font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
}

.divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.subtle {
  color: var(--muted);
  font-size: 11px;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: -100px;
  left: 15px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--blue);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

@media (min-width: 1500px) {
  .content {
    padding: 44px 52px 60px;
  }

  .topbar {
    padding-right: 52px;
    padding-left: 52px;
  }
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sidebar .brand {
    margin-right: -14px;
    margin-left: -14px;
  }

  .content {
    padding: 30px 26px 48px;
  }

  .topbar {
    padding-right: 26px;
    padding-left: 26px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 27px;
  }
}

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .brand {
    min-height: 108px;
    margin: 0 -18px 18px;
    padding: 22px 20px;
  }

  .sidebar .brand::before {
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  }

  .workspace-label {
    margin: 0 4px 9px;
    font-size: 9px;
  }

  .sidebar :where(.foot) a {
    font-size: 11px;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 5px;
    margin: 0 -4px;
    padding: 4px;
    overflow-x: auto;
  }

  .sidebar nav a {
    flex-shrink: 0;
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .sidebar .foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0;
    padding: 12px 4px 0;
    font-size: 10px;
  }

  .topbar {
    gap: 12px;
    min-height: 70px;
    padding: 16px 20px;
  }

  .topbar > .row:last-child {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .identity {
    flex: 1 1 180px;
    max-width: 100%;
  }

  .content {
    padding: 26px 19px 40px;
  }

  .pagehead {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 23px;
  }

  h1 {
    font-size: 25px;
  }

  .pagehead p {
    font-size: 12px;
  }

  .card {
    margin-bottom: 20px;
    padding: 18px;
  }

  .grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .request .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  th, td {
    padding: 13px 12px;
  }

  .login {
    margin: 24px auto;
    padding: 28px;
  }

  .login .brand {
    min-height: 120px;
    margin: -28px -28px 27px;
    padding: 26px 28px;
  }

  .login h1 {
    font-size: 25px;
  }

  .loading {
    margin: 40px 20px;
  }

  #notice {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 400px) {
  .request .meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
