/* free-tools-theme.original-20261115
   Restore the pre-white (8:52 AM) tool-widget look on the new white page setup.
   Loaded only on free-tools pages, after /static/site-white.css.
   New filename because /static/* is cached immutable for a year.

   Glass was originally rgba(15,23,42,.72) over a navy page (#0A192F) plus
   faint cyan/purple body glows. On a white page that same 72% fill reads as
   gray, so panels use the composite color of glass-over-navy, with the
   original glow art painted inside the cards. */
.tool,
.glass,
.note,
.pack,
.neg-box,
.mock {
  --bg:#0A192F;
  --card:#0F172A;
  --card2:#1E293B;
  --line:#334155;
  --cyan:#00F2FE;
  --purple:#9D4EDD;
  --fg:#F1F5F9;
  --muted:#94A3B8;
  --red:#F87171;
  --green:#34D399;
  --amber:#FBBF24;
  --grad:linear-gradient(90deg,var(--cyan),var(--purple));
  color:var(--fg);
}

/* Opaque composite of original glass over #0A192F, plus the page glow art */
.tool,
.glass {
  /* Composite of rgba(15,23,42,.72) over #0A192F — even fill, like the original cards */
  background:#0E172B;
  border:1px solid #334155;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:var(--fg);
}

/* Shop CTA: original cyan-purple wash over opaque navy (was 80% over the dark page) */
.glass.cta,
.glass.shop-cta,
.cta.shop-cta {
  background:linear-gradient(135deg,rgba(0,242,254,.10),rgba(157,78,221,.14)),#0E172B;
  color:var(--fg);
}
.shop-cta .shop-eyebrow { color:var(--cyan) !important; }
.shop-cta h2,
.shop-cta p { color:var(--fg); }
.shop-cta p { color:var(--muted); }
.shop-cta .shop-trust { color:var(--muted); }
.shop-cta a { color:var(--cyan); }

.note {
  background:rgba(30,41,59,.85);
  border:1px solid var(--line);
  border-left:3px solid var(--cyan);
  color:var(--muted);
}
.note strong { color:var(--fg); }

.pack {
  background:rgba(30,41,59,.85);
  border-color:var(--line);
}

.neg-box {
  background:rgba(15,23,42,.85);
  border-color:var(--line);
}

/* Inputs, selects, textareas, output boxes — beat site-white.css */
html body .tool input,
html body .tool textarea,
html body .tool select,
html body .glass input,
html body .glass textarea,
html body .glass select {
  color:var(--fg);
  background-color:var(--card);
  border-color:var(--line);
}
html body .tool input::placeholder,
html body .tool textarea::placeholder,
html body .glass input::placeholder,
html body .glass textarea::placeholder {
  color:#64748B;
}
html body .numwrap {
  background:var(--card);
  border-color:var(--line);
}
html body .numwrap input {
  background-color:transparent;
  color:var(--fg);
  border-color:transparent;
}
html body .glass input[type=range] {
  background-color:transparent;
  border-color:transparent;
}
html body .glass select.inp option {
  background:var(--card);
  color:var(--fg);
}

/* Links inside the widgets stay the original bright cyan */
.tool a,
.glass a,
.note a,
.pack a {
  color:var(--cyan);
}

/* Hardcoded white-restyle contrast colors → original token colors */
.tool p.tool-meta,
.copy-status,
.counter.ok,
.s-good,
.pill.pass,
.badge:not(.neg):not(.na) {
  color:var(--green);
}
.counter.warn,
.s-mid,
.pill.warn {
  color:var(--amber);
}
.counter.over,
.s-low,
.pill.fix,
.badge.neg,
.v.cost,
.v.neg {
  color:var(--red);
}
.tag-letter {
  color:var(--cyan);
  background:var(--card2);
  border-color:var(--line);
}

/* YouTube mock: original dark preview card */
.mock {
  background:#0B1220;
  border:1px solid var(--line);
  color:#F8FAFC;
  box-shadow:none;
  background-image:none;
}
.mock .thumb {
  background:linear-gradient(135deg,rgba(0,242,254,.22),rgba(157,78,221,.30)),#1E293B;
}
.mock .dur {
  background:rgba(0,0,0,.8);
  color:#fff;
}
.mock .av { background:#334155; }
.mock .mt { color:#F8FAFC; }
.mock .mc { color:#94A3B8; }

/* Calculator profit figure: undo site-white.css !important teal/red restyle */
html body .profit {
  background:var(--grad)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
html body .profit.neg {
  background:linear-gradient(90deg,#F87171,#FB7185)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
}

/* "More free tools" sits on the white page — keep it readable */
html body .more-tools {
  color:#4b5563;
}
html body .more-tools a {
  color:#00718f;
}
html body .more-tools .sep {
  color:#6b7280;
}

/* Restore original focus/hover glows that depend on the dark tokens */
.tool .btn:focus-visible,
.glass .btn:focus-visible {
  outline:2px solid #fff;
  outline-offset:3px;
}
