:root {
    --bg: #f4f3ef;
    --bg-accent: #ebe8df;
    --panel: #ffffff;
    --text: #171717;
    --muted: #5f5a4f;
    --line: #ddd7c9;
    --primary: #009ee0;
    --primary-strong: #009ee0;
    --shadow: 0 18px 40px rgba(42, 41, 34, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 650px at -10% -20%, #dad2c0 0, transparent 55%),
        radial-gradient(1000px 500px at 110% -10%, #d8edf8 0, transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg-accent));
    min-height: 100vh;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 18px 44px;
}

.page-landing {
    padding-top: 46px;
}

.hero {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px 28px;
    margin-bottom: 20px;
    animation: fadeUp 420ms ease-out;
}

.page-hero {
    padding: 20px 24px;
    margin-bottom: 16px;
}

.page-hero h2 {
    margin: 0;
}

.hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-link .hero {
    cursor: pointer;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

h1 {
    margin: 0 0 10px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: clamp(1.95rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
}

.lede {
    margin: 0;
    color: var(--muted);
    max-width: 56ch;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    box-shadow: 0 5px 20px rgba(30, 33, 26, 0.05);
    animation: fadeUp 520ms ease-out;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--primary) 45%, var(--line));
    box-shadow: 0 12px 28px rgba(0, 158, 224, 0.2);
    outline: none;
}

.kicker {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.card strong {
    font-size: 1.12rem;
}

h2 {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    margin: 0 0 20px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
}

h4 {
    margin: 18px 0 10px;
}

form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin: 16px 0;
}

.heliosT {
    margin: 0;
}

input[type='file'],
input[type='password'],
textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #c8c1b0;
    border-radius: 10px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
}

input[type='submit'] {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button[type='submit'] {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button[type='submit']:hover {
    background: var(--primary-strong);
}

.inline-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.download-all-form {
    margin: 10px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.reload-actions {
    margin: 10px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.btn-secondary {
    background: #fff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.btn-secondary:hover {
    background: #f1f9fd;
    color: var(--primary-strong);
    border-color: var(--primary-strong);
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-actions button[type='submit'] {
    min-width: 220px;
}

.auth-form {
    max-width: 460px;
}

.auth-label,
.auth-input,
.auth-actions {
    margin: 0;
}

.auth-label {
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-input {
    margin-bottom: 12px;
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
}

.auth-error {
    margin-top: 12px;
}

input[type='submit']:hover {
    background: var(--primary-strong);
}

a {
    color: var(--primary-strong);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    font-size: 0.94rem;
}

th {
    background: #f5f6f2;
    font-weight: 700;
}

.chyba {
    color: #b52618;
    font-weight: 600;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 20px 14px 36px;
    }
}
