/* JoyProxy tools — hub, formatter, PAC tester. Colors match marketing hero. */
.jp-t {
  --ink: #1f1f1f;
  --muted: #595959;
  --faint: #8c8c8c;
  --line: #e8e8e8;
  --line-2: #eceef5;
  --soft: #f5f7fa;
  --card: #fff;
  --accent: #6d8ef2;
  --accent-2: #6e66b4;
  --accent-soft: rgba(109, 142, 242, 0.12);
  --hero: linear-gradient(135deg, #6d8ef2 0%, #6d6cc4 50%, #6e66b4 100%);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(109, 142, 242, 0.15);
  color: var(--ink);
}
.jp-t *,
.jp-t *::before,
.jp-t *::after { box-sizing: border-box; }
.jp-t a { color: inherit; }

.jp-t .hero {
  background: var(--hero);
  color: #fff;
  padding: 44px 0 32px;
  text-align: center;
}
.jp-t .hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}
.jp-t .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}
.jp-t .hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}
.jp-t .hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.55;
}
.jp-t .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.jp-t .section { padding: 80px 0; background: var(--white, #fff); }
.jp-t-hub-shell {
  background: linear-gradient(180deg, #eceff6 0%, #f3f5f9 120px, #f3f5f9 100%);
  padding: 28px 0 48px;
}
.jp-t-hub-shell .section.jp-t-hub {
  padding: 0 0 16px;
  background: transparent;
}
.jp-t-hub-shell .section-alt { background: transparent; }
.jp-t-hub-block {
  padding: 22px 26px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.jp-t-hub-block.is-tint {
  background: #f8fafc;
  border-color: #dde4ee;
}
.jp-t-hub-head {
  text-align: left;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.jp-t-hub-head .section-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  text-align: left;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #334155;
}
.jp-t-hub-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42rem;
}
.jp-t-cards-hub {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .jp-t-cards-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.jp-t-cards-hub .jp-t-card {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 14px;
  gap: 12px;
}
.jp-t-cards-hub .jp-t-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.jp-t-cards-hub .jp-t-ico svg { width: 18px; height: 18px; }
.jp-t-cards-hub .jp-t-card-body p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.jp-t-cards-hub .jp-t-card-body h3 { font-size: 0.92rem; margin-bottom: 2px; font-weight: 700; }
.jp-t .section-header { text-align: center; margin-bottom: 48px; }
.jp-t .section-tag {
  display: inline-block;
  background: rgba(109,142,242,0.1);
  color: #6d8ef2;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.jp-t .section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.jp-t .jp-t-hub-head .section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.jp-t .section-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}
.jp-t .cta-section {
  background: var(--hero);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.jp-t .cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.jp-t .cta-section p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.jp-t .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.jp-t .btn-cta,
.jp-t a.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #6d8ef2;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.jp-t .btn-cta:hover,
.jp-t a.btn-cta:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.jp-t .btn-cta-outline,
.jp-t a.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.jp-t .btn-cta-outline:hover,
.jp-t a.btn-cta-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.jp-t-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.jp-t-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 108px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.jp-t-card:hover {
  border-color: rgba(109,142,242,0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.jp-t-ico {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109,142,242,0.16), rgba(110,102,180,0.12));
  color: #6d8ef2;
}
.jp-t-ico svg { width: 18px; height: 18px; }
.jp-t-card h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.jp-t-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.jp-t-card-body { flex: 1; min-width: 0; }

.jp-t-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.jp-t-appcard {
  display: block;
  background: #fff;
  border: 1px solid rgba(109,142,242,0.12);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
a.jp-t-appcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(109,142,242,0.3);
}
.jp-t-appcard-shot {
  background: #0e121d;
  line-height: 0;
  height: 200px;
  overflow: hidden;
}
.jp-t-appcard-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.jp-t-appcard.is-phone .jp-t-appcard-shot {
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.jp-t-appcard.is-phone img {
  width: auto;
  height: 168px;
  object-fit: contain;
}
.jp-t-appcard-body { padding: 24px 28px 28px; }
.jp-t-appcard h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.jp-t-appcard p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}
.jp-t-appcard .card-link {
  color: #6d8ef2;
  font-weight: 600;
  font-size: 0.95rem;
}

.jp-t-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.jp-t-install-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 22px 24px 20px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.jp-t-install-card:hover {
  border-color: #c5d4f2;
  box-shadow: 0 12px 36px rgba(109, 142, 242, 0.14);
  transform: translateY(-2px);
}
a.jp-t-install-card:focus-visible {
  outline: 2px solid #6d8ef2;
  outline-offset: 3px;
}
.jp-t-install-card.is-tester {
  background: linear-gradient(165deg, #f3f6fe 0%, #fafbff 55%, #fff 100%);
  border-color: #dce4f4;
}
.jp-t-install-card.is-ext {
  background: linear-gradient(165deg, #f0f7ff 0%, #f8fbff 55%, #fff 100%);
  border-color: #d6e6f8;
}
.jp-t-install-card.is-server {
  background: linear-gradient(165deg, #f4f5fa 0%, #fafbfc 55%, #fff 100%);
  border-color: #dfe3ec;
}
.jp-t-install-card.is-android {
  background: linear-gradient(165deg, #f6f4fc 0%, #fbf9ff 55%, #fff 100%);
  border-color: #e4dff0;
}
.jp-t-install-card.is-hero {
  background: var(--hero);
  border: none;
  box-shadow: 0 16px 48px rgba(109, 142, 242, 0.32);
}
.jp-t-install-tag {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d8ef2;
}
.jp-t-install-card.is-hero .jp-t-install-tag {
  color: rgba(255, 255, 255, 0.88);
}
.jp-t-install-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.12rem, 1.65vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.jp-t-install-card.is-hero h3 {
  color: #fff;
}
.jp-t-install-lead {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28rem;
}
.jp-t-install-card.is-hero .jp-t-install-lead {
  color: rgba(255, 255, 255, 0.92);
}
.jp-t-install-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 12px;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}
.jp-t-install-media img {
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
/* Desktop app — wide, focus Single Test */
.jp-t-install-media.is-media-app {
  min-height: 176px;
  max-height: 200px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef2fb 0%, #e6ecf8 100%);
  border: 1px solid #d8e0f0;
}
.jp-t-install-media.is-media-app img {
  width: 100%;
  height: 100%;
  max-height: 188px;
  object-fit: cover;
  object-position: 22% 6%;
}
/* Extension — tall popup only (dedicated asset) */
.jp-t-install-media.is-media-popup {
  min-height: 0;
  max-height: none;
  margin: 14px auto 10px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
.jp-t-install-media.is-media-popup img {
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  max-height: 248px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}
/* Server — landscape window, full GUI top */
.jp-t-install-media.is-media-desktop {
  min-height: 168px;
  max-height: 192px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eceef5 0%, #e4e8f0 100%);
  border: 1px solid #d5dbe6;
}
.jp-t-install-media.is-media-desktop img {
  width: 100%;
  height: auto;
  max-height: 176px;
  object-fit: contain;
  object-position: center top;
}
/* Android — narrow device */
.jp-t-install-media.is-media-phone {
  min-height: 200px;
  max-height: 240px;
  padding: 8px 0;
  background: transparent;
  border: none;
}
.jp-t-install-media.is-media-phone img {
  width: auto;
  max-width: 42%;
  max-height: 232px;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(109, 102, 180, 0.22);
}
.jp-t-install-card.is-hero .jp-t-install-media img {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}
.jp-t-online-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.jp-t-online-group-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jp-t-online-group-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d8ef2;
}
.jp-t-online-group-note {
  display: none;
}
.jp-t-online-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 960px) {
  .jp-t-online-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.jp-t-online-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.jp-t-online-card:has(.jp-t-online-badge.is-privacy) {
  background: linear-gradient(165deg, #f3f6fe 0%, #fafbff 58%, #fff 100%);
  border-color: #dce4f4;
}
a.jp-t-online-card:has(.jp-t-online-badge.is-server) {
  background: linear-gradient(165deg, #f4f5fa 0%, #fafbfc 58%, #fff 100%);
  border-color: #dfe3ec;
}
a.jp-t-online-card:has(.jp-t-online-badge.is-browser) {
  background: linear-gradient(165deg, #ecfdf8 0%, #f4fbf9 58%, #fff 100%);
  border-color: #cce8e0;
}
a.jp-t-online-card:has(.jp-t-online-badge.is-reference) {
  background: linear-gradient(165deg, #f8f9fb 0%, #fcfcfd 58%, #fff 100%);
  border-color: #e4e8ef;
}
a.jp-t-online-card:has(.jp-t-online-badge.is-external) {
  background: linear-gradient(165deg, #fff8ef 0%, #fffcf7 58%, #fff 100%);
  border-color: #f0e0c8;
}
a.jp-t-online-card:hover {
  border-color: rgba(109, 142, 242, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}
a.jp-t-online-card:focus-visible {
  outline: 2px solid #6d8ef2;
  outline-offset: 2px;
}
.jp-t-online-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.jp-t-online-badge.is-privacy { color: #6d8ef2; }
.jp-t-online-badge.is-server { color: #64748b; }
.jp-t-online-badge.is-browser { color: #0d9488; }
.jp-t-online-badge.is-reference { color: #94a3b8; }
.jp-t-online-badge.is-external { color: #d97706; }
.jp-t-online-card h4 {
  margin: 8px 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.jp-t-online-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.42;
  color: var(--muted);
}
.jp-t-online-foot {
  margin: 18px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.jp-t-online-foot a {
  font-weight: 600;
  color: #6d8ef2;
  text-decoration: none;
}
.jp-t-online-foot a:hover {
  text-decoration: underline;
}
.jp-t-install-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--faint);
}
a.jp-t-install-card:hover .jp-t-install-note {
  color: var(--muted);
}
.jp-t-install-card.is-hero .jp-t-install-note {
  color: rgba(255, 255, 255, 0.78);
}

.jp-t-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .jp-t-dev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.jp-t-dev-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 0;
}
.jp-t-dev-grid > .jp-t-dev-card:nth-child(1) {
  background: linear-gradient(165deg, #f3f6fe 0%, #fafbff 58%, #fff 100%);
  border-color: #dce4f4;
}
.jp-t-dev-grid > .jp-t-dev-card:nth-child(2) {
  background: linear-gradient(165deg, #f4f5fa 0%, #fafbfc 58%, #fff 100%);
  border-color: #dfe3ec;
}
.jp-t-dev-grid > .jp-t-dev-card:nth-child(3) {
  background: linear-gradient(165deg, #f6f4fc 0%, #fbf9ff 58%, #fff 100%);
  border-color: #e4dff0;
}
.jp-t-dev-grid > .jp-t-dev-card:nth-child(4) {
  background: linear-gradient(165deg, #f0f7ff 0%, #f8fbff 58%, #fff 100%);
  border-color: #d6e6f8;
}
.jp-t-dev-card .jp-t-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.jp-t-dev-card .jp-t-ico svg { width: 18px; height: 18px; }
.jp-t-dev-card > span:last-child {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
a.jp-t-dev-card:hover {
  border-color: rgba(109, 142, 242, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.jp-t-dev-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}
.jp-t-dev-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jp-t-dev-card .jp-t-dev-go {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6d8ef2;
}

.jp-t-page { padding: 48px 0 88px; }
.jp-t-page-tool { padding-top: 40px; background: #fff; }
.jp-t-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.jp-t-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.jp-t-back:hover { color: var(--accent-2); }
.jp-t-h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.jp-t-lead {
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}
.jp-t-h2 {
  margin: 36px 0 16px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

/* Workspace: formatter / PAC */
.jp-t-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.jp-t-stack { display: grid; gap: 16px; }
.jp-t-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.jp-t-phd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.jp-t-phd h2,
.jp-t-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.jp-t-links { display: flex; gap: 14px; }
.jp-t-links button {
  border: 0;
  background: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  cursor: pointer;
}
.jp-t-links button:hover { color: var(--accent-2); }
.jp-t-panel textarea,
.jp-t-area,
.jp-t-out {
  width: 100%;
  min-height: 320px;
  padding: 16px 18px 20px;
  border: 0;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.jp-t-out {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 240px;
}
.jp-t-out.is-empty { color: var(--faint); }
.jp-t-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 12.5px;
  color: var(--muted);
}
.jp-t-foot b { color: var(--ink); font-weight: 700; }
.jp-t-read { width: 100%; color: var(--faint); }
.jp-t-body { padding: 16px 18px 18px; }
.jp-t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-t-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.jp-t-chip.is-on {
  background: var(--hero);
  border-color: transparent;
  color: #fff;
}
.jp-t-field { margin-top: 18px; }
.jp-t-field label.jp-t-label { display: block; margin-bottom: 8px; }
.jp-t-select,
.jp-t-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.jp-t-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 16px;
}
.jp-t-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}
.jp-t-check input { accent-color: var(--accent); width: 15px; height: 15px; }
.jp-t-result-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 18px;
}
.jp-t-result-hd .jp-t-actions { margin-left: auto; }
.jp-t-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jp-t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.jp-t-btn-primary,
.jp-t a.jp-t-btn-primary {
  background: var(--hero);
  color: #fff;
}
.jp-t-textbtn,
.jp-t button.jp-t-textbtn {
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}

.jp-t-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.jp-t-seg button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.jp-t-seg button.is-on { background: var(--hero); color: #fff; }

.jp-t-pac-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  background: #fff;
}
.jp-t-pac-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.jp-t-pac-top code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-all;
}
.jp-t-pill {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
}
.jp-t-pill-proxy { background: var(--accent-soft); color: #6d8ef2; }
.jp-t-pill-direct { background: #f2f4f7; color: #475467; }
.jp-t-call {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.jp-t-ans {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink);
}
.jp-t-steps { margin: 0; padding: 0; list-style: none; }
.jp-t-steps li {
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #344054;
}
.jp-t-n {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--hero);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.jp-t-sum { margin: 12px 0 0; font-size: 13.5px; color: var(--ink); }
.jp-t-calls-btn {
  margin-top: 10px;
  border: 0;
  background: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  cursor: pointer;
}
.jp-t-calls {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}
.jp-t-calls.is-open { display: block; }
.jp-t-err { color: #d92d20; font-size: 13.5px; }

.jp-t-faq { max-width: 800px; margin: 0 auto; }
.jp-t-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.jp-t-faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.jp-t-faq-item p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

.jp-t-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.jp-t-toast.is-on { opacity: 1; transform: none; }

.jp-t-sec-count {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6d8ef2;
}
.jp-t .section-header.is-dir {
  text-align: left;
  margin-bottom: 28px;
}
.jp-t .section-header.is-dir .section-title { margin-bottom: 10px; }
.jp-t .section-header.is-dir .section-desc { margin: 0; text-align: left; }

.jp-t-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.jp-t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.jp-t-table th {
  text-align: left;
  padding: 14px 18px;
  background: rgba(109,142,242,0.08);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.jp-t-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}
.jp-t-table td.port {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  color: #6d8ef2;
}
.jp-t-table .muted { color: var(--muted); line-height: 1.55; }
.jp-t-table a.jp-t-link,
.jp-t a.jp-t-link {
  color: #6d8ef2;
  font-weight: 600;
  text-decoration: none;
}
.jp-t-chips-ports { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-t-chip-port {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.jp-t-setup-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}
.jp-t-parsed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 16px 18px 18px;
  font-size: 0.92rem;
}
.jp-t-parsed span { color: var(--faint); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.jp-t-parsed b { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 650; word-break: break-all; }
.jp-t-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.jp-t-kv code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-all;
}
.jp-t-ol { margin: 0; padding: 0 0 0 22px; color: var(--muted); line-height: 1.7; }
.jp-t-ol li { margin: 0 0 10px; }
.jp-t-pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #1e1e2e;
  color: #e8e8f0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}
.jp-t-warn {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(109,142,242,0.08);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}
.jp-t-places { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.jp-t-mini {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #6d8ef2;
  font-weight: 650;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}
.jp-t-mini:hover { color: #6e66b4; }
.jp-t-panel textarea.jp-t-setup-in { min-height: 88px; }
.jp-t-kv > div { min-width: 0; flex: 1; }
.jp-t-kv .jp-t-label { display: block; margin-bottom: 2px; }

@media (max-width: 960px) {
  .jp-t-cards { grid-template-columns: 1fr 1fr; }
  .jp-t-apps { grid-template-columns: 1fr; }
  .jp-t-dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-t-setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .jp-t-install-grid {
    grid-template-columns: 1fr;
  }
  .jp-t-install-card {
    padding: 22px 20px 20px;
  }
  .jp-t-install-media.is-media-app {
    min-height: 152px;
    max-height: 176px;
  }
  .jp-t-install-media.is-media-app img {
    max-height: 164px;
  }
  .jp-t-install-media.is-media-popup img {
    max-height: 220px;
    max-width: 200px;
  }
  .jp-t-install-media.is-media-phone img {
    max-width: 48%;
    max-height: 208px;
  }
}
@media (max-width: 720px) {
  .jp-t-online-grid {
    grid-template-columns: 1fr;
  }
  .jp-t-cards,
  .jp-t-work,
  .jp-t-checks { grid-template-columns: 1fr; }
  .jp-t .container,
  .jp-t .hero-content { padding: 0 20px; }
  .jp-t .hero h1,
  .jp-t .section-header > .section-title,
  .jp-t .cta-section h2 { font-size: 1.85rem; }
  .jp-t .jp-t-hub-head .section-title { font-size: 1rem; }
  .jp-t .section { padding: 56px 0; }
  .jp-t-wrap { width: min(1120px, calc(100% - 32px)); }
}

body.jp-t-console .hero { display: none; }
body.jp-t-console .cta-section { display: none; }
