:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #23352d;
  background: #f6f7f3;
  font-synthesis: none;
  --green: #234e3e;
  --muted: #758079;
  --border: #e1e6dd;
  --paper: #fff;
  --accent: #daebbb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 16px;
  background: white;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  background: #eef3e7;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #32624e;
}
.danger {
  color: #aa463e;
}
.quiet {
  border: 0;
  background: transparent;
}
.small {
  padding: 7px 10px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 550;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
p {
  line-height: 1.6;
  font-size: 14px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce2d8;
  border-radius: 8px;
  background: #fff;
  color: #23352d;
  padding: 12px;
  font-size: 13px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6f9275;
  outline: 2px solid #dae9d2;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
}
.field {
  margin-bottom: 20px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.push {
  margin-left: auto;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 25px;
}
.stack {
  display: grid;
  gap: 22px;
}
.divider {
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 9px;
  background: #eff2ec;
  color: #6b786d;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.running,
.pill.queued {
  background: #e8f0e2;
  color: #547641;
}
.pill.completed,
.pill.confirmed {
  background: #e0efe7;
  color: #276647;
}
.pill.waiting,
.pill.unknown {
  background: #fff0d1;
  color: #996b21;
}
.pill.failed,
.pill.cancelled {
  background: #f9e6e2;
  color: #ad5448;
}
.pill.interrupted {
  background: #ece8f5;
  color: #756293;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #183c32;
  color: #d8e4d9;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
  color: white;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand .beta {
  font-size: 9px;
  letter-spacing: 1px;
  background: #315448;
  color: #b5ceaa;
  border-radius: 4px;
  padding: 4px 5px;
  margin-left: 5px;
}
.workspace-label {
  margin: 42px 13px 15px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #91ae9c;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b9cfc1;
}
.nav a:hover {
  background: #254a3e;
}
.nav a.active {
  background: #315548;
  color: #eff5df;
}
.nav svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}
.sidebar-bottom {
  margin-top: auto;
}
.private-label {
  margin: 30px 12px;
  font-size: 11px;
  color: #93b39d;
}
.identity {
  border-top: 1px solid #365447;
  padding: 20px 5px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9e5c9;
  color: #274b38;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.identity-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #f2f5ec;
}
.identity-role {
  font-size: 10px;
  color: #9db6a5;
  margin-top: 4px;
}
.sidebar .quiet {
  color: #bacfc1;
  padding: 5px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: 12px;
  color: #7b867b;
  background: #fafbf7;
}
.topbar strong {
  font-weight: 500;
  color: #3c5243;
}
.topbar .pill {
  margin-left: auto;
}
.content {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 42px 65px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.hero {
  position: relative;
  background: #e9eedf;
  border: 1px solid #dde5ce;
  border-radius: 16px;
  padding: 30px 33px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  margin-bottom: 26px;
}
.hero h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.hero p {
  max-width: 530px;
  color: #6c7c62;
  font-size: 13px;
}
.hero button {
  margin-top: 8px;
}
.orb {
  position: relative;
  width: 156px;
  height: 156px;
  border: 1px solid #b7c8a1;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  background: radial-gradient(circle at 35% 35%, #f4f6e7, #dce7c7);
  box-shadow:
    0 0 0 16px #dce6cd55,
    0 0 0 32px #dce6cd33;
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  border: 1px solid #adbf97;
  border-radius: 50%;
  inset: 0 32px;
}
.orb:after {
  inset: 40px -1px;
}
.orb span {
  position: absolute;
  inset: 76px -1px auto;
  border-top: 1px solid #adbf97;
}
.stat {
  padding: 22px 23px;
}
.stat .number {
  font-size: 29px;
  margin-top: 15px;
  letter-spacing: -1px;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 31px 0 15px;
}
.section-heading h2 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #879082;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 15px 22px;
  background: #fcfdf9;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 20px 22px;
  border-bottom: 1px solid #edf0e8;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcf8;
}
.target {
  font-weight: 600;
  color: #344c3b;
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subtext {
  font-size: 10px;
  color: #93a08f;
  margin-top: 5px;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: #829079;
}
.empty h3 {
  color: #466040;
  margin: 12px 0 7px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 18px;
}
.empty-symbol {
  font-size: 27px;
  color: #aec09d;
}
.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 380px;
}
.toolbar select {
  max-width: 190px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
}
.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.settings-tabs a {
  font-size: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #74816c;
}
.settings-tabs .active {
  background: #e7eedd;
  color: #3e5e30;
  font-weight: 600;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: -7px;
  margin-bottom: 25px;
}
.key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.key-row:last-child {
  border-bottom: 0;
}
.key-row strong {
  font-size: 13px;
}
.key-row p {
  font-size: 11px;
  margin: 5px 0 0;
  color: var(--muted);
}
.note {
  border: 1px solid #dee7cd;
  background: #f0f5e8;
  padding: 14px 16px;
  border-radius: 9px;
  font-size: 12px;
  color: #5d734d;
  line-height: 1.6;
}
.error-note {
  background: #fdf0ec;
  border-color: #eed2c9;
  color: #a04f3b;
}
.scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.transcript {
  min-height: 360px;
  max-height: 600px;
  overflow: auto;
  padding: 25px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.message {
  margin: 0 0 24px;
}
.message-label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.message-label time {
  font-size: 10px;
  font-weight: 400;
  color: #96a08d;
}
.message-body {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #4a5c45;
}
.message.user .message-body {
  background: #f1f4ea;
  border: 1px solid #e4eada;
  padding: 13px 16px;
  border-radius: 0 12px 12px;
}
.activity-line {
  font-size: 11px;
  color: #839276;
  margin-bottom: 12px;
  border-left: 2px solid #d8e2cc;
  padding-left: 12px;
  overflow-wrap: anywhere;
}
.approval-card {
  border: 1px solid #e5d19d;
  background: #fffcf2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
.approval-card pre {
  font:
    12px/1.6 Consolas,
    monospace;
  max-height: 250px;
  overflow: auto;
  white-space: pre-wrap;
  background: #f4f0e2;
  padding: 12px;
}
.approval-card textarea {
  margin: 12px 0;
}
.finding {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.finding h3 {
  margin: 0 0 8px;
  line-height: 1.5;
}
.finding p {
  font-size: 11px;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.finding details {
  font-size: 12px;
  line-height: 1.6;
}
.finding pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.6 Consolas,
    monospace;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 12px;
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-story {
  background: #183c32;
  color: #d8e5d5;
  display: flex;
  flex-direction: column;
  padding: 52px 65px;
  position: relative;
  overflow: hidden;
}
.auth-story h1 {
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 450;
  max-width: 460px;
  margin: 85px 0 23px;
  color: #f4f6e9;
}
.auth-story p {
  color: #a5bda7;
  max-width: 400px;
  line-height: 1.9;
}
.auth-orb {
  width: 270px;
  height: 270px;
  margin: 70px auto 45px;
  opacity: 0.5;
  border: 1px solid #72916a;
  border-radius: 50%;
  box-shadow:
    0 0 0 32px #365640,
    0 0 0 65px #2a4b39;
  position: relative;
}
.auth-orb:before {
  content: "";
  position: absolute;
  inset: 0 62px;
  border: 1px solid #96ad77;
  border-radius: 50%;
}
.auth-orb:after {
  content: "";
  position: absolute;
  inset: 73px 0;
  border: 1px solid #96ad77;
  border-radius: 50%;
}
.auth-footer {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #8ba58b;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: #fafbf6;
}
.auth-box {
  width: 100%;
  max-width: 365px;
}
.auth-box h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 13px 0;
}
.auth-box > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-box .primary {
  width: 100%;
  padding: 13px;
}
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: #818a7d;
}
.auth-switch button {
  font-size: 12px;
  padding: 4px;
}
.form-error {
  color: #a94d3d;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #6f8167;
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #203f31;
  color: #f5f9f0;
  padding: 14px 23px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 35px #10251922;
  max-width: 90vw;
  z-index: 20;
}
.mobile-brand {
  display: none;
}
.role-row {
  display: grid;
  grid-template-columns: 130px 1fr 1.5fr 100px auto;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.role-row strong {
  font-size: 11px;
}
.role-row input,
.role-row select {
  font-size: 11px;
  padding: 9px;
}
.profile-avatar {
  width: 65px;
  height: 65px;
  font-size: 23px;
  margin-bottom: 20px;
}
.usage-total {
  font-size: 33px;
  letter-spacing: -1px;
  margin: 18px 0 7px;
}
summary {
  cursor: pointer;
}
.disabled-note {
  font-size: 11px;
  color: #9b7b40;
  margin-top: 8px;
}
button svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}
details > summary {
  font-size: 12px;
  color: #6b805e;
  margin: 16px 0;
}
code {
  font-size: 12px;
}
.report-link {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  margin-right: 7px;
}
.report-link:hover {
  background: #eef4e5;
}
@media (max-width: 1100px) {
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .scan-layout {
    grid-template-columns: 1fr;
  }
  .scan-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .role-row {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    grid-template-columns: 1fr 130px;
  }
  .orb {
    width: 110px;
    height: 110px;
  }
  .orb span {
    top: 53px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 39px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 20px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .sidebar .brand img {
    width: 31px;
    height: 31px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 17px;
    gap: 3px;
  }
  .nav a {
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 11px;
  }
  .nav svg {
    display: none;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .content {
    padding: 27px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .hero {
    padding: 25px;
    grid-template-columns: 1fr;
  }
  .hero .orb {
    display: none;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat .number {
    font-size: 24px;
  }
  .stat .eyebrow {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .stat p {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .scan-aside {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
  }
  .auth-story h1,
  .auth-story p,
  .auth-orb,
  .auth-footer {
    display: none;
  }
  .auth-form {
    padding: 45px 25px;
    align-items: flex-start;
  }
  .settings-tabs a {
    padding: 10px;
  }
  .key-row {
    grid-template-columns: 1fr;
  }
  .topbar .pill {
    font-size: 9px;
  }
  .identity-name {
    max-width: 85px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .content,
  .auth-box {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
