/* ==========================================================================
   VALID – www.valid.cz
   Barevne tema vychazi z loga 2025_valid_01_94.png (tmava + svetla zelena)
   ========================================================================== */

:root {
    --green-950: #0a3416;
    --green-900: #0f4a1f;
    --green-700: #14632a;   /* tmava zelena z loga */
    --green-600: #1b7d35;
    --green-500: #2e9a44;
    --green-400: #86d13b;   /* svetla zelena z loga */
    --green-300: #a9e26e;
    --green-100: #e8f7d9;
    --green-50:  #f3faeb;
    --cream:     #fffbe6;

    --ink:       #17211a;
    --ink-2:     #33413a;
    --muted:     #5f6f64;
    --line:      #dfe7e0;
    --bg:        #f5f7f4;
    --card:      #ffffff;

    --red-600:   #c8352b;
    --red-100:   #fbe4e2;
    --amber-100: #fff1cc;
    --amber-700: #8a5a00;

    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 1px 2px rgba(23, 33, 26, .06), 0 8px 24px rgba(23, 33, 26, .08);
    --shadow-lg: 0 2px 4px rgba(23, 33, 26, .08), 0 20px 48px rgba(23, 33, 26, .16);
    --font:      "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1140px;
}

/* --------------------------------------------------------------------------
   Reset & zaklad
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green-700); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green-600); margin-bottom: .6em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* --------------------------------------------------------------------------
   Tlacitka
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background-color .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(20, 99, 42, .28); }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--light { background: var(--green-400); color: var(--green-950); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.btn--light:hover { background: var(--green-300); color: var(--green-950); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-50); color: var(--green-900); }
.btn--danger { background: transparent; color: var(--red-600); border-color: var(--red-600); }
.btn--danger:hover { background: var(--red-100); color: var(--red-600); }
.btn--sm { padding: .4em .9em; font-size: .85rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Hlavicka
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(23, 33, 26, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand__tagline { font-size: .78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a { padding: .55em .9em; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.site-nav > a:hover { background: var(--green-50); color: var(--green-900); text-decoration: none; }
.site-nav > a[aria-current="page"]:not(.btn) { color: var(--green-700); }
.site-nav > a.btn--nav { margin-left: 10px; padding: .55em 1.1em; color: #fff; }
.site-nav > a.btn--nav:hover { background: var(--green-900); color: #fff; }
.btn--nav[aria-current="page"] { background: var(--green-900); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--green-950) 0%, var(--green-700) 55%, var(--green-600) 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .6;
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__deco svg { width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px); max-width: 780px; margin-inline: auto; text-align: center; }
.hero .eyebrow { color: var(--green-300); }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__facts { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.hero__facts li { display: flex; flex-direction: column; align-items: center; }
.hero__facts strong { font-size: 1.35rem; color: var(--green-300); }
.hero__facts span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.hero--compact .hero__inner { padding-block: clamp(40px, 6vw, 72px); max-width: 860px; }

/* kroky (Podpora) */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { display: flex; gap: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(4px); }
.steps__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-400); color: var(--green-950); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.steps a { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Rychla podpora (uvod)
   -------------------------------------------------------------------------- */
.quick-support { position: relative; z-index: 2; margin-top: -34px; }
.quick-support__panel {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px 28px;
    border-left: 6px solid var(--green-400);
}
.quick-support__text h2 { font-size: 1.25rem; margin-bottom: .2em; }
.quick-support__text p { margin: 0; color: var(--muted); }
.quick-support__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-btn {
    display: inline-flex; align-items: center; gap: .55em; padding: .6em 1em;
    border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-100);
    color: var(--green-900); font-weight: 600; font-size: .95rem; transition: background-color .18s, border-color .18s, transform .12s;
}
.quick-btn:hover { background: var(--green-100); border-color: var(--green-300); text-decoration: none; transform: translateY(-1px); }
.quick-btn .icon { color: var(--green-600); }
.quick-btn--more { background: transparent; border-color: var(--line); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Sekce
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* sluzby */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.service__icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50)); color: var(--green-700);
}
.service__icon .icon { width: 30px; height: 30px; }
.service h3 { font-size: 1.15rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* technologie */
.tech-strip { padding-block: 26px; background: var(--green-900); color: #fff; }
.tech-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.tech-strip__label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-300); font-weight: 700; }
.tech-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-strip__list li { padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; font-weight: 600; }

/* proc my */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.why__text p { color: var(--ink-2); font-size: 1.05rem; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why__list li { display: flex; gap: 14px; align-items: flex-start; }
.why__list .icon { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--green-400); color: var(--green-950); margin-top: 2px; }
.why__list strong { display: block; }
.why__list span { color: var(--muted); font-size: .95rem; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.contact-card {
    display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); color: var(--ink);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); text-decoration: none; }
.contact-card .icon { width: 28px; height: 28px; color: var(--green-600); margin-bottom: 6px; }
.contact-card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-card__value { font-weight: 600; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Soubory ke stazeni
   -------------------------------------------------------------------------- */
.file-group + .file-group { margin-top: 40px; }
.file-group__head { margin-bottom: 16px; }
.file-group__head h3 { font-size: 1.25rem; margin-bottom: .2em; }
.file-group__head p { margin: 0; color: var(--muted); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.file-grid--featured { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.file-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
    padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.file-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); text-decoration: none; }
.file-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.file-card__icon .icon { width: 26px; height: 26px; }
.file-card--windows .file-card__icon { background: #e6f0fb; color: #1d5fa8; }
.file-card--macos .file-card__icon { background: #eeeef2; color: #333; }
.file-card--linux .file-card__icon { background: #fff3dc; color: #a35b00; }
.file-card--android .file-card__icon { background: #e6f7ea; color: #1e7a3b; }
.file-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.file-card__title { font-weight: 700; font-size: 1.05rem; }
.file-card__desc { font-size: .9rem; color: var(--muted); }
.file-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: .72rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; background: var(--green-100); color: var(--green-900); letter-spacing: .02em; }
.badge--muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.file-card__action { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--green-700); font-size: .75rem; font-weight: 700; }
.file-card__action .icon { width: 26px; height: 26px; }
.file-card--big { padding: 24px; border-width: 2px; border-color: var(--green-100); background: linear-gradient(180deg, #fff, var(--green-50)); }
.file-card--big .file-card__icon { width: 60px; height: 60px; }
.file-card--big .file-card__icon .icon { width: 32px; height: 32px; }
.file-card--big .file-card__title { font-size: 1.2rem; }
.file-card--big .file-card__action { padding: 10px 14px; border-radius: 999px; background: var(--green-700); color: #fff; }

/* --------------------------------------------------------------------------
   Paticka
   -------------------------------------------------------------------------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .85); margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green-300); }
.site-footer h3 { color: var(--green-300); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8em; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 52px 36px; }
.site-footer__brand img { width: 110px; height: auto; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; font-size: .95rem; }
.footer-list { list-style: none; margin: 0; padding: 0; font-style: normal; line-height: 1.9; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* 404 */
.notfound { text-align: center; max-width: 560px; padding-block: 40px; }
.notfound .hero__actions { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Responzivita
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .brand__text { display: none; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 18px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(23, 33, 26, .12);
    }
    .site-nav.is-open { display: flex; }
    .site-nav > a { padding: .8em 1em; border-radius: var(--radius-sm); }
    .btn--nav { margin: 8px 0 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .services { grid-template-columns: 1fr; }
    .quick-support { margin-top: -20px; }
    .quick-support__panel { padding: 20px; }
    .file-card { grid-template-columns: auto 1fr; }
    .file-card__action { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; padding: 8px; border-radius: 999px; background: var(--green-50); }
    .file-card__action .icon { width: 20px; height: 20px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 24px; }
}

/* ==========================================================================
   ADMINISTRACE
   ========================================================================== */
.admin { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--green-950); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.admin-brand:hover { text-decoration: none; color: var(--green-300); }
.admin-brand img { width: 64px; height: auto; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: .65em 1em; border-radius: var(--radius-sm); color: rgba(255, 255, 255, .85); font-weight: 600; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--green-700); color: #fff; }
.admin-user { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.admin-user .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.admin-user .btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-main { padding: 32px 36px 60px; min-width: 0; }
.admin-head { margin-bottom: 20px; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }
.h-sub { font-size: 1.15rem; margin: 32px 0 12px; }

.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.flash ul { margin: 0; padding-left: 20px; }
.flash--success { background: var(--green-100); color: var(--green-950); border: 1px solid var(--green-300); }
.flash--error { background: var(--red-100); color: #7a1d16; border: 1px solid #f1b8b3; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.stat__value { font-size: 2rem; font-weight: 800; color: var(--green-700); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .85rem; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar__info { color: var(--muted); font-size: .9rem; margin-left: auto; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--green-50); }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table .actions .btn { margin-left: 4px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); margin-right: 4px; }
.tag--ok { background: var(--green-100); border-color: var(--green-300); color: var(--green-950); }
.tag--accent { background: var(--green-400); border-color: var(--green-400); color: var(--green-950); }
.tag--warn { background: var(--amber-100); border-color: #f0d68a; color: var(--amber-700); }

/* formulare */
.form { max-width: 560px; }
.form--wide { max-width: none; }
.form__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.form__col { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field em { color: var(--red-600); font-style: normal; }
.field small { color: var(--muted); font-size: .8rem; }
.field--narrow { max-width: 140px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field-row .field { flex: 1 1 160px; }
.form input[type="text"], .form input[type="password"], .form input[type="number"], .form textarea, .form select {
    font: inherit; padding: .6em .8em; border: 1px solid #c9d3cb; border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(134, 209, 59, .3); }
.form input[type="file"] { font: inherit; font-size: .9rem; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-700); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; background: var(--card); }
.fieldset legend { font-weight: 700; padding: 0 6px; }
.current-file { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); margin-bottom: 14px; }
.current-file .icon { color: var(--green-700); width: 24px; height: 24px; }
.current-file > div { flex: 1; min-width: 0; }
.current-file .check { margin: 0; font-size: .85rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .88rem; margin: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; word-break: break-all; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--bg); padding: .1em .35em; border-radius: 4px; }

/* prihlaseni */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, var(--green-950), var(--green-700)); }
.login-card { width: 100%; max-width: 400px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px 32px; text-align: center; }
.login-card__brand { display: inline-block; margin-bottom: 12px; }
.login-card__brand img { width: 120px; height: auto; margin: 0 auto; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 20px; }
.login-card .form { text-align: left; max-width: none; }
.login-card__back { margin: 20px 0 0; font-size: .9rem; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 16px 20px; gap: 12px; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-user { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 4px; }
    .admin-main { padding: 20px; }
    .form__cols { grid-template-columns: 1fr; }
}
