:root {
    --kk-brand: #00a37a;
    --kk-brand-dark: #006f58;
    --kk-bg: #f3f3f3;
    --kk-panel: #ffffff;
    --kk-border: #d8d8d8;
    --kk-border-dark: #b8b8b8;
    --kk-text: #111827;
    --kk-muted: #5b6472;
    --kk-soft: #eef8f6;
    --kk-danger: #ef4444;
    --kk-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.kk-landing {
    background: #f6f8f7;
    color: var(--kk-text);
}

.kk-landing a {
    text-decoration: none;
}

.kk-landing-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.kk-landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px max(20px, calc((100vw - 1120px) / 2));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe7e4;
}

.kk-landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--kk-brand-dark);
    font-weight: 900;
    white-space: nowrap;
}

.kk-landing-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.kk-landing-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #26342f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.kk-landing-links a:hover {
    background: #edf5f2;
    color: var(--kk-brand-dark);
}

.kk-landing-link-strong {
    color: var(--kk-brand-dark) !important;
}

.kk-landing-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kk-brand-dark);
    border-radius: 6px;
    padding: 0 18px;
    color: #fff;
    background: var(--kk-brand-dark);
    font-weight: 800;
    line-height: 1;
}

.kk-landing-cta:hover {
    background: #005a49;
}

.kk-landing-cta.secondary {
    color: var(--kk-brand-dark);
    background: #fff;
}

.kk-landing-cta.secondary:hover {
    background: #eef8f6;
}

.kk-landing-cta.small {
    min-height: 38px;
    padding: 0 14px;
    white-space: nowrap;
}

.kk-landing-hero {
    padding: 56px 0 42px;
    background: linear-gradient(180deg, #ffffff 0%, #eef8f6 100%);
    border-bottom: 1px solid #dce8e5;
}

.kk-landing-hero-grid,
.kk-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: center;
}

.kk-landing-kicker {
    margin: 0 0 10px;
    color: var(--kk-brand-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.kk-landing h1,
.kk-landing h2,
.kk-landing h3,
.kk-landing p {
    letter-spacing: 0;
}

.kk-landing h1 {
    max-width: 680px;
    margin: 0;
    font-size: 56px;
    line-height: 1.02;
    font-weight: 900;
}

.kk-landing h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 900;
}

.kk-landing h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
}

.kk-landing-lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: #34423d;
    font-size: 18px;
    line-height: 1.55;
}

.kk-landing-actions,
.kk-landing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.kk-landing-badges span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: #24413a;
    background: #fff;
    border: 1px solid #d9e7e4;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.kk-mobile-break {
    display: none;
}

.kk-landing-product,
.kk-beacon-panel,
.kk-distance-card,
.kk-team-card,
.kk-price-card,
.kk-steps-grid article,
.kk-feature-grid article,
.kk-faq-grid details {
    background: #fff;
    border: 1px solid #dce5e2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.kk-landing-product {
    padding: 18px;
}

.kk-product-head,
.kk-product-trip,
.kk-product-metrics div,
.kk-beacon-panel div,
.kk-distance-card div,
.kk-team-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kk-product-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5ece9;
}

.kk-product-head span,
.kk-price-note {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #7a4d00;
    background: #fff7df;
    border: 1px solid #f2d181;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.kk-product-trip {
    min-height: 64px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f0;
}

.kk-product-trip div {
    flex: 1;
    min-width: 0;
}

.kk-product-trip small,
.kk-product-metrics dt,
.kk-beacon-panel span,
.kk-team-card span {
    display: block;
    color: var(--kk-muted);
    font-size: 13px;
}

.kk-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
}

.kk-dot.active {
    background: var(--kk-brand);
    box-shadow: 0 0 0 4px #dff7f1;
}

.kk-product-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0 0;
}

.kk-product-metrics div {
    display: block;
    padding: 12px;
    background: #f5faf8;
    border-radius: 6px;
}

.kk-product-metrics dd,
.kk-distance-card dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.kk-landing-section {
    padding: 48px 0;
}

.kk-landing-section.compact {
    padding-top: 40px;
}

.kk-landing-section.kk-split {
    background: #ffffff;
    border-top: 1px solid #e4ece9;
    border-bottom: 1px solid #e4ece9;
}

.kk-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.kk-section-head p + h2 {
    margin-top: 0;
}

.kk-steps-grid,
.kk-feature-grid,
.kk-pricing-grid,
.kk-faq-grid {
    display: grid;
    gap: 14px;
}

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

.kk-steps-grid article,
.kk-feature-grid article {
    padding: 18px;
}

.kk-steps-grid span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--kk-brand-dark);
    font-weight: 900;
}

.kk-steps-grid p,
.kk-feature-grid p,
.kk-two-col p,
.kk-faq-grid p,
.kk-landing-footer p {
    color: #53615c;
    line-height: 1.55;
}

.kk-feature-grid {
    grid-template-columns: repeat(5, 1fr);
}

.kk-feature-grid article {
    min-height: 150px;
}

.kk-beacon-panel,
.kk-distance-card,
.kk-team-card {
    padding: 18px;
}

.kk-beacon-panel div,
.kk-distance-card div,
.kk-team-card div {
    min-height: 54px;
    border-bottom: 1px solid #edf2f0;
}

.kk-beacon-panel div:last-child,
.kk-distance-card div:last-child,
.kk-team-card div:last-child {
    border-bottom: 0;
}

.kk-status-active {
    color: var(--kk-brand-dark);
}

.kk-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.kk-price-card {
    position: relative;
    padding: 22px;
}

.kk-price-card.featured {
    border-color: var(--kk-brand);
    box-shadow: 0 14px 34px rgba(0, 111, 88, 0.14);
}

.kk-price {
    margin: 10px 0 18px;
    font-size: 32px;
    font-weight: 900;
}

.kk-price span {
    color: var(--kk-muted);
    font-size: 14px;
    font-weight: 700;
}

.kk-price-card ul {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.kk-price-card li {
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.kk-price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--kk-brand);
}

.kk-price-note {
    margin-bottom: 12px;
}

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

.kk-faq-grid details {
    padding: 16px 18px;
}

.kk-faq-grid summary {
    cursor: pointer;
    font-weight: 850;
}

.kk-faq-grid p {
    margin: 10px 0 0;
}

.kk-landing-footer {
    padding: 34px 0;
    color: #dcebe7;
    background: #14342d;
}

.kk-landing-footer .kk-landing-wrap {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.2fr);
    gap: 28px;
}

.kk-landing-footer nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.kk-landing-footer h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 13px;
}

.kk-landing-footer a {
    display: block;
    margin: 7px 0;
    color: #c2d8d2;
    font-size: 13px;
}

.kk-landing-footer a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .kk-landing-nav {
        position: static;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .kk-landing-links {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .kk-landing-hero-grid,
    .kk-two-col,
    .kk-pricing-grid,
    .kk-faq-grid,
    .kk-landing-footer .kk-landing-wrap {
        grid-template-columns: 1fr;
    }

    .kk-steps-grid {
        grid-template-columns: 1fr;
    }

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

    .kk-landing h1 {
        font-size: 42px;
    }

    .kk-landing-footer nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .kk-landing-wrap {
        width: min(100% - 28px, 1120px);
    }

    .kk-landing-nav {
        padding: 10px 14px;
    }

    .kk-landing-brand {
        width: 100%;
    }

    .kk-landing-cta.small {
        width: 100%;
    }

    .kk-landing-links a {
        min-height: 36px;
        padding: 0 9px;
        font-size: 13px;
    }

    .kk-landing-hero {
        padding: 34px 0 30px;
    }

    .kk-landing h1 {
        font-size: 34px;
    }

    .kk-landing h2 {
        font-size: 25px;
    }

    .kk-landing-lead {
        font-size: 16px;
    }

    .kk-landing-actions .kk-landing-cta,
    .kk-price-card .kk-landing-cta,
    .kk-two-col .kk-landing-cta {
        width: 100%;
    }

    .kk-feature-grid,
    .kk-product-metrics,
    .kk-landing-footer nav {
        grid-template-columns: 1fr;
    }

    .kk-landing-section {
        padding: 34px 0;
    }

    .kk-product-trip {
        align-items: flex-start;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--kk-bg);
    color: var(--kk-text);
    font-family: Inter, Segoe UI, system-ui, sans-serif;
    font-size: 14px;
}

a { color: inherit; }

.kk-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.kk-topnav {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 60px;
    color: #fff;
    background: var(--kk-brand);
}

.kk-logo {
    color: #fff;
    text-decoration: none;
}

.kk-logo-mark {
    width: 31px;
    height: 31px;
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.kk-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kk-nav a,
.kk-nav-button {
    height: 100%;
    border: 0;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.kk-nav a.active,
.kk-nav a:hover,
.kk-nav-button.active,
.kk-nav-button:hover {
    background: rgba(0, 0, 0, 0.08);
}

.kk-menu {
    position: relative;
    height: 100%;
}

.kk-menu-panel {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 20;
    min-width: 196px;
    display: none;
    padding: 8px 0;
    color: var(--kk-text);
    background: #fff;
    border: 1px solid var(--kk-border);
    box-shadow: var(--kk-shadow);
}

.kk-menu:hover .kk-menu-panel,
.kk-menu:focus-within .kk-menu-panel {
    display: block;
}

.kk-menu-panel a {
    height: auto;
    width: 100%;
    padding: 12px 22px;
    color: var(--kk-text);
    background: #fff;
    font-weight: 400;
}

.kk-menu-panel a:hover {
    color: var(--kk-brand-dark);
    background: #f7faf9;
}

.kk-account {
    margin-left: auto;
    font-weight: 500;
}

.kk-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 28px;
}

.kk-page-head {
    padding: 30px 60px;
    background: #fff;
    border-bottom: 1px solid var(--kk-border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.kk-page-head.compact {
    padding: 0;
    border-bottom: 0;
    box-shadow: none;
}

.kk-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.kk-page-head h1 {
    margin: 0;
    font-size: 35px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
}

.kk-page-head.compact h1 {
    display: none;
}

.kk-page-head p,
.kk-muted {
    color: var(--kk-muted);
}

.kk-breadcrumb {
    margin-bottom: 26px;
    color: var(--kk-text);
    font-weight: 600;
}

.kk-breadcrumb span {
    color: var(--kk-muted);
    font-weight: 400;
}

#kk-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#kk-app {
    padding: 24px 60px;
}

.kk-page-head.compact + #kk-app,
.kk-page-head.compact ~ #kk-app {
    padding-top: 0;
}

.kk-panel,
.kk-table-card,
.kk-hero-card,
.kk-report-card {
    background: var(--kk-panel);
    border: 1px solid #e1e1e1;
    border-radius: 2px;
    box-shadow: var(--kk-shadow);
}

.kk-panel {
    padding: 32px;
}

.kk-btn {
    min-height: 40px;
    border: 1px solid var(--kk-brand);
    border-radius: 3px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--kk-brand);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.kk-btn:hover {
    background: #008f6c;
}

.kk-btn.outline,
.kk-btn.ghost {
    color: var(--kk-text);
    background: #fff;
    border-color: var(--kk-border-dark);
}

.kk-btn.ghost {
    color: var(--kk-brand-dark);
    border-color: transparent;
}

.kk-btn.dark {
    background: #003d34;
    border-color: #003d34;
}

.kk-btn.danger {
    color: var(--kk-danger);
    background: #fff;
    border-color: var(--kk-danger);
}

.kk-link-button {
    border: 0;
    color: var(--kk-brand-dark);
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

input,
select,
textarea,
label input,
label select,
label textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--kk-border-dark);
    border-radius: 2px;
    padding: 12px 14px;
    color: var(--kk-text);
    background: #fff;
    font: inherit;
}

select,
label select {
    appearance: none;
    padding-right: 42px;
    background-image: linear-gradient(45deg, transparent 50%, #4b5563 50%), linear-gradient(135deg, #4b5563 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

label {
    display: grid;
    gap: 9px;
    color: var(--kk-text);
    font-weight: 700;
}

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

.kk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.kk-form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kk-form-section {
    margin-top: 24px;
}

.kk-trip-filter {
    min-height: 70px;
    display: grid;
    grid-template-columns: minmax(310px, auto) 180px 180px 220px 220px minmax(180px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 10px 60px;
    background: #fff;
    border-bottom: 1px solid var(--kk-border);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.1);
}

.kk-trip-filter select,
.kk-trip-filter input {
    min-height: 48px;
}

.kk-trip-date-nav {
    display: grid;
    grid-template-columns: 42px minmax(140px, 170px) auto 42px;
    gap: 8px;
    align-items: center;
}

.kk-trip-date-nav input[type="date"] {
    min-width: 0;
}

.kk-icon-button {
    width: 42px;
    min-height: 42px;
    border: 1px solid var(--kk-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kk-text);
    background: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.kk-icon-button:hover,
.kk-icon-button:focus-visible {
    border-color: var(--kk-brand);
    outline: none;
}

.kk-btn.compact {
    min-height: 42px;
    padding-inline: 14px;
    white-space: nowrap;
}

.kk-calendar-tools {
    max-width: 1540px;
    margin: 22px auto 0;
    padding-left: 66px;
}

.kk-calendar-tools label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.kk-calendar-tools input,
.kk-select-all input {
    width: 20px;
    min-height: 20px;
}

.kk-calendar-list {
    max-width: 1540px;
    margin: 16px auto 0;
}

.kk-day-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
}

.kk-date-col {
    border: 0;
    padding: 12px 16px 0 0;
    color: var(--kk-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.kk-date-number {
    display: block;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.kk-date-weekday {
    display: block;
    margin-top: 3px;
    color: #374151;
    font-size: 14px;
}

.kk-day-content {
    min-width: 0;
}

.kk-empty-day {
    width: 100%;
    min-height: 67px;
    border: 0;
    border-top: 1px solid var(--kk-border);
    background: transparent;
    cursor: pointer;
}

.kk-day-summary {
    width: 100%;
    min-height: 67px;
    border: 0;
    border-top: 1px solid var(--kk-border);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.kk-expanded-day {
    display: grid;
    gap: 0;
}

.kk-day-trip-rows {
    display: grid;
}

.kk-day-trip-row {
    position: relative;
    width: 100%;
    min-height: 72px;
    border: 0;
    border-bottom: 1px solid var(--kk-border);
    padding: 12px 24px;
    display: grid;
    grid-template-columns: 28px 22px minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, 1fr) 120px 120px;
    gap: 12px;
    align-items: center;
    background: #fff;
    color: var(--kk-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.kk-day-trip-row:focus-visible {
    outline: 2px solid var(--kk-brand);
    outline-offset: -2px;
}

.kk-row-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    background: #fff;
    box-shadow: -12px 0 24px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.kk-day-trip-row:hover .kk-row-actions,
.kk-day-trip-row:focus-within .kk-row-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.kk-row-action {
    width: 52px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--kk-border-dark);
    border-right: 0;
    background: #fff;
    color: var(--kk-text);
    cursor: pointer;
}

.kk-row-action:last-child {
    border-right: 1px solid var(--kk-border-dark);
}

.kk-row-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.kk-row-action.active {
    color: #143f73;
    background: #dceaf8;
    border-color: #2b6cb0;
}

.kk-row-action.danger {
    margin-left: 18px;
    border: 0;
    color: var(--kk-text);
}

.kk-row-action:hover,
.kk-row-action:focus-visible {
    background: #f3f6f8;
    outline: 0;
}

.kk-row-check {
    width: 20px;
    height: 20px;
    border: 1px solid var(--kk-border-dark);
    border-radius: 3px;
}

.kk-row-marker {
    color: var(--kk-danger);
    font-size: 22px;
    line-height: 1;
}

.kk-row-place {
    display: grid;
    gap: 2px;
}

.kk-row-place strong {
    font-weight: 700;
}

.kk-row-place small {
    color: var(--kk-muted);
    font-size: 14px;
}

.kk-row-number {
    text-align: right;
}

@media (hover: none), (pointer: coarse) {
    .kk-row-actions {
        position: static;
        grid-column: 1 / -1;
        justify-self: end;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

.kk-trip-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 490px;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--kk-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.kk-trip-main {
    display: grid;
    gap: 16px;
}

.kk-trip-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 16px;
}

.kk-icon-field {
    border: 1px solid var(--kk-border-dark);
    background: #fff;
}

.kk-icon-field [data-role="place-input"],
.kk-comment-field input {
    border: 0;
}

.kk-place-choice {
    position: relative;
    min-height: 56px;
}

.kk-place-choice [data-role="place-input"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    min-height: 56px;
    opacity: 0;
    cursor: pointer;
    padding: 8px 36px 8px 52px;
    background: #fff;
    color: var(--kk-text);
    font: inherit;
}

.kk-place-choice:focus-within [data-role="place-input"] {
    opacity: 1;
    cursor: text;
}

.kk-place-choice:focus-within .kk-selected-place {
    opacity: 0;
}

.kk-selected-place {
    position: relative;
    min-height: 56px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    column-gap: 10px;
    gap: 2px;
    padding: 8px 36px 8px 10px;
    color: var(--kk-text);
    pointer-events: none;
}

.kk-selected-place::after {
    content: "⌄";
    position: absolute;
    right: 14px;
    top: 17px;
    color: #4b5563;
    font-size: 18px;
}

.kk-place-marker {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #a3a3a3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.kk-place-text {
    display: grid;
    min-width: 0;
}

.kk-place-text strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kk-place-text small {
    color: var(--kk-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kk-place-placeholder {
    color: var(--kk-muted);
}

.kk-map-preview {
    min-height: 320px;
    overflow: hidden;
    border: 0;
    background: #d9f3f7;
}

.kk-leaflet-map {
    width: 100%;
    height: 320px;
}

.kk-leaflet-marker {
    align-items: center;
    background: #111827;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
}

.kk-trip-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.kk-type-toggle {
    min-height: 113px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--kk-border-dark);
}

.kk-type-toggle button {
    border: 0;
    border-left: 1px solid var(--kk-border-dark);
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.kk-type-toggle button:first-child {
    border-left: 0;
}

.kk-type-toggle button.active {
    color: #143f73;
    background: #dceaf8;
    outline: 1px solid #2b6cb0;
}

.kk-comment-field {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    border: 1px solid var(--kk-border-dark);
}

.kk-comment-field span {
    text-align: center;
    color: var(--kk-muted);
}

.kk-trip-summary {
    padding: 8px 14px;
    background: #fafafa;
}

.kk-summary-row {
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--kk-border);
}

.kk-summary-row:last-child {
    border-bottom: 0;
}

.kk-summary-row strong {
    font-weight: 400;
}

.kk-odometer-warning {
    padding: 12px 0 4px;
    color: var(--kk-danger);
    font-size: 14px;
}

.kk-odometer-hint {
    align-self: center;
    color: var(--kk-muted);
    font-size: 14px;
}

.kk-gps-controls {
    display: grid;
    gap: 8px;
}

.kk-gps-status {
    min-height: 20px;
    color: var(--kk-muted);
    font-size: 14px;
}

.kk-save-status {
    color: var(--kk-muted);
}

.kk-next-trip {
    justify-self: end;
    color: var(--kk-brand-dark);
    cursor: pointer;
}

.kk-next-trip:hover,
.kk-next-trip:focus-visible {
    color: #fff;
    background: var(--kk-brand);
    border-color: var(--kk-brand);
}

.kk-table-card {
    overflow: hidden;
}

.kk-table-wrap {
    overflow-x: auto;
}

.kk-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.kk-table th,
.kk-table td {
    min-height: 72px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--kk-border);
    text-align: left;
    vertical-align: middle;
}

.kk-table th {
    color: var(--kk-text);
    font-weight: 700;
}

.kk-table td {
    height: 88px;
}

.kk-table tr:last-child td {
    border-bottom: 0;
}

.kk-table a {
    color: var(--kk-text);
    text-decoration: none;
}

.kk-place-table tbody tr {
    cursor: pointer;
}

.kk-place-table tbody tr:hover,
.kk-place-table tbody tr:focus {
    background: #f8fafc;
}

.kk-empty {
    padding: 32px;
    color: var(--kk-muted);
    text-align: center;
}

.kk-searchbar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.kk-searchbar input {
    max-width: 520px;
}

.kk-tabs {
    display: flex;
    gap: 24px;
    margin: -8px 0 24px;
}

.kk-tabs span,
.kk-tabs a {
    padding: 14px 18px;
    border-bottom: 2px solid transparent;
    color: var(--kk-text);
    text-decoration: none;
}

.kk-tabs .active,
.kk-tabs a.active {
    color: var(--kk-brand-dark);
    border-color: var(--kk-brand);
    font-weight: 700;
}

.kk-hero-card {
    min-height: 580px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 24px;
    padding: 48px;
    text-align: center;
}

.kk-hero-card h2 {
    max-width: 480px;
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.kk-hero-card ul {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.kk-hero-card li {
    display: flex;
    align-items: center;
    gap: 18px;
}

.kk-hero-card li span {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kk-brand-dark);
    background: var(--kk-soft);
}

.kk-illustration {
    width: min(280px, 100%);
    height: auto;
}

.kk-centered-form {
    max-width: 520px;
    margin: 72px auto;
    box-shadow: none;
    border: 0;
}

.kk-centered-form h2 {
    font-size: 30px;
}

.kk-centered-form p {
    line-height: 1.5;
}

.kk-form-brand {
    margin-bottom: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #063f35;
    font-size: 34px;
}

.kk-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 48px;
    align-items: center;
}

.kk-split-card > .kk-illustration {
    justify-self: center;
}

.kk-click-row {
    cursor: pointer;
}

.kk-click-row:hover,
.kk-click-row:focus-visible {
    background: #f8fafc;
    outline: none;
}

.kk-chevron {
    width: 54px;
    color: var(--kk-brand-dark);
    font-size: 30px;
    text-align: right;
}

.kk-vehicle-table th:last-child,
.kk-vehicle-table td:last-child {
    width: 54px;
    padding-right: 28px;
}

.kk-vehicle-table-card {
    width: min(1280px, 100%);
}

.kk-vehicle-table th,
.kk-vehicle-table td {
    height: 72px;
}

.kk-vehicle-detail {
    width: min(1280px, 100%);
    min-height: 474px;
    grid-template-columns: minmax(360px, 584px) minmax(280px, 1fr);
    align-items: start;
    padding: 28px 32px;
}

.kk-vehicle-form {
    display: grid;
    gap: 16px;
    max-width: 584px;
}

.kk-vehicle-art {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kk-vehicle-art .kk-illustration {
    width: min(420px, 80%);
}

.kk-vehicle-beacon {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--kk-border);
    background: #f8fafc;
}

.kk-vehicle-beacon-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--kk-border);
    background: #fff;
}

.kk-vehicle-beacon-panel h2 {
    margin: 0;
    font-size: 18px;
}

.kk-vehicle-beacon-panel p,
.kk-beacon-status {
    margin: 0;
    color: var(--kk-muted);
    font-size: 14px;
    line-height: 1.45;
}

.kk-beacon-grid {
    display: grid;
    gap: 8px;
}

.kk-beacon-grid div {
    display: grid;
    gap: 2px;
}

.kk-beacon-grid span {
    color: var(--kk-muted);
    font-size: 12px;
}

.kk-beacon-grid strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
}

.kk-vehicle-help {
    margin: -8px 0 0;
    color: var(--kk-muted);
    line-height: 1.45;
}

.kk-vehicle-archive {
    margin-top: 8px;
    padding-top: 8px;
}

.kk-vehicle-archive h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.kk-vehicle-archive p {
    max-width: 620px;
    margin: 0 0 14px;
    color: var(--kk-muted);
    line-height: 1.45;
}

.kk-vehicle-readonly .kk-vehicle-form {
    gap: 28px;
}

.kk-vehicle-readonly h2 {
    margin: 0;
    font-size: 20px;
}

.kk-vehicle-readonly-list {
    display: grid;
    gap: 22px;
}

.kk-vehicle-readonly-list div {
    display: grid;
    gap: 4px;
}

.kk-vehicle-readonly-list span {
    color: var(--kk-muted);
}

.kk-vehicle-readonly-list strong {
    font-weight: 400;
}

.kk-report-card {
    padding: 48px 32px;
}

.kk-report-head {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.8fr;
    gap: 32px;
    margin-bottom: 56px;
}

.kk-report-head h2,
.kk-report-head h3 {
    margin: 4px 0;
}

.kk-report-card h2 {
    margin-top: 36px;
}

.kk-report-currency-note {
    margin: -8px 0 8px;
    color: var(--kk-muted);
    font-size: 13px;
    text-align: right;
}

.kk-report-card .kk-table th:nth-last-child(-n+3),
.kk-report-card .kk-table td:nth-last-child(-n+3) {
    text-align: right;
}

.kk-report-odometer {
    display: block;
    line-height: 1.55;
    white-space: nowrap;
}

.kk-report-list .kk-table td:last-child {
    width: 56px;
    padding-right: 16px;
}

.kk-report-list .kk-table tbody tr {
    cursor: pointer;
}

.kk-report-list .kk-table tbody tr:hover {
    background: #fafafa;
}

.kk-row-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.kk-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.kk-icon-btn:hover,
.kk-icon-btn:focus-visible {
    border-color: var(--kk-border-dark);
    background: #fff;
}

.kk-action-menu,
.kk-report-floating-menu {
    position: absolute;
    z-index: 30;
    min-width: 210px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--kk-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kk-action-menu {
    top: 40px;
    right: 0;
}

.kk-report-floating-menu {
    top: 128px;
    right: 64px;
}

.kk-action-menu button,
.kk-report-floating-menu button {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.kk-action-menu button:hover,
.kk-action-menu button:focus-visible,
.kk-report-floating-menu button:hover,
.kk-report-floating-menu button:focus-visible {
    background: #f5f5f5;
}

.kk-report-builder {
    display: grid;
    gap: 18px;
}

.kk-report-filters {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--kk-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.kk-inline-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--kk-border-dark);
}

.kk-inline-check input {
    width: auto;
    min-height: auto;
}

.kk-report-warning {
    padding: 12px 16px;
    background: #fff8e5;
    border: 1px solid #e9d38a;
}

.kk-report-check-warning {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #e9d38a;
    background: #fff8e5;
    font-weight: 700;
}

.kk-report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.kk-report-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 3px;
    background: #eef2f6;
    color: var(--kk-text);
    font-size: 12px;
    font-weight: 700;
}

.kk-report-badge.manual {
    background: #e7f5f0;
    color: var(--kk-brand-dark);
}

.kk-report-badge.home,
.kk-report-badge.hours,
.kk-report-badge.distance {
    background: #fff4d8;
}

.kk-report-badge.missing {
    background: #ffe7e7;
    color: #a62929;
}

.kk-report-route {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    border: 1px solid var(--kk-border-dark);
    border-radius: 3px;
    color: var(--kk-brand-dark);
    text-decoration: none;
    font-weight: 800;
}

.kk-report-route:hover,
.kk-report-route:focus-visible {
    background: var(--kk-soft);
}

.kk-report-preview {
    min-height: 300px;
}

.kk-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.48);
}

.kk-modal[hidden] {
    display: none;
}

.kk-modal-box label {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.kk-modal-box textarea {
    min-height: 120px;
    resize: vertical;
}

.kk-save-place-link {
    justify-self: start;
    min-height: 28px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kk-brand-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.kk-save-place-link[hidden] {
    display: none;
}

.kk-trip-place-modal-box {
    display: grid;
    gap: 2px;
    border-radius: 8px;
}

.kk-trip-place-modal-box h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.kk-modal-status {
    min-height: 18px;
    color: #b91c1c;
    font-size: 13px;
}

.kk-report-status {
    margin-top: 12px;
    color: var(--kk-brand-dark);
    font-weight: 700;
}

.kk-report-edit-log {
    margin-top: 32px;
}

.kk-report-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--kk-border);
}

.kk-report-settings h2 {
    margin: 0 0 8px;
}

.kk-report-settings p {
    margin: 0 0 22px;
    color: var(--kk-muted);
}

.kk-report-settings label {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.kk-report-settings-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.kk-report-settings-toggle strong,
.kk-report-settings-toggle small {
    display: block;
}

.kk-report-settings-toggle small {
    margin-top: 4px;
    color: var(--kk-muted);
    line-height: 1.4;
}

.kk-report-settings-switch {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #cfcfcf;
    position: relative;
    transition: background 0.15s ease;
}

.kk-report-settings-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.15s ease;
}

.kk-report-settings-toggle.on .kk-report-settings-switch {
    background: var(--kk-brand);
}

.kk-report-settings-toggle.on .kk-report-settings-switch span {
    transform: translateX(22px);
}

.kk-report-settings-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.kk-settings-page {
    width: min(780px, 100%);
    display: grid;
    gap: 22px;
}

.kk-settings-section h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.kk-settings-card {
    overflow: hidden;
    border: 1px solid var(--kk-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--kk-shadow);
}

.kk-settings-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 20px;
    gap: 12px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--kk-border);
    color: var(--kk-text);
    text-decoration: none;
}

.kk-settings-row:last-child {
    border-bottom: 0;
}

.kk-settings-row:hover,
.kk-settings-row:focus-visible {
    background: #f8fafc;
    outline: 0;
}

.kk-settings-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--kk-brand);
    font-size: 13px;
    font-weight: 800;
}

.kk-settings-icon::before {
    content: "i";
}

.kk-settings-icon[data-icon="tracking"]::before { content: "T"; }
.kk-settings-icon[data-icon="auto"]::before { content: "A"; }
.kk-settings-icon[data-icon="beacon"]::before { content: "B"; }
.kk-settings-icon[data-icon="odometer"]::before { content: "K"; }
.kk-settings-icon[data-icon="period"]::before { content: "P"; }
.kk-settings-icon[data-icon="details"]::before { content: "R"; }
.kk-settings-icon[data-icon="tags"]::before { content: "#"; }
.kk-settings-icon[data-icon="integrations"]::before { content: "I"; }
.kk-settings-icon[data-icon="vehicles"]::before { content: "V"; }
.kk-settings-icon[data-icon="workplaces"]::before { content: "A"; }
.kk-settings-icon[data-icon="places"]::before { content: "S"; }
.kk-settings-icon[data-icon="rates"]::before { content: "G"; }
.kk-settings-icon[data-icon="location"]::before { content: "L"; }
.kk-settings-icon[data-icon="activity"]::before { content: "F"; }
.kk-settings-icon[data-icon="bluetooth"]::before { content: "B"; }
.kk-settings-icon[data-icon="precise"]::before { content: "P"; }
.kk-settings-icon[data-icon="battery"]::before { content: "B"; }
.kk-settings-icon[data-icon="updates"]::before { content: "U"; }
.kk-settings-icon[data-icon="support"]::before { content: "?"; }
.kk-settings-icon[data-icon="subscription"]::before { content: "P"; }

.kk-settings-copy {
    min-width: 0;
}

.kk-settings-copy strong {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kk-settings-value {
    color: var(--kk-muted);
    font-size: 14px;
    white-space: nowrap;
}

.kk-settings-chevron {
    color: var(--kk-muted);
    font-size: 20px;
    line-height: 1;
    text-align: right;
}

.kk-compact-page {
    width: min(780px, 100%);
    display: grid;
    gap: 16px;
}

.kk-ibeacon-test-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--kk-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--kk-shadow);
}

.kk-ibeacon-test-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.kk-ibeacon-test-head strong {
    display: block;
    font-size: 16px;
}

.kk-ibeacon-test-head span,
.kk-ibeacon-test-status {
    color: var(--kk-muted);
    font-size: 13px;
}

.kk-ibeacon-test-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.kk-ibeacon-test-result:empty {
    display: none;
}

.kk-ibeacon-test-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.kk-ibeacon-test-card strong {
    font-size: 15.5px;
}

.kk-ibeacon-test-card span {
    color: var(--kk-text);
    font-size: 14px;
}

.kk-ibeacon-test-card dl {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
}

.kk-ibeacon-test-card dl div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
}

.kk-ibeacon-test-card dt {
    color: var(--kk-muted);
}

.kk-ibeacon-test-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.kk-compact-section h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

.kk-compact-section p {
    max-width: 620px;
    margin: 0 0 10px;
    color: var(--kk-muted);
    font-size: 14px;
    line-height: 1.35;
}

.kk-compact-card,
.kk-status-card {
    overflow: hidden;
    border: 1px solid var(--kk-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--kk-shadow);
}

.kk-problem-banner {
    min-height: 52px;
    display: grid;
    grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--kk-border);
    border-radius: 12px;
    background: #fff;
    color: var(--kk-text);
    text-decoration: none;
}

.kk-problem-banner.warn {
    border-color: #f2c94c;
    background: #fff9e8;
}

.kk-problem-banner.ok {
    border-color: #b7eadc;
    background: #f0fdf8;
}

.kk-problem-banner > span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--kk-brand);
    font-size: 13px;
    font-weight: 800;
}

.kk-problem-banner.warn > span {
    background: #d97706;
}

.kk-problem-banner strong {
    font-size: 15.5px;
}

.kk-problem-banner small {
    overflow: hidden;
    color: var(--kk-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kk-problem-banner em {
    color: var(--kk-muted);
    font-style: normal;
    font-size: 19px;
}

.kk-compact-toggle,
.kk-status-row {
    width: 100%;
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--kk-border);
    background: #fff;
    color: var(--kk-text);
    font: inherit;
    text-align: left;
}

.kk-compact-toggle:last-child,
.kk-status-row:last-child {
    border-bottom: 0;
}

.kk-compact-toggle strong,
.kk-status-row strong,
.kk-ibeacon-row strong {
    display: block;
    font-size: 15.5px;
    line-height: 1.2;
}

.kk-compact-toggle small,
.kk-status-row small,
.kk-ibeacon-row small {
    display: block;
    margin-top: 3px;
    color: var(--kk-muted);
    font-size: 13px;
    line-height: 1.25;
}

.kk-status-row {
    grid-template-columns: 22px minmax(0, 1fr);
}

.kk-status-row > span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--kk-brand);
    font-size: 13px;
    font-weight: 800;
}

.kk-status-row.warn > span {
    background: #d97706;
}

.kk-info-box,
.kk-beacon-mini {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--kk-border);
    border-radius: 12px;
    background: #fff;
}

.kk-info-box span {
    color: var(--kk-muted);
    font-size: 14px;
    line-height: 1.35;
}

.kk-beacon-mini {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
}

.kk-beacon-mini strong,
.kk-beacon-mini small {
    display: block;
}

.kk-beacon-mini small {
    color: var(--kk-muted);
    font-size: 13px;
}

.kk-beacon-mini a {
    color: var(--kk-brand-dark);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .kk-report-filters,
    .kk-report-settings {
        grid-template-columns: 1fr;
    }
}

.kk-reimbursement {
    display: grid;
    gap: 26px;
    margin-bottom: 16px;
}

.kk-reimbursement label {
    grid-template-columns: 22px 1fr;
    gap: 0 14px;
    align-items: start;
}

.kk-reimbursement label input {
    width: 20px;
    min-height: 20px;
    margin-top: 4px;
}

.kk-reimbursement label span {
    grid-column: 2;
    color: var(--kk-muted);
    font-weight: 400;
}

.kk-rate-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kk-rate-cell input {
    width: 96px;
    min-height: 40px;
}

.kk-rate-cell span {
    color: var(--kk-muted);
}

.kk-modal-demo {
    display: none;
}

.kk-modal-box {
    width: 576px;
    padding: 24px;
    background: #fff;
}

.kk-number-pair {
    display: grid;
    grid-template-columns: 1fr 28px 180px;
}

.kk-number-pair span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--kk-border-dark);
    border-bottom: 1px solid var(--kk-border-dark);
}

.kk-example {
    margin: 16px 0;
    padding: 18px;
    background: #fafafa;
}

.kk-date-field {
    position: relative;
}

.kk-datepicker {
    position: absolute;
    top: 86px;
    left: 56px;
    z-index: 4;
    width: 238px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.18);
    font-weight: 400;
}

.kk-datepicker strong {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    text-align: center;
    font-size: 18px;
}

.kk-datepicker span,
.kk-datepicker button {
    min-height: 28px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kk-text);
    background: transparent;
    font: inherit;
}

.kk-datepicker button.active {
    border-radius: 999px;
    color: #fff;
    background: var(--kk-brand);
}

.kk-datepicker button.muted {
    color: #c7c7c7;
}

.kk-toggle-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin: 26px 0;
}

.kk-switch {
    width: 52px;
    height: 30px;
    border: 1px solid #bdbdbd;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px;
    color: #888;
    background: #e5e5e5;
}

.kk-switch.on {
    justify-content: flex-end;
    color: #fff;
    background: var(--kk-brand);
}

.kk-reporting-card {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 34px 32px 30px;
    border: 1px solid var(--kk-border);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.kk-reporting-left {
    max-width: 860px;
}

.kk-reporting-intro {
    margin: 0 0 26px;
    color: #222;
}

.kk-reporting-fields {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(220px, 360px);
    gap: 26px;
    align-items: start;
}

.kk-reporting-field {
    position: relative;
    display: grid;
    gap: 10px;
    font-weight: 700;
}

.kk-reporting-select,
.kk-reporting-date-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--kk-border-dark);
    border-radius: 3px;
    background: #fff;
    color: var(--kk-text);
    font: inherit;
    text-align: left;
}

.kk-reporting-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.kk-reporting-select:focus,
.kk-reporting-date-field input:focus {
    border-color: #111827;
    outline: 1px solid #111827;
}

.kk-reporting-dropdown {
    position: relative;
}

.kk-reporting-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    z-index: 12;
    width: 100%;
    padding: 8px 0;
    border: 1px solid var(--kk-border);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.kk-reporting-menu button {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border: 0;
    background: #fff;
    color: var(--kk-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.kk-reporting-menu button:hover,
.kk-reporting-menu button:focus-visible {
    background: #f2f5f4;
    outline: 0;
}

.kk-reporting-menu button.active {
    color: #fff;
    background: var(--kk-brand);
}

.kk-reporting-date-field {
    position: relative;
}

.kk-reporting-calendar-button {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
}

.kk-reporting-calendar {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 13;
    width: 338px;
    padding: 20px 22px 22px;
    border: 1px solid var(--kk-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.kk-reporting-calendar-arrow {
    position: absolute;
    top: -8px;
    left: 56%;
    width: 16px;
    height: 16px;
    border-left: 1px solid var(--kk-border);
    border-top: 1px solid var(--kk-border);
    background: #fff;
    transform: rotate(45deg);
}

.kk-reporting-calendar-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-bottom: 18px;
}

.kk-reporting-calendar-head strong {
    text-align: center;
    font-size: 18px;
}

.kk-reporting-calendar-head button,
.kk-reporting-days button {
    border: 0;
    background: transparent;
    color: var(--kk-text);
    font: inherit;
    cursor: pointer;
}

.kk-reporting-calendar-head button {
    min-height: 34px;
    color: var(--kk-brand-dark);
    font-size: 24px;
}

.kk-reporting-weekdays,
.kk-reporting-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.kk-reporting-weekdays span,
.kk-reporting-days button {
    min-height: 34px;
    display: grid;
    place-items: center;
    font-weight: 400;
}

.kk-reporting-weekdays span {
    color: #4b5563;
    font-size: 14px;
}

.kk-reporting-days button:hover,
.kk-reporting-days button:focus-visible {
    border-radius: 999px;
    background: #edf8f5;
    outline: 0;
}

.kk-reporting-days button.active {
    border-radius: 999px;
    color: #fff;
    background: var(--kk-brand);
}

.kk-reporting-days button.muted {
    color: #b8bfc5;
}

.kk-reporting-example {
    max-width: 755px;
    margin: 16px 0 10px;
    padding: 16px;
    background: #fafafa;
    color: #333;
}

.kk-reporting-help {
    max-width: 790px;
    margin: 0 0 24px;
    color: #333;
    font-size: 14px;
}

.kk-reporting-divider {
    max-width: 790px;
    height: 1px;
    margin: 28px 0;
    background: var(--kk-border);
}

.kk-reporting-toggle-row {
    width: 100%;
    max-width: 790px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin: 22px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kk-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.kk-reporting-toggle-row strong {
    display: block;
    margin-bottom: 4px;
}

.kk-reporting-toggle-row small {
    display: block;
    max-width: 520px;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

.kk-reporting-switch {
    width: 58px;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #b8b8b8;
    border-radius: 999px;
    background: #d8d8d8;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.kk-reporting-switch span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease;
}

.kk-reporting-switch.on {
    border-color: var(--kk-brand);
    background: var(--kk-brand);
}

.kk-reporting-switch.on span {
    transform: translateX(26px);
}

.kk-reporting-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 36px;
}

.kk-reporting-save-status {
    color: var(--kk-brand-dark);
    font-weight: 700;
}

.kk-reporting-art {
    display: flex;
    justify-content: center;
}

.kk-reporting-art .kk-illustration {
    width: min(300px, 100%);
    max-height: 300px;
}

.kk-chip {
    padding: 3px 8px;
    border-radius: 3px;
    background: #ededed;
}

.kk-integration-list {
    display: grid;
    gap: 12px;
}

.kk-integration-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--kk-border);
    border-radius: 6px;
}

.kk-integration-row p {
    margin: 6px 0 0;
    color: var(--kk-muted);
}

.kk-status {
    padding: 5px 10px;
    border-radius: 999px;
    color: #525252;
    background: #eee;
    white-space: nowrap;
}

.kk-status.ready {
    color: var(--kk-brand-dark);
    background: var(--kk-soft);
}

.kk-help {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 30;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #008a70;
    box-shadow: var(--kk-shadow);
    font-size: 32px;
    text-decoration: none;
}

.kk-footer {
    min-height: 28px;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid var(--kk-border);
    color: #666;
}

.kk-footer a {
    color: #666;
}

hr {
    border: 0;
    border-top: 1px solid var(--kk-border);
}

@media (max-width: 1100px) {
    .kk-topnav,
    .kk-page-head,
    #kk-app {
        padding-left: 24px;
        padding-right: 24px;
    }

    .kk-trip-filter {
        grid-template-columns: 1fr;
        padding-left: 24px;
        padding-right: 24px;
    }

    .kk-trip-card,
    .kk-split-card,
    .kk-reporting-card,
    .kk-report-head {
        grid-template-columns: 1fr;
    }

    .kk-reporting-art {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .kk-topnav {
        height: auto;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .kk-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .kk-nav a,
    .kk-nav-button {
        min-height: 42px;
        white-space: nowrap;
    }

    .kk-menu-panel {
        position: fixed;
        top: 92px;
        left: 12px;
    }

    .kk-page-head,
    #kk-app {
        padding-left: 12px;
        padding-right: 12px;
    }

    .kk-page-head h1 {
        font-size: 30px;
    }

    .kk-head-row,
    .kk-searchbar,
    .kk-actions,
    #kk-page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kk-trip-filter,
    .kk-form-grid,
    .kk-form-grid.three,
    .kk-trip-fields,
    .kk-trip-card,
    .kk-reporting-fields,
    .kk-integration-row {
        grid-template-columns: 1fr;
    }

    .kk-reporting-card {
        padding: 22px 18px;
    }

    .kk-reporting-calendar {
        width: min(338px, calc(100vw - 48px));
        left: 0;
    }

    .kk-reporting-toggle-row {
        grid-template-columns: 1fr;
    }

    .kk-calendar-tools {
        padding-left: 0;
    }

    .kk-day-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .kk-trip-side {
        gap: 14px;
    }

    .kk-footer {
        flex-wrap: wrap;
        padding-right: 90px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .kk-topnav {
        min-height: 52px;
        padding: 6px 14px;
        gap: 8px;
        overflow: hidden;
    }

    .kk-logo-mark {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .kk-account {
        font-size: 13px;
    }

    .kk-nav a,
    .kk-nav-button {
        min-height: 38px;
        padding: 0 6px;
        font-size: 12.5px;
    }

    .kk-nav,
    .kk-main,
    #kk-app,
    .kk-settings-page,
    .kk-settings-card,
    .kk-compact-page,
    .kk-compact-card,
    .kk-status-card,
    .kk-day-content,
    .kk-expanded-day,
    .kk-trip-card,
    .kk-trip-main,
    .kk-trip-side {
        max-width: 100%;
        min-width: 0;
    }

    .kk-main,
    #kk-app {
        overflow-x: hidden;
    }

    .kk-menu-panel {
        top: 86px;
    }

    .kk-page-head {
        padding: 12px 14px 10px;
    }

    .kk-page-head h1 {
        font-size: 22px;
        line-height: 1.15;
    }

    .kk-breadcrumb {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .kk-head-row,
    #kk-page-actions {
        gap: 8px;
    }

    #kk-app {
        padding: 10px 14px 80px;
    }

    .kk-page-head.compact + #kk-app,
    .kk-page-head.compact ~ #kk-app {
        padding-top: 10px;
    }

    .kk-panel,
    .kk-report-card {
        padding: 14px;
        border-radius: 10px;
    }

    .kk-btn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .kk-settings-page {
        gap: 16px;
    }

    .kk-settings-section {
        margin: 0;
    }

    .kk-settings-section h2 {
        margin: 0 0 8px;
        font-size: 20px;
        line-height: 1.15;
        font-weight: 700;
    }

    .kk-settings-card {
        border-radius: 11px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .kk-settings-row {
        min-height: 50px;
        grid-template-columns: 22px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 0 12px;
    }

    .kk-settings-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .kk-settings-copy strong {
        font-size: 15.5px;
        line-height: 1.2;
    }

    .kk-settings-value {
        display: none;
    }

    .kk-settings-chevron {
        font-size: 19px;
    }

    .kk-reporting-card,
    .kk-report-settings,
    .kk-split-card,
    .kk-vehicle-detail {
        gap: 14px;
        padding: 14px;
        border-radius: 11px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .kk-reporting-card {
        min-height: 0;
    }

    .kk-reporting-art,
    .kk-split-card > .kk-illustration,
    .kk-vehicle-art {
        display: none;
    }

    .kk-reporting-intro,
    .kk-reporting-help {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.35;
    }

    .kk-reporting-fields {
        gap: 12px;
    }

    .kk-reporting-field {
        gap: 6px;
        font-size: 14px;
    }

    .kk-reporting-select,
    .kk-reporting-date-field input {
        min-height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }

    .kk-reporting-calendar-button {
        top: 4px;
        right: 6px;
        width: 34px;
        height: 34px;
    }

    .kk-reporting-example {
        margin: 12px 0 8px;
        padding: 12px;
        font-size: 13px;
    }

    .kk-reporting-divider {
        margin: 14px 0;
    }

    .kk-reporting-toggle-row,
    .kk-report-settings-toggle {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        margin: 0;
        padding: 10px 0;
    }

    .kk-reporting-toggle-row strong,
    .kk-report-settings-toggle strong {
        font-size: 15.5px;
        line-height: 1.2;
    }

    .kk-reporting-toggle-row small,
    .kk-report-settings-toggle small {
        margin-top: 3px;
        font-size: 13px;
        line-height: 1.25;
    }

    .kk-reporting-switch,
    .kk-report-settings-switch {
        width: 46px;
        height: 28px;
    }

    .kk-reporting-switch span,
    .kk-report-settings-switch span {
        width: 22px;
        height: 22px;
    }

    .kk-reporting-switch.on span,
    .kk-report-settings-toggle.on .kk-report-settings-switch span {
        transform: translateX(18px);
    }

    .kk-reporting-actions,
    .kk-report-settings-actions,
    .kk-actions {
        margin-top: 14px;
        gap: 10px;
    }

    .kk-report-settings {
        gap: 16px;
        padding: 14px;
    }

    .kk-report-settings h2 {
        margin-bottom: 6px;
        font-size: 22px;
        line-height: 1.15;
    }

    .kk-report-settings p,
    .kk-report-settings label {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.35;
    }

    .kk-vehicle-table th,
    .kk-vehicle-table td,
    .kk-table th,
    .kk-table td {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .kk-table td:nth-child(3) {
        font-size: 17px;
        font-weight: 700;
    }

    .kk-chevron {
        width: 22px;
        font-size: 20px;
    }

    .kk-vehicle-beacon-panel {
        gap: 10px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .kk-vehicle-beacon-panel h2 {
        font-size: 18px;
        line-height: 1.15;
    }

    .kk-vehicle-beacon-panel p,
    .kk-beacon-status {
        font-size: 13px;
        line-height: 1.3;
    }

    .kk-beacon-grid {
        gap: 6px;
    }

    .kk-beacon-grid strong {
        font-size: 13.5px;
    }

    .kk-compact-page {
        gap: 14px;
    }

    .kk-ibeacon-test-head {
        grid-template-columns: 1fr;
    }

    .kk-ibeacon-test-actions {
        justify-content: stretch;
    }

    .kk-ibeacon-test-actions .kk-btn {
        flex: 1 1 140px;
    }

    .kk-compact-section h2 {
        font-size: 20px;
    }

    .kk-problem-banner {
        min-height: 50px;
        grid-template-columns: 22px minmax(0, 1fr) 18px;
        padding: 0 12px;
    }

    .kk-problem-banner small {
        display: none;
    }

    .kk-compact-toggle,
    .kk-status-row {
        min-height: 56px;
        padding: 8px 12px;
    }

    .kk-info-box,
    .kk-beacon-mini {
        padding: 12px;
    }

    .kk-info-box {
        gap: 6px;
    }

    .kk-info-box .kk-btn {
        min-height: 38px;
    }

    .kk-beacon-mini {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .kk-beacon-mini a {
        grid-column: 2;
        font-size: 13px;
    }

    .kk-trip-filter {
        min-height: 46px;
        gap: 8px;
        padding: 8px 14px;
    }

    .kk-trip-filter select,
    .kk-trip-filter input {
        min-height: 40px;
        font-size: 14px;
    }

    .kk-trip-date-nav {
        grid-template-columns: 36px minmax(0, 1fr) auto 36px;
        gap: 6px;
    }

    .kk-icon-button,
    .kk-btn.compact {
        min-height: 36px;
    }

    .kk-icon-button {
        width: 36px;
        font-size: 19px;
    }

    .kk-calendar-tools {
        margin-top: 10px;
        font-size: 13px;
    }

    .kk-calendar-list {
        margin-top: 8px;
    }

    .kk-day-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .kk-date-col {
        min-height: 30px;
        padding: 4px 0 0;
        display: flex;
        gap: 6px;
        align-items: baseline;
    }

    .kk-date-number {
        font-size: 20px;
    }

    .kk-date-weekday {
        font-size: 12px;
    }

    .kk-empty-day,
    .kk-day-summary {
        min-height: 48px;
        padding: 10px;
    }

    .kk-day-trip-row {
        min-height: 54px;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 10px;
    }

    .kk-day-trip-row .kk-row-marker,
    .kk-day-trip-row > span:nth-child(4),
    .kk-day-trip-row > span:nth-child(5),
    .kk-day-trip-row > span:nth-child(6),
    .kk-day-trip-row > span:nth-child(7) {
        display: none;
    }

    .kk-row-check {
        width: 18px;
        height: 18px;
    }

    .kk-row-place strong {
        font-size: 14px;
        line-height: 1.2;
    }

    .kk-row-place small {
        font-size: 12.5px;
    }

    .kk-row-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .kk-row-action {
        width: auto;
        height: 34px;
        border: 1px solid var(--kk-border-dark);
    }

    .kk-row-action.danger {
        margin-left: 0;
        border: 1px solid var(--kk-border-dark);
    }

    .kk-trip-card {
        width: 100%;
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .kk-trip-main,
    .kk-trip-side {
        gap: 10px;
    }

    .kk-trip-fields {
        gap: 8px;
    }

    .kk-trip-fields > *,
    .kk-icon-field,
    .kk-map-preview,
    .kk-type-toggle,
    .kk-comment-field,
    .kk-trip-summary {
        min-width: 0;
        width: 100%;
    }

    .kk-place-choice,
    .kk-place-choice [data-role="place-input"],
    .kk-selected-place {
        min-height: 50px;
    }

    .kk-selected-place {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 7px 30px 7px 10px;
    }

    .kk-place-marker {
        width: 20px;
        height: 20px;
    }

    .kk-map-preview {
        min-height: 160px;
        border-radius: 12px;
    }

    .kk-leaflet-map {
        height: 160px;
    }

    .kk-type-toggle {
        min-height: 48px;
    }

    .kk-type-toggle button {
        min-width: 0;
        font-size: 14px;
    }

    .kk-comment-field {
        min-height: 50px;
        grid-template-columns: 36px 1fr;
    }

    .kk-summary-row {
        min-height: 42px;
        font-size: 14px;
    }

    .kk-trip-summary {
        padding: 6px 10px;
    }

    .kk-modal {
        align-items: end;
        place-items: end stretch;
    }

    .kk-modal-box {
        max-height: 70vh;
        padding: 20px 18px;
        border-radius: 14px 14px 0 0;
    }

    .kk-modal-box h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    .kk-modal-box p,
    .kk-modal-box label {
        font-size: 15px;
    }
}

body.kk-landing {
    overflow-x: clip;
}

.kk-subscription-page {
    display: grid;
    gap: 18px;
}

.kk-subscription-status,
.kk-subscription-card,
.kk-subscription-actions {
    background: #fff;
    border: 1px solid #dce5e2;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.kk-subscription-status {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.kk-subscription-status.failed {
    border-color: #fecaca;
    background: #fff7f7;
}

.kk-subscription-status strong {
    display: block;
    font-size: 18px;
}

.kk-subscription-status span,
.kk-subscription-price span {
    color: var(--kk-muted);
}

.kk-subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kk-subscription-card {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 22px;
}

.kk-subscription-card.active {
    border-color: var(--kk-brand);
    box-shadow: 0 8px 24px rgba(0, 111, 88, 0.12);
}

.kk-subscription-card h2 {
    margin: 0;
    font-size: 24px;
}

.kk-subscription-price {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.kk-subscription-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kk-subscription-card li {
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
}

.kk-subscription-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--kk-brand);
}

.kk-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
}

.kk-subscription-actions span {
    color: var(--kk-muted);
    font-weight: 700;
}

@media (max-width: 760px) {
    .kk-subscription-grid,
    .kk-subscription-status {
        grid-template-columns: 1fr;
    }

    .kk-subscription-grid {
        display: grid;
    }

    .kk-subscription-status {
        align-items: stretch;
        flex-direction: column;
    }

    .kk-subscription-card,
    .kk-subscription-actions {
        padding: 16px;
    }

    .kk-subscription-actions .kk-btn,
    .kk-subscription-card .kk-btn {
        width: 100%;
    }
}

body.kk-landing .kk-landing-wrap,
body.kk-landing .kk-landing-product,
body.kk-landing .kk-beacon-panel,
body.kk-landing .kk-distance-card,
body.kk-landing .kk-team-card,
body.kk-landing .kk-price-card,
body.kk-landing .kk-steps-grid article,
body.kk-landing .kk-feature-grid article,
body.kk-landing .kk-faq-grid details {
    max-width: 100%;
}

body.kk-landing .kk-landing-wrap {
    width: min(1120px, calc(100vw - 40px));
}

body.kk-landing .kk-landing-nav,
body.kk-landing main,
body.kk-landing .kk-landing-footer {
    width: 100vw;
    max-width: 100vw;
}

body.kk-landing .kk-landing-hero-grid > *,
body.kk-landing .kk-two-col > *,
body.kk-landing .kk-product-trip > *,
body.kk-landing .kk-landing-links {
    min-width: 0;
}

@media (max-width: 520px) {
    body.kk-landing .kk-landing-wrap {
        width: calc(100vw - 28px);
    }

    body.kk-landing .kk-landing-links {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 2px 6px;
    }

    body.kk-landing .kk-landing-links a {
        min-height: 34px;
        padding: 0 6px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    body.kk-landing .kk-landing-lead,
    body.kk-landing .kk-landing-badges,
    body.kk-landing .kk-section-head,
    body.kk-landing .kk-two-col p {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        overflow-wrap: anywhere;
    }

    body.kk-landing .kk-landing-badges {
        display: grid;
        grid-template-columns: 1fr;
        flex-wrap: initial !important;
    }

    body.kk-landing .kk-landing-badges span {
        justify-content: center;
        text-align: center;
    }

    body.kk-landing .kk-landing-product {
        width: calc(100vw - 28px);
    }

    body.kk-landing .kk-mobile-break {
        display: inline;
    }

    body.kk-landing .kk-product-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    body.kk-landing .kk-product-trip {
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr);
        align-items: start;
    }

    body.kk-landing .kk-product-trip b {
        grid-column: 2;
    }

    body.kk-landing h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 31px;
    }

    body.kk-landing .kk-landing-kicker {
        font-size: 12px;
        line-height: 1.35;
    }

    body.kk-landing .kk-product-trip b {
        flex: 0 0 auto;
        font-size: 13px;
        white-space: nowrap;
    }
}
