* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: #f2f7fb;
  background: #10151d;
  --line: #344456;
  --muted: #aab9cc;
  --mint: #a8ffca;
  --panel: #171f2b;
  --surface: #101923;
}
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at top, #1a2d35 0, #10151d 50%) fixed; }
[hidden] { display: none !important; }
.shell { width: min(66rem, 100% - 2rem); margin-inline: auto; }
a { color: var(--mint); }
main { padding: clamp(1rem, 4vw, 2.5rem) 0 3rem; }
.intro { margin: 0 0 clamp(1.2rem, 3vw, 1.8rem); }
.brand { color: var(--mint); font: 700 .72rem ui-monospace, monospace; letter-spacing: .18em; margin: 0 0 .45rem; }
h1 { font-size: clamp(2.35rem, 8vw, 4.6rem); font-weight: 740; letter-spacing: -.065em; line-height: 1.02; margin: 0; }
p { margin: .65rem 0 0; color: var(--muted); }
p:empty, .file-list:empty { display: none; }
.intro > p:last-child { max-width: 36rem; font-size: clamp(.92rem, 2vw, 1.05rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.cards a { display: block; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; text-decoration: none; color: inherit; }
.cards a:hover { border-color: var(--mint); background: #1d2a37; }
.tool-preview { display: block; width: 100%; height: auto; aspect-ratio: 480 / 264; object-fit: cover; background: #0c121b; border-bottom: 1px solid var(--line); }
.card-body { display: grid; gap: .2rem; padding: .8rem; }
.card-body strong { font-size: 1.1rem; line-height: 1.25; }
.card-body span { color: var(--muted); font-size: .9rem; }
#detail { max-width: 51rem; margin: auto; }
.back { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; text-decoration: none; color: var(--mint); font-weight: 700; margin-bottom: .5rem; }
.back:hover { text-decoration: underline; }
.panel { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 5vw, 2.25rem); background: var(--panel); }
.panel h1 { font-size: clamp(1.85rem, 6vw, 3.45rem); }
form { display: grid; justify-items: start; gap: .9rem; margin-top: 1.25rem; }
label { display: grid; gap: .35rem; width: 100%; font-size: .91rem; font-weight: 650; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); color: inherit; }
textarea { resize: vertical; }
.file { padding: 1rem; border: 1px dashed #657990; border-radius: .65rem; background: #212d3c; }
small { color: var(--muted); font-weight: 400; }
input[type=file] { padding: .25rem 0; border: 0; background: transparent; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--mint); border-radius: .5rem; background: var(--mint); color: #101c16; text-decoration: none; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: #212d3c; color: var(--mint); border-color: var(--line); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; }
.result { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .75rem; }
.result button { margin-top: .65rem; }
canvas, #sharpen-preview { display: block; height: auto; margin-bottom: .6rem; }
canvas { width: min(100%, 280px); }
#sharpen-preview { max-width: 100%; max-height: 420px; object-fit: contain; border-radius: .5rem; }
.file-list { width: 100%; padding: 0; list-style: none; display: grid; gap: .55rem; margin: 0; }
#exif-results { margin-top: .7rem; }
.file-list li { display: grid; gap: .55rem; border: 1px solid var(--line); border-radius: .65rem; padding: .7rem; overflow-wrap: anywhere; }
.file-list .button { justify-self: start; }
.file-head, .file-actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.file-head { justify-content: space-between; }
.file-actions button { min-width: 44px; }
fieldset { width: 100%; margin: 0; padding: .65rem .75rem .8rem; border: 1px solid var(--line); border-radius: .5rem; }
legend { padding-inline: .25rem; font-size: .91rem; font-weight: 650; }
.checks { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.checks label { display: flex; gap: .45rem; align-items: center; }
input[type=checkbox] { width: 1.1rem; min-height: 1.1rem; accent-color: var(--mint); }
#password-output { font-family: ui-monospace, monospace; }
.metric { display: block; font-size: clamp(1.2rem, 4.5vw, 2rem); font-weight: 750; overflow-wrap: anywhere; }
#ip-output { margin: 1rem 0 .6rem; }
#speed-start { margin-top: 1rem; }
.measurements { margin-top: .85rem; }
.measurements > div { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: .65rem; }
.measurements span { color: var(--muted); font-size: .86rem; }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards { gap: .55rem; } .card-body { padding: .65rem; } .card-body strong { font-size: 1rem; } .card-body span { font-size: .8rem; } }
@media (max-width: 330px) { .cards { grid-template-columns: 1fr; } }

.legal-links { margin-top: 1.25rem; color: var(--muted); }
.legal-links a { text-underline-offset: .18em; }
.photo-row { display: flex; align-items: center; gap: .8rem; }
.photo-row img { width: 64px; height: 64px; object-fit: contain; border-radius: .35rem; background: var(--surface); }
.photo-row strong { min-width: 0; overflow-wrap: anywhere; }
#redact-canvas { width: auto; max-width: 100%; max-height: 68vh; margin-bottom: .75rem; background: repeating-conic-gradient(#243141 0% 25%, #17212d 0% 50%) 0 0 / 20px 20px; cursor: crosshair; touch-action: none; }
#redact-editor .file-actions button { margin-top: 0; }
button:not(:disabled):hover, .button:hover { background: #c3ffda; }
.secondary:not(:disabled):hover { background: #2d4051; border-color: var(--mint); }
input::file-selector-button { font: inherit; min-height: 38px; border: 1px solid var(--line); border-radius: .4rem; background: #253446; color: inherit; margin-inline-end: .55rem; }

