:root{--hv-green:#079653;--hv-green-dark:#066d3d;--hv-ink:#09251a;--hv-muted:#61736a;--hv-line:#cde4d8;--hv-soft:#eff8f3;--hv-red:#ec3342;--hv-gold:#f1c75b}
body:has(.home-v1) .auth-shell{width:min(1120px,100%);max-width:none;padding-bottom:104px;justify-content:flex-start}body:has(.home-v1) .auth-brand{padding-bottom:18px}.home-v1{display:grid;width:100%;gap:16px;color:var(--hv-ink)}.home-v1 a{text-decoration:none}.home-checkin{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px 14px;padding:15px 14px;border:2px solid #08b963;border-radius:15px;background:linear-gradient(135deg,#fff,#f4fcf8);box-shadow:0 9px 24px rgb(8 100 57 / 9%)}.home-checkin__copy p,.home-checkin__copy h1{margin:0}.home-checkin__copy p{font-size:14px}.home-checkin__copy small{display:block;margin-top:3px;color:var(--hv-muted);font-size:10px}.home-checkin__copy small b{color:#0b8b50}.home-checkin__copy h1{margin-top:11px;font-size:12px}.home-checkin__actions{display:flex;gap:6px}.home-checkin__actions button{min-height:33px;padding:0 11px;border:1px solid #d6e3dc;border-radius:7px;color:#58685f;background:#f8fbf9;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.home-checkin__actions button.is-active,.home-checkin__actions button[aria-pressed=true]{border-color:var(--hv-green);color:#fff;background:var(--hv-green)}.home-checkin__feedback{grid-column:1/-1;min-height:0;margin:0;color:#087c46;font-size:11px}.home-checkin__feedback:not(:empty){padding-top:7px;border-top:1px solid #dce9e2}
.home-interests{padding:0 2px}.home-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.home-section-title--inline{align-items:flex-end}.home-eyebrow{margin:0 0 5px;color:var(--hv-green);font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.home-section-title h2{margin:0;color:#082218;font-size:clamp(20px,5vw,28px);line-height:1.18;letter-spacing:-.02em}.home-section-title>a{flex:none;color:#087f48;font-size:11px;font-weight:850}.home-interest-rail{display:flex;overflow-x:auto;padding:1px 0 7px;gap:7px;scrollbar-width:none}.home-interest-rail::-webkit-scrollbar,.home-card-rail::-webkit-scrollbar{display:none}.home-interest-rail a{flex:none;padding:9px 14px;border:1px solid #d6e1db;border-radius:999px;color:#17271f;background:#fff;font-size:11px;font-weight:800;box-shadow:0 4px 10px rgb(16 60 39 / 4%)}.home-interest-rail a.is-active{border-color:#09a95c;color:#fff;background:#09a95c;box-shadow:0 7px 15px rgb(7 148 80 / 18%)}
.home-block{overflow:hidden;padding:17px 14px;border:1px solid var(--hv-line);border-radius:20px;background:rgb(255 255 255 / 94%);box-shadow:0 12px 30px rgb(15 68 43 / 7%)}.home-feature,.home-video-card{display:grid;overflow:hidden;border:1px solid #d2e1d9;border-radius:16px;background:#fff}.home-feature__media,.home-video-card__media{display:grid;min-height:230px;place-items:center;overflow:hidden;background:var(--hv-soft)}.home-feature__media img,.home-video-card__media img{width:100%;height:100%;object-fit:cover}.home-feature__media>span,.home-video-card__media>span{font-size:58px}.home-feature__body,.home-video-card>div{display:grid;justify-items:start;padding:15px;gap:9px}.home-chip{padding:5px 8px;border:1px solid #f19aa3;border-radius:999px;color:#d52d3a;background:#fff5f6;font-size:9px;font-weight:850}.home-feature h3,.home-video-card h3{margin:0;color:#071e15;font-size:22px;line-height:1.22}.home-feature p,.home-video-card p{margin:0;color:var(--hv-muted);font-size:12px;line-height:1.65}.home-feature small,.home-video-card small{color:#7a8881;font-size:10px}.home-action{display:inline-flex;min-height:38px;align-items:center;justify-content:center;padding:0 14px;border-radius:10px;color:#fff;background:linear-gradient(135deg,#08ab5c,#078047);font-size:11px;font-weight:850}.home-video-card__media{position:relative}.home-video-card__media i{position:absolute;display:grid;width:54px;height:54px;place-items:center;border:2px solid rgb(255 255 255 / 80%);border-radius:50%;color:#fff;background:rgb(4 31 19 / 65%);font-style:normal}.home-video-card__media em{position:absolute;top:10px;left:10px;padding:6px 9px;border-radius:999px;color:#fff;background:#e83b42;font-size:9px;font-style:normal;font-weight:900}
.home-card-rail{display:grid;grid-auto-flow:column;overflow-x:auto;padding:1px 1px 8px;gap:9px;scroll-snap-type:x proximity}.home-card-rail--articles{grid-auto-columns:minmax(145px,43%)}.home-article-card{display:grid;min-width:0;overflow:hidden;border:1px solid #d6e3dc;border-radius:13px;color:var(--hv-ink);background:#fff;box-shadow:0 7px 17px rgb(17 59 39 / 7%);scroll-snap-align:start}.home-article-card__media{display:grid;height:105px;place-items:center;overflow:hidden;background:var(--hv-soft)}.home-article-card__media img{width:100%;height:100%;object-fit:cover}.home-article-card__media>span{font-size:32px}.home-article-card strong{display:-webkit-box;overflow:hidden;margin:9px 9px 5px;font-size:11px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.home-article-card small{margin:0 9px 9px;color:#7b8881;font-size:9px}
.home-subheading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:4px 0 10px}.home-subheading--spaced{margin-top:19px;padding-top:16px;border-top:1px solid #dce9e2}.home-subheading h3{margin:0;font-size:15px}.home-subheading small{color:var(--hv-muted);font-size:9px}.home-card-rail--products{grid-auto-columns:minmax(132px,38%)}.home-product-card{display:grid;min-width:0;padding:7px;border:1px solid #d7e3dd;border-radius:13px;color:var(--hv-ink);background:#fff;box-shadow:0 7px 16px rgb(15 57 37 / 7%);gap:5px;scroll-snap-align:start}.home-product-card.is-today{border-color:#69c996}.home-product-card__media{position:relative;display:grid;height:125px;place-items:center;overflow:hidden;border-radius:9px;background:var(--hv-soft)}.home-product-card__media img{width:100%;height:100%;object-fit:cover}.home-product-card__media>span{font-size:34px}.home-product-card__media em{position:absolute;top:6px;left:6px;padding:4px 6px;border-radius:999px;color:#fff;background:#08a85b;font-size:8px;font-style:normal;font-weight:850}.home-product-card__trust{overflow:hidden;color:#078149;font-size:8px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.home-product-card>strong{display:-webkit-box;overflow:hidden;min-height:31px;font-size:10px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.home-product-card>small{color:var(--hv-red);font-size:11px;font-weight:900}.home-product-card>small.is-unavailable{color:#7b8781}
.home-card-rail--stories{grid-auto-columns:minmax(200px,62%)}.home-story-card{display:grid;min-width:0;padding:11px;border:1px solid #d6e3dc;border-radius:14px;background:#fff;box-shadow:0 7px 17px rgb(14 59 38 / 7%);scroll-snap-align:start}.home-story-card__author{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;color:var(--hv-ink);gap:8px}.home-story-card__author>span:first-child{display:grid;width:35px;height:35px;place-items:center;overflow:hidden;border:1px solid #b9e2cc;border-radius:50%;background:var(--hv-soft);font-size:16px}.home-story-card__author img{width:100%;height:100%;object-fit:cover}.home-story-card__author>span:last-child{display:grid;min-width:0}.home-story-card__author strong,.home-story-card__author small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-story-card__author strong{font-size:11px}.home-story-card__author small{color:var(--hv-muted);font-size:8px}.home-story-card__content{display:grid;color:var(--hv-ink);gap:7px}.home-story-card__content em{width:fit-content;margin-top:9px;padding:4px 7px;border-radius:999px;color:#087f48;background:#eaf8f0;font-size:8px;font-style:normal;font-weight:850}.home-story-card__content p{display:-webkit-box;overflow:hidden;min-height:48px;margin:0;font-size:10px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.home-story-card__media{height:115px;overflow:hidden;border-radius:9px;background:var(--hv-soft)}.home-story-card__media img{width:100%;height:100%;object-fit:cover}.home-story-card__content>small{color:#728179;font-size:8px}.home-community-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.home-community-actions a{display:grid;min-height:42px;place-items:center;padding:7px;border:1px solid #a9d9c0;border-radius:11px;color:#087d46;background:#f2faf6;font-size:10px;font-weight:850;text-align:center}
.home-empty{display:grid;justify-items:center;padding:25px 16px;border:1px dashed #addac3;border-radius:15px;color:var(--hv-ink);background:#f7fcf9;text-align:center;gap:6px}.home-empty>span{font-size:31px}.home-empty strong{font-size:13px}.home-empty small{color:#078149;font-size:10px}.home-empty--compact{padding:17px}
@media(min-width:700px){.home-v1{gap:22px}.home-checkin{padding:18px 20px}.home-checkin__copy p{font-size:16px}.home-checkin__copy h1{font-size:14px}.home-block{padding:24px}.home-feature,.home-video-card{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}.home-feature__media,.home-video-card__media{min-height:330px}.home-card-rail--articles{grid-auto-columns:minmax(190px,24%)}.home-card-rail--products{grid-auto-columns:minmax(170px,20%)}.home-card-rail--stories{grid-auto-columns:minmax(245px,28%)}.home-article-card__media{height:135px}.home-product-card__media{height:160px}.home-story-card__media{height:145px}}
@media(max-width:380px){.home-checkin{grid-template-columns:1fr}.home-checkin__actions{justify-content:flex-start}.home-card-rail--articles{grid-auto-columns:47%}.home-card-rail--products{grid-auto-columns:42%}.home-card-rail--stories{grid-auto-columns:70%}}

/* DMC 9.4B1 - responsive overflow guardrail */
html,
body {
    max-width: 100%;
}

body:has(.home-v1) {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body:has(.home-v1) {
        overflow-x: clip;
    }
}

body:has(.home-v1) .auth-shell,
body:has(.home-v1) .auth-content,
.home-v1,
.home-block,
.home-checkin,
.home-interests,
.home-feature,
.home-video-card,
.home-section-title,
.home-section-title > div,
.home-checkin__copy,
.home-feature__body,
.home-video-card > div {
    min-width: 0;
    max-width: 100%;
}

.home-card-rail,
.home-interest-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overscroll-behavior-inline: contain;
}

.home-card-rail > *,
.home-interest-rail > * {
    min-width: 0;
}

.home-feature__media,
.home-video-card__media,
.home-article-card__media,
.home-product-card__media,
.home-story-card__media {
    min-width: 0;
    max-width: 100%;
}

.home-feature__media img,
.home-video-card__media img,
.home-article-card__media img,
.home-product-card__media img,
.home-story-card__media img {
    display: block;
    max-width: 100%;
}

.home-section-title h2,
.home-feature h3,
.home-video-card h3,
.home-product-card > strong,
.home-story-card__content p {
    overflow-wrap: anywhere;
}

.home-checkin__actions {
    min-width: 0;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .home-section-title--inline {
        align-items: flex-start;
    }

    .home-section-title--inline > a {
        padding-top: 3px;
    }
}

/* DMC 9.4C - daily fishing check-in */
.home-checkin__attendance {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
}
.home-checkin__attendance button {
    padding: 0;
    border: 0;
    color: #078149;
    background: transparent;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}
.home-checkin__attendance button:disabled {
    text-decoration: none;
    cursor: default;
}
.home-checkin__feedback a {
    color: #076f40;
    font-weight: 850;
}
.home-checkin-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: min(76vh, 680px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    color: var(--hv-ink);
    background: #fff;
    box-shadow: 0 24px 70px rgb(3 42 24 / 28%);
}
.home-checkin-dialog::backdrop {
    background: rgb(4 30 18 / 52%);
    backdrop-filter: blur(3px);
}
.home-checkin-dialog__sheet {
    display: grid;
    max-height: min(76vh, 680px);
    grid-template-rows: auto minmax(0, 1fr);
}
.home-checkin-dialog header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 19px 18px 14px;
    border-bottom: 1px solid #dce9e2;
    gap: 16px;
}
.home-checkin-dialog header p,
.home-checkin-dialog header h2 {
    margin: 0;
}
.home-checkin-dialog header p {
    color: var(--hv-green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
}
.home-checkin-dialog header h2 {
    margin-top: 4px;
    font-size: 20px;
}
.home-checkin-dialog header small {
    display: block;
    margin-top: 4px;
    color: var(--hv-muted);
    font-size: 10px;
}
.home-checkin-dialog header > button {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border: 1px solid #cfe3d8;
    border-radius: 50%;
    color: #456057;
    background: #f5faf7;
    font-size: 22px;
    cursor: pointer;
}
.home-checkin-members {
    display: grid;
    overflow-y: auto;
    padding: 10px 14px 18px;
    align-content: start;
}
.home-checkin-member {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid #edf3f0;
    color: var(--hv-ink);
    gap: 10px;
}
.home-checkin-member__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #bfe2cf;
    border-radius: 50%;
    background: var(--hv-soft);
}
.home-checkin-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-checkin-member > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.home-checkin-member strong,
.home-checkin-member small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-checkin-member strong { font-size: 12px; }
.home-checkin-member small { color: var(--hv-muted); font-size: 9px; }
.home-checkin-members__empty,
.home-checkin-members__limited {
    margin: 18px 5px;
    color: var(--hv-muted);
    font-size: 11px;
    text-align: center;
}
@media (max-width: 560px) {
    .home-checkin-dialog {
        width: 100%;
        max-width: none;
        max-height: 78vh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }
    .home-checkin-dialog__sheet { max-height: 78vh; }
}

/* DMC 9.4D - topic personalization */
.home-interests {
    scroll-margin-top: 16px;
}
.home-interest-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 0;
    padding: 10px 12px;
    border: 1px solid #b9dfca;
    border-radius: 12px;
    color: #36594a;
    background: linear-gradient(135deg, #f6fcf8, #eef9f3);
    font-size: 10px;
    line-height: 1.5;
    gap: 12px;
}
.home-interest-context strong {
    color: #087d46;
}
.home-interest-context a {
    flex: none;
    color: #087d46;
    font-weight: 900;
}
#home-highlights {
    scroll-margin-top: 16px;
}
@media (max-width: 520px) {
    .home-interest-context {
        align-items: flex-start;
    }
}

/* DMC 9.6B - desktop Hội Quán homepage */
@media (min-width: 1024px) {
    body:has(.home-v1) {
        background:
            radial-gradient(circle at 12% 4%, rgb(20 184 104 / 10%), transparent 29rem),
            radial-gradient(circle at 88% 18%, rgb(255 205 91 / 11%), transparent 25rem),
            linear-gradient(180deg, #f5fbf8 0%, #edf5f1 100%);
    }

    body:has(.home-v1) .auth-shell {
        width: min(1180px, calc(100% - 48px));
        max-width: none;
        padding-bottom: 120px;
    }

    .home-v1 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
        gap: 24px;
    }

    .home-v1 > * {
        min-width: 0;
    }

    .home-checkin {
        min-height: 214px;
        grid-column: 1 / span 7;
        align-content: center;
        padding: 28px 30px;
        border-radius: 24px;
        gap: 12px 24px;
        box-shadow: 0 18px 44px rgb(8 100 57 / 11%);
    }

    .home-checkin__copy p { font-size: 18px; }
    .home-checkin__copy small { margin-top: 6px; font-size: 12px; }
    .home-checkin__copy h1 { margin-top: 18px; font-size: 18px; }

    .home-checkin__actions {
        justify-content: flex-end;
        gap: 9px;
    }

    .home-checkin__actions button {
        min-height: 44px;
        padding: 0 18px;
        border-radius: 11px;
        font-size: 12px;
    }

    .home-interests {
        display: grid;
        min-height: 214px;
        grid-column: 8 / -1;
        align-content: start;
        padding: 24px;
        border: 1px solid var(--hv-line);
        border-radius: 24px;
        background: rgb(255 255 255 / 94%);
        box-shadow: 0 16px 38px rgb(15 68 43 / 8%);
    }

    .home-interests .home-section-title { margin-bottom: 15px; }
    .home-interests .home-section-title h2 { font-size: 25px; }

    .home-interest-rail {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
        gap: 8px;
    }

    .home-interest-rail a {
        padding: 9px 13px;
        font-size: 10px;
    }

    .home-interest-context { margin-top: 12px; }

    .home-highlight,
    .home-gear,
    .home-community {
        grid-column: 1 / -1;
    }

    .home-library {
        grid-column: 1 / span 7;
        align-self: stretch;
    }

    .home-video {
        grid-column: 8 / -1;
        align-self: stretch;
    }

    .home-block {
        padding: 28px;
        border-radius: 26px;
        box-shadow: 0 17px 42px rgb(15 68 43 / 8%);
    }

    .home-section-title { margin-bottom: 18px; }
    .home-section-title h2 { font-size: 27px; }
    .home-section-title > a { font-size: 12px; }

    .home-highlight .home-feature {
        grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
    }

    .home-highlight .home-feature__media {
        min-height: 420px;
    }

    .home-feature__body,
    .home-video-card > div {
        align-content: center;
        padding: 26px;
        gap: 13px;
    }

    .home-feature h3,
    .home-video-card h3 { font-size: 25px; }
    .home-feature p,
    .home-video-card p { font-size: 13px; }

    .home-card-rail {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .home-library .home-card-rail--articles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .home-article-card__media { height: 126px; }
    .home-article-card strong { font-size: 12px; }
    .home-article-card small { font-size: 9px; }

    .home-video .home-video-card {
        grid-template-columns: 1fr;
    }

    .home-video .home-video-card__media {
        min-height: 270px;
    }

    .home-video .home-video-card > div {
        justify-items: stretch;
        padding: 20px;
    }

    .home-video .home-action { justify-self: start; }

    .home-card-rail--products {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    .home-product-card {
        padding: 9px;
        border-radius: 16px;
        gap: 7px;
    }

    .home-product-card__media { height: 172px; }
    .home-product-card > strong { font-size: 11px; }
    .home-product-card > small { font-size: 12px; }

    .home-card-rail--stories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .home-story-card {
        padding: 14px;
        border-radius: 17px;
    }

    .home-story-card__author strong { font-size: 12px; }
    .home-story-card__content p { font-size: 11px; }
    .home-story-card__media { height: 145px; }

    .home-community-actions {
        width: min(100%, 580px);
        margin-top: 18px;
        gap: 10px;
    }

    .home-community-actions a {
        min-height: 48px;
        font-size: 11px;
    }
}
/* End DMC 9.6B */
