@font-face {
  font-family: Ubuntu Sans;
  src: url("/static/fonts/UbuntuSans-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: Ubuntu Sans Mono;
  src: url("/static/fonts/UbuntuSansMono-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --waddle-navy: #00185e;
  --waddle-deep: #001241;
  --waddle-blue: #93d9fa;
  --waddle-amber: #f4bc67;
  --waddle-green: #3ec299;
  --waddle-charcoal: #272d3a;
  --waddle-grey: #ddd9d9;
  --sans: "Ubuntu Sans", system-ui, sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --base: var(--waddle-navy);
  --surface: var(--waddle-deep);
  --elevated: #0a2a6e;
  --text: var(--waddle-grey);
  --secondary: #c2c7dd;
  --muted: #9da8cb;
  --accent: var(--waddle-blue);
  --action: var(--waddle-grey);
  --action-ink: var(--waddle-navy);
  --success: var(--waddle-green);
  --warning: var(--waddle-amber);
  --danger: #ffad9c;
  --selection: #1e3f8f;
  --logo: url("/static/logo-white.svg");
  --overlay: #000a2b99;
}
[data-theme="light"] {
  color-scheme: light;
  --base: #fff;
  --surface: #f5f6f9;
  --elevated: #e9edf5;
  --text: var(--waddle-navy);
  --secondary: var(--waddle-charcoal);
  --muted: #62708a;
  --accent: #1d65a8;
  --action: var(--waddle-navy);
  --action-ink: #fff;
  --success: #157554;
  --warning: #93601c;
  --danger: #b73c2b;
  --selection: #cfe6f4;
  --logo: url("/static/logo-antarctic.svg");
  --overlay: #00124155;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--selection);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select,
summary {
  cursor: pointer;
}
button,
.button {
  border: 0;
  border-radius: 5px;
  background: var(--elevated);
  padding: 7px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: var(--action);
  color: var(--action-ink);
}
.quiet,
.icon-button {
  background: transparent;
}
.quiet:hover,
.icon-button:hover {
  background: var(--elevated);
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input,
textarea,
select {
  border: 0;
  background: var(--surface);
  border-radius: 5px;
  padding: 9px 11px;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: var(--elevated);
}
input:focus-visible,
textarea:focus-visible {
  box-shadow: inset 3px 0 var(--accent);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.secondary {
  color: var(--secondary);
}
.small {
  font-size: 12px;
}
.mono,
code,
pre {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 12px 0;
}
.error {
  color: var(--danger);
}
.success {
  color: var(--success);
}
.warning {
  color: var(--warning);
}
.brand-mark {
  width: 25px;
  height: 25px;
  background: var(--logo) center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.topbar {
  height: 48px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 18px;
}
.topbar select {
  padding: 4px;
  font-size: 12px;
}
.top-context {
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}
.quiet-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.quiet-link:hover {
  color: var(--text);
}
.workspace {
  display: flex;
  height: calc(100dvh - 74px);
}
aside {
  width: 208px;
  background: var(--surface);
  padding: 25px 12px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.nav-label {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--secondary);
  text-decoration: none;
  border-radius: 5px;
  font-size: 13px;
}
nav a:hover,
nav a[aria-current="page"] {
  background: var(--elevated);
  color: var(--text);
}
.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  font-weight: 400;
}
.nav-count {
  margin-left: auto;
  color: var(--muted);
  font: 11px var(--mono);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 9px;
  overflow: hidden;
  padding: 0 10px;
}
.sidebar-bottom span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bottom button {
  justify-content: flex-start;
  padding-left: 0;
}
main {
  flex: 1;
  overflow: auto;
  padding: 35px 42px;
  min-width: 0;
  scrollbar-gutter: stable;
}
footer {
  height: 26px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: var(--muted);
  font-size: 10px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.summary {
  display: flex;
  gap: 55px;
  margin: 8px 0 34px;
}
.summary strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -1px;
}
.summary span {
  font-size: 12px;
  color: var(--muted);
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding: 10px 14px;
  white-space: nowrap;
}
td {
  padding: 15px 14px;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
tr[data-node] {
  cursor: pointer;
}
tbody tr:hover {
  background: var(--surface);
}
td .subline {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.status::before {
  content: "";
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status[data-state="active"],
.status[data-state="succeeded"],
.status[data-state="qualified"] {
  color: var(--success);
}
.status[data-state="running"],
.status[data-state="pending"],
.status[data-state="queued"],
.status[data-state="revoking"],
.status[data-state="draining"] {
  color: var(--warning);
}
.status[data-state="failed"],
.status[data-state="unreachable"],
.status[data-state="unknown"],
.status[data-state="interrupted"] {
  color: var(--danger);
}
.status[data-state="planned"],
.status[data-state="offline"],
.status[data-state="revoked"] {
  color: var(--muted);
}
.bar {
  height: 4px;
  background: var(--elevated);
  width: 105px;
  margin-top: 7px;
  border-radius: 4px;
  overflow: hidden;
}
.bar > span {
  display: block;
  background: var(--accent);
  height: 100%;
}
.empty {
  padding: 55px 0;
  color: var(--muted);
  max-width: 500px;
}
.empty h2 {
  color: var(--text);
  margin-bottom: 7px;
}
.detail {
  margin-top: 30px;
  padding: 25px 0;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 22px 0;
}
.facts dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notice-line {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 12px;
  margin: 20px 0;
}
.token-output {
  padding: 20px;
  background: var(--surface);
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.token-output code {
  display: block;
  margin: 12px 0;
  user-select: all;
}
.env-list {
  display: grid;
  gap: 8px;
}
.env-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.env-row .env-info {
  flex: 1;
}
.env-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pills code {
  background: var(--surface);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.agent-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  height: calc(100% - 85px);
  min-height: 400px;
  gap: 28px;
}
.chat-list {
  overflow: auto;
}
.chat-list button {
  background: transparent;
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
  font-size: 12px;
}
.chat-list button:hover,
.chat-list button.selected {
  background: var(--surface);
}
.conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 0 10px 20px 0;
}
.message {
  padding: 16px 0;
  max-width: 850px;
}
.message-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  margin-bottom: 5px;
}
.message.user .message-body {
  font-weight: 500;
}
.tool-event {
  margin: 8px 0;
  color: var(--secondary);
}
.tool-event summary {
  font: 12px var(--mono);
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.tool-event pre {
  background: var(--surface);
  padding: 12px;
  border-radius: 5px;
  max-height: 350px;
  overflow: auto;
}
.composer {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
}
.composer textarea {
  width: 100%;
  background: transparent;
  min-height: 80px;
  resize: vertical;
  padding: 0;
}
.composer textarea:focus-visible {
  box-shadow: none;
}
.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
}
.composer-actions span {
  font-size: 11px;
  color: var(--muted);
}
.login-content {
  margin: 18vh auto 0;
  max-width: 440px;
  padding: 24px;
}
.login-content .brand-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
}
.login-content h1 {
  font-size: 30px;
}
.login-content p {
  margin: 10px 0 25px;
}
.login-content .small {
  margin-top: 20px;
}
dialog {
  border: 0;
  border-radius: 10px;
  padding: 28px;
  background: var(--base);
  color: var(--text);
  width: min(680px, calc(100vw - 28px));
  max-height: 90dvh;
}
dialog::backdrop {
  background: var(--overlay);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-heading button {
  font-size: 22px;
}
.field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.field label {
  font-size: 12px;
  color: var(--secondary);
}
.field input,
.field textarea,
.field select {
  width: 100%;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
#notice {
  position: fixed;
  bottom: 40px;
  right: 25px;
  max-width: 440px;
  padding: 14px 20px;
  background: var(--action);
  color: var(--action-ink);
  border-radius: 6px;
  font-size: 13px;
  z-index: 10;
}
#menu-toggle {
  display: none;
}
.credentials {
  margin-top: 40px;
}
.audit-action {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  main {
    padding: 28px 24px;
  }
  aside {
    width: 175px;
  }
  .summary {
    gap: 32px;
  }
  .top-context {
    display: none;
  }
  .topbar .quiet-link {
    margin-left: auto;
  }
  .agent-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 0 12px;
    gap: 12px;
  }
  .brand strong {
    display: none;
  }
  #menu-toggle {
    display: block;
  }
  aside {
    position: absolute;
    inset: 48px auto 26px 0;
    z-index: 4;
    width: 215px;
    display: none;
  }
  aside.open {
    display: flex;
  }
  main {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .summary {
    gap: 25px;
  }
  .summary strong {
    font-size: 22px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .agent-layout {
    grid-template-columns: 1fr;
    height: calc(100% - 110px);
  }
  .chat-list {
    display: flex;
    gap: 5px;
    max-height: 46px;
  }
  .chat-list button {
    width: auto;
    min-width: 120px;
  }
  .conversation {
    min-height: 400px;
  }
  .agent-layout {
    grid-template-rows: auto 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .env-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .topbar .quiet-link {
    display: none;
  }
  .topbar select {
    margin-left: auto;
  }
  .summary {
    flex-wrap: wrap;
  }
  .actions {
    gap: 5px;
  }
  footer {
    padding: 0 12px;
  }
  .token-output {
    padding: 16px;
  }
  dialog {
    padding: 22px;
  }
}
