/* Installation tutorial. Brand red on the existing dark page. Phone pictures sit in the steps. */
.tut [id] { scroll-margin-top: 92px; }
.tut-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 440px; margin: 0 0 1.1rem; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.tut-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.tut-switch a:hover { color: #fff; }
.tut-switch a[aria-current="true"] { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255,31,46,.32); }
.tut-switch a:focus-visible, .tut-toc a:focus-visible, .tut-tab:focus-visible { outline: 3px solid rgba(255,31,46,.55); outline-offset: 2px; }
.tut-ico { flex: 0 0 auto; display: block; }

.tut-toc { margin: .2rem 0 1.3rem; }
.tut-toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tut-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(18,23,35,.9); color: var(--text); font-size: .95rem; font-weight: 650; text-decoration: none; }
.tut-toc a:hover { border-color: var(--brand); color: #fff; }

.tut-card { margin: 0 0 16px; padding: 20px 16px; border-radius: 20px; background: rgba(18,23,35,.92); border: 1px solid var(--border); }
.tut-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text); }
.tut-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.tut-lead { margin: -4px 0 16px; color: var(--text-2); }
.tut-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }

.tut-before, .tut-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tut-before li, .tut-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.tut-before h3 { margin: 0 0 4px; }
.tut-before p, .tut-list p { margin: 0; }
.tut-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: #fff; font-weight: 800; }

.tut-flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tut-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 14px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,31,46,.08), rgba(10,13,21,.35)); border: 1px solid rgba(255,31,46,.16); }
.tut-step__head { display: flex; gap: 12px; align-items: flex-start; }
.tut-step__n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; box-shadow: 0 4px 12px rgba(255,31,46,.35); }
.tut-step__head p { margin: 4px 0 0; color: var(--text); font-size: 1.02rem; line-height: 1.45; }
.tut-step strong { color: #fff; }
.tut-note { margin: 0 0 0 48px; color: var(--text-3); font-size: .94rem; line-height: 1.45; }
.tut-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: auto; }
.tut-shot { margin: 0; max-width: 230px; }
.tut-shot img { display: block; width: 100%; height: auto; border-radius: 28px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.tut-shot figcaption { margin-top: 8px; text-align: center; color: var(--text-3); font-size: .82rem; line-height: 1.35; }

.tut-manual { display: grid; gap: 18px; align-items: center; }
.tut-manual p, .tut-manual li { color: var(--text-2); }
.tut-manual ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.tut-codes { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.tut-codes li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }

.tut-warn { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 16px; border: 2px solid var(--brand); background: rgba(255,31,46,.1); }
.tut-warn strong { display: block; margin-bottom: 4px; color: #fff; }
.tut-warn p { margin: 0; color: #ffd0d4; }

.tut-brands { margin-top: 4px; }
.tut-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tut-tab { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text); font-weight: 700; text-decoration: none; }
.tut-tab:last-child { grid-column: 1 / -1; }
.tut-tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--brand); }
.tut-tab:hover { border-color: var(--brand); color: #fff; }
.tut-panel { margin-top: 16px; }
.tut-panel h2 { margin: 0 0 8px; font-size: 1.35rem; }
.tut-kicker { margin: 0 0 12px; color: var(--text-3); }

html.tut-js [data-tutorial][data-os="ios"] [data-os-section="android"],
html.tut-js [data-tutorial][data-os="android"] [data-os-section="ios"] { display: none !important; }
html.tut-js [data-tutorial][data-brand="samsung"] [data-brand-panel]:not([data-brand-panel="samsung"]),
html.tut-js [data-tutorial][data-brand="pixel"] [data-brand-panel]:not([data-brand-panel="pixel"]),
html.tut-js [data-tutorial][data-brand="huawei"] [data-brand-panel]:not([data-brand-panel="huawei"]),
html.tut-js [data-tutorial][data-brand="xiaomi"] [data-brand-panel]:not([data-brand-panel="xiaomi"]),
html.tut-js [data-tutorial][data-brand="other"] [data-brand-panel]:not([data-brand-panel="other"]) { display: none !important; }

.tut-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tut-links a { color: #fff; font-weight: 700; }
.tut a { color: #fff; }
.tut a:hover { color: var(--brand); }

@media (min-width: 720px) {
  .tut-card { padding: 26px 24px; }
  .tut-before { grid-template-columns: 1fr 1fr; gap: 18px 22px; }
  .tut-flow { grid-template-columns: 1fr 1fr; }
  .tut-step--pair { grid-column: 1 / -1; }
  .tut-manual { grid-template-columns: minmax(0,1fr) 230px; }
  .tut-tabs { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .tut-tab { justify-content: center; text-align: center; }
  .tut-tab:last-child { grid-column: auto; }
}
@media (min-width: 1100px) {
  .tut-flow { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 719px) {
  .tut-note { margin-left: 0; }
}
