/* Curiosity Admin — on top of the shared Curiosity styles (styles.css) */
.app.admin { max-width: none; }
.sec-title { font-size: 1.02rem; margin: 22px 0 8px; }
.intro { max-width: 760px; margin: -6px 2px 14px; line-height: 1.5; }
.grow { flex: 1; min-width: 0; }
.grow small, .person small, .log-row small { display: block; }
.sm { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pill-ok { background: #e8f5e3; color: #3d6b1f; }
.pill-pin { background: #fff3d6; color: #8a5a00; }
.row.tight { gap: 8px; align-items: center; }
.row.tight > .lbl { flex: 1; min-width: 200px; }
.row.center { justify-content: center; }
.row.center > * { flex: none; }

/* ── layout: sidebar on wide screens, scrolling chips on phones ── */
.shell { display: grid; grid-template-columns: 230px 1fr; gap: 0; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; }
.side { position: sticky; top: 0; align-self: start; display: grid; gap: 4px; padding: 18px 10px; }
.side-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-radius: 12px; padding: 10px 12px; font: inherit;
  font-family: "Poppins", "Inter", sans-serif; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; text-align: left; position: relative; }
.side-btn svg { width: 20px; height: 20px; flex: none; }
.side-btn:hover { background: #fff; color: var(--blue); }
.side-btn[aria-current="page"] { background: var(--sky-lt); color: var(--blue); }
.side-btn .badge { position: static; margin-left: auto; }
.shell main { padding: 18px 20px 60px; min-width: 0; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 15; display: flex; overflow-x: auto; padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .side-btn { flex: none; padding: 8px 12px; font-size: .85rem; }
  .shell main { padding: 14px 12px 50px; }
  .hide-sm { display: none; }
}

/* ── dashboard ── */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; text-align: left; border: 0; font: inherit; cursor: pointer; }
.stat:disabled { cursor: default; }
.stat b { font-family: "Poppins", sans-serif; font-size: 1.6rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat:not(:disabled):hover { outline: 2px solid var(--sky-lt); }
.attn { display: grid; gap: 0; padding: 6px 16px; border-left: 4px solid #e8a33d; }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attn-row:last-child { border-bottom: 0; }
.attn-n { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; min-width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff3d6; color: #8a5a00; }
.empty.sm { padding: 18px; text-align: center; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.site-card { display: flex; flex-direction: column; gap: 6px; }
.site-card p { margin: 0; color: var(--text); }
.site-card.planned, .site-card.off { background: #fbfcfd; }
.site-top { display: flex; align-items: center; gap: 10px; }
.site-ico { font-size: 1.5rem; width: 42px; height: 42px; border-radius: 12px; background: var(--sky-lt); display: grid; place-items: center; flex: none; }
.site-foot { margin-top: auto; padding-top: 6px; align-items: center; justify-content: space-between; }
.site-foot > * { flex: none; }
.site-foot { flex-wrap: nowrap; }
.site-foot .link { font-size: .85rem; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-live { background: #e8f5e3; color: #3d6b1f; }
.st-building { background: #fff3d6; color: #8a5a00; }
.st-planned { background: #eef1f3; color: var(--muted); }
.st-off { background: #fdecea; color: var(--danger); }
.notice-mini { background: var(--sky-lt); color: var(--blue); border-radius: 10px; padding: 6px 10px; font-size: .84rem; font-weight: 600; }
.notice-mini.warn { background: #fff1e0; color: #9a4b00; }

/* ── people & campers ── */
.search { margin-bottom: 10px; max-width: 520px; }
.person, .camper { display: grid; gap: 8px; }
.person.pending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-left: 4px solid #e8a33d; }
.person-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.person-top select, .role-pick select { width: auto; min-width: 170px; }
.person-meta, .access { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.person-foot { justify-content: flex-start; }
.person-foot > * { flex: none; }
.acc-chip { border: 1.5px solid #f3c3bd; background: #fff; color: var(--danger); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.acc-chip.on { border-color: #cfe6c4; background: #f1f9ec; color: #3d6b1f; }
.camper.unlinked { border-left: 4px solid #e8a33d; }
.pill .x { border: 0; background: none; color: inherit; font-weight: 800; margin-left: 4px; cursor: pointer; padding: 0 2px; font-size: .95rem; line-height: 1; }
.add-parent { width: auto; max-width: 100%; padding: 5px 10px; font-size: .85rem; border-radius: 999px; }
.groups { margin-bottom: 14px; display: grid; gap: 10px; }
.group-list { display: flex; flex-wrap: wrap; gap: 8px; }
.group-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; }
.groups form input { max-width: 260px; }

/* ── sites form ── */
.site-form { border-top-color: var(--teal); }
.notice-set { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.notice-set legend { font-weight: 700; font-size: .85rem; color: var(--muted); padding: 0 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* ── content + log ── */
.link-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row small { word-break: break-all; }
.card > h3 + .link-row { margin-top: 6px; }
main > .card + .card { margin-top: 10px; }
a.btn, a.chip, .site-foot .link { text-decoration: none; }
a.chip { color: var(--blue); }
.post-row { display: flex; gap: 12px; align-items: center; }
.post-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.log { padding: 4px 16px; }
.log-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row small { text-align: right; flex: none; }
@media (max-width: 560px) { .log-row { flex-wrap: wrap; } .log-row small { text-align: left; width: 100%; } }
.locked { max-width: 520px; margin: 40px auto; text-align: center; }

/* Curiosity apps menu (same as hub/hub.css) */
.apps-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.apps-btn:hover, .apps-btn[aria-expanded="true"] { background: var(--sky-lt); border-color: var(--teal); }
.apps-panel { position: fixed; z-index: 70; width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 90px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,45,60,.22); padding: 12px; border: 1px solid var(--line); }
.apps-h { font-family: "Poppins", sans-serif; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--blue); margin: 4px 6px 8px; }
.apps-grid { display: grid; gap: 4px; margin-bottom: 8px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.app-tile:hover, .app-tile:focus-visible { background: var(--sky-lt); outline: none; }
.app-tile.here { background: #f0f5dc; }
.app-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.app-txt { display: grid; min-width: 0; flex: 1; }
.app-txt b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); font-size: .92rem; }
.app-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tile.here small { color: #586a14; font-weight: 600; }
.app-ext { color: var(--muted); }

.demo-link { text-align: center; margin-top: 22px; font-size: .8rem; }
.demo-link a { color: var(--muted); }
