/* Shared look for every tool page (/tools/*). The tl- classes are the Night Ride tool kit; page <style> blocks only add what a
   single tool needs. Bump ?v= in every tool page when this file changes. */
html,body{margin:0;background:#070916;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
a{color:#f5b867;text-decoration:none}a:hover{color:#f4efe6}
::selection{background:#7ff3e1;color:#0b1030}
:focus-visible{outline:2px solid #7ff3e1!important;outline-offset:3px!important}
details[data-faq]>summary::-webkit-details-marker{display:none}
details[data-faq][open] [data-faq-icon]{transform:rotate(45deg)}
.tl-card{display:flex;flex-direction:column;gap:8px;padding:clamp(20px,2.4vw,24px);border-radius:22px;border:1px solid rgba(244,239,230,.1);background:linear-gradient(180deg,rgba(19,24,56,.92),rgba(12,16,48,.92));color:#f4efe6;min-width:0;transition:border-color .2s,transform .2s}
.tl-card:hover{border-color:#f5b867;transform:translateY(-2px);color:#f4efe6}
.tl-panel{border-radius:24px;border:1px solid rgba(244,239,230,.12);background:linear-gradient(180deg,rgba(19,24,56,.92),rgba(12,16,48,.92));padding:clamp(18px,2.6vw,28px);display:flex;flex-direction:column;gap:20px;min-width:0}
.tl-drop{border:1.5px dashed rgba(244,239,230,.28);border-radius:18px;padding:clamp(28px,5vw,48px) 20px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;cursor:pointer;color:#f4efe6;transition:border-color .2s,background .2s}
.tl-drop strong{font-size:clamp(17px,2vw,20px);font-weight:600;letter-spacing:-.02em}
.tl-drop span{font-size:14.5px;color:#aaa4b8}
.tl-drop:hover,.tl-drop.is-over{border-color:#f5b867;background:rgba(245,184,103,.06)}
.tl-btn{height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(244,239,230,.16);background:none;color:#f4efe6;font:500 14px 'Geist',system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.tl-btn:hover{border-color:#f5b867}
.tl-btn--p{background:#f5b867;border-color:#f5b867;color:#1a1420;font-weight:600}
.tl-btn--p:hover{opacity:.9}
.tl-actions{display:flex;flex-wrap:wrap;gap:10px}
.tl-muted{color:#aaa4b8}.tl-small{font-size:13.5px;line-height:1.55;margin:0}
.tl-file{border-radius:18px;border:1px solid rgba(244,239,230,.1);background:rgba(7,9,22,.5);padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.tl-file__head{display:flex;gap:14px;align-items:center;min-width:0}
.tl-file__thumb{width:64px;height:64px;border-radius:12px;object-fit:cover;flex:none;background:#0f1433}
.tl-file__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.tl-file__info strong{font-size:15.5px;font-weight:600;overflow-wrap:anywhere}
.tl-chips{display:flex;flex-wrap:wrap;gap:8px}
.tl-chip{font:500 12.5px 'Geist',system-ui,sans-serif;padding:5px 11px;border-radius:99px;border:1px solid rgba(244,239,230,.16);color:#d8d2e2}
.tl-chip--hi{border-color:#ff8a6b;color:#ffb39e;background:rgba(255,138,107,.08)}
.tl-chip--ok{border-color:rgba(127,243,225,.4);color:#7ff3e1;background:rgba(127,243,225,.06)}
.tl-details summary{cursor:pointer;font:600 14px 'Geist',system-ui,sans-serif;color:#f5b867;padding:4px 0}
.tl-meta{margin:10px 0 0;display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:6px 16px;font-size:14px;line-height:1.5}
.tl-meta dt{color:#8e89a0}.tl-meta dd{margin:0;color:#f4efe6;overflow-wrap:anywhere}
.tl-meta dd small{color:#8e89a0;font-size:12px}
.tl-hi{color:#ffb39e!important}
@media(max-width:560px){.tl-meta{grid-template-columns:1fr;gap:0}.tl-meta dd{margin-bottom:8px}}
.tl-hashes{margin:0;display:grid;grid-template-columns:96px 1fr;gap:10px 14px;align-items:center}
.tl-hashes dt{font:500 12px 'Geist Mono',ui-monospace,monospace;letter-spacing:.08em;color:#8e89a0}
.tl-hashes dd{margin:0;display:flex;gap:10px;align-items:center;min-width:0}
.tl-hashes code,.tl-code{font:400 13px/1.5 'Geist Mono',ui-monospace,monospace;color:#f4efe6;overflow-wrap:anywhere;word-break:break-all;min-width:0;flex:1}
@media(max-width:560px){.tl-hashes{grid-template-columns:1fr;gap:2px}.tl-hashes dd{margin-bottom:10px}}
.tl-copy{flex:none;height:32px;padding:0 12px;border-radius:99px;border:1px solid rgba(244,239,230,.16);background:none;color:#f5b867;font:500 12.5px 'Geist',system-ui,sans-serif;cursor:pointer}
.tl-copy:hover{border-color:#f5b867}
.tl-verdict{margin:0;padding:12px 14px;border-radius:12px;font-size:14.5px;line-height:1.5}
.tl-verdict.is-ok{background:rgba(127,243,225,.1);border:1px solid rgba(127,243,225,.4);color:#9ff7ea}
.tl-verdict.is-bad{background:rgba(255,138,107,.1);border:1px solid rgba(255,138,107,.45);color:#ffb39e}
.tl-field{display:flex;flex-direction:column;gap:8px}
.tl-field label,.tl-label{font-size:13px;font-weight:600;color:#aaa4b8}
.tl-input,.tl-textarea{width:100%;box-sizing:border-box;border-radius:12px;border:1px solid rgba(244,239,230,.16);background:rgba(7,9,22,.6);color:#f4efe6;font:400 14px/1.5 'Geist Mono',ui-monospace,monospace;padding:12px 14px}
.tl-textarea{min-height:96px;resize:vertical}
.tl-input:focus,.tl-textarea:focus{border-color:#f5b867;outline:none}
.tl-seg{display:inline-flex;border:1px solid rgba(244,239,230,.16);border-radius:99px;padding:3px;gap:2px}
.tl-seg button{height:34px;padding:0 14px;border-radius:99px;border:0;background:none;color:#aaa4b8;font:500 13px 'Geist',system-ui,sans-serif;cursor:pointer}
.tl-seg button[aria-pressed=true]{background:rgba(245,184,103,.16);color:#f5b867}
.tl-row{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center}
.tl-check{display:inline-flex;gap:8px;align-items:center;font-size:14.5px;color:#d8d2e2;cursor:pointer}
.tl-check input{accent-color:#f5b867;width:18px;height:18px}
.tl-pw{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-radius:16px;background:rgba(7,9,22,.6);border:1px solid rgba(244,239,230,.12);padding:clamp(14px,2vw,20px)}
.tl-pw .tl-code{font-size:clamp(17px,2.6vw,24px);letter-spacing:.02em;min-width:200px}
.tl-bar{height:8px;border-radius:99px;background:rgba(244,239,230,.1);overflow:hidden}
.tl-bar i{display:block;height:100%;width:0;border-radius:99px;background:#ff8a6b;transition:width .25s,background .25s}
.tl-bar i[data-level=fair]{background:#f5b867}.tl-bar i[data-level=good]{background:#c5e07a}.tl-bar i[data-level=strong]{background:#7ff3e1}
.tl-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:8px}
.tl-list li{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid rgba(244,239,230,.08);min-width:0}
.tl-list code{font:400 13.5px 'Geist Mono',ui-monospace,monospace;overflow-wrap:anywhere;flex:1;min-width:0}
.tl-range{width:100%;accent-color:#f5b867}
.tl-num{width:76px;text-align:center}
.tl-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:rgba(127,243,225,.06);border:1px solid rgba(127,243,225,.22);color:#b9f5ec;font-size:14px;line-height:1.5}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
input[type=range]{accent-color:#f5b867}

/* ---------- tool UX pattern (2026-10) ---------- */
/* buttons: one obvious main action, comfortable touch size, clear disabled state */
.tl-btn{min-height:44px;height:auto;transition:border-color .2s,background .2s,opacity .2s,transform .1s}
.tl-btn:active{transform:translateY(1px)}
.tl-btn:disabled,.tl-btn[aria-disabled=true]{opacity:.45;cursor:not-allowed;transform:none}
.tl-btn--p:hover{opacity:1;background:#ffc880;border-color:#ffc880}
.tl-btn svg{flex:none}
@media(pointer:coarse){.tl-copy{height:38px;padding:0 14px}.tl-seg button{height:38px}}
.tl-kbd{font:500 11px 'Geist Mono',ui-monospace,monospace;padding:2px 6px;border-radius:6px;border:1px solid rgba(244,239,230,.18);color:#8e89a0;white-space:nowrap}
@media(pointer:coarse){.tl-kbd{display:none}}

/* the facts a first-time visitor wants before they trust a free tool */
.tl-trust{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px;color:#cfc9d8}
.tl-trust li{display:inline-flex;align-items:center;gap:8px}
.tl-trust li::before{content:"";width:16px;height:16px;flex:none;border-radius:50%;background:rgba(127,243,225,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%237ff3e1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}

/* step labels inside a panel: "1 Add a file", "2 Choose", "3 Copy" */
.tl-step{display:flex;align-items:center;gap:10px;margin:0;font:600 15px/1.3 'Geist',system-ui,sans-serif;color:#f4efe6;letter-spacing:-.01em}
.tl-step b{width:24px;height:24px;flex:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(245,184,103,.16);color:#f5b867;font:600 12.5px 'Geist Mono',ui-monospace,monospace}

/* empty state: say what will appear here and how to get there */
.tl-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border-radius:16px;border:1px dashed rgba(244,239,230,.18);color:#aaa4b8;font-size:14.5px;line-height:1.55}
.tl-empty strong{color:#f4efe6;font-weight:600}
.tl-link{background:none;border:0;padding:0;color:#f5b867;font:inherit;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tl-link:hover{color:#ffc880}

/* confirmation toast (tools.js) */
.tl-toast{position:fixed;z-index:97;left:50%;bottom:24px;transform:translate(-50%,16px);opacity:0;pointer-events:none;max-width:calc(100vw - 32px);box-sizing:border-box;padding:12px 18px 12px 14px;border-radius:999px;background:#f4efe6;color:#15131c;font:600 14px/1.3 'Geist',system-ui,sans-serif;box-shadow:0 18px 50px rgba(0,0,0,.45);display:flex;align-items:center;gap:10px;transition:opacity .2s,transform .25s cubic-bezier(.16,1,.3,1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-toast::before{content:"";width:20px;height:20px;flex:none;border-radius:50%;background:#15131c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%237ff3e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.tl-toast[data-kind=err]::before{background:#b4432c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4.2M8 11.3v.1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat}
.tl-toast.is-on{opacity:1;transform:translate(-50%,0)}

/* drop anywhere (tools.js) */
.tl-veil{position:fixed;inset:10px;z-index:96;border-radius:24px;border:2px dashed #f5b867;background:rgba(7,9,22,.82);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .15s}
.tl-veil span{font:600 clamp(20px,3vw,28px)/1.2 'Geist',system-ui,sans-serif;color:#f4efe6;letter-spacing:-.02em}
.tl-veil.is-on{opacity:1}

/* "See the result" pill on phones (tools.js) */
.tl-jump{position:fixed;z-index:94;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;pointer-events:none;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 20px;border-radius:999px;border:0;background:#f5b867;color:#1a1420;font:600 14.5px 'Geist',system-ui,sans-serif;box-shadow:0 14px 40px rgba(0,0,0,.5);cursor:pointer;transition:opacity .2s,transform .25s cubic-bezier(.16,1,.3,1)}
.tl-jump.is-on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}

/* phones: the tool, not the intro, should own the first screen */
@media(max-width:600px){
  .tl-hero{gap:12px!important}
  .tl-hero h1{font-size:clamp(28px,7.8vw,34px)!important;line-height:1.02!important}
  .tl-hero>p{font-size:15px!important;line-height:1.5!important}
  .tl-trust{font-size:13.5px;gap:6px 14px}
  .tl-panel{border-radius:20px;padding:16px}
  .tl-actions .tl-btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){.tl-toast,.tl-jump,.tl-veil,.tl-btn{transition:none}}
.tl-panel [hidden],[data-tl-result][hidden]{display:none!important}

/* ---------- tool shell, part 2 (2026-10): the tool owns the first screen ---------- */
/* compact header: less air above, and on wide screens the intro sits beside the headline instead of under it */
main:has(>.tl-hero){padding-top:clamp(22px,3.4vw,48px)!important;gap:clamp(22px,3vw,32px)!important}
.tl-hero nav[aria-label=Breadcrumb] ol{font-size:12px!important;letter-spacing:.1em!important}
@media(min-width:1000px){
  .tl-hero{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:clamp(40px,5vw,72px);row-gap:12px!important;align-items:end}
  .tl-hero>nav{grid-column:1/-1}
  .tl-hero>h1{grid-column:1;grid-row:2/span 2;align-self:end;font-size:clamp(38px,3.6vw,52px)!important;line-height:1!important}
  .tl-hero>p{grid-column:2;grid-row:2;font-size:16px!important;line-height:1.6!important;max-width:none!important}
  .tl-hero>.tl-trust{grid-column:2;grid-row:3}
}

/* touch screens: every control at least 44px tall (Apple HIG, WCAG 2.5.5) */
@media(pointer:coarse){
  .tl-seg button{min-height:44px;height:auto}
  .tl-copy{min-height:44px}
  .tl-panel .tl-link{padding-block:12px;margin-block:-12px}
  .tl-panel .tl-details>summary{padding-block:12px}
  .tl-panel .tl-input{min-height:44px}
}

/* workbench: inputs on the left, the answer on the right and always in view (wide screens only) */
.tl-bench__in,.tl-bench__out{display:flex;flex-direction:column;gap:20px;min-width:0}
.tl-ph{display:none}
@media(min-width:1180px){
  main:has(.tl-bench){max-width:1360px!important}
  .tl-bench{display:grid!important;grid-template-columns:var(--tl-bench,minmax(0,1fr) minmax(340px,420px));gap:28px;align-items:start}
  .tl-bench__out{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;overscroll-behavior:contain;padding:20px;border-radius:18px;border:1px solid rgba(244,239,230,.1);background:rgba(7,9,22,.45);box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(244,239,230,.2) transparent}
  .tl-ph{display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:#aaa4b8;font-size:14.5px;line-height:1.55}
  .tl-ph strong{color:#f4efe6;font-size:16px;font-weight:600;letter-spacing:-.01em}
  .tl-ph svg{color:#f5b867;margin-bottom:4px}
  .tl-bench__out:has([data-tl-result]:not(:empty):not([hidden]),[data-tl-out]:not(:empty)) .tl-ph{display:none}
}
.tl-out-h{margin:0;font:500 11.5px 'Geist Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:#8e89a0}
@media(max-width:1179px){.tl-out-h{display:none}}
@media(min-width:1180px){
  /* the main actions stay pinned at the foot of the result column while it scrolls */
  .tl-bench__out>.tl-actions{position:sticky;bottom:-20px;z-index:1;margin:0 -20px -20px;padding:14px 20px 20px;background:linear-gradient(180deg,rgba(11,14,40,0),#0b0e28 22%)}
}

/* what next: related tools and the email prompt */
.tl-next{display:flex;flex-direction:column;gap:14px;margin:clamp(8px,2vw,24px) 0 0;font-family:'Geist',system-ui,sans-serif}
.tl-next__h{margin:0;font:500 11.5px 'Geist Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#f5b867}
.tl-next__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}
.tl-next__a{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:16px;border:1px solid rgba(244,239,230,.12);background:rgba(244,239,230,.03);color:#f4efe6;text-decoration:none;transition:border-color .2s,transform .2s}
.tl-next__a:hover{border-color:#f5b867;transform:translateY(-2px)}
.tl-next__a b{font-weight:600;font-size:15px;letter-spacing:-.01em}.tl-next__a span{font-size:13.5px;line-height:1.45;color:#aaa4b8}
.tl-next__nl{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:14px 16px;border-radius:16px;border:1px dashed rgba(244,239,230,.16)}
.tl-next__t{display:flex;flex-direction:column;gap:2px;flex:1 1 240px;min-width:0}.tl-next__t b{font-size:15px;font-weight:600}.tl-next__t span{font-size:13.5px;line-height:1.45;color:#aaa4b8}.tl-next__t a{color:#f5b867}
.tl-next__nl form{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 300px;align-items:center}.tl-next__nl form .tl-input{flex:1 1 180px;min-width:0;height:44px}
.tl-next__ok{margin:0;font-size:14.5px;color:#7ff3e1}
.tl-nl__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.tl-next [data-news-msg],.tl-nl [data-news-msg]{flex-basis:100%;margin:0;font-size:13px;color:#aaa4b8}.tl-next [data-news-msg].is-ok,.tl-nl [data-news-msg].is-ok{color:#7ff3e1}.tl-next [data-news-msg].is-err,.tl-nl [data-news-msg].is-err{color:#ff8a8a}.tl-next [data-news-msg]:empty,.tl-nl [data-news-msg]:empty{display:none}
.tl-nl{position:fixed;right:16px;bottom:16px;z-index:60;width:min(380px,calc(100vw - 32px));box-sizing:border-box;padding:18px;border-radius:20px;border:1px solid rgba(244,239,230,.16);background:rgba(14,18,48,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 24px 60px rgba(0,0,0,.5);font-family:'Geist',system-ui,sans-serif;color:#f4efe6;display:flex;flex-direction:column;gap:12px;opacity:0;transform:translateY(12px);transition:opacity .35s,transform .35s}
.tl-nl.is-on{opacity:1;transform:none}
.tl-nl .tl-next__t{flex:none;padding-right:26px}.tl-nl form{display:flex;flex-direction:column;gap:8px}.tl-nl form .tl-input{height:44px}
.tl-nl__x{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:0;background:none;color:#aaa4b8;font-size:22px;line-height:1;cursor:pointer}.tl-nl__x:hover{color:#f4efe6}
@media(prefers-reduced-motion:reduce){.tl-nl{transition:none}.tl-next__a{transition:none}}
@media print{.tl-next,.tl-nl{display:none!important}}
