.mock-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f3eee4;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #163522;
}
.board-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 10px 10px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.board-logout {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.board-logout a {
    color: #1b3a4a;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #1b3a4a;
    border-radius: 999px;
}
.board-logout button {
    background: #1b3a4a;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.dffs-board {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr 1fr 0.82fr;
    gap: 10px;
    padding: 12px;
    background: #1b3a4a;
    border-radius: 18px;
    min-height: 0;
}
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a2a22;
    font-weight: 700;
    border-radius: 16px;
    padding: 8px 6px;
    min-height: 0;
    overflow: hidden;
}
.tile img {
    width: min(42%, 120px);
    height: auto;
    max-height: 58%;
    object-fit: contain;
}
.tile span {
    margin-top: 6px;
    font-size: clamp(11px, 1.7vw, 16px);
    text-align: center;
    letter-spacing: .02em;
}
.tile-welcome {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    background: #e59fe8;
}
.tile-welcome img { width: min(78%, 220px); max-height: 68%; }
.tile-welcome span { font-size: clamp(13px, 2vw, 18px); letter-spacing: .06em; }
.tile-welcome small { font-weight: 600; opacity: .75; font-size: 12px; margin-top: 2px; }
.tile-pertanian { grid-column: 5 / 9; grid-row: 1; background: #8ed47c; }
.tile-lingkungan { grid-column: 9 / 13; grid-row: 1; background: #4ecdc4; }
.tile-perikanan { grid-column: 5 / 9; grid-row: 2; background: #c9b6f2; }
.tile-pustaka { grid-column: 9 / 13; grid-row: 2; background: #7ec8e3; }
.tile-kantor { grid-column: 1 / 4; grid-row: 3; background: #7dd3ea; }
.tile-sehat { grid-column: 4 / 7; grid-row: 3; background: #f4b183; }
.tile-kamera { grid-column: 7 / 10; grid-row: 3; background: #f6d56b; }
.tile-musik { grid-column: 10 / 13; grid-row: 3; background: #c4a574; }

/* 6" phone + portrait tablets / phones */
@media (orientation: portrait) {
    .dffs-board {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.35fr repeat(4, minmax(88px, 1fr));
        gap: 8px;
        padding: 8px;
    }
    .tile-welcome { grid-column: 1 / 3; grid-row: 1; }
    .tile-pertanian { grid-column: 1; grid-row: 2; }
    .tile-lingkungan { grid-column: 2; grid-row: 2; }
    .tile-perikanan { grid-column: 1; grid-row: 3; }
    .tile-pustaka { grid-column: 2; grid-row: 3; }
    .tile-kantor { grid-column: 1; grid-row: 4; }
    .tile-sehat { grid-column: 2; grid-row: 4; }
    .tile-kamera { grid-column: 1; grid-row: 5; }
    .tile-musik { grid-column: 2; grid-row: 5; }
    .tile img { width: min(46%, 96px); }
}

/* very small phones */
@media (max-width: 380px) and (orientation: portrait) {
    .tile span { font-size: 11px; }
    .board-wrap { padding: 6px; }
}
.mock-foot { text-align: center; color: #5c6b60; font-size: 13px; margin-top: 16px; }
.mock-page { max-width: 820px; margin: 0 auto; padding: 14px; }
.mock-back { display: inline-block; margin-bottom: 10px; color: #1b5e3b; font-weight: 700; text-decoration: none; }
.mock-article { background: #fffdf8; border-radius: 16px; padding: 14px; margin: 10px 0; }
@media (max-width: 720px) {
    .mock-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-tile { min-height: 140px; }
}
@media (orientation: landscape) and (min-width: 700px) {
    .mock-grid { grid-template-columns: repeat(4, 1fr); }
}
.live-cam { background: #111; border-radius: 16px; overflow: hidden; margin: 10px 0 16px; }
.live-cam video, .live-cam img { width: 100%; max-height: 52vh; object-fit: cover; display: block; background: #000; }
.live-cam .btn-ghost { margin: 8px; width: calc(100% - 16px); color: #fff; border-color: #fff; }
.ask { font-weight: 700; font-size: 18px; margin: 16px 0; }
.sat-form .btn-primary, .sat-form .btn-warn, .sat-form .btn-danger { margin-top: 10px; }
.btn-warn { background: #c47b12; color: #fff; width: 100%; border: 0; border-radius: 12px; padding: 12px; font: inherit; font-weight: 700; }
.btn-danger { background: #b42318; color: #fff; width: 100%; border: 0; border-radius: 12px; padding: 12px; font: inherit; font-weight: 700; }
.ask-banner {
    display: block; background: #fff1c2; color: #1a241c; text-align: center;
    padding: 12px; border-radius: 14px; font-weight: 700; margin: 12px 0; text-decoration: none;
}
.conflict-row { outline: 2px solid #b42318; border-radius: 12px; }
.conflict-flag {
    background: #b42318; color: #fff; font-weight: 900; min-width: 28px; height: 28px;
    border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto;
}
.conflict-banner { font-weight: 700; }
.mini { position: relative; }
.push-pop {
    position: fixed; left: 12px; right: 12px; top: 12px; z-index: 80;
    background: #1b5e3b; color: #fff; border-radius: 16px; padding: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.push-pop p { margin: 6px 0 0; font-size: 14px; }
.popup-card { background: #fff8e1; border: 1px solid #e3b23c; border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.popup-card img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin: 8px 0; }
.solve-box { margin-top: 12px; }
.solve-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 10px 0;
}
.solve-thumbs img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
    cursor: zoom-in;
    display: block;
}
.rotate-please {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: #1b3a4a; color: #fff; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 24px;
    font-weight: 800; font-size: 20px;
}
.rotate-please small { display: block; margin-top: 10px; font-weight: 600; opacity: .8; font-size: 14px; }
.apk-update-bar {
    display: block; background: #c47b12; color: #fff; text-align: center;
    padding: 12px 10px; font-weight: 800; text-decoration: none; z-index: 95;
}
@media (orientation: portrait) {
    body.farmer-force-land .board-wrap,
    body.farmer-force-land .mock-page { display: none !important; }
    body.farmer-force-land .rotate-please { display: flex; }
}

.video-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.video-card {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fffdf8; border-radius: 14px; padding: 8px;
    text-decoration: none; color: inherit; border: 1px solid #e6dfd0;
    width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.video-card.on { outline: 2px solid #1b5e3b; }
.video-card img, .video-card .poster {
    width: 132px; height: 76px; object-fit: cover; border-radius: 10px;
    background: #1b3a4a; flex-shrink: 0;
}
.video-meta { flex: 1; min-width: 0; }
.video-meta strong { display: block; margin-bottom: 2px; }
.video-meta small { color: #5c6b60; display: block; }
.video-meta video, .video-meta audio { width: 100%; margin-top: 8px; border-radius: 10px; background: #000; }
.player-box video {
    width: 100%; border-radius: 16px; background: #000; max-height: 56vh;
}
.player-box h1 { font-size: 20px; margin: 10px 0 16px; }
.stack-head { font-size: 16px; margin: 8px 0; }
.music-now {
    background: #1b3a4a; color: #fff; border-radius: 16px; padding: 14px;
    position: sticky; top: 8px; z-index: 5; margin-bottom: 14px;
}
.music-now small { display: block; opacity: .75; font-size: 12px; }
.music-now strong { display: block; margin: 4px 0 8px; }
.music-now audio { width: 100%; }
.kantor-card {
    background: #fffdf8; border-radius: 16px; padding: 14px; margin: 10px 0;
    border: 1px solid #e6dfd0;
}
.kantor-card.nearest { outline: 2px solid #1b5e3b; }
.kantor-card h2 { margin: 6px 0 10px; font-size: 20px; }
.kantor-card p { margin: 8px 0; }
.kantor-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 8px;
}
.kantor-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #fffdf8;
    border: 2px solid #e6dfd0;
    border-radius: 22px;
    padding: 12px 10px 14px;
    box-shadow: 0 10px 22px rgba(15, 41, 24, .12);
}
.kantor-hero:active { transform: scale(.98); }
.kantor-hero img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
}
.kantor-hero .hero-name {
    margin-top: 10px;
    font-family: "Comic Sans MS", "Segoe Print", "Trebuchet MS", cursive, sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 4.6vw, 26px);
    letter-spacing: .03em;
    color: #1b5e3b;
    text-shadow: 1px 1px 0 #fff, 2px 3px 0 rgba(227, 178, 60, .45);
}
.kantor-hero small {
    margin-top: 2px;
    font-weight: 700;
    color: #5c6b60;
}
.info-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.upload-box { background: #f7f3ea; border-radius: 12px; padding: 12px; margin: 10px 0 14px; }
.upload-box .btn-primary { margin-top: 12px; }
.music-row { cursor: default; align-items: center; }
.music-row.dragging { opacity: .62; outline: 2px dashed #1b5e3b; }
.drag-handle {
    flex-shrink: 0;
    width: 36px;
    min-height: 58px;
    border: 0;
    background: #efe8d8;
    border-radius: 10px;
    cursor: grab;
    touch-action: none;
    font-size: 16px;
    letter-spacing: -3px;
    color: #5c6b60;
    font-weight: 800;
    user-select: none;
}
.drag-handle:active { cursor: grabbing; }
.play-pos {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1b5e3b;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.sort-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.sort-btns .btn-ghost { padding: 6px 10px; min-width: 64px; }
.sort-btns .btn-ghost:disabled { opacity: .35; cursor: default; }
#musicSortStatus { margin: 8px 0 0; font-weight: 700; }
.info-tiles {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px;
}
.info-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f4efe4; border-radius: 14px; padding: 10px 6px; text-decoration: none;
    color: #163522; font-weight: 700; font-size: 13px; min-height: 96px;
}
.info-tile img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 6px; }
@media (min-width: 900px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .info-tiles { grid-template-columns: repeat(2, 1fr); }
    .video-card img { width: 108px; height: 64px; }
}

/* login on phone / APK */
@media (max-width: 860px) {
    .login-wrap {
        grid-template-columns: 1fr;
        min-height: 100vh;
        padding: 24px 16px 32px;
        align-content: center;
    }
    .login-hero { text-align: center; }
    .login-hero p { max-width: none; }
    .login-hero h1 { font-size: 36px; }
    .role-pills { justify-content: center; }
}
.video-q-note {
    margin: 8px 0 0;
    color: #9a6700;
    font-size: 13px;
    font-weight: 700;
}
