.avatar-button--guide {
  width: auto !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding-inline: 12px !important;
  border-color: #151716 !important;
  background: #d9ff43 !important;
  color: #151716 !important;
}

.analyst-stage {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.analyst-guide {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #151716;
  background: #f2efe7;
  color: #151716;
  max-height: min(340px, 40dvh);
  overflow-y: auto;
}

.analyst-guide[hidden] { display: none !important; }
.analyst-guide__rail { display: flex; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid #151716; background: #151716; color: #d9ff43; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.analyst-guide__body { min-width: 0; padding: 20px 22px 16px; }
.analyst-guide__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.analyst-guide__header p { margin: 0 0 4px; color: #005eff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.analyst-guide__header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.035em; }
.analyst-guide__header-actions { display: flex; align-items: center; gap: 10px; }
.analyst-guide__header-actions a { color: #505650; font-size: 10px; font-weight: 800; text-underline-offset: 3px; white-space: nowrap; }
.analyst-guide__header-actions button { width: 44px; height: 44px; border: 1px solid #151716; background: transparent; color: inherit; cursor: pointer; }
.analyst-guide__dek { max-width: 88ch; margin: 9px 0 16px; color: #5e635e; font-size: 11px; line-height: 1.55; }
.analyst-guide__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid #151716; border-left: 1px solid #151716; list-style: none; }
.analyst-guide__steps li { position: relative; min-height: 112px; display: grid; grid-template-columns: 32px 1fr; align-content: start; gap: 4px 8px; padding: 12px; border-right: 1px solid #151716; border-bottom: 1px solid #151716; background: rgba(255, 255, 255, .42); }
.analyst-guide__steps li > span { grid-row: 1 / 3; color: #005eff; font-family: Georgia, serif; font-size: 18px; }
.analyst-guide__steps strong { display: block; font-family: Georgia, serif; font-size: 14px; }
.analyst-guide__steps small { display: block; margin-top: 4px; color: #676c67; font-size: 9px; line-height: 1.45; }
.analyst-guide__steps b { grid-column: 2; align-self: end; color: #565b60; font-size: 12px; letter-spacing: .04em; }
.analyst-guide__steps li[data-complete="true"] { background: #d9ff43; }
.analyst-guide__steps li[data-complete="true"] b { color: #164d21; }
.analyst-guide__steps li[data-current="true"] { box-shadow: inset 0 -5px 0 #005eff; background: #fff; }
.analyst-guide__action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.analyst-guide__action > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.analyst-guide__action span { display: inline-flex; min-width: 46px; justify-content: center; padding: 5px 7px; background: #151716; color: #fff; font-size: 9px; font-weight: 900; }
.analyst-guide__action p { margin: 0; color: #5e635e; font-size: 10px; line-height: 1.45; }
.analyst-guide__action button { min-height: 44px; padding: 8px 15px; border: 1px solid #005eff; background: #005eff; color: #fff; font-size: 10px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.analyst-guide__action button:disabled { border-color: #9ca4a0; background: #9ca4a0; cursor: wait; }
.analyst-guide__boundary { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid #c7c1b6; color: #67382f; font-size: 9px; line-height: 1.5; }

@media (max-width: 860px) {
  .analyst-guide { grid-template-columns: 1fr; }
  .analyst-guide__rail { display: none; }
  .analyst-guide__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .avatar-button--guide { padding-inline: 10px !important; }
  .analyst-guide { max-height: min(64dvh, 540px); overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  .analyst-guide__body { display: flex; padding: 16px 12px 13px; flex-direction: column; }
  .analyst-guide__header { align-items: stretch; flex-direction: column; gap: 10px; }
  .analyst-guide__header-actions { justify-content: space-between; }
  .analyst-guide__dek { order: 1; margin-bottom: 12px; }
  .analyst-guide__action { order: 2; align-items: stretch; flex-direction: column; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid #c7c1b6; }
  .analyst-guide__steps { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analyst-guide__steps li { min-height: 104px; padding: 9px; grid-template-columns: 25px 1fr; }
  .analyst-guide__boundary { order: 4; }
  .analyst-guide__action > div { align-items: flex-start; }
  .analyst-guide__action button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .analyst-guide *, .analyst-guide *::before, .analyst-guide *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
