:root {
    --sabbe: #b8336a;
    --sabbe-soft: #f9e1ea;
    --danau: #1f5a6b;
    --danau-soft: #dceef1;
    --kelor: #4f8a3a;
    --kelor-soft: #e3f1dc;
    --kunyit: #e39b2d;
    --kunyit-soft: #fcefd8;
    --bahaya: #c62e2e;
    --bahaya-soft: #fbe2e2;
    --bg: #fff7f9;
    --surface: #ffffff;
    --ink: #24313b;
    --muted: #5e6b74;
    --line: #ead9df;
    --outer: #f3e4ea;
    --dur-fast: 150ms;
    --dur-med: 250ms;
    --ease: ease;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --sabbe: #e57aa2;
        --sabbe-soft: #3a2230;
        --danau: #7cc3d3;
        --danau-soft: #1b3238;
        --kelor: #8cc774;
        --kelor-soft: #1f2e1a;
        --kunyit: #f0b860;
        --kunyit-soft: #3a2d18;
        --bahaya: #f07a7a;
        --bahaya-soft: #3d1f1f;
        --bg: #181c20;
        --surface: #22282d;
        --ink: #eef1f3;
        --muted: #a8b3ba;
        --line: #36404a;
        --outer: #121518;
    }
}
:root[data-theme="dark"] {
    --sabbe: #e57aa2;
    --sabbe-soft: #3a2230;
    --danau: #7cc3d3;
    --danau-soft: #1b3238;
    --kelor: #8cc774;
    --kelor-soft: #1f2e1a;
    --kunyit: #f0b860;
    --kunyit-soft: #3a2d18;
    --bahaya: #f07a7a;
    --bahaya-soft: #3d1f1f;
    --bg: #181c20;
    --surface: #22282d;
    --ink: #eef1f3;
    --muted: #a8b3ba;
    --line: #36404a;
    --outer: #121518;
}
html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: var(--ink);
    background-color: var(--outer);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0 22px,
            color-mix(in srgb, var(--sabbe) 10%, transparent) 22px 26px,
            transparent 26px 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 22px,
            color-mix(in srgb, var(--danau) 8%, transparent) 22px 26px,
            transparent 26px 48px
        );
    line-height: 1.55;
    font-size: 16px;
}
h1,
h2,
h3 {
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.15;
    margin: 0;
}
.app {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 96px;
    box-shadow: 0 0 0 1px var(--line);
}
header.top {
    padding: 12px 16px 10px;
    background: var(--sabbe);
    color: #fff;
    border-radius: 0 0 22px 22px;
}
.app > header.top {
    position: sticky;
    top: 0;
    z-index: 20;
}
:root[data-theme="dark"] header.top {
    color: #1a1013;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) header.top {
        color: #1a1013;
    }
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}
.brand svg {
    flex: none;
}
.brand h1 {
    font-size: 1.08rem;
    font-weight: 800;
}
.brand p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}
main {
    padding: 18px 16px 8px;
}
.screen {
    display: none;
}
.screen.on {
    display: block;
}
.screen > h2 {
    font-size: 1.55rem;
    color: var(--sabbe);
    margin: 4px 4px 4px;
}
.lead {
    margin: 0 4px 16px;
    color: var(--muted);
}
.illus {
    display: block;
    width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 16px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 15px;
    margin-bottom: 16px;
}
.panel h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
}
.panel p {
    margin: 0 0 8px;
}
.panel p:last-child {
    margin-bottom: 0;
}
.big-def {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}
.ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bahaya-soft);
    border: 6px dashed var(--bahaya);
    display: grid;
    place-items: center;
    text-align: center;
    font-family: "Inter", sans-serif;
    color: var(--bahaya);
}
.ring b {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}
.ring span {
    font-size: 0.72rem;
    font-weight: 700;
}
.duo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: stretch;
    margin: 10px 0;
}
.duo .c {
    background: var(--danau-soft);
    border-radius: 18px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.duo .c img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex: none;
}
.duo .c.k {
    color: #fff;
}
.duo .plus {
    font-family: "Inter";
    font-size: 1.8rem;
    color: var(--muted);
    align-self: center;
}
.icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.icons div {
    background: var(--kunyit-soft);
    border-radius: 16px;
    padding: 10px 6px;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
}
.icons div i {
    display: block;
    font-style: normal;
    font-size: 1.7rem;
    line-height: 1.2;
}
.icons div i img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chips span {
    background: var(--danau-soft);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.split > div {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    padding: 12px;
}
.split > div img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    align-self: flex-end;
    margin-top: auto;
}
.split h4 {
    margin: 0 0 6px;
    font-family: "Inter";
    font-size: 1.05rem;
}
.split ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}
.mom {
    background: var(--sabbe-soft);
}
.baby {
    background: var(--danau-soft);
}
.plate {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    text-align: center;
}
.plate .p {
    border-radius: 16px;
    padding: 10px 2px;
    font-size: 0.75rem;
    font-weight: 700;
}
.plate .p b {
    display: block;
    font-family: "Inter";
    font-size: 1.55rem;
    line-height: 1;
}
.tip {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 10px !important;
}
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: s;
}
.steps li {
    counter-increment: s;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}
.steps li:last-child {
    border-bottom: 0;
}
.steps li::before {
    content: counter(s);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--kelor);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-family: "Inter";
}
.steps b {
    display: block;
}
.steps small {
    color: var(--muted);
    font-size: 0.86rem;
}
.check {
    list-style: none;
    margin: 0;
    padding: 0;
}
.check li {
    margin: 0 0 8px;
}
.check label {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--kelor-soft);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
}
.check input {
    width: 22px;
    height: 22px;
    accent-color: var(--kelor);
    flex: none;
}
.progress {
    height: 10px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
    margin: 6px 0 12px;
}
.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--kelor);
    transition: width 0.3s;
}
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 16px;
}
.seg button {
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    border: 0;
    border-radius: 12px;
    padding: 10px 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.seg button[aria-selected="true"] {
    background: var(--sabbe);
    color: #fff;
}
.part {
    display: none;
}
.part.on {
    display: block;
}
.num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sabbe);
    color: #fff;
    font-size: 0.95rem;
    margin-right: 8px;
    vertical-align: 2px;
    position: relative;
}
.num::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 19px;
    background-color: var(--sabbe);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 32'%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cpath d='M9 4 L16 9'/%3E%3Cpath d='M2 16 L13 16'/%3E%3Cpath d='M9 28 L16 23'/%3E%3C/g%3E%3C/svg%3E")
        center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 32'%3E%3Cg stroke='%23fff' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Cpath d='M9 4 L16 9'/%3E%3Cpath d='M2 16 L13 16'/%3E%3Cpath d='M9 28 L16 23'/%3E%3C/g%3E%3C/svg%3E")
        center/contain no-repeat;
}
h4.sub {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: var(--danau);
    margin: 14px 0 8px;
}
.age {
    margin: 8px 0 12px;
}
.age-bar {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 4fr);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
}
.age-seg {
    padding: 13px 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
    min-width: 0;
}
.age-seg span {
    min-width: 0;
    line-height: 1.2;
}
.age-ico {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: none;
}
.age-seg b {
    display: block;
    font-family: "Inter";
    font-size: 1.08rem;
    line-height: 1.15;
}
.a1 {
    background: #fdedf6;
}
.a2 {
    background: #f2edfd;
}
.a3 {
    background: #ecf5ee;
    color: var(--muted);
}
.age-concl {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
}
@media (max-width: 440px) {
    .age-seg {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 12px 6px;
    }
    .age-ico {
        width: 40px;
        height: 40px;
    }
    .duo .c {
        padding: 8px;
        gap: 8px;
        font-size: 0.8rem;
    }
    .duo .c img {
        width: 48px;
        height: 48px;
    }
    .flow li img {
        width: 38px;
        height: 38px;
    }
    .split > div img {
        width: 56px;
        height: 56px;
    }
}
.reasons,
.intv {
    display: grid;
    gap: 8px;
}
.reasons div,
.intv div {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 10px;
    background: var(--danau-soft);
    border-radius: 16px;
    padding: 10px 12px;
}
.intv div {
    background: var(--kelor-soft);
    grid-template-columns: 52px 1fr;
}
.reasons div {
    grid-template-columns: 58px 1fr;
}
.reasons i,
.intv i {
    font-style: normal;
    font-size: 1.5rem;
    grid-row: span 2;
    align-self: center;
}
.reasons i img {
    width: 100%;
    height: auto;
    display: block;
}
.intv i img {
    width: 100%;
    height: auto;
    display: block;
}
.reasons small,
.intv small {
    color: var(--muted);
    font-size: 0.85rem;
}
.tbl-wrap {
    overflow-x: auto;
    margin: 8px 0;
}
table.nut {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    min-width: 320px;
}
.nut th {
    background: var(--sabbe);
    color: #fff;
    padding: 8px 6px;
    text-align: left;
    font-weight: 800;
}
.nut th:first-child {
    border-radius: 10px 0 0 0;
}
.nut th:last-child {
    border-radius: 0 10px 0 0;
}
.nut td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
}
.nut td:first-child {
    font-weight: 700;
}
.nut tr:nth-child(even) td {
    background: var(--sabbe-soft);
}
.probs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.pb {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 10px 12px;
}
.pb.wide {
    grid-column: span 2;
}
.pb i {
    font-style: normal;
    grid-row: span 2;
    align-self: center;
}
.pb i img {
    width: 100%;
    height: auto;
    display: block;
}
.pb b {
    display: block;
    font-family: "Inter";
    font-size: 1.02rem;
}
.pb small {
    font-size: 0.84rem;
}
.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: f;
}
.flow li {
    display: flex;
    align-items: center;
    gap: 10px;
    counter-increment: f;
    position: relative;
    background: var(--kunyit-soft);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 22px;
}
.flow li:last-child {
    margin-bottom: 0;
    background: var(--bahaya-soft);
    color: var(--bahaya);
}
.flow li::before {
    content: counter(f);
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--kunyit);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: "Inter";
}
.flow li img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: none;
}
.flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 11px;
    height: 11px;
    border-right: 3px solid var(--kunyit);
    border-bottom: 3px solid var(--kunyit);
    border-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"])
        :is(
            .seg button[aria-selected="true"],
            .badge,
            .nut th,
            .num,
            .steps li::before,
            .flow li::before
        ) {
        color: #1a1013;
    }
}
:root[data-theme="dark"]
    :is(
        .seg button[aria-selected="true"],
        .badge,
        .nut th,
        .num,
        .steps li::before,
        .flow li::before
    ) {
    color: #1a1013;
}
.seg-sm {
    margin-bottom: 12px;
}
@keyframes pop {
    from {
        transform: scale(0.4);
    }
    to {
        transform: scale(1);
    }
}
.seg3 {
    grid-template-columns: repeat(3, 1fr);
}
.qtag {
    display: inline-block;
    background: var(--danau-soft);
    color: var(--danau);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 99px;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.qhint {
    margin: 0 0 4px !important;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}
.nutri {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 8px 0;
}
.nutri div {
    background: var(--sabbe-soft);
    border-radius: 16px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 10px;
    align-items: center;
}
.nutri i {
    font-style: normal;
    font-size: 1.5rem;
    grid-row: span 2;
    align-self: center;
}
.nutri i img {
    width: 100%;
    height: auto;
    display: block;
}
.nutri b {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
}
.nutri span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}
.supp {
    display: grid;
    gap: 10px;
}
.supp > div {
    border-radius: 16px;
    padding: 12px 14px;
}
.sp1 {
    background: #fae3eb;
}
.sp2 {
    background: #e5f3e4;
}
.sp3 {
    background: #e0f2fe;
}
.sp-h {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.sp-h i {
    font-style: normal;
    flex: none;
}
.sp-h i img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}
.sp-h b {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    display: inline-block;
}
.sp1 .sp-h b {
    background: #c7366f;
}
.sp2 .sp-h b {
    background: #2f9762;
}
.sp3 .sp-h b {
    background: #3d92ed;
}
.supp p {
    margin: 0 0 6px;
    font-size: 0.92rem;
}
.supp ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
}
.prv {
    display: none;
}
.prv.on {
    display: block;
}
#pr-kek svg {
    width: 100%;
    max-width: 380px;
    display: block;
    margin: 0 auto 6px;
}
details.acc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}
details.acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
}
details.acc summary::-webkit-details-marker {
    display: none;
}
details.acc summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--muted);
    transition: transform 0.2s;
}
details.acc[open] summary::after {
    transform: rotate(180deg);
}
details.acc summary i {
    font-style: normal;
    font-size: 1.4rem;
}
details.acc[open] summary {
    color: var(--sabbe);
}
.acc-b {
    padding: 0 16px 16px;
}
.tips {
    margin: 0;
    padding-left: 20px;
}
.tips li {
    margin-bottom: 6px;
}
.evg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.ev {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ev b {
    font-size: 0.82rem;
}
.ev-n {
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--muted);
}
.ev small {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
}
.ev .g {
    color: var(--kelor);
}
.ev .c {
    color: var(--kunyit);
}
.ev .r {
    color: var(--bahaya);
}
.about {
    background: var(--kunyit-soft);
    border: 1px solid var(--kunyit);
    border-radius: 18px;
    padding: 14px 16px;
    margin: 0 0 14px;
}
.about b {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    color: var(--kunyit);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.about b svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
}
.about p {
    margin: 4px 0 8px;
    font-size: 0.92rem;
}
.about-g {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.about-g span {
    background: var(--surface);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}
.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.toc b {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.toc div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.toc a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sabbe);
    background: var(--sabbe-soft);
    border-radius: 99px;
    padding: 5px 10px;
    text-decoration: none;
}
.panel[id],
#pustaka {
    scroll-margin-top: 84px;
}
.srcl {
    font-size: 0.74rem;
    color: var(--muted);
    margin: 10px 0 0 !important;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-style: italic;
}
.srcl a {
    color: var(--danau);
    font-weight: 700;
}
.note-kek {
    font-size: 0.82rem;
    background: var(--kunyit-soft);
    border-left: 4px solid var(--kunyit);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 10px !important;
}
.refs {
    margin: 0;
    padding-left: 20px;
    font-size: 0.84rem;
}
.refs li {
    margin-bottom: 6px;
}
.ovl {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 30, 0.55);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ovl[hidden] {
    display: none;
}
.dlg {
    background: var(--surface);
    color: var(--ink);
    border-radius: 22px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}
.dlg-w {
    max-width: 440px;
}
.dlg h3 {
    font-size: 1.25rem;
    color: var(--sabbe);
    margin-bottom: 8px;
}
.dlg input {
    width: 100%;
    font: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    margin: 6px 0 12px;
    text-transform: uppercase;
}
.dlg-b {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.logsum {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.logsum div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
}
.logsum b {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    color: var(--sabbe);
    line-height: 1.1;
}
.logsum small {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}
.logtbl {
    max-height: 40vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
}
.logtbl table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.logtbl th {
    position: sticky;
    top: 0;
    background: var(--sabbe-soft);
    text-align: left;
    padding: 6px;
}
.logtbl td {
    padding: 6px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}
/* Tape */
.tape-wrap {
    overflow-x: auto;
    margin: 6px -4px 4px;
    padding: 0 4px;
}
.tape {
    position: relative;
    height: 86px;
    min-width: 340px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--bahaya-soft) 0 var(--cut),
        var(--kelor-soft) var(--cut) 100%
    );
    border: 2px solid var(--line);
}
.tick {
    position: absolute;
    bottom: 0;
    width: 1.5px;
    background: var(--ink);
    opacity: 0.55;
}
.tick.m {
    height: 16px;
}
.tick.s {
    height: 8px;
}
.tlabel {
    position: absolute;
    bottom: 18px;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}
.cutline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bahaya);
}
.cutline span {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bahaya);
    white-space: nowrap;
}
.marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 0;
    transition: left 0.25s;
}
.marker::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--danau);
    border-radius: 2px;
}
.marker::after {
    content: "";
    position: absolute;
    left: -8px;
    top: -2px;
    border: 8px solid transparent;
    border-top-color: var(--danau);
}
.lila-in {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}
.lila-in input[type="range"] {
    flex: 1;
    accent-color: var(--danau);
}
.lila-in input[type="number"] {
    width: 92px;
    font: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 8px 10px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.result {
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 600;
}
.result h3 {
    margin-bottom: 4px;
}
.result.ok {
    background: var(--kelor-soft);
}
.result.ok h3 {
    color: var(--kelor);
}
.result.risk {
    background: var(--bahaya-soft);
}
.result.risk h3 {
    color: var(--bahaya);
}
.btn {
    font: inherit;
    font-weight: 800;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    background: var(--danau);
    color: #fff;
    cursor: pointer;
}
:root[data-theme="dark"] .btn {
    color: #0f1a1d;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn {
        color: #0f1a1d;
    }
}
.btn.ghost {
    background: transparent;
    color: var(--danau);
    border: 2px solid var(--danau);
}
/* Halaman user: tombol utama merah sabbe */
.app:not(.admin) .btn {
    background: var(--sabbe);
}
.app:not(.admin) .btn.ghost {
    background: transparent;
    color: var(--sabbe);
    border-color: var(--sabbe);
}
.app:not(.admin) .btn.ghost:hover {
    background: var(--sabbe-soft);
}
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-within {
    outline: 3px solid var(--kunyit);
    outline-offset: 2px;
}
.hist {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 0.92rem;
}
.hist li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.hist .r {
    color: var(--bahaya);
    font-weight: 800;
}
.hist .g {
    color: var(--kelor);
    font-weight: 800;
}
/* quiz */
.q-meta {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.opts {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.opt {
    font: inherit;
    text-align: left;
    padding: 13px 14px;
    border-radius: 16px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
}
.opt.right {
    border-color: var(--kelor);
    background: var(--kelor-soft);
}
.opt.wrong {
    border-color: var(--bahaya);
    background: var(--bahaya-soft);
}
.opt:disabled {
    cursor: default;
}
.explain {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--danau-soft);
    font-size: 0.94rem;
    display: none;
}
.explain.on {
    display: block;
}
.score {
    font-family: "Inter";
    font-size: 3.2rem;
    color: var(--sabbe);
    line-height: 1;
}
/* schedule */
.tri {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.tri div {
    background: var(--sabbe-soft);
    border-radius: 16px;
    padding: 10px 4px;
}
.tri b {
    font-family: "Inter";
    font-size: 1.9rem;
    color: var(--sabbe);
    display: block;
    line-height: 1;
}
.tri small {
    font-size: 0.78rem;
    font-weight: 700;
}
.dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 6px 0 2px;
}
.dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sabbe);
}
.danger {
    border: 2px solid var(--bahaya);
    background: var(--bahaya-soft);
}
.danger h3 {
    color: var(--bahaya);
}
.danger ul {
    margin: 0;
    padding-left: 20px;
}
.contact {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.contact input {
    flex: 1;
    min-width: 0;
    font: inherit;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
/* myth */
.myth {
    border: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    display: block;
}
.myth .tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 6px;
}
.myth .m .tag {
    background: var(--bahaya-soft);
    color: var(--bahaya);
}
.myth .f .tag {
    background: var(--kelor-soft);
    color: var(--kelor);
}
.myth .f {
    display: none;
}
.myth.open .m {
    display: none;
}
.myth.open .f {
    display: block;
}
.myth p {
    margin: 0;
    font-weight: 600;
}
.myth .hint {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--sabbe);
    background: var(--sabbe-soft);
    font-weight: 800;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 99px;
}
.local {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.local div {
    background: var(--kunyit-soft);
    border-radius: 16px;
    padding: 12px;
}
.local b {
    display: block;
    font-family: "Inter";
    font-size: 1.05rem;
}
.local small {
    font-size: 0.84rem;
}
.menu-day {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-day li {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.93rem;
}
.menu-day li:last-child {
    border: 0;
}
.menu-day b {
    color: var(--danau);
}
.note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 4px 12px 16px;
}
/* nav */
nav.tabs {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
}
nav.tabs a + a {
    position: relative;
}
nav.tabs a + a::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: var(--line);
    border-radius: 1px;
    pointer-events: none;
}
nav.tabs a {
    font: inherit;
    background: none;
    border: 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 6px 2px;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.15;
    text-decoration: none;
}
nav.tabs a svg {
    width: 24px;
    height: 24px;
}
nav.tabs a img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
nav.tabs a.active {
    color: var(--sabbe);
    background: var(--sabbe-soft);
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Auth pages */
.auth-app {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 0 0 1px var(--line);
}
.auth-logo {
    text-align: center;
    margin: 24px 0 18px;
}
.auth-logo svg {
    width: 76px;
    height: 76px;
}
.auth-logo img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: contain;
    background: #fce9f1;
}
.auth-logo h1 {
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    color: var(--sabbe);
    margin-top: 8px;
}
.auth-logo p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
}
.auth-card h2 {
    font-size: 1.35rem;
    color: var(--sabbe);
    margin-bottom: 4px;
}
.auth-card .sub {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
}
.field {
    margin-bottom: 14px;
}
.field label {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.field .hint {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--muted);
    margin: -2px 0 6px;
}
.field input {
    width: 100%;
    font: inherit;
    font-weight: 700;
    padding: 13px 14px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.field input:focus {
    outline: 3px solid var(--kunyit);
    outline-offset: 1px;
    border-color: var(--sabbe);
}
.pass-wrap {
    position: relative;
}
.pass-wrap input {
    padding-right: 52px;
}
.toggle-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--muted);
    line-height: 0;
    border-radius: 10px;
}
.toggle-eye:focus-visible {
    outline: 3px solid var(--kunyit);
    outline-offset: 1px;
}
.toggle-eye svg {
    width: 24px;
    height: 24px;
}
.toggle-eye .eye-off {
    display: none;
}
.toggle-eye.showing .eye-on {
    display: none;
}
.toggle-eye.showing .eye-off {
    display: block;
}
.field .err {
    display: block;
    color: var(--bahaya);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 0.9rem;
}
.remember input {
    width: 20px;
    height: 20px;
    accent-color: var(--sabbe);
}
.btn-primary {
    width: 100%;
    font: inherit;
    font-weight: 800;
    border: 0;
    border-radius: 14px;
    padding: 14px;
    background: var(--sabbe);
    color: #fff;
    cursor: pointer;
    font-size: 1.02rem;
}
:root[data-theme="dark"] .btn-primary {
    color: #1a1013;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-primary {
        color: #1a1013;
    }
}
.auth-alt {
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}
.auth-alt a {
    color: var(--sabbe);
    font-weight: 800;
}
.flash {
    background: var(--kelor-soft);
    color: var(--kelor);
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.auth-foot {
    margin-top: auto;
    text-align: center;
    font-size: 0.76rem;
    color: var(--muted);
    padding-top: 20px;
}

/* Brand dropdown */
.brand-menu {
    position: relative;
    flex: none;
}
.brand-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 2px;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    display: block;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(36, 49, 59, 0.18);
    transition:
        background 0.15s,
        transform 0.15s;
}
.brand-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.brand-btn:active {
    transform: scale(0.96);
}
.brand-btn:focus-visible {
    outline: 3px solid var(--kunyit);
    outline-offset: 2px;
}
.brand-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #fce9f1;
    display: block;
}
.brand-cap {
    display: block;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-top: 3px;
    opacity: 0.92;
    pointer-events: none;
}
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(36, 49, 59, 0.22);
    padding: 6px;
    z-index: 40;
}
.dropdown[hidden] {
    display: none;
}
.dropdown-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.dropdown-head b {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    color: var(--sabbe);
    line-height: 1.2;
}
.dropdown-head small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
}
.dropdown form {
    margin: 0;
}
.dropdown a,
.dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    background: none;
    border: 0;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
}
.dropdown a:hover,
.dropdown button:hover {
    background: var(--sabbe-soft);
    color: var(--sabbe);
}
.dropdown button {
    color: var(--bahaya);
}
.dropdown button:hover {
    background: var(--bahaya-soft);
    color: var(--bahaya);
}

/* Account page */
.akun-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.akun-row:last-child {
    border-bottom: 0;
}
.akun-row span {
    color: var(--muted);
    font-weight: 700;
}
.akun-row b {
    text-align: right;
}

/* ===== Admin ===== */
nav.tabs.nav-4 {
    grid-template-columns: repeat(4, 1fr);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 2px 0 12px;
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: 1.4rem;
    color: var(--sabbe);
}
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px;
}
.stat b {
    font-family: "Inter", sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    display: block;
    color: var(--sabbe);
}
.stat small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
}
.stat.g b {
    color: var(--kelor);
}
.stat.c b {
    color: var(--kunyit);
}
.stat.r b {
    color: var(--bahaya);
}
.stat.d b {
    color: var(--danau);
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}
.list-item:last-child {
    border-bottom: 0;
}
.list-item .li-main {
    min-width: 0;
}
.list-item b {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    display: block;
}
.list-item small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-item .li-side {
    text-align: right;
    flex: none;
}
.list-item a.li-main {
    flex: 1;
    border-radius: 12px;
    padding: 4px 8px;
    margin: -4px -8px;
    text-decoration: none;
    color: inherit;
}
.list-item a.li-main b {
    color: var(--danau);
}
.list-item a.li-main:hover {
    background: var(--danau-soft);
}
.list-item a.li-main:hover b {
    text-decoration: underline;
}
.pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 99px;
    padding: 3px 10px;
}
.pill.admin {
    background: var(--sabbe-soft);
    color: var(--sabbe);
}
.pill.user {
    background: var(--danau-soft);
    color: var(--danau);
}
.pill.ok {
    background: var(--kelor-soft);
    color: var(--kelor);
}
.pill.risk {
    background: var(--bahaya-soft);
    color: var(--bahaya);
}
.pill.muted {
    background: var(--line);
    color: var(--muted);
}
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}
.filter-bar input,
.filter-bar select {
    font: inherit;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    min-width: 0;
}
.filter-bar input {
    flex: 1;
}
.filter-bar .btn {
    padding: 10px 14px;
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px 8px;
    padding: 0 4px;
}
.atable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 440px;
}
.atable th {
    background: var(--sabbe-soft);
    color: var(--sabbe);
    text-align: left;
    padding: 8px 10px;
    font-weight: 800;
    white-space: nowrap;
}
.atable th:first-child {
    border-radius: 10px 0 0 0;
}
.atable th:last-child {
    border-radius: 0 10px 0 0;
}
.atable td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.atable tr:nth-child(even) td {
    background: color-mix(in srgb, var(--sabbe-soft) 40%, transparent);
}
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.form-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}
.btn.danger {
    background: var(--bahaya);
}
.btn.small {
    padding: 8px 12px;
    font-size: 0.85rem;
}
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-weight: 700;
    padding: 13px 14px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.field textarea {
    min-height: 88px;
    resize: vertical;
    font-weight: 600;
}
.field input[type="checkbox"] {
    width: auto;
    accent-color: var(--sabbe);
    margin-right: 8px;
}
.field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 14px;
}
.empty {
    text-align: center;
    color: var(--muted);
    padding: 22px 8px;
    font-weight: 700;
}
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-weight: 700;
    color: var(--muted);
    font-size: 0.85rem;
}
.opt-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.opt-row input[type="text"] {
    flex: 1;
    font: inherit;
    font-weight: 700;
    padding: 11px 12px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.opt-row input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--kelor);
    flex: none;
}
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.card-link {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: var(--ink);
    display: block;
}
.card-link b {
    font-family: "Inter", sans-serif;
    font-size: 1.02rem;
    display: block;
    color: var(--sabbe);
}
.card-link small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
}
.card-link i {
    font-style: normal;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 4px;
}
.card-link i svg {
    width: 26px;
    height: 26px;
    color: var(--sabbe);
}
@media (max-width: 380px) {
    .stat-grid,
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Konten info menarik (dari admin) — grid kartu yang bisa dibuka */
.kgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.kcard {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    min-width: 0;
    transition:
        border-color var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease);
}
.kcard:hover {
    border-color: var(--sabbe);
    box-shadow: 0 6px 18px rgba(36, 49, 59, 0.1);
}
.kcard[open] {
    grid-column: 1 / -1;
    background: var(--surface);
}
.kcard summary {
    list-style: none;
    cursor: pointer;
    display: block;
    padding: 0;
}
.kcard summary::-webkit-details-marker {
    display: none;
}
.kcard-cover {
    display: block;
    background: var(--sabbe-soft);
}
.kcard-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    display: block;
}
.kcard[open] .kcard-cover img {
    aspect-ratio: unset;
    height: auto;
    object-position: initial;
}
.kcard-ph {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    font-size: 1.8rem;
    opacity: 0.75;
}
.kcard[open] .kcard-ph {
    aspect-ratio: 16 / 9;
}
.kcard-meta {
    display: block;
    padding: 8px 10px 10px;
    min-width: 0;
}
.kcard-tag {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 800;
    color: var(--sabbe);
    background: var(--sabbe-soft);
    border-radius: 99px;
    padding: 2px 8px;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kcard-meta b {
    display: -webkit-box;
    font-size: 0.82rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kcard[open] .kcard-meta b {
    -webkit-line-clamp: unset;
    font-size: 1.02rem;
    font-family: "Inter", sans-serif;
}
.kcard-more {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--danau);
}
.kcard[open] .kcard-more {
    color: var(--muted);
}
.kcard-body {
    padding: 0 12px 14px;
}
.kslide {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    margin-top: 10px;
}
.kcard-close {
    display: block;
    width: 100%;
    margin-top: 14px;
    text-align: center;
}
@media (max-width: 340px) {
    .kgrid {
        grid-template-columns: 1fr;
    }
}

/* ===== Admin desktop: tablet melebar, desktop sidebar (user tetap 460px) ===== */
@media (min-width: 768px) {
    body[data-menu="Admin"] .app.admin {
        max-width: 720px;
    }
    body[data-menu="Admin"] .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    body[data-menu="Admin"] .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    body[data-menu="Admin"] .app.admin {
        max-width: none;
        margin: 0;
        box-shadow: none;
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "side head" "side main";
        padding-bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
        align-content: start;
    }
    body[data-menu="Admin"] .app.admin > header.top {
        grid-area: head;
        border-radius: 0 0 0 22px;
    }
    body[data-menu="Admin"] .app.admin > main {
        grid-area: main;
        padding: 32px;
        min-width: 0;
    }
    body[data-menu="Admin"] .app.admin > nav.tabs.nav-4 {
        grid-area: side;
        position: sticky;
        top: 0;
        left: auto;
        transform: none;
        width: auto;
        max-width: none;
        align-self: stretch;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, min-content);
        align-content: start;
        gap: 4px;
        border-top: 0;
        border-right: 1px solid var(--line);
        padding: 20px 10px;
        z-index: 5;
    }
    body[data-menu="Admin"] .app.admin > nav.tabs a {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        font-size: 0.82rem;
        padding: 10px 12px;
        text-align: left;
    }
    body[data-menu="Admin"] .app.admin > nav.tabs a svg,
    body[data-menu="Admin"] .app.admin > nav.tabs a img {
        flex: none;
    }
    body[data-menu="Admin"] .app.admin > nav.tabs a + a::before {
        display: none;
    }
    body[data-menu="Admin"] .atable {
        min-width: 0;
    }
    body[data-menu="Admin"] .table-scroll {
        margin: 0;
        padding: 0;
        overflow-x: visible;
    }
    body[data-menu="Admin"] .filter-bar input {
        min-width: 200px;
    }
}

/* ===== UX polish: states + motion (native, tanpa lib) ===== */
.btn,
.btn-primary,
.opt,
.myth,
nav.tabs a,
.seg button,
.card-link,
.toc a,
.dropdown a,
.dropdown button {
    transition:
        background var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        transform var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease),
        filter var(--dur-fast) var(--ease);
}
.btn:hover,
.btn-primary:hover {
    filter: brightness(1.07);
}
.btn:active,
.btn-primary:active {
    transform: scale(0.97);
}
.btn:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    filter: none;
}
.btn.ghost:active {
    transform: scale(0.97);
}
.opt:hover:not(:disabled) {
    border-color: var(--sabbe);
}
.opt:active:not(:disabled) {
    transform: scale(0.99);
}
.seg button:hover:not([aria-selected="true"]) {
    color: var(--sabbe);
}
.seg button:active {
    transform: scale(0.96);
}
.toc a:hover {
    filter: brightness(0.96);
}
.toc a:active {
    transform: scale(0.95);
}
.myth:hover {
    border-color: var(--sabbe);
}
.myth:active {
    transform: scale(0.99);
}
.card-link:hover {
    border-color: var(--sabbe);
}
.card-link:active {
    transform: scale(0.98);
}
nav.tabs a {
    position: relative;
}
nav.tabs a:hover {
    background: var(--sabbe-soft);
    color: var(--sabbe);
}
nav.tabs a:active {
    transform: scale(0.93);
}
nav.tabs a svg {
    transition: transform var(--dur-fast) var(--ease);
}
nav.tabs a img {
    transition:
        transform var(--dur-fast) var(--ease),
        filter var(--dur-fast) var(--ease),
        opacity var(--dur-fast) var(--ease);
}
nav.tabs a.active svg {
    transform: scale(1.12);
}
nav.tabs a.active img {
    transform: scale(1.15);
}

/* Page transition */
@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
main {
    animation: page-in var(--dur-med) var(--ease);
}
.auth-card {
    animation: page-in var(--dur-med) var(--ease);
}
header.top {
    view-transition-name: app-header;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: var(--dur-med);
}

/* Quiz + LILA motion */
@keyframes q-in {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
#quiz.q-enter {
    animation: q-in var(--dur-med) var(--ease);
}
.explain {
    transition:
        opacity var(--dur-fast) var(--ease),
        transform var(--dur-fast) var(--ease);
}
.explain.on {
    animation: q-in var(--dur-fast) var(--ease);
}
.score {
    animation: pop 0.4s var(--ease);
}
.result {
    transition:
        background var(--dur-med) var(--ease),
        border-color var(--dur-med) var(--ease);
}

/* Motion JS aktif: matikan animasi entry CSS biar tidak double-play (CSS tetap jadi fallback) */
.motion-on main,
.motion-on .auth-card,
.motion-on .flash-msg,
.motion-on .toast,
.motion-on #quiz.q-enter,
.motion-on .score,
.motion-on .explain.on {
    animation: none;
}
.app > header.top {
    transition: box-shadow var(--dur-fast) var(--ease);
}
.app > header.top.scrolled {
    box-shadow: 0 8px 22px rgba(36, 49, 59, 0.28);
}
details.acc[open] .acc-b {
    animation: q-in var(--dur-med) var(--ease);
}

/* Toast */
.toast-wrap {
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(420px, calc(100% - 32px));
    pointer-events: none;
}
.flash-msg {
    animation: page-in var(--dur-med) var(--ease);
}
.toast {
    background: var(--ink);
    color: var(--bg);
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    animation: toast-in var(--dur-med) var(--ease);
    pointer-events: auto;
}
.toast.ok {
    background: var(--kelor);
}
.toast.err {
    background: var(--bahaya);
}
.toast.out {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity var(--dur-fast) var(--ease),
        transform var(--dur-fast) var(--ease);
}
:root[data-theme="dark"] .toast {
    color: #fff;
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Admin hover */
.stat,
.atable td,
.list-item {
    transition: background var(--dur-fast) var(--ease);
}
.card-link:hover {
    box-shadow: 0 6px 18px rgba(184, 51, 106, 0.14);
}
.filter-bar input:focus,
.filter-bar select:focus {
    outline: 3px solid var(--kunyit);
    outline-offset: 1px;
    border-color: var(--sabbe);
}

/* Splash screen (sebelum login) */
.splash {
    max-width: 460px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line);
}
.splash-skip {
    font: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}
.splash-skip:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.splash-skip:focus-visible {
    outline: 3px solid var(--kunyit);
    outline-offset: 2px;
}
.splash-track {
    flex: 1;
    min-height: 0;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash-slide {
    min-width: 100%;
    flex: 0 0 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 64px 22px 8px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.splash-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}
.splash-slide.splash-fig {
    padding: 0;
    background: #ef4a76;
}
.splash-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.splash-logo img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: contain;
    background: #fdf0f3;
    display: block;
    box-shadow: 0 10px 26px rgba(36, 49, 59, 0.14);
}
.splash-slide h1 {
    font-size: 1.5rem;
    color: var(--sabbe);
}
.splash-slide h2 {
    font-size: 1.4rem;
    color: var(--sabbe);
}
.splash-slide p {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.98rem;
}
.splash-slide .muted {
    color: var(--muted);
    font-size: 0.84rem;
}
.splash-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sabbe);
    background: var(--sabbe-soft);
    padding: 5px 12px;
    border-radius: 999px;
}
.splash-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    text-align: left;
}
.splash-feats li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
}
.splash-feats svg {
    width: 22px;
    height: 22px;
    color: var(--sabbe);
    flex: none;
    margin-top: 2px;
}
.splash-feats b {
    display: block;
    color: var(--sabbe);
    font-size: 0.95rem;
}
.splash-feats small {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
}
.splash-foot {
    position: absolute;
    bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 5;
}
.splash-foot .splash-skip,
.splash-foot .btn-primary {
    box-shadow: 0 10px 26px rgba(90, 10, 48, 0.32);
    transition:
        transform 0.15s var(--ease),
        background 0.15s var(--ease),
        color 0.15s var(--ease);
}
.splash-foot .splash-skip:active,
.splash-foot .btn-primary:active {
    transform: scale(0.96);
}
.splash-skip {
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    min-height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.splash-skip:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}
.splash-skip:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.splash-foot .btn-primary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 12px 26px 12px 30px;
    border-radius: 999px;
    color: #a01a55;
    background: #fff;
    border: 0;
    font-size: 1rem;
}
.splash-foot .btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.15s var(--ease);
}
.splash-foot .btn-primary:hover {
    background: var(--sabbe-soft);
    transform: translateY(-1px);
}
.splash-foot .btn-primary:hover svg {
    transform: translateX(3px);
}
.splash-dots {
    display: flex;
    gap: 8px;
}
.splash-dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    transition:
        width 0.25s var(--ease),
        background 0.25s var(--ease);
}
.splash-dots i.on {
    width: 24px;
    background: var(--sabbe);
}
.splash-foot .btn-primary {
    width: auto;
    padding: 14px 34px;
}
@media (max-height: 720px) {
    .splash-slide {
        padding-top: 58px;
    }
    .splash-logo img {
        width: 88px;
        height: 88px;
    }
    .splash-slide h1 {
        font-size: 1.35rem;
    }
    .splash-slide h2 {
        font-size: 1.25rem;
    }
    .splash-inner {
        gap: 12px;
    }
    .splash-feats {
        gap: 8px;
    }
    .splash-feats li {
        padding: 10px 12px;
    }
    .splash-feats small {
        font-size: 0.77rem;
    }
}
@media (max-height: 600px) {
    .splash-slide {
        padding-top: 52px;
    }
    .splash-logo img {
        width: 70px;
        height: 70px;
    }
    .splash-slide h1,
    .splash-slide h2 {
        font-size: 1.15rem;
    }
    .splash-slide p {
        font-size: 0.9rem;
    }
    .splash-feats small {
        display: none;
    }
}
