:root {
    --kp-ink: #1E2A38;
    --kp-paper: #F5F4EF;
    --kp-card: #FFFFFF;
    --kp-line: #E4E2D8;
    --kp-muted: #6F7782;
    --kp-in: #2F7D5B;
    --kp-out: #B5483A;
    --kp-brass: #C69A3A;
    --kp-in-bg: #E3F0E9;
    --kp-out-bg: #F7E5E1;
    --kp-nav-h: 68px;
}

html,
body.kp-body {
    height: 100%;
    margin: 0;
}

body.kp-body {
    background: #D9D7CC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--kp-ink);
}

.kp-app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    background: var(--kp-paper);
    overflow: hidden;
}

@media (min-width: 481px) {
    .kp-app {
        border-left: 1px solid var(--kp-line);
        border-right: 1px solid var(--kp-line);
    }
}

.kp-top {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--kp-card);
    border-bottom: 1px solid var(--kp-line);
}

.kp-logo {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--kp-ink);
    color: var(--kp-brass);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.kp-brand {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.kp-brand small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--kp-muted);
}

.kp-tbtn {
    position: relative;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--kp-ink);
    font-size: 20px;
}

.kp-tbtn .kp-dot {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kp-out);
}

.kp-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px 24px;
}

.kp-nav {
    flex: none;
    display: flex;
    min-height: var(--kp-nav-h);
    padding: 8px 0 max(10px, env(safe-area-inset-bottom));
    background: var(--kp-card);
    border-top: 1px solid var(--kp-line);
}

.kp-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--kp-muted);
    font-size: 11px;
    text-decoration: none;
}

.kp-nav a i {
    font-size: 20px;
}

.kp-nav a.kp-on {
    color: var(--kp-ink);
    font-weight: 700;
}

.kp-nav a.kp-on i {
    color: var(--kp-brass);
}

.kp-sheet {
    position: absolute;
    inset: 0;
    z-index: 1050;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .28s;
}

.kp-sheet.kp-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.kp-sheet-bg {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 56, .45);
    opacity: 0;
    transition: opacity .28s;
}

.kp-sheet.kp-open .kp-sheet-bg {
    opacity: 1;
}

.kp-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 88%;
    padding: 8px 18px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    background: var(--kp-card);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.kp-sheet.kp-open .kp-sheet-panel {
    transform: translateY(0);
}

.kp-sheet-grip {
    width: 40px;
    height: 4px;
    margin: 4px auto 12px;
    border-radius: 2px;
    background: var(--kp-line);
}

.kp-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.kp-sheet-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.kp-sheet-x {
    padding: 4px;
    border: 0;
    background: none;
    color: var(--kp-muted);
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {

    .kp-sheet,
    .kp-sheet-bg,
    .kp-sheet-panel {
        transition: none;
    }
}

.kp-act {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    border: 0;
    border-top: 1px solid var(--kp-line);
    background: none;
    color: var(--kp-ink);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
}

.kp-act i {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.kp-act-danger {
    color: var(--kp-out);
}

.kp-loader {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
}

.kp-loader.kp-show {
    display: flex;
}

.kp-loader-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--kp-ink);
}

#toast-container {
    margin-top: 20px;
    font-family: inherit;
}

#toast-container.toast-top-center>div {
    width: min(92vw, 360px);
    border-radius: 12px;
    opacity: .97;
    font-size: 13px;
}

.kp-profile {
    min-width: 220px;
    max-width: 280px;
    padding: 6px 0;
    border: 1px solid var(--kp-line);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
}

.kp-profile-info {
    padding: 8px 16px;
}

.kp-logout {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--kp-out);
    font-weight: 500;
}

.kp-logout:hover,
.kp-logout:active {
    background: var(--kp-out-bg);
    color: var(--kp-out);
}

.kp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #F6EBD0;
    color: #6B531A;
    font-size: 12px;
    line-height: 1.45;
}

.kp-note i {
    margin-top: 1px;
    font-size: 14px;
}