.tools-page{background:#faf9f5;color:#111318}
.tools-page *, .tools-page *:before,.tools-page *:after{box-sizing:border-box}
.tools-page main{padding-top:125px}
.tools-page .tool-label{display:block;font:700 12px/1.5 'DM',sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#2459ce}
.tools-page h1,.tools-page h2{font-family:'Archivo',sans-serif;font-weight:900;letter-spacing:-.045em}
.tools-page .tools-hero{max-width:1440px;margin:auto;padding:70px 6% 90px;display:grid;grid-template-columns:1.4fr 1fr;gap:50px;align-items:center}
.tools-page .tools-hero h1{font-size:clamp(48px,5.4vw,84px);line-height:1.04;margin:20px 0 25px}
.tools-page .tools-hero h1 em{font-style:normal;color:#2459ce}
.tools-page .tools-hero p{font-size:20px;line-height:1.65;max-width:560px}
.tool-perks{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.tool-perks span{font-size:13px;border:1px solid #ccd4df;padding:8px 12px;border-radius:20px}
.toolbox-art{height:370px;position:relative}
.art-tile{position:absolute;width:210px;height:220px;border:2px solid #111318;box-shadow:9px 9px 0 #111318;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:110px;line-height:1}
.art-tile small{position:absolute;bottom:16px;left:20px;font:700 11px 'DM',sans-serif;letter-spacing:.09em}
.art-grid{background:#2459ce;color:white;left:0;top:0;transform:rotate(-10deg)}
.art-type{background:#ffd343;right:0;top:90px;transform:rotate(9deg);font-family:'Archivo',sans-serif;font-size:85px}
.art-reply{background:#e8effc;left:35px;bottom:0;transform:rotate(-4deg);width:150px;height:140px;font-size:85px}
.tool-directory{max-width:1440px;margin:0 auto;padding:0 6% 100px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.tool-card{border:1px solid #d2d8e2;border-radius:12px;overflow:hidden;background:white;display:flex;flex-direction:column;color:#111318;transition:transform .2s,box-shadow .2s}
a.tool-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #11131812}
.card-art{height:175px;padding:25px;background:#e8effc;display:flex;align-items:center;justify-content:space-between;color:#2459ce}
.card-art>span{font:80px/1 'Archivo',sans-serif}.card-art small{align-self:flex-start;font:700 14px 'DM',sans-serif}
.tool-card-carousel .card-art,.tool-card-reply .card-art{background:#ffd343;color:#111318}
.tool-card-title .card-art{background:#2459ce;color:#fff}
.card-copy{padding:26px;display:flex;flex-direction:column;flex:1}
.tools-page .card-copy h2{font-size:25px;line-height:1.15;margin:12px 0}
.card-copy p{font-size:16px;line-height:1.6;margin:0 0 28px;color:#4b5567}
.card-action{font-weight:700;margin-top:auto;display:flex;justify-content:space-between}
.toolbox-note{padding:35px;background:#111318;color:white;justify-content:center}
.toolbox-note .tool-label{color:#ffd343}.toolbox-note h2{font-size:36px;line-height:1.15;margin:25px 0}
.toolbox-note p{line-height:1.7;color:#c7d0df}.toolbox-note a{margin-top:25px;color:#ffd343;font-weight:700}
.tool-intro{max-width:1300px;padding:36px 6% 40px;margin:auto}
.tool-back{display:inline-block;font-size:14px;color:#505d74;margin-bottom:35px}
.tools-page .tool-intro h1{font-size:clamp(38px,4.6vw,65px);line-height:1.12;max-width:1000px;margin:16px 0}
.tool-intro>p{font-size:19px;line-height:1.6;max-width:750px;color:#505d74}
.tool-workspace{max-width:1144px;margin:0 auto 60px;display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);border:1px solid #d1d8e4;border-radius:14px;background:white;overflow:hidden}
.tool-controls{padding:30px;min-width:0}.tool-preview{background:#e8effc;padding:30px;min-width:0}
.tools-page .tool-field{margin:0 0 20px}.tools-page .tool-field label{display:block;font-size:14px;font-weight:700;margin-bottom:9px;color:#111318}
.tools-page .tool-field small{display:block;font-size:12px;line-height:1.6;color:#566176;margin-top:8px}
.tools-page input:not([type=range]):not([type=color]):not([type=file]),.tools-page select,.tools-page textarea{width:100%;font:16px/1.5 'DM',sans-serif;border:1px solid #a9b5c9;border-radius:7px;background:#fff;color:#111318;padding:12px;min-height:46px}
.tools-page textarea{resize:vertical}.tools-page textarea[readonly]{background:#ffffffd9}
.tools-page input[type=range]{width:100%;accent-color:#2459ce;min-height:28px}.tools-page input[type=color]{width:100%;height:47px;border:1px solid #a9b5c9;border-radius:7px;padding:4px;background:white}
.tools-page input[type=file]{display:block;max-width:100%;font:13px 'DM',sans-serif;margin:15px auto}
.tools-page input[type=file]::file-selector-button{background:#fff;border:1px solid #a9b5c9;border-radius:5px;padding:9px 12px;margin-right:8px;color:#111318;cursor:pointer}
.tools-page :focus-visible{outline:3px solid #2459ce;outline-offset:4px}
.tools-page .tool-button{display:inline-flex;justify-content:center;align-items:center;gap:15px;background:#2459ce;color:#fff;border:1px solid #2459ce;border-radius:30px;padding:13px 22px;font:700 15px/1.4 'DM',sans-serif;cursor:pointer;min-height:48px;text-align:center}
.tools-page .tool-button:hover{background:#17439f}.tools-page button:disabled{opacity:.45;cursor:not-allowed}
.tools-page .text-button{border:0;background:transparent;color:#2459ce;font:700 14px/1.5 'DM',sans-serif;cursor:pointer;padding:10px 0;min-height:42px;text-align:left}
.button-row{display:flex;gap:15px;flex-wrap:wrap;margin-top:20px;align-items:center}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tools-page fieldset{border:0;margin:20px 0 0;padding:0;min-width:0}.tools-page fieldset:disabled{opacity:.55}
.tools-page legend{font-weight:700;font-size:18px;margin-bottom:20px}
.upload-zone{border:1px dashed #8296b9;background:#f5f8ff;border-radius:9px;padding:22px 15px;text-align:center;transition:background .15s}
.upload-zone.dragging{background:#d7e4ff;border-color:#2459ce}.upload-icon{display:block;font-size:30px;color:#2459ce}
.upload-zone>label{display:block;font-weight:700;font-size:16px}.upload-zone p{font-size:12px;line-height:1.7;margin:12px 0;color:#505d74}
.upload-zone .text-button{text-align:center}.tool-status{font-size:13px;line-height:1.6;min-height:22px;color:#43546c;margin:12px 0;overflow-wrap:anywhere}.tool-status.error{color:#a11922}
.tool-note,.preview-note{font-size:13px;line-height:1.7;color:#505d74;margin:18px 0}
.preview-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}.preview-header>span:last-child{font-size:12px;color:#43546c}
.image-preview{display:grid;gap:3px;max-width:100%;margin:0 auto;background:#c8d2e2;padding:3px;border-radius:5px}
.image-preview.empty{background:transparent;display:block;min-height:330px}.preview-empty{text-align:center;padding:70px 20px;color:#425c8f}.preview-empty>span{font-size:80px}.preview-empty h2{font-size:23px!important;margin:20px 0 12px}.preview-empty p{font-size:14px;line-height:1.7}
.preview-tile{border:0;padding:0;position:relative;min-width:0;cursor:pointer;background:white;display:block;width:100%;overflow:hidden}
.preview-tile canvas{display:block;width:100%;height:auto}.tile-number{position:absolute;top:6px;left:6px;background:#111318;color:white;border-radius:50%;height:23px;width:23px;font:700 11px/23px 'DM',sans-serif}
.image-preview.carousel-preview{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px;gap:10px}.carousel-preview .preview-tile{flex:0 0 72%;scroll-snap-align:center}
#text-output{margin-top:20px}.title-count{font-weight:700;color:#2459ce;margin:-5px 0 22px}.title-count.error{color:#a11922}
.title-tips{padding-left:20px;font-size:14px;line-height:1.6;color:#505d74}.title-tips li{margin-bottom:10px}
.preview-switch{display:flex;border:1px solid #a9b5c9;border-radius:20px;overflow:hidden}.preview-switch button{border:0;background:transparent;font:600 12px 'DM',sans-serif;padding:9px 12px;cursor:pointer}.preview-switch button[aria-pressed=true]{background:#2459ce;color:white}
.youtube-preview{max-width:500px;margin:35px auto;background:#fff;border-radius:10px;padding:12px}.youtube-preview.mobile{max-width:300px}
.youtube-thumb{aspect-ratio:16/9;border-radius:7px;background:#2459ce;overflow:hidden;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:14px}
.youtube-thumb>span:first-child{font-size:40px}.youtube-thumb img{width:100%;height:100%;object-fit:cover}
.youtube-meta{display:flex;gap:12px;margin:16px 0 8px}.channel-avatar{border-radius:50%;background:#ffd343;flex:0 0 35px;height:35px;text-align:center;line-height:35px;font-weight:bold}.youtube-meta>div:last-child{min-width:0}
#title-preview{font-size:16px;font-weight:700;line-height:1.4;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.youtube-meta small{display:block;font-size:12px;line-height:1.5;color:#566176}
.tool-next{max-width:1144px;margin:0 auto 60px;background:#ffd343;border-radius:12px;padding:40px;display:flex;gap:30px;align-items:center;justify-content:space-between}.tools-page .tool-next h2{font-size:30px;line-height:1.15;max-width:650px;margin:12px 0}.tool-next p{font-size:16px;line-height:1.65;max-width:650px}.tool-next .tool-button{flex-shrink:0;background:#111318;border-color:#111318}
.related-tools,.tool-faq{max-width:1144px;margin:0 auto 60px}.tools-page .related-tools h2,.tools-page .tool-faq h2{font-size:28px;margin:15px 0 25px}.related-tools>div{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.related-tools a{border-bottom:1px solid #cbd3df;padding:16px 0;color:#2459ce;font-size:16px;display:flex;justify-content:space-between;gap:15px}
.tool-faq details{border-bottom:1px solid #cbd3df;padding:18px 0}.tool-faq summary{cursor:pointer;font-size:17px;font-weight:700}.tool-faq details p{font-size:16px;line-height:1.8;max-width:820px;color:#505d74;margin:15px 0}.tool-faq a{color:#2459ce;text-decoration:underline}.tool-noscript{margin:20px 6%;padding:25px;background:#ffd343}
.tools-page .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}
@media(max-width:1250px){.tool-workspace,.tool-next,.related-tools,.tool-faq{margin-left:6%;margin-right:6%}.tool-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbox-art{transform:scale(.85);transform-origin:center}}
@media(max-width:760px){.tools-page main{padding-top:105px}.tools-page .tools-hero{padding:25px 6% 45px;grid-template-columns:1fr;gap:20px}.toolbox-art{height:240px;width:310px;max-width:100%;margin:auto;transform:scale(.8)}.art-tile{width:170px;height:170px;font-size:75px}.art-reply{width:110px;height:110px;bottom:-40px}.tools-page .tools-hero p{font-size:17px}.tool-directory{grid-template-columns:1fr;padding-bottom:50px}.card-art{height:130px}.tool-workspace{grid-template-columns:1fr}.tool-controls,.tool-preview{padding:22px}.tools-page .tool-intro{padding-top:20px}.tools-page .tool-intro h1{font-size:37px}.tool-intro>p{font-size:17px}.tool-next{padding:26px;flex-direction:column;align-items:flex-start}.tools-page .tool-next h2{font-size:27px}.related-tools>div{grid-template-columns:1fr}.tools-page .related-tools h2,.tools-page .tool-faq h2{font-size:25px}.image-preview.empty{min-height:230px}.preview-empty{padding:30px 10px}.tool-perks{gap:6px}.tool-perks span{font-size:12px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.tool-card{transition:none}}
