:root {
  --ground: #EEF1E6;
  --surface: #FBFCF8;
  --surface-2: #F4F6EE;
  --text: #1E261C;
  --muted: #5E6B58;
  --faint: #8A9483;
  --line: #DEE3D4;
  --green: #2F6B43;
  --green-deep: #234E32;
  --green-soft: #DCE9DD;
  --green-tint: #E9F0E6;
  --accent: #E5552E;
  --accent-soft: #FAE2D9;
  --shadow: 0 1px 2px rgba(30, 38, 28, .05), 0 8px 24px rgba(30, 38, 28, .06);
  --shadow-lg: 0 12px 40px rgba(30, 38, 28, .16);
  --r: 14px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 18% -5%, #E5EBD9 0%, transparent 42%),
    radial-gradient(circle at 95% 8%, #EAE6DA 0%, transparent 38%),
    var(--ground);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.app {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 600px) {
  .app {
    margin: 28px auto;
    min-height: calc(100vh - 56px);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
}

.screen { display: flex; flex-direction: column; flex: 1; min-height: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 6px; }
input:focus-visible { outline-offset: 0; }

/* ---- brand mark ---- */
.mark { width: 1em; height: 1em; display: inline-grid; place-items: center; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.wordmark { font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .38em; color: var(--green-deep); }

/* ---- loading ---- */
.loading { flex: 1; display: grid; place-items: center; gap: 16px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--green-tint); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= LOGIN ================= */
#screen-login {
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 32px 56px;
  background: radial-gradient(circle at 50% 30%, #F2F5EB 0%, transparent 60%), var(--surface);
}
.login-mark { font-size: 56px; margin-bottom: 22px; }
.login-title { font-size: 40px; font-weight: 800; letter-spacing: -.035em; color: var(--green-deep); margin: 0; }
.login-tag { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 19ch; line-height: 1.4; }
.gbtn {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #1f1f1f; font-size: 16px; font-weight: 600;
  padding: 14px 22px 14px 16px; border-radius: 12px;
  border: 1px solid #DADCE0; box-shadow: 0 1px 2px rgba(60, 64, 67, .12);
  transition: box-shadow .15s ease, transform .12s ease;
}
.gbtn:hover { box-shadow: 0 1px 3px rgba(60, 64, 67, .22), 0 4px 10px rgba(60, 64, 67, .12); }
.gbtn:active { transform: translateY(1px); }
.gbtn:disabled { opacity: .6; cursor: not-allowed; }
.gbtn svg { width: 20px; height: 20px; }
.login-fine { margin-top: 18px; color: var(--faint); font-size: 13px; font-family: var(--font-mono); letter-spacing: -.01em; }
.login-fine b { color: var(--green); font-weight: 600; }
.login-msg { margin-top: 22px; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; background: var(--accent-soft); color: #B23E1C; max-width: 30ch; }
.login-msg.warn { background: #FBF1D8; color: #8A6A12; }

/* ================= TOP BAR ================= */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; min-height: 62px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .wordmark { font-size: 20px; }
.topbar .mark { font-size: 22px; }
.spacer { flex: 1; }
.env-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: #FBF1D8; color: #8A6A12; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #fff; font-family: var(--font-mono); letter-spacing: -.02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-green { background: var(--green); }
.av-tomato { background: var(--accent); }
.av-plum { background: #7A4A6B; }
.av-blue { background: #3D6B8A; }
.av-gold { background: #B07A1E; }
.av-teal { background: #2E7D74; }
.av-pending { background: #AFB6A6; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 2px var(--surface); }

.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--green-deep); transition: background .14s ease; }
.icon-btn:hover { background: var(--green-tint); }
.icon-btn svg { width: 21px; height: 21px; }

/* ================= HOME ================= */
.scroll { flex: 1; overflow-y: auto; padding: 22px 18px 96px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.home-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.home-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 4px; letter-spacing: -.01em; }

.cards { display: grid; gap: 14px; }
.card {
  text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 38, 28, .06), 0 14px 30px rgba(30, 38, 28, .10); border-color: #CDD6C0; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.card-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 3px; letter-spacing: -.01em; }

.pill { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; letter-spacing: .01em; }
.pill svg { width: 13px; height: 13px; }
.pill.private { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.shared { background: var(--accent-soft); color: #B23E1C; }

.progress { display: flex; align-items: center; gap: 11px; }
.bar { flex: 1; height: 7px; border-radius: 999px; background: var(--green-tint); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .4s cubic-bezier(.2, .7, .3, 1); }
.progress .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: -.02em; }
.progress .num b { color: var(--green-deep); font-weight: 700; }
.progress.alldone .num b { color: var(--green); }

.card-foot { display: flex; align-items: center; gap: 9px; min-height: 26px; }
.stack { display: flex; }
.stack .avatar { margin-left: -7px; }
.stack .avatar:first-child { margin-left: 0; }
.card-people { font-size: 13px; color: var(--muted); }
.done-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 13px; font-weight: 600; }
.done-chip svg { width: 15px; height: 15px; }

.fab {
  position: absolute; right: 20px; bottom: 22px; z-index: 25;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(35, 78, 50, .34); letter-spacing: -.01em;
  transition: transform .12s ease, box-shadow .14s ease, background .14s ease;
}
.fab:hover { background: var(--green-deep); box-shadow: 0 8px 22px rgba(35, 78, 50, .42); }
.fab:active { transform: translateY(1px) scale(.99); }
.fab:disabled { opacity: .7; }
.fab svg { width: 19px; height: 19px; }
@media (max-width: 599px) { .fab { position: fixed; right: max(20px, calc(50% - 270px + 20px)); } }

/* ================= LIST DETAIL ================= */
.list-head { padding: 14px 18px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); }
.list-head-row { display: flex; align-items: center; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 10px 7px 6px; border-radius: 10px; margin-left: -6px; transition: background .14s ease, color .14s ease; }
.back:hover { background: var(--green-tint); color: var(--green-deep); }
.back svg { width: 18px; height: 18px; }
.list-title-wrap { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.list-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--text); border: none; background: transparent; padding: 2px 4px; margin: -2px -4px; border-radius: 8px; flex: 1; min-width: 0; width: 100%; }
.list-title:hover { background: var(--surface-2); }
.list-title:focus-visible { background: var(--surface-2); outline: 2px solid var(--green); }
.list-title:disabled { color: var(--text); }
.list-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; min-height: 26px; }
.list-meta .lbl { font-size: 13px; color: var(--muted); }

.add-wrap { padding: 18px 18px 8px; }
.add-row { display: flex; gap: 9px; }
.add-input { flex: 1; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: border-color .14s ease, box-shadow .14s ease; }
.add-input::placeholder { color: var(--faint); }
.add-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); outline: none; }
.add-btn { flex: none; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 0 20px; border-radius: 12px; transition: background .14s ease, transform .1s ease; }
.add-btn:hover { background: var(--green-deep); }
.add-btn:active { transform: scale(.97); }

.items { list-style: none; margin: 6px 0 0; padding: 4px 10px 0; }
.item { display: flex; align-items: center; gap: 13px; padding: 11px 8px; border-radius: 12px; transition: background .14s ease; }
.item:hover { background: var(--surface-2); }
.item:hover .del { opacity: 1; }

.check { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.check svg { width: 26px; height: 26px; overflow: visible; }
.check .ring { fill: none; stroke: var(--green); stroke-width: 2; opacity: .55; transition: opacity .15s, fill .2s; }
.check .disc { fill: var(--green); transform: scale(0); transform-origin: center; transition: transform .22s cubic-bezier(.2, .9, .3, 1.3); }
.check .tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .22s ease .08s; }
.item.done .check .ring { opacity: 0; }
.item.done .check .disc { transform: scale(1); }
.item.done .check .tick { stroke-dashoffset: 0; }
.check:hover .ring { opacity: 1; }

.item-body { flex: 1; min-width: 0; }
.item-text { font-size: 16px; letter-spacing: -.01em; transition: color .2s; word-break: break-word; }
.item-by { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 2px; letter-spacing: -.01em; }
.item.done .item-text { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--green); }

.del { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); opacity: 0; transition: opacity .14s ease, background .14s, color .14s; }
.del:hover { background: var(--accent-soft); color: var(--accent); }
.del svg { width: 16px; height: 16px; }

.divider { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px; }
.divider .ln { flex: 1; height: 1px; background: var(--line); }
.divider .dl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--green); text-transform: uppercase; font-weight: 600; }

.empty { text-align: center; padding: 50px 30px; color: var(--muted); }
.empty .em-mark { font-size: 40px; opacity: .8; }
.empty p { margin: 14px 0 0; font-size: 15px; }
.empty p.sub { color: var(--faint); font-size: 13.5px; margin-top: 4px; }

/* ================= POPOVER / MODAL ================= */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(30, 38, 28, .34); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); animation: fade .18s ease; }
@media (min-width: 600px) { .overlay { align-items: center; } }
@keyframes fade { from { opacity: 0; } }

.sheet { width: 100%; max-width: 460px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px 20px 26px; box-shadow: var(--shadow-lg); animation: rise .26s cubic-bezier(.2, .8, .3, 1); }
@media (min-width: 600px) { .sheet { border-radius: 22px; margin: 0 16px; } }
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.sheet-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.x { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex: none; }
.x:hover { background: var(--surface-2); }
.x svg { width: 18px; height: 18px; }

.invite-row { display: flex; gap: 9px; margin: 18px 0 8px; }
.invite-row input { flex: 1; font-size: 15px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.invite-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.invite-btn { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 0 18px; border-radius: 11px; }
.invite-btn:hover { background: #C9461F; }
.invite-btn:disabled { opacity: .6; }

.people-lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 16px 0 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.person .nm { flex: 1; min-width: 0; }
.person .nm b { font-weight: 600; font-size: 15px; display: block; letter-spacing: -.01em; }
.person .nm span { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); word-break: break-all; }
.role { font-size: 12px; color: var(--muted); font-weight: 600; }
.role.owner { color: var(--green); }
.role.pending { color: var(--accent); }
.person .del { opacity: 1; }

.sheet-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; background: var(--green-tint); border-radius: 11px; color: var(--green-deep); font-size: 13px; }
.sheet-note svg { width: 16px; height: 16px; flex: none; }
.sheet-danger { margin-top: 14px; width: 100%; padding: 12px; border-radius: 11px; background: transparent; color: var(--accent); font-weight: 600; font-size: 14px; border: 1.5px solid var(--accent-soft); transition: background .14s; }
.sheet-danger:hover { background: var(--accent-soft); }

/* share: pick from onboarded people */
.add-list { display: flex; flex-direction: column; gap: 2px; max-height: 244px; overflow-y: auto; margin: 2px -4px; padding: 0 4px; }
.cand { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; border-radius: 11px; transition: background .12s ease; }
.cand:hover { background: var(--green-tint); }
.cand .nm { flex: 1; min-width: 0; }
.cand .nm b { font-weight: 600; font-size: 15px; display: block; letter-spacing: -.01em; }
.cand .nm span { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); word-break: break-all; }
.cand-add { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--green); }
.cand-add svg { width: 16px; height: 16px; }
.cand.new:hover { background: var(--accent-soft); }
.cand.new .cand-add { color: var(--accent); }
.cand.new .avatar { font-size: 15px; }
.add-empty { font-size: 13px; color: var(--faint); padding: 10px 6px; line-height: 1.45; }

/* admin: manage access */
.sheet.admin { max-height: 86vh; overflow-y: auto; }
.people-lbl.req { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.people-lbl.req svg { width: 14px; height: 14px; }
.mini { flex: none; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 9px; transition: background .12s ease, color .12s ease; }
.mini.ok { background: var(--green); color: #fff; }
.mini.ok:hover { background: var(--green-deep); }
.mini.no { color: var(--muted); }
.mini.no:hover { background: var(--surface-2); color: var(--text); }
.mini:disabled { opacity: .55; }
.role.admin { display: inline-flex; align-items: center; gap: 4px; color: var(--green); }
.role.admin svg { width: 14px; height: 14px; }

/* menus */
.menu { position: absolute; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 220px; animation: pop .14s ease; }
.menu.account { top: 60px; right: 14px; }
.menu.list { top: 56px; right: 16px; min-width: 180px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-id { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-id .nm { min-width: 0; }
.menu-id .nm b { font-size: 14px; display: block; }
.menu-id .nm span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); word-break: break-all; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text); }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger { color: var(--accent); }
.menu-item.danger:hover { background: var(--accent-soft); }
.menu-item svg { width: 17px; height: 17px; color: var(--muted); }
.menu-item.danger svg { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--green-deep); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .3, 1); display: flex; align-items: center; gap: 8px; }
.toast svg { width: 16px; height: 16px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #B23E1C; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ================= LAUNCHER (gateway landing page) ================= */
.launch { width: 100%; max-width: 720px; margin: 0 auto; padding: 28px 20px 80px; }
.launch-bar { display: flex; align-items: center; gap: 12px; padding: 6px 2px 26px; }
.launch-bar .wordmark { font-size: 22px; }
.launch-bar .mark { font-size: 24px; }
.launch-hero { margin: 8px 2px 26px; }
.launch-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; color: var(--green-deep); margin: 0; }
.launch-hero p { color: var(--muted); font-size: 16px; margin: 8px 0 0; max-width: 46ch; line-height: 1.5; }
.launch-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .launch-grid { grid-template-columns: 1fr 1fr; } }
.app-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30,38,28,.06), 0 14px 30px rgba(30,38,28,.10); border-color: #CDD6C0; }
.app-card .ico { font-size: 34px; line-height: 1; flex: none; width: 54px; height: 54px; display: grid; place-items: center; background: var(--green-tint); border-radius: 14px; }
.app-card .meta { min-width: 0; }
.app-card .meta h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.app-card .meta p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.app-card .meta .slug { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 6px; display: block; }
.launch-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.launch-foot { margin-top: 36px; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.acct .nm { text-align: right; line-height: 1.2; }
.acct .nm b { font-size: 14px; display: block; }
.acct .nm span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.btn-ghost { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: background .12s, color .12s; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* admin panel on the launcher */
.admin-panel { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.admin-panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.admin-panel .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.admin-row .nm { flex: 1; min-width: 0; }
.admin-row .nm b { font-size: 14px; font-weight: 600; display: block; }
.admin-row .nm span { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); word-break: break-all; }
.admin-add { display: flex; gap: 9px; margin-top: 14px; }
.admin-add input { flex: 1; font-size: 15px; padding: 11px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.admin-add input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); outline: none; }
.mini { flex: none; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 9px; transition: background .12s ease, color .12s ease; cursor: pointer; border: none; }
.mini.ok { background: var(--green); color: #fff; }
.mini.ok:hover { background: var(--green-deep); }
.mini.no { color: var(--muted); background: transparent; }
.mini.no:hover { background: var(--surface-2); color: var(--text); }

/* ============================================================
   TEMPLATE DEMO — the "wall" in templates/app. Delete when you
   replace the demo with your own feature.
   ============================================================ */
.ping-compose { display: flex; gap: 8px; margin: 14px 0; }
.ping-compose input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font: inherit; }
.ping-compose input:focus { outline: none; border-color: var(--green); }
.ping-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ping { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.ping b { font-size: 13px; color: var(--green-deep); }
.ping span { color: var(--text); }
