/* Inherit the site's fonts, colors, header and footer. */
.tools-page [hidden] { display:none !important; }
.tools-page :focus-visible { outline:3px solid var(--accent-dark); outline-offset:4px; }
.tools-skip { position:fixed; top:-80px; left:20px; z-index:100; padding:14px; background:#fff; }
.tools-skip:focus { top:10px; }
.tools-shell { padding-bottom:36px; }
.tools-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px 0 24px; }
.tools-heading h1 { font-family:inherit; font-size:36px; font-weight:800; line-height:1.3; letter-spacing:-.03em; }
.tools-heading p { margin-top:8px; color:var(--text-muted); font-size:12px; }
.tools-search { display:flex; align-items:center; gap:9px; width:300px; padding:11px 13px; border:1px solid var(--border); border-radius:9px; background:var(--card-solid); }
.tools-search svg { width:18px; height:18px; flex-shrink:0; color:var(--text-muted); }
.tools-search input { width:100%; min-width:0; padding:0; border:0; font:inherit; font-size:14px; color:var(--text); background:transparent; }
.tools-filters { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--border); padding-bottom:22px; }
.tools-filters button { border:1px solid var(--border); border-radius:10px; padding:9px 15px; background:#fff; color:var(--text-soft); font-size:14px; font-weight:600; cursor:pointer; }
.tools-filters button:hover { border-color:var(--accent); color:var(--accent-deeper); }
.tools-filters button[aria-pressed=true] { border-color:var(--accent-dark); color:var(--accent-deeper); background:var(--accent-wash); box-shadow:inset 0 0 0 1px var(--accent-dark); }
.tools-group { padding-top:28px; scroll-margin-top:92px; }
.tools-group-heading { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.tools-group-heading h2 { font-size:18px; font-weight:750; line-height:1.5; }
.tools-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tool-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--card-solid); }
.tool-media { display:flex; align-items:center; justify-content:center; flex-shrink:0; aspect-ratio:16/9; overflow:hidden; border-bottom:1px solid var(--border); background:#f1f5f9; }
.tool-media img { width:100%; height:100%; object-fit:contain; }
.tool-media:focus-visible { outline-offset:-4px; }
.tool-card-body { display:flex; flex:1; flex-direction:column; min-width:0; padding:22px; }
.tool-card-wide { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
.tool-card-wide .tool-media { min-height:100%; border-bottom:0; border-right:1px solid var(--border); }
.tool-card-wide .tool-card-body { justify-content:center; padding:28px; }
.tool-card-wide .tool-card-footer { margin-top:0; }
.tool-card-own { border-color:rgba(13,148,136,.28); background:linear-gradient(110deg,#fff 60%,var(--accent-wash)); }
.tool-card-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.tool-card-heading h3 { font-size:19px; line-height:1.4; font-weight:750; overflow-wrap:anywhere; }
.tool-icon { display:grid; flex-shrink:0; place-items:center; width:43px; height:43px; border:1px solid rgba(20,184,166,.14); border-radius:12px; color:var(--accent-deeper); background:var(--accent-wash); }
.tool-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.tool-kind { display:block; margin-top:3px; font-size:12px; color:var(--text-muted); }
.tool-own { flex-shrink:0; align-self:flex-start; margin-left:auto; border-radius:6px; padding:4px 7px; color:var(--accent-deeper); background:var(--accent-wash); font-size:11px; font-weight:600; }
.tool-card-body>p { margin:18px 0 22px; font-size:15px; color:var(--text-soft); line-height:1.75; }
.tool-card-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin-top:auto; }
.tool-platform { color:var(--text-muted); font-size:12px; line-height:1.7; }
.tool-link { display:inline-flex; align-items:center; gap:8px; min-height:36px; color:var(--accent-deeper); font-size:13px; font-weight:700; }
.tool-link:hover { text-decoration:underline; text-underline-offset:4px; }
.tool-link span { font-size:15px; }
.tool-copy { min-height:36px; padding:6px 11px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text-soft); font-size:12px; font-weight:600; cursor:pointer; }
.tool-copy:hover { border-color:var(--accent); color:var(--accent-deeper); background:var(--accent-wash); }
.tools-result-status { margin-top:18px; color:var(--text-muted); font-size:13px; }
.tools-empty { padding:56px 20px; text-align:center; }
.tools-empty h2 { font-size:21px; }
.tools-empty p { margin:12px 0 20px; color:var(--text-muted); font-size:14px; }
.tools-empty .btn { min-height:40px; padding:8px 18px; border-radius:10px; font-size:14px; }
.tools-copy-status { min-height:20px; margin-top:18px; color:var(--accent-deeper); font-size:13px; }
.tool-prompt-dialog { width:min(620px,calc(100% - 32px)); max-height:85vh; padding:24px; border:1px solid var(--border); border-radius:16px; color:var(--text); background:#fff; }
.tool-prompt-dialog::backdrop { background:rgba(15,23,42,.45); }
.tool-prompt-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.tool-prompt-dialog h2 { font-size:21px; }
.tool-prompt-dialog form button { width:36px; height:36px; border:0; border-radius:8px; background:var(--accent-wash); color:var(--text-soft); cursor:pointer; font-size:24px; }
.tool-prompt-dialog p { margin:14px 0 10px; color:var(--text-soft); font-size:14px; }
.tool-prompt-dialog textarea { display:block; width:100%; min-height:240px; padding:12px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--bg); font:inherit; font-size:14px; line-height:1.8; resize:vertical; }
.tools-noscript { margin-top:24px; font-size:14px; color:var(--text-soft); }
@media(max-width:760px) {
  .tools-grid { grid-template-columns:1fr; }
  .tool-card-wide { display:flex; }
  .tool-card-wide .tool-media { min-height:0; border-right:0; border-bottom:1px solid var(--border); }
  .tool-card-body,.tool-card-wide .tool-card-body { padding:20px; }
  .tool-card-wide .tool-card-footer { margin-top:auto; }
}
@media(max-width:540px) {
  .tools-heading { align-items:stretch; flex-direction:column; gap:20px; padding-top:26px; }
  .tools-heading h1 { font-size:28px; }
  .tools-search { width:100%; }
  .tools-filters { gap:8px; padding-bottom:20px; }
  .tools-filters button { flex-shrink:0; padding:8px 11px; font-size:13px; }
  .tools-group { padding-top:24px; }
  .tool-card-heading { gap:10px; }
  .tool-card-heading h3 { font-size:18px; }
  .tool-icon { width:38px; height:38px; border-radius:10px; }
  .tool-own { font-size:10px; padding:4px 5px; }
  .tool-card-body>p { margin:16px 0 18px; font-size:14px; }
}
