/*
 * ProIT "Tiles" design layer (direction C)
 * Soft grey ground, white rounded tiles, one indigo accent, Manrope.
 * Hand-written CSS (no Tailwind build needed). Loaded after proit.min.css.
 * Uses logical properties so Arabic RTL mirrors automatically.
 */

:root {
  --pt-bg: #F2F4F7;
  --pt-surface: #FFFFFF;
  --pt-surface-2: #F8FAFC;
  --pt-soft: #F1F5F9;
  --pt-soft-hover: #E2E8F0;
  --pt-line: #E2E8F0;
  --pt-line-hover: #C7D2FE;
  --pt-text: #0F172A;
  --pt-text-2: #475569;
  --pt-accent: #4F46E5;
  --pt-accent-hover: #4338CA;
  --pt-on-accent: #FFFFFF;
  --pt-link: #4F46E5;
  --pt-tint: #EEF2FF;
  --pt-tint-text: #3730A3;
  --pt-ok: #16A34A;
  --pt-mid: #4F46E5;
  --pt-warn: #D97706;
  --pt-pro-bg: #FEF3C7;
  --pt-pro-text: #92400E;
  --pt-header-bg: rgba(242, 244, 247, 0.88);
  --pt-radius-xl: 24px;
  --pt-radius-lg: 20px;
  --pt-radius-md: 16px;
  --pt-radius-sm: 12px;
  --pt-font: 'Manrope', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pt-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

html.dark {
  --pt-bg: #020617;
  --pt-surface: #0F172A;
  --pt-surface-2: #111B30;
  --pt-soft: #1E293B;
  --pt-soft-hover: #334155;
  --pt-line: #1E293B;
  --pt-line-hover: #4F46E5;
  --pt-text: #F1F5F9;
  --pt-text-2: #94A3B8;
  --pt-link: #A5B4FC;
  --pt-tint: #1E1B4B;
  --pt-tint-text: #C7D2FE;
  --pt-ok: #4ADE80;
  --pt-mid: #A5B4FC;
  --pt-warn: #FBBF24;
  --pt-pro-bg: #451A03;
  --pt-pro-text: #FCD34D;
  --pt-header-bg: rgba(2, 6, 23, 0.86);
  color-scheme: dark;
}

/* ---------- Base ---------- */
body.pt-body {
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: var(--pt-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pt-body code, .pt-body pre, .pt-body kbd { font-family: var(--pt-mono); }
.pt-body :focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
html.dark .pt-body :focus-visible { outline-color: var(--pt-link); }

.pt-container { width: 100%; max-width: 1264px; margin-inline: auto; padding-inline: 32px; }
.pt-container-narrow { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) {
  .pt-container, .pt-container-narrow { padding-inline: 16px; }
}

.pt-flip { display: inline-block; }
[dir="rtl"] .pt-flip { transform: scaleX(-1); }

.pt-skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--pt-accent); color: var(--pt-on-accent);
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.pt-skip:focus { top: 8px; }

/* ---------- Buttons, pills, links ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--pt-accent); color: var(--pt-on-accent);
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.pt-btn:hover { background: var(--pt-accent-hover); color: var(--pt-on-accent); }

.pt-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--pt-surface); color: var(--pt-text);
  border: 1px solid var(--pt-line);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pt-pill:hover { border-color: var(--pt-line-hover); color: var(--pt-text); }
.pt-pill.is-saved { background: var(--pt-pro-bg); color: var(--pt-pro-text); border-color: transparent; }
.pt-pill-soft { background: var(--pt-soft); border-color: transparent; }
.pt-pill-soft:hover { background: var(--pt-soft-hover); border-color: transparent; }

.pt-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  background: var(--pt-surface); color: var(--pt-text); border: 1px solid var(--pt-line); cursor: pointer;
  transition: border-color .15s ease;
}
.pt-icon-btn:hover { border-color: var(--pt-line-hover); }
.pt-icon-btn svg { width: 18px; height: 18px; }

.pt-link { color: var(--pt-link); font-weight: 700; text-decoration: none; }
.pt-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.pt-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: 999px; background: var(--pt-soft); color: var(--pt-text-2);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pt-tag-surface { background: var(--pt-surface); }
.pt-tag-pro { background: var(--pt-pro-bg); color: var(--pt-pro-text); }
.pt-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--pt-ok); }
.pt-dot.is-hybrid { background: var(--pt-mid); }
.pt-dot.is-server { background: var(--pt-warn); }

/* ---------- Header ---------- */
.pt-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--pt-header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.pt-header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  min-height: 76px; padding-block: 12px; flex-wrap: wrap;
}
.pt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pt-text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.pt-logo:hover { color: var(--pt-text); }
.pt-logo-mark { width: 34px; height: 34px; flex: none; }
.pt-logo-mark-sm { width: 28px; height: 28px; flex: none; }

.pt-nav {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--pt-surface); border-radius: 999px;
}
.pt-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; color: var(--pt-text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pt-nav a:hover { color: var(--pt-text); }
.pt-nav a[aria-current="page"] { background: var(--pt-soft); color: var(--pt-text); }
.pt-nav a.is-admin { color: var(--pt-warn); }
.pt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-actions .pt-signin { color: var(--pt-text); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 8px; }
.pt-actions .pt-signin:hover { color: var(--pt-link); }

.pt-select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding-block: 0; padding-inline: 34px 14px; border-radius: 999px;
  background-color: var(--pt-surface); color: var(--pt-text); border: 1px solid var(--pt-line);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
[dir="rtl"] .pt-select { background-position: right 12px center; }
.pt-select:hover { border-color: var(--pt-line-hover); }

.pt-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--pt-accent); color: var(--pt-on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.pt-menu {
  background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14); padding: 6px; overflow: hidden;
}
.pt-menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--pt-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.pt-menu a:hover { background: var(--pt-soft); color: var(--pt-text); }
.pt-menu .pt-menu-head { padding: 10px 12px; border-bottom: 1px solid var(--pt-line); margin-bottom: 4px; }
.pt-menu .pt-menu-danger { color: #DC2626; }
html.dark .pt-menu .pt-menu-danger { color: #F87171; }

@media (max-width: 860px) {
  .pt-nav-wrap { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pt-nav-wrap::-webkit-scrollbar { display: none; }
  .pt-nav { width: max-content; }
  .pt-header-row { min-height: 64px; }
}
/* BUG-044 FIX: keep the header inside a 360-414 px phone viewport. */
@media (max-width: 430px) {
  .pt-header-row { gap: 10px 8px; }
  .pt-actions { gap: 4px; flex-wrap: nowrap; min-width: 0; }
  .pt-actions .pt-select { min-height: 40px; padding-inline: 28px 8px; font-size: 13px; background-position: left 8px center; }
  [dir="rtl"] .pt-actions .pt-select { background-position: right 8px center; }
  .pt-actions .pt-icon-btn { width: 40px; height: 40px; min-width: 40px; }
  .pt-actions .pt-btn { min-height: 40px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .pt-actions .pt-signin { padding-inline: 2px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .pt-actions .pt-signin { display: none; }
}
@media (max-width: 520px) {
  .pt-logo span.pt-logo-text { display: none; }
  .pt-actions .pt-signin { padding-inline: 4px; font-size: 14px; }
  .pt-actions .pt-btn { padding: 0 14px; font-size: 14px; }
  .pt-actions { gap: 6px; }
}

/* ---------- Typography ---------- */
.pt-h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; color: var(--pt-text); }
.pt-h1-sm { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; color: var(--pt-text); }
.pt-h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; color: var(--pt-text); }
.pt-h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; color: var(--pt-text); }
.pt-lead { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; color: var(--pt-text-2); text-wrap: pretty; }
.pt-muted { color: var(--pt-text-2); }
.pt-small { font-size: 14px; line-height: 1.55; font-weight: 500; color: var(--pt-text-2); }

/* ---------- Sections ---------- */
.pt-section { padding-block: 40px; }
.pt-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-section-head p { margin: 6px 0 0; }

/* ---------- Hero & search ---------- */
.pt-hero { padding-block: 64px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pt-hero .pt-lead { max-width: 640px; margin-top: 16px; }
.pt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--pt-surface); color: var(--pt-text-2); font-size: 13px; font-weight: 700; text-decoration: none; margin-bottom: 22px;
}
.pt-eyebrow:hover { color: var(--pt-text); }
.pt-search-wrap { position: relative; width: 100%; max-width: 720px; margin-top: 30px; text-align: start; }
.pt-search {
  display: flex; align-items: center; gap: 12px; height: 68px; padding-inline: 22px 8px;
  background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pt-search:focus-within { border-color: var(--pt-accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
.pt-search svg { flex: none; color: var(--pt-text-2); }
.pt-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--pt-text);
}
.pt-search input::placeholder { color: var(--pt-text-2); opacity: 0.85; }
.pt-search input::-webkit-search-cancel-button { display: none; }
.pt-search .pt-kbd { flex: none; }
.pt-search .pt-btn { height: 52px; padding: 0 24px; }
.pt-kbd {
  display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--pt-line); background: var(--pt-surface-2); color: var(--pt-text-2);
  font-family: var(--pt-mono); font-size: 12px; font-weight: 500;
}
@media (max-width: 640px) {
  .pt-search { height: 60px; padding-inline: 16px 6px; }
  .pt-search .pt-kbd { display: none; }
  .pt-search .pt-btn { height: 48px; padding: 0 16px; }
  .pt-search .pt-btn span { display: none; }
  .pt-hero { padding-block: 40px 32px; }
}
.pt-dropdown {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16); padding: 8px; max-height: 420px; overflow-y: auto;
  font-size: 14px; color: var(--pt-text-2);
}
.pt-dropdown a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.pt-dropdown a:hover, .pt-dropdown a:focus-visible { background: var(--pt-soft); }
.pt-dropdown a > div:first-child { color: var(--pt-text); font-weight: 700; font-size: 15px; }
.pt-dropdown a > div + div { color: var(--pt-text-2); font-size: 13px; margin-top: 2px; }

.pt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 860px; }
.pt-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--pt-surface); color: var(--pt-text); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s ease;
}
.pt-chip:hover { border-color: var(--pt-line-hover); color: var(--pt-text); }

/* ---------- Tiles & cards ---------- */
.pt-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.pt-grid-wide { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.pt-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.pt-card { background: var(--pt-surface); border-radius: var(--pt-radius-xl); padding: 28px; }
.pt-card-sm { background: var(--pt-surface); border-radius: var(--pt-radius-lg); padding: 22px; }
@media (max-width: 640px) { .pt-card { padding: 20px; } }

.pt-tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--pt-surface); color: var(--pt-text); border: 1px solid transparent; border-radius: var(--pt-radius-lg);
  padding: 20px; text-decoration: none; transition: border-color .15s ease;
}
.pt-tile:hover, .pt-tile:focus-within { border-color: var(--pt-line-hover); color: var(--pt-text); }
.pt-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pt-tile-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--pt-text); }
.pt-tile-desc { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--pt-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-tile-meta { font-size: 13px; font-weight: 700; color: var(--pt-text-2); }
.pt-tile-cat { min-height: 132px; justify-content: space-between; }
.pt-tile-tool { min-height: 168px; }
.pt-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pt-tile .pt-fav { position: relative; z-index: 1; }

.pt-icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; background: var(--pt-tint); color: var(--pt-tint-text);
}
.pt-icon-tile svg { width: 22px; height: 22px; }
.pt-icon-tile.is-sm { width: 40px; height: 40px; }
.pt-icon-tile.is-sm svg { width: 20px; height: 20px; }
.pt-icon-tile.is-lg { width: 60px; height: 60px; border-radius: 18px; }
.pt-icon-tile.is-lg svg { width: 28px; height: 28px; }

.pt-fav {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
  border: 0; background: transparent; color: var(--pt-text-2); cursor: pointer;
}
.pt-fav:hover { background: var(--pt-soft); color: var(--pt-warn); }
.pt-fav.text-amber-500 { color: #F59E0B; }

/* Segmented filter */
.pt-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--pt-surface); border-radius: 999px; }
.pt-seg button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--pt-text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pt-seg button:hover { color: var(--pt-text); }
.pt-seg button[aria-pressed="true"] { background: var(--pt-accent); color: var(--pt-on-accent); }

/* Feature cards */
.pt-feature { display: flex; flex-direction: column; gap: 12px; }
.pt-feature svg { width: 26px; height: 26px; color: var(--pt-link); }
.pt-feature p { margin: 0; }

/* FAQ */
.pt-faq { display: flex; flex-direction: column; gap: 10px; }
.pt-faq details { background: var(--pt-surface); border-radius: var(--pt-radius-lg); }
.pt-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 22px; font-weight: 700; font-size: 16px; color: var(--pt-text);
}
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary svg { flex: none; width: 20px; height: 20px; color: var(--pt-text-2); transition: transform .2s ease; }
.pt-faq details[open] summary svg { transform: rotate(180deg); }
.pt-faq details > div { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--pt-text-2); }

/* Directory (SEO index) */
.pt-directory { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.pt-directory h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.pt-directory h3 a { color: var(--pt-text); text-decoration: none; }
.pt-directory h3 a:hover { color: var(--pt-link); }
.pt-directory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-directory li a { color: var(--pt-text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.pt-directory li a:hover { color: var(--pt-link); }

/* Breadcrumb */
.pt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pt-text-2); }
.pt-crumbs a { color: var(--pt-text-2); text-decoration: none; }
.pt-crumbs a:hover { color: var(--pt-link); }
.pt-crumbs [aria-current] { color: var(--pt-text); }

/* ---------- Tool page shell ---------- */
.pt-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--pt-text-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.pt-back:hover { color: var(--pt-text); }
.pt-tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.pt-tool-title { display: flex; gap: 20px; align-items: flex-start; flex: 999 1 520px; min-width: 0; }
.pt-tool-title .pt-lead { margin-top: 10px; }
.pt-tool-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.pt-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-rating { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--pt-surface); font-size: 12px; font-weight: 700; color: var(--pt-text-2); }
.pt-rating button { border: 0; background: none; padding: 0 1px; color: #F59E0B; font-size: 14px; line-height: 1; cursor: pointer; }
.pt-rating button:hover { transform: scale(1.2); }
.pt-workspace { margin-top: 28px; background: var(--pt-surface); border-radius: var(--pt-radius-xl); padding: 28px; }
@media (max-width: 640px) { .pt-workspace { padding: 16px; border-radius: var(--pt-radius-lg); } .pt-tool-title { gap: 14px; } .pt-tool-title .pt-icon-tile.is-lg { width: 48px; height: 48px; } }
.pt-guide {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; padding: 16px 18px;
  border-radius: var(--pt-radius-md); background: var(--pt-tint); color: var(--pt-text);
}
.pt-guide-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--pt-surface); color: var(--pt-tint-text); display: inline-flex; align-items: center; justify-content: center; }
.pt-guide-icon svg { width: 18px; height: 18px; }
.pt-guide h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--pt-tint-text); }
.pt-guide p { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--pt-text); }
.pt-batch { margin-bottom: 20px; padding: 20px; border-radius: var(--pt-radius-lg); background: var(--pt-surface); }

.pt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pt-step-num { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--pt-tint); color: var(--pt-tint-text); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pt-steps h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--pt-text); }
.pt-steps p { margin: 3px 0 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--pt-text-2); }
.pt-feature-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.pt-feature-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--pt-surface-2); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--pt-text); }
html.dark .pt-feature-item { background: var(--pt-soft); }
.pt-feature-item svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--pt-ok); }
.pt-usecases { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-usecase { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--pt-tint); color: var(--pt-tint-text); font-size: 13px; font-weight: 700; }
.pt-qa { padding: 16px 0; border-top: 1px solid var(--pt-line); }
.pt-qa:first-child { border-top: 0; padding-top: 0; }
.pt-qa h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--pt-text); }
.pt-qa p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--pt-text-2); }
.pt-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-spec th, .pt-spec td { padding: 12px 0; border-top: 1px solid var(--pt-line); text-align: start; vertical-align: top; }
.pt-spec th { padding-inline-end: 20px; font-weight: 800; color: var(--pt-text); white-space: nowrap; }
.pt-spec td { font-weight: 500; color: var(--pt-text-2); }
.pt-list-link { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--pt-text); }
.pt-list-link:hover { background: var(--pt-soft); color: var(--pt-text); }
.pt-list-link span { display: block; }
.pt-list-link span + span { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--pt-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-side { display: flex; flex-direction: column; gap: 16px; }
.pt-two-col { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 48px; }
.pt-two-col > .pt-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-two-col > .pt-side { flex: 1 1 300px; min-width: 0; }

/* Catalog */
.pt-page-head { padding-block: 48px 28px; }
.pt-page-head.is-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pt-page-head .pt-lead { margin-top: 12px; max-width: 680px; }
.pt-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-filter-row.is-center { justify-content: center; }
.pt-filter-row a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--pt-surface); color: var(--pt-text-2); font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.pt-filter-row a:hover { border-color: var(--pt-line-hover); color: var(--pt-text); }
.pt-filter-row a[aria-current="page"] { background: var(--pt-accent); color: var(--pt-on-accent); }
.pt-tool-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-tool-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--pt-soft); color: var(--pt-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.pt-tool-links a:hover { background: var(--pt-tint); color: var(--pt-tint-text); }
.pt-notice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding: 10px 16px; border-radius: 999px; background: var(--pt-tint); color: var(--pt-tint-text); font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.pt-footer { padding-block: 56px 32px; }
.pt-footer-card { background: var(--pt-surface); border-radius: var(--pt-radius-xl); padding: 36px; }
@media (max-width: 640px) { .pt-footer-card { padding: 24px 20px; } }
.pt-footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.pt-footer-brand { grid-column: span 2; }
@media (max-width: 760px) { .pt-footer-brand { grid-column: auto; } }
.pt-footer h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--pt-text); }
.pt-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pt-footer ul a { color: var(--pt-text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.pt-footer ul a:hover { color: var(--pt-text); }
.pt-footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--pt-line); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--pt-text-2); }
.pt-footer-bottom a { color: var(--pt-text-2); text-decoration: none; }
.pt-footer-bottom a:hover { color: var(--pt-text); }

/* ---------- Progress overlay ---------- */
.pt-progress-card { background: var(--pt-surface); border-radius: var(--pt-radius-xl); border: 1px solid var(--pt-line); box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35); }
.pt-progress-bar { width: 100%; height: 10px; border-radius: 999px; background: var(--pt-soft); overflow: hidden; }
.pt-progress-fill { height: 100%; border-radius: 999px; background: var(--pt-accent); transition: width .3s ease-out; }

/* ---------- Harmonise legacy widget surfaces with the tiles ground ---------- */
.pt-body .pt-workspace .shadow-xl,
.pt-body .pt-workspace .shadow-lg { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .pt-body *, .pt-body *::before, .pt-body *::after { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (min-width: 1000px) {
  .pt-footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .pt-footer-brand { grid-column: auto; }
}
@media (max-width: 520px) {
  .pt-select { padding-inline: 12px; background-image: none; }
  .pt-header-row { column-gap: 12px; }
}
