
  .pt-container { max-width: 1240px; }
  .pt-head h1, .pt-head .xh1 { margin-bottom: 6px; }
  .pt-tool [hidden] { display: none !important; }
  .pt-tool button { min-width: 0; margin: 0; transform: none; }
  .pt-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 22px; }
  .pt-types a { padding: 8px 15px; border: 1.5px solid var(--border); border-radius: 99px; background: var(--card); color: var(--text); font-weight: 700; font-size: .92rem; text-decoration: none; transition: border-color .15s, background .15s; }
  .pt-types a:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
  .pt-types a.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
  .pt-work { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .pt-work > * { min-width: 0; }
  @media (max-width: 920px) { .pt-work { grid-template-columns: 1fr; } }
  .pt-form { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
  .pt-h { margin: 0; font-size: 1.02rem; font-weight: 800; }
  .pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pt-row > .pt-fld { margin: 0; }
  .pt-fld { display: grid; gap: 5px; align-content: start; margin: 0; font-size: .84rem; color: var(--muted); }
  .pt-tool input[type=text], .pt-tool input[type=number], .pt-tool input[type=date], .pt-tool textarea, .pt-tool select { width: 100%; box-sizing: border-box; margin: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
  .pt-tool textarea { resize: vertical; min-height: 70px; line-height: 1.4; }
  .pt-tool input:focus-visible, .pt-tool textarea:focus-visible, .pt-tool select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
  .pt-hint { color: var(--muted); font-size: .78rem; line-height: 1.4; }
  .pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .pt-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1.5px solid var(--border); border-radius: 99px; background: var(--bg); color: var(--text); font-size: .86rem; font-weight: 600; cursor: pointer; }
  .pt-chip > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
  .pt-chip:has(input[type=radio]:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--bg)); }
  .pt-chip:has(input[type=radio]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pt-sw-c { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
  .pt-tool .pt-custom input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
  .pt-custom:has(input[type=color]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pt-rainbow { background: conic-gradient(#e03131, #f59f00, #40c057, #1c7ed6, #ae3ec9, #e03131); }
  .pt-tog { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text); }
  .pt-tog input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
  .pt-sw { flex: 0 0 auto; position: relative; width: 36px; height: 21px; border-radius: 99px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background .15s; }
  .pt-sw::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
  .pt-tog input:checked + .pt-sw { background: var(--accent); }
  .pt-tog input:checked + .pt-sw::after { transform: translateX(15px); }
  .pt-tog input:focus-visible + .pt-sw { outline: 2px solid var(--accent); outline-offset: 2px; }
  .pt-tool .pt-new { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .pt-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pt-info { margin: 0; min-height: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; } .pt-info:empty { display: none; }
  .pt-right { position: sticky; top: 80px; }
  @media (max-width: 920px) { .pt-right { position: static; order: -1; } }
  .pt-stage { display: flex; justify-content: center; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--text) 6%, var(--bg)); }
  .pt-paper { --ph: min(72vh, 880px); width: min(100%, calc(var(--ph) * var(--ar, .7071))); aspect-ratio: 210 / 297; }
  .pt-paper svg { display: block; width: 100%; height: 100%; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
  .pt-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 0; font-weight: 700; font-size: .9rem; }
  .pt-tool .pt-pager button { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
  .pt-dl { display: flex; gap: 10px; margin: 14px auto 0; max-width: 520px; } .pt-dl > button { flex: 1 1 0; }
  .pt-msg { min-height: 1.4em; margin-top: 10px; text-align: center; font-weight: 600; font-size: .9rem; }
  .pt-msg.ok { color: var(--ok, #1a7f4b); } .pt-msg.error { color: var(--error, #d92d20); }
  .pt-note { margin: 4px auto 0; max-width: 560px; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: center; }
