@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Golos+Text:wght@400;500;600;700&display=swap');

.tp{
  --tp-blue:#2f5bff;--tp-blue-d:#2144d8;--tp-violet:#7a3cff;--tp-cyan:#12b3e8;
  --tp-red:#e5352b;--tp-orange:#ff7a45;--tp-red-bg:#fdecea;
  --tp-green:#12b76a;--tp-green-d:#0b8a52;--tp-green-bg:#e7f8f0;
  --tp-amber:#f5a312;--tp-amber-bg:#fff4dd;--tp-amber-t:#8a5800;
  --tp-ink:#12142a;--tp-muted:#5b6178;
  --tp-line:#e5e8f4;--tp-line-2:#d3d9ec;
  --tp-surface:#f7f8fd;--tp-surface-2:#eef1fa;
  --tp-shadow-1:0 2px 10px rgba(18,20,42,.06);
  --tp-shadow-2:0 14px 38px rgba(18,20,42,.16);
  --tp-grad:linear-gradient(135deg,#2f5bff,#7a3cff);
  --tp-grad-pdf:linear-gradient(135deg,#e5352b,#ff7a45);
  --tp-font-d:'Unbounded',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --tp-font-b:'Golos Text',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --tp-font-m:ui-monospace,Consolas,'Courier New',monospace;
  background:#ffffff;color:var(--tp-ink);
  font-family:var(--tp-font-b);font-size:16px;line-height:1.5;
  max-width:1120px;margin:0 auto;padding:20px 22px 34px;position:relative;
}
.tp,.tp *,.tp *::before,.tp *::after{box-sizing:border-box}
.tp :where(h2,h3,p,ul,li,div,section,aside,details,summary){margin:0;padding:0}
.tp ul{list-style:none}
.tp img{display:block;max-width:100%}
.tp button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.tp [hidden]{display:none!important}
.tp ::selection{background:var(--tp-blue);color:#fff}
.tp ::-webkit-scrollbar{width:10px;height:10px}
.tp ::-webkit-scrollbar-track{background:#f4f6fc}
.tp ::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--tp-blue),var(--tp-violet));border-radius:8px;border:2px solid #f4f6fc}
.tp :focus-visible{outline:3px solid rgba(47,91,255,.5);outline-offset:2px;border-radius:8px}
.tp .tp-ctl:focus-visible,.tp-editor:focus-visible{outline:none}
.tp-ic{width:18px;height:18px;flex:none}

.tp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;font-weight:600;font-size:15px;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s,color .18s;white-space:nowrap;user-select:none}
.tp-btn:active{transform:scale(.97)}
.tp-btn[disabled]{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.tp-primary{background:var(--tp-grad);color:#fff;box-shadow:0 6px 18px rgba(47,91,255,.32)}
.tp-primary:hover:not([disabled]){transform:translateY(-1px);box-shadow:0 10px 24px rgba(47,91,255,.42);filter:brightness(1.05)}
.tp-outline{background:#fff;border:1.5px solid var(--tp-line-2);color:var(--tp-ink)}
.tp-outline:hover:not([disabled]){border-color:var(--tp-blue);color:var(--tp-blue-d);background:#f6f8ff}
.tp-danger{background:transparent;color:var(--tp-red)}
.tp-danger:hover:not([disabled]){background:var(--tp-red-bg)}
.tp-sm{height:34px;padding:0 12px;font-size:13.5px;border-radius:10px}
.tp-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;border:1.5px solid var(--tp-line);background:#fff;color:var(--tp-muted);transition:.18s}
.tp-iconbtn:hover:not([disabled]){color:var(--tp-blue-d);border-color:var(--tp-blue);background:#f6f8ff}
.tp-iconbtn .tp-ic{width:16px;height:16px}

.tp-top{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--tp-line);position:relative}
.tp-top::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--tp-blue),var(--tp-violet),var(--tp-red),var(--tp-orange))}
.tp-brand{display:flex;align-items:center;gap:10px;min-width:0}
.tp-logo{width:32px;height:32px;border-radius:9px;background:var(--tp-grad);display:grid;place-items:center;color:#fff;box-shadow:0 4px 12px rgba(47,91,255,.35);flex:none}
.tp-logo .tp-ic{width:17px;height:17px}
.tp-word{font-family:var(--tp-font-d);font-weight:700;font-size:15px;white-space:nowrap}
.tp-wt{color:var(--tp-blue)} .tp-wa{color:var(--tp-violet)} .tp-wp{color:var(--tp-red)}
.tp-tag{font-size:11px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--tp-muted);background:var(--tp-surface-2);padding:4px 9px;border-radius:999px}
.tp-top-r{margin-left:auto;display:flex;align-items:center;gap:10px}
.tp-sound{width:40px;height:40px;border-radius:11px}
.tp-sound.tp-off{color:var(--tp-muted);background:var(--tp-surface)}

.tp-hero{padding:28px 0 16px}
.tp-hero h2{font-family:var(--tp-font-d);font-weight:700;font-size:clamp(22px,3.6vw,34px);line-height:1.22;letter-spacing:-.4px;margin-bottom:12px}
.tp-gt{background:var(--tp-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--tp-blue)}
.tp-gp{background:var(--tp-grad-pdf);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--tp-red)}
.tp-lead{color:var(--tp-muted);font-size:17px;max-width:720px}
.tp-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.tp-badges li{display:flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--tp-line);border-radius:999px;background:#fff;font-size:14px;font-weight:600;box-shadow:var(--tp-shadow-1)}
.tp-badges .tp-ic{width:16px;height:16px}
.tp-badges li:nth-child(1) .tp-ic{color:var(--tp-blue)}
.tp-badges li:nth-child(2) .tp-ic{color:var(--tp-green-d)}
.tp-badges li:nth-child(3) .tp-ic{color:var(--tp-violet)}
.tp-badges li:nth-child(4) .tp-ic{color:var(--tp-amber)}
.tp-honest{display:flex;gap:12px;margin-top:16px;padding:14px 16px;border:1.5px solid var(--tp-amber-bg);background:var(--tp-amber-bg);border-radius:14px;color:var(--tp-amber-t);font-size:14px;line-height:1.5}
.tp-honest .tp-ic{color:var(--tp-amber);width:22px;height:22px;flex:none;margin-top:2px}
.tp-honest b{color:#6b4600}

.tp-warn{display:flex;align-items:center;gap:10px;background:var(--tp-red-bg);border:1px solid #f4c4c0;color:#8a1d16;border-radius:14px;padding:12px 16px;font-size:14px;font-weight:600;margin-bottom:16px}
.tp-warn .tp-ic{color:var(--tp-red);width:20px;height:20px}

.tp-work{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start;margin-top:8px}
.tp-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.tp-side{position:sticky;top:16px;display:flex;flex-direction:column;gap:16px;max-height:calc(100vh - 32px);overflow-y:auto;padding-right:5px;scrollbar-width:thin;scrollbar-color:#8fa2ff #f1f3fa}

.tp-panel{background:#fff;border:1px solid var(--tp-line);border-radius:20px;padding:18px;box-shadow:var(--tp-shadow-1)}
.tp-panel h3{font-family:var(--tp-font-d);font-weight:600;font-size:15px;display:flex;align-items:center;gap:9px}
.tp-panel h3 .tp-ic{color:var(--tp-blue)}
.tp-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.tp-panel-actions{display:flex;gap:8px}

.tp-editor{width:100%;min-height:340px;max-height:600px;resize:vertical;border:1.5px solid var(--tp-line-2);border-radius:14px;background:var(--tp-surface);padding:14px;font-family:var(--tp-font-b);font-size:15.5px;line-height:1.6;color:var(--tp-ink)}
.tp-editor:focus{border-color:var(--tp-blue);box-shadow:0 0 0 4px rgba(47,91,255,.12);background:#fff}
.tp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.tp-actions .tp-btn{flex:1 1 220px}
.tp-status{margin-top:10px;font-size:13.5px;color:var(--tp-muted);min-height:18px}

.tp-field{margin-bottom:15px}
.tp-field>label{display:block;font-size:12.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--tp-muted);margin-bottom:6px}
.tp-ctl{width:100%;height:44px;border:1.5px solid var(--tp-line-2);border-radius:12px;background:#fbfcff;padding:0 12px;font-family:var(--tp-font-b);font-size:15px;color:var(--tp-ink);transition:.15s}
.tp-ctl:focus{border-color:var(--tp-blue);box-shadow:0 0 0 4px rgba(47,91,255,.12);background:#fff}
.tp select.tp-ctl{appearance:none;-webkit-appearance:none;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='%235b6178' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px;cursor:pointer}
.tp-hint{font-size:12.5px;color:var(--tp-muted);margin-top:6px;line-height:1.45}
.tp-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;background:var(--tp-surface-2);border-radius:12px;padding:4px}
.tp-segbtn{padding:9px 6px;border-radius:9px;font-weight:600;font-size:14px;color:var(--tp-muted);transition:.18s;text-align:center}
.tp-segbtn:hover{color:var(--tp-ink)}
.tp-segbtn.tp-on{background:var(--tp-grad);color:#fff;box-shadow:0 4px 12px rgba(47,91,255,.3)}
.tp-switchfield{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tp-sf-t{min-width:0}
.tp-switch{position:relative;width:46px;height:26px;flex:none;margin-top:2px}
.tp-switch input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}
.tp-switch .tp-tr{position:absolute;inset:0;background:#d8dded;border-radius:999px;transition:.2s;pointer-events:none}
.tp-switch .tp-tr::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.tp-switch input:checked+.tp-tr{background:var(--tp-grad)}
.tp-switch input:checked+.tp-tr::after{transform:translateX(20px)}
.tp-switch input:focus-visible+.tp-tr{outline:3px solid rgba(47,91,255,.45);outline-offset:2px}
.tp-example{font-size:13px;color:var(--tp-muted);margin-top:6px;word-break:break-all}

.tp-rows{display:flex;flex-direction:column;gap:8px}
.tp-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--tp-muted)}
.tp-row b{color:var(--tp-ink);font-size:15px}
.tp-row b.tp-blue{color:var(--tp-blue-d)}
.tp-tip{display:flex;gap:11px;background:#f4fbff;border-color:#d9f1fb}
.tp-tip .tp-tip-ic{color:var(--tp-cyan);width:22px;height:22px;margin-top:2px;flex:none}
.tp-tip b{display:block;margin-bottom:6px}
.tp-tip ul{list-style:disc;padding-left:20px;margin-top:4px}
.tp-tip li{font-size:13.5px;color:var(--tp-muted);line-height:1.5;margin-bottom:3px}

.tp-faq{margin:40px 0 8px}
.tp-faq h3{font-family:var(--tp-font-d);font-weight:600;font-size:20px;margin-bottom:14px}
.tp-faq details{border:1px solid var(--tp-line);border-radius:14px;margin-bottom:10px;background:#fff;transition:border-color .2s,box-shadow .2s}
.tp-faq details[open]{border-color:#c9d4ff;box-shadow:var(--tp-shadow-1)}
.tp-faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;font-weight:600;font-size:15.5px;cursor:pointer;list-style:none}
.tp-faq summary::-webkit-details-marker{display:none}
.tp-faq-plus{color:var(--tp-blue);transition:transform .2s}
.tp-faq details[open] .tp-faq-plus{transform:rotate(45deg)}
.tp-faq-a{padding:0 18px 16px}
.tp-faq-a p{font-size:15px;color:var(--tp-muted);line-height:1.65}

.tp-toasts{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.tp-toast{position:relative;display:flex;align-items:center;gap:10px;min-width:260px;max-width:380px;padding:12px 12px 15px 14px;background:#fff;border:1px solid var(--tp-line);border-radius:14px;box-shadow:var(--tp-shadow-2);overflow:hidden;animation:tp-toastIn .25s ease}
.tp-toast.tp-out{animation:tp-toastOut .2s ease both}
@keyframes tp-toastIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes tp-toastOut{to{opacity:0;transform:translateY(10px)}}
.tp-t-ic{width:20px;height:20px}
.tp-t-success .tp-t-ic{color:var(--tp-green-d)}.tp-t-error .tp-t-ic{color:var(--tp-red)}.tp-t-warn .tp-t-ic{color:var(--tp-amber)}.tp-t-info .tp-t-ic{color:var(--tp-blue)}
.tp-t-tx{flex:1;font-size:14px;font-weight:500;line-height:1.4}
.tp-t-x{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--tp-muted);flex:none}
.tp-t-x:hover{color:var(--tp-ink);background:var(--tp-surface)}
.tp-t-x .tp-ic{width:14px;height:14px}
.tp-t-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;transform-origin:left;animation:tp-tbar linear forwards}
.tp-t-success .tp-t-bar{background:var(--tp-green)}.tp-t-error .tp-t-bar{background:var(--tp-red)}.tp-t-warn .tp-t-bar{background:var(--tp-amber)}.tp-t-info .tp-t-bar{background:var(--tp-blue)}
@keyframes tp-tbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.tp-pixel{position:fixed;width:7px;height:7px;border-radius:2px;pointer-events:none;z-index:10000}

@media (max-width:980px){
  .tp-work{grid-template-columns:1fr}
  .tp-side{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr;padding-right:0}
}
@media (max-width:640px){
  .tp{padding:16px 16px 28px}
  .tp-side{grid-template-columns:1fr}
  .tp-tag{display:none}
  .tp-actions .tp-btn{flex:1 1 100%}
  .tp-toasts{left:12px;right:12px;bottom:12px;align-items:stretch}
  .tp-toast{max-width:none;min-width:0}
}
@media (prefers-reduced-motion:reduce){
  .tp *,.tp *::before,.tp *::after{animation:none!important;transition:none!important}
}