.inst { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.inst__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 9, .45); opacity: 0; transition: opacity .2s; }
.inst.is-open .inst__backdrop { opacity: 1; }

.inst__sheet {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100% - 24px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 10px max(18px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.inst.is-open .inst__sheet { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .inst__backdrop, .inst__sheet { transition: none; }
}

.inst__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; }
.inst__head { display: flex; align-items: center; gap: 12px; }
.inst__logo { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.inst__titles { flex: 1; min-width: 0; }
.inst__titles h2 { font-size: 17px; font-weight: 800; }
.inst__titles p { font-size: 12.5px; color: var(--ink-3); }
.inst__x {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.inst__x:hover { background: var(--panel-3); color: var(--ink); }

.inst__tabs { display: flex; gap: 6px; padding: 4px; border-radius: 15px; background: var(--bg); }
.inst__seg {
  flex: 1; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700;
}
.inst__seg[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.inst__pane { display: flex; flex-direction: column; gap: 12px; }
.inst__lead { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.inst__go {
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 15px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 800;
}
.inst__go:active { transform: translateY(1px); }
.inst__hint { font-size: 12px; color: var(--ink-3); border-radius: 8px; }
.inst__hint.is-flash { animation: inst-flash 1.2s ease-out; color: var(--ink); }
@keyframes inst-flash { 0%, 40% { background: var(--accent-soft); } 100% { background: transparent; } }

.inst__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inst__step { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); font-size: 14px; line-height: 1.8; }
.inst__num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); font-weight: 800; }
.inst__pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; background: var(--panel-3); font-weight: 700; vertical-align: middle; }
.inst__pill svg { width: 15px; height: 15px; }
.inst__arrow { display: flex; justify-content: center; color: var(--accent); }
.inst__arrow svg { width: 26px; height: 26px; }

.inst__later {
  min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink-3); font-size: 14px; font-weight: 700;
}
.inst__later:hover { background: var(--panel-2); color: var(--ink); }
