.rld-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.rld-head-l { flex: 1 1 380px; min-width: 0; }

.rld-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--rl-red-d);
    font-weight: 700;
}

.rld-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--rl-text-3);
}

.rld-head-r {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.rld-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.rld-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s, background .18s, border-color .18s;
}

.rld-btn-ico { font-size: 13px; line-height: 1; }

.rld-btn-primary {
    color: #fff;
    background: var(--rl-red);
    border-color: var(--rl-red);
}
.rld-btn-primary:hover { background: var(--rl-red-d); border-color: var(--rl-red-d); color: #fff; }

.rld-btn-ghost {
    color: var(--rl-red-d);
    background: var(--rl-card);
    border-color: var(--rl-red-b);
}
.rld-btn-ghost:hover { background: var(--rl-red-l); }

.rld-bar {
    margin: 26px auto 16px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rl-red-d);
    background: var(--rl-red-l);
    border-left: 4px solid var(--rl-red);
    border-radius: 4px;
}

.rld-preview-box {
    padding: 14px;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    border-radius: 8px;
    box-shadow: 0 6px 22px -18px rgba(16, 24, 40, .4);
}

.rld-preview-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #fffdf8;
}

.rld-preview-cap {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--rl-text-3);
    text-align: center;
}

.rld-months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.rld-mon {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding: 14px 6px;
    text-decoration: none;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    border-radius: 8px;
    color: var(--rl-text-1);
    transition: border-color .18s, background .18s, color .18s;
}

.rld-mon:hover {
    border-color: var(--rl-red-b);
    background: var(--rl-red-l);
    color: var(--rl-red-d);
}

.rld-mon-n { font-size: 24px; font-weight: 700; line-height: 1; }
.rld-mon-t { font-size: 13px; color: var(--rl-text-3); }
.rld-mon:hover .rld-mon-t { color: var(--rl-red-d); }

.rld-mon-dl {
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 11px;
    color: var(--rl-text-3);
    opacity: 0;
    transition: opacity .18s;
}
.rld-mon:hover .rld-mon-dl { opacity: 1; color: var(--rl-red); }

.rld-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rld-yr {
    min-width: 62px;
    padding: 7px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    color: var(--rl-text-2);
    transition: border-color .18s, background .18s, color .18s;
}

.rld-yr:hover { border-color: var(--rl-red-b); color: var(--rl-red-d); background: var(--rl-red-l); }

.rld-yr.is-cur {
    color: #fff;
    background: var(--rl-red);
    border-color: var(--rl-red);
    font-weight: 700;
}

.rld-tips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rld-tip {
    padding: 14px 15px 15px;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    border-radius: 8px;
}

.rld-tip h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--rl-red-d);
    font-weight: 700;
}

.rld-tip p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--rl-text-3);
}

.rld-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 2px;
}
.rld-dot-rest { background: #c0392b; }
.rld-dot-work { background: #8a7f74; }

.rld-rel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rld-rel-i {
    display: block;
    padding: 13px 15px;
    text-decoration: none;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    border-radius: 8px;
    transition: border-color .18s, background .18s;
}

.rld-rel-i:hover { border-color: var(--rl-red-b); background: var(--rl-red-l); }

.rld-rel-i b {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--rl-text-1);
}
.rld-rel-i span { font-size: 12px; color: var(--rl-text-3); }
.rld-rel-i:hover b { color: var(--rl-red-d); }

.rld-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px auto 0;
    padding: 10px 14px;
    background: var(--rl-card);
    border: 1px solid var(--rl-line);
    border-radius: 8px;
}

.rld-toolbar-t {
    font-size: 13px;
    color: var(--rl-text-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rld-toolbar-t b { color: var(--rl-red-d); font-weight: 700; }

.rld-toolbar-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.rld-toolbar .rld-btn { height: 32px; font-size: 12.5px; padding: 0 13px; }

@media only screen and (max-width: 980px) {
    .rld-months { grid-template-columns: repeat(4, 1fr); }
    .rld-tips { grid-template-columns: repeat(2, 1fr); }
    .rld-rel { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 640px) {
    .rld-head { padding-top: 16px; }
    .rld-title { font-size: 21px; }
    .rld-desc { font-size: 12.5px; }
    .rld-head-r { width: 100%; justify-content: space-between; }
    .rld-head-acts { width: 100%; }
    .rld-head-acts .rld-btn { flex: 1 1 0; justify-content: center; }

    .rld-bar { margin: 18px auto 12px; padding: 10px 13px; font-size: 14px; }

    .rld-months { grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .rld-mon { padding: 11px 4px; }
    .rld-mon-n { font-size: 20px; }

    .rld-tips { grid-template-columns: 1fr; }
    .rld-rel { grid-template-columns: 1fr; }

    .rld-toolbar { padding: 9px 11px; }
    .rld-toolbar-acts { width: 100%; }
    .rld-toolbar .rld-btn { flex: 1 1 0; justify-content: center; }
}

@media print {
    @page { size: A4 landscape; margin: 8mm; }

    .header,
    .footer,
    .main,
    .rl-kf,
    .rl-ding-wrap,
    .rl-quick-btn,
    .rl-theme-btn,
    .rl-theme-mask,
    .rld-toolbar,
    .rld-head,
    .rld-preview,
    .rld-months,
    .rld-years,
    .rld-tips,
    .rld-rel {
        display: none !important;
    }

    html, body {
        background: #fff !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .max-width {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .rld-bar { display: none !important; }

    .rlb-wrap, .jj-wrap, .jq-wrap {
        break-inside: avoid;
        box-shadow: none !important;
    }

    .rlb-mon, .jj-mon, .jq-card {
        break-inside: avoid;
        border-color: #999 !important;
    }

    a[href]::after { content: ""; }
}
