:root {
  --blue: #0068b7;
  --sky: #4fa3d5;
  --site-bg: #f0fbfd;
  --line: #c9e6f4;
  --soft: #e3f5fc;
  --nav: #0068b7;
}
body { background: var(--site-bg); }
.sidebar { background: linear-gradient(165deg, #0078c8, var(--nav) 60%); }
.brand small, .operator small, nav button { color: #f3fbff; }
nav button:hover, nav [aria-current="page"] { background: #e3f5fc; color: #004b83; }
nav i { color: inherit; }
.operator { border-color: #ffffff60; }
.avatar { background: #ffffff30; }
.hero { background: linear-gradient(114deg, #0068b7 10%, #087bc5 56%, #4fa3d5); }
.hero p, .hero small { color: #f3fbff; }
.metric { border-top-color: var(--sky); }
.link { color: var(--blue); flex: 0 0 auto; }
.badge { background: #dff3ff; color: #00518c; }
.badge.green { background: #e4f6ef; color: #176046; }
.badge.amber { background: #fcf1dc; color: #795009; }

#guided-demo {
  width: min(760px, calc(100% - 30px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 0;
  border: 1px solid #93caeb;
  border-radius: 17px;
  box-shadow: 0 20px 70px #00498045;
  overflow: auto;
}
#guided-demo::backdrop { background: #092d4ab0; }
.demo-shell { background: var(--site-bg); }
.demo-header {
  background: var(--blue);
  color: white;
  padding: 15px 23px 12px;
  display: grid;
  gap: 5px;
}
#demo-step { font-size: 13px; font-weight: 800; color: #ecf9ff; }
#demo-caption { font-size: 22px; line-height: 1.4; }
#demo-progress {
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 5px 0 0;
  border: none;
  border-radius: 9px;
  background: #ffffff50;
  overflow: hidden;
}
#demo-progress::-webkit-progress-bar { background: #ffffff50; }
#demo-progress::-webkit-progress-value { background: #9edfff; }
#demo-progress::-moz-progress-bar { background: #9edfff; }
.demo-stage {
  position: relative;
  padding: 10px 22px 12px;
  min-height: 340px;
  background: #d9edf5;
}
#demo-content { display: grid; gap: 8px; }
.demo-page-title { font-size: 13px; font-weight: 800; color: #225476; }
.demo-piece {
  background: #edf4f8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  filter: brightness(.92) saturate(.73);
}
.demo-piece.is-spotlight {
  background: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #4fa3d557, 0 5px 13px #0068b72b;
  filter: none;
}
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-row h3 { min-width: 0; }
.demo-action, .demo-channel {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.demo-action.done { color: #005448; background: #d8f6ec; }
.demo-action.secondary, .demo-channel { color: #00518c; background: #e3f5fc; }
.demo-channel.selected { color: white; background: var(--blue); }
.demo-preview {
  display: grid;
  grid-template-columns: 1.15fr 1fr .65fr;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.demo-preview.two-columns { grid-template-columns: 1fr 1fr; }
.demo-preview > :nth-child(-n+3) { color: #356483; }
.demo-count { margin-top: 5px; color: #07568b; font-size: 12px; }
.demo-count b { font-size: 17px; }
.demo-field {
  margin-top: 6px;
  border-radius: 7px;
  padding: 7px 9px;
  background: var(--site-bg);
}
.demo-field.emphasized { box-shadow: inset 3px 0 var(--sky); background: var(--soft); }
.demo-candidate { padding: 6px 0; border-top: 1px solid var(--line); }
.demo-candidate span, .demo-candidate p { display: block; font-size: 12px; }
.demo-candidate b { color: #00578d; }
.demo-options { display: flex; gap: 5px; flex-wrap: wrap; margin-block: 5px; }
.demo-message {
  min-height: 122px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--site-bg);
  padding: 7px 9px;
  border-radius: 7px;
}
.compose textarea.draft {
  field-sizing: content;
  min-height: 270px;
}
.batch-result {
  animation: demo-arrive .35s ease both;
}
.demo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-metrics div { padding: 7px 10px; background: var(--site-bg); border-radius: 7px; }
.demo-metrics b { display: block; color: #00578d; font-size: 25px; }
.demo-arrival { animation: demo-arrive .24s ease both; }
@keyframes demo-arrive { from { opacity: .1; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
#demo-pointer {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  color: white;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 3px #00487d, 0 1px 3px #00487d, 0 -1px 3px #00487d;
  pointer-events: none;
}
#demo-pointer.clicking::before {
  content: "";
  position: absolute;
  width: 31px;
  height: 31px;
  right: -10px;
  top: -5px;
  border: 2px solid #0068b7;
  box-shadow: 0 0 0 3px #fff8;
  border-radius: 50%;
}
.demo-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 22px;
  border-top: 1px solid var(--line);
  background: white;
}
#demo-pause { background: var(--blue); color: white; }
@media (max-width: 650px) {
  #guided-demo { width: calc(100% - 16px); }
  .demo-header { padding: 9px 12px 10px; }
  #demo-caption { font-size: 17px; }
  .demo-stage { padding: 8px 11px 10px; min-height: 280px; }
  .demo-piece { padding: 7px 8px; }
  .demo-row h3 { font-size: 13px; }
  .demo-candidate { line-height: 1.35; }
  .demo-message { font-size: 12px; }
  .demo-controls { gap: 5px; padding: 8px 10px; }
  .demo-controls button { font-size: 12px; padding: 7px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-arrival { animation: none; }
}
