:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.6);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-glow: rgba(37, 99, 236, 0.12);
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --header-h: 60px;
  --sidebar-w: 290px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.site-nav a.is-active { background: var(--accent-soft); color: var(--accent); }

/* View containers */
.tc-view--mobile { display: none; }
.tc-view--desktop { display: block; }

.tc-mobile-home.is-hidden,
.tc-mobile-detail.is-hidden {
  display: none !important;
}

.tc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  color: var(--text-muted);
  font-size: 14px;
}

.tc-loading i {
  font-size: 28px;
  color: var(--accent);
}

/* Main layout */
.page-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  width: 100%;
}

/* Tutorial center shell */
.tc-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-h) - 120px);
}

/* Sidebar */
.tc-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  display: flex;
  flex-direction: column;
}

.tc-sidebar__head {
  padding: 20px 20px 12px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.tc-sidebar__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tc-sidebar__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.tc-sidebar__search {
  position: relative;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.tc-sidebar__search i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.tc-sidebar__search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}

.tc-sidebar__search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tc-sidebar__nav {
  overflow-y: auto;
  overflow-anchor: none;
  padding: 10px;
  flex: 1;
}

/* Sidebar Grouping */
.tc-sidebar__group {
  margin-bottom: 14px;
}

.tc-sidebar__group-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 10px 12px 6px;
  letter-spacing: 0.02em;
}

.tc-sidebar__no-results {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
}

.tc-sidebar__no-results i {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.tc-sidebar__no-results p {
  margin: 0;
  font-size: 13px;
}

.tc-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tc-nav-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.tc-nav-item.is-active {
  background: var(--accent-soft);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.tc-nav-item:focus {
  outline: none;
}

.tc-nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.tc-nav-item__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tc-nav-item__icon img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  display: block;
}

.tc-nav-item__label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tc-nav-item.is-active .tc-nav-item__label {
  font-weight: 600;
  color: var(--accent);
}

.tc-nav-item.is-active .tc-nav-item__icon {
  border-color: rgba(37, 99, 235, 0.25);
  background: #fff;
}

/* Content area */
.tc-content {
  flex: 1;
  min-width: 0;
}

.tc-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
  padding: 40px 24px;
}

.tc-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tc-empty p { margin: 0; font-size: 15px; }

/* App header card */
.tc-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.tc-app-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-app-card__title img { height: 28px !important; }

.tc-app-card__intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Platform tabs */
.tc-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tc-platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tc-platform-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tc-platform-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Tutorial sections */
.tc-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tc-section__head {
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-section__num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tc-section__body {
  padding: 16px 20px 20px;
}

/* Steps list */
.tc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  word-break: break-word;
}

.tc-step__index {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tc-step__body { flex: 1; min-width: 0; }
.tc-step__body p { margin: 0 0 8px; }
.tc-step__body p:last-child { margin-bottom: 0; }

/* Override inline styles from JSON content */
.tc-step__body a,
.tc-app-card__intro a,
.tc-html-block a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 10px 20px !important;
  margin: 6px 0 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  line-height: 1.4 !important;
}

.tc-step__body a[style*="dc2626"],
.tc-step__body a[style*="#dc2626"] {
  background: var(--danger) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

.tc-step__body a:not([style*="dc2626"]):not([style*="#dc2626"]) {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px var(--accent-glow) !important;
}

.tc-step__body a:hover,
.tc-app-card__intro a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.tc-step__body img,
.tc-html-block img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 14px 0 !important;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tc-step__body div[style*="fef9c3"],
.tc-step__body div[style*="#fef9c3"],
.tc-app-card__intro div[style*="fef9c3"] {
  background: var(--warn-soft) !important;
  color: var(--warn) !important;
  border: 1px solid #fde68a !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  margin: 8px 0 !important;
}

.tc-html-block {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}

/* Mobile home */
.tc-mobile-home {
  width: 100%;
}

.tc-mobile-detail {
  width: 100%;
  padding-bottom: 24px;
}

.tc-hero {
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.tc-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tc-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile Group Cards */
.tc-group {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.02);
}

.tc-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tc-group__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tc-group__icon--apple { background: #e6fbf2; color: #10b981; }
.tc-group__icon--android { background: #f5f3ff; color: #7c3aed; }
.tc-group__icon--desktop { background: #eff6ff; color: #2563eb; }
.tc-group__icon--apps { background: #fdf4ff; color: #db2777; }

.tc-group__title {
  font-size: 14px;
  font-weight: 700;
}

/* Group title colors to match the screenshot */
.tc-group__title--apple { color: #059669; }
.tc-group__title--android { color: #7c3aed; }
.tc-group__title--desktop { color: #2563eb; }
.tc-group__title--apps { color: #1e40af; }

.tc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tc-grid--3 { grid-template-columns: repeat(3, 1fr); }

.tc-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  min-height: 92px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tc-grid-item:hover,
.tc-grid-item:active {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.tc-grid-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
  transition: transform 0.2s;
}

.tc-grid-item:hover img {
  transform: scale(1.08);
}

.tc-grid-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}

/* Mobile detail */
.tc-mobile-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding: 6px 0 8px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, var(--bg) 75%, rgba(244, 246, 250, 0));
}

.tc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.tc-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tc-platforms--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tc-platforms--scroll::-webkit-scrollbar { display: none; }

/* Bottom Navigation Bar for Mobile */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(37, 99, 235, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  height: 100%;
}

.mobile-nav__item i {
  font-size: 19px;
}

.mobile-nav__item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mobile-nav__item.is-active {
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin: 4px;
  height: calc(100% - 8px);
}

.mobile-nav__item:active {
  transform: scale(0.95);
}

/* Floating Customer Service Button */
.floating-cs {
  position: fixed;
  bottom: 80px; /* Above the mobile bottom nav */
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #d946ef);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-cs:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(217, 70, 239, 0.4);
}

.floating-cs:active {
  transform: scale(0.95);
}

.floating-cs__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a { font-weight: 600; }

/* Responsive — mobile compact (no card beautification) */
@media (max-width: 767px) {
  body { background: #fff; }

  tutorial-center {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .tc-view--mobile {
    display: block !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
  }

  .tc-view--desktop {
    display: none !important;
  }

  .page-main {
    padding: 6px 8px 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header__inner { padding: 0 8px; }
  .site-brand span:not(.site-brand__icon) { font-size: 15px; }
  .site-nav a {
    padding: 6px 8px;
    font-size: 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Home — flat directory */
  .tc-mobile-title {
    margin: 0 0 10px;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .tc-group {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 14px;
    box-shadow: none;
  }

  .tc-group__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    border: none;
  }

  .tc-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tc-grid--3 { grid-template-columns: repeat(3, 1fr); }

  .tc-grid-item {
    padding: 6px 2px;
    min-height: 68px;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    transform: none;
  }

  .tc-grid-item:hover,
  .tc-grid-item:active {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: none;
    transform: none;
  }

  .tc-grid-item img {
    width: 36px;
    height: 36px;
    filter: none;
    object-fit: contain;
  }

  .tc-grid-item span {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
  }

  /* Detail — compact tutorial */
  .tc-mobile-detail {
    padding-bottom: 8px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .tc-mobile-detail .tc-sections--compact,
  .tc-mobile-detail .tc-section,
  .tc-mobile-detail .tc-step,
  .tc-mobile-detail .tc-step__body,
  .tc-mobile-detail .tc-html-block {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .tc-mobile-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    padding: 4px 0;
    margin-bottom: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .tc-back-btn {
    padding: 4px 0;
    font-size: 13px;
    min-height: auto;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #2563eb;
    backdrop-filter: none;
  }

  .tc-back-btn:hover {
    background: none;
    border: none;
    color: #1d4ed8;
  }

  .tc-app-card--compact {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 8px;
    margin-bottom: 6px;
  }

  .tc-app-card--compact .tc-app-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    gap: 4px;
  }

  .tc-app-card--compact .tc-app-card__title img { height: 20px !important; }

  .tc-app-card--compact .tc-app-card__intro {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text);
  }

  .tc-platforms {
    margin-bottom: 8px;
    padding-bottom: 6px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .tc-platform-tab {
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: none;
  }

  .tc-platform-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
  }

  .tc-platforms--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tc-platforms--scroll::-webkit-scrollbar { display: none; }

  /* Sections — blue title + plain numbered list */
  .tc-sections--compact {
    gap: 0;
  }

  .tc-sections--compact .tc-section {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 14px;
    overflow: hidden;
    max-width: 100%;
  }

  .tc-sections--compact .tc-section__title {
    margin: 0 0 6px;
    padding: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    border-bottom: 1px solid #dbeafe;
  }

  .tc-sections--compact .tc-section__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    background: #2563eb;
    border-radius: 50%;
    vertical-align: middle;
  }

  .tc-sections--compact .tc-section__body {
    padding: 0;
  }

  .tc-sections--compact .tc-steps {
    gap: 0;
  }

  .tc-sections--compact .tc-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.5;
  }

  .tc-sections--compact .tc-step__index {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 14px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
  }

  .tc-sections--compact .tc-step__body {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    overflow: hidden;
  }

  .tc-sections--compact .tc-step--img-only {
    display: block;
    padding: 4px 0;
  }

  .tc-sections--compact .tc-step--has-media {
    display: block;
    padding: 4px 0;
  }

  .tc-sections--compact .tc-step--has-media .tc-step__index {
    display: inline;
    margin-right: 4px;
  }

  .tc-sections--compact .tc-step--has-media .tc-step__body,
  .tc-sections--compact .tc-step--img-only .tc-step__body {
    width: 100%;
    max-width: 100%;
    flex: none;
    overflow: hidden;
    display: block;
  }

  .tc-m-img-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
  }

  .tc-sections--compact .tc-step__body p {
    margin: 0 0 4px;
  }

  .tc-sections--compact .tc-step__body p:last-child {
    margin-bottom: 0;
  }

  /* Special: warning / notice blocks */
  .tc-view--mobile .tc-step__body div[style*="fef9c3"],
  .tc-view--mobile .tc-step__body div[style*="#fef9c3"],
  .tc-view--mobile .tc-app-card__intro div[style*="fef9c3"],
  .tc-view--mobile .tc-html-block div[style*="fef9c3"] {
    background: #fef9c3 !important;
    color: #92400e !important;
    border: 1px solid #fbbf24 !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    margin: 6px 0 !important;
    line-height: 1.45 !important;
  }

  /* Special: action links */
  .tc-view--mobile .tc-step__body a,
  .tc-view--mobile .tc-app-card__intro a,
  .tc-view--mobile .tc-html-block a {
    display: block !important;
    width: 100%;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center;
    border-radius: 4px !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    min-height: auto;
  }

  .tc-view--mobile .tc-step__body a[style*="dc2626"],
  .tc-view--mobile .tc-step__body a[style*="#dc2626"],
  .tc-view--mobile .tc-app-card__intro a[style*="dc2626"] {
    background: #dc2626 !important;
    color: #fff !important;
  }

  .tc-view--mobile .tc-step__body a:not([style*="dc2626"]):not([style*="#dc2626"]),
  .tc-view--mobile .tc-app-card__intro a:not([style*="dc2626"]):not([style*="#dc2626"]),
  .tc-view--mobile .tc-html-block a:not([style*="dc2626"]):not([style*="#dc2626"]) {
    background: #2563eb !important;
    color: #fff !important;
  }

  /* Images — always fit screen width */
  .tc-view--mobile .tc-m-img-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    contain: inline-size;
  }

  .tc-view--mobile .tc-m-img,
  .tc-view--mobile .tc-step__body img,
  .tc-view--mobile .tc-html-block img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 4px 0 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    box-sizing: border-box;
  }

  .tc-view--mobile .tc-step__body .tc-m-img-wrap,
  .tc-view--mobile .tc-html-block .tc-m-img-wrap {
    max-width: calc(100vw - 16px);
  }

  .tc-view--mobile .tc-img-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 4px 0;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tc-view--mobile .tc-img-row .tc-m-img-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(33.333% - 3px);
    overflow: hidden;
  }

  .tc-view--mobile .tc-img-row .tc-m-img,
  .tc-view--mobile .tc-img-row img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .tc-view--mobile .tc-html-block {
    font-size: 12px;
    line-height: 1.5;
  }

  .site-footer {
    padding: 12px 8px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .tc-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .site-nav a { padding: 8px 8px; font-size: 12px; }
}

@media (min-width: 768px) {
  .tc-view--mobile { display: none !important; }
  .tc-view--desktop { display: block !important; }
  
  .floating-cs {
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}
