/* ============================================================
   Flash Sim — tutorial pages: tutorial-instalare-esim.php (chooser), tutorial-instalare-esim-iphone.php,
   tutorial-instalare-esim-android.php, tutorial-apn.php
   Mobile-first (drivers read them on the phone while installing): big numbered steps, one idea per step,
   tap targets ≥ 44 px. Colours from style.css tokens (brand blue #1B5BDB).
   APN page phone switch: html.tut-js (set inline by the page) + main[data-os] hide the other phone's
   [data-os-section]; Android brand tabs: html.tut-js + [data-brands][data-brand] hide the other brands' panels.
   Without JavaScript every section stays visible.
   Second half of the file: the phone-screen illustrations (.tm, includes/tutorial_mockups.php).
   ============================================================ */

.tut {
  --tut-blue: var(--color-accent, #1B5BDB);
  --tut-navy: var(--color-primary, #004C93);
  --tut-ink: var(--color-text, #0F172A);
  --tut-muted: #475569;
  --tut-line: rgba(15, 23, 42, 0.10);
  --tut-soft: #F3F7FF;
  --tut-surface: var(--color-surface, #F8FAFC);
  --tut-radius: 20px;
  --tut-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  display: block;
  color: var(--tut-ink);
  padding-bottom: 56px;
  font-size: 1rem;
}
.tut *, .tut *::before, .tut *::after { box-sizing: border-box; }
.tut [id] { scroll-margin-top: calc(var(--nav-height, 72px) + 12px); }
.tut-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.tut--wide .tut-wrap { max-width: 1120px; }
.tut-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.tut-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phone switch: hide the other phone (only when JavaScript runs) */
.tut-js .tut[data-os="ios"] [data-os-section="android"],
.tut-js .tut[data-os="android"] [data-os-section="ios"] { display: none !important; }

/* ---------------------------------------------------------------- hero */
.tut-hero {
  background: linear-gradient(180deg, #EAF1FF 0%, #F5F8FF 55%, rgba(255, 255, 255, 0) 100%);
  padding: 26px 0 8px;
}
.tut-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 12px; padding: 5px 12px;
  border-radius: 999px; background: rgba(27, 91, 219, 0.10); color: var(--tut-blue);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
  /* no text-transform: the kicker holds product names (iOS, iPhone, eSIM) that must keep their casing */
}
.tut-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em;
  color: var(--tut-ink);
}
.tut-lead { margin: 0 0 18px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.55; color: var(--tut-muted); }

/* 2-step journey: install → APN */
.tut-journey { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tut-journey li { min-width: 0; }
.tut-journey__item {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 60px; padding: 10px 12px;
  border: 1.5px solid var(--tut-line); border-radius: 16px; background: #fff;
  color: var(--tut-ink); font-size: 0.9375rem; font-weight: 700; line-height: 1.25; text-decoration: none;
}
a.tut-journey__item { transition: border-color .15s ease, box-shadow .15s ease; }
a.tut-journey__item:hover { border-color: var(--tut-blue); color: var(--tut-ink); }
a.tut-journey__item:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 2px; }
.tut-journey__item.is-current { border-color: var(--tut-blue); box-shadow: 0 0 0 3px rgba(27, 91, 219, 0.12); }
.tut-journey__n {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-surface-2, #F1F5F9); color: var(--tut-muted); font-size: 0.9375rem; font-weight: 800;
}
.tut-journey__item.is-current .tut-journey__n { background: var(--tut-blue); color: #fff; }
.tut-journey__txt { min-width: 0; flex: 1 1 auto; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.tut-nobr { white-space: nowrap; }
.tut-journey__txt small {
  display: block; margin-bottom: 1px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tut-muted);
}
.tut-journey__go { color: var(--tut-blue); }
.tut-journey a.tut-journey__item small { color: var(--tut-blue); }
@media (max-width: 479px) {
  .tut-journey__item { gap: 8px; padding: 10px; }
  .tut-journey__n { width: 28px; height: 28px; font-size: 0.875rem; }
  .tut-journey__go { display: none; }
}
/* Very narrow phones (320 px): one box per line, so long words ("Nustatykite", "Zainstaluj") never break mid-word */
@media (max-width: 359px) {
  .tut-journey { grid-template-columns: 1fr; }
  .tut-journey__item { min-height: 52px; }
}

/* ---------------------------------------------------------------- phone switch */
.tut-switch { margin: 18px 0 4px; }
.tut-switch__label { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 700; color: var(--tut-ink); }
.tut-switch__opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px;
  border-radius: 18px; background: var(--color-surface-2, #F1F5F9); border: 1px solid var(--tut-line);
}
.tut-switch__opt {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 8px 10px;
  border-radius: 14px; color: var(--tut-ink); font-size: 1.0625rem; font-weight: 700; text-decoration: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tut-switch__opt:hover { color: var(--tut-blue); }
.tut-switch__opt:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 2px; }
.tut-switch__opt[aria-current="true"], .tut-switch__opt[aria-current="page"] {
  background: #fff; color: var(--tut-blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 0 0 2px var(--tut-blue);
}

/* ---------------------------------------------------------------- cards & headings */
.tut-card {
  margin: 16px 0; padding: 20px 16px;
  background: #fff; border: 1px solid var(--tut-line); border-radius: var(--tut-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.tut-h2 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 1.3125rem; font-weight: 800; line-height: 1.25; color: var(--tut-ink);
}
.tut-h2--flush { margin: 0; }
.tut-h2__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; background: rgba(27, 91, 219, 0.10); color: var(--tut-blue);
}
.tut-h2__icon--green { background: #ECFDF5; color: #059669; }
.tut-h2__icon--amber { background: #FFF7ED; color: #C2410C; }
.tut-h3 { margin: 26px 0 14px; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: var(--tut-navy); }
.tut-h3--sm { margin: 0 0 6px; font-size: 1.0625rem; }
.tut-h3--steps { margin-top: 0; }
.tut-small {
  display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0;
  font-size: 0.875rem; line-height: 1.5; color: var(--tut-muted);
}
.tut-small .tut-ico { margin-top: 2px; }

/* ---------------------------------------------------------------- checklists */
.tut-checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tut-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.55; }
.tut-checklist li > span:last-child { padding-top: 5px; min-width: 0; overflow-wrap: anywhere; }
.tut-checklist__ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: #ECFDF5; color: #059669;
}
.tut-checklist__ico--blue { background: rgba(27, 91, 219, 0.09); color: var(--tut-blue); }
.tut-checklist a { color: var(--tut-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- numbered steps */
.tut-steps { margin: 0; padding: 0; list-style: none; counter-reset: tut-step; }
.tut-step { position: relative; min-height: 44px; padding: 0 0 20px 54px; counter-increment: tut-step; }
.tut-step::before {
  content: counter(tut-step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tut-blue); color: #fff; font-size: 1.125rem; font-weight: 800;
  box-shadow: 0 2px 8px rgba(27, 91, 219, 0.30);
}
.tut-step::after {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px;
  border-radius: 2px; background: rgba(27, 91, 219, 0.16);
}
.tut-step:last-child { padding-bottom: 2px; }
.tut-step:last-child::after { display: none; }
.tut-step__text { margin: 0; padding-top: 7px; font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere; }
.tut-step__text strong { font-weight: 700; color: var(--tut-navy); }
.tut-step__alt {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: 12px; background: var(--tut-surface); border: 1px solid var(--tut-line);
  font-size: 0.9375rem; line-height: 1.5; color: var(--tut-muted); overflow-wrap: anywhere;
}
.tut-step__alt strong { color: var(--tut-ink); }

/* Values the customer types */
.tut-val {
  display: inline; padding: 1px 7px;
  border: 1px solid rgba(27, 91, 219, 0.22); border-radius: 8px; background: #EEF4FF; color: var(--tut-navy);
  font-family: var(--tut-mono); font-size: 0.95em; font-weight: 700; font-style: normal;
  overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.tut-val--empty {
  border-style: dashed; border-color: rgba(15, 23, 42, 0.25); background: transparent; color: var(--tut-muted);
  font-family: inherit; font-weight: 600; font-style: italic; -webkit-user-select: auto; user-select: auto;
}

/* Tip box (iPhone one-tap) */
.tut-tip {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 14px;
  border: 1px solid rgba(27, 91, 219, 0.18); border-radius: 14px; background: var(--tut-soft);
  font-size: 0.9375rem; line-height: 1.5;
}
.tut-tip p { margin: 0; }
.tut-tip__ico { flex: 0 0 auto; color: var(--tut-blue); padding-top: 1px; }
.tut-tip__title { display: block; margin-bottom: 2px; font-size: 1rem; }

/* ---------------------------------------------------------------- buttons */
.tut-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tut-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 14px 22px; border-radius: 999px;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tut-btn:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 3px; }
.tut-btn--primary { background: var(--tut-blue); color: #fff; box-shadow: 0 4px 14px rgba(27, 91, 219, 0.28); }
.tut-btn--primary:hover { background: #164BB8; color: #fff; }
.tut-btn--ghost { background: #fff; color: var(--tut-blue); border: 1.5px solid var(--tut-blue); }
.tut-btn--ghost:hover { background: var(--tut-soft); color: var(--tut-blue); }
.tut-btn--light { background: #fff; color: var(--tut-blue); box-shadow: 0 6px 18px rgba(8, 25, 70, 0.25); }
.tut-btn--light:hover { color: var(--tut-navy); transform: translateY(-1px); }

/* ---------------------------------------------------------------- next step (install → APN) */
.tut-next {
  margin: 20px 0; padding: 22px 18px; border-radius: var(--tut-radius); color: #fff;
  background: linear-gradient(135deg, #0E3A94 0%, #1B5BDB 58%, #3F7FF2 100%);
  box-shadow: 0 12px 30px rgba(27, 91, 219, 0.28);
}
.tut-next__kicker { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.tut-next__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: #fff; }
.tut-next__text { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.tut-next__apn { margin: 0 0 18px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.tut-next__apn code {
  padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; font-family: var(--tut-mono); font-size: 1rem; font-weight: 700;
}

/* ---------------------------------------------------------------- APN box */
.tut-apn {
  margin: 18px 0 8px; padding: 18px 14px;
  border: 2px solid var(--tut-blue); border-radius: var(--tut-radius); background: #fff;
  box-shadow: 0 10px 28px rgba(27, 91, 219, 0.12);
}
.tut-apn__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tut-apn__text { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--tut-muted); }
.tut-apn__list { display: grid; gap: 10px; margin: 0; }
.tut-apn__row { position: relative; padding: 10px 10px 12px 14px; border-radius: 14px; background: var(--tut-surface); border: 1px solid var(--tut-line); }
.tut-apn__row dt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 44px; margin: 0 0 2px; padding-right: 128px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tut-muted); }
.tut-apn__row dt small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.tut-apn__hint {
  flex: 0 0 100%; display: block; margin-top: 2px;
  font-size: 0.875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #334155;
}
.tut-apn__row dd { margin: 0; }
.tut-apn__row dd .tut-copy { position: absolute; top: 10px; right: 10px; }
.tut .tut-apn__value {
  padding: 0; border: 0; background: none; color: var(--tut-ink);
  font-size: 1.25rem; font-weight: 800; line-height: 1.3; overflow-wrap: break-word; word-break: normal;
}
.tut .tut-apn__value.tut-val--empty { font-size: 1.0625rem; font-weight: 600; color: var(--tut-muted); }
.tut-apn__plan { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--tut-navy); }
.tut-apn__plan .tut-ico { margin-top: 2px; }

/* Copy buttons (enabled by tutorials.js) */
.tut-copy {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 8px 14px;
  border: 1.5px solid rgba(27, 91, 219, 0.35); border-radius: 999px; background: #fff;
  color: var(--tut-blue); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tut-copy[hidden] { display: none; }
.tut-copy:hover { background: var(--tut-soft); border-color: var(--tut-blue); }
.tut-copy:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 2px; }
.tut-copy.is-done { background: #ECFDF5; border-color: #10B981; color: #047857; }
.tut-copy--sm { min-height: 40px; min-width: 40px; padding: 6px 10px; font-size: 0.875rem; }

/* Fields inside a step (APN form) */
.tut-fields { display: grid; gap: 8px; margin: 12px 0 0; }
.tut-fields__row {
  position: relative; padding: 8px 8px 10px 12px;
  border-radius: 12px; background: var(--tut-surface); border: 1px solid var(--tut-line);
}
.tut-fields__row dt { display: flex; align-items: center; min-height: 40px; padding-right: 110px; font-size: 0.8125rem; font-weight: 700; color: var(--tut-muted); }
.tut-fields__row dd { margin: 0; }
.tut-fields__row dd .tut-val { font-size: 1rem; overflow-wrap: break-word; word-break: normal; }
.tut-fields__row dd .tut-copy { position: absolute; top: 8px; right: 8px; }
.tut-fields__hint { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--tut-muted); }

/* ---------------------------------------------------------------- video */
.tut-apn-grid { display: block; }
.tut-video { margin: 0 0 22px; }
.tut-video__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: radial-gradient(120% 90% at 20% 10%, #2B63D9 0%, #0F2A5C 55%, #0A1834 100%);
}
.tut-video__player { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.tut-video__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut-video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 0 0 0 5px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.96); color: var(--tut-blue);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform .15s ease;
}
.tut-video__play[hidden] { display: none; }
.tut-video__play:hover, .tut-video__card:hover .tut-video__play { transform: translate(-50%, -50%) scale(1.06); }
.tut-video__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tut-video__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 0.9375rem; }
.tut-video__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tut-ink); }
.tut-video__title .tut-ico { color: var(--tut-blue); }
.tut-video__note {
  flex: 0 0 100%; padding: 8px 12px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A;
  font-size: 0.875rem; line-height: 1.45; color: #92400E;
}
.tut-video__open { display: inline-block; padding: 10px 0; line-height: 1.4; font-weight: 700; color: var(--tut-blue); text-decoration: none; }
.tut-video__open .tut-ico { display: inline; margin-right: 6px; vertical-align: -2px; }
.tut-video__open:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- done / trouble / help / back */
.tut-done {
  display: flex; align-items: flex-start; gap: 14px; margin: 20px 0 16px; padding: 18px 16px;
  border-radius: var(--tut-radius); background: #ECFDF5; border: 1px solid #A7F3D0;
}
.tut-done__ico { flex: 0 0 auto; color: #059669; padding-top: 1px; }
.tut-done p { margin: 6px 0 0; font-size: 1rem; line-height: 1.55; color: #065F46; }
.tut-help__problem, .tut-help__text { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.tut-help__problem { padding: 12px 14px; border-radius: 12px; background: #FFF7ED; border: 1px solid #FED7AA; }
.tut-help__problem strong { display: block; margin-bottom: 2px; color: #9A3412; }
.tut-help__text { color: var(--tut-muted); }
.tut-back { display: flex; flex-direction: column; gap: 12px; }
.tut-back p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 600px) {
  .tut-wrap { padding: 0 24px; }
  .tut-hero { padding: 40px 0 12px; }
  .tut-card { padding: 26px 28px; }
  .tut-apn { padding: 24px 26px; }
  .tut-next { padding: 28px 30px; }
  .tut-btn { width: auto; }
  .tut-actions { flex-direction: row; flex-wrap: wrap; }
  .tut-switch__opts { max-width: 440px; }
  .tut-journey { max-width: 560px; }
  .tut-apn__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tut-apn__row--name { grid-column: 1 / -1; }
  .tut-back { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 960px) {
  .tut--wide .tut-apn-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .tut--wide .tut-apn-grid--solo { grid-template-columns: minmax(0, 720px); }
  .tut--wide .tut-apn-grid__media { position: sticky; top: calc(var(--nav-height, 72px) + 16px); }
  .tut--wide .tut-video { margin-bottom: 0; }
  .tut--wide .tut-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
  .tut--wide .tut-two > .tut-card { margin: 0; }
  .tut--wide .tut-two + .tut-card { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-btn, .tut-switch__opt, .tut-copy, .tut-video__play, a.tut-journey__item { transition: none; }
}

@media print {
  .tut-switch, .tut-copy, .tut-video, .tut-actions, .tut-journey { display: none !important; }
  .tut-js .tut[data-os] [data-os-section] { display: block !important; }
  .tut-card, .tut-apn, .tut-next { box-shadow: none; break-inside: avoid; }
  .tut-next { background: none; color: var(--tut-ink); border: 1px solid #999; }
  .tut-next__title, .tut-next__text, .tut-next__kicker, .tut-next__apn { color: var(--tut-ink); }
}

/* ================================================================================================================
   Install tutorials (iPhone / Android / chooser): table of contents, before-you-start, numbered steps with
   illustrations, manual entry, roaming warning, APN next step, brand tabs, notes, troubleshooting.
   ================================================================================================================ */
.tut-kbd {
  display: inline-block; padding: 0 7px; border-radius: 7px; border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.12); font-family: var(--tut-mono); font-weight: 800; color: var(--tut-ink);
  white-space: nowrap;
}
.tut-small--center { justify-content: center; text-align: center; max-width: 720px; margin: 26px auto 0; }
.tut-h3--flush { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.tut-h3--flush .tut-ico { color: var(--tut-blue); }

/* Table of contents */
.tut-toc { margin: 14px 0 4px; }
.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: 1.5px solid var(--tut-line); border-radius: 999px; background: #fff;
  color: var(--tut-ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.tut-toc a:hover, .tut-toc a:focus-visible { border-color: var(--tut-blue); color: var(--tut-blue); }
.tut-toc a:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.35); outline-offset: 2px; }

/* Before you start */
.tut-before__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tut-before__item { display: flex; align-items: flex-start; gap: 12px; }
.tut-before__ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: #ECFDF5; color: #059669;
}
.tut-before__t { margin: 1px 0 3px; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--tut-ink); }
.tut-before__item p { margin: 0; font-size: 1rem; line-height: 1.55; color: #334155; overflow-wrap: anywhere; }

/* A section card with a lead */
.tut-sec__lead { margin: -6px 0 16px; font-size: 1rem; line-height: 1.55; color: var(--tut-muted); }
.tut-sec__lead strong { color: var(--tut-blue); }
.tut-sec .tut-tip { margin-bottom: 18px; }

/* Numbered steps with illustrations */
.tut-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tut-flow__step {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 12px 20px;
  border: 1px solid rgba(27, 91, 219, 0.12); border-radius: 18px;
  background: linear-gradient(180deg, #F6F9FF 0%, #EEF3FC 100%);
}
.tut-flow__head { display: flex; align-items: flex-start; gap: 12px; }
.tut-flow__n {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--tut-blue); color: #fff;
  font-size: 1.0625rem; font-weight: 800; box-shadow: 0 2px 8px rgba(27, 91, 219, 0.30);
}
.tut-flow__text { margin: 0; padding-top: 5px; font-size: 1.0625rem; line-height: 1.5; color: var(--tut-ink); overflow-wrap: anywhere; }
.tut-flow__text strong { font-weight: 800; color: var(--tut-navy); }
.tut-flow__note {
  display: flex; align-items: flex-start; gap: 7px; margin: 0 0 0 48px;
  font-size: 0.9375rem; line-height: 1.5; color: var(--tut-muted); overflow-wrap: anywhere;
}
.tut-flow__note .tut-ico { margin-top: 3px; color: var(--tut-blue); }
.tut-flow__note strong { color: var(--tut-ink); }
.tut-flow__shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: auto; padding-top: 10px; }

/* Manual entry */
.tut-manual__grid { display: grid; gap: 20px; }
.tut-manual__txt > p { margin: 0 0 12px; font-size: 1rem; line-height: 1.55; color: #334155; }
.tut-manual__codes { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tut-manual__codes li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 12px;
  border-radius: 12px; background: var(--tut-surface); border: 1px solid var(--tut-line); font-size: 0.9375rem;
}
.tut-manual__codes strong { color: var(--tut-navy); }
.tut-manual__codes span { color: var(--tut-muted); }
.tut-manual__steps { margin: 0 0 4px; padding: 0 0 0 24px; list-style: decimal; display: grid; gap: 8px; font-size: 1rem; line-height: 1.55; }
.tut-manual__steps li::marker { color: var(--tut-blue); font-weight: 800; }
.tut-manual__steps strong { color: var(--tut-navy); }
.tut-manual__shot { display: flex; justify-content: center; }

/* Roaming warning (unmissable) */
.tut-warn {
  display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 0; padding: 16px 14px;
  border: 2px solid #DC2626; border-radius: 16px; background: #FEF2F2;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.12);
}
.tut-warn__ico { flex: 0 0 auto; color: #DC2626; padding-top: 1px; }
.tut-warn__title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 800; line-height: 1.35; color: #991B1B; overflow-wrap: anywhere; }
.tut-warn__text { margin: 6px 0 0; font-size: 1rem; line-height: 1.55; color: #7F1D1D; overflow-wrap: anywhere; }
.tut-warn__text strong { color: #7F1D1D; }

/* Next step: APN values */
.tut-next__vals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 18px; }
.tut-next__vals div { min-width: 0; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); }
.tut-next__vals dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.tut-next__vals dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.tut-next__vals code { font-family: var(--tut-mono); font-size: 1.0625rem; font-weight: 800; color: #fff; }
.tut-next__vals em { font-style: italic; color: rgba(255, 255, 255, 0.9); }

/* Android brand tabs */
.tut-brands { margin: 22px 0 0; }
.tut-brands__title { margin: 0 0 12px; font-size: 1.3125rem; font-weight: 800; line-height: 1.25; color: var(--tut-ink); }
.tut-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tut-tab {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 8px 12px;
  border: 1.5px solid var(--tut-line); border-radius: 14px; background: #fff;
  color: var(--tut-ink); font-size: 1rem; font-weight: 700; line-height: 1.25; text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.tut-tab:last-child { grid-column: 1 / -1; }
.tut-tab span { min-width: 0; overflow-wrap: anywhere; }
.tut-tab .tut-ico { color: var(--tut-muted); }
.tut-tab:hover { border-color: var(--tut-blue); color: var(--tut-blue); }
.tut-tab:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 2px; }
.tut-tab[aria-selected="true"] { border-color: var(--tut-blue); background: #EEF4FF; color: var(--tut-blue); box-shadow: inset 0 0 0 1px var(--tut-blue); }
.tut-tab[aria-selected="true"] .tut-ico { color: var(--tut-blue); }
.tut-brands__hint { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--tut-muted); }
.tut-brands__hint .tut-ico { margin-top: 2px; }
.tut-panel { margin-top: 6px; }
.tut-panel:focus { outline: none; }
.tut-panel + .tut-panel { margin-top: 34px; padding-top: 22px; border-top: 3px dashed rgba(27, 91, 219, 0.18); }
.tut-js [data-brands] .tut-panel + .tut-panel { margin-top: 6px; padding-top: 0; border-top: 0; }
.tut-js [data-brands][data-brand="samsung"] [data-brand-panel]:not([data-brand-panel="samsung"]),
.tut-js [data-brands][data-brand="pixel"] [data-brand-panel]:not([data-brand-panel="pixel"]),
.tut-js [data-brands][data-brand="huawei"] [data-brand-panel]:not([data-brand-panel="huawei"]),
.tut-js [data-brands][data-brand="xiaomi"] [data-brand-panel]:not([data-brand-panel="xiaomi"]),
.tut-js [data-brands][data-brand="other"] [data-brand-panel]:not([data-brand-panel="other"]) { display: none; }
.tut-brandnotes { background: var(--tut-soft); border-color: rgba(27, 91, 219, 0.16); }

/* Troubleshooting (install pages) */
.tut-trouble__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tut-trouble__list li { display: flex; align-items: flex-start; gap: 12px; }
.tut-trouble__t { margin: 3px 0 4px; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--tut-ink); }
.tut-trouble__list p { margin: 0; font-size: 1rem; line-height: 1.55; color: #334155; overflow-wrap: anywhere; }
.tut-trouble__list a { color: var(--tut-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tut-help__mail { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.9375rem; color: var(--tut-muted); overflow-wrap: anywhere; }
/* Pre-launch e-mail button: the address stays in one piece (own line when needed; breaks only if wider than the button) */
.tut-btn--mail > span { min-width: 0; }
.tut-btn__addr { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 359px) { .tut-btn--mail { gap: 8px; padding-left: 14px; padding-right: 14px; font-size: 0.9375rem; } }
.tut-help__mail a { color: var(--tut-navy); font-weight: 700; text-decoration: underline; }

/* Chooser (tutorial-instalare-esim.php) */
.tut-choose { margin: 22px 0 8px; }
.tut-choose .tut-h2 { justify-content: center; text-align: center; }
.tut-choose__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tut-choice {
  display: flex; align-items: stretch; gap: 14px; min-width: 0; padding: 16px 14px 0;
  border: 2px solid var(--tut-line); border-radius: 22px; background: #fff; color: var(--tut-ink); text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tut-choice:hover { border-color: var(--tut-blue); color: var(--tut-ink); box-shadow: 0 14px 32px rgba(27, 91, 219, 0.16); transform: translateY(-2px); }
.tut-choice:focus-visible { outline: 3px solid rgba(27, 91, 219, 0.45); outline-offset: 3px; }
.tut-choice__art {
  flex: 0 0 auto; display: block; width: 116px; height: 200px; overflow: hidden; align-self: flex-end; padding: 4px 4px 0;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.tut-choice__art .tm { --tm-w: 108px; }
.tut-choice__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 0 18px; }
.tut-choice__kicker { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.01em; color: var(--tut-blue); } /* iOS / iPhone keep their casing */
.tut-choice__title { display: flex; align-items: center; gap: 8px; font-size: 1.625rem; font-weight: 800; line-height: 1.15; }
.tut-choice__title .tut-ico { color: var(--tut-navy); }
.tut-choice__text { font-size: 0.9375rem; line-height: 1.5; color: var(--tut-muted); overflow-wrap: anywhere; }
.tut-choice__btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  color: var(--tut-blue); font-weight: 800; font-size: 1rem; overflow-wrap: anywhere;
}
.tut-back .tut-h3--flush + p { margin: 0; }

@media (min-width: 600px) {
  .tut-flow__step { padding: 18px 16px 22px; }
  .tut-warn { padding: 18px 20px; }
  .tut-next__vals { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .tut-before__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}
@media (min-width: 680px) {
  .tut-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tut-flow__step--pair { grid-column: span 2; }
  .tut-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tut-tab:last-child { grid-column: auto; }
  .tut-choose__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .tut-choice { padding: 20px 20px 0; gap: 18px; }
  .tut-choice__art { width: 140px; height: 236px; }
  .tut-choice__art .tm { --tm-w: 132px; }
}
@media (min-width: 880px) {
  .tut-manual__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
}
@media (min-width: 1040px) {
  .tut-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tut-tab { justify-content: center; text-align: center; }
}
@media (max-width: 599px) {
  .tut-sec { padding: 18px 12px; }
  .tut-sec > .tut-h2, .tut-sec > .tut-sec__lead { padding: 0 4px; }
}

/* ================================================================================================================
   Phone-screen illustrations (.tm) — includes/tutorial_mockups.php. Everything inside is sized in em from the phone
   width (--tm-w), so an illustration scales as one piece and stays crisp at any DPI. Platform looks:
   .tm--ios (grouped inset lists, SF-like type), .tm--oneui (Samsung: big rounded cards, blue accents),
   .tm--pixel (Material: plain lists, tinted round icons, main switch bar), .tm--emui (Huawei), .tm--hyperos (Xiaomi).
   The element to tap: brand-blue outline (.is-hl) + tap indicator (.tm__tap).
   ================================================================================================================ */
.tm {
  --tm-w: 252px;
  --tm-hl: #1B5BDB;
  --tm-bg: #F2F2F7; --tm-card: #fff; --tm-text: #000; --tm-sub: #8A8A8E; --tm-sep: rgba(60, 60, 67, 0.16);
  --tm-accent: #007AFF; --tm-on: #34C759; --tm-sk: rgba(60, 60, 67, 0.13);
  --tm-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tm-frame: #0b0b0d; --tm-rim: #a3a6ad; --tm-r: 3.05em; --tm-sr: 2.62em;
  position: relative; display: block; flex: 0 0 auto; width: var(--tm-w); max-width: 100%; margin: 0;
  font-family: var(--tm-font); font-size: calc(var(--tm-w) * 0.045); font-weight: 400; line-height: 1.22; letter-spacing: -0.005em;
  color: var(--tm-text); text-align: left; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
}
.tm *, .tm *::before, .tm *::after { box-sizing: border-box; }
:where(.tm) span, :where(.tm) i { display: block; font-style: normal; }
.tm-i { display: block; width: 1em; height: 1em; }

/* Device and screen */
.tm__device {
  position: relative; padding: 0.44em; border-radius: var(--tm-r); background: var(--tm-frame);
  box-shadow: 0 0 0 0.15em var(--tm-rim), 0 0 0 0.24em rgba(0, 0, 0, 0.28),
              0 1.9em 2.6em -1.3em rgba(15, 23, 42, 0.55), 0 0.8em 1.4em -0.8em rgba(15, 23, 42, 0.30);
}
.tm__device::before, .tm__device::after { content: ''; position: absolute; width: 0.2em; border-radius: 0.1em; background: var(--tm-rim); }
.tm__device::before { right: -0.36em; top: 24%; height: 11%; }
.tm__device::after { left: -0.36em; top: 17%; height: 5.5%; box-shadow: 0 2.5em 0 var(--tm-rim), 0 4.6em 0 var(--tm-rim); }
.tm__screen {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 18.6; overflow: hidden;
  border-radius: var(--tm-sr); background: var(--tm-bg); isolation: isolate;
}
.tm__glare {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 30%);
}
.tm__homebar {
  position: absolute; left: 50%; bottom: 0.42em; z-index: 8; width: 36%; height: 0.3em;
  transform: translateX(-50%); border-radius: 1em; background: rgba(0, 0, 0, 0.82);
}

/* Status bar */
.tm__status {
  position: relative; z-index: 6; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  height: 2.9em; padding: 0.3em 1.75em 0 2.1em; font-size: 0.95em; font-weight: 600; color: var(--tm-text);
}
.tm__time { letter-spacing: 0; }
.tm__island { position: absolute; left: 50%; top: 0.62em; width: 33%; height: 1.62em; transform: translateX(-50%); border-radius: 1em; background: #000; }
.tm__punch { position: absolute; left: 50%; top: 0.5em; width: 1.05em; height: 1.05em; margin-left: -0.525em; border-radius: 50%; background: #0b0b0d; box-shadow: inset 0 0 0 0.2em #22252b; }
.tm__sicons { display: flex; align-items: center; gap: 0.3em; }
.tm-s { display: block; width: auto; height: 0.74em; fill: currentColor; }
.tm-s--sig { width: 1.1em; }
.tm-s--wifi { width: 1em; }
.tm-s--bat { width: 1.62em; height: 0.8em; }
.tm:not(.tm--ios) .tm__status { height: 2.2em; padding: 0.2em 1.25em 0 1.45em; font-size: 0.82em; font-weight: 500; letter-spacing: 0.01em; }
.tm:not(.tm--ios) .tm__homebar { width: 30%; height: 0.24em; background: rgba(0, 0, 0, 0.6); }

/* Top bar, large title, search */
.tm__bar { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; min-height: 2.55em; padding: 0 0.55em; }
.tm__bar--empty { min-height: 1.3em; justify-content: flex-end; }
.tm__bar--root { min-height: 2.4em; justify-content: flex-end; padding: 0 0.9em; }
.tm__back { position: relative; display: flex; align-items: center; color: var(--tm-accent); }
.tm__back .tm-i { width: 1.45em; height: 1.45em; stroke-width: 2.4; }
.tm__back-l { white-space: nowrap; margin-left: -0.1em; }
/* Screen title: never cut — a long one ("Mobiliojo ryšio duomenų parinktys") wraps onto a second line, smaller */
.tm__title {
  position: absolute; left: 50%; top: 50%; max-width: 58%; transform: translate(-50%, -50%);
  min-width: 0; font-weight: 600; text-align: center; line-height: 1.12;
  overflow-wrap: anywhere; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.tm__title--long { max-width: 70%; font-size: 0.86em; }
.tm__bar-r { position: relative; margin-left: auto; color: var(--tm-accent); }
.tm__bar-r .tm-i { width: 1.3em; height: 1.3em; }
.tm__large { flex: 0 0 auto; padding: 0 0.9em 0.3em; font-size: 2.05em; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tm__search {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.42em; height: 2.05em; margin: 0 0.92em 0.85em; padding: 0 0.55em;
  border-radius: 0.62em; background: rgba(118, 118, 128, 0.12); color: #8A8A8E;
}
.tm__search .tm-i { flex: 0 0 auto; width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.tm__search-t { color: var(--tm-text); font-weight: 500; }

/* Body, groups, rows */
.tm__body { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-top: 0.3em; }
.tm__bottom { margin-top: auto; padding-bottom: 1.6em; }
.tm__bottom:has(.tm__kb) { padding-bottom: 0; }
.tm__group { flex: 0 0 auto; margin: 0 0.92em 1.25em; }
.tm__ghead { padding: 0 1.05em 0.42em; font-size: 0.74em; letter-spacing: 0.01em; text-transform: uppercase; color: var(--tm-sub); }
.tm__gfoot { display: grid; gap: 0.35em; padding: 0.5em 1.05em 0; font-size: 0.74em; color: var(--tm-sub); }
.tm__list { display: block; border-radius: 0.72em; background: var(--tm-card); }
.tm__list:empty { display: none; }
.tm__row { position: relative; display: flex; align-items: center; gap: 0.62em; min-height: 2.58em; padding: 0.32em 0.9em; }
.tm__row:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.tm__row:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.tm--ios .tm__row + .tm__row::before { content: ''; position: absolute; top: 0; right: 0; left: 0.9em; border-top: 1px solid var(--tm-sep); }
.tm--ios .tm__row.has-ico + .tm__row.has-ico::before { left: 3.24em; }
.tm .tm__row.is-hl::before, .tm .tm__row.is-hl + .tm__row::before { display: none; }
.tm__ico {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 1.72em; height: 1.72em;
  border-radius: 0.42em; background: var(--ic, #8E8E93); color: #fff;
}
.tm__ico .tm-i { width: 1.1em; height: 1.1em; stroke-width: 2.3; }
.tm__ico--blue { --ic: #0A84FF; }
.tm__ico--green { --ic: #30C85A; }
.tm__ico--orange { --ic: #FF9500; }
.tm__ico--red { --ic: #FF3B30; }
.tm__ico--pink { --ic: #FF2D55; }
.tm__ico--purple { --ic: #AF52DE; }
.tm__ico--indigo { --ic: #5856D6; }
.tm__ico--teal { --ic: #2FB2CC; }
.tm__ico--grey { --ic: #8E8E93; }
.tm__ico--yellow { --ic: #FFB800; }
.tm__txt { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 0.18em; min-width: 0; }
.tm__label, .tm__sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.tm__sub { font-size: 0.8em; color: var(--tm-sub); }
.tm__sub--accent { color: var(--tm-accent); }
.tm__sub .tm__sk { margin: 0.2em 0; }
.tm__val { flex: 0 0 auto; max-width: 48%; color: var(--tm-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm__val--sk { width: 22%; }
.tm__val--sk .tm__sk { width: 100%; }
.tm__val--accent { color: var(--tm-accent); }
.tm__chev { flex: 0 0 auto; color: #C4C4C7; }
.tm__chev .tm-i { width: 0.95em; height: 0.95em; stroke-width: 2.6; }
.tm__check { flex: 0 0 auto; color: var(--tm-accent); }
.tm__check .tm-i { width: 1.12em; height: 1.12em; stroke-width: 2.8; }
.tm__row--link .tm__label { color: var(--tm-accent); }
.tm__sk { height: 0.6em; max-width: 100%; border-radius: 0.3em; background: var(--tm-sk); }
.tm__sk--sm { height: 0.46em; }
.tm__sk--10 { width: 10%; } .tm__sk--15 { width: 15%; } .tm__sk--20 { width: 20%; } .tm__sk--25 { width: 25%; }
.tm__sk--30 { width: 30%; } .tm__sk--35 { width: 35%; } .tm__sk--40 { width: 40%; } .tm__sk--45 { width: 45%; }
.tm__sk--50 { width: 50%; } .tm__sk--55 { width: 55%; } .tm__sk--60 { width: 60%; } .tm__sk--65 { width: 65%; }
.tm__sk--70 { width: 70%; } .tm__sk--75 { width: 75%; } .tm__sk--80 { width: 80%; } .tm__sk--85 { width: 85%; } .tm__sk--90 { width: 90%; }

/* Toggle, radio */
.tm__tog { position: relative; flex: 0 0 auto; width: 2.8em; height: 1.7em; border-radius: 1em; background: rgba(120, 120, 128, 0.18); }
.tm__tog > .tm__thumb {
  position: absolute; top: 0.14em; left: 0.14em; width: 1.42em; height: 1.42em; border-radius: 50%; background: #fff;
  box-shadow: 0 0.12em 0.36em rgba(0, 0, 0, 0.2), 0 0.04em 0.08em rgba(0, 0, 0, 0.1);
}
.tm__tog.is-on { background: var(--tm-on); }
.tm__tog.is-on > .tm__thumb { left: 1.24em; }
.tm__radio { flex: 0 0 auto; width: 1.35em; height: 1.35em; border-radius: 50%; border: 0.14em solid #74777F; }
.tm__radio.is-on { border-color: var(--tm-accent); background: var(--tm-accent); box-shadow: inset 0 0 0 0.22em #fff; }

/* Highlight (the element to tap) + tap indicator */
.tm .is-hl { position: relative; z-index: 3; }
.tm__row.is-hl {
  border-radius: 0.6em; background: #EAF1FF;
  box-shadow: inset 0 0 0 0.16em var(--tm-hl), 0 0 0 0.24em rgba(27, 91, 219, 0.16);
}
.tm__tap {
  position: absolute; right: 18%; top: 50%; z-index: 4; width: 2.2em; height: 2.2em; margin-top: -1.1em;
  border-radius: 50%; background: rgba(27, 91, 219, 0.34); pointer-events: none;
  box-shadow: 0 0 0 0.14em rgba(255, 255, 255, 0.95), 0 0 0 0.3em rgba(27, 91, 219, 0.85), 0 0.35em 0.9em rgba(27, 91, 219, 0.4);
}
.tm__tap::after {
  content: ''; position: absolute; inset: -0.32em; border-radius: 50%; border: 0.14em solid rgba(27, 91, 219, 0.55);
  animation: tm-tap 1.9s ease-out infinite;
}
@keyframes tm-tap { 0% { transform: scale(0.85); opacity: 0.9; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
/* A switch to tap: a ring around it, so its on / off state stays visible */
.tm .tm__tog > .tm__tap.tm__tap--ring {
  top: -0.34em; right: -0.34em; bottom: -0.34em; left: -0.34em; width: auto; height: auto; margin: 0;
  border-radius: 1.4em; background: rgba(27, 91, 219, 0.10);
  box-shadow: 0 0 0 0.16em var(--tm-hl), 0 0 0.7em rgba(27, 91, 219, 0.45);
}
.tm .tm__tog > .tm__tap--ring::after { inset: -0.3em; border-radius: 1.7em; animation-name: tm-ring; }
@keyframes tm-ring { 0% { transform: scale(0.96); opacity: 0.9; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
.tm__btn .tm__tap { background: rgba(255, 255, 255, 0.32); }
/* Tap position in a row: a flex item of its own at the end of the row, before a chevron / check mark, so the label and
   the value (with its halo cleared) always end before it — text shrinks / wraps instead of running under the marker */
.tm__row > .tm__tap {
  position: relative; top: auto; right: auto; order: 1; flex: 0 0 auto;
  margin: -0.4em 0.3em -0.4em 0.2em;
}
.tm__row.has-chev > .tm__tap, .tm__row.has-check > .tm__tap { margin-right: 0; }
.tm__row > .tm__chev, .tm__row > .tm__check { order: 2; }
/* the marker takes room in the highlighted row: its label may use a third line (PL "Komórkowa transmisja danych") */
.tm__row.is-hl .tm__label { -webkit-line-clamp: 3; }

/* Hero, buttons, form, keyboard */
.tm__hero { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0.8em 1.5em 1.1em; text-align: center; }
.tm__hero-ico { width: 3.2em; height: 3.2em; margin-bottom: 0.65em; color: var(--tm-accent); }
.tm__hero-ico .tm-i { width: 100%; height: 100%; stroke-width: 1.45; }
.tm__hero-title { font-size: 1.45em; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.tm__hero-text { margin-top: 0.3em; font-weight: 600; color: var(--tm-sub); }
.tm__hero-lines { display: grid; justify-items: center; gap: 0.42em; width: 100%; margin-top: 0.75em; }
.tm__btn {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 2.95em;
  margin: 0.5em 1.25em; padding: 0.4em 1em; border-radius: 0.95em; font-weight: 600; text-align: center;
}
.tm__btn--primary { background: var(--tm-accent); color: #fff; }
.tm__btn--text { color: var(--tm-accent); }
.tm__btn.is-hl { box-shadow: 0 0 0 0.2em #fff, 0 0 0 0.38em var(--tm-hl), 0 0.5em 1.2em -0.2em rgba(27, 91, 219, 0.45); }
.tm__btn .tm__tap { right: 14%; }
.tm__form { display: grid; gap: 0.8em; margin: 0.5em 0.92em 1em; }
.tm__field { position: relative; display: grid; gap: 0.32em; }
.tm__field-l { padding: 0 0.35em; font-size: 0.78em; color: var(--tm-sub); }
.tm__field-v {
  display: flex; align-items: center; min-height: 2.55em; padding: 0.3em 0.75em; border-radius: 0.62em; background: var(--tm-card);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.84em;
}
.tm__field-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm__field.is-hl .tm__field-v { background: #F4F8FF; box-shadow: inset 0 0 0 0.16em var(--tm-hl), 0 0 0 0.24em rgba(27, 91, 219, 0.16); }
.tm__caret { flex: 0 0 auto; width: 0.12em; height: 1.25em; margin-left: 0.08em; border-radius: 0.1em; background: var(--tm-accent); animation: tm-caret 1.1s steps(1) infinite; }
@keyframes tm-caret { 50% { opacity: 0; } }
.tm__kb { display: grid; gap: 0.42em; padding: 0.5em 0.2em 2em; background: #D1D4DB; }
.tm__kb-row { display: flex; justify-content: center; gap: 0.26em; }
.tm__key {
  flex: 0 0 8.7%; display: flex; align-items: center; justify-content: center; height: 2.05em; border-radius: 0.34em;
  background: #fff; box-shadow: 0 0.08em 0 rgba(0, 0, 0, 0.28); font-size: 0.9em; color: #111;
}
.tm__key--fn { flex-basis: 12.5%; background: #ABB0BA; font-size: 0.78em; }
.tm__key--w2 { flex-basis: 21%; }
.tm__key--space { flex: 1 1 auto; }

/* Segmented control, profile, tiles */
.tm__seg { position: relative; display: flex; gap: 0.2em; margin: 0 0.92em 1em; padding: 0.22em; border-radius: 1.3em; background: rgba(118, 118, 128, 0.14); }
.tm__seg-item { position: relative; flex: 1 1 0; min-width: 0; padding: 0.5em 0.4em; border-radius: 1.1em; text-align: center; font-size: 0.86em; font-weight: 600; color: var(--tm-sub); overflow-wrap: anywhere; }
.tm__seg-item.is-on { background: var(--tm-card); color: var(--tm-text); box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.12); }
.tm__seg.is-hl .tm__seg-item.is-on { background: #EAF1FF; box-shadow: inset 0 0 0 0.18em var(--tm-hl), 0 0 0 0.24em rgba(27, 91, 219, 0.16); }
.tm__seg-item .tm__tap { right: 0.25em; width: 1.9em; height: 1.9em; margin-top: -0.95em; }
.tm__row--profile { min-height: 3.6em; gap: 0.8em; }
.tm__avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 2.75em; height: 2.75em; border-radius: 50%; background: linear-gradient(180deg, #BCC0CA, #8F94A1); color: #fff; }
.tm__avatar .tm-i { width: 1.55em; height: 1.55em; stroke-width: 1.8; }
.tm__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin: 0.2em 0.85em 1em; }
.tm__tile { position: relative; display: flex; flex-direction: column; gap: 0.25em; min-height: 6.4em; padding: 0.8em; border-radius: 1.1em; background: var(--tm-card); }
.tm__tile-ico { width: 1.7em; height: 1.7em; margin-bottom: 0.25em; color: var(--tm-accent); }
.tm__tile-ico .tm-i { width: 100%; height: 100%; stroke-width: 1.8; }
.tm__tile-name { font-weight: 600; }
.tm__tile-sub { font-size: 0.78em; color: var(--tm-sub); }
.tm__tile .tm__tog { position: absolute; right: 0.7em; top: 0.8em; }
.tm__tile--add { align-items: center; justify-content: center; text-align: center; border: 0.12em dashed rgba(0, 125, 255, 0.45); background: rgba(0, 125, 255, 0.05); color: var(--tm-accent); }
.tm__tile--add .tm__tile-ico { width: 2.2em; height: 2.2em; }
.tm__tile.is-hl { border-color: transparent; background: #EAF1FF; box-shadow: inset 0 0 0 0.16em var(--tm-hl), 0 0 0 0.24em rgba(27, 91, 219, 0.16); }
/* "+ eSIM" tile: the marker in the empty top-right corner, clear of the centred icon and name */
.tm__tile--add .tm__tap { top: 0.75em; right: 0.75em; margin: 0; }

/* QR scanner */
.tm__screen.is-dark { background: #000; color: #fff; }
.tm__screen.is-dark .tm__status { color: #fff; }
.tm__screen.is-dark .tm__homebar { background: rgba(255, 255, 255, 0.85); }
.tm__camview { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 72% at 50% 42%, #5b626d 0%, #2b2f36 48%, #0d0f12 100%); }
.tm__cam-title { position: absolute; top: 3.3em; left: 1em; right: 1em; text-align: center; font-weight: 600; }
.tm__bar--cam { position: absolute; top: 2.1em; left: 0; right: 0; padding: 0 0.7em; color: #fff; }
.tm__bar--cam .tm__back { color: #fff; }
.tm__bar--cam .tm__back .tm-i { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.tm__bar--cam .tm__title { position: static; max-width: none; transform: none; margin-left: 0.55em; font-size: 1.05em; }
.tm__cam-hint { position: absolute; top: 5.4em; left: 1.2em; right: 1.2em; text-align: center; font-size: 0.9em; color: rgba(255, 255, 255, 0.88); }
.tm__qrframe { position: absolute; left: 50%; top: 46%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.tm__qrcard { position: absolute; inset: 12%; padding: 5.5%; border-radius: 0.45em; background: #fff; color: #111; box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.45); transform: rotate(-3deg); }
.tm__qr { display: block; width: 100%; height: 100%; }
.tm__corner { position: absolute; width: 22%; height: 22%; border: 0.26em solid #FFD60A; }
.tm__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 0.9em; }
.tm__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 0.9em; }
.tm__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 0.9em; }
.tm__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 0.9em; }
.tm__scanline {
  position: absolute; left: 9%; right: 9%; top: 50%; height: 0.14em; border-radius: 1em;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.95), transparent); box-shadow: 0 0 0.6em rgba(255, 214, 10, 0.8);
  animation: tm-scan 2.4s ease-in-out infinite alternate;
}
@keyframes tm-scan { from { top: 15%; } to { top: 85%; } }
.tm:not(.tm--ios) .tm__corner { border-color: #fff; }
.tm:not(.tm--ios) .tm__scanline { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent); box-shadow: 0 0 0.6em rgba(120, 170, 255, 0.9); }
.tm__cam-gallery { position: absolute; left: 1.6em; bottom: 5.8em; display: flex; align-items: center; justify-content: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.tm__cam-gallery .tm-i { width: 1.3em; height: 1.3em; }
.tm__cam-link { position: absolute; left: 1em; right: 1em; bottom: 2.4em; padding: 0.6em 0.4em; border-radius: 0.85em; text-align: center; font-weight: 600; color: #fff; }
.tm__cam-link.is-hl { background: rgba(27, 91, 219, 0.35); box-shadow: 0 0 0 0.16em var(--tm-hl); }

/* Dialog / sheet */
.tm__scrim { position: absolute; inset: 0; z-index: 7; display: flex; align-items: flex-end; padding: 0 0.55em 1.35em; background: rgba(0, 0, 0, 0.36); }
.tm__dialog { display: flex; flex-direction: column; gap: 0.5em; width: 100%; padding: 1.2em 0.8em 0.9em; border-radius: 1.6em; background: var(--tm-card); color: var(--tm-text); box-shadow: 0 1em 2.4em rgba(0, 0, 0, 0.3); }
.tm__dlg-title { padding: 0 0.45em 0.2em; font-size: 1.12em; font-weight: 700; }
.tm__dlg-text { padding: 0 0.45em; color: var(--tm-sub); }
.tm__dlg-lines { display: grid; gap: 0.4em; padding: 0 0.45em; }
.tm__dlg-rows { display: grid; gap: 0.15em; }
.tm__dlg-rows .tm__row { border-radius: 0.9em; }
.tm__dlg-btns { display: flex; justify-content: flex-end; gap: 0.4em; }
.tm__dlg-btn { position: relative; padding: 0.6em 1em; border-radius: 1.2em; font-weight: 600; color: var(--tm-accent); }
.tm__dlg-btn.is-primary { background: var(--tm-accent); color: #fff; }
.tm__dlg-btn.is-hl { box-shadow: inset 0 0 0 0.16em var(--tm-hl); }

/* ---------------------------------------------------------------- Samsung One UI */
.tm--oneui {
  --tm-bg: #F2F2F2; --tm-card: #FCFCFC; --tm-text: #111; --tm-sub: #767676; --tm-sep: rgba(0, 0, 0, 0.07);
  --tm-accent: #3D7CF4; --tm-on: #3D7CF4; --tm-sk: rgba(0, 0, 0, 0.1);
  --tm-font: "SamsungOne", "Samsung Sans", Roboto, "Inter", "Segoe UI", Arial, sans-serif;
  --tm-frame: #0e0f12; --tm-rim: #3a3c42; --tm-r: 2.55em; --tm-sr: 2.2em;
}
.tm--oneui .tm__bar { min-height: 3.05em; padding: 0 0.6em 0 0.45em; gap: 0.2em; }
.tm--oneui .tm__back { color: var(--tm-text); }
.tm--oneui .tm__back .tm-i { width: 1.35em; height: 1.35em; stroke-width: 2.2; }
.tm--oneui .tm__title { position: static; max-width: none; transform: none; font-size: 1.28em; font-weight: 700; text-align: left; }
.tm--oneui .tm__title--long { font-size: 1.05em; }
.tm--oneui .tm__bar-r { color: var(--tm-text); }
.tm--oneui .tm__large { padding: 2.2em 0.85em 0.9em; font-size: 2.1em; font-weight: 700; }
.tm--oneui .tm__group { margin: 0 0.55em 0.7em; }
.tm--oneui .tm__ghead { padding: 0.35em 1.3em 0.45em; font-size: 0.8em; font-weight: 700; text-transform: none; color: #6E6E6E; }
.tm--oneui .tm__list { padding: 0.3em 0; border-radius: 1.55em; }
.tm--oneui .tm__row { min-height: 3.05em; padding: 0.5em 1.15em; gap: 0.85em; border-radius: 0; }
.tm--oneui .tm__row.has-sub { min-height: 3.55em; }
.tm--oneui .tm__row.is-hl { border-radius: 1.1em; }
.tm--oneui .tm__label { font-size: 1.04em; }
.tm--oneui .tm__ico { width: 2.05em; height: 2.05em; border-radius: 0.75em; }
.tm--oneui .tm__ico .tm-i { width: 1.2em; height: 1.2em; }
.tm--oneui .tm__row--link .tm__label { color: var(--tm-accent); font-weight: 600; }
.tm--oneui .tm__tog { width: 2.75em; height: 1.55em; background: #fff; box-shadow: inset 0 0 0 0.13em #8F8F8F; }
.tm--oneui .tm__tog > .tm__thumb { top: 0.3em; left: 0.32em; width: 0.95em; height: 0.95em; background: #8F8F8F; box-shadow: none; }
.tm--oneui .tm__tog.is-on { background: var(--tm-on); box-shadow: none; }
.tm--oneui .tm__tog.is-on > .tm__thumb { top: 0.22em; left: 1.43em; width: 1.11em; height: 1.11em; background: #fff; }
.tm--oneui .tm__seg { margin: 0 0.8em 0.8em; background: #E4E4E4; }
.tm--oneui .tm__hero-ico { width: 2.8em; height: 2.8em; margin-top: 0.6em; }
.tm--oneui .tm__dialog { padding: 1.3em 0.7em 1em; border-radius: 1.8em; }
.tm--oneui .tm__dlg-title { padding-left: 0.9em; }
.tm--oneui .tm__kb { background: #E6E7EB; }
.tm--oneui .tm__field-v { background: #fff; border-radius: 0.9em; }

/* ---------------------------------------------------------------- Google Pixel / Material (also generic Android) */
.tm--pixel {
  --tm-bg: #F8F9FF; --tm-card: transparent; --tm-text: #1A1C22; --tm-sub: #44474E; --tm-sep: transparent;
  --tm-accent: #3A5BA9; --tm-on: #3A5BA9; --tm-sk: rgba(26, 28, 34, 0.11);
  --tm-font: "Google Sans", "Google Sans Text", Roboto, "Inter", "Segoe UI", Arial, sans-serif;
  --tm-frame: #111215; --tm-rim: #c5c8d0; --tm-r: 2.75em; --tm-sr: 2.35em;
}
.tm--generic { --tm-accent: #1A73E8; --tm-on: #1A73E8; --tm-rim: #5a5e67; }
.tm--pixel .tm__bar { min-height: 3em; padding: 0 0.8em; }
.tm--pixel .tm__back { color: var(--tm-text); }
.tm--pixel .tm__back .tm-i { width: 1.35em; height: 1.35em; stroke-width: 2; }
.tm--pixel .tm__large { padding: 0.9em 1.05em 0.55em; font-size: 2.1em; font-weight: 400; letter-spacing: -0.01em; }
.tm--pixel .tm__large--sub { padding: 0.25em 1.05em 0.6em; font-size: 1.85em; }
.tm--pixel .tm__search { height: 2.8em; margin: 0.15em 0.9em 1em; padding: 0 0.95em; border-radius: 1.4em; background: #E4E7F1; color: #44474E; }
.tm--pixel .tm__group { margin: 0 0 0.35em; }
.tm--pixel .tm__ghead { padding: 0.75em 1.4em 0.3em; font-size: 0.82em; font-weight: 600; text-transform: none; color: var(--tm-accent); }
.tm--pixel .tm__list { border-radius: 0; background: transparent; }
.tm--pixel .tm__row { min-height: 3.3em; padding: 0.55em 1.35em; gap: 1.15em; border-radius: 0; }
.tm--pixel .tm__row.is-hl { margin: 0 0.45em; padding-left: 0.9em; padding-right: 0.9em; border-radius: 1.2em; }
.tm--pixel .tm__label { font-size: 1.04em; }
.tm--pixel .tm__ico { width: 1.5em; height: 1.5em; border-radius: 0; background: none; color: #44474E; }
.tm--pixel .tm__ico .tm-i { width: 1.35em; height: 1.35em; stroke-width: 2; }
.tm--pixel.tm--root .tm__ico { width: 2.35em; height: 2.35em; border-radius: 50%; background: var(--icbg, #E0E2EC); color: var(--icfg, #44474E); }
.tm--pixel.tm--root .tm__ico .tm-i { width: 1.25em; height: 1.25em; }
.tm--pixel .tm__ico--blue { --icbg: #D6E3FF; --icfg: #0B4A9E; }
.tm--pixel .tm__ico--green { --icbg: #C8EFD2; --icfg: #146C2E; }
.tm--pixel .tm__ico--orange { --icbg: #FFDCC2; --icfg: #7A3A00; }
.tm--pixel .tm__ico--pink { --icbg: #FFD8E4; --icfg: #8C1D4A; }
.tm--pixel .tm__ico--teal { --icbg: #C2ECF3; --icfg: #00555F; }
.tm--pixel .tm__ico--purple { --icbg: #EBDCFF; --icfg: #5B2E9E; }
.tm--pixel .tm__ico--red { --icbg: #FFDAD6; --icfg: #93000A; }
.tm--pixel .tm__ico--yellow { --icbg: #FFE8A3; --icfg: #5F4B00; }
.tm--pixel .tm__tog { width: 3.05em; height: 1.85em; background: #E1E2EC; box-shadow: inset 0 0 0 0.13em #74777F; }
.tm--pixel .tm__tog > .tm__thumb { top: 0.45em; left: 0.48em; width: 0.95em; height: 0.95em; background: #74777F; box-shadow: none; }
.tm--pixel .tm__tog.is-on { background: var(--tm-on); box-shadow: none; }
.tm--pixel .tm__tog.is-on > .tm__thumb { top: 0.2em; left: 1.37em; width: 1.45em; height: 1.45em; background: #fff; }
.tm--pixel .tm__row--main,
.tm--pixel .tm__row--main.is-hl { min-height: 3.5em; margin: 0.15em 0.9em 0.8em; padding: 0.5em 1.2em; border-radius: 1.75em; background: #D8E2FF; }
.tm--pixel .tm__row--main .tm__label { font-size: 1.06em; font-weight: 600; }
.tm--pixel .tm__row--link .tm__label { color: var(--tm-accent); }
.tm--pixel .tm__scrim { align-items: center; padding: 0 1em; }
.tm--pixel .tm__dialog { padding: 1.4em 0.9em 1em; border-radius: 1.9em; background: #EEF0F9; }
.tm--pixel .tm__dlg-title { padding-left: 0.6em; font-size: 1.25em; font-weight: 400; }
.tm--pixel .tm__dlg-rows .tm__row { padding: 0.5em 0.7em; }
.tm--pixel .tm__field-v { border-radius: 0.35em 0.35em 0 0; background: #E4E7F1; box-shadow: inset 0 -0.12em 0 #74777F; }
.tm--pixel .tm__field.is-hl .tm__field-v { background: #E9EEFF; box-shadow: inset 0 0 0 0.16em var(--tm-hl), 0 0 0 0.24em rgba(27, 91, 219, 0.16); }
.tm--pixel .tm__kb { background: #E7EAF2; }
.tm--pixel .tm__key { border-radius: 0.55em; box-shadow: none; }
.tm--pixel .tm__key--fn { background: #D2D7E4; }

/* ---------------------------------------------------------------- Huawei EMUI / HarmonyOS */
.tm--emui {
  --tm-bg: #F1F3F5; --tm-card: #fff; --tm-text: #191919; --tm-sub: #8C8C8C; --tm-sep: rgba(0, 0, 0, 0.08);
  --tm-accent: #007DFF; --tm-on: #007DFF; --tm-sk: rgba(0, 0, 0, 0.1);
  --tm-font: "HarmonyOS Sans", "HONOR Sans", Roboto, "Inter", "Segoe UI", Arial, sans-serif;
  --tm-frame: #0f1012; --tm-rim: #2f3136; --tm-r: 2.6em; --tm-sr: 2.25em;
}
.tm--emui .tm__bar { min-height: 3.1em; padding: 0 0.75em; gap: 0.6em; }
.tm--emui .tm__back { color: var(--tm-text); }
.tm--emui .tm__back .tm-i { width: 1.3em; height: 1.3em; stroke-width: 2.1; }
.tm--emui .tm__title { position: static; max-width: none; transform: none; font-size: 1.3em; font-weight: 700; text-align: left; }
.tm--emui .tm__title--long { font-size: 1.08em; }
.tm--emui .tm__large { padding: 1.3em 0.85em 0.6em; font-size: 1.95em; font-weight: 700; }
.tm--emui .tm__search { height: 2.35em; margin: 0 0.8em 0.9em; border-radius: 1.2em; background: #E3E5E8; }
.tm--emui .tm__group { margin: 0 0.75em 0.85em; }
.tm--emui .tm__ghead { padding: 0.2em 1.2em 0.45em; font-size: 0.8em; text-transform: none; color: var(--tm-sub); }
.tm--emui .tm__list { padding: 0.15em 0; border-radius: 1.15em; }
.tm--emui .tm__row { min-height: 3em; padding: 0.4em 1em; gap: 0.8em; border-radius: 0; }
.tm--emui .tm__row + .tm__row::before { content: ''; position: absolute; top: 0; left: 1em; right: 1em; border-top: 1px solid var(--tm-sep); }
.tm--emui .tm__row.has-ico + .tm__row.has-ico::before { left: 3.55em; }
.tm--emui .tm__row.is-hl { border-radius: 0.95em; }
.tm--emui .tm__ico { width: 1.75em; height: 1.75em; border-radius: 0.55em; }
.tm--emui .tm__tog { width: 2.55em; height: 1.45em; background: #D5D8DC; }
.tm--emui .tm__tog > .tm__thumb { top: 0.16em; left: 0.16em; width: 1.13em; height: 1.13em; }
.tm--emui .tm__tog.is-on { background: var(--tm-on); }
.tm--emui .tm__tog.is-on > .tm__thumb { left: 1.26em; }
.tm--emui .tm__chev { color: #BDBDBD; }

/* ---------------------------------------------------------------- Xiaomi HyperOS */
.tm--hyperos {
  --tm-bg: #FFFFFF; --tm-card: #fff; --tm-text: #000; --tm-sub: #8C8C8C; --tm-sep: transparent;
  --tm-accent: #3482FF; --tm-on: #3482FF; --tm-sk: rgba(0, 0, 0, 0.09);
  --tm-font: "MiSans", "Mi Sans", Roboto, "Inter", "Segoe UI", Arial, sans-serif;
  --tm-frame: #121316; --tm-rim: #71747c; --tm-r: 2.65em; --tm-sr: 2.28em;
}
.tm--hyperos .tm__bar { min-height: 2.85em; padding: 0 0.85em; }
.tm--hyperos .tm__back { color: var(--tm-text); }
.tm--hyperos .tm__back .tm-i { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.tm--hyperos .tm__large { padding: 1.05em 0.95em 0.6em; font-size: 2.2em; font-weight: 700; }
.tm--hyperos .tm__large--sub { padding: 0.1em 1.1em 0.6em; font-size: 1.7em; font-weight: 700; }
.tm--hyperos .tm__search { height: 2.4em; margin: 0 0.95em 0.9em; border-radius: 1.2em; background: #F0F0F0; }
.tm--hyperos .tm__group { margin: 0; }
.tm--hyperos .tm__group + .tm__group { margin-top: 0.35em; padding-top: 0.3em; border-top: 0.45em solid #F5F5F5; }
.tm--hyperos .tm__ghead { padding: 0.5em 1.45em 0.3em; font-size: 0.8em; text-transform: none; color: var(--tm-sub); }
.tm--hyperos .tm__list { border-radius: 0; }
.tm--hyperos .tm__row { min-height: 3.2em; padding: 0.45em 1.2em; gap: 0.95em; border-radius: 0; }
.tm--hyperos .tm__row.is-hl { margin: 0 0.45em; padding-left: 0.75em; padding-right: 0.75em; border-radius: 1em; }
.tm--hyperos .tm__label { font-size: 1.04em; }
.tm--hyperos .tm__ico { width: 2em; height: 2em; border-radius: 0.62em; background: linear-gradient(160deg, color-mix(in srgb, var(--ic) 72%, #fff), var(--ic)); }
.tm--hyperos .tm__tog { width: 2.95em; height: 1.72em; background: #E3E3E3; }
.tm--hyperos .tm__tog > .tm__thumb { top: 0.17em; left: 0.17em; width: 1.38em; height: 1.38em; box-shadow: 0 0.08em 0.2em rgba(0, 0, 0, 0.18); }
.tm--hyperos .tm__tog.is-on { background: var(--tm-on); }
.tm--hyperos .tm__tog.is-on > .tm__thumb { left: 1.4em; }
.tm--hyperos .tm__chev { color: #C6C6C6; }
.tm--hyperos .tm__seg { margin: 0.2em 1em 0.9em; padding: 0.25em; border-radius: 1em; background: #F2F2F2; }
.tm--hyperos .tm__seg-item { padding: 0.7em 0.4em; border-radius: 0.8em; }
.tm--hyperos .tm__field-v { background: #F3F3F3; border-radius: 0.9em; }

/* Sizes: a bit smaller on very narrow phones, a bit larger on wide screens */
@media (max-width: 374px) { .tut-flow .tm, .tut-manual__shot .tm { --tm-w: 226px; } }
@media (min-width: 1240px) { .tut-flow .tm, .tut-manual__shot .tm { --tm-w: 262px; } }

@media (prefers-reduced-motion: reduce) {
  .tm__tap::after, .tm__caret, .tm__scanline { animation: none; }
  .tut-choice, .tut-tab { transition: none; }
}
@media print {
  .tut-toc, .tut-tabs, .tut-brands__hint, .tut-switch { display: none !important; }
  .tut-js [data-brands] [data-brand-panel] { display: block !important; }
  .tut-flow__step, .tut-warn { break-inside: avoid; }
  .tm__tap::after, .tm__caret, .tm__scanline { animation: none; }
}
