:root {
    --cl-tab-h: var(--tb-h, 3.25rem);
}

html,
body {
    background: var(--bg, #ffffff);
    color: var(--text, #ffffff);
}

#app {
    width: 100vw;
    min-height: 100vh;
    background: var(--bg, #ffffff);
}

.cl-root {
    min-height: 100vh;
    padding-bottom: calc(var(--cl-tab-h) + 1rem);
    background: var(--bg, #ffffff);
}

.cl-head {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem 1rem .875rem;
    background: rgba(11, 11, 15, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line, #cbded199);
}

.cl-back {
    width: 1.5rem;
    height: 1.5rem;
}

.cl-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.375rem;
}

.cl-tab {
    position: relative;
    color: var(--muted, #52635a);
    font-size: .8125rem;
    padding: 0 0 .5rem;
    cursor: pointer;
    font-family: var(--font-body, system-ui, sans-serif);
}

.cl-tab-active {
    color: var(--text, #ffffff);
    font-weight: 700;
}

.cl-tab-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: .125rem;
    background: var(--accent, #16845b);
}

.cl-content {
    min-height: calc(100vh - 6.2rem);
    padding: 0 1rem 1.5rem;
}

.cl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem .75rem;
}

.cl-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text, #ffffff);
    text-align: left;
    cursor: pointer;
}

.cl-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    background: var(--raised, #e8f3ec);
}

.cl-cover-empty {
    background: var(--raised, #e8f3ec);
}

.cl-ep {
    position: absolute;
    top: .4375rem;
    right: .4375rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: .625rem;
    font-weight: 600;
    white-space: nowrap;
}

.cl-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .5rem;
    font-size: .8125rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cl-empty {
    min-height: calc(100vh - 6.2rem - var(--cl-tab-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 4rem;
    text-align: center;
}

.cl-empty-img {
    width: 7.3125rem;
    height: 7.125rem;
    object-fit: contain;
    margin-bottom: 1.375rem;
    opacity: .7;
}

.cl-empty-title {
    color: var(--text, #ffffff);
    font-size: 1.0625rem;
    font-weight: 700;
}

.cl-empty-text {
    margin-top: .625rem;
    color: var(--muted, #52635a);
    font-size: .875rem;
}

.tb-tabbar {
    background: var(--bar-bg, #f7f9f7f2);
    border-top: 1px solid var(--line, #cbded199);
}

@supports (min-height: 100dvh) {
    .cl-root {
        min-height: 100dvh;
    }

    .cl-content,
    .cl-empty {
        min-height: calc(100dvh - 6.2rem - var(--cl-tab-h));
    }
}

@media (min-width: 900px) {
    #app, .cl-root { width: 100%; min-height: 100vh; }
    .cl-root { padding: 32px max(32px, calc((100vw - 1320px)/2)) 80px; background: var(--bg, #ffffff); }
    .cl-head { position: static; padding: 0 0 26px; background: none; border: 0; backdrop-filter: none; justify-content: flex-start; }
    .cl-back { display: none; }
    .cl-tabs { justify-content: flex-start; gap: 32px; }
    .cl-tab { font-size: .9375rem; padding-bottom: 12px; }
    .cl-content { min-height: calc(100vh - 280px); padding: 0; }
    .cl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
    .cl-card:hover .cl-cover { outline: 2px solid var(--accent, #16845b); outline-offset: 2px; }
    .cl-card-title { font-size: .875rem; }
    .cl-empty { min-height: 420px; padding: 0; }
}
