/* 图片处理插件：全部样式以 .tp 作用域，避免影响模板 */
.tp {
  --tp-ink: #1e2430;
  --tp-mut: #6b7280;
  --tp-line: #e5e8ef;
  --tp-bg: #f6f7fb;
  --tp-card: #ffffff;
  --tp-acc: #4f46e5;
  --tp-acc2: #7c3aed;
  --tp-ok: #059669;
  --tp-warn: #d97706;
  --tp-r: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  color: var(--tp-ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp h1, .tp h2, .tp h3, .tp h4, .tp p, .tp ul, .tp ol { margin: 0; }
.tp a { color: inherit; text-decoration: none; }
.tp img { max-width: 100%; }
.tp button, .tp input, .tp select, .tp textarea { font: inherit; color: inherit; }

/* ---------- 目录页 ---------- */
.tp-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e7f3;
  border-radius: 20px;
  padding: 30px 28px 26px;
  background:
    radial-gradient(900px 240px at 88% -30%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(700px 260px at 4% 0%, rgba(79, 70, 229, .14), transparent 62%),
    linear-gradient(180deg, #fbfcff, #f4f6fc);
}
.tp-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--tp-acc);
  margin-bottom: 10px;
}
.tp-hero h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
}
.tp-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--tp-mut);
  font-size: 14px;
}
.tp-search {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  max-width: 540px;
}
.tp-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tp-line);
  border-radius: 11px;
  background: #fff;
  outline: none;
  transition: .15s;
}
.tp-search input:focus { border-color: #c7c9f5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); }
.tp-search button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--tp-acc), var(--tp-acc2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.tp-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tp-promise i {
  font-style: normal;
  font-size: 12px;
  color: #475069;
  background: rgba(255, 255, 255, .75);
  border: 1px solid #e4e7f2;
  border-radius: 999px;
  padding: 3px 10px;
}

.tp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 18px;
}
.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #3d4351;
  transition: .15s;
}
.tp-chip span {
  font-size: 11px;
  color: #8b93a7;
  background: #f1f3f9;
  border-radius: 999px;
  padding: 0 6px;
  line-height: 18px;
}
.tp-chip:hover { border-color: #cfd3e8; color: var(--tp-acc); }
.tp-chip.on {
  background: #eef0ff;
  border-color: #c7c9f5;
  color: #3730a3;
  font-weight: 600;
}
.tp-chip.on span { background: #fff; color: #4338ca; }

.tp-groups { display: grid; gap: 26px; }
.tp-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tp-group-head h2 { font-size: 19px; font-weight: 700; }
.tp-group-head p { font-size: 12.5px; color: var(--tp-mut); }
.tp-group-head > div { flex: 1; min-width: 0; }
.tp-more {
  font-size: 13px;
  color: var(--tp-acc);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
}
.tp-more:hover { background: #eef0ff; }

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px;
}
.tp-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 13px;
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
  border-radius: 13px;
  transition: .16s;
  position: relative;
}
.tp-card:hover {
  transform: translateY(-2px);
  border-color: #d3d6ea;
  box-shadow: 0 10px 24px -14px rgba(37, 46, 92, .35);
}
.tp-card-body { flex: 1; min-width: 0; display: block; }
.tp-card-body b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
}
.tp-card-body small {
  display: block;
  margin-top: 3px;
  color: var(--tp-mut);
  font-size: 12.5px;
  line-height: 1.55;
}
.tp-arrow {
  align-self: center;
  color: #c3c8da;
  font-size: 15px;
  transition: .16s;
}
.tp-card:hover .tp-arrow { color: var(--tp-acc); transform: translateX(2px); }
.tp-hot {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* 分类色块图标 */
.tp-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 700;
  background: #eef0ff;
  color: #4338ca;
  letter-spacing: 0;
  user-select: none;
}
.tp-ico.lg { width: 58px; height: 58px; border-radius: 15px; font-size: 24px; }
.tp-ico.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.tp-ico.c-fmt { background: #eef2ff; color: #4f46e5; }
.tp-ico.c-compress { background: #ecfdf5; color: #059669; }
.tp-ico.c-size { background: #eff6ff; color: #2563eb; }
.tp-ico.c-edit { background: #fdf4ff; color: #a21caf; }
.tp-ico.c-wm { background: #fff1f2; color: #e11d48; }
.tp-ico.c-idphoto { background: #fff7ed; color: #ea580c; }
.tp-ico.c-cutout { background: #ecfeff; color: #0891b2; }
.tp-ico.c-qr { background: #f8fafc; color: #334155; }
.tp-ico.c-code { background: #f0fdfa; color: #0f766e; }
.tp-ico.c-gif { background: #fef9c3; color: #a16207; }
.tp-ico.c-info { background: #eef2ff; color: #6366f1; }
.tp-ico.c-doc { background: #f5f3ff; color: #7c3aed; }
.tp-ico.c-ai { background: #f0f9ff; color: #0284c7; }

.tp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}
.tp-count { font-size: 13.5px; color: var(--tp-mut); }
.tp-count b { color: var(--tp-ink); }
.tp-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--tp-mut);
  background: #fff;
  border: 1px dashed var(--tp-line);
  border-radius: var(--tp-r);
  font-size: 14px;
}
.tp-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.tp-pager a, .tp-pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: #4b5563;
}
.tp-pager span { color: #b0b6c5; }
.tp-pager a:hover { border-color: #c7c9f5; color: var(--tp-acc); }
.tp-pager a.on { background: var(--tp-acc); border-color: var(--tp-acc); color: #fff; }
.tp-pager em { margin-left: 6px; font-style: normal; font-size: 12.5px; color: var(--tp-mut); }

.tp-about {
  margin-top: 34px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
}
.tp-about h2 { font-size: 16px; margin-bottom: 6px; }
.tp-about p { font-size: 13.5px; color: var(--tp-mut); }

/* ---------- 工具页 ---------- */
.tp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--tp-mut);
  margin-bottom: 16px;
}
.tp-crumb a:hover { color: var(--tp-acc); }
.tp-crumb span { color: #cbd0dc; }
.tp-crumb em { font-style: normal; color: #3f4657; }

.tp-tool-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid #e3e7f3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #f5f7fc);
  margin-bottom: 16px;
}
.tp-tool-hero h1 { font-size: 24px; font-weight: 800; line-height: 1.3; }
.tp-tool-hero p { color: var(--tp-mut); font-size: 13.5px; margin-top: 4px; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tp-tag {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4338ca;
}
.tp-tag.ok { background: #ecfdf5; color: #047857; }

.tp-work-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.tp-work-main { display: grid; gap: 16px; min-width: 0; }
.tp-panel {
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  padding: 16px 16px 18px;
  min-width: 0;
}
.tp-panel > h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tp-tips ol {
  padding-left: 18px;
  color: var(--tp-mut);
  font-size: 13px;
  display: grid;
  gap: 5px;
}
.tp-loading { padding: 30px 10px; text-align: center; color: var(--tp-mut); font-size: 13.5px; }
.tp-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #d8dbf0;
  border-top-color: var(--tp-acc);
  border-radius: 50%;
  animation: tp-spin .7s linear infinite;
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

.tp-related { display: grid; gap: 4px; margin-bottom: 10px; }
.tp-rel {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 10px;
  transition: .15s;
}
.tp-rel:hover { background: #f7f8fd; }
.tp-rel b { display: block; font-size: 13px; font-weight: 600; }
.tp-rel small { display: block; font-size: 11.5px; color: var(--tp-mut); line-height: 1.5; }
.tp-privacy p { font-size: 12.5px; color: var(--tp-mut); margin-bottom: 10px; }

/* ---------- 通用工作台 ---------- */
.tp-work {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.tp-left { display: grid; gap: 12px; min-width: 0; }
.tp-drop {
  position: relative;
  border: 1.5px dashed #d3d8e8;
  border-radius: 13px;
  background: #fafbff;
  padding: 26px 14px;
  text-align: center;
  cursor: pointer;
  transition: .16s;
}
.tp-drop:hover, .tp-drop.over { border-color: var(--tp-acc); background: #f3f4ff; }
.tp-drop b { display: block; font-size: 14px; font-weight: 600; }
.tp-drop span { display: block; margin-top: 3px; font-size: 12px; color: var(--tp-mut); }
.tp-drop .tp-drop-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #eef0ff;
  color: var(--tp-acc);
  font-size: 19px;
  font-weight: 700;
}
.tp-drop input[type=file] { display: none; }

.tp-files { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-file {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  background: #f3f4f8;
}
.tp-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-file i {
  position: absolute;
  inset: auto 0 0 0;
  font-style: normal;
  font-size: 9px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  text-align: center;
  padding: 1px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-file .x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .66);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  padding: 0;
  cursor: pointer;
}

.tp-fields { display: grid; gap: 10px; }
.tp-field { display: grid; gap: 4px; }
.tp-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #4b5563;
  font-weight: 600;
}
.tp-field > label em {
  font-style: normal;
  font-weight: 500;
  color: var(--tp-acc);
  background: #f2f3ff;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
}
.tp-field input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e8eaf4;
  outline: none;
}
.tp-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tp-acc);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(30, 35, 60, .25);
}
.tp-field input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tp-acc);
  cursor: pointer;
}
.tp-field input[type=text], .tp-field input[type=number], .tp-field select, .tp-field textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  background: #fff;
  outline: none;
  font-size: 13px;
  transition: .15s;
}
.tp-field textarea {
  height: auto;
  min-height: 90px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.6;
}
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus {
  border-color: #c7c9f5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .09);
}
.tp-field input[type=color] {
  width: 100%;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.tp-inline { display: flex; gap: 8px; align-items: center; }
.tp-inline > * { flex: 1; min-width: 0; }
.tp-checkline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #4b5563; }
.tp-checkline input { width: 15px; height: 15px; accent-color: var(--tp-acc); }

.tp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.tp-btn:hover { border-color: #cfd3e8; background: #fafbff; }
.tp-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--tp-acc), var(--tp-acc2));
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .65);
}
.tp-btn.primary:hover { filter: brightness(1.05); }
.tp-btn.ghost { background: #f7f8fd; }
.tp-btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.tp-btn.block { width: 100%; }
.tp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tp-btn.danger { color: #b91c1c; }

.tp-right { min-width: 0; position: sticky; top: 12px; }
.tp-result {
  border: 1px solid var(--tp-line);
  border-radius: 13px;
  background:
    linear-gradient(45deg, #f3f4f8 25%, transparent 25%, transparent 75%, #f3f4f8 75%) 0 0/18px 18px,
    linear-gradient(45deg, #f3f4f8 25%, #fff 25%, #fff 75%, #f3f4f8 75%) 9px 9px/18px 18px;
  min-height: 260px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tp-result.has-html { display: block; background: #fff; }
.tp-result-empty { color: #9aa1b3; font-size: 13px; text-align: center; padding: 30px 10px; }
.tp-filecard {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 6px auto;
  padding: 16px 22px;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
}
.tp-filecard i {
  flex: none;
  width: 46px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--tp-brand);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}
.tp-filecard b { display: block; font-size: 13.5px; word-break: break-all; }
.tp-filecard span { display: block; margin-top: 2px; font-size: 12px; color: var(--tp-mut); }
.tp-out img, .tp-out canvas { max-width: 100%; max-height: 62vh; display: block; margin: 0 auto; border-radius: 4px; }
.tp-out .tp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--tp-mut);
}
.tp-out .tp-meta b { color: var(--tp-ink); font-weight: 600; }
.tp-out .tp-meta .up { color: var(--tp-ok); }
.tp-out .tp-meta .down { color: #b91c1c; }
.tp-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 11px;
}
.tp-code {
  width: 100%;
  max-height: 50vh;
  overflow: auto;
  margin: 0;
  padding: 12px;
  background: #0f172a;
  color: #d7e0f5;
  border-radius: 9px;
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.tp-note { font-size: 12.5px; color: var(--tp-mut); }
.tp-note.warn { color: #b45309; }
.tp-note.ok { color: var(--tp-ok); }
.tp-sep { height: 1px; background: var(--tp-line); margin: 3px 0; }
.tp-sub { font-size: 12px; font-weight: 700; color: #6b7280; letter-spacing: .04em; margin-top: 2px; }
.tp-kv { display: grid; gap: 4px; margin: 8px 0; }
.tp-kv div { display: flex; gap: 10px; font-size: 12.5px; }
.tp-kv b { flex: none; width: 96px; color: var(--tp-mut); font-weight: 500; }
.tp-kv span { word-break: break-all; }
.tp-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tp-swatch {
  width: 76px;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  font-size: 11px;
  text-align: center;
}
.tp-swatch i { display: block; height: 46px; }
.tp-swatch b { display: block; padding: 3px 0; font-weight: 600; letter-spacing: .02em; }
.tp-hist { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--tp-line); }
.tp-progress {
  height: 6px;
  border-radius: 999px;
  background: #eceefa;
  overflow: hidden;
  margin-top: 8px;
}
.tp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tp-acc), var(--tp-acc2)); transition: width .15s; }
.tp-pick-wrap { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; }
.tp-pick-wrap img { display: block; max-width: 100%; max-height: 58vh; border-radius: 6px; }
.tp-pick-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #111;
  pointer-events: none;
}

/* 对比滑块 */
.tp-diff { position: relative; overflow: hidden; border-radius: 8px; max-width: 100%; user-select: none; }
.tp-diff img { display: block; max-width: 100%; max-height: 60vh; }
.tp-diff .aft { position: absolute; inset: 0; overflow: hidden; }
.tp-diff .aft img { position: absolute; inset: 0; max-width: none; height: 100%; object-fit: cover; }
.tp-diff .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
  cursor: ew-resize;
}
.tp-diff .bar::after {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #fff;
  color: #333;
  border-radius: 50%;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* 多结果列表 */
.tp-items { display: grid; gap: 8px; width: 100%; }
.tp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 9px;
  font-size: 12.5px;
}
.tp-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--tp-line); }
.tp-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-item .sz { color: var(--tp-mut); flex: none; }

/* 提示条 */
.tp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 99999;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(23, 28, 44, .93);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  max-width: 86vw;
  text-align: center;
}
.tp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.tp-toast.err { background: #b91c1c; }

@media (max-width: 980px) {
  .tp-work-wrap { grid-template-columns: minmax(0, 1fr); }
  .tp-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  .tp { padding: 12px 12px 36px; }
  .tp-hero { padding: 22px 16px; border-radius: 16px; }
  .tp-hero h1 { font-size: 23px; }
  .tp-tool-hero { padding: 15px; }
  .tp-tool-hero h1 { font-size: 20px; }
  .tp-tool-hero .tp-ico.lg { width: 46px; height: 46px; font-size: 19px; }
  .tp-work { grid-template-columns: minmax(0, 1fr); }
  .tp-right { position: static; }
  .tp-result { min-height: 180px; }
  .tp-search { max-width: none; }
}
