.features .feature-console {
  --step-size: 44px;
  --step-offset: clamp(7px, 1.2vw, 16px);
  --panel-limit: calc(100% - 2 * (var(--step-size) + var(--step-offset) + 6px));
  position:absolute; left:50%; translate:-50% 0;
  inline-size:min(960px,var(--panel-limit)); padding:12px 18px 16px;
  display:grid; grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"tools tools" "identity voice"; align-items:center; gap:12px 18px;
  border-radius:24px; border:1px solid #ffffffa8;
  background:var(--glass-face,linear-gradient(130deg,#fffc,#fff9));
  color:var(--glass-ink,#302b36);
  box-shadow:0 8px 28px -18px #30203940;
  backdrop-filter:blur(16px);
}
.feature-step {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  inline-size: var(--step-size);
  block-size: var(--step-size);
  padding: 0;
  border: 1px solid #fffffff0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffc, #fff8);
  color: var(--icon-start);
  box-shadow: inset 0 -1px 2px #69587522, 0 3px 10px #34234019;
  cursor: pointer;
  touch-action: manipulation;
}
.features[data-interactive="true"] .feature-step { pointer-events: auto; }
.feature-step[data-step="-1"] { inset-inline-end: calc(100% + var(--step-offset)); }
.feature-step[data-step="1"] { inset-inline-start: calc(100% + var(--step-offset)); }
.feature-step span { position: relative; display: block; width: 14px; height: 16px; }
.feature-step[data-step="-1"] span { rotate: 180deg; }
.feature-step span::after {
  content: "";
  position: absolute;
  right: 3px; top: 3px;
  width: 8px; height: 8px;
  border: solid currentColor;
  border-width: 1.8px 1.8px 0 0;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .feature-step:hover { background: #fffbf4; }
}
.feature-step:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .feature-step { transition: scale 140ms ease, background-color 140ms ease; }
  .feature-step:active { scale: .94; }
}
@media (forced-colors: active) {
  .feature-step { color: ButtonText; border-color: ButtonText; }
  .feature-step span::before { forced-color-adjust: none; background: ButtonText; }
}
.feature-identity {
  grid-area:identity; min-width:0; margin:0;
  font:700 clamp(20px,1.8vw,31px)/1.12 EK,Instrument,sans-serif;
}
.features .feature-console .feature-dock,
.features .feature-console .feature-caption {position:relative; left:auto; translate:none;}
.features .feature-console .feature-dock {
  grid-area:tools; display:flex; justify-content:center; align-items:center;
  width:100%; min-width:0; padding:0 0 10px; gap:clamp(6px,1vw,16px);
  border-bottom:1px solid #61536d29; color:inherit;
}
.features[data-feature-layout] .feature-console .feature-dock { background:transparent; }
.features .feature-console .feature-tab {
  display:grid; place-items:center; flex:none;
  width:48px; height:48px; padding:0; cursor:pointer; touch-action:manipulation;
  background:transparent; border:0; border-radius:50%; color:var(--icon-rest);
}
.features .feature-console .feature-tab[aria-selected="true"] { color:var(--icon-start); }
.features .feature-console .tab-icon { width:24px; height:24px; }
@media (hover:hover) {
  .features .feature-console .feature-tab:hover { background:var(--icon-chip); color:var(--icon-start); }
}
.feature-nav {
  --icon-rest: #5b534e;
  --icon-start: #332f2e;
  --icon-end: #332f2e;
  --icon-chip: #fffcf2;
  --icon-edge: #493e354f;
}
/* Copper picks up the hardware finishes. The duet follows the global background. */
[data-icon-palette="duo"] .feature-nav {
  --icon-rest: #65545d;
  --icon-start: #6b405d;
  --icon-end: #a4562c;
  --icon-chip: #fff3e6;
  --icon-edge: #8c5d6373;
}
.feature-console .feature-glyph {
  display: block;
  flex-shrink: 0;
  background: var(--icon-rest);
  -webkit-mask: var(--feature-glyph) center / contain no-repeat;
  mask: var(--feature-glyph) center / contain no-repeat;
}
.features .feature-console .tab-icon { opacity: 1; }
.feature-tab[aria-selected="true"] .feature-glyph {
  background: linear-gradient(145deg, var(--icon-start) 12%, var(--icon-end) 88%);
}
.features .feature-console .feature-tab[aria-selected="true"] {
  background: var(--icon-chip);
  box-shadow: inset 0 0 0 1px var(--icon-edge);
}
.features .feature-console .feature-tab:focus-visible { outline: 2px solid var(--icon-start); outline-offset: -2px; }
@media (forced-colors: active) {
  .feature-console .feature-tab .feature-glyph { forced-color-adjust: none; background: ButtonText; }
  .features .feature-console .feature-tab[aria-selected="true"] { border: 1px solid Highlight; }
}
.features .feature-console .feature-caption {
  grid-area:voice; width:100%; min-width:0; padding:0; color:inherit;
}
.features[data-feature-layout] .feature-console .caption-bubble {
  border:0;border-radius:0;box-shadow:none;background:transparent;backdrop-filter:none;
  min-height:0;padding:0; font-size:clamp(15px,1.16vw,19px);line-height:1.4;
}
.feature-console .caption-bubble::before {display:none;}
.features[data-wave-position="inline"] .feature-console .caption-bubble {justify-content:flex-start;align-items:center;gap:12px;}
.feature-console .caption-copy {min-width:0;}
.features .feature-console .caption-wave {scale:.66;transform-origin:center;}
.features[data-wave-position="inline"] .feature-console .caption-wave {flex-basis:38px;}
/* In the split arrangement, the prompt and title sit above the tools. */
.features[data-feature-layout="tabs"] .feature-console { grid-template-columns:minmax(0,1fr); grid-template-areas:"tools" "identity" "voice"; gap:7px; }
.features[data-feature-layout="tabs"] .feature-identity { text-align:center; }
.features[data-feature-layout="tabs"] .feature-console .caption-bubble { justify-content:center; }
@media (max-width:700px), (max-width:900px) and (orientation:portrait), (max-width:950px) and (max-height:500px) and (orientation:landscape) {
  .features .device-world { overflow:clip; }
  .features .feature-description { font-size:16px; line-height:1.35; text-wrap:balance; }
  .features[data-feature-layout] .feature-console {
    inline-size:min(540px,calc(100% - 24px)); padding:8px 12px 12px;
    grid-template:"prev identity next" auto "voice voice voice" auto "tools tools tools" auto / 44px minmax(0,1fr) 44px;
    gap:8px 4px; border-radius:22px;
  }
  .features[data-feature-layout] .feature-step { position:static; translate:none; }
  .features .feature-step[data-step="-1"] { grid-area:prev; }
  .features .feature-step[data-step="1"] { grid-area:next; }
  .features[data-feature-layout] .feature-identity {
    text-align:center; font-size:19px; text-wrap:balance;
  }
  .features[data-feature-layout] .feature-console .feature-caption { padding:1px 2px 3px; border:0; }
  .features[data-feature-layout] .feature-console .caption-bubble { font-size:16px; line-height:1.4; }
  .features[data-wave-position="inline"] .feature-console .caption-bubble { display:flex; align-items:center; gap:7px; }
  .features[data-wave-position="inline"] .feature-console .caption-wave { flex:0 0 24px; width:24px; margin:0; }
  .features[data-feature-layout] .feature-console .feature-dock {
    justify-content:flex-start; gap:clamp(2px,calc(10vw - 36px),8px);
    overflow-x:auto; overscroll-behavior-x:contain; padding:7px 0 2px; border:0; border-top:1px solid #61536d29;
    scrollbar-width:thin; scrollbar-color:#67516a55 transparent;
  }
  .features[data-feature-layout] .feature-console .feature-tab {
    width:44px; height:44px;
  }
  .feature-dock .feature-tab:first-child { margin-inline-start:auto; }
  .feature-dock .feature-tab:last-child { margin-inline-end:auto; }
  .features .feature-console .tab-icon { width:22px; height:22px; }
  .features[data-mobile-device="tabs"] .feature-console {
    grid-template-areas:"tools tools tools" "prev identity next" "voice voice voice";
    background:linear-gradient(150deg,#fdfaf5f0,#f7f3fff0);
  }
  .features[data-mobile-device="tabs"] .feature-console .feature-dock {
    border:0; border-bottom:1px solid #61536d29; padding:2px 0 7px;
  }
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) {
  .features .device-world { width:53%; }
  .features .feature-description { left:26.5%; width:50%; min-height:2lh; align-items:end; }
  .features[data-feature-layout] .feature-console { left:76.5%; width:calc(47% - 16px); }
}
@media (max-width:700px) and (max-height:659px) and (orientation:portrait) {
  .features .feature-description { width: calc(100% - 88px); }
}
