/* aukcedomen.bua.cz – design „1a“ */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --header: #ffffff;
  --border: #e6e8ee;
  --input-border: #e6e8ee;
  --input-bg: #ffffff;
  --row-border: #f1f2f5;
  --sep: #eef0f4;
  --text: #0f1729;
  --text-2: #5b6478;
  --muted: #98a0b0;
  --disabled: #c9ced8;
  --pg-disabled: #c3c8d2;
  --accent: oklch(0.55 0.17 258);
  --accent-solid: #2f5fd8;
  --accent-tint: oklch(0.55 0.17 258 / .1);
  --accent-tint-2: oklch(0.55 0.17 258 / .08);
  --accent-ink: oklch(0.4 0.17 258);
  --accent-chip-ink: oklch(0.45 0.17 258);
  --accent-ring: oklch(0.55 0.17 258 / .15);
  --link: oklch(0.55 0.17 258);
  --success: oklch(0.55 0.14 155);
  --error: oklch(0.58 0.17 30);
  --error-tint: oklch(0.58 0.17 30 / .08);
  --warn-bg: oklch(0.97 0.05 85);
  --warn-border: oklch(0.88 0.09 85);
  --warn-ink: oklch(0.45 0.1 70);
  --hover: #fafbfc;
  --tag-bg: #f1f2f5;
  --toggle-off: #d8dce4;
  --thumb-bg: #ffffff;
  --pg-active-bg: #0f1729;
  --pg-active-fg: #ffffff;
  --drop-border: #c9cfda;
  --drop-bg: #fafbfc;
  --overlay: rgba(15, 23, 41, .45);
  --shadow-modal: 0 24px 64px rgba(15, 23, 41, .25);
  --shadow-pop: 0 16px 48px rgba(15, 23, 41, .14);
  --skeleton: #eef0f4;
  --row-h: 64px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #161a22; --header: #141821; --border: #252b36; --input-border: #2c3340;
    --input-bg: #0f1218; --row-border: #1d222c; --sep: #222834; --text: #e8ebf1; --text-2: #8b93a3;
    --muted: #6b7383; --disabled: #3a4150; --pg-disabled: #3a4150; --accent: oklch(0.65 0.15 258);
    --accent-tint: oklch(0.65 0.15 258 / .16); --accent-tint-2: oklch(0.65 0.15 258 / .14);
    --accent-ink: oklch(0.82 0.1 258); --accent-chip-ink: oklch(0.82 0.1 258); --accent-ring: oklch(0.65 0.15 258 / .25);
    --link: oklch(0.72 0.14 258); --success: oklch(0.72 0.14 155); --error: oklch(0.7 0.15 30);
    --error-tint: oklch(0.7 0.15 30 / .12); --warn-bg: oklch(0.3 0.05 80 / .45); --warn-border: oklch(0.45 0.07 80);
    --warn-ink: oklch(0.88 0.09 85); --hover: #1a1f28; --tag-bg: #1d222c; --toggle-off: #2c3340;
    --thumb-bg: #0f1218; --pg-active-bg: #e8ebf1; --pg-active-fg: #0f1218; --drop-border: #3a4150; --drop-bg: #121620;
    --overlay: rgba(0, 0, 0, .6); --shadow-modal: 0 24px 64px rgba(0, 0, 0, .5); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .45);
    --skeleton: #1d222c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #161a22; --header: #141821; --border: #252b36; --input-border: #2c3340;
  --input-bg: #0f1218; --row-border: #1d222c; --sep: #222834; --text: #e8ebf1; --text-2: #8b93a3;
  --muted: #6b7383; --disabled: #3a4150; --pg-disabled: #3a4150; --accent: oklch(0.65 0.15 258);
  --accent-tint: oklch(0.65 0.15 258 / .16); --accent-tint-2: oklch(0.65 0.15 258 / .14);
  --accent-ink: oklch(0.82 0.1 258); --accent-chip-ink: oklch(0.82 0.1 258); --accent-ring: oklch(0.65 0.15 258 / .25);
  --link: oklch(0.72 0.14 258); --success: oklch(0.72 0.14 155); --error: oklch(0.7 0.15 30);
  --error-tint: oklch(0.7 0.15 30 / .12); --warn-bg: oklch(0.3 0.05 80 / .45); --warn-border: oklch(0.45 0.07 80);
  --warn-ink: oklch(0.88 0.09 85); --hover: #1a1f28; --tag-bg: #1d222c; --toggle-off: #2c3340;
  --thumb-bg: #0f1218; --pg-active-bg: #e8ebf1; --pg-active-fg: #0f1218; --drop-border: #3a4150; --drop-bg: #121620;
  --overlay: rgba(0, 0, 0, .6); --shadow-modal: 0 24px 64px rgba(0, 0, 0, .5); --shadow-pop: 0 16px 48px rgba(0, 0, 0, .45);
  --skeleton: #1d222c;
  color-scheme: dark;
}

/* ------------------------------------------------------------ základ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-anchor: none;
}
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.accent-text { color: var(--accent); font-weight: 500; }
.ico { flex: none; display: block; }
.w-full { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ logo */
.logo {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-solid); flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: 1.8px; padding-left: 7px;
}
.logo i { display: block; height: 3.5px; border-radius: 1.75px; background: #fff; }
.logo i:nth-child(1) { width: 18px; }
.logo i:nth-child(2) { width: 13px; }
.logo i:nth-child(3) { width: 8px; background: #b9ccff; }
.logo-40 { width: 40px; height: 40px; border-radius: 10px; gap: 2.2px; padding-left: 8.8px; }
.logo-40 i { height: 4.4px; border-radius: 2.2px; }
.logo-40 i:nth-child(1) { width: 22.5px; }
.logo-40 i:nth-child(2) { width: 16.3px; }
.logo-40 i:nth-child(3) { width: 10px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.wordmark b { font-weight: 600; color: var(--text); }
.wordmark span { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .82em; }
.wordmark-28 .wordmark { font-size: 28px; }

/* ------------------------------------------------------------ tlačítka a pole */
.btn {
  height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; font-weight: 500; padding: 0 16px; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline { border-color: var(--input-border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); }
.btn-icon { width: 38px; padding: 0; border-color: var(--input-border); background: var(--surface); color: var(--text-2); }
.btn-icon:hover { color: var(--text); border-color: var(--muted); }
.btn-text { color: var(--text-2); padding: 0 12px; }
.btn-text:hover { color: var(--text); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-34 { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-40 { height: 40px; padding: 0 16px; }
.btn-44 { height: 44px; }
.btn-46 { height: 46px; font-size: 15px; width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { border: 0; background: none; padding: 0; font-size: 14px; color: var(--accent); }
.link-btn:hover { text-decoration: underline; }
.link-btn.muted { color: var(--text-2); font-size: 13px; }
.icon-close { border: 0; background: none; color: var(--muted); padding: 4px; margin: -4px -4px 0 0; border-radius: 6px; }
.icon-close:hover { color: var(--text); }

.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 8px; }
.label-row .mono { white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.input, .input-wrap {
  height: 42px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--input-bg);
  padding: 0 12px; font-size: 15px; color: var(--text); min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .input-wrap input::placeholder { color: var(--muted); }
.input:focus, .input-wrap:focus-within, .input.is-open {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.input-wrap { display: flex; align-items: center; gap: 8px; }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; padding: 0; font-size: 15px; }
.input-wrap .ico { color: var(--muted); }
.input-44 { height: 44px; }
.select {
  appearance: none; -webkit-appearance: none; font-size: 14px; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.field-error { color: var(--error); font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }

/* ------------------------------------------------------------ přihlášení */
.login { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-box { width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }
.login-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.login-titles { display: flex; flex-direction: column; gap: 6px; }
.login-theme { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 20px; }
@media (max-width: 767px) { .login-theme { width: 44px; height: 44px; top: max(12px, env(safe-area-inset-top)); right: 16px; } }
#password-wrap { height: 46px; padding: 0 14px; background: var(--surface); }
#password-wrap input { font-size: 16px; }
#password-wrap input[type="password"] { letter-spacing: .15em; }
#password-wrap.is-error { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-tint); }
#password-toggle { font-size: 13px; color: var(--text-2); }
.captcha { display: flex; flex-direction: column; gap: 8px; min-height: 78px; margin: -8px 0; }

/* ------------------------------------------------------------ hlavička */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 48px; background: var(--header); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
}
.menu button {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; font-size: 14px; text-align: left; color: var(--text);
}
.menu button .ico { color: var(--text-2); }
.menu button:hover { background: var(--hover); }

/* ------------------------------------------------------------ stránka */
.page { max-width: 1376px; margin: 0 auto; padding: 48px 48px 56px; display: flex; flex-direction: column; gap: 28px; }
.page-title { display: flex; flex-direction: column; gap: 6px; }
.page-title h1 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }

.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.banner > .ico { color: var(--accent); }
.banner > div { flex: 1; min-width: 0; }
.banner-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.banner-warn > .ico { color: var(--warn-ink); }
.banner.is-urgent { background: var(--error-tint); border-color: var(--error); }
.banner.is-urgent > .ico { color: var(--error); }

/* ------------------------------------------------------------ filtry */
.filters { padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.filters-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.domain-row { display: flex; gap: 6px; }
.domain-row #q { flex: 1; }
.domain-row .select { flex: none; }
.filters-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--sep); padding-top: 18px;
}
.chips-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--input-border); background: var(--surface);
  font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
}
.chip:hover { border-color: var(--muted); }
.chip.is-active { border-color: var(--accent); background: var(--accent-tint-2); color: var(--accent-chip-ink); font-weight: 500; }
.chip .chip-x { font-size: 16px; line-height: 1; margin-right: -2px; }

.toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 34px; height: 20px; border-radius: 10px; background: var(--toggle-off); position: relative; transition: background-color .15s; flex: none; }
.toggle-track::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform .15s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(14px); }
.toggle input:checked ~ span:last-child { color: var(--text); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* dvoubodový posuvník */
.range { position: relative; height: 42px; margin: 0 9px; }
.range-track { position: absolute; left: -9px; right: -9px; top: 19px; height: 4px; border-radius: 2px; background: var(--border); }
.range-fill { position: absolute; top: 0; height: 4px; border-radius: 2px; background: var(--accent); left: 0; right: 0; }
.range input[type="range"] {
  position: absolute; left: -9px; width: calc(100% + 18px); top: 0; height: 42px; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none; outline: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 42px; }
.range input[type="range"]::-moz-range-track { background: none; height: 42px; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 18px; height: 18px; margin-top: 12px; border-radius: 50%; background: var(--thumb-bg); border: 2px solid var(--accent);
  box-shadow: 0 1px 2px rgba(15, 23, 41, .12); transition: box-shadow .15s;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%; background: var(--thumb-bg);
  border: 2px solid var(--accent); box-sizing: border-box; box-shadow: 0 1px 2px rgba(15, 23, 41, .12);
}
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }
.range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 5px var(--accent-ring); }

/* ------------------------------------------------------------ kalendář */
.date-field { position: relative; }
.date-trigger { width: 100%; text-align: left; display: flex; align-items: center; padding-right: 36px; cursor: pointer; }
.date-trigger .placeholder { color: var(--muted); }
#date-text:not(.placeholder) { font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted);
  width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.date-clear:hover { color: var(--text); }
.cal {
  position: absolute; top: 50px; left: 0; width: 520px; z-index: 20; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop);
  display: grid; grid-template-columns: 160px 1fr;
}
.cal-presets { border-right: 1px solid var(--sep); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.cal-preset {
  height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 14px;
  color: var(--text); border: 0; background: none; text-align: left; white-space: nowrap;
}
.cal-preset:hover { background: var(--hover); }
.cal-preset.is-active { background: var(--accent-tint); color: var(--accent-ink); font-weight: 500; }
.cal-main { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-month { font-size: 15px; font-weight: 600; }
.cal-arrow {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
}
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.cal-grid { row-gap: 2px; margin-top: -8px; }
.cal-cell { height: 40px; display: flex; align-items: center; justify-content: center; }
.cal-cell.in-range { background: var(--accent-tint); }
.cal-cell.band-start { background: linear-gradient(90deg, transparent 50%, var(--accent-tint) 50%); }
.cal-cell.band-end { background: linear-gradient(90deg, var(--accent-tint) 50%, transparent 50%); }
.cal-day {
  width: 40px; height: 40px; border-radius: 8px; border: 0; background: none; font-family: var(--mono); font-size: 14px;
  color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0;
}
.cal-day:hover:not(:disabled) { background: var(--hover); box-shadow: inset 0 0 0 1px var(--border); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--muted); }
.in-range .cal-day { color: var(--accent-ink); }
.in-range .cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.is-edge, .cal-day.is-edge:hover { background: var(--accent); color: #fff; font-weight: 500; box-shadow: none; }
.cal-day:disabled { color: var(--disabled); cursor: default; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--sep); padding-top: 12px; font-size: 13px; }
.cal-buttons { display: flex; gap: 8px; }

/* ------------------------------------------------------------ výsledky */
.results { overflow: hidden; }
.results-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px;
  border-bottom: 1px solid var(--sep); min-height: 67px;
}
.results-count { font-size: 15px; white-space: nowrap; }
.results-count strong { font-weight: 600; }
.results-tools { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--text-2); }
.inline-select { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.inline-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--text-2); font-size: 14px;
  padding: 4px 16px 4px 2px; cursor: pointer; border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2398a0b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.inline-select select:hover { color: var(--text); }
.inline-select select option { color: var(--text); background: var(--surface); }
.active-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: var(--tag-bg);
  border: 0; font-size: 14px; color: var(--text);
}
.tag:hover { color: var(--error); }

.thead, .row { display: grid; grid-template-columns: minmax(0, 1fr) 180px 120px 160px 100px; padding: 0 24px; align-items: center; }
.thead { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sep); }
.th {
  border: 0; background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--text-2); text-align: left;
  display: inline-flex; align-items: center; gap: 4px; justify-self: start;
}
.th.num { justify-self: end; }
.th:hover { color: var(--text); }
.th.is-sorted { color: var(--text); }
.sort-ind { font-size: 12px; color: var(--muted); min-width: 10px; }
.th.is-sorted .sort-ind { color: var(--text); }

.rows { position: relative; transition: opacity .12s; }
.rows.is-paged { min-height: calc(var(--limit, 25) * var(--row-h)); }
.rows.is-loading { opacity: .5; }
.row { height: var(--row-h); border-bottom: 1px solid var(--row-border); font-size: 16px; }
.row:hover { background: var(--hover); }
.c-domain { font-weight: 500; min-width: 0; display: flex; align-items: center; gap: 8px; }
.c-domain .dn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-badge {
  flex: none; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent-ink); white-space: nowrap;
}
.c-price { text-align: right; font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.c-len { text-align: right; font-family: var(--mono); color: var(--text-2); }
.c-date { text-align: right; color: var(--text-2); font-size: 15px; white-space: nowrap; }
.c-whois { text-align: right; font-size: 13px; white-space: nowrap; }
.c-meta { display: none; }
.rows-end { padding: 20px 24px; text-align: center; font-size: 13px; }
.skeleton-bar { height: 12px; border-radius: 6px; background: var(--skeleton); animation: pulse 1.2s ease-in-out infinite; }
.row .skeleton-bar { width: 60%; }
.row .num-skel { width: 60px; margin-left: auto; }
@keyframes pulse { 50% { opacity: .5; } }

.empty { padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.empty-title { font-size: 20px; font-weight: 600; }
.empty p { max-width: 420px; line-height: 1.5; }
.empty .btn { margin-top: 12px; }

.results-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-size: 14px; }

/* stránkování – pevné rozložení, aby šipky zůstávaly pod prstem/myší na stejném místě */
.pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pg {
  height: 34px; min-width: var(--slot-w, 36px); width: var(--slot-w, 36px); padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; flex: none;
}
.pg:hover:not(:disabled):not(.is-current) { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.pg.is-current { background: var(--pg-active-bg); color: var(--pg-active-fg); cursor: default; }
.pg:disabled { color: var(--pg-disabled); cursor: default; }
.pg.gap { cursor: default; }
.pg-arrow { width: 34px; min-width: 34px; }
.pg-label, .pg-edge { display: none; }
.ext-ico { display: inline; vertical-align: -1px; margin-left: 3px; }

/* ------------------------------------------------------------ modály */
.modal {
  position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fade .15s ease;
}
.modal-box {
  width: 520px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface);
  border-radius: 16px; box-shadow: var(--shadow-modal); display: flex; flex-direction: column; animation: pop .18s ease;
}
.modal-box > div[data-step] { display: flex; flex-direction: column; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.modal-head h2 { font-size: 20px; font-weight: 600; }
.modal-head p { font-size: 14px; margin-top: 4px; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--sep); }
.notice { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-border); }

.drop {
  border: 1.5px dashed var(--drop-border); border-radius: 12px; padding: 32px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; background: var(--drop-bg); cursor: pointer; text-align: center; font-size: 14px;
  transition: border-color .15s, background-color .15s;
}
.drop-title { font-size: 15px; font-weight: 500; }
.drop.is-over, .drop:hover { border-color: var(--accent); background: var(--accent-tint); }
.file-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.file-ico {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-ink); flex: none;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 500;
}
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 12px; }
.stats > div { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--border); }
.stat-num { font-family: var(--mono); font-size: 28px; font-weight: 500; line-height: 1.2; }
.stat-num.ok { color: var(--success); }
.stat-num.err { color: var(--error); }
.stat-num.err.is-zero { color: var(--text); }
#r-error-wrap { display: flex; flex-direction: column; gap: 8px; }
.err-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; max-height: 240px; overflow: auto; }
.err-list > div { display: flex; gap: 16px; padding: 10px 14px; }
.err-list > div + div { border-top: 1px solid var(--row-border); }
.err-list .ln { font-family: var(--mono); color: var(--text-2); width: 64px; flex: none; }

.prose { font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose code {
  font-family: var(--mono); font-size: 12.5px; background: var(--tag-bg); padding: 8px 10px; border-radius: 8px;
  display: block; overflow-x: auto; white-space: nowrap; user-select: all;
}
.prose code.code-inline { display: inline; padding: 1px 5px; white-space: normal; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ok-text { color: var(--success); }
.err-text { color: var(--error); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--pg-active-bg);
  color: var(--pg-active-fg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-pop);
  max-width: calc(100% - 32px);
}

/* ------------------------------------------------------------ responzivita */
.only-mobile { display: none !important; }
.only-desktop-flex { display: flex; }

@media (max-width: 1180px) {
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .thead, .row { grid-template-columns: minmax(0, 1fr) 130px 80px 130px 80px; }
}

@media (max-width: 1180px) and (min-width: 768px) {
  .cal { width: min(520px, calc(100vw - 96px)); }
}

@media (max-width: 767px) {
  :root { --row-h: 76px; }
  .only-desktop, .only-desktop-flex { display: none !important; }
  .only-mobile { display: revert !important; }
  span.only-mobile { display: inline !important; }
  .menu button.only-mobile { display: flex !important; }
  .sheet-head.only-mobile, .sheet-foot.only-mobile { display: flex !important; }
  .mobile-search.only-mobile { display: flex !important; }

  body { font-size: 15px; }
  .topbar { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .brand { gap: 10px; }
  .brand .logo { width: 30px; height: 30px; gap: 1.6px; padding-left: 6.6px; }
  .brand .logo i { height: 3.3px; }
  .brand .logo i:nth-child(1) { width: 16.9px; }
  .brand .logo i:nth-child(2) { width: 12.2px; }
  .brand .logo i:nth-child(3) { width: 7.5px; }
  .brand .wordmark { font-size: 16px; }
  .top-actions { gap: 6px; }
  .top-actions .btn { height: 44px; }
  .top-actions .btn-icon { width: 44px; }
  #upload-btn .ico { display: none; }

  .page { padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); gap: 12px; }
  .page-title { padding: 4px 16px 0; }
  .page-title h1 { font-size: 26px; }
  .page-title p { font-size: 14px; }
  .banner { margin: 0 16px; flex-wrap: wrap; }
  .banner > div { flex-basis: calc(100% - 40px); }
  .banner .btn { margin-left: 34px; }

  .mobile-search { flex-direction: column; gap: 12px; padding: 0 16px; }
  .m-search-row { display: flex; gap: 8px; }
  .search-input { flex: 1; background: var(--surface); }
  .count-badge { background: var(--accent); color: #fff; border-radius: 9px; font-size: 12px; padding: 1px 7px; line-height: 16px; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips-scroll::-webkit-scrollbar { display: none; }

  /* filtry jako spodní panel */
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-radius: 16px 16px 0 0; border-bottom: 0;
    max-height: 88dvh; overflow-y: auto; padding: 0 16px; gap: 20px; transform: translateY(105%);
    transition: transform .22s ease; visibility: hidden; box-shadow: var(--shadow-modal);
  }
  .filters.is-open { transform: none; visibility: visible; }
  .sheet-backdrop { position: fixed; inset: 0; z-index: 44; background: var(--overlay); }
  .sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); justify-content: space-between; align-items: center; padding: 16px 0 12px; margin-bottom: -8px; font-size: 17px; }
  .sheet-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sep); }
  .filters-grid { grid-template-columns: 1fr; gap: 20px; }
  .domain-row .select { flex: 1; height: 44px; }
  .date-trigger { height: 44px; }
  .filters-foot { border-top: 0; padding-top: 0; }
  .toggle { margin-left: 0; }

  .cal { position: static; width: 100%; margin-top: 8px; grid-template-columns: 1fr; box-shadow: none; }
  .cal-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--sep); gap: 6px; }
  .cal-preset { height: 32px; padding: 0 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 16px; }
  .cal-main { padding: 12px; }
  .cal-day { width: 100%; max-width: 44px; height: 44px; }
  .cal-cell { height: 44px; }

  /* výsledky jako řádky */
  .results { border-radius: 0; border-left: 0; border-right: 0; }
  .results-bar { flex-wrap: wrap; padding: 10px 16px; min-height: 52px; font-size: 14px; border-bottom: 1px solid var(--border); }
  .results-count { font-size: 14px; }
  .thead { display: none; }
  .row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d p" "m w"; row-gap: 6px; column-gap: 12px;
    padding: 0 16px; align-content: center;
  }
  .c-domain { grid-area: d; font-size: 17px; }
  .c-price { grid-area: p; font-size: 16px; }
  .c-len, .c-date { display: none; }
  .c-meta { display: block; grid-area: m; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c-whois { grid-area: w; }
  .c-whois a { display: inline-block; padding: 4px 0 4px 8px; }
  .row .num-skel { width: 50px; }

  .empty { padding: 56px 16px; }
  .active-tags { width: 100%; justify-content: flex-start; }

  .results-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  #showing { text-align: center; font-size: 13px; }
  .pager { margin: 0; width: 100%; gap: 8px; }
  .pg { height: 44px; border: 1px solid var(--input-border); background: var(--surface); color: var(--text); }
  .pg-arrow { width: 48px; min-width: 48px; }
  .pg-edge { display: inline-flex; }
  .pg-num { display: none; }
  .pg-label {
    display: flex; flex: 1; height: 44px; align-items: center; justify-content: center; font-family: var(--mono);
    font-size: 14px; color: var(--text-2); white-space: nowrap;
  }
  .pg-label b { color: var(--text); font-weight: 500; }

  .modal { align-items: flex-end; padding: 0; }
  .modal-box { width: 100%; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .modal-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; height: 44px; }
  .stats > div { padding: 12px; }
  .stat-num { font-size: 22px; }
  .drop { padding: 24px 16px; }
}

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