/* ==========================================================
   Toolbox – styl
   ========================================================== */

:root {
    --bg: #f6f5f1;
    --bg-soft: #efede7;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --ink: #17181c;
    --ink-2: #4a4c55;
    --muted: #7a7c86;
    --line: #e3e1da;
    --line-strong: #cfccc3;
    --accent: #1f5eff;
    --accent-ink: #ffffff;
    --accent-soft: #e6edff;
    --accent-2: #c8f169;
    --ok: #138a4e;
    --ok-soft: #e3f5ea;
    --warn: #b76a00;
    --bad: #cf2b38;
    --bad-soft: #fde8ea;
    --shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 4px 16px rgba(23, 24, 28, .05);
    --shadow-lg: 0 2px 4px rgba(23, 24, 28, .05), 0 16px 40px rgba(23, 24, 28, .09);
    --radius: 14px;
    --radius-sm: 9px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #121316; --bg-soft: #17181c; --surface: #1b1c21; --surface-2: #202128;
        --ink: #f1f1f3; --ink-2: #c3c4cc; --muted: #8b8d98; --line: #2b2d34; --line-strong: #3a3c45;
        --accent: #6f95ff; --accent-ink: #0b0d14; --accent-soft: #1d2540; --accent-2: #c8f169;
        --ok: #4fd18b; --ok-soft: #15291f; --warn: #f0a640; --bad: #ff6b76; --bad-soft: #321a1d;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
        --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.4);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #121316; --bg-soft: #17181c; --surface: #1b1c21; --surface-2: #202128;
    --ink: #f1f1f3; --ink-2: #c3c4cc; --muted: #8b8d98; --line: #2b2d34; --line-strong: #3a3c45;
    --accent: #6f95ff; --accent-ink: #0b0d14; --accent-soft: #1d2540; --accent-2: #c8f169;
    --ok: #4fd18b; --ok-soft: #15291f; --warn: #f0a640; --bad: #ff6b76; --bad-soft: #321a1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.4);
    color-scheme: dark;
}

/* ---------- Základ ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--inline { width: 1em; height: 1em; vertical-align: -.15em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 680px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Hlavička ---------- */

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--ink); color: var(--accent-2);
}
.brand__mark .icon { width: 20px; height: 20px; }
.site-nav { display: none; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav a { color: var(--ink-2); font-size: .9rem; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (min-width: 980px) { .site-nav { display: flex; } }
.site-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 980px) { .site-header__tools { margin-left: 8px; } }
.search-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted);
    font: inherit; font-size: .9rem; cursor: pointer;
}
.search-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.search-btn .icon { width: 17px; height: 17px; }
.search-btn kbd { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
@media (max-width: 1180px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { padding: 0 10px; } }

.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: inline-flex; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle__moon { display: inline-flex; }
}

.site-main { flex: 1; padding-bottom: 64px; }

/* ---------- Patička ---------- */

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink-2); }

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 16px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font: inherit; font-size: .95rem; font-weight: 550; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); border-color: transparent; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.btn .icon { width: 18px; height: 18px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }

.link-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none;
    color: var(--accent); font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Hero / domovská stránka ---------- */

.hero { padding: 56px 0 36px; }
@media (min-width: 720px) { .hero { padding: 88px 0 48px; } }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 20px; }
.hero__accent {
    background: linear-gradient(transparent 62%, var(--accent-2) 62%, var(--accent-2) 92%, transparent 92%);
    padding: 0 .06em;
}
:root[data-theme="dark"] .hero__accent { color: var(--accent-2); background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__accent { color: var(--accent-2); background: none; } }
.hero__lead { max-width: 600px; font-size: 1.12rem; color: var(--ink-2); margin-bottom: 28px; }

.search {
    display: flex; align-items: center; gap: 10px; max-width: 520px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 0 14px; height: 52px; box-shadow: var(--shadow); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); }
.search kbd { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); }

.tool-group { margin-top: 36px; }
.tool-group__title { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tool-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s;
}
.tool-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card__icon {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
}
.tool-card:hover .tool-card__icon { background: var(--accent); color: var(--accent-ink); }
.tool-card__icon .icon { width: 22px; height: 22px; }
.tool-card__body { display: flex; flex-direction: column; gap: 3px; }
.tool-card__title { font-weight: 650; }
.tool-card__desc { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.empty-search { margin-top: 32px; color: var(--muted); }

.promise { display: grid; gap: 24px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise__item { display: flex; gap: 14px; }
.promise__item > .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.promise__item p { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }

/* ---------- Stránka nástroje ---------- */

.tool-page { padding-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.back:hover { color: var(--ink); text-decoration: none; }
.back .icon { width: 16px; height: 16px; }
.tool-head { margin-bottom: 24px; }
.tool-head__row { display: flex; gap: 16px; align-items: flex-start; }
.tool-head__icon {
    display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px;
    background: var(--ink); color: var(--accent-2);
}
.tool-head__icon .icon { width: 26px; height: 26px; }
.tool-head h1 { margin-bottom: 6px; }
.tool-head__desc { color: var(--ink-2); max-width: 720px; margin: 0; }

.tool-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .tool-layout:has(.tool-side) { grid-template-columns: minmax(0, 1fr) 300px; } }
.tool-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 900px; }

.more-tools { margin-top: 56px; }
.more-tools h2 { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9rem;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.chip .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Panely a formuláře ---------- */

.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 720px) { .panel { padding: 24px; } }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel__head h2 { margin: 0; }
.panel > p { margin: 0; }
.panel--success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field__head label { font-weight: 600; font-size: .92rem; }
.field__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field__hint { font-size: .85rem; color: var(--muted); }

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not(.search input), select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--surface-2);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 32px; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7c86' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
input[type="date"], input[type="datetime-local"] { min-height: 44px; }
textarea.mono, input.mono { font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly], textarea[readonly] { background: var(--bg-soft); }
.num { width: 80px !important; padding: 6px 8px !important; text-align: center; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 24px; cursor: pointer; }

.checks { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; cursor: pointer; }
.check small { color: var(--muted); margin-left: 4px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; align-self: flex-start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 8px; font-size: .92rem; font-weight: 550; color: var(--ink-2); transition: background .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--tight { gap: 14px; }
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.toolbar select { width: auto; }
.toolbar__spacer { flex: 1; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 550; }
.inline-field select { width: auto; }

.io { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 820px) { .io { grid-template-columns: 1fr auto 1fr; } .io--plain { grid-template-columns: 1fr 1fr; } }
.io__swap { align-self: center; justify-self: center; border-color: var(--line); background: var(--surface-2); }
@media (max-width: 819px) { .io__swap { transform: rotate(90deg); } }

.form-error { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0; font-size: .92rem; }

.status { font-size: .9rem; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-2); }
.status[data-state="ok"] { background: var(--ok-soft); color: var(--ok); }
.status[data-state="error"] { background: var(--bad-soft); color: var(--bad); }

.note { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .9rem; padding: 4px 4px 0; }
.note .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 2px; }
.note p { margin: 0; }

.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    padding: 28px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer;
    background: var(--surface-2); color: var(--ink-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone > .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 4px; }
.dropzone--big { padding: 44px 16px; }

/* ---------- Generátor hesel ---------- */

.pw-output {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px 18px;
}
.pw-output__value { flex: 1 1 260px; min-width: 0; font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 500; word-break: break-all; line-height: 1.35; letter-spacing: .02em; }
.pw-output__actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.pw-output__value .d { color: var(--accent); }
.pw-output__value .s { color: var(--warn); }

.meter { display: flex; align-items: center; gap: 12px; margin-top: -6px; }
.meter__bar { flex: 1; height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--bad); transition: width .25s, background .25s; }
.meter__label { font-size: .85rem; color: var(--muted); min-width: 170px; text-align: right; }
.meter[data-level="1"] .meter__bar span { width: 25%; background: var(--bad); }
.meter[data-level="2"] .meter__bar span { width: 50%; background: var(--warn); }
.meter[data-level="3"] .meter__bar span { width: 75%; background: #6bbf3a; }
.meter[data-level="4"] .meter__bar span { width: 100%; background: var(--ok); }

.pw-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: pw; }
.pw-list:empty { display: none; }
.pw-list li { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 8px; font-size: .92rem; word-break: break-all; cursor: pointer; counter-increment: pw; }
.pw-list li::before { content: counter(pw); color: var(--muted); font-size: .8rem; min-width: 1.5em; }
.pw-list li:hover { background: var(--bg-soft); }

/* ---------- Tajná zpráva ---------- */

.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .copy-field { flex-direction: column; } }
.result-head { display: flex; gap: 14px; align-items: flex-start; }
.result-head h2 { margin-bottom: 2px; }
.result-head p { margin: 0; }
.result-head__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }

.steps { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 12px; color: var(--ink-2); font-size: .9rem; }
.step p { margin: 0; }
.step__n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); color: var(--accent-2); font-weight: 700; font-size: .8rem; }

.reveal { padding-top: 56px; text-align: center; }
.reveal__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--accent-2); margin-bottom: 20px; }
.reveal__icon .icon { width: 32px; height: 32px; }
.reveal__form { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.reveal__form .field { width: 100%; max-width: 380px; text-align: left; }
.reveal__cta { margin-top: 40px; font-size: .92rem; }
.secret-box { text-align: left; margin: 24px 0 12px; }
.secret-box__text { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 1rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; max-height: 60vh; overflow: auto; }

/* ---------- Hash ---------- */

.hash-list { display: flex; flex-direction: column; }
.hash-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hash-row:last-child { border-bottom: 0; }
.hash-row__alg { font-weight: 650; font-size: .88rem; color: var(--ink-2); }
.hash-row__val { background: none; padding: 0; font-size: .85rem; word-break: break-all; color: var(--ink); }
.hash-row.is-match { background: var(--ok-soft); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.ok-text { color: var(--ok); font-weight: 600; }
.bad-text { color: var(--bad); font-weight: 600; }

/* ---------- Obrázky ---------- */

.img-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.img-item {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.img-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.img-item__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-item__meta { font-size: .82rem; color: var(--muted); }
.img-item__meta .ok-text, .img-item__meta .bad-text { font-weight: 600; }

/* ---------- Toast ---------- */

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
    background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: .92rem; font-weight: 550;
    box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; z-index: 50; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reklama ---------- */

.ad { display: block; min-height: 90px; margin: 16px auto; max-width: 970px; position: relative; }
.ad__label { position: absolute; top: -16px; left: 0; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tool-side .ad { min-height: 250px; position: sticky; top: 88px; }

/* ---------- Texty ---------- */

.prose { padding-top: 40px; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: var(--ink-2); }
.center-block { text-align: center; padding-top: 80px; }
.big-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Formuláře uvnitř panelu – stejné rozestupy jako panel */
.panel > form { display: flex; flex-direction: column; gap: 18px; }
.panel > form > .btn { align-self: flex-start; margin-top: 6px; }

/* ==========================================================
   Rozšíření: navigace, paleta, komponenty nástrojů
   ========================================================== */

.no-scroll { overflow: hidden; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row--center { justify-content: center; }

/* Drobečky */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.tool-group__title a { color: inherit; }
.tool-head__text { flex: 1; min-width: 0; }

/* Patička s kategoriemi */
.footer-cats { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); padding: 40px 0 8px; }
@media (min-width: 760px) { .footer-cats { grid-template-columns: repeat(5, 1fr); } }
.footer-cats__title { display: block; font-weight: 650; color: var(--ink); margin-bottom: 8px; font-size: .92rem; }
.footer-cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-cats li a { color: var(--muted); font-size: .86rem; }
.footer-cats li a:hover { color: var(--ink); }

/* Paleta Ctrl+K */
.palette { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .45); backdrop-filter: blur(3px); }
.palette__box { position: relative; width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette__search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette__search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 0 !important; }
.palette__search kbd { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.palette__list { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.palette__item:hover, [aria-selected="true"] > .palette__item { background: var(--accent-soft); text-decoration: none; }
.palette__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); color: var(--accent); flex: none; }
.palette__icon .icon { width: 18px; height: 18px; }
.palette__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.palette__text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__cat { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.palette__empty { padding: 16px; color: var(--muted); }
@media (max-width: 520px) { .palette__cat { display: none; } }

/* Tlačítka – varianty */
.btn--sm { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.icon-btn--sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }
.btn-groups { display: flex; flex-direction: column; gap: 14px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-group__label { width: 100%; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Formuláře – varianty */
.input-lg { font-size: 1.15rem !important; padding: 12px 14px !important; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field { min-width: 160px; }
.field--grow { flex: 1 1 260px; }
.checks--inline { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check--field { align-self: end; min-height: 44px; }
.color-field input[type="color"] { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.seg--wrap { flex-wrap: wrap; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 4px; }
details.more[open] > summary { margin-bottom: 14px; }

/* Výběr kategorie jako čipy */
.chips--select label { position: relative; cursor: pointer; }
.chips--select input { position: absolute; opacity: 0; pointer-events: none; }
.chips--select span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; color: var(--ink-2); }
.chips--select input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips--select input:focus-visible + span { outline: 2px solid var(--accent); }
.chip--static { cursor: default; }

/* Hlášky */
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-2); font-size: .95rem; }
.notice--ok { background: var(--ok-soft); color: var(--ok); font-weight: 550; }
.notice--bad { background: var(--bad-soft); color: var(--bad); font-weight: 550; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge--fail { background: var(--bad-soft); color: var(--bad); }

/* Klíč–hodnota */
.kv { margin: 0; display: grid; }
.kv__row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.kv__row:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; word-break: break-word; }
.kv dd > span:first-child { min-width: 0; }
.kv .icon-btn--sm { opacity: .5; }
.kv__row:hover .icon-btn--sm { opacity: 1; }
@media (max-width: 520px) { .kv__row { grid-template-columns: 1fr; gap: 2px; } }

/* Velký výsledek */
.result-big { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 18px; }
.result-big__value { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; word-break: break-all; }
.result-big--xl .result-big__value { font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: -.01em; }
.result-big--wrap .result-big__value { font-size: 1.3rem; line-height: 1.6; white-space: pre-wrap; word-break: normal; }
.unit-row { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .unit-row { grid-template-columns: 1fr 1.3fr auto 1.3fr; } }
.unit-row .io__swap { margin-bottom: 2px; }

/* Dlaždice se statistikami */
.stat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } .stat-tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.panel.stat { padding: 16px 18px; gap: 4px; }
.stat__label { font-size: .8rem; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat__hint { font-size: .78rem; color: var(--muted); }

/* Tabulky */
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table--compact td { padding: 6px 10px; }
.data-table .num-col { text-align: right; white-space: nowrap; }
.data-table tr.muted td { color: var(--muted); }
.data-table tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--bg-soft); }
.panel > .data-table { margin-top: -6px; }
.dns-val { display: flex; gap: 6px; align-items: flex-start; }
.dns-val span { flex: 1; word-break: break-all; }
@media (max-width: 620px) { .data-table { display: block; overflow-x: auto; } }

/* Kód */
.code { margin: 0; font-family: var(--mono); font-size: .85rem; line-height: 1.55; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow: auto; white-space: pre; }
.code-line { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .85rem; }
.code-line > span { flex: 1; word-break: break-all; }

/* Kontrola e-mailu / SSL */
.summary-banner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; border-left: 4px solid var(--muted); }
.summary-banner strong { font-family: var(--mono); }
.summary-banner--ok { border-left-color: var(--ok); }
.summary-banner--warn { border-left-color: var(--warn); }
.summary-banner--fail { border-left-color: var(--bad); }
.check-card--fail { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.check-card--warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.notes { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .92rem; display: grid; gap: 4px; }
.mx-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; display: grid; gap: 4px; }
.dkim-list { display: grid; gap: 8px; }
.tip { display: grid; gap: 6px; }
#dns-results, #mc-results, #ssl-results { display: flex; flex-direction: column; gap: 16px; }
#dns-results:empty, #mc-results:empty, #ssl-results:empty { display: none; }
.chain { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.chain li { display: flex; flex-direction: column; }

/* Moje IP */
.ip-hero { align-items: flex-start; }
.ip-hero .result-big { width: 100%; }

/* Subnet – binární zápis */
.binary { display: grid; gap: 4px; background: var(--bg-soft); padding: 12px; border-radius: var(--radius-sm); overflow-x: auto; white-space: nowrap; }
.binary:empty { display: none; }
.bin-net { color: var(--accent); font-weight: 600; }
.bin-host { color: var(--muted); }

/* JWT */
.jwt-colored { font-size: .85rem; word-break: break-all; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px; line-height: 1.6; }
.jwt-p1, .jwt-h--header::before { color: #d6336c; }
.jwt-p2, .jwt-h--payload::before { color: #7048e8; }
.jwt-p3, .jwt-h--sig::before { color: #0c8599; }
.jwt-h::before { content: "●"; margin-right: 8px; font-size: .8em; }
:root[data-theme="dark"] .jwt-p1 { color: #ff8cb0; } :root[data-theme="dark"] .jwt-p2 { color: #b197fc; } :root[data-theme="dark"] .jwt-p3 { color: #66d9e8; }

/* Regex */
.regex-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0 12px; }
.regex-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.regex-input span { color: var(--muted); font-size: 1.1rem; }
.regex-input input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 11px 6px !important; }
.regex-input #rx-pattern { flex: 1; min-width: 0; }
.regex-input #rx-flags { width: 70px; }
.rx-editor { position: relative; }
.rx-highlight, .rx-editor textarea { font-family: var(--mono); font-size: .9rem; line-height: 1.5; padding: 10px 12px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; }
.rx-highlight { position: absolute; inset: 0; color: transparent; pointer-events: none; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-sm); }
.rx-editor textarea { position: relative; background: transparent !important; resize: vertical; }
.rx-editor { background: var(--surface-2); border-radius: var(--radius-sm); }
.rx-highlight mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: transparent; border-radius: 3px; }
.rx-highlight mark.alt { background: color-mix(in srgb, var(--accent-2) 60%, transparent); }
.cheatsheet > summary { cursor: pointer; font-weight: 600; }
.cheatsheet[open] > summary { margin-bottom: 4px; }
.cheat-grid { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); color: var(--ink-2); }

/* QR */
.qr-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .qr-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .qr-preview { position: sticky; top: 84px; } }
.qr-preview { align-items: center; }
.qr-preview__box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-preview__box canvas { width: 240px; height: 240px; image-rendering: pixelated; }
.qr-preview__box.is-empty canvas { opacity: .08; }
.qr-preview__label { font-weight: 700; color: #17181c; letter-spacing: .04em; font-size: .9rem; }

/* Počítadlo */
@media (min-width: 720px) { .stat-tiles--6 { grid-template-columns: repeat(4, 1fr); } }
.limits { display: grid; gap: 12px; }
.limit__head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 4px; }
.limit progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.limit progress::-webkit-progress-bar { background: var(--bg-soft); }
.limit progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.limit progress::-moz-progress-bar { background: var(--accent); }
.limit.is-over .limit__head .mono { color: var(--bad); font-weight: 650; }
.limit.is-over progress::-webkit-progress-value { background: var(--bad); }
.limit.is-over progress::-moz-progress-bar { background: var(--bad); }
.top-words { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.top-words li span:first-child { margin-right: 8px; }
.top-words:empty { display: none; }

/* Losování a kostky */
.winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.winners li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 1.15rem; }
.winners__n { color: var(--accent); font-weight: 700; }
.winners__spin { color: var(--muted); font-style: italic; }
.dice-out { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 64px; }
.die { display: inline-grid; place-items: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 2rem; font-weight: 700; }
.coin { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--accent-2); color: #17181c; font-weight: 800; font-size: 1.2rem; }
.dice-sum { margin-left: 8px; font-weight: 650; color: var(--ink-2); }
.pop { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.85); opacity: .3; } to { transform: scale(1); opacity: 1; } }

/* Pracovní dny */
.hol-list { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: .9rem; color: var(--ink-2); }
#wd-result { font-size: 1.3rem; }
