/* Uplift Bot Builder — SUITE chrome. v1.46.1 visual parity fix:
   v1.39.3 only swept this sheet's palette, and Carlton — whose
   door to Bots is this Suite home (dashboard pill + /bots/) —
   checked twice and said the new look was not there. So this
   pass changes what the eye actually lands on, to match the
   companion's Muse language: SVG line icons in the rail (the
   glyphs are gone), a borderless top bar, a quiet promo line,
   a narrower centred column, pill buttons, softer cards, and
   bot replies as plain text on the canvas — no bordered bubble.
   Layout structure and function unchanged. */
* { box-sizing: border-box; }
body { margin: 0; background: #232321; color: #ECE9E2; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: #00E5FF; }

.s-shell { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------ rail */
.s-rail { width: 248px; flex: 0 0 248px; background: #1F1F1E; border-right: 1px solid #35342F;
  padding: 18px 14px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.s-logo { display: block; letter-spacing: .3px;
  color: #ECE9E2; text-decoration: none; font-weight: 700; font-size: 15px; padding: 2px 8px 14px; }
.s-logo span { color: #00E5FF; }
.s-rail-h { margin: 16px 8px 6px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #7B776D; }
.s-rail-a { display: flex; align-items: center; gap: 9px; color: #C9C6BD; text-decoration: none;
  padding: 8px 10px; border-radius: 9px; font-size: 14.5px; margin: 1px 0; }
.s-rail-a:hover { background: #2A2A28; color: #ECE9E2; }
.s-rail-a.on { background: #33322E; color: #ECE9E2; }
.s-ic { width: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; color: #8A867C; }
.s-ic svg { width: 17px; height: 17px; display: block; }
.s-rail-a:hover .s-ic { color: #C9C6BD; }
.s-rail-a.on .s-ic { color: #00E5FF; }
.s-badge { margin-left: auto; background: #33322F; color: #00E5FF; border-radius: 999px;
  padding: 1px 8px; font-size: 12px; }
.s-badge.hot { background: #00E5FF; color: #04202B; font-weight: 700; }

/* ---------------------------------------------------------- column */
.s-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px; background: #232321; position: sticky; top: 0; z-index: 5; }
.s-top-name { letter-spacing: .3px; font-size: 14px; color: #C9C6BD; }
.s-top-nav { display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.s-top-nav a { color: #C9C6BD; text-decoration: none; }
.s-top-nav a:hover { color: #00E5FF; }
.s-top-nav .s-cta { background: #00E5FF; color: #04202B; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.s-top-nav .s-cta:hover { background: #4DEBFF; color: #04202B; }
.s-user { color: #A09C92; }
.s-promo { text-align: center; font-size: 12.5px; color: #8A867C; padding: 2px 16px 12px; }
.s-main { max-width: 920px; width: 100%; margin: 0 auto; padding: 30px 22px 48px; flex: 1; }
.s-foot { text-align: center; color: #7B776D; padding: 18px; font-size: 13px; border-top: 1px solid #35342F; }

/* ------------------------------------------------------------ hero */
.s-hero { text-align: center; margin: 18px 0 22px; }
.s-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.2px; margin: 6px 0 10px; }
.s-hero p { color: #B3AFA4; font-size: 15.5px; line-height: 1.6; max-width: 640px; margin: 0 auto; }
.s-hero .s-edge { color: #00E5FF; }

/* ---------------------------------------------------------- prompt */
.s-prompt { background: #2E2D2A; border: 1px solid #3B3A36; border-radius: 24px; padding: 16px 18px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.s-modes { display: inline-flex; background: #232321; border: 1px solid #35342F; border-radius: 999px; padding: 3px; margin-bottom: 12px; }
.s-modes button { border: 0; background: transparent; color: #C9C6BD; font: inherit; font-size: 14px;
  padding: 6px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.s-modes button svg { width: 15px; height: 15px; display: block; }
.s-modes button.on { background: #3B3831; color: #ECE9E2; }
.s-modes button.on svg { color: #00E5FF; }
.s-prompt textarea { width: 100%; background: transparent; border: 0; resize: vertical; min-height: 64px;
  color: #ECE9E2; font: inherit; font-size: 16.5px; line-height: 1.5; outline: none; }
.s-prompt textarea::placeholder { color: #7B776D; }
.s-prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.s-round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #47443D; background: transparent;
  color: #00E5FF; font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.s-round:hover { border-color: #00E5FF; }
.s-round.live { background: #00E5FF; color: #04202B; }
.s-prow select { background: #2E2D2A; border: 1px solid #47443D; border-radius: 999px; color: #ECE9E2;
  padding: 8px 12px; font: inherit; font-size: 13.5px; max-width: 210px; }
.s-send { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #00E5FF;
  color: #04202B; font-size: 19px; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.s-send:hover { background: #4DEBFF; }
.s-pnote { color: #A09C92; font-size: 13px; margin: 9px 2px 2px; }
.s-status { color: #BDEFFB; font-size: 13.5px; min-height: 18px; margin: 6px 2px 0; }
.s-keyrow { background: #2A2A28; border: 1px solid #35342F; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.s-keyrow p { margin: 0 0 8px; color: #CFCCC3; font-size: 14px; }
.s-keyrow input { width: 100%; background: #232321; border: 1px solid #47443D; border-radius: 9px;
  color: #ECE9E2; padding: 9px 12px; font: inherit; margin-bottom: 8px; }
.s-attach { background: #2A2A28; border: 1px solid #35342F; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.s-attach label { display: block; color: #CFCCC3; font-size: 13.5px; margin: 8px 0; }
.s-attach select, .s-attach input { width: 100%; margin-top: 4px; background: #232321; border: 1px solid #47443D;
  border-radius: 9px; color: #ECE9E2; padding: 9px 12px; font: inherit; font-size: 14.5px; }

/* ---------------------------------------------------------- thread */
.s-thread { margin-top: 18px; display: flex; flex-direction: column; gap: 24px; }
.s-msg { line-height: 1.6; white-space: pre-wrap; }
.s-msg.me { align-self: flex-end; max-width: 78%; padding: 12px 16px; border-radius: 18px; background: #4B4136; border: 1px solid transparent; color: #F5EDDF; }
.s-msg.bot { align-self: stretch; padding: 2px 2px 0; background: transparent; border: 0; }

/* ----------------------------------------------------------- chips */
.s-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 16px 0 6px; }
.s-chip { background: #2A2A28; border: 1px solid #3B3A36; color: #E4E1D8; border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.s-chip:hover { background: #2E2D2A; border-color: rgba(0,229,255,.4); color: #ECE9E2; }

/* ------------------------------------------------------ cards/grid */
.s-h2 { font-size: 17px; font-weight: 600; letter-spacing: .1px; margin: 36px 0 6px; }
.s-sub { color: #A09C92; margin: 0 0 12px; line-height: 1.5; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 14px; }
.s-card { background: #2A2A28; border: 1px solid #35342F; border-radius: 18px; padding: 18px 20px; margin: 12px 0; }
.s-card h2, .s-card h3 { margin-top: 0; }
.s-tile { display: block; background: #2A2A28; border: 1px solid #35342F; border-radius: 18px;
  padding: 18px 20px; text-decoration: none; color: #ECE9E2; }
.s-tile:hover { background: #2E2D2A; border-color: rgba(0,229,255,.35); }
.s-tile .s-tile-app { color: #00E5FF; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.s-tile h3 { margin: 5px 0 6px; font-size: 17px; }
.s-tile p { color: #B3AFA4; margin: 0; line-height: 1.5; font-size: 14.5px; }
.s-row { background: #2A2A28; border: 1px solid #35342F; border-radius: 14px; padding: 12px 16px; margin: 8px 0; line-height: 1.5; }
.s-tag { background: rgba(0,229,255,.1); color: #00E5FF; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.s-tag.dim { background: #33322F; color: #A09C92; }
.s-tag.warn { background: #3A2A0E; color: #FFC46B; }
.s-flag { color: #FF9D9D; font-weight: 600; font-size: 13.5px; }
.s-note { color: #A09C92; font-size: 13.5px; line-height: 1.5; }
.s-flash { background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.35); color: #DFF8FF; border-radius: 14px; padding: 11px 15px; margin-bottom: 14px; }
.s-btn { display: inline-block; background: #00E5FF; color: #04202B; border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; font-family: inherit; }
.s-btn:hover { background: #4DEBFF; }
.s-btn.alt { background: transparent; color: #00E5FF; border: 1px solid rgba(0,229,255,.45); }
.s-btn.small { padding: 6px 14px; font-size: 13.5px; border-radius: 999px; }
.s-inline { display: inline-block; margin-left: 8px; }
.s-bar { height: 8px; background: #1F1F1E; border: 1px solid #35342F; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.s-bar i { display: block; height: 100%; background: #00E5FF; }
.s-swatches { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.s-swatch { width: 86px; height: 54px; border-radius: 10px; border: 1px solid #47443D; }
label.s-lab { display: block; margin: 10px 0; color: #CFCCC3; font-size: 14.5px; }
.s-in, .s-card input[type="text"], .s-card input[type="url"], .s-card textarea, .s-card select {
  width: 100%; margin-top: 5px; background: #2E2D2A; border: 1px solid #47443D; border-radius: 9px;
  color: #ECE9E2; padding: 10px 12px; font-size: 15px; font-family: inherit; }
.s-in:focus, .s-card input:focus, .s-card textarea:focus, .s-card select:focus,
.s-keyrow input:focus, .s-attach select:focus, .s-attach input:focus {
  border-color: rgba(0,229,255,.5); outline: none; }
.s-steps { display: flex; flex-direction: column; gap: 12px; }
.s-step { background: #2A2A28; border: 1px solid #35342F; border-radius: 18px; padding: 16px 20px; }
.s-step.done { border-color: #1D5B4A; }
.s-step.doing { border-color: #47443D; }
.s-step h3 { margin: 0 0 4px; font-size: 16.5px; }
.s-step .s-step-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-step form { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; }
.s-step select { background: #2E2D2A; border: 1px solid #47443D; border-radius: 8px; color: #ECE9E2; padding: 6px 9px; font: inherit; font-size: 13.5px; }

/* -------------------------------------------------------- narrow */
@media (max-width: 900px) {
  .s-shell { flex-direction: column; }
  .s-rail { width: 100%; flex: none; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
  .s-logo { width: 100%; padding-bottom: 6px; }
  .s-rail-h { width: 100%; margin: 8px 8px 2px; }
  .s-rail-a { padding: 6px 9px; font-size: 13.5px; }
  .s-hero h1 { font-size: 25px; }
  .s-msg.me { max-width: 94%; }
}
