/*
Theme Name: SavyTools
Theme URI: https://savytools.com
Author: SavyTools
Description: Lightweight Basewell-style theme for SavyTools — free online tools with per-tool pages, an AI tools directory and an SEO blog. All file processing runs client-side in the browser.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: savytools
*/
:root {
        --bg: #F7F6F4;
        --surface: #ffffff;
        --surface-2: #F1F0EC;
        --chip: #EEEEEC;
        --ink: #111111;
        --ink-2: #55534E;
        --ink-3: #8A877F;
        --line: #E6E4DE;
        --line-strong: #D8D5CC;
        --brand: #2B7FFF;
        --brand-dark: #1663D9;
        --brand-tint: #E8F1FF;
        --btn: #1B1B1B;
        --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px -12px rgba(17, 17, 17, 0.10);
        --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 16px 40px -16px rgba(17, 17, 17, 0.13);
        --shadow-lg: 0 2px 4px rgba(17, 17, 17, 0.04), 0 32px 64px -24px rgba(17, 17, 17, 0.18);
      }
      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Archivo", system-ui, sans-serif;
        font-size: 16px;
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
      }
      a { color: inherit; }
      button { font: inherit; cursor: pointer; }
      section[id], div[id] { scroll-margin-top: 104px; }
      :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
      .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

      /* ---------- floating pill navbar ---------- */
      header.site { position: sticky; top: 14px; z-index: 50; }
      .navpill {
        display: flex; align-items: center; gap: 8px;
        background: var(--chip); border-radius: 999px;
        padding: 8px 8px 8px 22px;
        box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 14px 34px -14px rgba(17, 17, 17, 0.22);
      }
      .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
      .logo .mark {
        width: 32px; height: 32px; border-radius: 10px; flex: none;
        background: var(--btn); color: #ffffff;
        display: grid; place-items: center;
      }
      .logo .mark svg { width: 18px; height: 18px; }
      .logo em { font-style: normal; color: var(--brand); }
      nav.main { display: flex; gap: 2px; margin-left: 14px; }
      nav.main a {
        text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2);
        padding: 8px 13px; border-radius: 999px;
      }
      nav.main a:hover { color: var(--ink); background: #ffffff; }
      .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
      .btn {
        display: inline-flex; align-items: center; gap: 8px;
        border: 1px solid transparent; border-radius: 999px;
        padding: 11px 22px; font-weight: 700; font-size: 14.5px; text-decoration: none;
        transition: transform .12s ease, background .12s ease, border-color .12s ease;
      }
      .btn:active { transform: translateY(1px); }
      .btn-brand { background: var(--btn); color: #ffffff; }
      .btn-brand:hover { background: #000000; }
      .btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
      .btn-ghost:hover { border-color: var(--ink-3); }
      .btn-sm { padding: 9px 18px; }
      @media (max-width: 760px) { nav.main { display: none; } .navpill { padding-left: 16px; } }

      /* ---------- hero ---------- */
      .hero { text-align: center; }
      .hero-in { padding-top: 74px; padding-bottom: 10px; }
      .hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        background: var(--brand); color: #ffffff;
        font-size: 13px; font-weight: 700; letter-spacing: .01em;
        padding: 7px 15px; border-radius: 999px; margin-bottom: 26px;
      }
      .hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #ffffff; flex: none; }
      .hero h1 {
        font-weight: 800; letter-spacing: -0.035em;
        font-size: clamp(40px, 6.2vw, 70px); line-height: 1.03;
        margin: 0 auto 20px; max-width: 15ch; color: var(--ink);
      }
      .hero h1 .amp {
        font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500;
        color: var(--brand); letter-spacing: -0.01em;
      }
      .hero p.lede { color: var(--ink-2); font-size: 18.5px; line-height: 1.6; max-width: 58ch; margin: 0 auto 30px; }
      .hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
      .hero-cta .btn { padding: 14px 28px; font-size: 15.5px; }
      .popular { margin-top: 30px; font-size: 14px; color: var(--ink-3); font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
      .popular button {
        background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
        border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600;
      }
      .popular button:hover { color: var(--ink); border-color: var(--ink-3); }
      .hero-stats { display: flex; gap: 12px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }
      .hero-stats .stat {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 18px; padding: 15px 22px; text-align: left;
        box-shadow: var(--shadow-sm);
      }
      .hero-stats .stat b { font-weight: 800; letter-spacing: -0.02em; font-size: 26px; display: block; line-height: 1.1; color: var(--ink); }
      .hero-stats .stat span { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }

      /* ---------- sections ---------- */
      section.block { padding: 58px 0 8px; }
      .kicker {
        display: inline-flex; align-items: center;
        background: var(--brand-tint); color: var(--brand-dark);
        font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
        margin-bottom: 14px;
      }
      .sec-head { margin-bottom: 6px; }
      .sec-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
      .sec-head h2 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(27px, 3.4vw, 38px); line-height: 1.12; margin: 0; color: var(--ink); }
      .sec-head .note { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
      .sec-sub { color: var(--ink-2); max-width: 62ch; margin: 0 0 24px; font-size: 16.5px; }

      /* blue band + spotlight */
      .band { background: var(--brand); margin-top: 64px; padding: 64px 0 68px; }
      .band .kicker { background: #ffffff; color: var(--brand-dark); }
      .band .sec-head h2 { color: #ffffff; }
      .band .sec-head .note { color: rgba(255, 255, 255, 0.78); }
      .spotlight {
        display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
        background: var(--surface); border-radius: 24px; overflow: hidden;
        box-shadow: 0 24px 48px -20px rgba(10, 50, 120, 0.45);
        margin-top: 10px;
      }
      .spot-main { padding: 34px 36px; }
      .spot-badge {
        display: inline-flex; align-items: center; gap: 7px;
        background: var(--brand-tint); color: var(--brand-dark);
        font-size: 12px; font-weight: 700;
        letter-spacing: .07em; text-transform: uppercase;
        padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
      }
      .spot-main h3 { font-weight: 800; font-size: 32px; margin: 0 0 4px; letter-spacing: -0.025em; color: var(--ink); }
      .spot-main .maker { color: var(--ink-3); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
      .spot-main p { color: var(--ink-2); margin: 0 0 18px; max-width: 52ch; }
      .spot-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
      .spot-points li { display: flex; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
      .spot-points li svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 2px; }
      .spot-side {
        background: var(--surface-2); border-left: 1px solid var(--line);
        padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; justify-content: center;
      }
      .score-row { display: flex; align-items: center; gap: 16px; }
      .score-big { font-weight: 900; letter-spacing: -0.03em; font-size: 54px; line-height: 1; color: var(--ink); }
      .stars { color: var(--brand); font-size: 17px; letter-spacing: 2px; }
      .score-row small { color: var(--ink-3); font-weight: 600; display: block; }
      .fact { border-top: 1px dashed var(--line-strong); padding-top: 12px; font-size: 14.5px; color: var(--ink); }
      .fact b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
      @media (max-width: 820px) {
        .spotlight { grid-template-columns: 1fr; }
        .spot-side { border-left: 0; border-top: 1px solid var(--line); }
        .spot-main { padding: 28px 24px; }
      }

      /* filters */
      .filters { position: sticky; top: 96px; z-index: 30; background: var(--bg); padding: 16px 0 12px; }
      .chips { display: flex; gap: 8px; flex-wrap: wrap; }
      .chip {
        border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
        border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14px;
      }
      .chip:hover { border-color: var(--ink-3); color: var(--ink); }
      .chip.on { background: var(--ink); color: #ffffff; border-color: var(--ink); }
      .filter-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
      .filter-row label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
      .filter-row select {
        font: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
      }
      .filter-row input[type="search"] {
        font: inherit; font-weight: 500; font-size: 14.5px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
        flex: 1; min-width: 200px; outline: 0;
      }
      .filter-row input[type="search"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.16); }
      .result-count { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 14px; }

      /* directory layout */
      .dir-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; padding-bottom: 20px; }
      @media (max-width: 980px) { .dir-layout { grid-template-columns: 1fr; } }
      .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 18px; }
      .card {
        background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
        padding: 22px; display: flex; flex-direction: column; gap: 10px;
        transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
      }
      .card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
      .card-top { display: flex; align-items: flex-start; gap: 12px; }
      .tile {
        width: 48px; height: 48px; border-radius: 13px; flex: none;
        display: grid; place-items: center;
        font-weight: 800; font-size: 20px; color: #fff;
      }
      .card h3 { font-weight: 700; font-size: 18.5px; margin: 0; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
      .card .maker { color: var(--ink-3); font-size: 13px; font-weight: 600; }
      .save-btn {
        margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 10px;
        width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); flex: none;
      }
      .save-btn svg { width: 17px; height: 17px; }
      .save-btn.saved { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-tint); }
      .card p.desc { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
      .tags { display: flex; flex-wrap: wrap; gap: 6px; }
      .tag { background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
      .card-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 2px; }
      .price { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
      .price.free { background: var(--brand-tint); color: var(--brand-dark); }
      .price.freemium { background: var(--surface-2); color: var(--ink-2); }
      .price.paid { background: #ECEAE3; color: var(--ink); }
      .rating { font-weight: 800; font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
      .rating svg { width: 15px; height: 15px; color: var(--brand); }
      .card-foot .visit { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--brand-dark); text-decoration: none; }
      .card-foot .visit:hover { text-decoration: underline; }
      .details-link { background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
      .empty { border: 1.5px dashed var(--line-strong); border-radius: 20px; padding: 44px 24px; text-align: center; color: var(--ink-2); background: var(--surface); }
      .empty b { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); display: block; margin-bottom: 6px; }

      /* sidebar */
      aside.side { display: grid; gap: 22px; }
      .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
      .side-box h3 { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink); }
      .trend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: tr; }
      .trend li { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 12px; cursor: pointer; }
      .trend li:hover { background: var(--surface-2); }
      .trend .rank { font-weight: 900; font-size: 17px; color: var(--brand); width: 20px; text-align: center; flex: none; }
      .trend .t-tile { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
      .trend .t-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
      .trend .t-cat { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
      .trend .t-score { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--brand-dark); flex: none; }
      .side-box p.small { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
      .news-form { display: grid; gap: 9px; }
      .news-form input {
        font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
        background: var(--bg); color: var(--ink); outline: 0; width: 100%;
      }
      .news-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.16); }
      .news-ok { background: var(--brand-tint); color: var(--brand-dark); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; display: none; }

      /* categories */
      .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
      .cat-card {
        text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
        padding: 20px; display: flex; flex-direction: column; gap: 6px;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      }
      .cat-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
      .cat-card svg {
        width: 42px; height: 42px; padding: 9px; border-radius: 12px; color: var(--brand-dark);
        background: var(--surface-2);
      }
      .cat-card b { font-weight: 700; font-size: 16.5px; color: var(--ink); }
      .cat-card span { color: var(--ink-3); font-size: 13.5px; font-weight: 500; }

      /* free tools — grouped bento grids */
      .ft-search { margin: 4px 0 22px; }
      .ft-search input {
        width: 100%; font: inherit; font-weight: 500; font-size: 15.5px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; outline: 0;
      }
      .ft-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.16); }
      .tool-groups { margin-bottom: 20px; }
      .tool-group { margin-bottom: 24px; }
      .tool-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
      .tool-group-head h3 { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
      .tool-group-head span { color: var(--ink-3); font-size: 13px; font-weight: 600; }
      .tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
      @media (min-width: 700px) {
        .tool-grid { grid-template-columns: repeat(4, 1fr); }
        .tool-card.feature { grid-column: span 2; }
      }
      @media (max-width: 400px) { .tool-grid { grid-template-columns: 1fr; } }
      .ft-none { display: none; border: 1.5px dashed var(--line-strong); border-radius: 20px; padding: 30px 24px; text-align: center; color: var(--ink-2); background: var(--surface); margin-bottom: 20px; font-weight: 600; }
      .tool-card {
        text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
        padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink);
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
      }
      .tool-card svg {
        width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--ink);
        background: var(--surface-2);
      }
      .tool-card b { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.25; }
      .tool-card span { color: var(--ink-3); font-size: 13px; font-weight: 500; line-height: 1.45; }
      .tool-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
      .tool-card.on { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm); }
      .tool-card.on svg { background: var(--brand-tint); color: var(--brand-dark); }
      .workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); }
      .tool-panel { display: none; }
      .tool-panel.on { display: block; }
      .tool-panel h3 { font-weight: 800; font-size: 22px; margin: 0 0 4px; letter-spacing: -0.02em; color: var(--ink); }
      .tool-panel h4 { font-weight: 700; font-size: 15px; margin: 18px 0 8px; color: var(--ink); }
      .tool-panel .hint { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; max-width: 64ch; }
      .ta {
        width: 100%; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ink);
        background: #FBFAF8; border: 1px solid var(--line); border-radius: 14px;
        padding: 14px 16px; outline: 0; resize: vertical; min-height: 120px;
      }
      .ta:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.16); }
      .ta[readonly] { background: var(--surface-2); }
      .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
      .tbtn {
        border: 1px solid transparent; background: var(--surface-2); color: var(--ink);
        border-radius: 999px; padding: 9px 17px; font-weight: 600; font-size: 14px;
        transition: background .12s ease;
      }
      .tbtn:hover { background: #E9E7E0; }
      .tbtn:active { transform: translateY(1px); }
      .tbtn.primary { background: var(--btn); color: #ffffff; }
      .tbtn.primary:hover { background: #000000; }
      .tbtn.on { background: var(--ink); color: #ffffff; }
      .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; }
      .stat-box { background: var(--surface-2); border-radius: 14px; padding: 13px 15px; }
      .stat-box b { font-weight: 800; letter-spacing: -0.02em; font-size: 23px; display: block; line-height: 1.15; color: var(--ink); }
      .stat-box span { color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
      .fld { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
      .fld input[type="number"], .fld select {
        font: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
      }
      .fld input[type="number"] { width: 76px; }
      .tool-msg { font-family: "IBM Plex Mono", monospace; font-size: 13px; margin-top: 12px; min-height: 18px; color: var(--ink-2); }
      .tool-msg.err { color: #D64545; }
      .tool-msg.ok { color: var(--brand-dark); }
      .pw-out { display: flex; gap: 10px; align-items: stretch; }
      .pw-out code {
        flex: 1; min-width: 0; font-family: "IBM Plex Mono", monospace; font-size: 16.5px; font-weight: 600;
        background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
        padding: 13px 16px; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; color: var(--ink);
      }
      .pw-out .tbtn { flex: none; }
      input[type="range"] { width: 100%; accent-color: var(--brand); margin-top: 6px; }
      .pw-meter { height: 8px; background: var(--chip); border-radius: 99px; margin-top: 18px; overflow: hidden; }
      .pw-meter div { height: 100%; width: 0; background: var(--brand); transition: width .25s ease, background .25s ease; }
      .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
      @media (max-width: 700px) { .duo { grid-template-columns: 1fr; } .workspace { padding: 20px; } }
      .sim-score { font-weight: 900; letter-spacing: -0.03em; font-size: 46px; line-height: 1; color: var(--ink); }

      /* file & calculator tools */
      .drop { display: block; border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 22px; text-align: center; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; background: #FBFAF8; }
      .drop:hover, .drop.over { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); }
      .drop input { display: block; margin: 10px auto 0; font-size: 13px; max-width: 100%; }
      .drop .drop-big { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; }
      .file-meta { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
      .file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
      .file-list li { display: flex; gap: 10px; align-items: baseline; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; min-width: 0; }
      .file-list li .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .file-list li span { margin-left: auto; color: var(--ink-3); font-family: "IBM Plex Mono", monospace; font-size: 12.5px; flex: none; }
      .thumb { max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--line); margin-top: 14px; display: none; }
      .seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
      .seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
      .seg button.on { background: var(--ink); color: #fff; }
      .tbtn[disabled] { opacity: .55; cursor: not-allowed; }
      .api-note { background: var(--brand-tint); border-radius: 14px; padding: 15px 17px; color: var(--ink); font-size: 14.5px; margin-bottom: 16px; }
      .api-note b { display: block; margin-bottom: 3px; }
      .limit-row { margin-top: 12px; }
      .limit-row .limit-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
      .limit-row .limit-head b { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-weight: 600; flex: none; }
      .limit-bar { height: 8px; background: var(--chip); border-radius: 99px; margin-top: 6px; overflow: hidden; }
      .limit-bar div { height: 100%; width: 0; background: var(--brand); transition: width .2s ease; }
      .limit-row.over .limit-bar div { background: #D64545; }
      .limit-row.over .limit-head b { color: #D64545; }
      .qr-box { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-height: 180px; margin-top: 14px; color: var(--ink-3); font-weight: 600; text-align: center; }
      .qr-box img, .qr-box canvas { max-width: 100%; height: auto; }
      .fld input[type="date"], .fld input[type="text"] { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; }
      .fld input.wide { width: 128px; }
      .calc-out { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
      .calc-block { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
      .calc-block h4 { margin: 0 0 10px; }
      .big-input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; outline: 0; }
      .big-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.16); }

      /* blog */
      .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 10px; }
      @media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
      .post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
      .post:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
      .post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
      .post-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
      .post .meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); font-weight: 700; }
      .post h3 { font-weight: 700; font-size: 20px; line-height: 1.28; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
      .post p { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
      .post .read { font-weight: 700; font-size: 14px; color: var(--brand-dark); }

      /* footer */
      footer.site { margin-top: 72px; background: #111111; color: #F4F3F0; }
      .foot-in { padding: 48px 0 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
      @media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } }
      footer.site h4 { font-weight: 700; margin: 0 0 12px; font-size: 15px; color: #ffffff; }
      footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
      footer.site ul a { color: #A8A49B; text-decoration: none; font-size: 14.5px; font-weight: 500; }
      footer.site ul a:hover { color: #ffffff; }
      footer.site .blurb { color: #A8A49B; font-size: 14.5px; max-width: 34ch; margin: 12px 0 0; }
      footer.site .logo { color: #ffffff; }
      footer.site .logo .mark { background: #ffffff; color: #111111; }
      footer.site .logo em { color: #7DB4FF; }
      .foot-base { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: #A8A49B; font-size: 13.5px; font-weight: 500; }
      .foot-base .status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #D8D5CC; font-weight: 600; }
      .foot-base .status .dot { width: 8px; height: 8px; border-radius: 50%; background: #2FBF71; flex: none; }

      /* modal */
      .modal-back {
        position: fixed; inset: 0; background: rgba(17, 17, 17, 0.5); z-index: 60;
        display: none; align-items: flex-end; justify-content: center; padding: 0;
      }
      .modal-back.open { display: flex; }
      .modal {
        background: var(--surface); color: var(--ink); width: 100%; max-width: 620px; max-height: 88vh; overflow: auto;
        border-radius: 24px 24px 0 0; padding: 28px 30px 32px;
        box-shadow: var(--shadow-lg);
      }
      @media (min-width: 700px) {
        .modal-back { align-items: center; padding: 24px; }
        .modal { border-radius: 24px; }
      }
      .modal-head { display: flex; gap: 14px; align-items: flex-start; }
      .modal-head h3 { font-weight: 800; font-size: 26px; margin: 0; letter-spacing: -0.025em; color: var(--ink); }
      .modal-close { margin-left: auto; background: var(--surface-2); border: 0; width: 36px; height: 36px; border-radius: 999px; font-size: 15px; color: var(--ink); flex: none; }
      .modal-close:hover { background: #E9E7E0; }
      .modal .verdict { background: var(--surface-2); border-radius: 16px; padding: 15px 17px; font-size: 15px; margin: 18px 0; color: var(--ink-2); }
      .modal .verdict b { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-dark); display: block; margin-bottom: 4px; }
      .modal h4 { font-weight: 700; margin: 18px 0 8px; font-size: 16px; color: var(--ink); }
      .modal ul.feats { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 5px; font-size: 15px; }
      .modal .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
      .modal .facts .fact { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
      .modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        * { transition: none !important; }
      }
/* ---------- WordPress additions (same tokens) ---------- */
a.tool-card { text-decoration: none; color: inherit; display: block; }
a.tool-card:hover { text-decoration: none; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.st-grid .tool-card svg { width: 26px; height: 26px; }
.st-search { width: 100%; max-width: 560px; display: block; margin: 0 auto 28px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 15.5px; }
.st-search:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.st-none { display: none; text-align: center; color: var(--ink-2); padding: 24px; }
.st-none.show { display: block; }
.dir-search { width: 100%; max-width: 560px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 15.5px; }
.dir-search:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.dir-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.dir-chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.dir-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dir-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.dir-card h3 { margin: 0 0 4px; font-size: 19px; }
.dir-card .dir-maker { color: var(--ink-2); font-size: 14px; margin-bottom: 10px; }
.dir-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.dir-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.dir-meta span { background: var(--surface-2); border-radius: 999px; padding: 4px 11px; }
.dir-card .dir-best { font-size: 13.5px; margin-top: 12px; }
.dir-card .dir-best b { color: var(--ink); }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content h2 { font-size: 26px; margin: 34px 0 12px; }
.entry-content h3 { font-size: 20px; margin: 26px 0 10px; }
.entry-content p, .entry-content li { color: var(--ink-2); }
.entry-content a { color: var(--brand); }
.post-list { display: grid; gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }
.post-card h3 { margin: 0 0 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card .post-date { color: var(--ink-3); font-size: 13.5px; }
.post-card p { color: var(--ink-2); font-size: 14.5px; }
.page-head { text-align: center; padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.02em; margin: 0; }
.tool-page-wrap .workspace { margin-bottom: 36px; }
body.admin-bar header.site { top: 46px; }
@media (max-width: 782px) { body.admin-bar header.site { top: 60px; } }
.foot-contact { color: #A8A49B; font-size: 14.5px; line-height: 1.9; }
.foot-contact a { color: #A8A49B; text-decoration: none; }
.foot-contact a:hover { color: #fff; }

.spot-in { max-width: 860px; }
.spot-in h3 { margin: 0 0 10px; font-size: 28px; }
.spot-in h3 span { display: block; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); margin-top: 4px; }
.spot-in p { color: rgba(255,255,255,.92); }

/* Social icon buttons (header + footer) — same look as SavyGames */
.header-actions{display:flex;align-items:center;gap:8px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#111;color:#fff;transition:background .15s ease,transform .15s ease}
.icon-btn:hover{background:#2B7FFF;transform:translateY(-1px)}
.foot-social{display:flex;gap:10px;margin:12px 0 6px}
.foot-social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;transition:background .15s ease}
.foot-social a:hover{background:#2B7FFF}
