@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #17201e;
  --muted: #6c7773;
  --soft-muted: #929b98;
  --line: #e3e8e5;
  --line-strong: #d5ddd9;
  --canvas: #f5f7f5;
  --panel: #ffffff;
  --sidebar: #17201e;
  --sidebar-soft: #24302d;
  --lime: #caff63;
  --lime-dark: #83b92c;
  --green: #287a53;
  --amber: #a66a18;
  --red: #a3453b;
  --shadow: 0 16px 40px rgba(23, 32, 30, 0.08);
  --shadow-raised: 0 24px 70px rgba(20, 30, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.drawerOpen,
body.wizardOpen,
body.integrationOpen,
body.updatesOpen {
  overflow: hidden;
}

.authShell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 10%, rgba(202, 255, 99, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgba(103, 86, 180, 0.16), transparent 32rem),
    #111816;
  color: #f8fbf9;
}

.authShell::before,
.authShell::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.authShell::before {
  top: -24vw;
  right: -10vw;
  width: 58vw;
  height: 58vw;
}

.authShell::after {
  bottom: -34vw;
  left: -18vw;
  width: 65vw;
  height: 65vw;
}

.authBrand {
  position: absolute;
  top: 34px;
  left: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.authBrand > span:last-child {
  display: grid;
  gap: 1px;
}

.authBrand strong {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.08em;
}

.authBrand small {
  color: #91a09b;
  font-size: 0.68rem;
}

.authCard {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(28, 39, 35, 0.88);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.authCard .kicker {
  color: var(--lime);
}

.authCard h1 {
  max-width: 380px;
  margin: 14px 0 13px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.authLead {
  margin: 0 0 28px;
  color: #aeb9b5;
  line-height: 1.6;
}

.authAssurance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(202, 255, 99, 0.16);
  border-radius: 11px;
  background: rgba(202, 255, 99, 0.055);
}

.authAssurance > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.authAssurance p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.authAssurance strong {
  font-size: 0.78rem;
}

.authAssurance small {
  color: #84928d;
  font-size: 0.67rem;
}

.googleButton {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #25302c;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.googleButton:hover:not(:disabled) {
  transform: translateY(-1px);
}

.googleButton:disabled {
  cursor: wait;
  opacity: 0.62;
}

.googleMark {
  color: #4285f4;
  font-size: 1.1rem;
  font-weight: 800;
}

.authError {
  margin: 12px 0 0;
  color: #ffaaa1;
  font-size: 0.75rem;
  text-align: center;
}

.authLegal {
  display: block;
  margin-top: 18px;
  color: #73817c;
  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}

.authFooter {
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 1;
  margin: 0;
  color: #596660;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(131, 185, 44, 0.36);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.appFrame {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 28px 18px 18px;
  background:
    radial-gradient(circle at 30px 90%, rgba(202, 255, 99, 0.08), transparent 220px),
    var(--sidebar);
  color: #f8fbf9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 30px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brandMark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--lime);
  color: var(--sidebar);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  transform: rotate(-5deg);
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
}

.brand small {
  color: #91a09b;
  font-size: 0.7rem;
}

.navLabel,
.kicker {
  margin: 0;
  color: var(--soft-muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navLabel {
  padding: 0 12px 10px;
  color: #73807c;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.navItem {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aeb9b5;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.navItem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.navItem.active {
  background: var(--sidebar-soft);
  color: #fff;
  font-weight: 600;
}

.navItem.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  content: "";
}

.navItem > span {
  color: #798682;
  font-size: 1.15rem;
  text-align: center;
}

.navItem.active > span {
  color: var(--lime);
}

.navItem b {
  min-width: 23px;
  border-radius: 999px;
  padding: 3px 6px;
  background: #303d39;
  color: #aab5b1;
  font-size: 0.69rem;
  text-align: center;
}

.sidebarBottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.environmentCard,
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 11px;
}

.environmentCard {
  border: 1px solid #35423e;
  background: rgba(255, 255, 255, 0.025);
}

.environmentIcon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(202, 255, 99, 0.1);
  color: var(--lime);
  font-size: 1.1rem;
}

.environmentCard div,
.profile > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.environmentCard strong,
.profile strong {
  font-size: 0.79rem;
}

.environmentCard small,
.profile small {
  color: #889691;
  font-size: 0.67rem;
}

.profile {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.profile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profileAvatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e5ddd2;
  color: #4c4238;
  font-size: 0.68rem;
  font-weight: 700;
}

.profile i {
  margin-left: auto;
  color: #6d7975;
  font-size: 0.7rem;
  font-style: normal;
}

.accountDock {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: center;
}

.accountDock .profile {
  min-width: 0;
  padding: 9px;
}

.accountDock .profile > span:nth-child(2) {
  min-width: 0;
}

.accountDock .profile strong,
.accountDock .profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountDock .profile i {
  display: none;
}

.updatesBell {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #35423e;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: #c7d0cd;
  cursor: pointer;
  transition: 160ms ease;
}

.updatesBell:hover,
.updatesBell[aria-expanded="true"] {
  border-color: #596961;
  background: rgba(202, 255, 99, 0.1);
  color: #fff;
}

.updatesBell > span {
  filter: grayscale(1);
  font-size: 0.88rem;
}

.updatesBell:hover > span,
.updatesBell[aria-expanded="true"] > span {
  filter: none;
}

.updatesBell b,
.updateHeaderButton b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--sidebar);
  border-radius: 999px;
  padding: 0 4px;
  background: var(--lime);
  color: #25302c;
  font-size: 0.55rem;
  line-height: 1;
}

.updatesBell b[hidden],
.updateHeaderButton b[hidden] {
  display: none;
}

.mainArea {
  min-height: 100vh;
  margin-left: 248px;
}

.mainHeader {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.mobileBrand {
  display: none;
}

.searchShell {
  position: relative;
  width: min(520px, 52vw);
}

.searchBox {
  display: grid;
  width: 100%;
  min-height: 42px;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(244, 247, 245, 0.8);
  color: var(--soft-muted);
  transition: border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease;
}

.searchBox:focus-within {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: 0 8px 28px rgba(23, 32, 30, 0.08);
}

.searchBox > span {
  font-size: 1.3rem;
}

.searchBox input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.searchBox input::placeholder {
  color: #98a29e;
}

.searchBox kbd {
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 6px;
  padding: 4px 7px;
  background: #f7f9f7;
  color: #909a96;
  font-family: inherit;
  font-size: 0.68rem;
}

.globalSearchResults {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: min(520px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(20, 30, 27, 0.17);
  backdrop-filter: blur(18px);
}

.globalSearchResults[hidden] {
  display: none;
}

.globalSearchResults button {
  display: grid;
  width: 100%;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.globalSearchResults button:hover,
.globalSearchResults button:focus-visible {
  background: #f1f5f2;
  outline: 0;
}

.globalSearchGlyph {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: var(--sidebar);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
}

.globalSearchResults button > span:last-child {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
}

.globalSearchResults b {
  align-self: center;
  color: var(--green);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.globalSearchResults strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globalSearchResults small {
  grid-column: 1 / -1;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globalSearchEmpty {
  padding: 22px 16px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.iconButton {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.iconButton > span {
  display: none;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-dark);
}

.iconButton.hasAttention > span {
  display: block;
  background: #f0a43b;
  box-shadow: 0 0 0 3px rgba(240, 164, 59, 0.18);
}

.updateHeaderButton {
  display: none;
}

.updateHeaderButton > .updateHeaderGlyph {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  filter: grayscale(1);
  background: transparent;
  font-size: 0.87rem;
}

.updateHeaderButton:hover > .updateHeaderGlyph,
.updateHeaderButton[aria-expanded="true"] > .updateHeaderGlyph {
  filter: none;
}

.updateHeaderButton b {
  top: -6px;
  right: -6px;
  border-color: #fff;
}

.primaryButton,
.secondaryButton {
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primaryButton {
  border: 1px solid #17201e;
  background: var(--sidebar);
  color: #fff;
}

.primaryButton:hover {
  background: #2a3733;
  transform: translateY(-1px);
}

.primaryButton.compact {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
}

.primaryButton.full,
.secondaryButton.full {
  width: 100%;
  min-height: 46px;
}

.primaryButton.full {
  margin-top: auto;
}

.secondaryButton.full {
  margin: 0 0 10px;
}

.secondaryButton {
  min-height: 41px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.secondaryButton:hover {
  background: #f5f8f6;
}

.secondaryButton.inline {
  padding: 0 18px;
}

.content {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 42px 42px 70px;
}

.pageIntro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 31px;
}

.pageIntro > div:first-child {
  max-width: 750px;
}

.pageIntro h1 {
  margin: 8px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pageIntro > div > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.introMeta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.introMeta small {
  color: var(--soft-muted);
}

.demoPill,
.safePill,
.liveIndicator,
.resultCount {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2ef;
  color: #60706a;
  font-size: 0.7rem;
  font-weight: 700;
}

.demoPill::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lime-dark);
  content: "";
}

.safePill {
  background: #edf7ef;
  color: var(--green);
}

.safePill.attention {
  background: #fff0dc;
  color: #9a5b0e;
}

.pageSection {
  display: none;
}

.pageSection.active {
  display: block;
}

.metricsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.metricCard {
  position: relative;
  display: grid;
  min-height: 144px;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.metricCard.metricAccent::after {
  position: absolute;
  right: -35px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(202, 255, 99, 0.18);
  content: "";
}

.metricIcon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #f0f4f1;
  color: #68766f;
}

.metricCard > div {
  display: grid;
  align-content: start;
}

.metricCard p {
  margin: 2px 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.metricCard strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.metricCard strong.wordMetric {
  font-size: 1.1rem;
}

.metricCard small {
  margin-top: 7px;
  color: var(--soft-muted);
  font-size: 0.69rem;
}

.workspaceGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.humanBriefing {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-color: #2e3c38;
  background:
    radial-gradient(circle at 88% 5%, rgba(202, 255, 99, 0.15), transparent 22rem),
    linear-gradient(135deg, #17201e 0%, #202d29 100%);
  color: #f8fbf9;
  box-shadow: 0 18px 45px rgba(23, 32, 30, 0.1);
}

.briefingHeader {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 27px 22px;
}

.briefingHeader .kicker {
  color: var(--lime);
}

.briefingHeader h2 {
  margin: 7px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.04em;
}

.briefingHeader p:last-child {
  max-width: 760px;
  margin: 0;
  color: #aebbb7;
  font-size: 0.78rem;
  line-height: 1.55;
}

.briefingState {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #d5dedb;
  font-size: 0.65rem;
  font-weight: 700;
}

.briefingState::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.briefingState.active {
  color: var(--lime);
}

.briefingState.blocked {
  color: #ffc676;
}

.briefingState.pending {
  color: #b9c2bf;
}

.briefingGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(260px, 0.75fr);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.briefingGrid > * {
  min-width: 0;
  padding: 20px 23px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.briefingGrid > *:first-child {
  border-left: 0;
}

.briefingLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #96a49f;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.briefingLabel > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  color: #dbe4e1;
}

.briefingFocus > div:last-child,
.briefingNext > div:last-child {
  display: grid;
  justify-items: start;
}

.briefingFocus strong,
.briefingNext strong {
  margin-top: 9px;
  font-size: 0.84rem;
}

.briefingFocus p,
.briefingNext p {
  margin: 7px 0 0;
  color: #aebbb7;
  font-size: 0.72rem;
  line-height: 1.5;
}

.focusStatus {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cad4d1;
  font-size: 0.58rem;
  font-weight: 700;
}

.focusStatus.blocked {
  background: rgba(240, 164, 59, 0.14);
  color: #ffc676;
}

.focusStatus.active {
  background: rgba(202, 255, 99, 0.1);
  color: var(--lime);
}

.focusStatus.neutral {
  color: #d4deda;
}

.briefingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.briefingActions .secondaryButton,
.briefingNext .secondaryButton {
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.65rem;
}

.briefingActions .secondaryButton {
  margin-top: 0;
}

.briefingActions .secondaryButton:hover,
.briefingNext .secondaryButton:hover {
  background: rgba(255, 255, 255, 0.12);
}

.textButton {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.briefingActions .textButton {
  color: var(--lime);
}

.textButton:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.briefingPromptList {
  display: grid;
  gap: 7px;
}

.briefingPromptList button {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #e8efec;
  font-size: 0.67rem;
  text-align: left;
  cursor: pointer;
}

.briefingPromptList button::after {
  float: right;
  color: var(--lime);
  content: "→";
}

.briefingPromptList button:hover {
  border-color: rgba(202, 255, 99, 0.25);
  background: rgba(202, 255, 99, 0.06);
}

.briefingCapabilities > p {
  margin: 13px 0 0;
  color: #81918b;
  font-size: 0.61rem;
  line-height: 1.45;
}

.reviewPanel,
.statusPanel,
.fullPanel {
  padding: 23px;
}

.panelHeader,
.sectionTitle {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.panelHeader h2,
.sectionTitle h2 {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.panelHeader > button,
.sectionTitle > button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.panelHeader > button:hover,
.sectionTitle > button:hover {
  color: var(--ink);
}

.attentionSummary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  margin: 20px 0 7px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: #fafcfb;
}

.attentionSummary.hasAttention {
  border-style: solid;
  border-color: #edd6b7;
  background: #fffaf3;
}

.emptyGlyph {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6db;
  color: #56821d;
  font-size: 1.1rem;
  font-weight: 700;
}

.attentionGlyph {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff0dc;
  color: #a76513;
  font-size: 1.05rem;
  font-weight: 800;
}

.attentionSummary > div {
  display: grid;
  flex: 1;
}

.attentionSummary > div > span {
  margin-bottom: 3px;
  color: var(--amber);
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
}

.attentionSummary strong {
  font-size: 0.86rem;
}

.attentionSummary p,
.largeEmpty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.attentionSummary > .secondaryButton {
  flex: 0 0 auto;
}

.reviewBreakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.reviewBreakdown button {
  display: grid;
  gap: 6px;
  padding: 15px 12px 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.reviewBreakdown button:first-child {
  padding-left: 0;
  border-left: 0;
}

.reviewBreakdown span {
  color: var(--muted);
  font-size: 0.67rem;
}

.reviewBreakdown strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.statusPanel {
  display: flex;
  flex-direction: column;
}

.liveIndicator {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.liveIndicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-dark);
}

.serviceList {
  display: grid;
  margin: 16px 0;
}

.serviceRow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 47px;
  border-bottom: 1px solid var(--line);
}

.serviceRow:last-child {
  border-bottom: 0;
}

.serviceDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.serviceDot.state-active {
  background: #58a876;
  box-shadow: 0 0 0 4px #e9f5ed;
}

.serviceDot.state-pending,
.serviceDot.state-connecting {
  background: #d6a24b;
  box-shadow: 0 0 0 4px #fbf3e4;
}

.serviceDot.state-blocked {
  background: #c76d62;
  box-shadow: 0 0 0 4px #f8eae8;
}

.serviceRow > div {
  display: grid;
  gap: 2px;
}

.serviceRow strong {
  font-size: 0.78rem;
}

.serviceRow small {
  color: var(--soft-muted);
  font-size: 0.66rem;
}

.serviceState {
  font-size: 0.67rem;
  font-weight: 700;
}

.stateText-active {
  color: var(--green);
}

.stateText-pending,
.stateText-connecting {
  color: var(--amber);
}

.stateText-blocked {
  color: var(--red);
}

.statusPanel > .secondaryButton {
  width: 100%;
  margin-top: auto;
}

.sectionBlock {
  margin-top: 34px;
}

.sectionTitle {
  align-items: end;
  margin-bottom: 15px;
}

.sectionActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agentGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.agentCard {
  display: flex;
  min-height: 342px;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.agentCard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.agentCardTop {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.agentAvatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #27302d;
  font-family: "Manrope", sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
}

.accent-lime {
  background: #ddff9c;
}

.accent-violet {
  background: #ddd6fe;
  color: #55438c;
}

.accent-blue {
  background: #d8e7ff;
  color: #315b96;
}

.accent-orange {
  background: #ffe2bf;
  color: #8b5825;
}

.agentStatus {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f4f2;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.agentStatus i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-ready {
  background: #edf7ef;
  color: var(--green);
}

.status-draft {
  background: #f5f0ff;
  color: #7659a7;
}

.agentCard h3 {
  margin: 0 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.agentCard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.52;
}

.agentNow {
  display: grid;
  min-width: 0;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf8;
}

.agentNow > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #edf2ef;
  color: #6d7a75;
  font-size: 0.66rem;
  font-weight: 800;
}

.agentNow > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.agentNow small {
  color: var(--soft-muted);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agentNow strong {
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agentNow.state-active,
.agentNow.state-ready {
  border-color: #d7e8c0;
  background: #f6faef;
}

.agentNow.state-active > span,
.agentNow.state-ready > span {
  background: #e7f5d3;
  color: #56821d;
}

.agentNow.state-blocked {
  border-color: #efd8b9;
  background: #fffaf3;
}

.agentNow.state-blocked > span {
  background: #fff0dc;
  color: #9a5b0e;
}

.agentMeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.agentMeta div {
  display: grid;
  gap: 3px;
}

.agentMeta dt,
.drawerFields span {
  color: var(--soft-muted);
  font-size: 0.61rem;
  font-weight: 600;
  text-transform: uppercase;
}

.agentMeta dd {
  margin: 0;
  overflow: hidden;
  font-size: 0.69rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cardAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #53605c;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
}

.cardAction:hover {
  color: var(--ink);
}

.fullPanel {
  min-height: 520px;
}

.largeEmpty {
  display: flex;
  min-height: 410px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.emptyGlyph.large {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.largeEmpty h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.largeEmpty p {
  max-width: 470px;
  margin: 8px auto 20px;
  font-size: 0.86rem;
}

.largeEmpty.compact {
  min-height: 360px;
}

.humanInboxIntro {
  max-width: 720px;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.humanInbox {
  display: grid;
  gap: 10px;
}

.humanInboxItem {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fcfdfc;
}

.humanInboxTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.humanInboxTop small {
  color: var(--soft-muted);
  font-size: 0.64rem;
}

.humanInboxStatus {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f4f2;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.humanInboxStatus.status-blocked,
.humanInboxStatus.status-error {
  background: #fff0dc;
  color: #9a5b0e;
}

.humanInboxStatus.status-triage,
.humanInboxStatus.status-review {
  background: #f7f1e5;
  color: var(--amber);
}

.humanInboxItem h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.humanInboxItem > p {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* When the copy is the actual reason Hermes recorded, mark it as a quote so it
   reads as evidence rather than editorial narration. */
.humanInboxItem > p.humanInboxReason {
  padding-left: 10px;
  border-left: 2px solid var(--border, rgba(255, 255, 255, 0.14));
  color: var(--text, inherit);
  font-style: italic;
}

.humanInboxActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 3px;
}

.humanInboxActions .secondaryButton {
  min-height: 35px;
  padding: 0 12px;
  font-size: 0.67rem;
}

.timeline {
  margin-top: 20px;
}

.timelineItem {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timelineMark {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid #9ea8a4;
  border-radius: 50%;
}

.timelineMark.active {
  border-color: var(--lime-dark);
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(202, 255, 99, 0.24);
}

.timelineMark.blocked {
  border-color: #dd9840;
  background: #ffc676;
  box-shadow: 0 0 0 5px rgba(255, 198, 118, 0.2);
}

.timelineItem div {
  display: grid;
  gap: 5px;
}

.timelineItem strong {
  font-size: 0.84rem;
}

.timelineItem p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.timelineItem time {
  color: var(--soft-muted);
  font-size: 0.68rem;
}

.emptyState {
  display: grid;
  min-height: 260px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
}

.emptyState > span {
  font-size: 2rem;
}

.emptyState strong {
  margin-top: 10px;
  color: var(--ink);
}

.emptyState p {
  margin: 5px 0 0;
}

.securityCallout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #dce7ce;
  border-radius: 12px;
  background: #f8fbf4;
}

.securityCallout > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.securityCallout strong {
  font-size: 0.8rem;
}

.securityCallout p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.integrationGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.integrationCard {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 16px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.integrationHeading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.integrationHeading > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #e7f4d6;
  color: #527622;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.integrationHeading > div {
  display: grid;
  gap: 3px;
}

.integrationHeading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
}

.integrationHeading small {
  color: var(--soft-muted);
  font-size: 0.65rem;
}

.statusChip {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4f1e7;
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.statusChip.active {
  background: #eaf5ed;
  color: var(--green);
}

.statusChip.pending {
  background: #f7f1e5;
  color: var(--amber);
}

.integrationCard > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.52;
}

.integrationDetails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: auto 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.integrationDetails div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
}

.integrationDetails dt {
  color: var(--soft-muted);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.integrationDetails dd {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
}

.integrationSync {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.integrationActions {
  display: flex;
  justify-content: flex-end;
}

.integrationActions button {
  min-height: 34px;
}

.operationsMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.operationMetric {
  display: grid;
  min-height: 94px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.operationMetric > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: #eff4f0;
  color: #62716b;
}

.operationMetric div {
  display: grid;
  gap: 4px;
}

.operationMetric small {
  color: var(--muted);
  font-size: 0.66rem;
}

.operationMetric strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

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

.operationPanel {
  min-height: 300px;
  padding: 21px;
}

.operationPanel.wide {
  min-height: auto;
  grid-column: 1 / -1;
}

.operationLead {
  margin: 15px 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.capabilityRows {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.capabilityRows div {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.capabilityRows span {
  color: var(--muted);
  font-size: 0.7rem;
}

.capabilityRows strong {
  font-size: 0.7rem;
}

.memoryGraphCanvas {
  min-height: 118px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(circle at center, rgba(202, 255, 99, 0.1), transparent 55%),
    #f8faf8;
}

.memoryGraphCanvas svg {
  display: block;
  width: 100%;
  height: 150px;
}

.memoryEdge {
  stroke: #cad3ce;
  stroke-width: 1.2;
}

.memoryNode circle {
  fill: #5f7069;
  stroke: #fff;
  stroke-width: 3;
}

.memoryNode:nth-of-type(3n) circle {
  fill: var(--lime-dark);
}

.operationList,
.scheduleList {
  display: grid;
  margin-top: 13px;
}

.operationRow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.operationRow:last-child {
  border-bottom: 0;
}

.operationMark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #eff4f0;
  color: #66746e;
}

.operationRow > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.operationRow strong {
  overflow: hidden;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationRow p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operationRow > small {
  color: var(--soft-muted);
  font-size: 0.62rem;
  white-space: nowrap;
}

.scheduleRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.scheduleState {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.61rem;
  font-weight: 700;
}

.scheduleState.active {
  background: #eaf5ed;
  color: var(--green);
}

.scheduleState.paused {
  background: #f4f1e7;
  color: var(--amber);
}

.scheduleRow > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.scheduleRow strong {
  font-size: 0.75rem;
}

.scheduleRow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
}

.scheduleActions {
  display: flex;
  gap: 6px;
}

.scheduleActions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: #53605c;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.scheduleActions button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.bridgePanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-style: dashed;
  background: #fbfcfb;
}

.bridgePanel h2 {
  margin: 6px 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.bridgePanel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.kanbanBoardList {
  display: grid;
  gap: 12px;
}

.kanbanBoard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.kanbanBoard > div:first-child {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.kanbanBoard > div:first-child strong {
  font-size: 0.75rem;
}

.kanbanBoard > div:first-child span {
  color: var(--muted);
  font-size: 0.63rem;
}

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

.kanbanTask {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kanbanTask:nth-child(even) {
  border-right: 0;
}

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

.kanbanTask strong {
  display: block;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanbanTask p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanbanState {
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef2ef;
  color: #68756f;
  font-size: 0.56rem;
  font-weight: 700;
  white-space: nowrap;
}

.kanbanState.status-running,
.kanbanState.status-ready {
  background: #eaf5ed;
  color: var(--green);
}

.kanbanState.status-blocked {
  background: #f8e9e6;
  color: var(--red);
}

.kanbanState.status-scheduled,
.kanbanState.status-review {
  background: #f7f1e5;
  color: var(--amber);
}

.chatWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 15px;
}

.chatPanel {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  overflow: hidden;
}

.chatToolbar {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chatModelControl {
  display: grid;
  min-width: min(300px, 100%);
  gap: 5px;
}

.chatModelControl > small {
  color: var(--soft-muted);
  font-size: 0.58rem;
}

.chatCapabilityControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.chatToolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chatToolbar label > span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chatToolbar select {
  min-height: 36px;
  max-width: 230px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 32px 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.7rem;
}

.chatToolbar option:disabled {
  color: var(--soft-muted);
}

.chatImageOptions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.9fr) minmax(150px, 0.55fr);
  gap: 12px;
  align-items: end;
  padding: 13px 18px;
  border-bottom: 1px solid #dce8cb;
  background:
    linear-gradient(90deg, rgba(202, 255, 99, 0.12), transparent 52%),
    #fbfdf8;
}

.chatImageOptions[hidden] {
  display: none;
}

.chatImageIntro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
}

.chatImageIntro > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #e3f4c6;
  color: #507b14;
}

.chatImageIntro > div,
.chatImageOptions label {
  display: grid;
  gap: 4px;
}

.chatImageIntro strong {
  font-size: 0.7rem;
}

.chatImageIntro small {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

.chatImageOptions label > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chatImageOptions select {
  width: 100%;
  min-height: 37px;
  border: 1px solid #cad9ba;
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.68rem;
}

.capabilityToggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: #56645f;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.capabilityToggle > span {
  color: #648c23;
  font-size: 0.86rem;
}

.capabilityToggle:hover {
  border-color: #bddb87;
  background: #f7faef;
}

.capabilityToggle.active {
  border-color: #a9ce67;
  background: #ebf8d7;
  color: #355c0b;
  box-shadow: inset 0 0 0 1px rgba(97, 139, 30, 0.1);
}

.capabilityToggle:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.safePill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef3f0;
  color: #60706a;
  font-size: 0.57rem;
  font-weight: 700;
  white-space: nowrap;
}

.safePill::before {
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #6b9c32;
  content: "";
}

.chatCapabilityNotice {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
  color: #65736e;
}

.chatCapabilityNotice > span {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e8efea;
  font-size: 0.62rem;
}

.chatCapabilityNotice p {
  margin: 0;
  font-size: 0.61rem;
  line-height: 1.45;
}

.chatCapabilityNotice.active {
  background: #f4f9e9;
  color: #4d6728;
}

.chatCapabilityNotice.active > span {
  background: #def0be;
  color: #4c7811;
}

.chatPromptBar {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
  scrollbar-width: none;
}

.chatPromptBar::-webkit-scrollbar {
  display: none;
}

.chatPromptBar > span {
  flex: 0 0 auto;
  margin-right: 2px;
  color: var(--soft-muted);
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chatPromptBar button {
  flex: 0 0 auto;
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #596762;
  font-size: 0.63rem;
  cursor: pointer;
}

.chatPromptBar button:hover {
  border-color: #bddb87;
  background: #f4f9e9;
  color: var(--ink);
}

.chatMessages {
  display: flex;
  min-height: 450px;
  max-height: 620px;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 95% 0, rgba(202, 255, 99, 0.08), transparent 24rem),
    #fbfcfb;
}

.chatMessage {
  display: grid;
  max-width: min(760px, 90%);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-self: flex-start;
}

.chatMessage.user {
  align-self: flex-end;
}

.chatMessage > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--sidebar);
  color: var(--lime);
  font-size: 0.67rem;
  font-weight: 800;
}

.chatMessage.user > span {
  order: 2;
  background: var(--lime);
  color: var(--ink);
}

.chatMessage > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 13px 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 30, 0.045);
}

.chatMessage.user > div {
  border-radius: 13px 4px 13px 13px;
  background: #eef5e1;
}

.chatMessage strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.66rem;
}

.chatMessage p {
  margin: 0;
  color: #43504c;
  font-size: 0.75rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.chatMessage.pending {
  opacity: 0.6;
}

.chatMessageAttachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chatMessageAttachments img {
  width: 92px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.chatMessageAttachments span {
  display: inline-flex;
  max-width: 220px;
  min-height: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #57645f;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.chatMediaGrid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f6f4;
}

.chatMediaGrid img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.chatMediaGrid a:hover img {
  transform: scale(1.015);
}

.chatComposer {
  position: relative;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.chatComposer.dragging {
  background: #f5faec;
  box-shadow: inset 0 0 0 2px #b9dc7a;
}

.chatComposer.dragging::after {
  position: absolute;
  inset: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed #86ae43;
  border-radius: 10px;
  background: rgba(245, 250, 236, 0.94);
  color: #52751d;
  content: "Suelta aquí para adjuntar";
  font-size: 0.75rem;
  font-weight: 800;
  pointer-events: none;
}

.chatAttachmentTray {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 9px;
  padding-bottom: 2px;
}

.chatAttachmentTray[hidden] {
  display: none;
}

.chatAttachment {
  display: grid;
  min-width: 155px;
  max-width: 230px;
  grid-template-columns: 31px minmax(0, 1fr) 23px;
  gap: 7px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf8;
}

.chatAttachment > img,
.chatAttachment > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 6px;
  background: #eaf0ec;
  color: #617069;
  object-fit: cover;
}

.chatAttachment strong {
  overflow: hidden;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatAttachment button {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.chatAttachment button:hover {
  background: #e7ece9;
  color: var(--ink);
}

.chatComposer textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  line-height: 1.5;
}

.chatComposer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.chatComposer small {
  color: var(--soft-muted);
  font-size: 0.61rem;
}

.composerTools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composerTool {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: #f8faf8;
  color: #55635e;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.composerTool:hover {
  border-color: #bddb87;
  background: #f4f9e9;
  color: var(--ink);
}

.memoryExplorer {
  min-height: 650px;
  padding: 20px;
}

.memorySearch {
  display: block;
  margin: 16px 0 12px;
}

.memorySearch input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 12px;
  background: #fbfcfb;
  font-size: 0.7rem;
}

.memoryExplorerList {
  display: grid;
  max-height: 545px;
  gap: 8px;
  overflow-y: auto;
}

.memoryEntry {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.memoryEntry > span {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memoryEntry strong {
  font-size: 0.7rem;
}

.memoryEntry p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.compactEmpty {
  display: grid;
  min-height: 100px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  grid-column: 1 / -1;
  align-items: center;
  padding: 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fbfcfb;
}

.compactEmpty > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eef2ef;
  color: #79857f;
}

.compactEmpty strong {
  font-size: 0.75rem;
}

.compactEmpty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.updatesBackdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 18px 18px 266px;
  background: rgba(14, 22, 20, 0.25);
  backdrop-filter: blur(2px);
  animation: fadeIn 160ms ease;
}

.updatesPanel {
  display: flex;
  width: min(430px, calc(100vw - 284px));
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(11, 19, 17, 0.24);
  animation: updatesIn 210ms ease;
}

.updatesHeader {
  position: relative;
  padding: 23px 58px 19px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 0, rgba(202, 255, 99, 0.22), transparent 11rem),
    #fff;
}

.updatesHeader h2 {
  margin: 4px 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.updatesHeader > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.updatesClose {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.updatesSummary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.updatesSummary > span {
  color: #5e6b66;
  font-size: 0.63rem;
  font-weight: 700;
}

.updatesSummary .textButton {
  font-size: 0.61rem;
  white-space: nowrap;
}

.updatesSummary .textButton:disabled {
  cursor: default;
  opacity: 0.45;
}

.updatesList {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 0;
  overflow-y: auto;
}

.updateCard {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.updateCard.unread {
  background:
    linear-gradient(90deg, rgba(202, 255, 99, 0.1), transparent 42%),
    #fff;
}

.updateCardMark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #eef2ef;
  color: #65736c;
  font-size: 0.72rem;
  font-weight: 800;
}

.updateCard.unread .updateCardMark {
  background: #e3f5c4;
  color: #4b7710;
}

.updateCardBody {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.updateCardMeta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft-muted);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.updateCardMeta b {
  border-radius: 999px;
  padding: 3px 6px;
  background: #e9f5d5;
  color: #53791e;
  font-size: 0.51rem;
}

.updateCard h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.77rem;
  letter-spacing: -0.015em;
}

.updateCard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.52;
}

.updateImpact {
  display: flex;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f7f9f7;
  color: #53615b;
  font-size: 0.61rem;
  line-height: 1.45;
}

.updateImpact span {
  flex: 0 0 auto;
  color: #649225;
  font-weight: 900;
}

.updateCardActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.updateCardActions button {
  min-height: 29px;
  font-size: 0.61rem;
}

.updateSeenButton {
  border: 0;
  background: transparent;
  color: var(--soft-muted);
  cursor: pointer;
}

.updateSeenButton:hover {
  color: var(--ink);
}

.updateSeenButton:disabled {
  cursor: default;
  opacity: 0.55;
}

.updatesFooter {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fafbfa;
}

.updatesFooter > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e8f2e9;
  color: var(--green);
  font-size: 0.54rem;
  font-weight: 900;
}

.updatesFooter p {
  margin: 1px 0 0;
  color: var(--soft-muted);
  font-size: 0.56rem;
  line-height: 1.45;
}

.drawerBackdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(14, 22, 20, 0.42);
  backdrop-filter: blur(3px);
  animation: fadeIn 180ms ease;
}

.agentDrawer {
  display: flex;
  width: min(560px, 100%);
  max-height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow-raised);
  animation: slideIn 220ms ease;
}

.drawerClose {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  margin: -10px -10px 20px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.largeAvatar {
  width: 55px;
  height: 55px;
  margin-bottom: 22px;
  font-size: 0.88rem;
}

.agentDrawer h2 {
  margin: 8px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.drawerDescription {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.drawerFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.drawerFields div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #fff;
}

.drawerFields strong {
  font-size: 0.79rem;
}

.drawerLive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf8;
}

.drawerLive > div {
  display: grid;
  gap: 5px;
}

.drawerLiveState {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  background: #e8efeb;
  color: #617068;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drawerLive strong {
  font-size: 0.77rem;
}

.drawerLive p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.drawerLive.state-active,
.drawerLive.state-ready {
  border-color: #d6e6bd;
  background: #f5faec;
}

.drawerLive.state-active .drawerLiveState,
.drawerLive.state-ready .drawerLiveState {
  background: #dff0c4;
  color: #4d7910;
}

.drawerLive.state-blocked {
  border-color: #edd7b8;
  background: #fffaf3;
}

.drawerLive.state-blocked .drawerLiveState {
  background: #ffedcf;
  color: #9a5c0c;
}

.drawerSection {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.drawerSectionTitle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.drawerSectionTitle > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #eef3ef;
  color: #607067;
  font-size: 0.72rem;
}

.drawerSectionTitle h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
}

.drawerSection > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

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

.drawerWorkflow > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfb;
}

.drawerWorkflow > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--sidebar);
  color: var(--lime);
  font-size: 0.61rem;
  font-weight: 800;
}

.drawerWorkflow > div > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.drawerWorkflow strong,
.drawerCapabilityGroups > div > strong {
  font-size: 0.65rem;
}

.drawerWorkflow small {
  color: var(--soft-muted);
  font-size: 0.56rem;
}

.drawerCapabilityGroups {
  display: grid;
  gap: 12px;
}

.drawerCapabilityGroups > div {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.drawerCapabilityGroups > div > strong {
  padding-top: 5px;
  color: #57655f;
}

.drawerChipList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawerChipList span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f7f9f7;
  color: #637069;
  font-size: 0.59rem;
  font-weight: 600;
}

.drawerLimits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.drawerLimits > div {
  display: grid;
  gap: 4px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfb;
}

.drawerLimits span {
  color: var(--soft-muted);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.drawerLimits strong {
  font-size: 0.68rem;
}

.drawerCallout {
  margin-bottom: 24px;
  padding: 16px;
  border-left: 3px solid var(--lime-dark);
  border-radius: 0 9px 9px 0;
  background: #f5f9ef;
}

.drawerCallout strong {
  font-size: 0.8rem;
}

.drawerCallout p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  max-width: min(420px, calc(100% - 48px));
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid #32403c;
  border-radius: 11px;
  background: var(--sidebar);
  box-shadow: var(--shadow-raised);
  color: #fff;
  font-size: 0.78rem;
  animation: toastIn 200ms ease;
}

.toast span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--sidebar);
  font-weight: 800;
}

.toast p {
  margin: 0;
}

.integrationBackdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 22, 20, 0.58);
  backdrop-filter: blur(5px);
  animation: fadeIn 180ms ease;
}

.integrationDialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 35px 110px rgba(9, 15, 13, 0.35);
  animation: wizardIn 220ms ease;
}

.integrationBody {
  padding: 28px 31px;
}

.secretSafety {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--lime-dark);
  border-radius: 0 9px 9px 0;
  background: #f7faf3;
}

.secretSafety strong {
  font-size: 0.76rem;
}

.secretSafety p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.wizardBackdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 22, 20, 0.58);
  backdrop-filter: blur(5px);
  animation: fadeIn 180ms ease;
}

.agentWizard {
  display: flex;
  width: min(1120px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 110px rgba(9, 15, 13, 0.35);
  animation: wizardIn 220ms ease;
}

.wizardHeader {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 31px 22px;
  border-bottom: 1px solid var(--line);
}

.wizardHeader h2 {
  margin: 6px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.wizardHeader > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.wizardHeader .drawerClose {
  flex: 0 0 auto;
  margin: 0;
}

.wizardProgress {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.wizardProgress span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #97a09d;
  font-size: 0.69rem;
  font-weight: 700;
}

.wizardProgress span b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #d5dcd8;
  border-radius: 50%;
  background: #fff;
  color: #89938f;
  font-size: 0.64rem;
}

.wizardProgress span.active,
.wizardProgress span.complete {
  color: var(--ink);
}

.wizardProgress span.active b {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.wizardProgress span.complete b {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: var(--ink);
}

.wizardProgress i {
  width: min(54px, 5vw);
  height: 1px;
  background: var(--line-strong);
}

.agentWizard form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.wizardBody {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 30px 34px 34px;
}

.wizardWorkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 28px;
  align-items: start;
}

.wizardStepStack {
  min-width: 0;
}

.wizardStep {
  display: none;
}

.wizardStep.active {
  display: block;
  animation: stepIn 180ms ease;
}

.stepHeading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 25px;
}

.stepHeading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eef6df;
  color: #5e8529;
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
}

.stepHeading h3 {
  margin: 0 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.stepHeading p,
.sectionHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.templateGrid,
.strategyGrid,
.workflowGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 25px;
}

.agentIntentBar {
  display: grid;
  gap: 9px;
  margin: -5px 0 18px;
  padding: 13px;
  border: 1px solid #e2e8e4;
  border-radius: 11px;
  background: #f8faf8;
}

.agentIntentBar > span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.agentIntentBar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agentIntentBar button,
.fieldHelperButton {
  min-height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: #53615c;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
}

.agentIntentBar button:hover,
.agentIntentBar button.active,
.fieldHelperButton:hover {
  border-color: #a9ce67;
  background: #edf8dc;
  color: #426b0f;
}

.fieldHelperButton {
  width: max-content;
  margin-top: 1px;
}

.templateCard,
.strategyCard,
.workflowCard,
.optionCard {
  position: relative;
  display: block;
  cursor: pointer;
}

.templateCard input,
.strategyCard input,
.workflowCard input,
.optionCard input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.templateCard > span,
.strategyCard > span,
.workflowCard > span,
.optionCard > span {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.templateCard > span {
  min-height: 132px;
  padding: 16px;
}

.templateCard input:checked + span,
.strategyCard input:checked + span,
.workflowCard input:checked + span,
.optionCard input:checked + span {
  border-color: #91b950;
  background: #fbfef7;
  box-shadow: 0 0 0 2px rgba(131, 185, 44, 0.16);
}

.templateCard strong,
.strategyCard strong,
.workflowCard strong,
.optionCard strong {
  font-size: 0.79rem;
}

.templateCard small,
.strategyCard small,
.workflowCard small,
.optionCard small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.templateMark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 8px;
  background: #eef2ef;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
}

.formGrid {
  display: grid;
  gap: 16px;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

.field > span,
.formSection h4 {
  color: #46534f;
  font-size: 0.72rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  min-height: 43px;
  padding: 0 12px;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #87a957;
  outline: 3px solid rgba(131, 185, 44, 0.14);
}

.field [aria-invalid="true"] {
  border-color: var(--red);
}

.formSection {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.formSection:first-of-type {
  margin-top: 0;
}

.formSection h4 {
  margin: 0 0 12px;
}

.sectionHint {
  margin: -6px 0 13px;
}

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

.choiceCard {
  position: relative;
  cursor: pointer;
}

.choiceCard input {
  position: absolute;
  top: 16px;
  right: 16px;
  accent-color: var(--green);
}

.choiceCard > span {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 5px;
  padding: 14px 42px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.choiceCard input:checked + span {
  border-color: #91b950;
  background: #fbfef7;
}

.choiceCard strong {
  font-size: 0.78rem;
}

.choiceCard small {
  color: var(--muted);
  font-size: 0.69rem;
}

.compactField {
  width: min(230px, 100%);
  margin-top: 12px;
}

.selectionSnapshot {
  margin: 18px 0 0;
  padding: 11px 13px;
  border: 1px solid #e0e7e2;
  border-radius: 9px;
  background: #f8faf8;
  color: #5b6964;
  font-size: 0.66rem;
  font-weight: 700;
}

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

.optionCard > span {
  min-height: 82px;
  justify-content: center;
  padding: 13px 42px 13px 14px;
}

.optionCard > span::after {
  position: absolute;
  top: 17px;
  right: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 800;
}

.optionCard input:checked + span::after {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.strategyCard > span {
  min-height: 116px;
  justify-content: center;
  padding: 15px;
}

.workflowCard > span {
  min-height: 116px;
  justify-content: center;
  padding: 15px;
}

.strategyCard input:checked + span::before,
.workflowCard input:checked + span::before {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 0.65rem;
  font-weight: 800;
}

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

.safetyBanner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #dbe7c9;
  border-radius: 11px;
  background: #f7fbf0;
}

.safetyBanner > span,
.dryRunHeading > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.safetyBanner strong {
  font-size: 0.78rem;
}

.safetyBanner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.reviewSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.agentOutcomePreview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid #dbe7c9;
  border-radius: 11px;
  background: #f8fcef;
}

.agentOutcomePreview > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e1f3c2;
  color: #4e7b12;
  font-weight: 900;
}

.agentOutcomePreview p {
  margin: 0;
  color: #4e5e55;
  font-size: 0.71rem;
  line-height: 1.55;
}

.wizardAssistant {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce5d6;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(202, 255, 99, 0.22), transparent 10rem),
    #f8faf7;
}

.assistantTopline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #607069;
  font-size: 0.61rem;
  font-weight: 700;
}

.assistantTopline strong {
  color: #4d7618;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
}

.assistantProgress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8e3;
}

.assistantProgress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f9f31, var(--lime));
  transition: width 180ms ease;
}

.wizardAssistant .kicker {
  margin: 3px 0 -4px;
  font-size: 0.55rem;
}

.wizardAssistant h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.wizardAssistant > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.assistantChecklist {
  display: grid;
  gap: 7px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.assistantChecklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  align-items: center;
  color: #7a8581;
  font-size: 0.63rem;
  line-height: 1.35;
}

.assistantChecklist li::before {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #cdd5d0;
  border-radius: 50%;
  content: "";
  font-size: 0.57rem;
}

.assistantChecklist li.complete {
  color: #40534a;
}

.assistantChecklist li.complete::before {
  border-color: #80a94a;
  background: #e0f2c4;
  color: #47710f;
  content: "✓";
  font-weight: 900;
}

.assistantAction {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.assistantAction:disabled {
  background: #dfe6e1;
  color: #69756f;
  cursor: default;
}

.wizardAssistant > small {
  color: var(--soft-muted);
  font-size: 0.57rem;
  line-height: 1.45;
}

.reviewItem {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 14px 16px;
  background: #fff;
}

.reviewItem span {
  color: var(--soft-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reviewItem strong {
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.dryRunPanel {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #cee3d2;
  border-radius: 11px;
  background: #f7fcf8;
}

.dryRunHeading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dryRunHeading strong {
  font-size: 0.82rem;
}

.dryRunHeading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

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

.checkItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e1ebe3;
  border-radius: 8px;
  background: #fff;
  color: #405048;
  font-size: 0.69rem;
  font-weight: 600;
}

.checkItem::before {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e5f3e7;
  color: var(--green);
  content: "✓";
  font-size: 0.62rem;
  font-weight: 900;
}

.formError {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid #edcbc7;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--red);
  font-size: 0.72rem;
}

.wizardFooter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.wizardFooter > button {
  min-height: 42px;
  padding: 0 17px;
}

.wizardFooter p {
  margin: 0 auto 0 0;
  color: var(--soft-muted);
  font-size: 0.68rem;
}

.wizardFooter button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

@keyframes wizardIn {
  from {
    transform: translateY(14px) scale(0.99);
    opacity: 0;
  }
}

@keyframes stepIn {
  from {
    transform: translateX(6px);
    opacity: 0;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}

@keyframes updatesIn {
  from {
    transform: translate(-12px, 12px) scale(0.98);
    opacity: 0;
  }
}

@keyframes toastIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .metricsGrid,
  .agentGrid,
  .integrationGrid,
  .operationsMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .briefingCapabilities {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

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

  .workspaceGrid {
    grid-template-columns: 1fr;
  }

  .chatWorkspace {
    grid-template-columns: 1fr;
  }

  .chatToolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .chatCapabilityControls {
    flex-wrap: wrap;
  }

  .memoryExplorer {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: 66px;
    padding: 7px 12px;
    border-top: 1px solid #34413d;
  }

  .sidebar > .brand,
  .sidebar .navLabel,
  .sidebarBottom {
    display: none;
  }

  .updateHeaderButton {
    display: grid;
  }

  .sidebar nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .navItem {
    display: flex;
    min-height: 51px;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    padding: 4px;
    min-width: 0;
    font-size: 0.56rem;
    text-align: center;
  }

  .navItem.active::before {
    inset: auto auto -7px;
    width: 26px;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .navItem > span {
    font-size: 1rem;
  }

  .navItem b {
    position: absolute;
    top: 4px;
    margin-left: 27px;
  }

  .mainArea {
    margin-left: 0;
    padding-bottom: 66px;
  }

  .mainHeader {
    padding: 0 20px;
  }

  .mobileBrand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobileBrand .brandMark {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .searchShell {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .content {
    padding: 32px 20px 60px;
  }

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

  .operationsGrid {
    grid-template-columns: 1fr;
  }

  .operationPanel.wide {
    grid-column: auto;
  }

  .kanbanTasks {
    grid-template-columns: 1fr;
  }

  .kanbanTask {
    border-right: 0;
  }

  .updatesBackdrop {
    align-items: flex-end;
    padding: 16px 12px 82px;
  }

  .updatesPanel {
    width: 100%;
    max-height: min(690px, calc(100vh - 98px));
    border-radius: 16px;
  }
}

@media (max-width: 620px) {
  .authShell {
    padding: 88px 18px 70px;
  }

  .authBrand {
    top: 24px;
    left: 22px;
  }

  .authCard {
    padding: 30px 24px;
  }

  .authFooter {
    right: auto;
    bottom: 22px;
    left: 22px;
  }

  .mainHeader {
    min-height: 68px;
    gap: 12px;
  }

  .searchShell {
    width: 28px;
    flex: 0 0 28px;
  }

  .searchBox {
    min-height: 40px;
    justify-content: end;
    padding: 0;
    background: transparent;
  }

  .searchBox input,
  .searchBox kbd {
    display: none;
  }

  .globalSearchResults {
    display: none;
  }

  .iconButton {
    display: none;
  }

  .updateHeaderButton {
    display: grid;
    flex: 0 0 40px;
  }

  .updatesBackdrop {
    padding: 10px 8px 76px;
  }

  .updatesPanel {
    max-height: calc(100vh - 86px);
  }

  .updatesHeader {
    padding: 20px 52px 17px 18px;
  }

  .updatesSummary,
  .updateCard,
  .updatesFooter {
    padding-right: 14px;
    padding-left: 14px;
  }

  .primaryButton.compact {
    width: 40px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .primaryButton.compact span {
    display: none;
  }

  .primaryButton.compact::before {
    color: #fff;
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
  }

  .pageIntro {
    align-items: start;
    flex-direction: column;
  }

  .briefingHeader {
    flex-direction: column;
    gap: 16px;
    padding: 23px 20px 19px;
  }

  .briefingGrid,
  .briefingPromptList {
    grid-template-columns: 1fr;
  }

  .briefingGrid > * {
    grid-column: auto;
    padding: 19px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .briefingGrid > *:first-child {
    border-top: 0;
  }

  .attentionSummary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .attentionSummary > .secondaryButton {
    width: 100%;
  }

  .introMeta {
    justify-items: start;
  }

  .metricsGrid,
  .agentGrid,
  .integrationGrid {
    grid-template-columns: 1fr;
  }

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

  .metricCard {
    min-height: 120px;
  }

  .reviewBreakdown {
    grid-template-columns: 1fr;
  }

  .reviewBreakdown button {
    padding: 11px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reviewBreakdown button:first-child {
    padding-top: 11px;
  }

  .panelHeader,
  .sectionTitle {
    align-items: start;
    flex-direction: column;
  }

  .sectionActions {
    width: 100%;
    justify-content: space-between;
  }

  .timelineItem {
    grid-template-columns: auto 1fr;
  }

  .timelineItem time {
    grid-column: 2;
  }

  .agentDrawer {
    padding: 24px;
  }

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

  .integrationBackdrop {
    align-items: stretch;
    padding: 0;
  }

  .integrationDialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .integrationBody {
    padding: 24px 20px;
  }

  .wizardBackdrop {
    align-items: stretch;
    padding: 0;
  }

  .agentWizard {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .wizardHeader {
    padding: 21px 20px 17px;
  }

  .wizardProgress {
    justify-content: space-between;
    padding: 13px 18px;
  }

  .wizardProgress span {
    font-size: 0;
  }

  .wizardProgress span b {
    font-size: 0.64rem;
  }

  .wizardProgress i {
    flex: 1;
  }

  .wizardBody {
    padding: 24px 20px 30px;
  }

  .wizardWorkspace {
    grid-template-columns: 1fr;
  }

  .wizardAssistant {
    position: static;
    grid-row: 1;
  }

  .templateGrid,
  .strategyGrid,
  .workflowGrid,
  .formGrid.twoColumns,
  .choiceRow,
  .optionGrid,
  .reviewSummary,
  .checkList {
    grid-template-columns: 1fr;
  }

  .fullColumn,
  .reviewItem.full {
    grid-column: auto;
  }

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

  .scheduleRow {
    grid-template-columns: auto 1fr;
    padding: 13px 0;
  }

  .scheduleActions {
    grid-column: 2;
  }

  .chatPanel {
    min-height: 560px;
  }

  .chatMessages {
    min-height: 350px;
    padding: 16px;
  }

  .chatMessage {
    max-width: 96%;
  }

  .chatToolbar,
  .chatComposer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .chatModelControl,
  .chatCapabilityControls,
  .chatToolbar label {
    width: 100%;
  }

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

  .chatCapabilityControls label {
    grid-column: 1 / -1;
  }

  .chatToolbar select {
    width: 100%;
    max-width: none;
  }

  .chatImageOptions {
    grid-template-columns: 1fr;
  }

  .composerTools {
    align-items: flex-start;
    flex-direction: column;
  }

  .chatMediaGrid {
    grid-template-columns: 1fr;
  }

  .drawerLive {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawerCapabilityGroups > div {
    grid-template-columns: 1fr;
  }

  .drawerCapabilityGroups > div > strong {
    padding-top: 0;
  }

  .chatComposer .primaryButton.compact {
    width: 100%;
    color: #fff;
  }

  .chatComposer .primaryButton.compact::before {
    content: none;
  }

  .operationRow {
    grid-template-columns: auto 1fr;
    padding: 9px 0;
  }

  .operationRow > small {
    grid-column: 2;
  }

  .wizardFooter {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .wizardFooter p {
    width: 100%;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Sección Asistente (SOUL.md) === */
.sectionLede {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.sectionLede code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--sidebar-soft);
  font-size: 0.82em;
}
.soulGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .soulGrid {
    grid-template-columns: 1fr;
  }
}
.soulForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soulForm label {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.soulForm textarea {
  width: 100%;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-family: "Manrope", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}
.soulForm textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 20%, transparent);
}
.soulMeta {
  display: flex;
  justify-content: space-between;
  color: var(--soft-muted);
  font-size: 0.72rem;
}
.soulActions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.soulPresets {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--sidebar-soft);
}
.soulPresets h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
}
.soulPresets > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
}
.soulPresetList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soulPreset {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.soulPreset:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}
.soulPreset strong {
  font-size: 0.8rem;
}
.soulPreset span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* Toolsets con herramientas de escritura: señal visual de mayor riesgo */
.optionCard-write {
  position: relative;
}
.optionCard-write::after {
  content: "escritura";
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 22%, transparent);
  color: var(--amber);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.optionCard-write:has(input:checked) {
  border-color: var(--amber);
}

/* Selector de modelo específico (modelos vivos de Hermes + locales de Ollama) */
.modelPicker {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modelPicker label {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modelPicker label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.7rem;
}
.modelPicker select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.82rem;
  max-width: 420px;
}
.modelPicker select:focus {
  outline: none;
  border-color: var(--lime);
}
