:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #e5edf7; background: #0a1423; }
body { margin: 0; }
header { border-bottom: 1px solid #31445a; padding: 1.15rem clamp(1rem, 6vw, 5rem); }
header a { color: #f3f8ff; font: 700 1.25rem ui-monospace, monospace; text-decoration: none; }
header span { color: #67e8c4; }
main { max-width: 68rem; margin: auto; padding: clamp(2rem, 8vw, 5rem) 1rem; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.05em; margin: 0; }
.intro { color: #b8c9dc; margin: 1rem 0 2.5rem; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
section { min-width: 0; background: #132236; border: 1px solid #31445a; border-radius: 12px; padding: 1.4rem; }
h2 { margin-top: 0; }
form { display: grid; gap: .65rem; }
input, button, select, textarea { border-radius: 6px; padding: .7rem .85rem; font: inherit; }
input, select, textarea { min-width: 0; background: #0a1423; color: inherit; border: 1px solid #667e99; }
textarea { resize: vertical; }
#tool-search { display: block; width: min(100%, 28rem); box-sizing: border-box; margin: .5rem 0 1.5rem; }
button { justify-self: start; margin-top: .35rem; border: 0; color: #10231e; background: #67e8c4; font-weight: 700; cursor: pointer; }
:focus-visible { outline: 3px solid #faf5a2; outline-offset: 3px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
pre:empty { margin: 0; }
header { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
header nav a { font: inherit; }
main a { color: #86ead1; }
main nav { margin-bottom: 1rem; }
.catalog { margin-top: 1rem; }
.catalog li, #tool-suggestions li { margin-block: .55rem; }
.tool-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .65rem; }
.catalog .tool-list li { margin: 0; }
.tool-tile { display: flex; height: 100%; box-sizing: border-box; gap: .8rem; padding: .8rem; border: 1px solid #31445a; border-radius: 8px; background: #0e1b2c; text-decoration: none; }
.tool-tile:hover { border-color: #67e8c4; }
.tool-description { display: block; color: #b8c9dc; margin-top: .15rem; line-height: 1.45; }
.tool-icon { display: inline-grid; place-items: center; flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem; border-radius: 7px; background: #213d39; color: #91f2d4; font: 700 .95rem ui-monospace, monospace; }
.tool-icon[data-category="dns"], .tool-icon[data-category="web"] { background: #243954; color: #b0d5ff; }
.tool-icon[data-category="developer"], .tool-icon[data-category="data"] { background: #383054; color: #ddc8ff; }
.tool-icon[data-category="security"], .tool-icon[data-category="media"] { background: #462f40; color: #ffc1da; }
.tool-icon[data-category="units"] { background: #453a26; color: #ffdc9c; }
#tool-suggestions a { display: inline-flex; align-items: center; gap: .5rem; }
#tool-suggestions .tool-icon { width: 1.7rem; height: 1.7rem; flex-basis: 1.7rem; font-size: .8rem; }
#tool-search-status:empty, #tool-suggestions:empty { display: none; }
#tool-suggestions { margin: 0 0 1.5rem; padding-inline-start: 1.25rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.result-actions[hidden] { display: none; }
.result-actions button { background: #253d55; color: #f3f8ff; }
.qr-preview { display: block; margin-block: 1rem; max-width: min(100%, 24rem); height: auto; border-radius: 8px; }
.qr-preview[hidden] { display: none; }
.email-preview { display: block; max-width: 100%; height: 35rem; background: white; border: 1px solid #667e99; margin-block: 1rem; border-radius: 6px; }
.email-preview[hidden] { display: none; }
