* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #555;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: calc(100% - 40px);
    max-width: 1500px;
    min-height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 45px 55px 55px;
    background: #fff;
}


/* HEADER */

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 28px;
}

.title-area {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 5px;
    text-align: center;
}

h1 span {
    white-space: nowrap;
}

.year-arrow {
    color: #777;
    font-size: 42px;
    line-height: 1;
    text-decoration: none;
}

.year-arrow:hover {
    color: #111;
}

.user-area {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}

.user-area a {
    color: #666;
}


/* HORNÝ PREHĽAD */

.overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    min-height: 260px;
    margin-bottom: 30px;
}

.overview-heading {
    display: grid;
    grid-template-columns: 1fr 120px;
    padding: 7px 10px;
    border-bottom: 1px dotted #aaa;
    font-size: 11px;
    letter-spacing: 2px;
}

.holiday-heading {
    grid-template-columns: 1fr 150px;
}

.placeholder {
    margin-top: 10px;
    padding: 12px;
    background: #eee;
    color: #888;
    font-size: 12px;
}


/* ROČNÝ KALENDÁR */

.year-calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.month {
    min-width: 0;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.month h2 {
    height: 32px;
    margin: 0;
    padding: 7px 10px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    font-weight: 400;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekday,
.day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 25px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
}

.weekday:nth-child(7n),
.day:nth-child(7n) {
    border-right: 0;
}

.weekday {
    height: 24px;
    font-size: 10px;
}

.weekend {
    background: #f1f1f1;
}

.day:hover:not(.empty) {
    background: #ddd;
    cursor: pointer;
}

.empty {
    background: #fafafa;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    .year-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .overview {
        gap: 50px;
    }

    .topbar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .title-area {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .user-area {
        display: flex;
        transform: none;
    }
}

@media (max-width: 750px) {

    .page {
        width: 100%;
        margin: 0;
        padding: 25px 15px;
    }

    h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 25px;
        min-height: auto;
    }

    .year-calendar {
        grid-template-columns: 1fr;
    }

    .month {
        margin-bottom: 15px;
    }

    .weekday,
    .day {
        height: 35px;
    }
}


/* EVENTS */

.event-list {
    margin-top: 6px;
}

.event-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    min-height: 29px;
    padding: 4px 10px;
    border-bottom: 1px dotted #ddd;
    font-size: 13px;
}

.event-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.event-title a {
    color: inherit;
    text-decoration: none;
}

.event-title a:hover {
    text-decoration: underline;
}

.event-color {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.event-date {
    text-align: left;
}

.add-event {
    display: inline-block;
    margin: 12px 10px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.add-event:hover {
    color: #000;
    text-decoration: underline;
}

.success-message {
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #e7f5e7;
    border: 1px solid #b7dcb7;
    font-size: 13px;
}

.day.has-event {
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.day.has-event:hover {
    filter: brightness(0.9);
}

.external-link {
    margin-left: 3px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.external-link:hover {
    color: #000;
}


/* ========================================
   FORMULÁRE - PRIDAŤ / UPRAVIŤ BEH
======================================== */

.form-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.form-page h1 {
    margin: 0 0 35px;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 5px;
    text-align: left;
}

.run-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #444;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbb;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    outline: none;
}

.form-row input[type="text"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="url"]:focus,
.form-row textarea:focus {
    border-color: #555;
}

.form-row textarea {
    min-height: 110px;
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.button {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #444;
}

.button-secondary {
    border-color: #ccc;
    background: #eee;
    color: #222;
}

.button-secondary:hover {
    background: #ddd;
}

.button-danger {
    border-color: #9c1c1c;
    background: #9c1c1c;
    color: #fff;
}

.button-danger:hover {
    background: #741313;
}

.delete-form {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.form-error {
    margin-bottom: 25px;
    padding: 12px 15px;
    border: 1px solid #e0aaaa;
    background: #fff0f0;
    color: #9c1c1c;
    font-size: 13px;
}


/* MOBIL */

@media (max-width: 750px) {

    .form-page h1 {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        text-align: center;
    }
}

@media (max-width: 750px) {

    .form-page {
        max-width: none;
    }

    .form-page h1 {
        margin-bottom: 28px;
        font-size: 21px;
        letter-spacing: 3px;
    }

    .run-form {
        gap: 17px;
    }

    .form-row input[type="text"],
    .form-row input[type="date"],
    .form-row input[type="url"],
    .form-row textarea {
        font-size: 16px;
    }

    .form-row textarea {
        min-height: 120px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button {
        width: 100%;
        text-align: center;
    }

    .delete-form .button {
        width: 100%;
        text-align: center;
    }
}


/* STAV BEHU - R / € */

.run-status-options {
    display: flex;
    gap: 30px;
    padding: 5px 0;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0;
    cursor: pointer;
}

.status-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

.status-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    border: 1px solid #bbb;
    font-weight: bold;
    font-size: 12px;
}


/* FLAGY V ZOZNAME BEHOV */

.run-flags {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.run-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    color: #bbb;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.run-flag.active {
    border-color: #333;
    background: #333;
    color: #fff;
}


/* MOBIL */

@media (max-width: 750px) {

    .run-status-options {
        flex-direction: column;
        gap: 12px;
    }

    .run-flags {
        margin-left: 4px;
    }
}


a.day {
    color: inherit;
    text-decoration: none;
}

a.day.has-event {
    color: #fff;
    text-decoration: none;
}

.selected-color-preview {
    width: 80px;
    height: 36px;
    margin: 3px 0 10px;
    border: 1px solid #aaa;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 34px);
    gap: 9px;
}

.color-choice {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid transparent;
    outline: 1px solid #bbb;
    cursor: pointer;
}

.color-choice:hover {
    transform: scale(1.08);
}

.color-choice.selected {
    border-color: #fff;
    outline: 3px solid #222;
}

.color-choice.selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 0 1px 2px #000;
}

@media (max-width: 750px) {

    .color-palette {
        grid-template-columns: repeat(8, 30px);
        gap: 7px;
    }

    .color-choice {
        width: 30px;
        height: 30px;
    }
}


/* ŠTÁTNE SVIATKY */

.day.holiday {
    color: #d00000;
    font-weight: bold;
}

/*
 * Ak je na sviatok beh,
 * farba behu má prednosť.
 */
.day.holiday.has-event,
a.day.holiday.has-event {
    color: #fff;
}


/* DOVOLENKA / INÉ */

.form-row select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbb;
    background: #fff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    outline: none;
}

.form-row select:focus {
    border-color: #555;
}

.holiday-color-preview {
    width: 80px;
    height: 36px;
    border: 1px solid #aaa;
    background: #9ca3af;
}

@media (max-width: 750px) {

    .form-row select {
        font-size: 16px;
    }
}


/* DOVOLENKY A INÉ - ZOZNAM */

.holiday-row {
    display: grid;
    grid-template-columns: 1fr 70px 70px;
    align-items: center;
    min-height: 29px;
    padding: 4px 10px;
    border-bottom: 1px dotted #ddd;
    font-size: 13px;
}

.holiday-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.holiday-color {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background: #9ca3af;
}

.holiday-date {
    font-size: 12px;
}


/* DOVOLENKA / INÉ V KALENDÁRI */

.day.has-other-event {
    background: #9ca3af;
    color: #fff;
    font-weight: bold;
}

.runs-total {
    margin: 12px 10px 4px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.runs-total strong {
    margin-left: 6px;
    font-size: 13px;
}


/* ADMINISTRÁCIA POUŽÍVATEĽOV */

.admin-summary {
    margin: 25px 0 15px;
    font-size: 13px;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    padding: 9px 10px;
    border-bottom: 1px solid #999;
    text-align: left;
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px dotted #ccc;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f7f7f7;
}

.admin-you {
    margin-left: 5px;
    font-size: 10px;
    color: #777;
}

.admin-role {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.user-status {
    font-size: 11px;
    font-weight: bold;
}

.user-status.active {
    color: #16803a;
}

.user-status.inactive {
    color: #b42318;
}

.admin-edit-link {
    font-weight: bold;
    white-space: nowrap;
}

@media (max-width: 750px) {

    .admin-table {
        min-width: 750px;
    }
}


/* =========================================================
   PRIHLÁSENIE / AUTENTIFIKÁCIA
   ========================================================= */

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f9;
    color: #132238;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-header {
    width: 100%;
    background: #0c2340;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
}

.auth-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: #fff;
    font-size: 21px;
}

.auth-brand-text {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 76px);
    padding: 60px 20px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    padding: 48px 54px 44px;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 15px 40px rgba(17, 31, 53, 0.08),
        0 2px 7px rgba(17, 31, 53, 0.05);
    box-sizing: border-box;
}

.auth-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf4ff;
    color: #1665d8;
    font-size: 32px;
}

.auth-card h1 {
    margin: 0;
    color: #0d1f36;
    text-align: center;
    font-size: 38px;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 13px 0 34px;
    color: #728099;
    text-align: center;
    font-size: 17px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #132238;
    font-size: 15px;
    font-weight: 700;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid #cbd3dd;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-input-wrapper:focus-within {
    border-color: #2e6fdd;
    box-shadow:
        0 0 0 3px rgba(46, 111, 221, 0.1);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    height: 54px;
    background: #f3f7fc;
    border-right: 1px solid #e1e6ed;
    color: #1765d8;
    font-size: 19px;
}

.auth-input-wrapper input {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #132238;
    font: inherit;
    font-size: 16px;
}

.auth-input-wrapper input::placeholder {
    color: #9aa6b6;
}

.password-toggle {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.password-toggle:hover {
    background: #f7f9fc;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 7px;
    background: #1d62df;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.05s ease;
}

.auth-submit:hover {
    background: #1554c6;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 31px 0 25px;
    color: #8a96a8;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dce1e8;
}

.auth-register {
    text-align: center;
    color: #24364c;
    font-size: 16px;
}

.auth-register a {
    margin-left: 4px;
    color: #1765d8;
    font-weight: 700;
    text-decoration: none;
}

.auth-register a:hover {
    text-decoration: underline;
}

.auth-error,
.auth-success {
    margin-bottom: 24px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-error {
    border: 1px solid #f1b8b8;
    background: #fff2f2;
    color: #a12626;
}

.auth-success {
    border: 1px solid #b7dfc4;
    background: #f0faf3;
    color: #1f6b38;
}


/* MOBIL */

@media (max-width: 650px) {

    .auth-brand {
        width: calc(100% - 28px);
        min-height: 64px;
    }

    .auth-brand-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .auth-brand-text {
        font-size: 16px;
    }

    .auth-main {
        min-height: calc(100vh - 64px);
        padding: 28px 14px;
    }

    .auth-card {
        padding: 34px 22px 30px;
        border-radius: 10px;
    }

    .auth-user-icon {
        width: 66px;
        height: 66px;
        font-size: 27px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-subtitle {
        margin-bottom: 28px;
        font-size: 15px;
    }

    .auth-input-wrapper input {
        font-size: 16px;
    }
}


/* REGISTRÁCIA */

.auth-register-card {
    max-width: 600px;
}

.auth-register-card .auth-subtitle {
    margin-bottom: 30px;
}


/* ADMIN - ÚPRAVA POUŽÍVATEĽA */

.admin-password-form {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.run-form h2,
.admin-danger-zone h2 {
    margin: 0 0 22px;
    font-size: 14px;
    letter-spacing: 1px;
}

.admin-danger-zone {
    margin-top: 40px;
    padding: 22px;
    border: 1px solid #e2b8b8;
    border-radius: 6px;
    background: #fff8f8;
}

.admin-danger-zone h2 {
    color: #a12626;
}

.admin-danger-zone p {
    margin: 0 0 18px;
    color: #6d3a3a;
    font-size: 13px;
    line-height: 1.5;
}

.button-danger {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}

.button-danger:hover {
    background: #921d14;
    border-color: #921d14;
}


/* =========================================================
   SILA HESLA
   ========================================================= */

.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e6eaf0;
}

.password-strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c8ced8;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.password-strength-fill.very-weak {
    background: #d92d20;
}

.password-strength-fill.weak {
    background: #e9691a;
}

.password-strength-fill.medium {
    background: #d79b00;
}

.password-strength-fill.good {
    background: #6b9d32;
}

.password-strength-fill.strong {
    background: #16803a;
}

.password-strength-text {
    margin-top: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.password-rules {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    margin-top: 12px;
    color: #7b8798;
    font-size: 12px;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 7px;
}

.password-rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 50%;
    font-weight: bold;
}

.password-rule.valid {
    color: #16803a;
}

.password-match {
    min-height: 18px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
}

.password-match.valid {
    color: #16803a;
}

.password-match.invalid {
    color: #b42318;
}

@media (max-width: 650px) {

    .password-rules {
        grid-template-columns: 1fr;
    }
}


/* Zabudnuté heslo na prihlasovacej stránke */

.auth-forgot-password {
    margin-top: 18px;
    margin-bottom: 26px;
    text-align: center;
}

.auth-forgot-password a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-password a:hover {
    text-decoration: underline;
}


/* Zjednotenie polí v Môj účet */

.run-form .form-row input[type="email"] {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
}


/* =========================================================
   MOBIL - HLAVNÝ KALENDÁR
   ========================================================= */

@media (max-width: 750px) {

    /* Celá stránka */

    .page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 18px 12px 30px;
    }


    /* HEADER */

    .topbar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .title-area {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .title-area h1 {
        flex: 1;
        font-size: 19px;
        line-height: 1.25;
        letter-spacing: 2px;
    }

    .title-area h1 span {
        display: block;
        margin-top: 3px;
    }

    .year-arrow {
        flex: 0 0 32px;
        font-size: 36px;
        text-align: center;
    }


    /* POUŽÍVATEĽSKÉ MENU */

    .user-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 14px;
        width: 100%;
        font-size: 12px;
        white-space: normal;
    }

    .user-area strong {
        flex-basis: 100%;
        text-align: center;
    }


    /* HORNÝ PREHĽAD */

    .overview {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
        margin-bottom: 22px;
    }

    .overview-heading {
        grid-template-columns: 1fr 65px;
        padding: 7px 6px;
    }

    .holiday-heading {
        grid-template-columns: 1fr 120px;
    }


    /* BEHY */

    .event-row {
        grid-template-columns: minmax(0, 1fr) 55px;
        padding: 6px;
    }

    .event-title {
        min-width: 0;
        gap: 6px;
    }

    .event-title a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .event-date {
        text-align: right;
    }

    .run-flags {
        flex-shrink: 0;
    }


    /* DOVOLENKY A INÉ */

    .holiday-row {
        grid-template-columns: minmax(0, 1fr) 55px 55px;
        padding: 6px;
    }

    .holiday-title {
        min-width: 0;
        gap: 6px;
    }

    .holiday-title a {
        min-width: 0;
        color: inherit;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .holiday-date {
        text-align: right;
    }


    /* ODKAZY NA PRIDANIE */

    .add-event {
        margin: 10px 6px;
    }

    .runs-total {
        margin: 10px 6px 2px;
    }


    /* ROČNÝ KALENDÁR */

    .year-calendar {
        grid-template-columns: repeat(2, 1fr);
    }

    .month {
        margin-bottom: 0;
    }

    .month h2 {
        font-size: 12px;
    }

    .weekday,
    .day {
        font-size: 10px;
    }
}


.event-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.event-main {
    min-width: 0;
    flex: 0 1 auto;
}

.event-main-top {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.event-main-top a {
    min-width: 0;
}

.run-location {
    margin-top: 2px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.25;
}

.run-flags {
    flex-shrink: 0;
}

.run-location a {
    color: inherit;
    text-decoration: none;
}

.run-location a:hover {
    text-decoration: underline;
}