/* "See what we'd automate first" widget. Self-contained; override the
   custom properties on :root to restyle it for a page. */
.chief-root {
  --chief-accent: #C8F25A;
  --chief-ink: #0D1117;
  --chief-panel: #0D1117;
  --chief-card: #161B24;
  --chief-text: #F2F4F7;
  --chief-muted: #B7C0CC;
  --chief-faint: #8A94A3;
  --chief-line: rgba(255, 255, 255, .1);
  --chief-warn: #F7C978;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.chief-root *, .chief-root *::before, .chief-root *::after { box-sizing: border-box; }

.chief-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 2147483000;
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 14px;
  border: 0; border-radius: 999px; background: var(--chief-accent); color: var(--chief-ink);
  font: 600 16px/1.2 inherit; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(13, 17, 23, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chief-fab:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -12px rgba(13, 17, 23, .6); }
.chief-fab:focus-visible { outline: 3px solid var(--chief-ink); outline-offset: 3px; }
.chief-fab[hidden] { display: none; }
.chief-fab-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--chief-ink); display: flex; align-items: center; justify-content: center; }

.chief-scrim {
  position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(9, 12, 17, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chief-scrim[hidden] { display: none; }
.chief-panel {
  width: 100%; max-width: 760px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--chief-panel); color: var(--chief-text); border: 1px solid var(--chief-line);
  border-radius: 24px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
}
.chief-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px 16px 26px; background: var(--chief-panel); border-bottom: 1px solid var(--chief-line);
}
.chief-kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; color: #C9D0DA; text-transform: uppercase; }
.chief-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chief-accent); }
.chief-x { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--chief-text); cursor: pointer; }
.chief-body { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.chief-h { margin: 0; font: 700 34px/1.12 "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; }
.chief-p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--chief-muted); }
.chief-small { margin: 0; font: 400 12px/1.5 "JetBrains Mono", ui-monospace, monospace; color: #6B7686; }
.chief-label { font-weight: 600; font-size: 15px; }
.chief-field { display: flex; flex-direction: column; gap: 8px; }
.chief-input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2);
  background: var(--chief-card); color: var(--chief-text); font: 16px Inter, sans-serif;
}
.chief-input::placeholder { color: var(--chief-faint); }
.chief-input:focus { outline: 2px solid var(--chief-accent); outline-offset: 2px; }
.chief-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chief-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #DDE3EA; font: 500 14px Inter, sans-serif; cursor: pointer; }
.chief-chip[aria-pressed="true"] { background: rgba(200, 242, 90, .14); border-color: var(--chief-accent); color: #fff; }
.chief-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--chief-accent); color: var(--chief-ink); font: 600 16px Inter, sans-serif; cursor: pointer;
}
.chief-btn[disabled] { opacity: .6; cursor: progress; }
.chief-btn-ghost { background: transparent; color: var(--chief-text); border: 1px solid rgba(255, 255, 255, .25); }
.chief-link { align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; color: #C9D0DA; font: 600 14px Inter, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.chief-error { margin: 0; font-size: 14px; color: var(--chief-warn); }
.chief-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.chief-step { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: #6B7686; }
.chief-step.is-active, .chief-step.is-done { color: var(--chief-text); }
.chief-step i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); }
.chief-step.is-active i { border-top-color: var(--chief-accent); animation: chief-spin .8s linear infinite; }
.chief-step.is-done i { border: 0; background: var(--chief-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1117' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
@keyframes chief-spin { to { transform: rotate(360deg); } }
.chief-card { padding: 20px 22px; border-radius: 18px; background: var(--chief-card); border: 1px solid var(--chief-line); display: flex; flex-direction: column; gap: 12px; }
.chief-mono { font: 500 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; color: var(--chief-faint); text-transform: uppercase; }
.chief-ideas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.chief-idea-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chief-idea-title { font: 600 20px/1.3 "Space Grotesk", Inter, sans-serif; }
.chief-pill { flex: none; padding: 4px 9px; border-radius: 999px; font: 500 11.5px/1.3 "JetBrains Mono", ui-monospace, monospace; background: rgba(200, 242, 90, .14); color: #D7F58A; white-space: nowrap; }
.chief-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.chief-two div { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; color: var(--chief-muted); }
.chief-two div:last-child { color: var(--chief-text); }
.chief-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 10px; border-top: 1px solid var(--chief-line); font-size: 13.5px; color: var(--chief-faint); }
.chief-foot a { color: var(--chief-accent); font-weight: 600; font-size: 14px; text-underline-offset: 4px; }
.chief-send { padding: 24px; border-radius: 18px; background: rgba(200, 242, 90, .08); border: 1px solid rgba(200, 242, 90, .3); display: flex; flex-direction: column; gap: 16px; }
.chief-send-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.chief-check { width: 52px; height: 52px; border-radius: 50%; background: var(--chief-accent); display: flex; align-items: center; justify-content: center; }
.chief-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chief-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  .chief-fab { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .chief-scrim { padding: 0; align-items: stretch; }
  .chief-panel { max-height: 100vh; border-radius: 0; }
  .chief-h { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .chief-fab, .chief-step.is-active i { transition: none; animation: none; }
}
