.tm-tool-module{
  --brand-blue:#1677ff;
  --brand-blue-700:#0f5fd5;
  --brand-blue-800:#0b4eae;
  --brand-blue-100:#dcebff;
  --brand-blue-50:#eef6ff;
  --text:#172033;
  --muted:#667085;
  --line:#dce4ee;
  --line-strong:#c9d5e3;
  --panel:#fff;
  --bg:#f6f9fd;
  --danger:#b42318;
  --ok:#067647;
  --shadow:0 10px 34px rgba(29,55,90,.075);
  --shadow-hover:0 14px 34px rgba(22,119,255,.12);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f8fbff 0,#f6f9fd 420px,#f7f9fc 100%);
  line-height:1.6;
  color-scheme:light;
}
.tm-tool-module *{box-sizing:border-box}
.tm-tool-module a{color:var(--brand-blue);text-decoration:none}
.tm-tool-module a:hover{text-decoration:underline}
.tm-tool-module .tool-shell{max-width:1180px;margin:0 auto;padding:32px 20px 28px}
.tm-tool-module .tool-head{
  margin:0 0 20px;padding:24px 26px;border:1px solid #dbe8f7;border-radius:20px;
  background:linear-gradient(135deg,#fff 0%,#f4f9ff 58%,#eaf4ff 100%);
  box-shadow:0 8px 28px rgba(27,71,120,.06)
}
.tm-tool-module .tool-head h1{font-size:clamp(30px,4vw,44px);line-height:1.12;margin:8px 0 8px;letter-spacing:-.035em;color:#13233a}
.tm-tool-module .tool-head p{margin:0;max-width:820px;color:var(--muted);font-size:16px}
.tm-tool-module .card{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px}
.tm-tool-module .grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.tm-tool-module .stack{display:grid;gap:15px}
.tm-tool-module .toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 2px}
.tm-tool-module label{font-weight:700;font-size:14px;color:#26364d}
.tm-tool-module textarea,.tm-tool-module input,.tm-tool-module select,.tm-tool-module button{font:inherit}
.tm-tool-module textarea,.tm-tool-module .text-input,.tm-tool-module input[type=text],.tm-tool-module input[type=number],.tm-tool-module input[type=date],.tm-tool-module input[type=datetime-local],.tm-tool-module input[type=url],.tm-tool-module input[type=password],.tm-tool-module input[type=email],.tm-tool-module select{
  width:100%;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--text);padding:11px 13px;outline:none;transition:border-color .16s,box-shadow .16s,background .16s
}
.tm-tool-module textarea{min-height:300px;resize:vertical;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:14px;line-height:1.55}
.tm-tool-module textarea:focus,.tm-tool-module .text-input:focus,.tm-tool-module input:focus,.tm-tool-module select:focus{border-color:var(--brand-blue);box-shadow:0 0 0 4px rgba(22,119,255,.11)}
.tm-tool-module .btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #d7e0eb;border-radius:10px;background:#f7f9fc;color:#1f2d40;padding:9px 16px;font-weight:750;cursor:pointer;transition:transform .14s,box-shadow .14s,border-color .14s,background .14s}
.tm-tool-module .btn:hover{transform:translateY(-1px);border-color:#b9c8da;box-shadow:0 6px 16px rgba(25,55,90,.08);text-decoration:none}
.tm-tool-module .btn:active{transform:translateY(0)}
.tm-tool-module .btn-primary{background:linear-gradient(180deg,#2784ff,#1677ff);border-color:#1677ff;color:#fff;box-shadow:0 6px 16px rgba(22,119,255,.18)}
.tm-tool-module .btn-primary:hover{background:linear-gradient(180deg,#1677ff,#0f67e6);border-color:#0f67e6}
.tm-tool-module .btn-outline{background:#fff;border-color:#c9d5e3}
.tm-tool-module .btn-danger{color:#9f1c16;background:#fff5f4;border-color:#f5c9c5}
.tm-tool-module .output-wrap{position:relative}
.tm-tool-module .copy-btn{position:absolute;right:10px;top:10px;z-index:3}
.tm-tool-module .status{padding:11px 13px;border:1px solid #dde6ef;border-radius:10px;background:#f3f6fa;color:#4b5b70;font-size:14px;min-height:44px}
.tm-tool-module .status.ok{background:#ecfdf3;border-color:#abefc6;color:var(--ok)}
.tm-tool-module .status.error{background:#fff3f2;border-color:#fecdca;color:var(--danger)}
.tm-tool-module .controls{display:flex;gap:14px 18px;align-items:end;flex-wrap:wrap;padding:4px 0}
.tm-tool-module .controls label{display:grid;gap:6px;font-weight:650;min-width:150px}
.tm-tool-module input[type=range]{accent-color:var(--brand-blue)}
.tm-tool-module input[type=color]{width:56px;height:42px;padding:3px;border-radius:10px;border:1px solid var(--line-strong);background:#fff}
.tm-tool-module input[type=file]{max-width:100%;color:#526177}
.tm-tool-module input[type=file]::file-selector-button{margin-right:12px;border:1px solid #c9d8e8;border-radius:9px;background:#fff;color:#21456d;padding:9px 13px;font-weight:750;cursor:pointer}
.tm-tool-module .preview{
  min-height:260px;border:1px solid #d9e3ef;border-radius:16px;background-color:#fafcff;
  background-image:linear-gradient(45deg,#f1f5f9 25%,transparent 25%),linear-gradient(-45deg,#f1f5f9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f1f5f9 75%),linear-gradient(-45deg,transparent 75%,#f1f5f9 75%);
  background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;
  display:flex;align-items:center;justify-content:center;overflow:auto;padding:18px
}
.tm-tool-module .preview canvas,.tm-tool-module .preview img,.tm-tool-module .preview video{max-width:100%;height:auto;border-radius:8px}
.tm-tool-module .small{font-size:13px;color:var(--muted)}
.tm-tool-module .hr{height:1px;background:var(--line);margin:18px 0}
.tm-tool-module .kbd{font-family:monospace;border:1px solid #d7dee7;border-bottom-width:2px;background:#fff;border-radius:6px;padding:1px 6px}
.tm-tool-module .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.tm-tool-module table{width:100%;border-collapse:collapse;background:#fff}
.tm-tool-module th,.tm-tool-module td{padding:11px 13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.tm-tool-module th{background:#f6f8fb;font-size:13px}
.tm-tool-module .pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:var(--brand-blue-50);border:1px solid #d6eaff;color:var(--brand-blue-700);font-weight:800;font-size:12px}
.tm-tool-module .file-drop{border:1.5px dashed #9fb7d3;border-radius:16px;padding:30px 22px;text-align:center;background:linear-gradient(180deg,#fbfdff,#f7fbff);transition:border-color .16s,background .16s,box-shadow .16s}
.tm-tool-module .file-drop:hover,.tm-tool-module .file-drop.drag{border-color:var(--brand-blue);background:#f1f7ff;box-shadow:inset 0 0 0 1px rgba(22,119,255,.05)}
.tm-tool-module .download{display:inline-flex;align-items:center;gap:6px}
.tm-tool-module .two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}
.tm-tool-module .editor{font-family:"SFMono-Regular",Consolas,monospace}
.tm-tool-module .swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}
.tm-tool-module .swatch{height:92px;border-radius:11px;display:flex;align-items:flex-end;padding:8px;font-size:12px;font-weight:800;text-shadow:0 1px 2px rgba(255,255,255,.8)}
.tm-tool-module .metric{font-size:28px;font-weight:850;letter-spacing:-.025em}
.tm-tool-module .notice{border:1px solid #cfe4ff;border-left:4px solid var(--brand-blue);padding:12px 14px;background:#f1f7ff;border-radius:10px;color:#2f4a68}
.tm-tool-module .tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow:auto}
.tm-tool-module .tab{padding:9px 12px;border:0;background:transparent;font-weight:800;cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap}
.tm-tool-module .tab.active{color:var(--brand-blue);border-color:var(--brand-blue)}
.tm-tool-module .hidden{display:none!important}
.tm-tool-module canvas.draw{background:#fff;border:1px solid var(--line);touch-action:none}
.tm-tool-module video,.tm-tool-module audio{max-width:100%}

/* SEO guide below the functional workspace */
.tm-tool-module .tm-tool-guide{max-width:1180px;margin:0 auto;padding:0 20px 64px;color:var(--text)}
.tm-tool-module .tm-guide-grid{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
.tm-tool-module .tm-guide-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.tm-tool-module .tm-guide-main>.tm-content-card:nth-child(n+3){grid-column:1/-1}
.tm-tool-module .tm-guide-side{display:block}
.tm-tool-module .tm-content-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px 26px;box-shadow:var(--shadow)}
.tm-tool-module .tm-content-card h2{font-size:clamp(22px,2.8vw,30px);line-height:1.2;letter-spacing:-.025em;margin:0 0 13px;color:#17263b}
.tm-tool-module .tm-content-card h3{font-size:18px;line-height:1.35;margin:20px 0 8px;color:#20324a}
.tm-tool-module .tm-content-card p{margin:0 0 12px;color:#4a586d}
.tm-tool-module .tm-content-card p:last-child{margin-bottom:0}
.tm-tool-module .tm-content-card ul,.tm-tool-module .tm-content-card ol{margin:10px 0 0;padding-left:22px;color:#435167}
.tm-tool-module .tm-content-card li{margin:8px 0;padding-left:2px}
.tm-tool-module .tm-eyebrow{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;color:var(--brand-blue);margin-bottom:7px}

/* Related tools are full width instead of a narrow sidebar. */
.tm-tool-module .tm-guide-side .tm-content-card{padding:24px 26px}
.tm-tool-module .tm-related-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.tm-tool-module .tm-related-link{position:relative;display:block;min-height:92px;border:1px solid #dce5ef;border-radius:14px;padding:14px 36px 14px 15px;background:linear-gradient(180deg,#fff,#fbfdff);color:#1e2d42;font-weight:800;text-decoration:none;transition:border-color .16s,box-shadow .16s,transform .16s}
.tm-tool-module .tm-related-link::after{content:"→";position:absolute;right:14px;top:14px;color:var(--brand-blue);font-size:18px}
.tm-tool-module .tm-related-link:hover{border-color:#9fc8ff;background:#f7fbff;box-shadow:var(--shadow-hover);transform:translateY(-1px);text-decoration:none}
.tm-tool-module .tm-related-link span{display:block;font-size:12.5px;line-height:1.45;font-weight:500;color:#6b778a;margin-top:5px}
.tm-tool-module .tm-note{margin-top:16px;border:1px solid #cfe4ff;border-left:4px solid var(--brand-blue);background:#f1f7ff;padding:12px 14px;border-radius:10px;color:#324a68}

/* Modern accessible FAQ accordion. */
.tm-tool-module .tm-faq{display:grid;gap:10px;border-top:0;margin-top:14px}
.tm-tool-module .tm-faq details{border:1px solid #dce5ef;border-radius:12px;padding:0 16px;background:#fbfdff;overflow:hidden;transition:border-color .16s,box-shadow .16s,background .16s}
.tm-tool-module .tm-faq details:hover{border-color:#bed7f5;background:#fff}
.tm-tool-module .tm-faq details[open]{border-color:#a8cdf9;background:#fff;box-shadow:0 7px 22px rgba(20,75,130,.07)}
.tm-tool-module .tm-faq summary{position:relative;cursor:pointer;font-weight:800;padding:15px 38px 15px 0;list-style:none;color:#203149}
.tm-tool-module .tm-faq summary::-webkit-details-marker{display:none}
.tm-tool-module .tm-faq summary::after{content:"+";position:absolute;right:2px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eaf4ff;color:#0f67e6;font-size:18px;line-height:1}
.tm-tool-module .tm-faq details[open] summary::after{content:"−"}
.tm-tool-module .tm-faq details p{padding:0 36px 16px 0;margin:0;color:#566478}

@media(max-width:900px){
  .tm-tool-module .tm-guide-main{grid-template-columns:1fr}
  .tm-tool-module .tm-guide-main>.tm-content-card:nth-child(n){grid-column:auto}
  .tm-tool-module .tm-related-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .tm-tool-module .grid,.tm-tool-module .two-col{grid-template-columns:1fr}
  .tm-tool-module .tool-shell{padding:20px 14px 22px}
  .tm-tool-module .tool-head{padding:20px 18px;border-radius:16px}
  .tm-tool-module .card{padding:17px;border-radius:15px}
  .tm-tool-module textarea{min-height:220px}
  .tm-tool-module .toolbar .btn{flex:1 1 145px}
  .tm-tool-module .tm-tool-guide{padding:0 14px 44px}
  .tm-tool-module .tm-content-card,.tm-tool-module .tm-guide-side .tm-content-card{padding:19px;border-radius:15px}
}
@media(max-width:560px){
  .tm-tool-module .tm-related-list{grid-template-columns:1fr}
  .tm-tool-module .controls{display:grid;grid-template-columns:1fr;width:100%}
  .tm-tool-module .controls label{min-width:0;width:100%}
  .tm-tool-module .file-drop{padding:22px 14px}
}

/* Legacy catalog helpers retained for compatibility. */
.tm-tool-module .catalog-head{display:flex;justify-content:space-between;gap:18px;align-items:end;flex-wrap:wrap}
.tm-tool-module .catalog-search{width:min(480px,100%)}
.tm-tool-module .category{margin-top:30px}
.tm-tool-module .category h2{display:flex;gap:10px;align-items:center}
.tm-tool-module .tool-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.tm-tool-module .tool-link{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:700;color:var(--text)}
.tm-tool-module .tool-link:hover{border-color:var(--brand-blue);color:var(--brand-blue);text-decoration:none;box-shadow:0 4px 18px rgba(22,119,255,.08)}

/* TipsMake UI hardening v2 */
.tm-tool-module .grid{align-items:start!important}
.tm-tool-module .stack{min-width:0;align-content:start}
.tm-tool-module input:not([type]),
.tm-tool-module .text-input,
.tm-tool-module input[type=text],
.tm-tool-module input[type=number],
.tm-tool-module input[type=date],
.tm-tool-module input[type=datetime-local],
.tm-tool-module input[type=url],
.tm-tool-module input[type=password],
.tm-tool-module input[type=email],
.tm-tool-module select{min-height:44px!important;height:44px!important;line-height:1.25!important;padding:10px 12px!important}
.tm-tool-module textarea{height:auto!important}
.tm-tool-module .output-wrap{position:relative!important;min-width:0}
.tm-tool-module .output-wrap>label{padding-right:96px}
.tm-tool-module .copy-btn,
.tm-tool-module #pt-copy{position:absolute!important;right:10px!important;top:8px!important;z-index:5!important;min-width:74px}
.tm-tool-module .copy-btn.is-copied,
.tm-tool-module #pt-copy.is-copied{background:#ecfdf3!important;border-color:#abefc6!important;color:#067647!important}
.tm-tool-module .tm-related-list{align-items:stretch!important;margin-bottom:18px!important}
.tm-tool-module .tm-related-link{height:100%;overflow-wrap:anywhere;word-break:break-word}
.tm-tool-module .tm-related-list + .tm-note{margin-top:0!important;clear:both;position:relative;z-index:1}
.tm-tool-module .tm-guide-side .tm-content-card{overflow:visible}

