/* BROS.TOOLS look, second pass (2026-11-19): elements rebuilt from the owner's three reference sites,
   by their measured sizes, colours and type, not invented here.

   FROM HUGGING FACE SPACES: the page colour, the search bar (50 px, full round, sparkle left, round button right),
     the category strip (24 px icon over a 13 px label), the cards (160 px, 12 px corners, a two-colour gradient,
     34 px header with mono badges, 18 px title, two-line description, mono footer), the filter field, the text fonts
     (Source Sans, IBM Plex Mono).
   FROM DIGEN: the floating round menu with icons, the section rows (yellow Bricolage Grotesque title, grey line, "See all").
   FROM REACT BITS: the headline (Geist 54 px, weight 500, tight), the buttons (46 px, 13 px corners, white and dark),
     the soft glow behind the opening.
   Icons: Lucide (ISC licence), in /icons. */
@import url("/fonts/fonts.css");
@import url("/fx/fx.css");

:root {
  --bg:#0b0f19; --field:#141c2e; --panel:#101624; --line:#1c2538; --line2:#374151;
  --text:#e5e7eb; --dim:#9ca3af; --soft:#d1d5db; --faint:#6b7280;
  --yellow:#ffd400; --red:#f87171; --ok:#4ade80;
  --sans:"Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, Consolas, monospace;
  --head:"Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --title:"Bricolage Grotesque", "Inter", "Segoe UI", sans-serif;
  --menu:"Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
p { margin:0 0 12px; } .dim { color:var(--dim); } .err { color:var(--red); } .ok { color:var(--ok); }
p a, td a { color:var(--yellow); } p a:hover, td a:hover { text-decoration:underline; }

/* an icon: a Lucide file used as a mask, so it takes the colour of the text around it */
.ic { display:inline-block; flex:none; width:1em; height:1em; background:currentColor; -webkit-mask:var(--i) center / contain no-repeat; mask:var(--i) center / contain no-repeat; }

/* ── top: brand, Digen's floating round menu, the account ── */
header { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; padding:12px 24px; background:linear-gradient(var(--bg) 60%, transparent); }
.brand { display:flex; align-items:center; gap:9px; font:600 19px var(--head); letter-spacing:-.02em; }
.brand i { width:22px; height:22px; border-radius:6px; background:var(--yellow); display:block; }
.brand span { color:var(--faint); }
nav { display:flex; align-items:center; gap:2px; padding:4px; border-radius:100px; border:1px solid rgba(235,233,247,.1); background:rgba(26,27,34,.8); backdrop-filter:blur(16px); }
nav a { display:flex; align-items:center; gap:8px; height:36px; padding:8px 16px; border-radius:100px; font:600 14px var(--menu); color:rgba(235,233,247,.72); white-space:nowrap; transition:color .15s, background .15s; }
nav a .ic { font-size:17px; }
nav a:hover { color:#ebe9f7; } nav a.on { background:#ebe9f7; color:#121214; }
#side { display:flex; gap:8px; justify-content:flex-end; align-items:center; }
#side a { display:flex; align-items:center; height:36px; padding:0 16px; border-radius:100px; font:600 14px var(--menu); border:1px solid rgba(235,233,247,.1); color:#ebe9f7; }
#side a.main { background:#fff; color:#121214; border-color:#fff; }

main { max-width:1568px; margin:0 auto; padding:14px 24px 100px; }
h1 { font:500 34px/1.1 var(--head); letter-spacing:-.035em; margin:0 0 10px; color:#f6f4f9; }
h2 { font:500 12px var(--mono); margin:34px 0 12px; color:var(--dim); text-transform:uppercase; letter-spacing:.08em; }

/* ── opening: React Bits' headline over its soft glow; Hugging Face's search bar and category strip ── */
.hero { position:relative; padding:64px 0 8px; isolation:isolate; text-align:center; }
.hero::before, .hero::after { content:""; position:absolute; z-index:-1; border-radius:50%; filter:blur(100px); animation:drift 18s ease-in-out infinite alternate; }
.hero::before { width:560px; height:300px; left:calc(50% - 500px); top:0; background:#7c3aed; opacity:.3; }
.hero::after { width:480px; height:280px; left:calc(50% + 10px); top:40px; background:#c026d3; opacity:.16; animation-delay:-7s; }
@keyframes drift { from { transform:translate(0,0) scale(1); } to { transform:translate(60px,24px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation:none; } }
.hero h1 { font-size:clamp(34px, 4.4vw, 54px); line-height:1.1; letter-spacing:-.036em; max-width:820px; margin:0 auto 14px; }
.hero > p { color:var(--dim); font-size:18px; max-width:560px; margin:0 auto 30px; }

.ask { position:relative; display:flex; align-items:center; max-width:1100px; margin:0 auto; }
.ask > .ic { position:absolute; left:16px; font-size:18px; color:var(--dim); pointer-events:none; }
.ask input { flex:1; height:50px; padding:10px 48px 10px 42px; border-radius:9999px; border:1px solid var(--field); background:var(--field); color:var(--text); font:18px var(--sans); box-shadow:0 5px 5px rgba(0,0,0,.03), 0 2px 2px rgba(0,0,0,.03); }
.ask input::placeholder { color:var(--dim); } .ask input:focus { outline:none; box-shadow:0 0 0 2px rgba(59,130,246,.6); }
.ask button { position:absolute; right:12px; width:28px; height:28px; padding:0; border-radius:50%; border:1px solid var(--line2); background:#1f2937; color:var(--soft); display:grid; place-items:center; font-size:14px; }
.ask button:hover { filter:brightness(1.15); opacity:1; }

.strip { display:flex; gap:28px; justify-content:center; padding:22px 4px 18px; margin:0 auto; max-width:1100px; overflow-x:auto; border-bottom:1px solid var(--line); scrollbar-width:none; }
.strip a { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:13.12px; line-height:1.25; color:var(--soft); white-space:nowrap; transition:color .15s; }
.strip a .ic { font-size:24px; } .strip a:hover { color:#f3f4f6; } .strip a.on { color:#eab308; }

/* ── a section row, as on Digen ── */
.sec { display:flex; align-items:flex-end; gap:14px; margin:44px 0 16px; }
.sec h3 { margin:0; font:600 28px/36px var(--title); letter-spacing:.56px; text-transform:uppercase; color:var(--yellow); }
.sec span { flex:1; color:rgba(235,233,247,.6); font:400 13px var(--menu); padding-bottom:7px; }
.sec a { color:rgba(235,233,247,.6); font:500 14px var(--menu); padding-bottom:6px; white-space:nowrap; } .sec a:hover { color:#ebe9f7; }

/* ── the cards, as on Hugging Face Spaces ── */
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:20px 16px; }
.card { position:relative; z-index:0; display:flex; flex-direction:column; justify-content:space-between; height:160px; overflow:hidden; border-radius:12px; color:#fff; background:linear-gradient(to bottom right, var(--a, #4b5563), var(--b, #4b5563)); box-shadow:0 1px 2px rgba(0,0,0,.05); transition:filter .15s; }
.card::before { content:""; position:absolute; left:0; top:0; width:50%; height:100%; background:linear-gradient(to bottom right, rgba(0,0,0,.2), transparent 50%, transparent); pointer-events:none; }
.card:hover { filter:brightness(1.1); }
.card > * { position:relative; }
.card .top { display:flex; gap:6px; height:34px; padding:8.5px 14px 0; font-size:11.6px; background:linear-gradient(to top, rgba(0,0,0,.04), transparent 10%); border-radius:0 0 16px 16px; }
.card .top .right { margin-left:auto; display:flex; gap:6px; }
.card .mid { padding:0 16px; }
.card b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font:600 18px/22.5px var(--sans); text-shadow:0 4px 3px rgba(0,0,0,.07), 0 2px 2px rgba(0,0,0,.06); margin-bottom:2px; }
.card .line { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13.4px; line-height:18px; color:#e5e7eb; opacity:.85; }
.card .foot { display:flex; align-items:center; justify-content:space-between; height:34px; padding:0 14px 4px; color:var(--soft); }
.card .foot span:first-child { font:400 11.6px var(--mono); } .card .foot span:last-child { font-size:12px; }
/* the two-colour pairs Hugging Face uses (Tailwind's 600 shades) */
.g0 { --a:#9333ea; --b:#4f46e5; } .g1 { --a:#16a34a; --b:#4b5563; } .g2 { --a:#2563eb; --b:#4b5563; } .g3 { --a:#9333ea; --b:#db2777; }
.g4 { --a:#dc2626; --b:#16a34a; } .g5 { --a:#4b5563; --b:#9333ea; } .g6 { --a:#2563eb; --b:#4f46e5; } .g7 { --a:#ca8a04; --b:#4b5563; }

.tag { display:inline-flex; align-items:center; gap:3px; height:16.5px; padding:0 4px; border-radius:4px; border:1px solid rgba(255,255,255,.05); background:rgba(255,255,255,.1); color:#fff; opacity:.9; font:400 11.6px/1 var(--mono); white-space:nowrap; }
.tag.free b, .tag.sub b { all:unset; font-weight:500; }
.tag.draft { background:rgba(248,113,113,.35); }
td .tag, .plain .tag { border-color:var(--line2); background:var(--field); color:var(--soft); height:20px; padding:0 6px; }

/* ── the filter row of a catalog page, as on Hugging Face ── */
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:6px 0 20px; }
.pill { display:inline-flex; align-items:center; gap:6px; height:33.6px; padding:0 20px 0 16px; border-radius:9999px; border:1px solid var(--field); background:linear-gradient(to right, rgba(236,72,153,.1), rgba(249,115,22,.1)); font:600 16px var(--sans); letter-spacing:.025em; white-space:nowrap; }
.filters .grow { flex:1; }
.find { position:relative; display:flex; align-items:center; } .find .ic { position:absolute; left:10px; font-size:14px; color:var(--dim); }
.find input { width:220px; height:32px; padding:0 12px 0 32px; border-radius:9999px; border:1px solid var(--field); background:var(--bg); font-size:14px; box-shadow:inset 0 2px 4px rgba(0,0,0,.05); }
.filters select { width:auto; height:32px; padding:0 28px 0 12px; border-radius:9999px; border:1px solid var(--field); background-color:var(--bg); font-size:14px; }

/* ── forms and buttons (buttons as on React Bits), tables, boxes ── */
input, select, textarea { background:var(--field); color:var(--text); border:1px solid var(--line); border-radius:10px; padding:10px 13px; font:inherit; width:100%; }
input:focus, select:focus, textarea:focus { outline:none; box-shadow:0 0 0 2px rgba(59,130,246,.5); }
textarea { min-height:110px; resize:vertical; font:13.5px/1.5 var(--mono); }
label { display:block; font-size:14px; color:var(--dim); margin:12px 0 5px; }
button, .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:46px; padding:0 20px; border-radius:13px; border:0; background:#f4f2f7; color:#141118; font:500 15px var(--head); letter-spacing:-.01em; cursor:pointer; white-space:nowrap; transition:filter .15s, transform .1s; }
button:hover, .btn:hover { filter:brightness(.92); } button:active, .btn:active { transform:scale(.98); }
button.quiet, .btn.quiet { background:#221e29; color:#f6f4f9; } button.quiet:hover, .btn.quiet:hover { filter:brightness(1.25); }
button.small, .btn.small { height:34px; padding:0 14px; border-radius:10px; font-size:13.5px; }
button:disabled { opacity:.45; cursor:default; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; } .row > * { width:auto; } .row .grow { flex:1 1 200px; }
.box { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:14px; }
pre { white-space:pre-wrap; word-break:break-word; margin:0; font:13.5px/1.55 var(--mono); }
table { width:100%; border-collapse:separate; border-spacing:0; background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
td, th { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); font-size:15px; } tr:last-child td { border-bottom:0; } th { color:var(--faint); font:400 12px var(--mono); }
td button, td .btn { height:34px; padding:0 14px; border-radius:10px; font-size:13.5px; }
form.narrow { max-width:400px; } .two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.page { max-width:1100px; margin:0 auto; }
.itemhead { position:relative; overflow:hidden; padding:24px 28px 28px; border-radius:12px; margin-bottom:22px; background:linear-gradient(to bottom right, var(--a, #4b5563), var(--b, #4b5563)); }
.itemhead::before { content:""; position:absolute; left:0; top:0; width:50%; height:100%; background:linear-gradient(to bottom right, rgba(0,0,0,.2), transparent 50%); }
.itemhead > * { position:relative; } .itemhead h1 { font:600 34px/1.15 var(--sans); letter-spacing:0; color:#fff; margin:18px 0 4px; text-shadow:0 4px 3px rgba(0,0,0,.07); } .itemhead p { color:#e5e7eb; opacity:.9; font-size:17px; margin:0; max-width:700px; }
iframe.tool { width:100%; height:80vh; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
footer { display:flex; gap:18px; flex-wrap:wrap; max-width:1568px; margin:40px auto 0; padding:22px 24px 40px; border-top:1px solid var(--line); color:var(--faint); font:400 12.5px var(--mono); }
footer a:hover { color:var(--text); } footer span { flex:1; }

@media (max-width:980px) { header { grid-template-columns:1fr auto; } nav { grid-column:1 / -1; order:3; overflow-x:auto; justify-self:start; max-width:100%; } .strip { justify-content:flex-start; } }
@media (max-width:640px) { .two { grid-template-columns:1fr; } main, header { padding-inline:14px; } .hero { padding-top:36px; } .sec h3 { font-size:22px; } .find input { width:150px; } }

/* ── thumbnail cards for templates and prompts: Digen's rows (a tall picture, the name under it) ── */
.medias { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:18px 4px; }
.media { display:block; min-width:0; }
.shot { position:relative; aspect-ratio:9 / 16; overflow:hidden; border-radius:2px; background:linear-gradient(to bottom right, var(--a, #4b5563), var(--b, #4b5563)); display:grid; place-items:center; }
.shot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.shot > .ic { font-size:44px; color:rgba(255,255,255,.75); }
.media:hover .shot img { transform:scale(1.04); } .media:hover .shot { filter:brightness(1.08); }
.shot .badges { position:absolute; left:8px; top:8px; display:flex; gap:5px; }
.shot .badges .tag { background:rgba(0,0,0,.45); border-color:rgba(255,255,255,.12); backdrop-filter:blur(6px); opacity:1; }
.media b { display:block; margin-top:10px; font:600 13px/19.5px var(--menu); color:#f2f2f2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.media > span { display:block; font:400 12px var(--menu); color:rgba(235,233,247,.5); }
.media.still { width:150px; flex:none; }
.page.shown { display:grid; grid-template-columns:300px 1fr; gap:34px; align-items:start; }
.page.shown .side { position:sticky; top:86px; } .page.shown .shot { border-radius:12px; }
.page.shown h1 { font:600 34px/1.15 var(--sans); letter-spacing:0; margin-top:6px; }

/* ── the sign-in card, as on Hugging Face's log-in page ── */
.auth { padding:64px 0 40px; }
.authcard { width:384px; max-width:100%; margin:0 auto; padding:16px 20px; border-radius:16px; border:1px solid rgba(31,41,55,.8); background:linear-gradient(#111827, var(--bg)); box-shadow:0 1px 2px rgba(0,0,0,.05); }
.authcard .mark { display:block; width:64px; height:64px; margin:-48px auto 8px; border-radius:18px; background:var(--yellow); box-shadow:0 8px 24px rgba(0,0,0,.4); }
.authcard h1 { font:700 30px/36px var(--sans); letter-spacing:0; text-align:center; padding-top:4px; margin:0; color:var(--text); }
.authcard .sub { text-align:center; color:var(--dim); margin:0 0 24px; }
.authcard .fields { display:grid; gap:12px; margin-bottom:32px; }
.authcard label { margin:0; font-size:16px; color:var(--text); }
.authcard input { display:block; height:44px; margin-top:4px; padding:8px 12px; border-radius:6px; border:2px solid #374151; background:var(--bg); font-size:16px; }
.authcard input.code { text-align:center; text-transform:uppercase; letter-spacing:.3em; font-family:var(--mono); }
.authcard button.login { width:100%; height:38px; padding:6px 16px; border-radius:8px; border:1px solid var(--field); background:linear-gradient(#1f2937, var(--bg)); color:var(--text); font:400 16px var(--sans); letter-spacing:0; }
.authcard button.login:hover { filter:brightness(1.25); }
.authcard .under { text-align:center; font-size:14px; color:var(--soft); margin:16px 0 4px; } .authcard .under a { color:var(--soft); text-decoration:underline; }
.authcard .err, .authcard .ok { margin:-16px 0 16px; font-size:14px; }

/* ── pricing: the plans side by side between thin lines, as on Hugging Face's pricing page ── */
.pricing { max-width:1000px; margin:0 auto; padding-top:44px; }
.pricing > h1 { font:700 34px/1.15 var(--sans); letter-spacing:0; text-align:center; color:#fff; }
.pricing .lead { text-align:center; color:var(--dim); font-size:18px; margin-bottom:44px; }
.plans { display:grid; grid-template-columns:1fr 1fr; border-left:1px solid var(--line); border-right:1px solid var(--line); }
.plan { padding:34px 36px 44px; } .plan + .plan { border-left:1px solid var(--line); }
.plan h3 { display:flex; align-items:center; gap:8px; margin:0 0 4px; font:700 20px var(--sans); color:#fff; } .plan h3 .ic { font-size:18px; }
.plan .price { font:700 34px/1 var(--sans); color:#fff; margin:30px 0 16px; } .plan .price small { font:400 14px var(--sans); color:var(--dim); }
.wide { width:100%; height:44px; border-radius:12px; font:600 15px var(--sans); letter-spacing:0; }
.plan button.wide { background:#fff; color:#111827; border:2px solid var(--bg); box-shadow:0 0 0 1px #fff; }
.plan ul { list-style:none; margin:30px 0 0; padding:0; display:grid; gap:12px; } .plan li { display:flex; gap:10px; align-items:flex-start; font-size:15px; color:var(--soft); } .plan li .ic { margin-top:4px; font-size:15px; color:var(--dim); }

/* ── admin and account ── */
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 26px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.tabs a { display:inline-flex; align-items:center; gap:7px; height:33.6px; padding:0 16px; border-radius:9999px; border:1px solid var(--field); color:var(--soft); font-size:15px; }
.tabs a:hover { color:#fff; } .tabs a.on { background:linear-gradient(to right, rgba(236,72,153,.1), rgba(249,115,22,.1)); color:#fff; font-weight:600; }
.swatch { display:block; width:34px; height:22px; border-radius:6px; background:linear-gradient(to bottom right, var(--a), var(--b)); } .swatch.big { width:54px; height:34px; border-radius:8px; }
img.mini { display:block; width:22px; height:38px; object-fit:cover; border-radius:3px; }
.catlook { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:10px; background:var(--field); font-size:20px; color:var(--soft); }
table.form td { padding:8px 10px; vertical-align:middle; } table.form input:not([type=color]):not([type=number]) { min-width:150px; } table.form select { min-width:150px; }
input[type=color] { width:44px; height:38px; padding:3px; border-radius:10px; cursor:pointer; } input[type=color]:disabled { opacity:.45; cursor:default; }
td.end { text-align:right; white-space:nowrap; } td.end button + button { margin-left:6px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; margin-bottom:18px; } .tiles .box { margin:0; } .tiles b { display:block; font:600 30px/1.1 var(--sans); color:#fff; } .tiles span { font:400 12px var(--mono); color:var(--dim); }
.box.split { display:flex; align-items:center; justify-content:space-between; gap:14px; } .box.split p { margin:2px 0 0; } .box.split b { font-size:17px; }
label.check { display:inline-flex; align-items:center; gap:8px; margin:0; color:var(--soft); cursor:pointer; } label.check input { width:auto; }
.colours { align-items:flex-start; gap:22px; } .card.preview { width:300px; flex:none; pointer-events:none; }
p.small { font-size:13.5px; margin:8px 0 0; }
.row.plain { margin-bottom:10px; }

@media (max-width:820px) { .page.shown { grid-template-columns:1fr; } .page.shown .side { position:static; max-width:240px; } .plans { grid-template-columns:1fr; border:0; } .plan + .plan { border-left:0; border-top:1px solid var(--line); } .colours { flex-direction:column; } }

/* one plan alone stands in the middle */
.plans.one { grid-template-columns:minmax(0, 460px); justify-content:center; border:0; } .plans.one .plan { border:1px solid var(--line); border-radius:16px; }

/* the menu and the strip scroll sideways on a phone without showing a bar */
nav, .strip { scrollbar-width:none; } nav::-webkit-scrollbar, .strip::-webkit-scrollbar { display:none; }

/* the password label with its "forgot" link at the right, as on the reference log-in page */
.authcard .between { display:flex; align-items:center; justify-content:space-between; } .authcard .between a { font-size:12px; color:var(--dim); text-decoration:underline; }
.authcard .ok a { color:var(--yellow); }

/* the search page keeps the bar and the strip of the home page, without its headline */
.hero.slim { padding:18px 0 0; } .hero.slim::before, .hero.slim::after { display:none; }
/* a legal page reads as a document */
.legal { max-width:760px; } .legal p { color:var(--soft); } .legal h2 { margin-top:30px; }
.legal .draft { padding:10px 14px; border:1px solid rgba(248,113,113,.4); border-radius:10px; color:#fecaca; background:rgba(248,113,113,.08); }

/* a tool's icon on its card: one style for every tool (a white line icon on a soft tile), standing where a thumbnail would */
.card .tile { position:absolute; right:14px; top:46px; display:grid; place-items:center; width:54px; height:54px; border-radius:14px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); box-shadow:0 6px 16px rgba(0,0,0,.18); font-size:28px; color:#fff; }
.card .mid { padding-right:82px; }
.itemhead .tile.big { position:absolute; right:28px; bottom:28px; display:grid; place-items:center; width:88px; height:88px; border-radius:22px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); font-size:46px; color:#fff; }
.itemhead h1, .itemhead p { padding-right:120px; }
/* the icon chooser */
.pickbox { flex:1 1 260px; min-width:240px; } .pickfind { height:34px; padding:0 12px; margin-bottom:8px; font-size:14px; }
.picker { display:flex; flex-wrap:wrap; gap:4px; max-height:176px; overflow-y:auto; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.picker button { width:36px; height:36px; padding:0; border-radius:9px; background:transparent; color:var(--soft); font-size:19px; }
.picker button:hover { background:var(--field); filter:none; } .picker button.on { background:#f4f2f7; color:#141118; }
.picker button.none { width:auto; padding:0 12px; font:500 13px var(--sans); }
table.form .pickbox { margin-top:8px; min-width:320px; }
@media (max-width:640px) { .itemhead .tile.big { position:static; margin-top:14px; width:64px; height:64px; font-size:34px; } .itemhead h1, .itemhead p { padding-right:0; } }

/* the home page's moving background: as wide as the window, behind the opening, fading out towards the cards */
.veil { position:absolute; z-index:-1; left:50%; top:-74px; width:100vw; height:calc(100% + 150px); transform:translateX(-50%); overflow:hidden; pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 0%, #000 55%, transparent 100%); mask-image:linear-gradient(#000 0%, #000 55%, transparent 100%); }
.hero.veiled::before, .hero.veiled::after { display:none; }
.hero.veiled h1, .hero.veiled > p { text-shadow:0 2px 18px rgba(0,0,0,.55); }
.hero.veiled > p { color:#d6d3e0; }

/* the field of points: the whole window, fixed and centred, behind everything on the home page */
.field { position:fixed; inset:0; z-index:-1; pointer-events:none; }

/* both moving backgrounds of the home page at half strength (the owner, 2026-11-19): present, never in the way of the words */
.veil, .field { opacity:.5; }

/* the window-wide background never makes the page scroll sideways */
html { overflow-x:clip; }

/* reporting a problem, and the reports in the admin area */
.reportwrap { margin-top:26px; } .row > .reportwrap { margin-top:0; position:relative; }
.reportwrap button .ic { font-size:15px; }
.report form { margin-top:12px; max-width:640px; } .report textarea { margin:10px 0; font:inherit; min-height:110px; } .report input { margin-bottom:6px; }
.row > .reportwrap .report { position:absolute; right:0; top:42px; z-index:10; width:min(560px, 86vw); }
.reportcard .name { font-weight:600; color:var(--yellow); } .reportcard .said { white-space:pre-wrap; color:var(--text); margin-bottom:8px; }
.answer { margin-top:6px; color:var(--ok); font-size:14.5px; }
.tabs .count { display:none; margin-left:2px; min-width:20px; height:20px; padding:0 6px; border-radius:99px; background:var(--red); color:#fff; font:600 12px/20px var(--sans); text-align:center; } .tabs .count.on { display:inline-block; }
.narrowbox { max-width:420px; }

/* ── A TOOL'S PAGE: the head, then In and Settings on the left, Out on the right (stacked on a narrow window) ── */
.toolpage { max-width:1240px; }
.tool-head { display:flex; gap:18px; align-items:center; margin:6px 0 24px; flex-wrap:wrap; }
.tool-tile { display:grid; place-items:center; flex:none; width:72px; height:72px; border-radius:18px; font-size:36px; color:#fff; background:linear-gradient(to bottom right, var(--a, #4b5563), var(--b, #4b5563)); box-shadow:0 8px 22px rgba(0,0,0,.35); }
.tool-head h1 { font:600 30px/1.15 var(--sans); letter-spacing:0; margin:0 0 2px; } .tool-head p { margin:0 0 4px; color:var(--soft); font-size:17px; }
.note { color:var(--dim); font:400 12.5px var(--mono); } .note.err { color:var(--red); } .note.ok { color:var(--ok); }
.work { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:16px; align-items:start; margin-bottom:10px; }
.work .left { display:grid; gap:16px; }
.zone { background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:18px; min-width:0; }
.zone > h2 { margin:0 0 14px; }
.outzone { min-height:260px; display:flex; flex-direction:column; } .outzone .zout { flex:1; }
.outfoot { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:16px; } .outfoot .offers { margin:0; } .outfoot .offers:empty { display:none; }
.filebox { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:18px; border:1.5px dashed var(--line2); border-radius:12px; }
.filebox .fname { color:var(--dim); font-size:14.5px; word-break:break-all; } .filebox button .ic { font-size:17px; }
.zin:not(:empty) { margin-top:14px; } .zin label, .zset label { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:0 0 10px; color:var(--soft); font-size:15px; }
.zin > label { display:block; margin:12px 0 6px; } .zin > label:first-child { margin-top:0; }
.zset input[type=number] { width:110px; } .zset select, .zset input { width:auto; } .zset .row { margin:0 0 8px; }
.zin textarea { min-height:200px; } .zin textarea.short { min-height:90px; }
.hint { color:var(--dim); font-size:14px; margin:0; }
.zin video, .zout .stage { display:block; max-width:100%; max-height:46vh; border-radius:12px; border:1px solid var(--line); background:#000; }
.zout pre { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px; max-height:50vh; overflow:auto; }
.nums { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-bottom:14px; }
.num { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px; } .num b { display:block; font:600 28px/1.1 var(--sans); color:#fff; } .num span { font:400 12px var(--mono); color:var(--dim); }
.verdict { font-size:17px; color:var(--text); margin:0; }
.faults p { margin:10px 0 0; }
.shots { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
.shots figure { margin:0; background:var(--bg); border:1px solid var(--line); border-radius:12px; overflow:hidden; } .shots canvas { display:block; width:100%; height:auto; cursor:pointer; }
.shots figcaption { display:flex; justify-content:space-between; padding:8px 10px; font:400 12.5px var(--mono); color:var(--dim); } .shots figcaption a { color:var(--yellow); }
.about { white-space:pre-wrap; max-width:820px; color:var(--soft); }
body.dropping::after { content:"Drop the file"; position:fixed; inset:12px; z-index:50; display:grid; place-items:center; border:2px dashed var(--yellow); border-radius:18px; background:rgba(11,15,25,.88); color:var(--yellow); font:600 22px var(--sans); pointer-events:none; }
@media (max-width:900px) { .work { grid-template-columns:1fr; } }

/* the effect layers sit in a card as layers, not as its content (a card's children are otherwise laid out in a column) */
.card > .spotlight-card__light, .card > .spotlight-card__grain, .card > .spotlight-card__edge { position:absolute; }
/* a button with the travelling light keeps the site's size and type */
.star-border.wide, button.star-border { height:46px; padding:0 22px; font:500 15px var(--head); box-shadow:none; }
.plan button.wide.star-border { border:0; box-shadow:none; background:var(--star-border-surface); color:var(--star-border-text); }

/* THE SHELF: a strip fixed at the bottom with what the visitor is working on (the floating round menu's look, small) */
#shelf { position:fixed; left:50%; bottom:14px; z-index:30; transform:translateX(-50%); display:flex; gap:8px; align-items:center; max-width:calc(100vw - 24px); padding:7px 12px; border:1px solid var(--line2); border-radius:999px; background:rgba(16,22,36,.94); backdrop-filter:blur(10px); box-shadow:0 10px 30px rgba(0,0,0,.45); }
#shelf[hidden] { display:none; }
.shelf-label { display:flex; gap:6px; align-items:center; color:var(--yellow); font:600 13px var(--title); } .shelf-note { color:var(--faint); font:400 11.5px var(--mono); white-space:nowrap; }
.shelf-thing { position:relative; } .shelf-thing > button { display:flex; gap:6px; align-items:center; max-width:190px; height:30px; border-radius:999px; } .shelf-thing > button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shelf-thing.on > button { outline:1px solid var(--yellow); }
.shelf-menu { position:absolute; left:50%; bottom:42px; transform:translateX(-50%); display:flex; flex-direction:column; gap:6px; width:min(300px, 86vw); padding:14px; border:1px solid var(--line2); border-radius:14px; background:var(--panel); box-shadow:0 14px 40px rgba(0,0,0,.55); }
.shelf-menu b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font:600 14px var(--sans); }
.shelf-menu > a { display:flex; gap:8px; align-items:center; padding:8px 10px; border-radius:10px; background:var(--field); color:var(--text); font:400 14px var(--sans); } .shelf-menu > a:hover { background:#1d2740; color:#fff; }
.shelf-menu .row { margin:6px 0 0; }
.sendto { margin:12px 0 0; } .sendto[hidden] { display:none; } .sendto button { display:flex; gap:6px; align-items:center; }
@media (max-width:700px) { .shelf-note { display:none; } .shelf-thing > button { max-width:120px; } }
