/* Free tools: shares styles.css (tokens, header, footer, buttons, .closing) and adds the tool layouts. */
.tools-page{font-size:15px}
.tools-page [hidden]{display:none!important}
.tools-page .site-header nav a[aria-current=page]{color:#1d2a14;font-weight:700}
.tools-main{padding:34px 0 70px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#465b37;margin-bottom:26px}
.crumbs a{text-decoration:underline;text-underline-offset:3px}
.tool-hero{max-width:760px;margin-bottom:30px}
.tool-hero .eyebrow{font-size:11px;letter-spacing:1.4px}
.tool-hero h1{font-size:50px;line-height:1.08;font-weight:550;letter-spacing:-2.2px;margin:16px 0 18px}
.tool-lede{font-size:17px;line-height:1.65;color:#35452d}
.local-note{display:inline-flex;gap:10px;align-items:flex-start;margin-top:20px;padding:10px 14px;border:1px solid #cbd6b7;background:#edf1e1;font-size:14px;line-height:1.5;color:#2f4420}
.local-note span{font-weight:700}
.tool-card{background:#fff;border:1px solid #aab59d;padding:26px;margin-bottom:46px;min-width:0}
.tool-card h2,.tool-card h3{font-size:20px;letter-spacing:-.4px;font-weight:650;margin:0 0 14px}
.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.tool-grid>*{min-width:0}
.tool-result{min-width:0;border-top:1px solid #cbd6b7;padding-top:16px}
.tool-result:focus-visible{outline:2px solid #354d24;outline-offset:4px}
.tool-grid .tool-result{padding-top:12px}
.sz-coverage{margin-top:10px}
.field{display:grid;gap:7px;margin-bottom:16px;min-width:0}
.field>label,.field-label,.tool-card legend{font-size:13px;font-weight:650;color:#2f4420}
.tool-card input[type=text],.tool-card input[type=number],.tool-card select,.tool-card textarea{width:100%;font:inherit;font-size:15px;color:var(--ink);background:#fffef9;border:1px solid #7d8c6c;border-radius:0;padding:10px 12px;min-width:0}
.tool-card textarea{min-height:300px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.55;white-space:pre;overflow:auto}
.tool-card input:focus-visible,.tool-card select:focus-visible,.tool-card textarea:focus-visible{outline:3px solid #354d24;outline-offset:1px}
.tool-card textarea.dragging{border-color:#354d24;background:#edf1e1}
.hint{font-size:13px;color:#4d5b43;line-height:1.5}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:4px}
.tools-page .button{font-size:14px;gap:14px;padding:12px 16px;border:1px solid var(--ink);cursor:pointer;font-family:inherit;line-height:1.2}
.tools-page .button.light{background:#fff;color:var(--ink)}
.tools-page .button.light:hover{background:#e9eddf}
.tools-page .button.dark:hover{background:#455b34}
.tools-page .button[disabled],.tools-page .button[aria-disabled=true]{opacity:.45;cursor:not-allowed;pointer-events:none}
.status{font-size:14px;min-height:1.5em;color:#2f4420;margin-top:10px;line-height:1.5}
.status.error{color:#8a2d1a}
.status+fieldset.segmented{margin-top:8px}
.sz-heading{margin-top:22px!important}
fieldset.segmented{border:0;padding:0;margin:0 0 18px;display:flex;flex-wrap:wrap;gap:0;min-width:0}
fieldset.segmented legend{width:100%;margin-bottom:8px;padding:0}
.segmented label{position:relative;display:inline-flex}
.segmented input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.segmented label span{display:block;padding:10px 14px;border:1px solid #7d8c6c;margin:0 -1px -1px 0;font-size:14px;background:#fffef9;cursor:pointer}
.segmented input:checked+span{background:var(--ink);color:#f3f4eb;border-color:var(--ink)}
.segmented input:focus-visible+span{outline:3px solid #354d24;outline-offset:2px;position:relative;z-index:1}
.check{display:flex;gap:9px;align-items:center;font-size:14px;cursor:pointer}
.check input{width:18px;height:18px;accent-color:#354d24;margin:0}
.result-big{font-family:Manrope,sans-serif;font-size:40px;font-weight:650;letter-spacing:-1.5px;line-height:1.1;overflow-wrap:anywhere}
.result-list{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:12px 0 0;font-size:14px}
.result-list dt{color:#4d5b43}
.result-list dd{margin:0;font-weight:600}
.presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.presets button{font:inherit;font-size:14px;padding:8px 12px;border:1px solid #7d8c6c;background:#fffef9;color:var(--ink);cursor:pointer;border-radius:0}
.presets button:hover,.presets button[aria-pressed=true]{background:#e9eddf;border-color:#465b37}
.pair{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}
.pair .times{padding-bottom:12px;color:#465b37}
.shape-preview{display:grid;place-items:center;height:170px;background:#f3f5ec;border:1px dashed #b8c3a8;margin-top:16px}
.shape-preview i{display:block;background:#dfe7cd;border:2px solid #62764a;max-width:90%;max-height:150px}
.tool-notes{max-width:820px;margin-bottom:56px}
.tool-notes h2{font-size:30px;letter-spacing:-1px;margin-bottom:18px}
.tool-notes>p{font-size:15px;line-height:1.7;margin-bottom:14px;color:#35452d}
.tools-page .faq-list summary{font-size:16px;line-height:1.5}
.tools-page .faq-list details p{font-size:15px;line-height:1.7;padding-right:0}
.related{margin-bottom:56px}
.related h2{font-size:30px;letter-spacing:-1px;margin-bottom:18px}
.tool-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.tool-cards a{display:grid;gap:8px;height:100%;background:#fff;border:1px solid #aab59d;padding:20px}
.tool-cards a:hover{background:#f6f8f0;border-color:#465b37}
.tool-cards strong{font-family:Manrope,sans-serif;font-size:18px;letter-spacing:-.3px}
.tool-cards a>span:last-child{font-size:14px;line-height:1.55;color:#4d5b43}
.tool-card-icon{font-size:20px;color:#465b37}
.tools-index .tool-cards{margin-bottom:56px}
.tools-index .tool-cards a{padding:26px}
.tools-closing{margin-top:10px}
.tools-closing .closing-spark{font-size:110px;left:4%;top:28px;opacity:.9}
.tools-closing>:not(.closing-spark){position:relative}
.tools-closing h2{font-size:50px}
.tools-closing p{font-size:15px}
.tools-closing small{font-size:12px}
/* Safe zones */
.sz-layout{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:30px;align-items:start}
.sz-stage{display:grid;justify-items:center;gap:12px}
.sz-frame{position:relative;width:min(100%,calc(72vh * 9 / 16));aspect-ratio:9/16;background:repeating-linear-gradient(135deg,#eef1e6 0 12px,#e6eadb 12px 24px);border:1px solid #7d8c6c;overflow:hidden}
.sz-frame img,.sz-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sz-frame.fit img,.sz-frame.fit video{object-fit:contain;background:#111}
.sz-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;font-size:14px;color:#465b37}
.sz-zone{position:absolute;background:repeating-linear-gradient(135deg,rgba(110,20,8,.62) 0 7px,rgba(110,20,8,.38) 7px 14px);border:1px solid rgba(90,15,5,.85);color:#fff;font-size:11px;line-height:1.25;padding:4px 6px;display:flex;align-items:flex-start;text-shadow:0 1px 2px #000a;pointer-events:none;overflow:hidden}
.sz-zone.rail{writing-mode:vertical-rl;align-items:center;justify-content:center}
.sz-safe{position:absolute;border:2px dashed #fff;outline:1px dashed #1d2a14;pointer-events:none}
.sz-frame.no-labels .sz-zone{color:transparent;text-shadow:none}
.sz-legend{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px;font-size:14px;line-height:1.45}
.sz-legend li{display:flex;gap:10px}
.sz-legend b{flex:none;width:14px;height:14px;margin-top:3px;background:repeating-linear-gradient(135deg,rgba(110,20,8,.62) 0 3px,rgba(110,20,8,.38) 3px 6px);border:1px solid rgba(90,15,5,.85)}
.sz-legend .safe b{background:none;border:2px dashed #1d2a14}
/* Social sizes */
.size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-bottom:18px}
.size-card{background:#fff;border:1px solid #aab59d;padding:22px;min-width:0}
.size-card h2{font-size:21px;letter-spacing:-.4px;margin-bottom:14px}
.size-card dl{display:grid;grid-template-columns:minmax(110px,auto) 1fr;gap:8px 14px;margin:0;font-size:14px;line-height:1.5}
.size-card dt{color:#4d5b43}
.size-card dd{margin:0;font-weight:600}
.size-card p{font-size:13px;line-height:1.55;color:#4d5b43;margin-top:14px}
.checked-note{font-size:14px;color:#2f4420;margin-bottom:46px}
/* Frame grabber */
.fg-video{width:100%;max-height:60vh;background:#111;display:block}
.fg-drop{display:grid;place-items:center;text-align:center;gap:12px;min-height:220px;border:1px dashed #7d8c6c;background:#f6f8f0;padding:24px;font-size:15px}
.fg-drop.dragging{background:#e9eddf;border-color:#354d24}
.fg-controls{display:grid;gap:14px;margin-top:16px}
.fg-scrub{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}
.fg-scrub input{width:100%;accent-color:#354d24}
.fg-time{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;font-variant-numeric:tabular-nums}
.fg-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.fg-row .field{margin:0}
.fg-shot{margin-top:20px;display:grid;gap:10px}
.fg-shot img{max-width:100%;max-height:50vh;border:1px solid #7d8c6c;justify-self:start}
/* YouTube titles */
.yt-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:22px;margin-top:22px}
.yt-preview{min-width:0}
.yt-preview h3{font-size:14px;font-family:'DM Sans',sans-serif;font-weight:650;margin:0 0 8px;color:#2f4420}
/* Each title has the width it typically gets on YouTube, so the cut-off matches whatever screen this page is on. */
.yt-mock{background:#fff;border:1px solid #e0e3d7;padding:12px;overflow-x:auto}
.yt-card{width:max-content}
.yt-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#dfe7cd,#c9d4b4);margin-bottom:10px;width:100%}
.yt-title{font-family:Roboto,Arial,sans-serif;color:#0f0f0f;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.yt-meta{font-family:Roboto,Arial,sans-serif;font-size:12px;color:#606060;margin-top:4px}
[data-layout=home] .yt-title{width:330px;font-size:16px;line-height:22px;font-weight:500}
[data-layout=phone] .yt-title{width:300px;font-size:14px;line-height:20px}
[data-layout=search] .yt-card,[data-layout=side] .yt-card{display:grid;grid-template-columns:auto auto;gap:10px;align-items:start}
[data-layout=search] .yt-thumb{width:160px;margin:0}
[data-layout=search] .yt-title{width:540px;font-size:18px;line-height:26px}
[data-layout=side] .yt-thumb{width:168px;margin:0}
[data-layout=side] .yt-title{width:226px;font-size:14px;line-height:20px;font-weight:500}
.yt-verdict{font-size:13px;margin-top:8px;color:#2f4420}
.yt-verdict.cut{color:#8a2d1a}
.yt-count{font-variant-numeric:tabular-nums}
.yt-count.over{color:#8a2d1a;font-weight:700}
@media(max-width:850px){.tool-grid,.sz-layout{grid-template-columns:1fr}
.tool-hero h1{font-size:40px;letter-spacing:-1.6px}}
@media(max-width:600px){.tools-main{padding-top:22px}
.tool-hero h1{font-size:34px;letter-spacing:-1.2px}
.tool-lede{font-size:16px}
.tool-card{padding:16px;margin-inline:0}
.tool-card textarea{min-height:200px}
.result-big{font-size:32px}
.tools-closing h2{font-size:38px}
.size-card dl{grid-template-columns:1fr;gap:2px}
.size-card dd{margin-bottom:8px}
.tool-cards{grid-template-columns:1fr}
.sz-frame{width:min(100%,calc(64vh * 9 / 16))}}
/* Video tools (video-tools.js) */
.vt-drop{display:grid;place-items:center;text-align:center;gap:12px;min-height:200px;border:1px dashed #7d8c6c;background:#f6f8f0;padding:24px;font-size:15px}
.vt-drop.dragging{background:#e9eddf;border-color:#354d24}
.vt-drop .hint{margin:0}
.vt-picked{font-size:14px;font-weight:600;margin:0 0 16px;overflow-wrap:anywhere}
.vt-options{display:grid;gap:4px;margin-bottom:8px}
.vt-video{width:100%;max-height:52vh;background:#111;display:block;margin-bottom:16px}
.vt-range{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 18px}
.vt-range .field{grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-bottom:6px}
.vt-range .field>label{grid-column:1/-1}
.tools-page .button.small{padding:9px 12px;font-size:13px;gap:8px}
.vt-run{border-top:1px solid #dde3d0;margin-top:14px;padding-top:16px}
.vt-engine{margin:0 0 12px}
.vt-progress{display:flex;gap:12px;align-items:center;margin-top:14px}
.vt-progress progress{flex:1;height:10px;accent-color:#354d24;min-width:0}
.vt-progress span{font-size:13px;font-variant-numeric:tabular-nums;min-width:3.5em;text-align:right}
.vt-result{margin-top:18px;display:grid;gap:10px}
.vt-result h2{margin:0}
.vt-preview video,.vt-preview img{max-width:100%;max-height:56vh;display:block;background:#111;border:1px solid #7d8c6c}
.vt-preview audio{width:100%;max-width:520px}
.vt-result .hint{overflow-wrap:anywhere;margin:0}
.vt-options output{font-size:14px;font-weight:600}
.vt-options input[type=range]{width:100%;accent-color:#354d24}
.rv-stage{display:grid;place-items:center;background:#111;height:min(52vh,420px);overflow:hidden;margin-bottom:16px}
.rv-stage .rv-video{width:100%;height:100%;object-fit:contain;margin:0;max-height:none;transition:transform .2s}
.mv-heading{margin-bottom:8px!important}
.mv-list{list-style:decimal inside;margin:0 0 12px;padding:0;display:grid;gap:8px}
.mv-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px;align-items:center;padding:8px 10px;border:1px solid #dde3d0;background:#fbfcf7;font-size:14px}
.mv-list li span{overflow-wrap:anywhere}
.tool-card textarea.plain,.cp-layout textarea,.ap-layout textarea{min-height:0;font-family:inherit;font-size:15px;line-height:1.5;white-space:pre-wrap}
/* Caption style previewer */
.cp-layout,.ap-layout{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);gap:30px;align-items:start}
.cp-stage,.ap-stage{display:grid;justify-items:center;gap:12px;position:sticky;top:12px}
.cp-frame{position:relative;width:min(100%,calc(70vh * 9 / 16));aspect-ratio:9/16;overflow:hidden;background:#2b3a2a;container-type:inline-size;border:1px solid #7d8c6c}
.cp-scene{position:absolute;inset:0;background:linear-gradient(180deg,#9cc0d6 0%,#d9c9a8 52%,#7c8f5a 53%,#4d6138 100%)}
.cp-scene span{position:absolute;border-radius:50%}
.cp-scene span:nth-child(1){width:34%;aspect-ratio:1;left:58%;top:12%;background:#fbe7b0;opacity:.85}
.cp-scene span:nth-child(2){width:120%;height:30%;left:-30%;top:40%;background:#6f8a5d;border-radius:50% 50% 0 0}
.cp-scene span:nth-child(3){width:28%;height:46%;left:14%;top:38%;background:#2f3b2b;border-radius:40% 40% 8% 8%}
.cp-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cp-caption{position:absolute;left:8%;right:8%;display:grid;justify-items:center;gap:.15em;text-align:center;font-family:Manrope,'DM Sans',sans-serif;font-weight:800;font-size:calc(var(--cp-size,6.5) * 1cqw);line-height:1.12;color:var(--cp-color,#fff)}
.cp-caption.pos-top{top:16%}
.cp-caption.pos-middle{top:50%;transform:translateY(-50%)}
.cp-caption.pos-bottom{top:56%}
.cp-caption.caps{text-transform:uppercase}
.cp-line{display:block;max-width:100%}
.cp-word{display:inline-block;padding:0 .08em;border-radius:.12em}
.cp-caption.look-bold .cp-word{text-shadow:0 .06em .18em rgba(0,0,0,.7)}
.cp-caption.look-outline .cp-word{-webkit-text-stroke:.09em var(--cp-accent,#111);paint-order:stroke fill}
.cp-caption.look-box .cp-line{background:var(--cp-accent,#111);padding:.08em .3em;border-radius:.18em}
.cp-caption.look-clean{font-weight:600}
.cp-caption.look-clean .cp-word{text-shadow:0 1px 3px rgba(0,0,0,.55)}
.cp-caption.hl-word .cp-word.on{color:var(--cp-hl,#ffd84d)}
.cp-caption.hl-pill .cp-word.on{background:var(--cp-hl,#ffd84d);color:var(--cp-accent,#111);-webkit-text-stroke:0;text-shadow:none}
.cp-frame.show-safe::after{content:'';position:absolute;left:11.111%;right:27.778%;top:12.5%;bottom:34.375%;border:2px dashed #fff;outline:1px dashed #1d2a14;pointer-events:none}
.cp-colours{display:flex;flex-wrap:wrap;gap:12px}
.cp-colours .field{margin-bottom:10px}
.cp-colours input[type=color]{width:64px;height:40px;padding:2px;border:1px solid #7d8c6c;background:#fffef9}
/* Ad preview mockup: a neutral, generic feed frame (no app's logo or design) */
.ap-phone{--fg:#16181a;--bg:#fff;--soft:#5f6368;position:relative;width:min(100%,340px);border:10px solid #1d1f22;border-radius:30px;background:var(--bg);color:var(--fg);overflow:hidden;font-family:'DM Sans',system-ui,sans-serif;display:flex;flex-direction:column}
.ap-phone.dark{--fg:#f4f4f2;--bg:#101112;--soft:#b5b8bb}
.ap-media{position:relative;background:#2a2d30;overflow:hidden;width:100%}
.ap-media img,.ap-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ap-empty{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;font-size:13px;color:#d7dad0}
.ap-head{display:flex;align-items:center;gap:9px;padding:10px 12px;font-size:13px;line-height:1.25}
.ap-head small{display:block;color:var(--soft);font-size:11px}
.ap-avatar{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#7d8c6c;color:#fff;font-weight:700;font-size:14px}
.ap-dots{margin-left:auto;color:var(--soft);letter-spacing:1px}
.ap-rail{display:none}
.ap-foot{padding:4px 12px 14px;display:grid;gap:10px}
.ap-caption{font-size:13px;line-height:1.45;margin:0;overflow-wrap:anywhere;color:inherit}
.ap-more{border:0;background:none;color:var(--soft);font:inherit;padding:0 0 0 4px;cursor:pointer;text-decoration:underline}
.ap-cta{display:block;text-align:center;font-size:13px;font-weight:700;padding:9px;border-radius:6px;background:#2f6fde;color:#fff}
/* Feed placements: header, media, then caption and button. */
.ap-phone[data-layout=feed] .ap-media{aspect-ratio:4/5;order:2}
.ap-phone[data-layout=square] .ap-media{aspect-ratio:1;order:2}
.ap-phone:not([data-layout=story]) .ap-head{order:1}
.ap-phone:not([data-layout=story]) .ap-foot{order:3}
.ap-phone:not([data-layout=story]) .ap-foot .ap-cta{order:-1}
/* Full screen: everything sits over the picture. */
.ap-phone[data-layout=story]{aspect-ratio:9/16}
.ap-phone[data-layout=story] .ap-media{position:absolute;inset:0}
.ap-phone[data-layout=story] .ap-head,.ap-phone[data-layout=story] .ap-foot,.ap-phone[data-layout=story] .ap-rail{position:absolute;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.ap-phone[data-layout=story] .ap-head{top:6px;left:0;right:0}
.ap-phone[data-layout=story] .ap-head small,.ap-phone[data-layout=story] .ap-dots,.ap-phone[data-layout=story] .ap-more{color:#e6e6e6}
.ap-phone[data-layout=story] .ap-foot{bottom:0;left:0;right:0;padding:40px 60px 16px 12px;background:linear-gradient(transparent,rgba(0,0,0,.45))}
.ap-phone[data-layout=story] .ap-rail{display:grid;gap:18px;right:12px;bottom:110px;font-size:22px;text-align:center}
@media(max-width:850px){.cp-layout,.ap-layout{grid-template-columns:1fr}.cp-stage,.ap-stage{position:static}}
@media(max-width:600px){.mv-list li{grid-template-columns:1fr auto auto auto}.vt-range{grid-template-columns:1fr}.cp-frame{width:min(100%,calc(62vh * 9 / 16))}}
