/* BAS AI Agent Workspace — standalone, dependency-free presentation interface. */
:root {
  --bg:#f4f5f8;
  --paper:#fff;
  --paper2:#f8f9fb;
  --ink:#152139;
  --muted:#697387;
  --line:#e4e7ed;
  --navy:#111d32;
  --accent:#8b2848;
  --accent2:#a63757;
  --rose:#f8edf1;
  --green:#217565;
  --green-bg:#eaf5f0;
  --amber:#91631b;
  --amber-bg:#fff5e1;
  --red:#ad3b42;
  --shadow:0 4px 20px #15213905;
  --radius:14px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.5
}
button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.55
}
button,a,input,select,textarea,[contenteditable] {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable]:focus-visible {
  outline:3px solid #bf6b88;
  outline-offset:3px
}
a {
  color:var(--accent)
}
button {
  color:inherit
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:28px;
  line-height:1.25;
  letter-spacing:-.8px
}
h2 {
  font-size:19px;
  letter-spacing:-.35px
}
h3 {
  font-size:15px
}
small,.small {
  font-size:12px
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.6px;
  text-transform:uppercase;
  font-weight:750
}
.icon {
  width:20px;
  height:20px;
  flex:none;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round
}
.skip {
  position:fixed;
  top:-100px;
  left:280px;
  z-index:100;
  background:var(--paper);
  padding:12px
}
.skip:focus {
  top:10px
}
.shell {
  display:grid;
  grid-template-columns:242px minmax(0,1fr);
  min-height:100vh
}
.sidebar {
  background:var(--navy);
  color:#c0c9d8;
  display:flex;
  flex-direction:column;
  position:fixed;
  inset:0 auto 0 0;
  width:242px;
  z-index:30;
  padding:28px 16px 18px
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 11px 28px;
  color:#fff
}
.brand-mark {
  font-size:27px;
  font-style:italic;
  letter-spacing:-3px;
  font-weight:850;
  position:relative;
  padding-right:9px
}
.brand-mark:after {
  content:"";
  width:20px;
  height:3px;
  background:#b85571;
  position:absolute;
  right:2px;
  top:3px;
  transform:rotate(-27deg)
}
.brand-copy {
  border-left:1px solid #ffffff25;
  padding-left:12px;
  font-size:9px;
  letter-spacing:1.25px;
  line-height:1.6;
  color:#e3e7f0
}
.nav-label {
  font-size:9px;
  letter-spacing:1.8px;
  color:#7f91aa;
  padding:17px 13px 10px
}
.nav-button {
  border:0;
  background:transparent;
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  margin:2px 0;
  text-align:left;
  border-radius:8px;
  font-size:12px;
  color:#bbc6d8;
  transition:background .2s
}
.nav-button:hover {
  background:#ffffff09;
  color:white
}
.nav-button.active {
  background:#ffffff10;
  color:white;
  box-shadow:inset 3px 0 #bb5c7a
}
.nav-button.active .icon {
  color:#db9bb0
}
.nav-button .nav-dot {
  width:5px;
  height:5px;
  background:#c990a4;
  border-radius:50%;
  margin-left:auto
}
.nav-button.proposed span {
  line-height:1.35
}
.sidebar-bottom {
  margin-top:auto;
  padding:20px 11px 0
}
.sandbox-pill {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:11px;
  color:#dce5f0
}
.dot {
  width:6px;
  height:6px;
  background:#76bba0;
  border-radius:50%;
  display:inline-block;
  flex:none
}
.sidebar-bottom p {
  font-size:10px;
  color:#899ab0;
  margin-top:9px;
  line-height:1.65
}
.main-shell {
  grid-column:2;
  min-width:0
}
.topbar {
  height:77px;
  display:flex;
  align-items:center;
  gap:17px;
  padding:0 32px;
  border-bottom:1px solid var(--line);
  background:var(--paper)
}
.product {
  font-weight:650;
  font-size:13px;
  white-space:nowrap
}
.command {
  margin-left:auto;
  position:relative;
  max-width:265px;
  flex:1
}
.command input {
  width:100%;
  background:var(--paper2);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 35px;
  font-size:11px
}
.command .icon {
  position:absolute;
  top:10px;
  left:10px;
  width:15px;
  height:15px;
  color:var(--muted)
}
.command kbd {
  position:absolute;
  right:8px;
  top:8px;
  color:var(--muted);
  font-size:10px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:1px 4px
}
.mode-button {
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:7px;
  font-size:10px;
  font-weight:650;
  white-space:nowrap;
  padding:7px 9px;
  display:flex;
  align-items:center;
  gap:6px
}
.avatar {
  width:31px;
  height:31px;
  background:var(--rose);
  color:var(--accent);
  border:1px solid #8b284815;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:750
}
.user {
  display:flex;
  align-items:center;
  gap:9px
}
.user strong {
  font-size:11px;
  display:block
}
.user small {
  font-size:9px;
  color:var(--muted)
}
.icon-btn {
  display:inline-grid;
  place-items:center;
  background:transparent;
  border:1px solid var(--line);
  border-radius:7px;
  width:32px;
  height:32px
}
.icon-btn .icon {
  width:16px;
  height:16px
}
.environment {
  padding:8px 32px;
  background:#f5efea;
  border-bottom:1px solid #e7ddd4;
  color:#796855;
  font-size:10px;
  display:flex;
  align-items:center;
  gap:8px
}
.environment .icon {
  width:13px;
  height:13px
}
.environment span:last-child {
  margin-left:auto;
  white-space:nowrap
}
.main {
  padding:30px 32px 22px;
  max-width:1720px;
  margin:auto
}
.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px
}
.page-head p {
  margin-top:6px;
  font-size:12px;
  color:var(--muted)
}
.actions {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  padding:9px 13px;
  font-size:11px;
  font-weight:650;
  line-height:1.5;
  text-decoration:none
}
.btn .icon {
  width:15px;
  height:15px
}
.btn:hover {
  border-color:#ad8090;
  background:var(--paper2)
}
.btn.primary {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent)
}
.btn.primary:hover {
  background:var(--accent2)
}
.btn.dark {
  background:#253550;
  color:#fff;
  border-color:#253550
}
.btn.danger {
  color:var(--red)
}
.btn.text {
  border:0;
  background:transparent;
  padding:6px 0;
  color:var(--accent)
}
.btn.tiny {
  padding:5px 8px;
  font-size:10px
}
.hero {
  background:linear-gradient(115deg,#15223a,#22304a);
  color:#fff;
  border-radius:var(--radius);
  padding:30px 32px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:30px;
  min-height:193px
}
.hero:after {
  content:"";
  position:absolute;
  right:-60px;
  top:-170px;
  width:430px;
  height:430px;
  border:1px solid #ffffff0d;
  border-radius:50%;
  box-shadow:0 0 0 55px #ffffff03,0 0 0 110px #ffffff03;
  pointer-events:none
}
.hero .eyebrow {
  color:#d9a5b7;
  margin-bottom:11px
}
.hero h2 {
  font-size:29px;
  line-height:1.25;
  letter-spacing:-.8px;
  max-width:520px;
  font-weight:600
}
.hero p {
  color:#b6c3d6;
  font-size:12px;
  margin-top:11px;
  max-width:470px
}
.hero .btn {
  margin-top:20px;
  background:#fff;
  color:#25324a;
  border:0
}
.hero-flow {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
  z-index:1
}
.flow-mini {
  text-align:center;
  width:75px;
  font-size:9px;
  color:#bac9dd
}
.flow-mini .node {
  margin:0 auto 8px;
  width:45px;
  height:45px;
  border-radius:12px;
  border:1px solid #ffffff21;
  background:#ffffff08;
  display:grid;
  place-items:center;
  color:#e4eaf2
}
.flow-mini:last-child .node {
  background:#8b2848;
  border-color:#b35b78
}
.flow-arrow {
  color:#7f8fa8
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:19px 0 28px
}
.metric {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:17px 19px;
  position:relative
}
.metric .icon {
  position:absolute;
  right:17px;
  top:17px;
  color:#98a1b1;
  width:18px;
  height:18px
}
.metric small {
  font-size:10px;
  color:var(--muted)
}
.metric strong {
  display:block;
  font-size:25px;
  font-weight:600;
  margin-top:7px;
  letter-spacing:-.5px
}
.metric p {
  font-size:10px;
  color:var(--muted);
  margin-top:2px
}
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
  gap:12px
}
.section-head p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}
.badge {
  font-size:9px;
  padding:4px 7px;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  font-weight:650;
  background:var(--paper2);
  color:var(--muted);
  border:1px solid var(--line)
}
.badge.green {
  color:var(--green);
  background:var(--green-bg);
  border-color:transparent
}
.badge.rose {
  color:var(--accent);
  background:var(--rose);
  border-color:transparent
}
.badge.amber {
  color:var(--amber);
  background:var(--amber-bg);
  border-color:transparent
}
.badge.red {
  color:var(--red);
  background:#fff0ef;
  border-color:transparent
}
.agent-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px
}
.agent-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:21px;
  display:flex;
  flex-direction:column;
  min-height:223px;
  transition:transform .18s,box-shadow .18s
}
.agent-card:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 24px #1521390a
}
.agent-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px
}
.agent-icon {
  height:39px;
  width:39px;
  border-radius:10px;
  background:var(--rose);
  color:var(--accent);
  display:grid;
  place-items:center
}
.agent-icon.blue {
  background:#edf1f9;
  color:#506c9a
}
.agent-icon.teal {
  background:#eaf5f1;
  color:#357d70
}
.agent-icon.purple {
  background:#f1eef9;
  color:#7f69aa
}
.agent-icon.gold {
  background:#f8f2e7;
  color:#a17d39
}
.agent-card h3 {
  font-size:14px
}
.agent-card p {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin:7px 0 14px
}
.agent-card .card-footer {
  margin-top:auto;
  padding-top:13px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:10px;
  color:var(--muted)
}
.agent-card .btn {
  font-size:10px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--accent)
}
.governance-card {
  background:#edf0f5;
  border:1px dashed #cbd2de;
  border-radius:12px;
  padding:23px
}
.governance-card h3 {
  margin:12px 0 7px
}
.governance-card p {
  font-size:11px;
  color:var(--muted);
  line-height:1.7
}
.check-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-size:10px
}
.check-row .icon {
  width:14px;
  color:var(--green)
}
.lower-grid {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:18px;
  margin-top:26px
}
.panel {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  box-shadow:var(--shadow);
  min-width:0
}
.panel-header {
  padding:16px 20px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.panel-header h2,.panel-header h3 {
  font-size:13px
}
.panel-body {
  padding:20px
}
.activity {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line)
}
.activity:last-child {
  border-bottom:0
}
.activity-icon {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--paper2);
  color:var(--muted);
  flex:none
}
.activity-icon .icon {
  width:15px
}
.activity p {
  font-size:11px
}
.activity small {
  font-size:10px;
  color:var(--muted)
}
.activity time {
  font-size:10px;
  color:var(--muted);
  margin-left:auto;
  white-space:nowrap
}
.empty {
  padding:30px 16px;
  text-align:center;
  color:var(--muted);
  font-size:12px
}
.comparison-row {
  margin:14px 0
}
.comparison-row small {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  margin-bottom:5px
}
.bar {
  height:6px;
  background:var(--paper2);
  border-radius:5px;
  overflow:hidden
}
.bar i {
  display:block;
  height:100%;
  background:#b7bfcd;
  border-radius:5px
}
.bar.after i {
  background:var(--accent)
}
.disclaimer {
  font-size:10px;
  color:var(--muted);
  line-height:1.65;
  margin-top:12px
}
.footer {
  margin:28px 0 2px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:var(--muted);
  font-size:9px
}
.tabs {
  display:flex;
  gap:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px
}
.tab {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  padding:0 1px 12px;
  font-size:12px;
  color:var(--muted)
}
.tab.active {
  border-color:var(--accent);
  color:var(--accent);
  font-weight:650
}
.workspace {
  display:grid;
  grid-template-columns:minmax(310px,.93fr) minmax(350px,1.3fr);
  gap:20px
}
.stack {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:18px
}
.field {
  display:block;
  font-size:11px;
  font-weight:600;
  margin-bottom:14px
}
.field>span {
  display:block;
  margin-bottom:6px
}
.input,select,textarea {
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  padding:10px;
  width:100%;
  font-size:12px;
  line-height:1.6
}
textarea {
  resize:vertical;
  min-height:100px
}
.field small {
  color:var(--muted);
  font-weight:400;
  display:block;
  margin-top:5px
}
.form-row {
  display:flex;
  gap:10px;
  align-items:end
}
.form-row>* {
  flex:1;
  min-width:0
}
.filter-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px
}
.filter-row input,.filter-row select {
  font-size:10px;
  padding:7px
}
.filter-row input[type=search] {
  grid-column:1/-1
}
.inbox {
  max-height:430px;
  overflow:auto
}
.mail-item {
  display:flex;
  align-items:start;
  gap:9px;
  padding:13px 15px;
  border-bottom:1px solid var(--line)
}
.mail-item.selected {
  background:var(--rose)
}
.mail-item input {
  margin-top:5px;
  accent-color:var(--accent)
}
.mail-open {
  border:0;
  background:transparent;
  text-align:left;
  padding:0;
  flex:1;
  min-width:0
}
.mail-open strong {
  display:block;
  font-size:11px
}
.mail-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:9px;
  color:var(--muted);
  gap:5px;
  margin-bottom:5px
}
.mail-open p {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  margin-top:4px
}
.prompt-list {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:12px 0
}
.prompt-chip {
  border:1px solid var(--line);
  border-radius:6px;
  padding:7px 9px;
  background:var(--paper);
  text-align:left;
  font-size:10px;
  color:var(--muted)
}
.prompt-chip:hover {
  background:var(--rose);
  border-color:#d7b1bf;
  color:var(--accent)
}
.context {
  border:1px solid var(--line);
  background:var(--paper2);
  border-radius:7px;
  padding:10px 12px;
  font-size:10px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  flex-wrap:wrap
}
.context .icon {
  width:14px;
  height:14px
}
.output {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.8;
  font-size:12px;
  min-height:150px;
  padding:20px;
  background:var(--paper2);
  border-radius:8px;
  border:1px solid var(--line);
  font-family:inherit
}
.output[contenteditable=true] {
  outline-offset:3px
}
.output:empty:before {
  content:attr(data-placeholder);
  color:var(--muted)
}
.output-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  gap:10px
}
.output-label strong {
  font-size:12px
}
.notice {
  font-size:11px;
  line-height:1.7;
  border-left:3px solid #bf889a;
  background:var(--rose);
  padding:12px 15px;
  border-radius:0 6px 6px 0;
  margin-bottom:18px
}
.notice.warning {
  background:var(--amber-bg);
  border-color:#c89c4f;
  color:var(--amber)
}
.notice.success {
  background:var(--green-bg);
  border-color:var(--green);
  color:var(--green)
}
.source-links {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:12px 0
}
.source-link {
  background:var(--paper);
  color:var(--accent);
  border:1px solid var(--line);
  border-radius:5px;
  font-size:9px;
  padding:4px 7px
}
.process {
  padding:14px;
  border:1px solid var(--line);
  background:var(--paper2);
  border-radius:8px;
  margin:10px 0;
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px
}
.spinner {
  height:15px;
  width:15px;
  border:2px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin .7s linear infinite
}
.hidden {
  display:none!important
}
.workflow {
  display:flex;
  align-items:center;
  gap:7px;
  padding:13px;
  background:var(--paper2);
  border:1px solid var(--line);
  border-radius:8px;
  font-size:9px;
  margin-bottom:17px;
  color:var(--muted);
  flex-wrap:wrap
}
.workflow span {
  border-radius:4px;
  padding:3px 5px
}
.workflow span.active {
  background:var(--rose);
  color:var(--accent)
}
.meeting {
  padding:13px;
  border:1px solid var(--line);
  border-radius:7px;
  margin-bottom:9px;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  width:100%;
  background:var(--paper)
}
.meeting.conflict {
  border-left:3px solid #c59650
}
.meeting time {
  font-size:10px;
  color:var(--accent);
  min-width:65px
}
.meeting strong {
  display:block;
  font-size:11px
}
.meeting small {
  font-size:9px;
  color:var(--muted)
}
.calendar-controls {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:15px
}
.calendar-controls input {
  width:auto;
  max-width:170px
}
.calendar-controls select {
  width:auto
}
.calendar-day {
  font-size:10px;
  letter-spacing:.7px;
  color:var(--muted);
  margin:17px 0 10px;
  text-transform:uppercase
}
.code-area {
  font:12px/1.85 ui-monospace,SFMono-Regular,Consolas,monospace;
  background:#172238;
  color:#d6dfef;
  border:1px solid #28364e;
  min-height:310px;
  tab-size:2;
  padding:19px
}
.code-output {
  background:#172238;
  color:#d6dfef;
  font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
  overflow:auto;
  min-height:245px
}
.editor-title {
  background:#202d44;
  color:#b8c5d9;
  font:10px ui-monospace,monospace;
  border-radius:7px 7px 0 0;
  padding:10px 16px
}
.editor-title+.code-area {
  border-radius:0 0 7px 7px
}
.diff {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.diff .output {
  font-size:10px;
  min-height:200px
}
.table-wrap {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:11px
}
th {
  text-align:left;
  background:var(--paper2);
  color:var(--muted);
  font-size:9px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.7px
}
th,td {
  padding:12px;
  border-bottom:1px solid var(--line);
  vertical-align:top
}
tr:last-child td {
  border-bottom:0
}
td select {
  font-size:10px;
  min-width:105px;
  padding:5px
}
.table-actions {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px
}
.table-actions select {
  max-width:180px
}
.summary-cards {
  display:flex;
  gap:12px;
  margin:16px 0
}
.summary-cards>div {
  flex:1;
  padding:15px;
  background:var(--paper2);
  border:1px solid var(--line);
  border-radius:8px
}
.summary-cards strong {
  display:block;
  font-size:22px
}
.summary-cards small {
  font-size:9px;
  color:var(--muted)
}
.timeline {
  padding:0 20px
}
.audit-event {
  border-left:1px solid var(--line);
  padding:17px 0 17px 24px;
  margin-left:5px;
  position:relative
}
.audit-event:before {
  content:"";
  position:absolute;
  left:-4px;
  top:24px;
  width:7px;
  height:7px;
  background:var(--accent);
  border:2px solid var(--paper);
  outline:1px solid var(--line);
  border-radius:50%
}
.audit-event>div {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.audit-event p {
  font-size:12px;
  margin:5px 0
}
.audit-event small {
  font-size:10px;
  color:var(--muted)
}
.security-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:20px
}
.security-grid .panel-body p {
  font-size:11px;
  color:var(--muted);
  margin:8px 0 14px
}
.architecture {
  padding:28px;
  background:var(--paper2);
  border-radius:10px;
  border:1px solid var(--line);
  margin-bottom:20px
}
.arch-flow {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px
}
.arch-node {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:19px 15px;
  text-align:center;
  flex:1;
  max-width:220px;
  font-size:12px
}
.arch-node .icon {
  margin-bottom:8px;
  color:var(--accent);
  width:25px;
  height:25px
}
.arch-node small {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:5px
}
.arch-node.gateway {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy)
}
.arch-node.gateway small {
  color:#adbed6
}
.arch-node.gateway .icon {
  color:#e0a4b8
}
.arch-systems {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-width:730px;
  margin:24px auto 0;
  border-top:1px dashed #aab4c4;
  padding-top:20px
}
.arch-systems div {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px;
  font-size:10px;
  text-align:center
}
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.text-content {
  font-size:12px;
  color:var(--muted);
  line-height:1.9
}
.text-content p {
  margin:8px 0
}
.text-content ul {
  padding-left:20px
}
.settings-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:15px 0;
  border-bottom:1px solid var(--line)
}
.settings-row:last-child {
  border:0
}
.settings-row h3 {
  font-size:12px
}
.settings-row p {
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.settings-row select {
  width:auto;
  max-width:210px
}
.guided {
  padding:13px 20px;
  border-radius:8px;
  background:var(--navy);
  color:#fff;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:14px
}
.guided small {
  font-size:10px;
  color:#b9c5d8
}
.guided strong {
  font-size:12px
}
.guided .actions {
  margin-left:auto
}
.guided .btn {
  padding:6px 10px;
  font-size:10px
}
.step-dots {
  display:flex;
  gap:5px
}
.step-dots i {
  display:block;
  width:6px;
  height:6px;
  background:#ffffff30;
  border-radius:50%
}
.step-dots i.active {
  background:#df9db5
}
dialog {
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--paper);
  color:var(--ink);
  padding:0;
  max-width:660px;
  width:calc(100% - 36px);
  max-height:88vh;
  box-shadow:0 25px 90px #0004
}
dialog::backdrop {
  background:#0c172a99;
  backdrop-filter:blur(3px)
}
.dialog-head {
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.dialog-head h2 {
  font-size:18px
}
.dialog-body {
  padding:22px 24px;
  overflow:auto;
  max-height:61vh
}
.dialog-body .output {
  min-height:0;
  font-size:12px
}
.dialog-footer {
  padding:16px 24px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap
}
.details {
  display:grid;
  grid-template-columns:80px 1fr;
  gap:8px;
  font-size:11px;
  margin-bottom:18px
}
.details dt {
  color:var(--muted)
}
.details dd {
  margin:0;
  overflow-wrap:anywhere
}
#toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + 100px);
  transform:translate(-50%,20px);
  background:var(--navy);
  color:#fff;
  font-size:12px;
  border-radius:9px;
  padding:13px 20px;
  box-shadow:0 8px 35px #0003;
  z-index:100;
  opacity:0;
  pointer-events:none;
  max-width:min(620px,90vw);
  transition:.2s
}
#toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.mobile-toggle {
  display:none
}
.delivery-steps {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px
}
.delivery-steps>div {
  background:var(--paper2);
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px
}
.delivery-steps strong {
  display:block;
  font-size:12px
}
.delivery-steps small {
  font-size:10px;
  color:var(--accent)
}
.delivery-steps p {
  font-size:10px;
  color:var(--muted);
  margin-top:9px
}
.person {
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.person small {
  display:block;
  color:var(--muted);
  font-size:10px
}
.mobile-backdrop {
  display:none
}
body.dark {
  --bg:#0f1726;
  --paper:#172237;
  --paper2:#1b2940;
  --ink:#e3e9f3;
  --muted:#a1afc4;
  --line:#2d3a50;
  --rose:#362437;
  --green:#8acdb9;
  --green-bg:#1d3836;
  --amber:#dfbf85;
  --amber-bg:#3c3426;
  --accent:#db8ca8;
  --accent2:#bd6989;
  color-scheme:dark
}
body.dark .btn.primary {
  background:#8b2848;
  color:#fff;
  border-color:#8b2848
}
body.dark .environment {
  background:#292632;
  border-color:#3a3241;
  color:#cab5bb
}
body.dark .governance-card {
  background:#1c2a40;
  border-color:#3a4b66
}
body.dark .badge.red {
  background:#482a34;
  color:#f3a4a8
}
body.dark .agent-icon {
  background:#42283d;
  color:#e5a5ba
}
body.dark .agent-icon.blue {
  background:#243c5e;
  color:#a1bde9
}
body.dark .agent-icon.teal {
  background:#22453f;
  color:#9ed8c8
}
body.dark .agent-icon.purple {
  background:#382e52;
  color:#c6b5ed
}
body.dark .agent-icon.gold {
  background:#483f2f;
  color:#e0c28a
}
body.dark .hero .btn {
  background:#f0e8ec;
  color:#25324a
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@keyframes appear {
  from {
    opacity:0;
    transform:translateY(5px)
  }
  to {
    opacity:1;
    transform:none
  }
}
.main {
  animation:appear .2s ease-out
}
@media(min-width:1650px) {
  .main {
    padding:34px 45px
  }
  .agent-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .hero {
    padding:36px 38px;
    min-height:210px
  }
  .agent-card {
    min-height:230px
  }
  .hero-flow {
    gap:25px
  }
  .flow-mini {
    width:95px
  }
  .topbar {
    padding-inline:45px
  }
  .environment {
    padding-inline:45px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:215px
  }
  .shell {
    grid-template-columns:215px minmax(0,1fr)
  }
  .topbar {
    padding:0 22px;
    gap:12px
  }
  .main {
    padding:24px 22px
  }
  .environment {
    padding-inline:22px
  }
  .user>div:last-child {
    display:none
  }
  .hero-flow {
    gap:5px
  }
  .hero h2 {
    font-size:25px
  }
  .hero {
    padding:25px
  }
  .flow-mini {
    width:60px
  }
  .command {
    max-width:200px
  }
  .product {
    font-size:12px
  }
  .agent-card {
    padding:17px
  }
  .workspace {
    grid-template-columns:minmax(280px,.9fr) minmax(310px,1.1fr)
  }
}
@media(max-width:1000px) {
  .command {
    display:none
  }
  .hero-flow {
    display:none
  }
  .agent-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .workspace {
    grid-template-columns:minmax(0,1fr)
  }
  .security-grid {
    grid-template-columns:1fr
  }
  .delivery-steps {
    grid-template-columns:repeat(3,1fr)
  }
  .arch-flow {
    gap:7px
  }
  .arch-node {
    font-size:10px;
    padding:14px 8px
  }
  .two-col {
    grid-template-columns:1fr
  }
  .environment span:last-child {
    display:none
  }
}
@media(max-width:760px) {
  .shell {
    display:block
  }
  .sidebar {
    transform:translateX(-100%);
    transition:.2s;
    width:242px
  }
  .sidebar.open {
    transform:none
  }
  .mobile-backdrop.open {
    display:block;
    position:fixed;
    inset:0;
    background:#0008;
    z-index:29;
    border:0
  }
  .main-shell {
    width:100%
  }
  .topbar {
    height:64px;
    padding:0 15px;
    gap:9px
  }
  .mobile-toggle {
    display:inline-grid
  }
  .product {
    font-size:11px;
    white-space:normal;
    max-width:130px;
    line-height:1.3
  }
  .mode-button {
    margin-left:auto;
    font-size:9px;
    padding:6px
  }
  .user {
    display:none
  }
  .environment {
    font-size:9px;
    padding:8px 15px
  }
  .main {
    padding:22px 15px
  }
  .page-head {
    align-items:start
  }
  .page-head h1 {
    font-size:24px
  }
  .page-head .actions .btn {
    font-size:10px;
    padding:8px
  }
  .hero {
    padding:25px 22px;
    min-height:190px
  }
  .hero h2 {
    font-size:25px
  }
  .metrics {
    grid-template-columns:repeat(2,1fr);
    gap:10px
  }
  .metric {
    padding:14px
  }
  .agent-grid {
    grid-template-columns:1fr
  }
  .agent-card {
    min-height:210px
  }
  .lower-grid {
    grid-template-columns:1fr
  }
  .footer {
    flex-direction:column;
    gap:4px
  }
  .tabs {
    gap:18px;
    overflow:auto
  }
  .tab {
    white-space:nowrap
  }
  .panel-body {
    padding:16px
  }
  .panel-header {
    padding:14px 16px
  }
  .guided {
    flex-wrap:wrap
  }
  .guided .actions {
    margin-left:0
  }
  .arch-flow {
    flex-direction:column
  }
  .arch-flow>.flow-arrow {
    transform:rotate(90deg)
  }
  .arch-node {
    max-width:none;
    width:100%;
    font-size:12px
  }
  .arch-systems {
    grid-template-columns:repeat(2,1fr)
  }
  .delivery-steps {
    grid-template-columns:1fr 1fr
  }
  .diff {
    grid-template-columns:1fr
  }
  .form-row {
    flex-wrap:wrap
  }
  .form-row>* {
    flex:1 1 120px
  }
  #toast {
    left:50%
  }
  .dialog-body {
    padding:16px
  }
  .dialog-head {
    padding:16px
  }
  .dialog-footer {
    padding:14px
  }
  .calendar-controls {
    flex-wrap:wrap
  }
  .table-actions {
    flex-wrap:wrap
  }
  .page-head p {
    max-width:260px
  }
}
@media print {
  .sidebar,.topbar,.environment,.footer,.page-head,.guided,.btn,.tabs,.prompt-list,.context,#toast {
    display:none!important
  }
  .shell {
    display:block
  }
  .main-shell {
    width:100%
  }
  .main {
    padding:0
  }
  .workspace {
    display:block
  }
  .workspace>.panel:first-child,.workspace>.stack:first-child {
    display:none
  }
  .panel {
    border:0;
    box-shadow:none
  }
  .panel-header {
    border:0
  }
  .output {
    border:0;
    background:white;
    color:black;
    min-height:0
  }
  .output-label {
    display:none
  }
  body {
    background:white;
    color:black
  }
  dialog {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Authenticated evaluation access and original BAS artwork from the supplied RFP. */
.brand-official {background:#fff;border-radius:9px;padding:8px 10px;margin:0 8px 18px;justify-content:center;}
.bas-logo {display:block;width:190px;max-width:100%;height:auto;object-fit:contain;}
.signout-btn {margin-top:14px;width:100%;background:#ffffff0b;border-color:#ffffff25;color:#fff;font-size:11px;}
.initial-loading {text-align:center;padding:30vh 20px;color:#697387;}
.login-layout {min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff;}
.login-story {position:relative;overflow:hidden;background:linear-gradient(145deg,#101b30,#27364e);color:#fff;min-height:100vh;padding:44px 60px;display:flex;flex-direction:column;}
.login-logo {width:230px;padding:15px 20px;background:#fff;border-radius:10px;}
.login-logo img {display:block;width:100%;height:auto;}
.login-story-copy {margin:auto 0;max-width:510px;padding:60px 0;}
.login-story-copy .eyebrow {color:#dfa3b6;font-size:11px;}
.login-story-copy h1 {font-size:54px;line-height:1.14;letter-spacing:-1.8px;margin:22px 0;}
.login-story-copy>p {font-size:16px;line-height:1.8;color:#b9c7db;max-width:390px;}
.login-proof {display:flex;flex-direction:column;gap:14px;margin-top:38px;color:#dae2ef;font-size:12px;}
.login-proof span:before {content:'✓';color:#d995ad;margin-right:12px;}
.login-credit {font-size:11px;color:#9aacc4;}
.login-form-area {display:grid;place-items:center;padding:60px;}
.login-card {width:100%;max-width:420px;}
.login-card>.eyebrow {color:#8b2848;font-size:10px;}
.login-card h2 {font-size:29px;line-height:1.25;letter-spacing:-.8px;margin:15px 0 12px;color:#152139;}
.login-card>p {font-size:12px;line-height:1.85;color:#697387;margin-bottom:30px;}
.login-card .field {margin-bottom:21px;font-size:12px;color:#25324a;}
.login-card .input {font-size:14px;padding:13px 14px;background:#fafbfc;border-color:#dce1e9;color:#152139;}
.password-wrap {position:relative;}
.password-wrap input {padding-right:60px!important;}
.password-wrap button {position:absolute;right:8px;top:8px;border:0;background:transparent;color:#8b2848;padding:7px;font-size:11px;}
.login-submit {width:100%;justify-content:space-between;font-size:13px;padding:13px 16px;background:#8b2848!important;color:#fff!important;border-color:#8b2848!important;}
.login-message {min-height:22px;font-size:11px;color:#697387;margin:-7px 0 14px;}
.login-message.error {color:#a23946;}
.login-security {display:flex;gap:10px;margin:22px 0 25px;color:#697387;font-size:10px;line-height:1.8;}
.login-security>span {color:#217565;font-size:15px;}
.login-demo-notice {border-top:1px solid #e4e7ed;padding-top:20px;font-size:10px;color:#8891a0;line-height:1.8;}
@media (max-width:1000px) {.login-story {padding:35px;}.login-story-copy h1 {font-size:43px;}.login-form-area {padding:35px;}}
@media (max-width:760px) {.login-layout {grid-template-columns:1fr;}.login-story {min-height:0;padding:24px;}.login-logo {width:170px;padding:8px 13px;}.login-story-copy {padding:35px 0 10px;}.login-story-copy h1 {font-size:34px;letter-spacing:-1px;margin:14px 0;}.login-story-copy>p {font-size:12px;}.login-proof,.login-credit {display:none;}.login-form-area {padding:32px 24px 45px;}.login-card h2 {font-size:26px;}.brand-official {max-width:200px;}}

.administrator-role-label {display:block;font-size:10px;color:#d8e0ef;margin-top:12px;}
.administrator-role-label select {margin-top:6px;background:#26354d;border-color:#42516a;color:white;padding:7px;font-size:10px;}
.administrator-role-note {font-size:9px!important;line-height:1.5!important;margin-top:5px!important;}
.sidebar {overflow-y:auto;}
