.lcab-view.lcab-history-v2 {
    --history-ink: #12252c;
    --history-muted: #6b7b80;
    --history-line: #dce7e5;
    --history-paper: #fffefa;
    --history-soft: #f2f7f5;
    --history-accent: #ff654b;
    --history-teal: #0e7771;
    color: var(--history-ink);
    padding: 0 0 48px;
}
.lcab-view.lcab-history-v2,
.lcab-view.lcab-history-v2 * { box-sizing: border-box; }

.lcab-history-hero {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    min-height: 235px;
    margin-bottom: 30px;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    color: #fff;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.13) 0 10%, transparent 10.4%),
        radial-gradient(circle at 88% 18%, transparent 0 18%, rgba(255,255,255,.07) 18.3% 26%, transparent 26.3%),
        linear-gradient(125deg, #092b33 0%, #0c554f 62%, #12887a 100%);
    box-shadow: 0 22px 55px rgba(13, 66, 67, .18);
    animation: history-rise .55s both;
}

.lcab-history-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -70px;
    width: 210px;
    height: 210px;
    border-radius: 42% 58% 60% 40%;
    background: #ff6e58;
    opacity: .88;
    transform: rotate(18deg);
}

.lcab-history-hero__copy,
.lcab-history-hero__stats { position: relative; z-index: 1; }
.lcab-history-hero__copy { max-width: 650px; }
.lcab-history-hero__copy > span {
    display: inline-flex;
    margin-bottom: 15px;
    color: #8de5d8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.lcab-history-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(32px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}
.lcab-history-hero p { max-width: 590px; margin: 0; color: #cae1df; font-size: 15px; line-height: 1.65; }
.lcab-history-hero__stats { display: flex; gap: 8px; flex-shrink: 0; }
.lcab-history-hero__stats div {
    min-width: 112px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 18px;
    background: rgba(3,31,36,.34);
    backdrop-filter: blur(9px);
}
.lcab-history-hero__stats strong,
.lcab-history-hero__stats span { display: block; }
.lcab-history-hero__stats strong { color: #fff; font-size: 25px; line-height: 1; }
.lcab-history-hero__stats span { margin-top: 7px; color: #b9d6d3; font-size: 11px; }

.lcab-history-day { margin: 0 0 34px; animation: history-rise .5s calc(var(--history-order, 0) * 70ms) both; }
.lcab-history-day__heading { display: flex; align-items: center; gap: 16px; margin: 0 2px 14px; }
.lcab-history-day__heading::after { content: ""; height: 1px; flex: 1; background: var(--history-line); }
.lcab-history-day__heading h2 { margin: 0; color: var(--history-ink); font-size: 21px; letter-spacing: -.025em; }
.lcab-history-day__heading span { order: 2; color: var(--history-muted); font-size: 12px; white-space: nowrap; }
.lcab-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lcab-history-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--history-line);
    border-radius: 20px;
    background: var(--history-paper);
    box-shadow: 0 8px 24px rgba(27,61,62,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lcab-history-card:hover { transform: translateY(-3px); border-color: #a9cfca; box-shadow: 0 15px 35px rgba(27,61,62,.12); }
.lcab-history-card__media { position: relative; min-height: 160px; overflow: hidden; background: #dce8e5; }
.lcab-history-card__media img { width: 100%; height: 100%; min-height: 160px; display: block; object-fit: cover; transition: transform .45s ease; }
.lcab-history-card:hover .lcab-history-card__media img { transform: scale(1.045); }
.lcab-history-card__media > i {
    position: absolute; inset: auto 10px 10px auto; display: grid; width: 34px; height: 34px; place-items: center;
    color: #fff; font-size: 11px; font-style: normal; border-radius: 50%; background: var(--history-accent); box-shadow: 0 8px 18px rgba(255,101,75,.35);
}
.lcab-history-card__body { min-width: 0; padding: 15px 14px; display: flex; flex-direction: column; }
.lcab-history-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lcab-history-card__meta span { overflow: hidden; color: var(--history-teal); font-size: 10px; font-weight: 900; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.lcab-history-card__meta time { color: var(--history-muted); font-size: 11px; }
.lcab-history-card h3 { margin: 0 0 14px; font-size: 15px; line-height: 1.35; }
.lcab-history-card h3 a { color: var(--history-ink); text-decoration: none; }
.lcab-history-card__action { width: max-content; margin-top: auto; color: var(--history-accent); font-size: 12px; font-weight: 900; text-decoration: none; }
.lcab-history-card__action::after { content: "  →"; }
.lcab-history-pager { margin-top: 12px; }
.lcab-history-empty { padding: 70px 24px; text-align: center; border: 1px dashed var(--history-line); border-radius: 26px; background: var(--history-soft); }
.lcab-history-empty > span { font-size: 52px; color: var(--history-teal); }
.lcab-history-empty h2 { margin: 12px 0 8px; color: var(--history-ink); }
.lcab-history-empty p { color: var(--history-muted); }
.lcab-history-empty a { display: inline-flex; margin-top: 12px; padding: 12px 18px; color: #fff; border-radius: 12px; background: var(--history-teal); text-decoration: none; font-weight: 800; }
.lcab-history-loading { display: grid; min-height: 280px; place-content: center; justify-items: center; gap: 14px; color: var(--history-muted); }
.lcab-history-loading span { width: 38px; height: 38px; border: 3px solid #cfe0dd; border-top-color: var(--history-accent); border-radius: 50%; animation: history-spin .8s linear infinite; }

html[data-theme="dark"] .lcab-view.lcab-history-v2,
html[data-lacorn-theme="dark"] .lcab-view.lcab-history-v2,
body.dark-theme .lcab-view.lcab-history-v2 { --history-ink:#eef8f6; --history-muted:#8fa9ab; --history-line:#294148; --history-paper:#10252d; --history-soft:#0d2027; }

@keyframes history-rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes history-spin { to { transform:rotate(360deg); } }

@media (max-width: 1180px) { .lcab-history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
    .lcab-view.lcab-history-v2 { padding: 0 10px 100px; }
    .lcab-history-hero { min-height: 0; align-items: stretch; flex-direction: column; padding: 27px 22px; border-radius: 22px; }
    .lcab-history-hero h1 { font-size: 34px; }
    .lcab-history-hero__stats { width: 100%; }
    .lcab-history-hero__stats div { min-width: 0; flex: 1; }
    .lcab-history-grid { grid-template-columns: 1fr; }
    .lcab-history-card { grid-template-columns: 105px minmax(0,1fr); }
    .lcab-history-card__media, .lcab-history-card__media img { min-height: 145px; }
    .lcab-history-day__heading h2 { font-size: 18px; }
}
@media (max-width: 390px) {
    .lcab-history-card { grid-template-columns: 92px minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .lcab-history-day,.lcab-history-hero,.lcab-history-loading span { animation:none !important; }
    .lcab-history-card,.lcab-history-card img { transition:none !important; }
}
