:root {
    --green-950: #0b2e1c;
    --green-800: #14512f;
    --green-700: #17663a;
    --green-100: #e7f1e9;
    --green-50: #f3f8f4;
    --ink: #17211a;
    --muted: #647069;
    --line: #dce4de;
    --paper: #ffffff;
    --canvas: #f6f8f6;
    --danger: #9d2929;
    --danger-soft: #fff0f0;
    --success: #1d6a3c;
    --success-soft: #ecf8ef;
    --map-water: #dceff5;
    --map-land: #b8d7a8;
    --map-land-hover: #4f8f60;
    --map-border: #ffffff;
    --shadow: 0 14px 40px rgba(16, 46, 28, .08);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.62 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: .72rem .82rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23, 102, 58, .15); border-color: var(--green-700); }
textarea { resize: vertical; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow, .nav-label, .meta-label { display: block; color: var(--green-700); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 10px; padding: .68rem 1rem; text-decoration: none; font-weight: 700; cursor: pointer; }
.button.primary { color: #fff; background: var(--green-700); }
.button.primary:hover { background: var(--green-800); }
.button.subtle { color: var(--green-800); background: var(--green-100); }
.button.full { width: 100%; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { line-height: 1.2; }
.brand small { color: var(--muted); font-size: .72rem; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: #fff; background: var(--green-700); font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.brand.compact .brand-mark { width: 34px; height: 34px; }
.main-menu { display: flex; align-items: center; gap: 1.6rem; }
.main-menu a { text-decoration: none; font-size: .92rem; font-weight: 600; }
.main-menu a:hover { color: var(--green-700); }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: .5rem .7rem; }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0; background: radial-gradient(circle at 85% 15%, #dcece0 0, rgba(220,236,224,0) 32%), linear-gradient(135deg, #fbfcfb 0%, #eff6f0 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy h1 { max-width: 760px; margin: .75rem 0 1.2rem; }
.hero-copy > p { max-width: 700px; color: var(--muted); font-size: 1.12rem; }
.hero-search { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin-top: 2rem; max-width: 690px; }
.hero-actions { margin-top: .8rem; }
.founder-card { background: var(--green-950); color: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.founder-card .eyebrow { color: #9bd4ae; }
.founder-profile { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.founder-photo { display: block; width: 92px; height: 92px; flex: 0 0 92px; border: 3px solid rgba(185, 223, 196, .88); border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.founder-card h2 { margin: .3rem 0 0; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .025em; }
.founder-identity p { margin: .18rem 0 0; color: #c8dfcf; font-size: .78rem; line-height: 1.35; }
.founder-card blockquote { margin: 0; color: #e7f3ea; font-size: .96rem; }
.bali-map-section { scroll-margin-top: 84px; padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.map-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.map-section-heading h2 { max-width: 680px; margin: .45rem 0 0; }
.map-section-heading > p { margin: 0; color: var(--muted); }
.bali-map-card { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 520px; overflow: hidden; border: 1px solid #c9dfe5; border-radius: 22px; background: var(--map-water); box-shadow: var(--shadow); }
.bali-map-canvas { display: grid; place-items: center; min-width: 0; padding: clamp(1rem, 3vw, 2.2rem); background: radial-gradient(circle at 44% 40%, #f4fbfd 0, var(--map-water) 72%, #cfe7ee 100%); }
.bali-map { display: block; width: 100%; height: auto; max-height: 520px; overflow: visible; }
.map-region-link { outline: none; }
.map-region-shape { fill: var(--map-land) !important; stroke: var(--map-border) !important; stroke-width: 2.4; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .18s ease, filter .18s ease; }
.map-region-link:hover .map-region-shape, .map-region-link:focus .map-region-shape, .map-region-link.is-active .map-region-shape { fill: var(--map-land-hover) !important; filter: drop-shadow(0 5px 7px rgba(11, 46, 28, .22)); }
.map-region-link:focus .map-region-shape { stroke: #f2c94c; stroke-width: 4; }
.map-labels { pointer-events: none; }
.map-labels text { fill: var(--green-950); stroke: rgba(255,255,255,.92); stroke-width: 4px; paint-order: stroke; text-anchor: middle; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.map-region-link:hover ~ .map-labels text { fill: var(--green-950); }
.map-callout { fill: none; stroke: var(--green-800); stroke-width: 1.6; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.map-labels .map-label-callout { font-size: 14px; }
.map-region-summary { display: flex; flex-direction: column; padding: 2rem 1.6rem; color: #fff; background: var(--green-950); }
.map-region-summary .eyebrow { color: #9bd4ae; }
.map-region-summary h3 { margin: .55rem 0 .35rem; font-size: 1.65rem; }
.map-region-summary > p { min-height: 3.2em; color: #c8dfcf; font-size: .9rem; }
.map-region-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1rem 0 1.5rem; }
.map-region-summary dl div { padding: .8rem; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.05); }
.map-region-summary dt { color: #b9d3c1; font-size: .72rem; }
.map-region-summary dd { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 800; }
.map-region-summary .button { margin-top: auto; color: var(--green-950); background: #b9dfc5; }
.map-region-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .9rem; }
.map-region-links a { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 50px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none; }
.map-region-links a:hover, .map-region-links a:focus { color: var(--green-800); border-color: #8db99a; background: var(--green-50); outline: none; }
.map-region-links span { font-weight: 750; }
.map-region-links small { color: var(--muted); white-space: nowrap; }
.map-source { max-width: 960px; margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }
.featured-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--canvas); border-bottom: 1px solid var(--line); }
.featured-heading { margin-bottom: 1.5rem; }
.featured-heading h2 { margin: .4rem 0 0; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.featured-card { display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); min-height: 170px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 24px rgba(16, 46, 28, .05); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.featured-card:hover, .featured-card:focus { transform: translateY(-2px); border-color: #8db99a; box-shadow: 0 12px 30px rgba(16, 46, 28, .1); outline: none; }
.featured-card:focus-visible { outline: 3px solid rgba(23, 102, 58, .22); outline-offset: 2px; }
.featured-card > img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; background: var(--green-100); }
.featured-card-copy { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; }
.featured-card-copy small { color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.featured-card-copy strong { margin-top: .4rem; font-size: 1.08rem; line-height: 1.3; }
.featured-card-copy > span { display: -webkit-box; overflow: hidden; margin-top: .45rem; color: var(--muted); font-size: .88rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-card-copy em { margin-top: auto; padding-top: .75rem; color: var(--green-700); font-size: .8rem; font-style: normal; font-weight: 750; }
.data-note { padding: 2rem 0; color: #fff; background: var(--green-800); }
.data-note .container { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.data-note p { margin: 0; color: #e7f2e9; }
.site-footer { padding: 2.5rem 0; background: var(--green-950); color: #e9f3ec; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 2rem; }
.footer-grid p { color: #b7c9bd; font-size: .88rem; }
.footer-tools { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-tools > span { color: #b7c9bd; font-size: .8rem; font-weight: 700; }
.share-links { position: relative; display: inline-flex; align-items: center; gap: .45rem; }
.share-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; text-decoration: none; cursor: pointer; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.share-icon:hover, .share-icon:focus-visible { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 15px rgba(11, 46, 28, .18); outline: none; }
.share-icon:focus-visible { outline: 3px solid rgba(23, 102, 58, .2); outline-offset: 2px; }
.share-icon svg { width: 19px; height: 19px; }
.share-whatsapp { background: #168a4a; }
.share-whatsapp svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.share-whatsapp svg path:last-child { fill: currentColor; stroke: none; }
.share-facebook { background: #2467b2; }
.share-facebook svg { fill: currentColor; }
.share-copy { color: var(--green-800); background: var(--green-100); }
.share-copy svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.share-copy.is-copied { color: #fff; background: var(--green-700); }
.share-feedback { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 2; min-width: 110px; color: var(--green-700); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.footer-tools .share-feedback { color: #b9dfc5; }
.admin-access { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: .45rem; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #a9c0b0; text-decoration: none; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.admin-access:hover, .admin-access:focus-visible { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); outline: none; }
.admin-access svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.flash { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; }
.flash.success { color: var(--success); background: var(--success-soft); border: 1px solid #b9ddc4; }
.flash.error { color: var(--danger); background: var(--danger-soft); border: 1px solid #efc8c8; }
.directory-top { padding: 2rem 0 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.directory-top h1 { margin-bottom: .3rem; font-size: 2rem; }
.directory-top p { margin: 0; color: var(--muted); }
.directory-shell { display: grid; grid-template-columns: 220px minmax(430px, 1fr) 320px; min-height: 680px; background: var(--paper); }
.directory-nav, .directory-preview { padding: 1.3rem; background: #fbfcfb; }
.directory-nav { border-right: 1px solid var(--line); }
.directory-nav .nav-label { margin: 1rem .7rem .4rem; color: var(--muted); }
.directory-nav a { display: block; padding: .65rem .75rem; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.directory-nav a.active { color: var(--green-800); background: var(--green-100); font-weight: 700; }
.directory-nav .nav-back { color: var(--green-700); font-weight: 700; }
.directory-results { padding: 1.3rem 1.5rem; min-width: 0; }
.directory-preview { border-left: 1px solid var(--line); }
.directory-preview h2 { margin: .7rem 0 .25rem; font-size: 1.55rem; }
.directory-preview hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.directory-preview p { color: var(--muted); }
.directory-preview .meta-label { margin-top: 1rem; }
.filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .55fr) auto; gap: .8rem; align-items: end; }
.active-region-panel { overflow: hidden; margin-bottom: 1rem; border: 1px solid #c9ddcf; border-radius: 14px; background: var(--green-50); }
.active-region-title { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border-bottom: 1px solid #d5e5da; }
.active-region-title span { color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.active-region-title strong { color: var(--green-950); }
.active-region-title a { margin-left: auto; color: var(--green-700); font-size: .82rem; font-weight: 700; }
.active-region-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.active-region-stats div { display: flex; flex-direction: column; padding: .75rem 1rem; border-right: 1px solid #d5e5da; }
.active-region-stats div:last-child { border-right: 0; }
.active-region-stats strong { color: var(--green-800); font-size: 1.25rem; }
.active-region-stats span { color: var(--muted); font-size: .74rem; }
.filter-form label, .stack-form label { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); font-size: .84rem; font-weight: 650; }
.result-summary, .panel-heading, .admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result-summary { padding: 1.2rem 0 .7rem; color: var(--muted); font-size: .85rem; }
.village-list { border-top: 1px solid var(--line); }
.village-row { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: .8rem; align-items: center; padding: 1rem .4rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.village-row:hover, .village-row.is-selected { background: var(--green-50); }
.village-row span:nth-child(2) { display: flex; flex-direction: column; }
.village-row small { color: var(--muted); }
.village-row em { color: var(--muted); font-size: .78rem; font-style: normal; }
.row-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green-700); background: var(--green-100); border-radius: 50%; }
.status-chip { display: inline-block; padding: .28rem .55rem; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: .72rem; font-weight: 750; }
.preview-place { font-size: .9rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.2rem 0; }
.pagination a { color: var(--green-700); font-weight: 700; }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state.compact { padding: 2rem; }
.profile-page { padding: 2rem 0 5rem; }
.breadcrumb { display: flex; gap: .55rem; color: var(--muted); font-size: .84rem; }
.profile-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.profile-header h1 { margin: .65rem 0 .3rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.profile-header p { color: var(--muted); }
.profile-header-side { display: grid; gap: .75rem; min-width: 210px; }
.verification { min-width: 190px; display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.verification span, .verification small { color: var(--muted); font-size: .78rem; }
.profile-share { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.profile-share > span { color: var(--muted); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.profile-share .share-icon { width: 32px; height: 32px; flex-basis: 32px; }
.profile-share .share-icon svg { width: 16px; height: 16px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-top: 2.5rem; }
.profile-content section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.profile-content h2 { margin: .5rem 0 1rem; }
.profile-content p { color: #435048; }
.potential-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.potential-list > div, .info-box, .correction-box { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.potential-list span { display: block; color: var(--green-700); font-size: .75rem; }
.profile-side { display: flex; flex-direction: column; gap: 1rem; }
.info-box { display: grid; gap: .35rem; }
.info-box span { margin-top: .7rem; color: var(--muted); font-size: .78rem; }
.correction-box summary { cursor: pointer; font-weight: 750; }
.correction-box form { display: grid; gap: .8rem; margin-top: 1rem; }
.hp-field { position: absolute; left: -10000px; }
.simple-page { min-height: 65vh; display: grid; place-items: center; }
.install-page, .auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(145deg, var(--green-50), var(--canvas)); }
.install-card, .auth-card { width: min(720px, 100%); padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card { width: min(440px, 100%); }
.install-card h1, .auth-card h1 { margin: 2rem 0 .5rem; font-size: 2rem; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1.2rem 0; }
.checks span { padding: .55rem .65rem; border-radius: 8px; font-size: .8rem; }
.checks .ok { color: var(--success); background: var(--success-soft); }
.checks .bad { color: var(--danger); background: var(--danger-soft); }
.stack-form { display: grid; gap: 1rem; }
.stack-form hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.admin-body { background: #f3f6f3; }
.admin-topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.3rem; color: #fff; background: var(--green-950); }
.admin-topbar a { color: inherit; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { padding: 1.2rem; background: var(--paper); border-right: 1px solid var(--line); }
.admin-sidebar a { display: block; padding: .7rem .8rem; border-radius: 8px; text-decoration: none; }
.admin-sidebar a:hover { background: var(--green-50); color: var(--green-800); }
.admin-main { min-width: 0; padding: clamp(1.2rem, 3vw, 2.4rem); }
.admin-heading { margin-bottom: 1.4rem; }
.admin-heading h1 { margin: .35rem 0; font-size: 2rem; }
.admin-heading p { margin: 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.admin-stats > div { display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.admin-stats span { color: var(--muted); font-size: .8rem; }
.admin-stats strong { margin-top: .4rem; color: var(--green-800); font-size: 1.8rem; }
.admin-panel { padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.admin-panel + .admin-panel { margin-top: 1rem; }
.panel-heading { margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; font-size: 1.2rem; }
.panel-heading span { color: var(--muted); font-size: .82rem; }
.admin-filter { grid-template-columns: 1fr 180px 210px auto; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .72rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .86rem; }
th { color: var(--muted); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.warning-box { margin: 1rem 0; padding: .8rem; border-radius: 10px; color: #74510c; background: #fff8e6; }
.warning-box summary { cursor: pointer; font-weight: 750; }
.warning-box li { margin-bottom: .35rem; }
.table-note { color: var(--muted); font-size: .82rem; }
.featured-form { max-width: 820px; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: .65rem !important; width: fit-content; color: var(--ink) !important; cursor: pointer; }
.check-row input, .table-check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--green-700); }
.featured-admin-preview { display: block; width: 240px; height: 150px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; }
.featured-admin-item { display: grid; grid-template-columns: 96px minmax(190px, 1fr); gap: .8rem; min-width: 330px; align-items: start; }
.featured-admin-item img { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--green-100); }
.featured-admin-item div { display: flex; flex-direction: column; }
.featured-admin-item strong { line-height: 1.35; }
.featured-admin-item small { display: -webkit-box; overflow: hidden; max-width: 440px; color: var(--muted); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-admin-label { color: var(--green-700); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.featured-url { display: block; max-width: 220px; overflow: hidden; color: var(--green-700); text-overflow: ellipsis; white-space: nowrap; }
.table-check { display: flex; justify-content: center; }
.table-check label { display: inline-flex; cursor: pointer; }
.table-actions { display: flex; align-items: center; gap: .8rem; }
.table-actions form { margin: 0; }
.link-danger { border: 0; padding: 0; color: var(--danger); background: transparent; text-decoration: underline; cursor: pointer; }

@media (max-width: 1050px) {
    .bali-map-card { grid-template-columns: minmax(0, 1fr) 260px; }
    .directory-shell { grid-template-columns: 190px minmax(0, 1fr); }
    .directory-preview { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .main-menu { display: none; position: absolute; top: 72px; left: 18px; right: 18px; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
    .main-menu.open { display: flex; }
    .main-menu a { padding: .7rem; }
    .hero-grid, .profile-grid { grid-template-columns: 1fr; }
    .map-section-heading, .bali-map-card { grid-template-columns: 1fr; }
    .map-section-heading { gap: .7rem; }
    .bali-map-card { min-height: 0; }
    .bali-map-canvas { padding: .75rem; }
    .bali-map { max-height: none; }
    .map-labels text { font-size: 17px; }
    .map-region-summary { min-height: 340px; }
    .map-region-links { grid-template-columns: repeat(2, 1fr); }
    .hero-search { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .data-note .container, .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
    .directory-shell { display: block; }
    .directory-nav { display: flex; gap: .35rem; padding: .7rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .directory-nav .nav-label { display: none; }
    .directory-nav a { white-space: nowrap; }
    .directory-results, .directory-preview { padding: 1rem; }
    .filter-form, .admin-filter { grid-template-columns: 1fr; }
    .active-region-stats { grid-template-columns: repeat(2, 1fr); }
    .active-region-stats div:nth-child(2) { border-right: 0; }
    .active-region-stats div:nth-child(-n+2) { border-bottom: 1px solid #d5e5da; }
    .profile-header { align-items: flex-start; flex-direction: column; }
    .profile-header-side { width: 100%; }
    .verification { width: 100%; }
    .potential-list { grid-template-columns: 1fr; }
    .admin-shell { display: block; }
    .admin-sidebar { display: flex; gap: .3rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-sidebar a { white-space: nowrap; }
    .admin-topbar { font-size: .8rem; }
    .admin-topbar .brand small { display: none; }
    .form-grid, .checks { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .container { width: min(100% - 24px, 1180px); }
    .brand small { display: none; }
    .village-row { grid-template-columns: 34px 1fr; }
    .village-row em { display: none; }
    .map-region-links { grid-template-columns: 1fr; }
    .map-region-summary { min-height: 0; }
    .active-region-title { align-items: flex-start; flex-direction: column; }
    .active-region-title a { margin-left: 0; }
    .admin-stats { grid-template-columns: 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card > img { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
