/* PercentURL visual refresh: one calm, readable system across tools and guides. */
:root {
  --bg: #f4f7fc !important;
  --panel: #ffffff !important;
  --ink: #15243b !important;
  --muted: #66758b !important;
  --accent: #315efb !important;
  --accent2: #0f9f91 !important;
  --line: #dfe6f0 !important;
  color-scheme: light;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse at 12% 2%, rgba(91, 132, 255, .10), transparent 34rem),
    radial-gradient(ellipse at 92% 18%, rgba(14, 165, 155, .08), transparent 28rem),
    #f4f7fc !important;
  color: #15243b !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px !important;
  padding: 20px 0 64px !important;
}

h1, h2, h3 { color: #15243b; letter-spacing: -.025em; }
h1 { font-weight: 750; line-height: 1.12; }
.wrap > h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3rem) !important; }
h2 { font-weight: 700; }
p, li { text-wrap: pretty; }
.sub, .blksub, .more-sub { color: #66758b !important; }
body:has(.article-visual) .wrap { max-width: 960px !important; }

/* Keep guide sections on one grid and prevent wide examples from shifting mobile pages. */
body:has(.detail-toc) .wrap > :is(.reltools, .video-feature, .ft, .footer) {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body:has(.detail-toc) .wrap > :is(.reltools, .video-feature) { margin-block: 24px; }
body:has(.detail-toc) .wrap > .ft,
body:has(.detail-toc) .wrap > .footer { margin-top: 24px; }
body:has(.detail-toc) .wrap > .reltools {
  padding: 18px;
  border: 1px solid #dfe6f0;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
body:has(.detail-toc) .reltools h2 { margin: 0 0 10px; }
body:has(.detail-toc) .reltools .rt-list { gap: 10px; }
body:has(.detail-toc) .reltools .rt-list a { min-width: 0; }
body:has(.detail-toc) :is(table, pre) { max-width: 100%; }
body:has(.detail-toc) .responsive-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: #b7c5dc transparent;
}
body:has(.detail-toc) .responsive-table:focus-visible { outline: 3px solid rgba(49,94,251,.22); outline-offset: 2px; }
body:has(.detail-toc) .responsive-table table { display: table; min-width: 520px; }
body:has(.detail-toc) .table-scroll-hint {
  display: block;
  margin: 5px 2px 0;
  color: #718098;
  font-size: .75rem;
}
body:has(.detail-toc) .table-scroll-hint[hidden] { display: none; }
body:has(.detail-toc) pre { overflow-x: auto; overscroll-behavior-inline: contain; }
body:has(.detail-toc) :is(p, li, td, th, a, code) { overflow-wrap: anywhere; }
body:has(.detail-toc) .video-feature { padding: 18px; }
body:has(.detail-toc) .video-feature p:last-child { margin-bottom: 0; }
body:has(.detail-toc) .tool .btn {
  color: #34445e !important;
  background: #fff !important;
  border: 1px solid #dfe6f0 !important;
}
body:has(.detail-toc) .tool .btn:hover { border-color: #9db3ff !important; }
body:has(.detail-toc) .tool .btn.on {
  color: #fff !important;
  background: #315efb !important;
  border-color: #315efb !important;
}
body:has(.detail-toc) .tool .stats span {
  color: #536680 !important;
  background: #fff !important;
  border-color: #dfe6f0 !important;
}
body:has(.detail-toc) .result-heading #copy-result { margin-left: auto; }
body:has(.detail-toc) .result-heading .copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

textarea, input:not([type="checkbox"]):not([type="radio"]), select {
  color: #15243b !important;
  background: #fff !important;
  border-color: #d7e0ed !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(18, 35, 62, .035);
}
textarea::placeholder, input::placeholder { color: #9aa7b8 !important; }
textarea:focus, input:focus, select:focus {
  outline: 3px solid rgba(49, 94, 251, .14) !important;
  border-color: #6f8cff !important;
}

.notice, .lead, .why {
  background: #eef4ff !important;
  border-color: #d8e4ff !important;
  color: #30425f !important;
  border-radius: 14px !important;
}
.ctrl, .target-row, .ex, .panel, .live, .fail, .blk, .alias, .empty {
  background: #fff !important;
  border-color: #dfe6f0 !important;
  color: #25364f !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(25, 47, 79, .045);
}
.seg button {
  color: #33445e !important;
  background: #f7f9fd !important;
  border-color: #dfe6f0 !important;
  border-radius: 9px !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.seg button:hover { transform: translateY(-1px); border-color: #9db3ff !important; }
.seg button.active {
  color: #fff !important;
  background: #315efb !important;
  border-color: #315efb !important;
  box-shadow: 0 4px 10px rgba(49, 94, 251, .2);
}
.tag { color: #087f70 !important; }
.errbox { background: #fff1f0 !important; border-color: #f2b0aa !important; color: #922f2b !important; }
.btn {
  border-radius: 11px !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(28, 61, 130, .14); }
.btn.encode, .btn.go, .btn.primary { color: #fff !important; background: #315efb !important; }
.btn.decode { color: #fff !important; background: #0f9f91 !important; }
.btn.copy { color: #263a58 !important; background: #fff !important; border: 1px solid #d7e0ed !important; }
.btn.copy:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; transform: none; }

table { color: #25364f; }
table th { color: #5f7088 !important; }
table td, table th { border-color: #e1e7f0 !important; }
.article-visual {
  margin: 1.6rem 0 2rem !important;
  overflow: hidden;
  border: 1px solid #e0e7f0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(26, 49, 80, .07);
}
.article-visual img { display: block; width: 100%; height: auto; }
.article-visual picture { display: block; }
.article-visual figcaption { padding: .8rem 1rem !important; color: #66758b !important; font-size: .9rem; }

.more { border-color: #dfe6f0 !important; }
.more-list li {
  background: rgba(255,255,255,.88) !important;
  border-color: #e2e8f1 !important;
  border-radius: 13px !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.more-list li:hover { transform: translateY(-2px); border-color: #bdccff !important; box-shadow: 0 8px 20px rgba(25,47,79,.07); }
.more-list a, .ft a, .footer a { color: #315efb !important; }
.ft, .footer { border-color: #dfe6f0 !important; color: #718098 !important; }

/* Give every page the same tidy, responsive footer hierarchy. */
.ft,
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px !important;
  padding: 22px 24px 16px !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 20px rgba(25, 47, 79, .035);
  box-sizing: border-box;
}
.ft .ft-intro,
.footer .ft-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ft .ft-mark,
.footer .ft-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #315efb;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.ft .ft-intro-copy,
.footer .ft-intro-copy { min-width: 0; }
.ft .ft-intro-copy strong,
.footer .ft-intro-copy strong {
  display: block;
  margin-bottom: 2px;
  color: #15243b;
  font-size: .98rem;
  font-weight: 750;
}
.ft .ft-intro-copy p,
.footer .ft-intro-copy p {
  margin: 0;
  color: #66758b;
  font-size: .84rem;
  line-height: 1.5;
}
.ft .ft-privacy,.footer .ft-privacy { display:inline-flex; align-items:center; gap:6px; margin-top:9px; color:#39776f; font-size:.75rem; font-weight:620; }
.ft .ft-privacy span,.footer .ft-privacy span { display:grid; width:17px; height:17px; place-items:center; border-radius:50%; background:#e3f6ef; color:#078878; font-size:.68rem; }
.ft .ft-nav,
.footer .ft-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}
.ft .ft-group,
.footer .ft-group { min-width: 0; }
.ft .ft-group h2,
.footer .ft-group h2 {
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e7ecf3;
  color: #25364f;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .035em;
}
.ft .ft-group ul,
.footer .ft-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft .ft-group li,
.footer .ft-group li { min-width: 0; margin: 0; }
.ft .ft-group a,
.footer .ft-group a {
  display: inline-block;
  max-width: 100%;
  color: #536680 !important;
  font-size: .84rem;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ft .ft-group a:hover,
.footer .ft-group a:hover { color: #315efb !important; text-decoration: underline; }
.ft .copy,
.footer .copy {
  margin: 0 !important;
  padding-top: 12px;
  border-top: 1px solid #e7ecf3;
  color: #718098;
  font-size: .78rem;
  line-height: 1.5;
}
.ft .ft-bottom,.footer .ft-bottom { display:flex; align-items:center; justify-content:space-between; gap:16px; grid-column:1 / -1; margin-top:1px; padding-top:12px; border-top:1px solid #e7ecf3; }
.ft .ft-bottom .copy,.footer .ft-bottom .copy { padding:0; border:0; }
.ft .ft-legal,.footer .ft-legal { display:flex; flex-wrap:wrap; gap:15px; }
.ft .ft-legal a,.footer .ft-legal a { color:#718098 !important; font-size:.77rem; text-decoration:none; }
.ft .ft-legal a:hover,.footer .ft-legal a:hover { color:#315efb !important; text-decoration:underline; }
.ft a:focus-visible,.footer a:focus-visible,.site-header a:focus-visible { outline:3px solid rgba(49,94,251,.28); outline-offset:3px; border-radius:4px; }
.ft:has(.ft-bottom),.footer:has(.ft-bottom) { grid-template-columns:minmax(190px,.8fr) minmax(0,2fr); align-items:start; column-gap:36px; row-gap:18px; }
.ft:has(.ft-bottom) .ft-intro,.footer:has(.ft-bottom) .ft-intro { padding-top:3px; }
.ft:has(.ft-bottom) .ft-nav,.footer:has(.ft-bottom) .ft-nav { gap:24px; }
@media (max-width: 700px) {
  .ft,
  .footer { gap: 17px; padding: 18px 18px 14px !important; }
  .ft .ft-nav,
  .footer .ft-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .ft:has(.ft-bottom),.footer:has(.ft-bottom) { grid-template-columns:minmax(0,1fr); gap:17px; }
  .ft:has(.ft-bottom) .ft-nav,.footer:has(.ft-bottom) .ft-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 20px; }
  .ft .ft-group:last-child,
  .footer .ft-group:last-child { grid-column: 1 / -1; }
  .ft .ft-group:last-child ul,
  .footer .ft-group:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ft .ft-bottom,.footer .ft-bottom { align-items:flex-start; flex-direction:column; gap:8px; }
}
@media (max-width: 380px) {
  .ft,
  .footer { padding-inline: 14px !important; }
  .ft .ft-nav,
  .footer .ft-nav { gap: 16px 12px; }
  .ft .ft-group a,
  .footer .ft-group a { font-size: .8rem; }
}

/* Error feedback uses the same readable treatment across all tools. */
.warn:not(#io-warn) {
  border-color: #f1beb8 !important;
  background: #fff1f0 !important;
  color: #922f2b !important;
}
.warn#io-warn:empty { display: none; }
.warn#io-warn:not(:empty) {
  display: block;
  min-height: 0;
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #f1d590;
  border-radius: 10px;
  background: #fff9e9;
  color: #75520a !important;
}

/* Compact in-page navigation for long tool and guide pages. */
.detail-toc {
  margin: 20px 0 28px;
  padding: 12px 14px;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}
.detail-toc-label {
  margin: 0 0 8px;
  color: #718098;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e3e9f2;
  border-radius: 9px;
  background: #fff;
  color: #315efb;
  font-size: .8rem;
  line-height: 1.35;
  text-decoration: none;
}
.detail-toc-list a:hover { border-color: #9db3ff; background: #f7f9ff; }
.detail-toc-list a:focus-visible { outline: 3px solid rgba(49,94,251,.22); outline-offset: 2px; }
.wrap h2[id] { scroll-margin-top: 20px; }
.sample-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 5px;
}
.sample-label-row > label { flex: 1 1 auto; margin: 0 !important; }
.sample-label-row .sample-btn {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  padding: 6px 10px;
  border: 1px solid #dfe6f0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #315efb !important;
  font-size: .78rem;
  font-weight: 650;
}
.sample-label-row .sample-btn:hover { border-color: #9db3ff !important; background: #f7f9ff !important; }
#errbox .error-action {
  display: inline-flex;
  width: auto;
  min-width: 0;
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid #edaaa4;
  border-radius: 8px;
  background: #fff;
  color: #922f2b;
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.sample-label-row .sample-btn:focus-visible,
#errbox .error-action:focus-visible { outline: 3px solid rgba(49,94,251,.22); outline-offset: 2px; }
@media (max-width: 640px) {
  body:has(.detail-toc) .wrap { width: min(100% - 28px, 680px); padding: 12px 0 36px !important; }
  body:has(.detail-toc) .wrap > :is(.reltools, .video-feature) { margin-block: 18px; }
  body:has(.detail-toc) .wrap > .reltools { padding: 14px; }
  body:has(.detail-toc) .video-feature { padding: 14px; }
  body:has(.detail-toc) .reltools .rt-list a { flex: 1 1 100%; }
  .detail-toc { margin: 16px 0 22px; padding: 10px 11px; }
  .detail-toc-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding: 1px 1px 5px;
  }
  .detail-toc-list li { flex: 0 0 auto; }
  .detail-toc-list a { white-space: nowrap; }
  .sample-label-row { align-items: center; }
  .sample-label-row > label { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Homepage encoder workbench */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 58px; margin-bottom: 36px; padding: 0 2px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: #15243b; text-decoration: none; font-size: 1.12rem; font-weight: 760; letter-spacing: -.035em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#4775ff,#315efb 65%,#2448d8); font: 700 1.08rem/1 ui-monospace,monospace; box-shadow: 0 5px 12px rgba(49,94,251,.24); }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a { color: #65748a; text-decoration: none; font-size: .91rem; font-weight: 560; }
.site-header nav a:hover { color: #315efb; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid #dbe3ef; border-radius: 11px; background: rgba(255,255,255,.8); color: #263a58; text-decoration: none; font-size: .88rem; font-weight: 650; }
.header-cta:hover { border-color: #b9c9ff; background: #fff; }
.site-header nav a { position:relative; padding:8px 0; }
.site-header nav a::after { position:absolute; right:0; bottom:2px; left:0; height:2px; border-radius:2px; background:#315efb; content:""; transform:scaleX(0); transform-origin:left; transition:transform .16s ease; }
.site-header nav a:hover::after,.site-header nav a:focus-visible::after { transform:scaleX(1); }
.home-hero { max-width: 800px; margin: 0 auto 34px; text-align: center; }
.home-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #4e6381; font-size: .74rem; font-weight: 720; letter-spacing: .12em; }
.eyebrow-dot, .local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #12a594; box-shadow: 0 0 0 4px rgba(18,165,148,.12); }
.home-hero h1 { max-width: 760px; margin: 0 auto; font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
.home-hero h1 span { color: #315efb; }
.home-hero .sub { max-width: 650px; margin: 17px auto 20px; font-size: 1.08rem; line-height: 1.7; }
.home-hero .notice { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 15px; border: 1px solid #dce8ff; border-radius: 999px !important; font-size: .84rem; text-align: left; }
.privacy-icon { display: grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #087f70; background: #d9f5ee; font-size: .82rem; font-weight: 800; }
.tool-card { padding: 28px; border: 1px solid #e1e7f0; border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(25,47,79,.085), 0 2px 5px rgba(25,47,79,.035); }
.tool-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.tool-card-heading h2 { margin: 2px 0 0; padding: 0; border: 0; font-size: 1.28rem; }
.tool-kicker { margin: 0; color: #7a8aa1; font-size: .69rem; font-weight: 730; letter-spacing: .13em; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #dcedea; border-radius: 99px; color: #39776f; background: #f3fbf8; font-size: .76rem; font-weight: 620; }
.local-badge span { width: 6px; height: 6px; box-shadow: none; }
.tool-card .target-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; padding: 12px 14px; box-shadow: none; background: #f8faff !important; }
.tool-card .target-row .t { margin: 0; color: #536680; font-weight: 650; }
.tool-card .batch { margin: 0 0 16px; color: #64758d; background: #fff; }
.tool-card .controls { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 14px; }
.tool-card .ctrl { padding: 12px; box-shadow: none; }
.tool-card .ctrl .t { color: #718098; font-weight: 620; }
.tool-card .help-details { margin: 0 0 18px; color: #66758b; }
.tool-card .help-details summary { cursor: pointer; color: #536680; font-size: .84rem; font-weight: 620; }
.tool-card .help-details .help { margin-bottom: 0; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.editor-pane { min-width: 0; padding: 16px; border: 1px solid #e1e7f0; border-radius: 15px; background: #fbfcff; }
.editor-pane label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; color: #475a75; font-size: .78rem; font-weight: 720; letter-spacing: .07em; }
.field-hint { color: #91a0b3; font-size: .72rem; font-weight: 480; letter-spacing: 0; text-transform: none; }
.editor-pane textarea { min-height: 190px; resize: vertical; border-color: #e0e6ef !important; font-size: .93rem; line-height: 1.7; }
.editor-pane textarea[readonly] { background: #f5f8fd !important; }
.action-row { gap: 8px; margin-top: 11px; }
.action-row .btn { min-width: 0; padding: 11px 12px; font-size: .9rem; }
.action-row .btn span, .copy-row .btn span { margin-right: 5px; }
.copy-row { margin-top: 11px; }
.copy-row .btn { flex: 0 1 auto; min-width: 130px; padding: 10px 13px; font-size: .87rem; }
.editor-pane .outlabel { margin-bottom: 10px; }
/* Keep both editor panes on the same header, field and action baselines. */
.tool-card .editor-pane { display: flex; flex-direction: column; }
.tool-card .editor-pane > label,
.tool-card .editor-pane > .sample-label-row {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 10px;
}
.tool-card .editor-pane > .sample-label-row > label { min-width: 0; }
.tool-card .editor-pane textarea {
  display: block;
  height: 190px;
  margin: 0;
  padding: 12px;
}
.tool-card .editor-pane > .row {
  align-items: stretch;
  min-height: 44px;
  margin: 12px 0 0;
}
.tool-card .editor-pane > .row > .btn {
  min-height: 44px;
  padding: 10px 12px;
  font-size: .9rem;
  line-height: 1.4;
}
.tool-card .editor-pane > .row > .btn span { margin-right: 5px; }
.tool-card > .note { margin: 15px 2px 0; font-size: .78rem; }
.tool-card + .more { margin-top: 42px; }

/* Task-first tool directory inspired by high-traffic utility sites. */
.task-hub { margin-top: 34px !important; padding: 24px !important; border: 1px solid #e1e7f0 !important; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(25,47,79,.04); }
.task-hub-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.task-hub-head h2 { margin:4px 0 3px; font-size:1.45rem; }
.task-hub-head .more-sub { margin:0; }
.popular-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.popular-tool { display:flex; align-items:center; gap:10px; min-width:0; padding:12px; border:1px solid #e1e7f0; border-radius:12px; background:#fff; color:#20344f; text-decoration:none; transition:border-color .14s ease,transform .14s ease,box-shadow .14s ease; }
.popular-tool:hover,.popular-tool:focus-visible { border-color:#b9c9ff; box-shadow:0 5px 14px rgba(25,47,79,.07); transform:translateY(-1px); outline:0; }
.popular-tool[hidden],.popular-tools[hidden] { display:none; }
.popular-tool > span:nth-child(2) { flex:1; min-width:0; }
.popular-tool strong,.popular-tool small { display:block; }
.popular-tool strong { font-size:.84rem; font-weight:700; }
.popular-tool small { margin-top:2px; color:#718098; font-size:.73rem; line-height:1.35; }
.popular-tool-icon { display:grid; flex:0 0 32px; width:32px; height:32px; place-items:center; border-radius:10px; background:#edf2ff; color:#315efb; font-weight:750; }
.popular-tool-icon.teal { background:#e5f7f3; color:#078878; }
.popular-tool-icon.amber { background:#fff4df; color:#a56806; }
.browse-tools-heading { margin:0 0 10px; color:#536680; font-size:.84rem; font-weight:720; }
.tool-search { display:flex; align-items:center; gap:9px; flex:0 1 260px; min-width:190px; padding:0 12px; border:1px solid #dfe6f0; border-radius:11px; background:#fff; color:#7a8aa1; }
.tool-search:focus-within { border-color:#8ca5ff; box-shadow:0 0 0 3px rgba(49,94,251,.12); }
.tool-search > span:not(.sr-only) { font-size:1.2rem; line-height:1; }
.tool-search input { width:100%; min-width:0; padding:10px 0 !important; border:0 !important; outline:0 !important; box-shadow:none !important; background:transparent !important; font-size:.87rem; }
.task-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.task-group { min-width:0; padding:14px; border:1px solid #e2e8f1; border-radius:14px; background:#fff; }
.task-group-title { display:flex; align-items:center; gap:9px; margin:0 0 10px; }
.task-group-title h3 { margin:0; font-size:.95rem; letter-spacing:-.01em; }
.task-icon { display:grid; flex:0 0 28px; width:28px; height:28px; place-items:center; border-radius:9px; background:#edf2ff; color:#315efb; font-size:1rem; font-weight:750; }
.task-icon.teal { background:#e5f7f3; color:#078878; }
.task-icon.amber { background:#fff4df; color:#a56806; font-weight:800; }
.task-link { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; padding:10px 9px; border-top:1px solid #edf0f5; color:#20344f; text-decoration:none; transition:background .14s ease; }
.task-link:hover,.task-link:focus-visible { border-radius:9px; background:#f6f8ff; outline:0; }
.task-link[hidden],.task-group[hidden] { display:none; }
.task-link strong,.task-link small { display:block; }
.task-link strong { font-size:.84rem; font-weight:680; line-height:1.4; }
.task-link small { margin-top:2px; color:#718098; font-size:.73rem; line-height:1.45; }
.task-link.featured strong { color:#244fda; }
.task-arrow { flex:0 0 auto; color:#8292aa; font-size:.9rem; }
.tool-search-empty { margin:16px 2px 0; color:#66758b; font-size:.88rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.task-hub .more-info { margin:16px 2px 0; font-size:.82rem; }

@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 680px); padding-top: 12px !important; }
  .site-header { margin-bottom: 28px; gap:14px; }
  .site-header nav { gap:16px; }
  .site-header nav a { font-size:.82rem; }
  .header-cta { padding: 9px 11px; font-size: .82rem; }
  .home-hero { margin-bottom: 25px; }
  .home-hero h1 { font-size: clamp(2.2rem, 10vw, 3.25rem); }
  .home-hero .sub { font-size: .98rem; }
  .home-hero .notice { border-radius: 14px !important; }
  .tool-card { padding: 17px; border-radius: 18px; }
  .tool-card .controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-card .target-row { align-items: flex-start; flex-direction: column; }
  .editor-grid { grid-template-columns: 1fr; }
  .tool-card .editor-pane textarea { height: 150px; min-height: 150px; }
  .task-hub { margin-top:26px !important; padding:17px !important; }
  .task-hub-head { align-items:stretch; flex-direction:column; gap:12px; }
  .tool-search { flex:1 1 auto; width:100%; min-width:0; }
  .task-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .popular-tools { grid-template-columns:1fr; gap:8px; margin-bottom:16px; }
  .popular-tool { padding:10px 11px; }
}
@media (max-width: 560px) {
  .tool-card .editor-pane .field-hint { display: none; }
  .site-header { display:grid; grid-template-columns:minmax(0,1fr) auto; row-gap:10px; margin-bottom:24px; }
  .site-header nav { grid-column:1 / -1; grid-row:2; justify-content:flex-start; gap:22px; padding:2px 1px 6px; border-bottom:1px solid #e5eaf2; }
  .site-header nav a { padding:5px 0; }
  .header-cta { padding:8px 10px; font-size:.78rem; }
}
@media (max-width: 420px) {
  .tool-card .controls { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; }
  .action-row .btn { width: 100%; }
  .task-groups { grid-template-columns:1fr; gap:10px; }
  .task-group { padding:12px; }
}

/* Embedded PercentURL explainers */
.video-feature { margin: 2rem 0; padding: 1.2rem; border: 1px solid rgba(148,163,184,.28); border-radius: 16px; background: rgba(15,23,42,.72); }
.video-feature h2 { margin-top: 0; }
.video-feature p { color: #a8b5c7; }
.video-feature .video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #020617; }
.video-feature iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
