/* ShepherdGrid — interface styles. Dark "night watch" theme from the design mockup. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 600; font-display: swap; src: url('/assets/fonts/InterDisplay-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/InterDisplay-Bold.woff') format('woff'); }

:root {
  --bg: #031216;
  --bg-deep: #020c0f;
  --panel: #061b20;
  --panel-2: #08232a;
  --panel-hover: #0b2c33;
  --border: #10333a;
  --border-strong: #19444c;
  --text: #e6f5f4;
  --text-2: #9cc2c0;
  --text-3: #5f8f8e;
  --accent: #00f5e8;
  --accent-2: #00c0f5;
  --accent-soft: rgba(0, 245, 232, 0.14);
  --cyan: #2ef9f9;
  --gold: #f4b54a;
  --gold-soft: rgba(244, 181, 74, 0.14);
  --green: #3ad69c;
  --green-soft: rgba(58, 214, 156, 0.12);
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, 0.13);
  --red: #f2566e;
  --red-soft: rgba(242, 86, 110, 0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --max: 1520px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(0, 245, 232, 0.07), transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
svg.ico { display: inline-block; flex: none; vertical-align: -0.18em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.mono { font-family: var(--mono); font-size: 0.93em; letter-spacing: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.caps { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ App bar */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(3, 17, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.appbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 22px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark .logo-slot:empty { display: none; }
.wordmark .logo-slot img { height: 40px; width: auto; border-radius: 10px; }
.bar-divider { width: 1px; height: 30px; background: var(--border-strong); }
.mainnav { display: flex; align-self: stretch; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  color: var(--text-2); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.mainnav a:hover { color: var(--text); text-decoration: none; }
.mainnav a.active { color: var(--text); font-weight: 600; }
.mainnav a.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mainnav a .ico { opacity: 0.85; }
.mainnav a.active .ico { color: var(--accent); opacity: 1; }
.mainnav .soon-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); margin-left: -2px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid #154b55; background: rgba(0, 245, 232, 0.08);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c0e0df; white-space: nowrap;
}
.demo-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn .badge-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #0b2d34; border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
}
.avatar:hover { border-color: var(--accent); }
.popover {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 280px; z-index: 40;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.popover .pop-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.popover a, .popover button.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--text); text-align: left; cursor: pointer; font-size: 14px;
}
.popover a:hover, .popover button.menu-item:hover { background: var(--panel-2); text-decoration: none; }
.popover .note-item { padding: 10px 12px; border-radius: 8px; font-size: 13px; display: flex; gap: 10px; }
.popover .note-item + .note-item { border-top: 1px solid var(--border); border-radius: 0; }
.rel { position: relative; }

@media (max-width: 1560px) {
  .mainnav a { padding: 0 9px; font-size: 14px; } .appbar-inner { gap: 16px; } .wordmark { font-size: 22px; }
  .demo-badge { font-size: 0; padding: 7px 11px; gap: 0; } .demo-badge::after { content: 'Demo'; font-size: 11px; letter-spacing: 0.14em; margin-left: 7px; }
}
@media (max-width: 1380px) { .mainnav a { padding: 0 7px; gap: 6px; } .bar-right { gap: 8px; } }
@media (max-width: 1260px) { .mainnav a .lbl { display: none; } .mainnav a { padding: 0 12px; } .demo-badge { display: none; } }
@media (max-width: 760px) {
  .appbar-inner { height: auto; flex-wrap: wrap; padding: 12px 16px 0; gap: 10px; }
  .bar-divider { display: none; }
  .mainnav { order: 3; width: 100%; height: 48px; justify-content: space-between; gap: 0; }
  .mainnav a { padding: 0 8px; }
  .wordmark { font-size: 20px; }
}

/* ------------------------------------------------------------------ Page */
.page { max-width: var(--max); margin: 0 auto; padding: 36px 32px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); font-size: 19px; margin-top: 10px; letter-spacing: -0.005em; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .page { padding: 24px 16px 60px; } h1 { font-size: 32px; } .page-head .sub { font-size: 16px; }
  .card-head { flex-wrap: wrap; min-height: 0; }
  .card-head .actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .search-field { min-width: 0; width: 100%; }
  .page-head .actions { margin-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .item-row { grid-template-columns: 40px minmax(0, 1fr); }
  .item-row .right { grid-column: 2; }
  .map-legend { gap: 8px 18px; font-size: 13px; }
  .map-coords { margin-left: 0; }
  .section { padding: 40px 16px; }
  .hero { padding: 30px 16px; }
}

/* ------------------------------------------------------------------ Cards */
.card { background: linear-gradient(180deg, rgba(7, 33, 40, 0.55), rgba(6, 27, 32, 0.75)); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); min-height: 72px; }
.card-head h2 { font-size: 21px; }
.card-head .ico { color: var(--accent); }
.card-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.card-body { padding: 20px 22px; }
.count-badge { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 10px; border-radius: 8px; background: #0d2f36; border: 1px solid var(--border-strong); font-weight: 600; font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 28px; }
.stat { display: flex; gap: 18px; padding: 22px 24px; min-height: 116px; position: relative; }
.stat .stat-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #9dfff8; }
.stat .label { color: var(--text-2); font-size: 16px; }
.stat .value { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.stat .value b { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat .value span { color: var(--text-2); font-size: 16px; }
.stat .stat-extra { position: absolute; top: 26px; right: 24px; display: flex; gap: 5px; }
.stat.attention .stat-ico { color: var(--gold); }
.stat.healthy .stat-ico { color: var(--green); }
.sq { width: 14px; height: 14px; border-radius: 4px; background: var(--accent-2); opacity: 0.85; }
.sq.off { background: #1d4a54; }
.sq.warn { background: var(--amber); }
.stat .stat-extra.ticks { display: flex; gap: 2px; height: 18px; align-items: stretch; top: 28px; }
.ticks i { flex: 0 0 3px; width: 3px; border-radius: 2px; background: var(--green); }
.ticks i.off { background: #17404a; }
@media (max-width: 1560px) { .stat .stat-extra.ticks { gap: 1.5px; } .stat .stat-extra.ticks i { flex-basis: 2px; width: 2px; } }
@media (max-width: 1380px) and (min-width: 1201px) { .stat .stat-extra.ticks { display: none; } }
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } .stat .stat-extra { display: none; } }

.overview-main { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(320px, 1fr); gap: 22px; margin-bottom: 28px; }
.overview-main > .card { display: flex; flex-direction: column; }
.overview-main .map-wrap { flex: 1; min-height: 320px; }
@media (max-width: 760px) { .overview-main .map-wrap { min-height: 380px; } }
.map-live { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.map-live > svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.map-live.grabbing > svg { cursor: grabbing; }
.map-wrap.auto-height { aspect-ratio: 1000 / 396; }
.map-controls { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.map-controls button { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(5, 25, 30, 0.92); color: var(--text); border: 0; font-size: 20px; line-height: 1; cursor: pointer; }
.map-controls button:hover { background: var(--panel-hover); }
.map-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(3, 17, 20, 0.82); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.map-hint.gone { opacity: 0; }
.card.map-expanded { position: fixed; inset: 12px; z-index: 85; box-shadow: 0 30px 90px rgba(0,0,0,.6); background: var(--panel); }
.card.map-expanded .map-wrap { min-height: 0; }
body.map-open { overflow: hidden; }
.map-backdrop { position: fixed; inset: 0; z-index: 84; background: rgba(1, 8, 10, 0.72); }
.show-all { display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--accent); font-weight: 600; cursor: pointer; }
.show-all:hover { background: rgba(8, 37, 44, 0.5); }
@media (max-width: 1100px) { .overview-main { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ World map */
.map-wrap { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; background: radial-gradient(800px 360px at 28% 52%, rgba(46, 249, 249, 0.06), transparent 70%); }
.map-grid line { stroke: rgba(90, 190, 188, 0.07); stroke-width: 0.6; }
.map-land { stroke: #1f5b66; stroke-linecap: round; }
.map-label { fill: #6f9c9b; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.32em; opacity: 0.75; }
.map-link { fill: none; stroke-linecap: round; }
.map-link.online { stroke: url(#link-grad); stroke-width: 1.35; opacity: 0.85; }
.map-link.degraded { stroke: var(--amber); stroke-width: 1.35; opacity: 0.85; }
.map-link.offline { stroke: #709692; stroke-width: 1.1; stroke-dasharray: 3 4; opacity: 0.55; }
.map-link.pending { stroke: #709692; stroke-width: 0.9; stroke-dasharray: 1 4; opacity: 0.5; }
.map-flow { fill: none; stroke: #e2fbf9; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 26; opacity: 0.55; animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.map-node { cursor: pointer; }
.map-node .ring { fill: rgba(3, 18, 22, 0.9); stroke-width: 1.3; }
.map-node .core { fill: #dcfaf8; }
.map-node.online .ring { stroke: var(--cyan); }
.map-node.degraded .ring { stroke: var(--amber); }
.map-node.degraded .core { fill: #ffe1b0; }
.map-node.offline .ring { stroke: #75a19f; }
.map-node.offline .core { fill: #75a19f; }
.map-node.pending .ring { stroke: #75a19f; stroke-dasharray: 1.5 1.5; }
.map-node:hover .ring { stroke-width: 2.2; }
.map-hub .pulse { fill: none; stroke: var(--gold); animation: pulse 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-hub .pulse.p2 { animation-delay: 1.4s; }
@keyframes pulse { from { opacity: 0.7; transform: scale(0.6); } to { opacity: 0; transform: scale(2.6); } }
.map-hub-label rect { fill: rgba(28, 22, 10, 0.9); stroke: rgba(244, 181, 74, 0.75); stroke-width: 0.8; }
.map-hub-label text { fill: var(--gold); font-weight: 700; font-size: 9px; letter-spacing: 0.12em; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 34px; padding: 16px 22px; color: var(--text-2); font-size: 15px; }
.map-legend .lg { display: inline-flex; align-items: center; gap: 10px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; }
.lg-line { width: 26px; height: 0; border-top: 2px solid; }
.lg-line.dashed { border-top-style: dashed; }
.map-coords { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.06em; }
.map-tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 200px; padding: 10px 12px; border-radius: 10px;
  background: rgba(3, 18, 22, 0.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 13px;
  transform: translate(-50%, calc(-100% - 14px));
}
.map-tip b { display: block; font-size: 14px; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .map-flow, .map-hub .pulse { animation: none; display: none; } }

/* Sarasota master sites */
.local-map { position: relative; border-bottom: 1px solid var(--border); background: #04191e; }
.local-map svg { width: 100%; height: auto; }
.local-land { stroke: #1f5963; stroke-linecap: round; }
.local-label { fill: #6e9a99; font-family: var(--mono); font-size: 8px; letter-spacing: 0.24em; }
.master-pin .halo { fill: rgba(244, 181, 74, 0.18); stroke: var(--gold); stroke-width: 1; }
.master-pin .core { fill: var(--gold); }
.master-pin.offline .halo, .master-pin.pending .halo { stroke: #75a19f; fill: rgba(112, 160, 156, 0.15); }
.master-pin.offline .core, .master-pin.pending .core { fill: #75a19f; }
.master-pin rect { fill: rgba(3, 17, 20, 0.94); stroke: #1d4c56; stroke-width: 0.7; }
.master-pin text { fill: var(--text); font-weight: 600; font-size: 9.5px; }
.master-list { padding: 4px 22px 8px; }
.master-row { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.master-row:last-child { border-bottom: 0; }
.master-row:hover { text-decoration: none; }
.master-row:hover .name { color: #fff; }
.master-row .m-ico { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #b3fffa; flex: none; }
.master-row .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.master-row .meta { font-family: var(--mono); color: var(--text-2); font-size: 14px; margin-top: 3px; }
.master-row .status-text { margin-left: auto; }

/* ------------------------------------------------------------------ Status */
.status-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.status-text::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-text.online { color: var(--green); }
.status-text.degraded { color: var(--amber); }
.status-text.offline { color: var(--red); }
.status-text.pending { color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.online { background: var(--green-soft); color: var(--green); }
.pill.degraded { background: var(--amber-soft); color: var(--amber); }
.pill.offline { background: var(--red-soft); color: var(--red); }
.pill.pending { background: rgba(112, 160, 156, 0.12); color: var(--text-2); }
.pill.plain::before { display: none; }
.pill.blue { background: var(--accent-soft); color: #aafff9; }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.violet { background: rgba(246, 220, 170, 0.15); color: #f6dcaa; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: #0a2d3100; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.tag.private { color: #bfd9d7; }
.tag.shared { color: #aafff9; border-color: rgba(0, 245, 232, 0.4); }
.tag.network { color: #f6dcaa; border-color: rgba(246, 220, 170, 0.45); }
.tag.public { color: var(--green); border-color: rgba(58, 214, 156, 0.4); }
.tag.demo { color: var(--gold); border-color: rgba(244, 181, 74, 0.45); }

/* ------------------------------------------------------------------ Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 15.5px; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover td { background: rgba(8, 37, 44, 0.55); }
table.data td.first { padding-left: 34px; }
table.data th.first { padding-left: 36px; }
table.data .chev { color: var(--text-3); width: 20px; }
.cell-name { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.cell-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #b3fffa; flex: none; }
.site-dot { display: inline-flex; align-items: center; gap: 10px; }
.site-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--site-color, var(--accent)); }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty .ico { margin: 0 auto 14px; color: var(--text-3); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ------------------------------------------------------------------ Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--panel-hover); border-color: #1f555f; text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #3dfff1, #00d9ca); border-color: #5cfff4; color: #00201f; box-shadow: 0 6px 20px rgba(0, 245, 232, 0.25); }
.btn.primary:hover { background: linear-gradient(180deg, #6bfff5, #00e6d6); }
.btn.gold { background: linear-gradient(180deg, #f7c467, #e9a43a); border-color: #f7c467; color: #1d1405; }
.btn.danger { color: #ffb3bf; border-color: rgba(242, 86, 110, 0.45); background: rgba(242, 86, 110, 0.08); }
.btn.danger:hover { background: rgba(242, 86, 110, 0.16); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 11px; }
.select-btn, .search-field {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: rgba(5, 25, 30, 0.9); color: var(--text-2);
}
.select-btn select { appearance: none; background: transparent; border: 0; color: var(--text); font-size: 15px; padding-right: 22px; cursor: pointer; outline: none; }
.select-btn { position: relative; }
.select-btn .chev-abs { position: absolute; right: 10px; pointer-events: none; color: var(--text-2); }
.select-btn select option { background: var(--panel); }
.select-btn.bare { border-color: transparent; background: transparent; font-size: 18px; }
.select-btn.bare select { font-size: 18px; color: var(--text-2); padding-right: 34px; }
.search-field { min-width: 240px; }
.search-field input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; min-width: 0; }
.search-field input::placeholder { color: var(--text-2); }
.search-field.bare { border-color: transparent; background: transparent; }
.search-field.big { height: 54px; font-size: 17px; border-radius: 12px; width: 100%; }
.search-field.big input { font-size: 17px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a, .tabs button { padding: 12px 16px; color: var(--text-2); font-weight: 500; border: 0; background: none; cursor: pointer; position: relative; white-space: nowrap; font-size: 15px; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--text); font-weight: 600; }
.tabs .active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tabs .count { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: rgba(0, 245, 232, 0.55); color: #cffffc; }

/* ------------------------------------------------------------------ Forms */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .three { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .two, .form .three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: rgba(2, 16, 19, 0.85); color: var(--text); font-size: 15px; outline: none;
}
.field textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7fa9a8 50%), linear-gradient(135deg, #7fa9a8 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--panel); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 245, 232, 0.18); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--red); }
.form-error { padding: 11px 14px; border-radius: 9px; background: var(--red-soft); border: 1px solid rgba(242, 86, 110, 0.4); color: #ffc2cc; font-size: 14px; }
.form-ok { padding: 11px 14px; border-radius: 9px; background: var(--green-soft); border: 1px solid rgba(58, 214, 156, 0.35); color: #bff3df; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.field input[type=checkbox], .field input[type=radio], .church-picker input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--accent); box-shadow: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vis-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .vis-options { grid-template-columns: 1fr 1fr; } }
.vis-opt { position: relative; display: block; padding: 13px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(2, 16, 19, 0.6); cursor: pointer; }
.vis-opt input { position: absolute; opacity: 0; }
.vis-opt b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vis-opt small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 4px; line-height: 1.35; }
.vis-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vis-opt:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.church-picker { max-height: 210px; overflow: auto; border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px; background: rgba(2, 16, 19, 0.6); }
.church-picker label { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.church-picker label:hover { background: var(--panel-2); }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 26px; text-align: center; color: var(--text-2); cursor: pointer; background: rgba(2, 16, 19, 0.5); }
.dropzone.over, .dropzone:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.dropzone .ico { margin: 0 auto 8px; color: var(--accent); }
.progress { height: 8px; border-radius: 99px; background: #0b2d34; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--accent-2)); transition: width 0.2s; }
.meter { height: 10px; border-radius: 99px; background: #0b2d34; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter.warn > i { background: var(--amber); }
.meter.bad > i { background: var(--red); }

/* ------------------------------------------------------------------ Dialogs, toasts */
dialog.modal {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
dialog.modal.wide { width: min(980px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(1, 8, 10, 0.72); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-head h2 { font-size: 20px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border); background: rgba(3, 18, 22, 0.6); position: sticky; bottom: 0; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 420px; padding: 13px 16px; border-radius: 11px; background: #061f25; border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.2s ease-out; }
.toast.ok { border-color: rgba(58, 214, 156, 0.5); }
.toast.err { border-color: rgba(242, 86, 110, 0.55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.secret-box { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #021116; border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
.secret-box code { flex: 1; }
pre.code { margin: 0; padding: 14px 16px; border-radius: 10px; background: #021116; border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-x: auto; color: #c6f0ed; white-space: pre; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(7, 33, 40, 0.6); font-size: 14.5px; color: var(--text-2); }
.callout .ico { flex: none; color: var(--accent); margin-top: 1px; }
.callout.warn { border-color: rgba(245, 165, 36, 0.4); background: var(--amber-soft); color: #f7d9a6; }
.callout.warn .ico { color: var(--amber); }
.callout.gold { border-color: rgba(244, 181, 74, 0.4); background: var(--gold-soft); color: #f6dcaa; }
.callout.gold .ico { color: var(--gold); }
.callout b { color: var(--text); }

/* ------------------------------------------------------------------ Lists */
.item-list { display: grid; gap: 0; }
.item-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--border); cursor: pointer; }
.item-row:last-child { border-bottom: 0; }
.item-row:hover { background: rgba(8, 37, 44, 0.5); }
.item-row .kind { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #b3fffa; }
.item-row .kind.video { color: #f6dcaa; }
.item-row .kind.document { color: var(--gold); }
.item-row .kind.image { color: var(--green); }
.item-row .title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .meta { color: var(--text-2); font-size: 13.5px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.item-row .meta .sep::before { content: '·'; color: var(--text-3); }
.item-row .right { display: flex; align-items: center; gap: 12px; }
.event-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); align-items: start; }
.event-row:last-child { border-bottom: 0; }
.ev-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #0a272e; color: #aafff9; }
.ev-ico.warning { background: var(--amber-soft); color: var(--amber); }
.ev-ico.critical { background: var(--red-soft); color: var(--red); }
.ev-ico.vault { color: #f6dcaa; }
.ev-ico.audit { color: var(--text-2); }
.event-row .when { color: var(--text-3); font-size: 13px; white-space: nowrap; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 14.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.player { width: 100%; border-radius: 10px; background: #000; }
audio.player { background: transparent; }
.chart svg { width: 100%; height: auto; }
.chart .axis { stroke: var(--border); }
.chart .lbl { fill: var(--text-3); font-size: 10px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: url(#chart-grad); }
.chart .limit { stroke: var(--amber); stroke-dasharray: 4 4; stroke-width: 1; opacity: 0.6; }

/* Pillars */
.pillar-hero { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; padding: 28px; margin-bottom: 24px; }
.pillar-hero .big-ico { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #0c2f37, #072127); border: 1px solid var(--border-strong); color: #b3fffa; }
.pillar-hero p { font-size: 17px; color: var(--text-2); max-width: 760px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature-list li .ico { color: var(--accent); flex: none; margin-top: 2px; }
.feature-list li b { color: var(--text); }

/* ------------------------------------------------------------------ Public site */
.site-bar .appbar-inner { height: 76px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.site-nav a.active { color: var(--text); }
@media (max-width: 900px) { .site-nav { display: none; } }
.hero { max-width: var(--max); margin: 0 auto; padding: 70px 32px 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; margin-bottom: 20px; }
.hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #3dfff1, #8ff3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 20px; color: var(--text-2); margin: 22px 0 32px; max-width: 620px; line-height: 1.55; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero h1 { font-size: 44px; } }
.hub-card { position: relative; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #072127, #0a2a31); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.hub-card svg { width: 100%; height: auto; }
.hub-card .hub-title { position: absolute; top: 24px; left: 28px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.hub-line { stroke: #1fd6d5; stroke-width: 2.4; stroke-dasharray: 7 7; opacity: 0.85; }
.hub-node .o { fill: #0b363c; stroke: #5efff7; stroke-width: 3; }
.hub-node .i { fill: #c4f7f3; }
.section { max-width: var(--max); margin: 0 auto; padding: 60px 32px; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { font-size: 36px; letter-spacing: -0.03em; margin: 10px 0 12px; }
.section-head p { font-size: 18px; color: var(--text-2); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip > div { padding: 22px 24px; border-right: 1px solid var(--border); background: rgba(6, 27, 32, 0.6); }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; font-family: var(--font-display); font-size: 34px; letter-spacing: -0.03em; }
.strip span { color: var(--text-2); }
@media (max-width: 800px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(2) { border-right: 0; } }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { padding: 26px; }
.principle .num { font-family: var(--mono); color: var(--gold); font-size: 13px; letter-spacing: 0.2em; }
.principle h3 { font-size: 22px; margin: 10px 0 10px; }
.principle p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
.pillar-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.pillar-item { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.pillar-item .ico { color: var(--text-2); margin-top: 3px; }
.pillar-item h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.pillar-item p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .pillar-list { grid-template-columns: 1fr; } }
.vis-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vis-step { padding: 22px; }
.vis-step .ico { color: var(--accent); margin-bottom: 12px; }
.vis-step h3 { margin-bottom: 6px; }
.vis-step p { color: var(--text-2); margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .vis-ladder { grid-template-columns: 1fr 1fr; } }
.statement { max-width: 920px; margin: 0 auto; text-align: center; }
.statement blockquote { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.statement .lines { margin-top: 28px; display: grid; gap: 8px; color: var(--text-2); font-size: 18px; }
.statement .sig { margin-top: 26px; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 30px 32px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(520px, 100%); padding: 32px; }
.auth-card.wide { width: min(760px, 100%); }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.church-card { padding: 20px 22px; display: grid; gap: 6px; color: var(--text); }
.church-card:hover { border-color: var(--border-strong); text-decoration: none; background: rgba(8, 37, 44, 0.5); }
.church-card h3 { font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.loading { padding: 60px; text-align: center; color: var(--text-3); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Admin back end */
.admin-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #04181d, #021114); border-right: 1px solid var(--border); padding: 20px 14px 16px; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; }
.side-head .wordmark { font-size: 20px; }
.admin-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--gold-soft); border: 1px solid rgba(244, 181, 74, 0.5);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.side-nav { display: grid; gap: 2px; }
.side-group { margin: 18px 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.side-nav a:hover { background: rgba(8, 37, 44, 0.6); color: var(--text); text-decoration: none; }
.side-nav a.active { background: linear-gradient(90deg, rgba(0, 245, 232, 0.18), rgba(246, 220, 170, 0.08)); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a.active .ico { color: var(--accent); }
.side-soon { margin-left: auto; font-size: 10.5px; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1d1405; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 4px; border-top: 1px solid var(--border); }
.side-foot .demo-badge { justify-self: start; margin: 4px 10px 8px; font-size: 11px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; flex-wrap: wrap; }
.side-link:hover { background: rgba(8, 37, 44, 0.6); color: var(--text); text-decoration: none; }
.side-link .small { flex-basis: 100%; padding-left: 28px; margin-top: -4px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 6px; border-radius: 10px; background: rgba(7, 33, 40, 0.6); }
.side-user b { font-size: 14px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; flex: none; cursor: default; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { min-width: 0; }
.admin-top { display: none; }
.side-scrim { display: none; }
.btn.gold-outline { color: var(--gold); border-color: rgba(244, 181, 74, 0.5); background: var(--gold-soft); }
.btn.gold-outline:hover { background: rgba(244, 181, 74, 0.22); }
@media (max-width: 960px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .2s ease; }
  .admin-layout.side-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .admin-layout.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(1, 8, 10, 0.6); }
  .admin-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 14px; background: rgba(3, 17, 20, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .admin-top .wordmark { font-size: 19px; }
}
@media (max-width: 1260px) { .bar-right .btn .lbl { display: none; } }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: var(--text); }
.quick a:hover { text-decoration: none; background: rgba(8, 37, 44, 0.55); }
.quick .q-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #b3fffa; flex: none; }
.quick b { display: block; font-size: 15.5px; }
.quick span.small { color: var(--text-2); }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr; } }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }
.mini-master { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.mini-master:last-child { border-bottom: 0; }
.mini-master .mono { color: var(--text-3); font-size: 13px; }

.side-user .rel { margin-left: auto; }
.side-user .icon-btn { width: 34px; height: 34px; }
.side-user .popover { top: auto; bottom: calc(100% + 12px); right: auto; left: -150px; }
.side-user .icon-btn .badge-dot { top: 6px; right: 6px; }

.ticks-row { display: flex; gap: 2px; height: 14px; margin-top: 10px; }
.ticks-row i { flex: 0 0 3px; border-radius: 2px; background: var(--green); }
.ticks-row i.off { background: #17404a; }
.side-foot .demo-badge { font-size: 11px; gap: 8px; padding: 6px 12px; }
.side-foot .demo-badge::after { content: none; }
.admin-layout { grid-template-columns: 284px minmax(0, 1fr); }
.side-nav a > span:first-of-type { white-space: nowrap; }
.side-soon { font-size: 10px; padding: 0 5px; line-height: 16px; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } }
.ticks-row.sq-row { gap: 5px; height: 14px; }
.ticks-row.sq-row i { flex: 0 0 14px; }

/* Two-step sign-in */
.code-input { font-size: 22px; letter-spacing: 0.3em; text-align: center; }
.steps-list { margin: 8px 0 18px; padding-left: 20px; display: grid; gap: 12px; color: var(--text-2); }
.steps-list b { color: var(--text); }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 10px; background: #021116; border: 1px solid var(--border-strong); font-size: 15px; }
.recovery-grid span { padding: 4px 6px; }
.secret-box code.setup-key { word-break: normal; font-size: 15px; letter-spacing: 0.04em; line-height: 1.7; }

/* ShepherdGrid wordmark: "Grid" in the hub gold */
.wordmark .wm-grid { color: var(--gold); }

/* Admin › System: website lock */
.lock-card { margin-bottom: 22px; }
.lock-row { display: grid; gap: 8px; max-width: 640px; }
.lock-row .secret-box code { font-size: 16px; letter-spacing: 0.06em; }

/* ---------- Homepage glow-up ---------- */
.hub-packet.in { fill: #5efff7; filter: drop-shadow(0 0 4px rgba(94, 255, 247, 0.9)); }
.hub-packet.out { fill: #ffd27a; filter: drop-shadow(0 0 4px rgba(255, 210, 122, 0.9)); }

.section-head.wide { max-width: 900px; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-row .section-head { margin-bottom: 0; }

/* Live network map */
.net-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.net-map { overflow: hidden; }
.net-map .map-wrap { aspect-ratio: 1000 / 470; min-height: 340px; border-bottom: 1px solid var(--border); }
.net-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.net-legend { display: flex; gap: 16px; color: var(--text-2); font-size: 13.5px; }
.net-legend span { display: inline-flex; align-items: center; gap: 7px; }
.net-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.net-legend .dot.online { background: var(--green); box-shadow: 0 0 8px rgba(58, 214, 156, 0.7); }
.net-legend .dot.degraded { background: var(--amber); }
.net-legend .dot.offline { background: var(--red); }
.net-note { padding: 10px 16px 12px; }
@media (max-width: 1000px) { .net-layout { grid-template-columns: 1fr; } .net-map .map-wrap { min-height: 380px; } }

/* Recent teachings */
.teach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.teach-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 16px; color: var(--text); transition: transform 0.15s ease, border-color 0.15s ease; }
.teach-card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(0, 245, 232, 0.5); }
.teach-top { display: flex; align-items: center; gap: 10px; }
.teach-top .kind { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #0a272e; border: 1px solid var(--border-strong); color: #b3fffa; }
.teach-top .kind.video { color: #f6dcaa; } .teach-top .kind.document { color: var(--gold); } .teach-top .kind.image { color: var(--green); }
.teach-kind { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.teach-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.teach-meta { color: var(--text-2); font-size: 14.5px; }
.teach-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13.5px; min-width: 0; }
@media (max-width: 1000px) { .teach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .teach-grid { grid-template-columns: 1fr; } }

/* Churches on the grid */
.church-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.church-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; color: var(--text); transition: transform 0.15s ease, border-color 0.15s ease; }
.church-card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(244, 181, 74, 0.45); }
.church-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #1d1405; background: linear-gradient(150deg, #ffd27a, #e9a43a); }
.church-card h3 { font-size: 17px; }
.church-card .meta { color: var(--text-2); font-size: 14px; }
.church-card p { margin: 6px 0 0; color: var(--text-3); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.church-count { text-align: right; }
.church-count b { display: block; font-family: var(--font-display); font-size: 24px; }
.church-count span { font-size: 12px; color: var(--text-3); }
@media (max-width: 1100px) { .church-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .church-grid { grid-template-columns: 1fr; } }

/* Join in three steps */
.join-band { border-radius: 26px; padding: 40px; border: 1px solid var(--border-strong);
  background: radial-gradient(700px 300px at 15% 0%, rgba(244, 181, 74, 0.12), transparent 70%), radial-gradient(700px 300px at 100% 100%, rgba(0, 245, 232, 0.14), transparent 70%), linear-gradient(160deg, #061f24, #0a272e); }
.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.join-step { position: relative; padding: 24px; border-radius: 18px; background: rgba(2, 17, 22, 0.55); border: 1px solid var(--border); color: var(--gold); }
.join-step h3 { color: var(--text); font-size: 19px; margin: 14px 0 8px; }
.join-step p { color: var(--text-2); margin: 0; }
.join-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 800; font-size: 40px; color: rgba(244, 181, 74, 0.18); line-height: 1; }
@media (max-width: 900px) { .join-steps { grid-template-columns: 1fr; } .join-band { padding: 26px 20px; } }

/* Footer */
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 44px 32px 20px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-grid h4 { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.footer-grid a, .footer-grid li { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid p { color: var(--text-3); font-size: 14px; max-width: 340px; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 16px 32px 30px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--border); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Register page: form + what happens next */
.join-page { width: min(1160px, 100%); display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 22px; align-items: start; }
.join-page .auth-card.wide { width: 100%; }
.join-aside { padding: 28px; display: grid; gap: 18px; position: sticky; top: 96px; }
.join-aside-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--gold); }
.join-aside-step h3 { color: var(--text); font-size: 16.5px; margin: 0 0 4px; }
.join-aside-step p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.join-aside-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: #cffffc; font-size: 13.5px; }
@media (max-width: 1100px) { .join-page { grid-template-columns: 1fr; } .join-aside { position: static; } }
.net-map .map-hint { top: 12px; bottom: auto; left: 14px; right: auto; transform: none; max-width: calc(100% - 80px); white-space: normal; }
.footer-grid .wordmark { display: inline-flex; font-size: 22px; color: var(--text); margin-bottom: 4px; }

/* ---------- Sign-in screens: live network map behind a glowing glass window ---------- */
.auth-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; }
.auth-backdrop.ready { opacity: 1; }
.auth-backdrop .map-wrap { position: absolute; inset: 0; border: 0; }
.auth-backdrop .map-hub-label { display: none; }
.auth-veil { position: absolute; inset: 0; background: radial-gradient(55% 60% at 50% 50%, rgba(2, 12, 15, 0.15), rgba(2, 12, 15, 0.72)); }
.auth-wrap { position: relative; z-index: 1; }
.footer { position: relative; z-index: 2; }

@property --glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow-card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(5, 31, 37, 0.42), rgba(3, 20, 25, 0.5));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(61, 255, 241, 0.38);
  box-shadow: 0 0 0 1px rgba(61, 255, 241, 0.16), 0 0 22px rgba(0, 245, 232, 0.45), 0 0 60px rgba(0, 245, 232, 0.22), 0 0 120px rgba(244, 181, 74, 0.12);
  animation: glow-breathe 4.5s ease-in-out infinite alternate;
}
/* A light that travels all the way around the window's edge */
.glow-card::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--glow-angle), rgba(61, 255, 241, 0.15) 0deg, #3dfff1 40deg, #ffd27a 75deg, rgba(61, 255, 241, 0.15) 120deg, rgba(61, 255, 241, 0.15) 220deg, #8ff3ff 270deg, rgba(61, 255, 241, 0.15) 320deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: glow-spin 7s linear infinite;
}
@keyframes glow-spin { to { --glow-angle: 360deg; } }
@keyframes glow-breathe {
  from { box-shadow: 0 0 0 1px rgba(61, 255, 241, 0.14), 0 0 18px rgba(0, 245, 232, 0.38), 0 0 50px rgba(0, 245, 232, 0.18), 0 0 110px rgba(244, 181, 74, 0.10); }
  to { box-shadow: 0 0 0 1px rgba(61, 255, 241, 0.24), 0 0 30px rgba(0, 245, 232, 0.6), 0 0 80px rgba(0, 245, 232, 0.3), 0 0 140px rgba(244, 181, 74, 0.16); }
}
@media (prefers-reduced-motion: reduce) { .glow-card, .glow-card::before { animation: none; } .auth-backdrop { transition: none; } }
.glow-card .field input, .glow-card .field select, .glow-card .field textarea { background: rgba(2, 16, 19, 0.72); }

/* "Coming soon" page (website lock) */
.gate-body { min-height: 100vh; }
.gate-wrap { min-height: 100vh; }
.gate-card { width: min(460px, 100%); }
.gate-card .wordmark { margin-bottom: 24px; }
.gate-eyebrow { color: var(--gold); margin-bottom: 8px; }
.gate-card h1 { font-size: 32px; margin-bottom: 10px; }
.gate-card .btn { width: 100%; }
.gate-foot { margin-top: 22px; font-size: 13px; color: var(--text-3); text-align: center; }
.wordmark .wm-mark { width: 1.4em; height: 1.4em; flex: none; border-radius: 0.3em; box-shadow: 0 0 14px rgba(244, 181, 74, 0.25); }

/* Homepage, map look: live network map beside the welcome text */
.hero.hero-with-map { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 40px; }
.hero-map { box-shadow: 0 0 0 1px rgba(61, 255, 241, 0.12), 0 0 40px rgba(0, 245, 232, 0.18), var(--shadow); border-color: rgba(61, 255, 241, 0.3); }
.hero-map .map-wrap { aspect-ratio: 1000 / 600; min-height: 300px; }
.hero-map .net-bar { padding: 12px 14px; gap: 10px; }
.hero-map .net-bar.bottom { border-bottom: 0; border-top: 0; }
.hero-map .chips .chip { height: 28px; padding: 0 11px; font-size: 12.5px; }
.hero-map .net-legend { font-size: 12.5px; gap: 12px; }
.hero-map-title { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 999px; background: rgba(58, 214, 156, 0.12); color: var(--green); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(58, 214, 156, 0.6); animation: live-ping 1.8s ease-out infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(58, 214, 156, 0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(58, 214, 156, 0); } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
@media (max-width: 1000px) { .hero.hero-with-map { grid-template-columns: 1fr; } .hero-map .map-wrap { min-height: 340px; } }
@media (max-width: 640px) { .hero-map-title { display: none; } }
#network .hub-card { align-self: start; }

/* Admin menu: each pillar is its own section, its pages underneath */
.pillar-nav { display: grid; gap: 2px; }
.side-nav a.pillar-link { font-weight: 600; color: var(--text); }
.side-nav a.pillar-link .ico { color: var(--text-2); }
.pillar-nav.open > a.pillar-link { background: linear-gradient(90deg, rgba(0, 245, 232, 0.16), rgba(0, 245, 232, 0.03)); box-shadow: inset 2px 0 0 var(--accent); }
.pillar-nav.open > a.pillar-link .ico { color: var(--accent); }
.pillar-num { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-3); border: 1px solid var(--border-strong); }
.pillar-nav.open .pillar-num { color: var(--accent); border-color: rgba(0, 245, 232, 0.45); }
.pillar-sub { display: grid; gap: 1px; margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1px solid var(--border-strong); }
.side-nav .pillar-sub a { padding: 7px 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.side-nav .pillar-sub a.active { background: rgba(0, 245, 232, 0.1); color: var(--text); box-shadow: none; font-weight: 600; }

/* ---------- Extra light behind the access door: glow and pulses racing into every server ---------- */
.epic .map-halo { fill: none; stroke-linecap: round; stroke-width: 7; opacity: 0.16; filter: blur(3px); }
.epic .map-halo.online { stroke: var(--cyan); }
.epic .map-halo.degraded { stroke: var(--amber); opacity: 0.12; }
.epic .map-link.online { stroke-width: 1.7; opacity: 0.95; }
.epic .map-comet { fill: none; stroke: #f2fffe; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 22 1400; stroke-dashoffset: 1422; animation: comet 3.2s cubic-bezier(.45, 0, .2, 1) infinite; opacity: 0.95; }
@keyframes comet { from { stroke-dashoffset: 1422; } to { stroke-dashoffset: 0; } }
.epic .map-node.online .ring { animation: node-glow 3.2s ease-in-out infinite; }
@keyframes node-glow { 0%, 100% { filter: drop-shadow(0 0 1.5px rgba(46, 249, 249, 0.6)); } 50% { filter: drop-shadow(0 0 5px rgba(46, 249, 249, 1)); } }
.epic .map-hub .pulse.wide { animation-duration: 3.6s; animation-delay: 0.7s; }
@media (prefers-reduced-motion: reduce) { .map-comet { display: none; } .map-node.online .ring { animation: none; } .map-hub .pulse.wide { display: none; } }

/* ---------- Animated logo mark: the grid lights up, the hub breathes ---------- */
.wm-mark .mk-hub { transform-box: fill-box; transform-origin: center; animation: mk-hub 2.8s ease-in-out infinite; }
.wm-mark .mk-dot { animation: mk-dot 4.2s ease-in-out infinite; }
.wm-mark .mk-dot:nth-child(2) { animation-delay: 0.35s; } .wm-mark .mk-dot:nth-child(3) { animation-delay: 0.7s; }
.wm-mark .mk-dot:nth-child(4) { animation-delay: 2.8s; } .wm-mark .mk-dot:nth-child(5) { animation-delay: 1.05s; }
.wm-mark .mk-dot:nth-child(6) { animation-delay: 2.45s; } .wm-mark .mk-dot:nth-child(7) { animation-delay: 2.1s; } .wm-mark .mk-dot:nth-child(8) { animation-delay: 1.75s; }
.wm-mark .mk-lines { animation: mk-lines 4.2s ease-in-out infinite; }
@keyframes mk-hub { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 210, 122, 0)); } 50% { transform: scale(1.22); filter: drop-shadow(0 0 2.5px rgba(255, 210, 122, 0.95)); } }
@keyframes mk-dot { 0%, 70%, 100% { opacity: 0.55; } 12% { opacity: 1; } }
@keyframes mk-lines { 0%, 100% { stroke-opacity: 0.35; } 50% { stroke-opacity: 0.65; } }
@media (prefers-reduced-motion: reduce) { .wm-mark .mk-hub, .wm-mark .mk-dot, .wm-mark .mk-lines { animation: none; } }

/* ---------- Access door (sign-in): logo, tagline, access keys ---------- */
.bare-view { min-height: 100vh; }
.door-wrap { min-height: 100vh; }
.door-card { width: min(480px, 100%); text-align: center; padding: 38px 36px 30px; }
.door-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; }
.door-brand:hover { text-decoration: none; }
.door-brand .wm-mark { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 0 24px rgba(244, 181, 74, 0.35); }
.door-tagline { margin: 18px auto 6px; max-width: 380px; color: var(--text); font-size: 17px; line-height: 1.5; }
.door-sub { color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 26px; }
.door-card .form { text-align: left; }
.door-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.door-label::before, .door-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 245, 232, 0.45)); }
.door-label::after { background: linear-gradient(90deg, rgba(0, 245, 232, 0.45), transparent); }
.door-card .btn.lg { width: 100%; }
.door-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 22px 0 6px; }
.door-links .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.door-help { margin: 0; }
.door-card h1 { text-align: center; }
@media (max-width: 520px) { .door-card { padding: 30px 22px 24px; } .door-brand { font-size: 28px; } .door-brand .wm-mark { width: 44px; height: 44px; } }

/* See-through access window: the beams of light show behind it */
.glow-card { background: linear-gradient(180deg, rgba(5, 31, 37, 0.16), rgba(3, 20, 25, 0.26)); -webkit-backdrop-filter: blur(3px) saturate(160%); backdrop-filter: blur(3px) saturate(160%); }
.glow-card .door-tagline, .glow-card h1, .glow-card .door-brand, .glow-card label { text-shadow: 0 1px 10px rgba(2, 12, 15, 0.9); }
.glow-card .field input, .glow-card .field select, .glow-card .field textarea { background: rgba(2, 16, 19, 0.55); }
.auth-veil { background: radial-gradient(55% 60% at 50% 50%, rgba(2, 12, 15, 0.15), rgba(2, 12, 15, 0.72)); }
.lock-site { color: var(--gold); border-color: rgba(244, 181, 74, 0.45); }
.lock-site:hover { background: rgba(244, 181, 74, 0.12); color: var(--gold); }
@media (max-width: 640px) { .lock-site { padding: 0 10px; } }
/* The lights behind the access window look exactly like everywhere else: no blur, no extra color */
.glow-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
.glow-card .door-tagline, .glow-card h1, .glow-card .door-brand, .glow-card label { text-shadow: 0 1px 6px rgba(2, 12, 15, 0.85); }
/* Readable access window: mostly solid, the lights only faintly show through */
.glow-card { background: linear-gradient(180deg, rgba(5, 31, 37, 0.74), rgba(3, 20, 25, 0.82)); }
.glow-card .field input, .glow-card .field select, .glow-card .field textarea { background: rgba(2, 16, 19, 0.85); }

/* ---------- Homepage header image: ShepherdGrid banner with the live network map ---------- */
.banner-wrap { max-width: var(--max); margin: 0 auto; padding: 28px 32px 8px; }
.sg-banner { position: relative; overflow: hidden; border-radius: 26px; height: clamp(560px, 46vw, 680px);
  background: radial-gradient(900px 500px at 62% 50%, rgba(46, 249, 249, 0.07), transparent 70%), #031216;
  border: 2px solid rgba(61, 255, 241, 0.32); box-shadow: inset 0 0 60px rgba(0, 245, 232, 0.16), 0 20px 60px rgba(0, 0, 0, 0.35); }
.sg-banner > .map-wrap { position: absolute; top: 0; left: 33%; width: 74%; height: 100%; border: 0; background: none; }
.sg-banner .map-hub-label { display: none; }
.sg-banner-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 12, 15, 0.97) 0%, rgba(2, 12, 15, 0.9) 34%, rgba(2, 12, 15, 0.35) 50%, rgba(2, 12, 15, 0) 62%), linear-gradient(0deg, rgba(2, 12, 15, 0.5), transparent 35%); }
.sg-banner-text { position: absolute; left: 0; top: 0; bottom: 0; width: min(46%, 640px); padding: 0 0 0 56px; display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.sg-banner-brand { display: inline-flex; align-items: center; gap: 18px; color: #f2fbfb; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 4.6vw, 70px); letter-spacing: -0.04em; line-height: 1; }
.sg-banner-brand:hover { text-decoration: none; }
.sg-banner-brand b { color: var(--gold); font-weight: 700; }
.sg-banner-brand .wm-mark { width: 1.3em; height: 1.3em; border-radius: 0.28em; box-shadow: 0 0 36px rgba(244, 181, 74, 0.45), 0 0 0 1px rgba(244, 181, 74, 0.35); }
.sg-banner-text h1 { margin: 26px 0 0; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -0.035em; }
.sg-banner-text h1 em { font-style: normal; background: linear-gradient(90deg, #3dfff1, #8ff3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-banner-lead { margin: 14px 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: #e6f5f4; max-width: 540px; }
.sg-banner-motto { margin-top: 18px; color: var(--gold); font-weight: 700; font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.7; max-width: 520px; }
.sg-banner-cta { margin-top: 26px; }
.sg-banner-live { position: absolute; right: 28px; top: 26px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 999px; background: rgba(2, 12, 15, 0.6); border: 1px solid rgba(61, 255, 241, 0.35); color: #3dfff1; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.sg-banner-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: live-ping 1.8s ease-out infinite; }
.sg-banner-url { position: absolute; right: 30px; bottom: 24px; z-index: 2; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #3dfff1; text-shadow: 0 0 18px rgba(0, 245, 232, 0.5); }
@media (max-width: 1100px) { .sg-banner-text { width: 54%; padding-left: 40px; } .sg-banner > .map-wrap { left: 40%; width: 80%; } }
@media (max-width: 860px) {
  .banner-wrap { padding: 16px 14px 4px; }
  .sg-banner { height: auto; display: flex; flex-direction: column; }
  .sg-banner-text { position: relative; width: auto; padding: 30px 24px 10px; }
  .sg-banner > .map-wrap { position: relative; left: 0; width: 100%; height: 320px; order: 2; }
  .sg-banner-shade { background: linear-gradient(180deg, rgba(2, 12, 15, 0.92) 0%, rgba(2, 12, 15, 0.6) 55%, rgba(2, 12, 15, 0) 75%); }
  .sg-banner-live { top: 16px; right: 16px; font-size: 11px; padding: 5px 11px; }
  .sg-banner-url { font-size: 16px; right: 18px; bottom: 14px; }
}
.sg-banner-brand .wm-mark { flex: none; }
@media (max-width: 860px) {
  .sg-banner-live { order: -1; position: relative; top: auto; right: auto; margin: 18px 0 0 24px; width: max-content; }
  .sg-banner-text { padding-top: 18px; }
  .sg-banner-brand { font-size: 40px; gap: 12px; }
}

/* Admin › Access keys */
.keys-table td { vertical-align: middle; }
.keys-table td.num, .keys-table th.num { text-align: right; }
.key-code { display: inline-block; min-width: 120px; font-size: 14.5px; letter-spacing: 0.04em; margin-right: 6px; }
.btn.xs { height: 28px; padding: 0 7px; }
.danger-text { color: var(--red); }
.danger-text:hover { background: rgba(242, 86, 110, 0.12); color: var(--red); }
.pill.admin-key { background: rgba(244, 181, 74, 0.14); color: var(--gold); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; margin-top: 8px; cursor: pointer; font-weight: 400; }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card:has(input:checked) { border-color: rgba(0, 245, 232, 0.55); background: rgba(0, 245, 232, 0.06); }

/* "Admin" button in the site menu, and the administrator sign-in on the Coming soon page */
.admin-link { color: var(--gold); border-color: rgba(244, 181, 74, 0.45); }
.admin-link:hover { background: rgba(244, 181, 74, 0.12); color: var(--gold); }
@media (max-width: 640px) { .site-bar .join-link { display: none; } .admin-link { padding: 0 10px; } }
.gate-mode { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: center; }
.gate-switch { margin: 14px 0 0; text-align: center; font-size: 14px; }
.gate-switch a { color: var(--accent); }

/* "Public site" at the top of the admin menu */
.side-group-first { margin-top: 4px; }
.side-nav a.side-public > .ico:last-child { margin-left: auto; color: var(--text-3); }
.side-nav a.side-public:hover > .ico:last-child { color: var(--accent); }

/* People: access levels */
.radio-card.is-off { opacity: 0.45; cursor: not-allowed; }
.level-select select { min-width: 150px; }

/* People: whole rows open the person; administrators stand out */
.people-table tr.person-row { cursor: pointer; transition: background 0.15s ease; }
.people-table tr.person-row:hover, .people-table tr.person-row:focus-visible { background: rgba(0, 245, 232, 0.07); outline: none; }
.people-table tr.person-row:focus-visible td.first { box-shadow: inset 2px 0 0 var(--accent); }
.people-table tr.level-admin { background: rgba(0, 245, 232, 0.045); }
.people-table tr.level-admin td.first { box-shadow: inset 3px 0 0 rgba(0, 245, 232, 0.7); }
.people-table tr.level-master { background: rgba(244, 181, 74, 0.075); }
.people-table tr.level-master td.first { box-shadow: inset 3px 0 0 var(--gold); }
.people-table tr.level-master:hover { background: rgba(244, 181, 74, 0.13); }
.people-table tr.level-admin:hover { background: rgba(0, 245, 232, 0.11); }
.people-table tr.is-disabled { opacity: 0.6; }
.people-table .row-go { width: 32px; color: var(--text-3); text-align: right; }
.people-table tr.person-row:hover .row-go { color: var(--accent); }
.person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 4px; }
.person-actions { gap: 8px; flex-wrap: wrap; }
.danger-text { color: var(--red); }
.btn.ghost.danger-text { color: var(--red); }

/* 4-digit PIN boxes */
.pin-input { font-family: var(--mono, ui-monospace, monospace); letter-spacing: 0.6em; font-size: 20px; max-width: 170px; text-align: center; padding-left: 0.6em; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); font-size: 14.5px; cursor: pointer; }
.check-line input { margin-top: 3px; accent-color: var(--accent); }

/* site-menu (Nov 13) */
.site-menu-btn, .site-menu { display: none; }
@media (max-width: 760px) {
  .site-bar .appbar-inner { flex-wrap: nowrap; height: 64px; padding: 0 16px; }
  .site-bar .bar-right { display: none; }
  .site-menu-btn { display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
  .site-bar.menu-open .site-menu { display: flex; flex-direction: column; padding: 6px 16px 16px; border-top: 1px solid var(--border); background: rgba(3, 17, 20, 0.97); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-menu > a { color: var(--text); padding: 13px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); }
  .site-menu > a:hover { text-decoration: none; color: var(--gold); }
  .site-menu-actions { display: grid; gap: 10px; margin-top: 14px; }
  .site-menu-actions .btn { justify-content: center; width: 100%; }
  .site-menu-actions .btn.ghost { border: 1px solid var(--border); }
}

/* home-v2 (Nov 13): the network map behind all of the header text, edge to edge (David: "like Godly Gaming"),
   and a phone layout for every homepage section. Only the homepage gets .home-v2. */
.home-v2 .banner-wrap { max-width: none; padding: 0; }
.home-v2 .sg-banner { border-radius: 0; border: 0; border-bottom: 1px solid rgba(61, 255, 241, 0.16); box-shadow: none;
  height: clamp(640px, calc(100svh - 76px), 900px);
  background: radial-gradient(1100px 640px at 60% 46%, rgba(46, 249, 249, 0.08), transparent 70%), var(--bg-deep); }
.home-v2 .sg-banner > .map-wrap { top: 0; left: 0; width: 100%; height: 100%; }
.home-v2 .sg-banner-shade { background:
  radial-gradient(62% 85% at 24% 52%, rgba(2, 12, 15, 0.82) 0%, rgba(2, 12, 15, 0.5) 52%, rgba(2, 12, 15, 0) 82%),
  linear-gradient(0deg, var(--bg) 0%, rgba(3, 18, 22, 0) 18%),
  linear-gradient(180deg, rgba(2, 12, 15, 0.55) 0%, rgba(2, 12, 15, 0) 14%); }
.home-v2 .sg-banner-text { left: max(32px, calc((100% - var(--max)) / 2 + 40px)); width: min(640px, 54%); padding: 0; }
.home-v2 .sg-banner-text h1, .home-v2 .sg-banner-lead, .home-v2 .sg-banner-motto { text-shadow: 0 2px 22px rgba(2, 12, 15, 0.95), 0 0 2px rgba(2, 12, 15, 0.8); }
.home-v2 .sg-banner-text h1 em { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(2, 12, 15, 0.9)); }
.home-v2 .sg-banner .map-label { display: none; }
.home-v2 .sg-banner-live { right: max(28px, calc((100% - var(--max)) / 2 + 40px)); top: 30px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home-v2 .sg-banner-url { right: max(30px, calc((100% - var(--max)) / 2 + 40px)); bottom: 40px; }
.home-v2 .hv-h2 { font-size: 34px; margin: 12px 0 16px; }
.home-v2 .hv-p { font-size: 17.5px; }
@media (max-width: 1100px) { .home-v2 .sg-banner-text { width: min(600px, 62%); } }

@media (max-width: 860px) {
  .home-v2 .sg-banner { display: block; height: auto; min-height: calc(100svh - 64px); }
  .home-v2 .sg-banner > .map-wrap { position: absolute; inset: 0; width: 100%; height: 100%; order: 0; }
  .home-v2 .sg-banner-shade { background:
    linear-gradient(180deg, rgba(2, 12, 15, 0.55) 0%, rgba(2, 12, 15, 0.42) 26%, rgba(2, 12, 15, 0.62) 58%, rgba(2, 12, 15, 0.86) 84%, var(--bg) 100%); }
  .home-v2 .sg-banner-live { position: absolute; top: 18px; left: 20px; right: auto; margin: 0; }
  .home-v2 .sg-banner-text { position: relative; left: auto; width: auto; min-height: calc(100svh - 64px); padding: 72px 20px 40px; justify-content: center; }
  .home-v2 .sg-banner-brand { font-size: clamp(34px, 10.5vw, 44px); gap: 12px; }
  .home-v2 .sg-banner-text h1 { font-size: clamp(28px, 8.4vw, 36px); margin-top: 18px; }
  .home-v2 .sg-banner-lead { font-size: 16.5px; }
  .home-v2 .sg-banner-motto { font-size: 12px; letter-spacing: 0.14em; }
  .home-v2 .sg-banner-url { display: none; }
  .home-v2 .sg-banner-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .home-v2 .sg-banner-cta .btn { width: 100%; justify-content: center; min-height: 52px; padding: 0 12px; margin: 0; }
  .home-v2 .sg-banner-cta .btn.ghost, .home-v2 .sg-banner-cta .btn:first-child:nth-last-child(2) { grid-column: 1 / -1; }
  .home-v2 .sg-banner-cta .btn.ghost { background: rgba(2, 12, 15, 0.5); border: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .home-v2 .section { padding: 34px 18px; }
  .home-v2 .section-head h2 { font-size: 29px; line-height: 1.12; }
  .home-v2 .section-head p { font-size: 16.5px; }
  .home-v2 .section-row { margin-bottom: 18px; gap: 14px; }
  .home-v2 .hv-h2 { font-size: 28px; line-height: 1.12; margin: 10px 0 12px; }
  .home-v2 .hv-p { font-size: 16.5px; }
  .home-v2 .grid-2 { gap: 26px !important; }
  /* numbers */
  .home-v2 .strip > div { padding: 16px 18px; }
  .home-v2 .strip b { font-size: 28px; }
  .home-v2 .strip span { font-size: 14px; }
  /* network map: the region buttons slide sideways on one line */
  .home-v2 .net-bar { padding: 12px 14px; gap: 10px; }
  .home-v2 .net-bar .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 28px); margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .home-v2 .net-bar .chips::-webkit-scrollbar { display: none; }
  .home-v2 .net-bar .chip { flex: none; }
  .home-v2 .net-legend { font-size: 13px; }
  .home-v2 .net-map .map-wrap { min-height: 400px; }
  .home-v2 .master-row { padding: 14px 0; gap: 14px; }
  .home-v2 .master-row .m-ico { width: 44px; height: 44px; }
  .home-v2 .master-row .name { font-size: 18px; }
  .home-v2 .master-row .meta { font-size: 13px; }
  /* teachings and churches: swipe sideways instead of a long stack */
  .home-v2 .teach-grid, .home-v2 .church-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; margin: 0 -18px; padding: 4px 18px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .home-v2 .teach-grid::-webkit-scrollbar, .home-v2 .church-grid::-webkit-scrollbar { display: none; }
  .home-v2 .teach-grid > *, .home-v2 .church-grid > * { scroll-snap-align: start; }
  .home-v2 .teach-card:hover, .home-v2 .church-card:hover { transform: none; }
  .home-v2 .church-card { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
  .home-v2 .church-card h3 { white-space: normal; }
  .home-v2 .church-count { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .home-v2 .church-count b { display: inline; font-size: 18px; }
  /* principles, sharing levels, join steps */
  .home-v2 .principles { gap: 12px; }
  .home-v2 .principle { padding: 20px; }
  .home-v2 .principle h3 { font-size: 20px; margin: 8px 0 6px; }
  .home-v2 .vis-ladder { grid-template-columns: 1fr; gap: 10px; }
  .home-v2 .vis-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; padding: 16px 18px; }
  .home-v2 .vis-step > svg { grid-row: span 2; margin: 2px 0 0; color: var(--accent); }
  .home-v2 .vis-step h3 { margin: 0; font-size: 17px; }
  .home-v2 .join-band { border-radius: 20px; padding: 24px 18px; }
  .home-v2 .join-steps { gap: 10px; }
  .home-v2 .join-step { padding: 18px; }
  .home-v2 .join-step h3 { margin: 10px 0 6px; font-size: 18px; }
  .home-v2 .join-band .row .btn { flex: 1 1 100%; justify-content: center; }
  /* statement and contact */
  .home-v2 .statement blockquote { font-size: 24px; }
  .home-v2 .statement .lines { font-size: 16px; margin-top: 20px; }
  .home-v2 .statement .sig { font-size: 14px; }
  .home-v2 #contact .btn.primary { width: 100%; justify-content: center; }
}

/* Admin › Shepherd Servers (Nov 13): our servers and church servers in the same area; one compact line per server on phones. */
.srv-sec + .srv-sec { margin-top: 18px; }
.srv-sec .card-head { flex-wrap: wrap; row-gap: 2px; }
.srv-note { color: var(--text-3); font-size: 13.5px; }
.srv-sub { display: none; }
@media (max-width: 760px) {
  .srv-table .hide-m { display: none; }
  .srv-table th, .srv-table td { padding-left: 12px; padding-right: 10px; }
  .srv-table th.first, .srv-table td.first { padding-left: 14px; }
  .srv-sub { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; font-weight: 400; }
  .srv-sec .card-head .actions { order: 2; margin-left: auto; width: auto; }
  .srv-sec .srv-note { order: 3; width: 100%; padding-left: 34px; }
  .srv-table .srv-alt { display: none; }
  .srv-table .pill { white-space: nowrap; }
  .srv-table .cell-ico { display: none; }
}

/* Face ID / Touch ID sign-in (Nov 13) */
.pk-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 4px 0 -2px; }
.pk-or::before, .pk-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pk-btn { width: 100%; justify-content: center; border: 1px solid rgba(61, 255, 241, 0.4); background: rgba(6, 37, 44, 0.7); }
.pk-msg { color: #ffb4a8; margin: 0; }
.pk-list { display: grid; gap: 8px; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--accent); }
.pk-row .pk-name { flex: 1; min-width: 0; color: var(--text); }

/* ShepherdGrid services · Church Talk (Nov 14): our colors for the cards, a soft bright purple for the words */
.svc { --pp: #c38bff; --pp-soft: #dccbff; --pp-dim: #b8a4e8; }
.svc .section-head .caps { color: var(--pp-dim); }
.svc .section-head h2 { color: var(--pp); }
.svc .section-head p { color: var(--pp-soft); }
.ct-wrap { border: 1px solid var(--border-strong); border-radius: 26px; padding: 34px;
  background: radial-gradient(800px 360px at 12% 0%, rgba(0, 245, 232, 0.08), transparent 70%), radial-gradient(700px 400px at 100% 100%, rgba(195, 139, 255, 0.08), transparent 70%), linear-gradient(180deg, rgba(7, 33, 40, 0.6), rgba(3, 18, 22, 0.88)); }
.ct-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.ct-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; color: var(--pp); background: rgba(195, 139, 255, 0.1); border: 1px solid rgba(195, 139, 255, 0.38); box-shadow: 0 0 28px rgba(195, 139, 255, 0.2); }
.ct-name { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; color: var(--pp); margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-soon { font-family: var(--font-body, inherit); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(244, 181, 74, 0.45); border-radius: 999px; padding: 4px 10px; }
.ct-lead { margin: 8px 0 0; color: var(--pp-soft); font-size: 17px; line-height: 1.55; max-width: 780px; }
.ct-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ct-plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(6, 29, 36, 0.92), rgba(3, 18, 22, 0.96)); color: var(--pp-soft); }
.ct-plan.featured { border-color: rgba(244, 181, 74, 0.6); box-shadow: 0 0 0 1px rgba(244, 181, 74, 0.22), 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 46px rgba(195, 139, 255, 0.12); }
.ct-tag { position: absolute; top: -12px; left: 22px; background: linear-gradient(90deg, #f4b54a, #ffd27a); color: #1d1300; font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.ct-plan:not(.featured) .ct-tag { background: #06272e; color: #8ffcf9; border: 1px solid rgba(0, 245, 232, 0.45); }
.ct-tier { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--pp); letter-spacing: -0.02em; }
.ct-price { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.ct-price b { font-family: var(--font-display); font-size: 52px; line-height: 1; letter-spacing: -0.04em; color: #ecdfff; text-shadow: 0 0 26px rgba(195, 139, 255, 0.5); }
.ct-price span { color: var(--pp-dim); font-size: 14px; }
.ct-verse { margin: 12px 0 16px; font-size: 13.5px; font-style: italic; line-height: 1.45; color: var(--pp-dim); min-height: 2.9em; }
.ct-perks { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; align-content: start; flex: 1; }
.ct-perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--pp-soft); font-size: 15px; line-height: 1.4; }
.ct-perks li svg { flex: none; color: var(--accent); margin-top: 1px; }
.ct-cta { width: 100%; justify-content: center; }
.ct-plan .btn.ghost { border: 1px solid rgba(195, 139, 255, 0.45); color: var(--pp-soft); }
.ct-plan .btn.ghost:hover { background: rgba(195, 139, 255, 0.1); }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ct-point { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(2, 17, 22, 0.5); color: var(--accent); }
.ct-point svg { flex: none; margin-top: 2px; }
.ct-point b { display: block; color: var(--pp); font-size: 15.5px; margin-bottom: 4px; }
.ct-point span { color: var(--pp-soft); font-size: 14px; line-height: 1.45; }
.ct-fine { margin: 18px 0 0; font-size: 12.5px; color: var(--pp-dim); opacity: 0.85; }
@media (max-width: 1000px) { .ct-plans { grid-template-columns: 1fr; max-width: 560px; } .ct-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .ct-wrap { padding: 22px 16px; border-radius: 20px; }
  .ct-head { gap: 14px; margin-bottom: 26px; }
  .ct-ico { width: 46px; height: 46px; border-radius: 13px; }
  .ct-name { font-size: 25px; }
  .ct-lead { font-size: 15.5px; }
  .ct-plans { gap: 24px; max-width: none; }
  .ct-plan { padding: 26px 18px 18px; }
  .ct-price b { font-size: 46px; }
  .ct-verse { min-height: 0; }
  .ct-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Shepherd Messaging on the homepage (Nov 14): messages racing across the network, teal and bright purple */
.mn-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.mn-art { border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(70% 70% at 50% 50%, rgba(195, 139, 255, 0.08), transparent 70%), rgba(2, 14, 18, 0.7); padding: 8px; }
.mn-svg { display: block; width: 100%; height: auto; }
.mn-svg .mn-link { stroke: rgba(61, 255, 241, 0.38); stroke-width: 1.6; }
.mn-svg .mn-leaf { stroke: rgba(195, 139, 255, 0.32); stroke-width: 1.1; stroke-dasharray: 3 3; }
.mn-svg .mn-phone { fill: #0b2026; stroke: #c38bff; stroke-width: 1.2; }
.mn-svg .mn-church .o { fill: rgba(61, 255, 241, 0.1); stroke: rgba(61, 255, 241, 0.65); stroke-width: 1.4; }
.mn-svg .mn-church .i { fill: #3dfff1; filter: drop-shadow(0 0 6px rgba(61, 255, 241, 0.8)); }
.mn-svg .mn-church text { fill: #dccbff; font-size: 12.5px; font-weight: 600; font-family: var(--font-body, inherit); paint-order: stroke; stroke: #04181d; stroke-width: 5px; stroke-linejoin: round; }
.mn-svg .mn-hub .core { fill: #12082a; stroke: #c38bff; stroke-width: 2; filter: drop-shadow(0 0 14px rgba(195, 139, 255, 0.7)); }
.mn-svg .mn-hub .ring { fill: none; stroke: rgba(61, 255, 241, 0.55); stroke-width: 1.4; animation: mn-ring 3s ease-out infinite; transform-origin: 320px 190px; }
.mn-svg .mn-hub .ring2 { fill: none; stroke: rgba(195, 139, 255, 0.35); stroke-width: 1; animation: mn-ring 3s ease-out 1.5s infinite; transform-origin: 320px 190px; }
.mn-svg .mn-hub text { fill: #f1e8ff; font-family: var(--font-display); font-weight: 700; }
.mn-svg .mn-hub .h1 { font-size: 11px; } .mn-svg .mn-hub .h2 { font-size: 10px; fill: #3dfff1; }
.mn-svg .mn-pkt rect { stroke-width: 1.2; }
.mn-svg .mn-pkt.t rect { fill: #3dfff1; stroke: #b9fffc; filter: drop-shadow(0 0 6px rgba(61, 255, 241, 0.9)); }
.mn-svg .mn-pkt.p rect { fill: #c38bff; stroke: #eadcff; filter: drop-shadow(0 0 6px rgba(195, 139, 255, 0.9)); }
.mn-svg .mn-dot.t { fill: #3dfff1; } .mn-svg .mn-dot.p { fill: #c38bff; }
.mn-svg .mn-note { opacity: 0; animation: mn-note 4.4s ease-in-out infinite; }
.mn-svg .mn-note rect { fill: rgba(10, 28, 34, 0.92); stroke-width: 1.2; }
.mn-svg .mn-note.t rect { stroke: rgba(61, 255, 241, 0.7); } .mn-svg .mn-note.p rect { stroke: rgba(195, 139, 255, 0.8); }
.mn-svg .mn-note text { fill: #ecdfff; font-size: 11.5px; font-weight: 600; font-family: var(--font-body, inherit); }
@keyframes mn-ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes mn-note { 0%, 100% { opacity: 0; transform: translateY(4px); } 15%, 70% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mn-svg .mn-note { opacity: 1; animation: none; } .mn-svg .mn-hub .ring, .mn-svg .mn-hub .ring2 { animation: none; } }
.mn-points { display: grid; gap: 12px; }
.mn-cta { justify-self: start; margin-top: 4px; background: linear-gradient(90deg, #8f5bff, #c38bff); color: #fff; border: 0; box-shadow: 0 8px 26px rgba(195, 139, 255, 0.35); }
.mn-cta:hover { filter: brightness(1.08); text-decoration: none; }
.mn-wrap { margin-top: 26px; }
/* more services on the way */
.ms-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 34px 0 14px; }
.ms-head h3 { margin: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--pp); }
.ms-head span { color: var(--pp-dim); }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ms-card { display: flex; flex-direction: column; padding: 22px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(6, 29, 36, 0.85), rgba(3, 18, 22, 0.95)); color: var(--pp-soft); }
.ms-card:hover { border-color: rgba(195, 139, 255, 0.45); }
.ms-top { display: flex; align-items: center; gap: 12px; }
.ms-top b { font-family: var(--font-display); font-size: 20px; color: var(--pp); letter-spacing: -0.02em; }
.ms-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #3dfff1; background: rgba(61, 255, 241, 0.08); border: 1px solid rgba(61, 255, 241, 0.35); flex: none; }
.ms-tag { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c38bff; border: 1px solid rgba(195, 139, 255, 0.45); border-radius: 999px; padding: 3px 9px; }
.ms-card p { margin: 14px 0 12px; font-size: 15px; line-height: 1.5; }
.ms-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.ms-card li { display: flex; gap: 8px; font-size: 14px; color: var(--pp-soft); }
.ms-card li svg { flex: none; color: #3dfff1; margin-top: 2px; }
.ms-link { display: inline-flex; align-items: center; gap: 4px; color: #3dfff1; font-weight: 600; font-size: 14.5px; }
@media (max-width: 1000px) { .mn-layout { grid-template-columns: 1fr; } .ms-grid { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 760px) { .mn-art { margin: 0 -6px; padding: 2px; } .ms-grid { max-width: none; } .ms-head h3 { font-size: 21px; } .mn-cta { width: 100%; justify-content: center; } }

/* Admin › Shepherd Messaging & Wireless (Nov 14): teal and bright purple */
.mw-page { --pp: #c38bff; --pp-soft: #dccbff; }
.mw-head { margin-bottom: 14px; }
.mw-kicker { display: inline-flex; align-items: center; gap: 8px; color: #3dfff1; font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.mw-title { background: linear-gradient(90deg, #3dfff1, #c38bff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mw-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 20px; padding-bottom: 2px; }
.mw-tabs::-webkit-scrollbar { display: none; }
.mw-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 14px; }
.mw-tabs a:hover { text-decoration: none; border-color: rgba(195, 139, 255, 0.5); color: var(--pp-soft); }
.mw-tabs a.active { background: linear-gradient(90deg, rgba(61, 255, 241, 0.16), rgba(195, 139, 255, 0.22)); border-color: rgba(195, 139, 255, 0.6); color: #fff; }
.mw-btn { background: linear-gradient(90deg, #12c9c2, #9b63ff); color: #fff; border: 0; }
.mw-btn:hover { filter: brightness(1.08); }
.mw-btn:disabled { opacity: 0.5; filter: none; }
/* chat */
.mw-chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; height: calc(100svh - 270px); min-height: 460px; }
.mw-channels { padding: 8px; display: grid; align-content: start; gap: 4px; overflow-y: auto; }
.mw-ch { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; font: inherit; }
.mw-ch:hover { background: rgba(195, 139, 255, 0.07); }
.mw-ch.active { background: linear-gradient(90deg, rgba(61, 255, 241, 0.1), rgba(195, 139, 255, 0.14)); border-color: rgba(195, 139, 255, 0.45); }
.mw-ch-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(195, 139, 255, 0.14); color: var(--pp); font-weight: 800; flex: none; }
.mw-ch-text { display: grid; gap: 2px; min-width: 0; } .mw-ch-text small { color: var(--text-3); font-size: 12.5px; }
.mw-thread { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mw-thread-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--pp-soft); }
.mw-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mw-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 80%; }
.mw-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.mw-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: #1b0f33; background: linear-gradient(135deg, #3dfff1, #c38bff); }
.mw-av.sm { width: 30px; height: 30px; font-size: 11px; }
.mw-bub { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(195, 139, 255, 0.12); border: 1px solid rgba(195, 139, 255, 0.3); }
.mw-msg.mine .mw-bub { border-radius: 16px 16px 4px 16px; background: rgba(61, 255, 241, 0.1); border-color: rgba(61, 255, 241, 0.35); }
.mw-meta { font-size: 12px; color: var(--text-3); margin-bottom: 3px; } .mw-meta b { color: var(--pp-soft); }
.mw-msg.mine .mw-meta b { color: #9ff7ef; }
.mw-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.mw-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); }
.mw-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 180px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(2, 12, 15, 0.7); color: var(--text); font: inherit; }
.mw-compose textarea:focus { outline: none; border-color: rgba(195, 139, 255, 0.6); box-shadow: 0 0 0 3px rgba(195, 139, 255, 0.15); }
.mw-send { background: linear-gradient(90deg, #12c9c2, #9b63ff); color: #fff; border: 0; min-height: 44px; }
/* text */
.mw-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid rgba(195, 139, 255, 0.45); background: rgba(195, 139, 255, 0.08); color: var(--pp); }
.mw-line.on { border-color: rgba(61, 255, 241, 0.5); background: rgba(61, 255, 241, 0.07); color: #3dfff1; }
.mw-line div { display: grid; gap: 2px; } .mw-line span { color: var(--pp-soft); font-size: 14px; }
.mw-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.mw-add-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 10px; }
.mw-contacts { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--border); }
.mw-contact { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.mw-contact > div { display: grid; flex: 1; min-width: 0; }
.mw-grp { font-size: 12px; font-weight: 600; color: var(--pp); border: 1px solid rgba(195, 139, 255, 0.4); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.mw-sent-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.mw-sent-body { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; display: grid; gap: 4px; }
/* wireless and planned */
.mw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mw-plan { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(6, 29, 36, 0.7); color: var(--pp-soft); display: grid; gap: 4px; }
.mw-plan.featured { border-color: rgba(244, 181, 74, 0.55); }
.mw-plan-name { color: var(--pp); font-weight: 700; font-size: 18px; }
.mw-plan-price { font-family: var(--font-display); font-size: 30px; color: #ecdfff; } .mw-plan-price span { font-size: 13px; color: var(--text-3); margin-left: 6px; }
.mw-plan-n { margin-top: 6px; color: #3dfff1; } .mw-plan-n b { font-size: 18px; }
.mw-planned { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mw-list { list-style: none; margin: 0; padding: 16px 20px; display: grid; gap: 12px; }
.mw-list li { display: flex; gap: 10px; color: var(--pp-soft); line-height: 1.45; }
.mw-list li svg { flex: none; color: #3dfff1; margin-top: 2px; }
.mw-step { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: #1b0f33; background: linear-gradient(135deg, #3dfff1, #c38bff); }
@media (max-width: 1000px) { .mw-text, .mw-planned { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mw-chat { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .mw-channels { display: flex; overflow-x: auto; padding: 6px; gap: 6px; scrollbar-width: none; }
  .mw-channels::-webkit-scrollbar { display: none; }
  .mw-ch { flex: none; padding: 8px 12px; } .mw-ch small { display: none; } .mw-ch-ico { width: 22px; height: 22px; }
  .mw-thread { height: calc(100svh - 300px); min-height: 420px; }
  .mw-msg { max-width: 92%; }
  .mw-add-row { grid-template-columns: 1fr; }
  .mw-plans { grid-template-columns: 1fr; }
  .mw-contact { padding: 10px 14px; }
}
/* the long "Shepherd Messaging & Wireless" menu name wraps instead of widening the menu (Nov 14) */
.side-nav a.pillar-link > span:first-of-type { white-space: normal; line-height: 1.25; min-width: 0; }

/* Join the network › getting your server on the grid (Nov 14): we send one, we connect yours, or just plug in a drive */
.join-ways { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.jw-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--text); }
.jw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jw-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(2, 17, 22, 0.55); border: 1px solid rgba(61, 255, 241, 0.28); }
.jw-card:first-child { border-color: rgba(244, 181, 74, 0.5); }
.jw-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #3dfff1; background: rgba(61, 255, 241, 0.08); border: 1px solid rgba(61, 255, 241, 0.35); }
.jw-card:first-child .jw-ico { color: var(--gold); background: rgba(244, 181, 74, 0.08); border-color: rgba(244, 181, 74, 0.45); }
.jw-card h4 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.jw-card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) { .jw-grid { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 760px) { .jw-title { font-size: 19px; } .jw-card { padding: 14px; } }
/* Shepherd Coin console (Nov 14) */
.mw-line.err { border-color: rgba(255, 120, 120, 0.5); background: rgba(255, 90, 90, 0.07); color: #ffb4a8; }
.mw-line .loading { margin: 0; color: #9ff7ef; }
.mw-plan .mono, .mw-page a.mono { color: #9ff7ef; }

/* ShepherdGrid Missions (Nov 14): big church servers feeding mini servers that share the Gospel over local Wi-Fi */
.gm-band { border-radius: 26px; padding: 40px; border: 1px solid rgba(244, 181, 74, 0.35);
  background: radial-gradient(900px 420px at 85% 0%, rgba(244, 181, 74, 0.09), transparent 70%), radial-gradient(800px 420px at 0% 100%, rgba(0, 245, 232, 0.08), transparent 70%), linear-gradient(180deg, rgba(7, 33, 40, 0.6), rgba(3, 18, 22, 0.9)); }
.gm .section-head .caps { color: var(--gold); }
.gm .section-head p { max-width: 820px; }
.gm-art { margin: 22px 0 6px; border-radius: 20px; border: 1px solid var(--border); background: rgba(2, 14, 18, 0.65); padding: 10px; }
.gm-svg { display: block; width: 100%; height: auto; }
.gm-svg.tall { display: none; }
.gm-svg.wide { max-width: 860px; margin: 0 auto; }
.gm-svg .gm-head { fill: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body, inherit); }
.gm-svg .gm-link { fill: none; stroke: rgba(244, 181, 74, 0.4); stroke-width: 1.6; }
.gm-svg .gm-link.b { stroke: rgba(61, 255, 241, 0.32); stroke-dasharray: 4 4; }
.gm-svg .gm-pkt.g { fill: #ffd27a; filter: drop-shadow(0 0 6px rgba(244, 181, 74, 0.9)); }
.gm-svg .gm-pkt.t { fill: #3dfff1; filter: drop-shadow(0 0 6px rgba(61, 255, 241, 0.9)); }
.gm-svg .gm-big rect { fill: #10242a; stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 12px rgba(244, 181, 74, 0.35)); }
.gm-svg .gm-big path { stroke: rgba(244, 181, 74, 0.8); stroke-width: 2.4; stroke-linecap: round; }
.gm-svg .gm-mini rect { fill: #0b2026; stroke: #3dfff1; stroke-width: 1.6; }
.gm-svg .gm-mini circle { fill: #3dfff1; filter: drop-shadow(0 0 5px rgba(61, 255, 241, 0.9)); }
.gm-svg text { fill: #e6f5f4; font-size: 12.5px; font-weight: 600; font-family: var(--font-body, inherit); paint-order: stroke; stroke: #04181d; stroke-width: 4px; stroke-linejoin: round; }
.gm-svg .gm-head { stroke-width: 0; }
.gm-svg .gm-wave { fill: none; stroke: rgba(61, 255, 241, 0.55); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: gm-wave 2.6s ease-out infinite; }
.gm-svg .gm-phone { fill: #0b2026; stroke: rgba(230, 245, 244, 0.7); stroke-width: 1; }
@keyframes gm-wave { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-svg .gm-wave { animation: none; opacity: 0.4; } }
.gm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.gm-step { position: relative; padding: 20px; border-radius: 16px; background: rgba(2, 17, 22, 0.55); border: 1px solid var(--border); color: #3dfff1; }
.gm-step h3 { color: var(--text); font-size: 17.5px; margin: 10px 0 6px; }
.gm-step p { color: var(--text-2); margin: 0; font-size: 14.5px; line-height: 1.5; }
.gm-n { position: absolute; right: 16px; top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: rgba(244, 181, 74, 0.35); }
.gm-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 900px) { .gm-steps { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .gm-band { padding: 24px 16px; border-radius: 20px; }
  .gm-svg.wide { display: none; } .gm-svg.tall { display: block; }
  .gm-art { padding: 6px; }
  .gm-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Admin › Shepherd Mail (Nov 14): Info, Admin, Network, Contact and Legal in one Inbox */
.sm-boxes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.sm-boxes::-webkit-scrollbar { display: none; }
.sm-box { flex: none; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(6, 29, 32, 0.6); color: var(--text); cursor: pointer; font: inherit; }
.sm-box small { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; }
.sm-box:hover { border-color: var(--border-strong); }
.sm-box.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.sm-badge { justify-self: start; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: #1d1405; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.sm-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sm-folders { display: flex; gap: 6px; }
.sm-search { flex: 1; min-width: 180px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(2, 13, 15, 0.7); color: var(--text); font: inherit; }
.sm-split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 14px; height: calc(100svh - 310px); min-height: 480px; }
.sm-list { overflow-y: auto; min-height: 0; }
.sm-read { overflow-y: auto; min-height: 0; }
.sm-rows { display: grid; }
.sm-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text-2); cursor: pointer; font: inherit; }
.sm-row:hover { background: rgba(8, 40, 44, 0.5); }
.sm-row.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.sm-row.unread { color: var(--text); }
.sm-row.unread b, .sm-row.unread .sm-subj { font-weight: 700; color: var(--text); }
.sm-row.unread .sm-av { box-shadow: 0 0 0 2px var(--gold); }
.sm-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #04211f; background: linear-gradient(135deg, var(--accent), var(--gold)); }
.sm-av.lg { width: 42px; height: 42px; font-size: 14px; }
.sm-row-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sm-row-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.sm-row-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sm-subj, .sm-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-subj { color: var(--text); font-size: 14.5px; }
.sm-prev { color: var(--text-3); font-size: 13px; }
.sm-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px; }
.sm-msg { padding: 16px 20px 24px; }
.sm-msg-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sm-back { display: none; }
.sm-msg-subj { font-size: 22px; margin: 0 0 12px; overflow-wrap: anywhere; }
.sm-msg-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.sm-atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sm-att { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); font-size: 13.5px; }
.sm-att:hover { border-color: var(--accent); text-decoration: none; }
.sm-body { margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; color: var(--text); font-size: 15px; }
.sm-from { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) {
  .sm-split { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .sm-split .sm-read { display: none; }
  .sm-split.reading .sm-list { display: none; }
  .sm-split.reading .sm-read { display: block; }
  .sm-back { display: inline-flex; }
  .sm-list { max-height: none; }
}
@media (max-width: 760px) { .sm-box { padding: 8px 12px; } .sm-box small { display: none; } .sm-tools .sm-search { order: 3; flex-basis: 100%; } }

/* ---- Homepage: every service showcased (Nov 14, David: "All the new features ... need to be showcased on the homepage") */
.sx-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.sx-jump { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(195, 139, 255, 0.38); background: rgba(195, 139, 255, 0.06); color: var(--pp-soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sx-jump svg { color: #3dfff1; }
.sx-jump:hover { border-color: #c38bff; background: rgba(195, 139, 255, 0.14); color: #fff; }
#svc-wireless, #svc-messaging, .sx-wrap, #missions, #security { scroll-margin-top: 84px; }
.sx-wrap { margin-top: 26px; }
.sx-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #3dfff1; margin-bottom: 4px; }
.ct-soon.ok { color: var(--green); border-color: rgba(58, 214, 156, 0.5); }
.ct-soon.test { color: #8ffcf9; border-color: rgba(61, 255, 241, 0.45); }
.ct-soon.plan { color: #c38bff; border-color: rgba(195, 139, 255, 0.5); }
.sx-layout.flip .sx-art { order: 2; }
.sx-art { min-width: 0; }
.sx-svg { display: block; width: 100%; height: auto; }
.sx-svg text { font-family: var(--font-body, inherit); font-size: 12px; font-weight: 600; fill: #dccbff; paint-order: stroke; stroke: #04181d; stroke-width: 4px; stroke-linejoin: round; }
.sx-svg text.a { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; fill: #f1e8ff; }
.sx-svg text.b { font-size: 11px; fill: #9cc2c0; font-weight: 500; }
.sx-svg .sx-l { fill: none; stroke: rgba(61, 255, 241, 0.42); stroke-width: 1.8; }
.sx-svg .sx-l.master { stroke: rgba(244, 181, 74, 0.6); stroke-dasharray: 5 4; }
.sx-svg .sx-l.alt { stroke: rgba(195, 139, 255, 0.7); stroke-dasharray: 6 5; animation: sx-dash 1.4s linear infinite; }
.sx-svg .sx-l.ok { stroke: rgba(58, 214, 156, 0.7); }
.sx-svg .sx-l.bad { stroke: rgba(242, 86, 110, 0.55); stroke-dasharray: 3 6; }
.sx-svg .sx-pk.t { fill: #3dfff1; filter: drop-shadow(0 0 5px rgba(61, 255, 241, 0.9)); }
.sx-svg .sx-pk.p { fill: #c38bff; filter: drop-shadow(0 0 5px rgba(195, 139, 255, 0.9)); }
.sx-svg .sx-pk.g { fill: #ffd27a; filter: drop-shadow(0 0 6px rgba(244, 181, 74, 0.9)); }
.sx-svg .sx-master rect, .sx-svg .sx-ny rect, .sx-svg .sx-wal rect { fill: #0a1f26; stroke: rgba(244, 181, 74, 0.6); stroke-width: 1.4; }
.sx-svg .sx-wal rect { stroke: rgba(195, 139, 255, 0.55); }
.sx-svg .sx-local rect { fill: rgba(61, 255, 241, 0.03); stroke: rgba(61, 255, 241, 0.25); stroke-dasharray: 4 5; }
.sx-svg .sx-local text { fill: #8ffcf9; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.sx-svg .sx-church circle { fill: #12082a; stroke: #c38bff; stroke-width: 2; filter: drop-shadow(0 0 12px rgba(195, 139, 255, 0.55)); }
.sx-svg .sx-br rect { fill: #0b2026; stroke: rgba(61, 255, 241, 0.7); stroke-width: 1.3; }
.sx-svg .sx-br > circle:not(.sx-wave) { fill: #3dfff1; }
.sx-svg .sx-wave { fill: none; stroke: rgba(61, 255, 241, 0.5); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: sx-wave 2.8s ease-out infinite; }
.sx-svg .sx-off path { stroke: rgba(242, 86, 110, 0.6); stroke-width: 1.4; stroke-dasharray: 3 4; }
.sx-svg .sx-off text { fill: #ffb3bf; font-size: 11px; }
.sx-svg .sx-site rect { fill: #0a1f26; stroke: rgba(61, 255, 241, 0.6); stroke-width: 1.4; }
.sx-svg .sx-x circle { fill: #2a0b12; stroke: #f2566e; stroke-width: 1.6; }
.sx-svg .sx-x path { stroke: #ff8b9c; stroke-width: 2; stroke-linecap: round; }
.sx-svg .sx-isp text { fill: #ffb3bf; font-size: 11px; }
.sx-svg .sx-tower { fill: none; stroke: #c38bff; stroke-width: 2; stroke-linecap: round; }
.sx-svg .sx-net ellipse { fill: rgba(58, 214, 156, 0.08); stroke: rgba(58, 214, 156, 0.6); stroke-width: 1.4; }
.sx-svg .sx-coin .halo { fill: rgba(244, 181, 74, 0.1); animation: sx-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sx-svg .sx-coin .rim { fill: none; stroke: rgba(255, 240, 200, 0.6); stroke-width: 1.4; stroke-dasharray: 2 3; }
.sx-svg .sx-coin .crook { fill: none; stroke: #3b2405; stroke-width: 5; stroke-linecap: round; }
.sx-svg .sx-ledger > rect { fill: #071a20; stroke: rgba(61, 255, 241, 0.4); stroke-width: 1.2; }
.sx-svg .sx-ledger .row { opacity: 0.35; animation: sx-row 3.6s ease-in-out infinite; }
.sx-svg .sx-ledger .row rect { fill: rgba(61, 255, 241, 0.08); stroke: rgba(61, 255, 241, 0.35); }
.sx-svg .sx-ledger .row text { font-family: var(--mono); font-size: 10.5px; fill: #8ffcf9; stroke-width: 0; }
@keyframes sx-dash { to { stroke-dashoffset: -22; } }
@keyframes sx-wave { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes sx-pulse { 50% { transform: scale(1.08); opacity: 0.6; } }
@keyframes sx-row { 0%, 100% { opacity: 0.35; } 20%, 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sx-svg .sx-l.alt, .sx-svg .sx-wave, .sx-svg .sx-coin .halo, .sx-svg .sx-ledger .row { animation: none; opacity: 1; } }
/* Shepherd Mail mock inbox */
.sx-mail, .sx-bank { padding: 18px; display: grid; gap: 14px; color: var(--text); }
.sx-mail-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-mail-boxes span { padding: 6px 11px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 700; font-size: 13.5px; color: var(--pp-soft); }
.sx-mail-boxes span i { font-style: normal; font-weight: 500; color: var(--text-3); }
.sx-mail-boxes span.on { border-color: #c38bff; background: rgba(195, 139, 255, 0.12); color: #fff; }
.sx-mail-rows { display: grid; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sx-mail-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(2, 17, 22, 0.55); min-width: 0; }
.sx-mail-row:last-child { border-bottom: 0; }
.sx-mail-row > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.sx-mail-row b { font-size: 14px; font-weight: 600; color: var(--text-2); }
.sx-mail-row em { font-style: normal; font-size: 13.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-mail-row.unread b, .sx-mail-row.unread em { color: var(--text); font-weight: 700; }
.sx-mail-row small { color: var(--text-3); font-size: 12px; flex: none; }
.sx-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #04211f; background: linear-gradient(135deg, #3dfff1, #c38bff); }
.sx-mail-row.unread .sx-av { box-shadow: 0 0 0 2px var(--gold); }
.sx-mail-foot { display: flex; align-items: center; gap: 8px; color: var(--pp-dim); font-size: 13px; }
.sx-mail-foot svg { color: #3dfff1; flex: none; }
/* Shepherd Backups chain */
.sx-chain { padding: 22px 18px; display: grid; gap: 6px; justify-items: center; }
.sx-step { width: min(100%, 340px); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(2, 17, 22, 0.6); }
.sx-step-ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #3dfff1; background: rgba(61, 255, 241, 0.08); border: 1px solid rgba(61, 255, 241, 0.35); }
.sx-step b { color: var(--pp); font-size: 15.5px; }
.sx-step small { color: var(--pp-dim); font-size: 13px; }
.sx-arrow { position: relative; width: 2px; height: 22px; background: linear-gradient(#3dfff1, #c38bff); overflow: hidden; }
.sx-arrow i { position: absolute; left: -2px; width: 6px; height: 8px; border-radius: 3px; background: #fff; animation: sx-drop 1.6s linear infinite; }
@keyframes sx-drop { from { top: -8px; } to { top: 22px; } }
.sx-restore { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-weight: 600; font-size: 14px; }
/* Shepherd Banking giving card */
.sx-bank-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sx-bank-top small { display: block; color: var(--pp-dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.sx-bank-top b { display: block; font-family: var(--font-display); font-size: 40px; letter-spacing: -0.03em; color: #ecdfff; text-shadow: 0 0 22px rgba(195, 139, 255, 0.45); }
.sx-bank-top span { color: var(--text-2); font-size: 13.5px; }
.sx-bank-badge { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(58, 214, 156, 0.45); color: var(--green) !important; font-weight: 600; }
.sx-bank-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 0 2px; }
.sx-bank-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #c38bff, rgba(61, 255, 241, 0.55)); }
.sx-bank-rows { display: grid; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sx-bank-rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; background: rgba(2, 17, 22, 0.55); }
.sx-bank-rows div:last-child { border-bottom: 0; }
.sx-bank-rows em { font-style: normal; color: var(--text-3); font-size: 12.5px; }
.sx-bank-rows b { font-family: var(--mono); color: var(--text); }
/* Security and care tiles */
.sx-sec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(6, 29, 36, 0.85), rgba(3, 18, 22, 0.95)); }
.sx-tile h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--pp); }
.sx-tile p { margin: 0; color: var(--pp-soft); font-size: 14px; line-height: 1.45; flex: 1; }
.sx-tile .ct-soon { align-self: flex-start; font-size: 10.5px; }
.sx-tile-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #3dfff1; background: rgba(61, 255, 241, 0.08); border: 1px solid rgba(61, 255, 241, 0.35); }
@media (max-width: 1100px) { .sx-sec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sx-layout.flip .sx-art { order: 0; } }
@media (max-width: 760px) {
  .sx-jumps { gap: 6px; margin-bottom: 18px; }
  .sx-jump { padding: 7px 11px; font-size: 13px; }
  .sx-sec { grid-template-columns: 1fr; gap: 10px; }
  .sx-mail, .sx-bank { padding: 12px; }
  .sx-bank-top b { font-size: 32px; }
  .sx-svg text { font-size: 13px; }
}
/* Master sites: live, and tappable for admins (Nov 14) */
a.master-row.clickable { cursor: pointer; }
a.master-row.clickable:hover .m-ico { border-color: var(--accent); }
.master-row .m-go { color: var(--text-3); margin-left: 6px; display: inline-flex; }
a.card.stat { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card.stat:hover { border-color: var(--accent); transform: translateY(-1px); }
a.card.stat .stat-go { position: absolute; top: 14px; right: 14px; color: var(--text-3); }

/* ---- One page per service (Nov 14, David): the service bar under the header, page heroes, the homepage service grid */
.svc-bar { border-top: 1px solid var(--border); }
.svc-bar-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.svc-bar-in::-webkit-scrollbar { display: none; }
.svc-bar a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 11px 13px; color: var(--text-2); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.svc-bar a svg { color: var(--text-3); }
.svc-bar a:hover { color: var(--text); text-decoration: none; }
.svc-bar a.active { color: var(--text); border-bottom-color: var(--gold); }
.svc-bar a.active svg { color: var(--gold); }
.site-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 8px; }
.site-menu-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14.5px; }
.site-menu-grid a svg { color: var(--accent); flex: none; }
.site-menu-grid a.active { border-color: var(--gold); }
.site-menu-grid a:hover { text-decoration: none; border-color: var(--accent); }
@media (max-width: 760px) {
  .svc-bar-in { padding: 0 10px; }
  .svc-bar a { padding: 10px 10px; font-size: 13.5px; }
  .site-nav { display: none; }
}
.svc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(60% 120% at 85% 0%, rgba(195, 139, 255, 0.16), transparent 60%), radial-gradient(70% 120% at 10% 100%, rgba(0, 192, 245, 0.14), transparent 60%), var(--bg-deep); }
.svc-hero-in { max-width: var(--max); margin: 0 auto; padding: 44px 32px 46px; }
.svc-crumb { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.svc-crumb a { color: var(--text-2); }
.svc-hero-row { display: flex; gap: 18px; align-items: center; }
.svc-hero-ico { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; flex: none; color: var(--accent); background: rgba(0, 245, 232, 0.08); border: 1px solid rgba(0, 245, 232, 0.35); box-shadow: 0 0 34px rgba(0, 245, 232, 0.18); }
.svc-title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 8px; color: var(--text); font-weight: 600; }
.svc-title b { font-weight: 700; background: linear-gradient(90deg, var(--accent), #c38bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-lead { max-width: 820px; font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 18px 0 24px; }
.svc-page .ct-wrap > .ct-head { display: none; }
.svc-page .sx-wrap:first-child, .svc-page .ct-wrap:first-child { margin-top: 0; }
@media (max-width: 760px) { .svc-hero-in { padding: 26px 16px 30px; } .svc-hero-ico { width: 54px; height: 54px; border-radius: 16px; } .svc-lead { font-size: 16.5px; } }
.sg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sg-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-2);
  background: linear-gradient(180deg, rgba(8, 35, 42, 0.9), rgba(3, 18, 22, 0.95)); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.sg-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 245, 232, 0.08); }
.sg-card b { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; color: var(--text); }
.sg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-card-top .ct-soon { font-size: 10.5px; }
.sg-card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: rgba(0, 245, 232, 0.08); border: 1px solid rgba(0, 245, 232, 0.3); }
.sg-card.soon .sg-card-ico { color: #c38bff; background: rgba(195, 139, 255, 0.08); border-color: rgba(195, 139, 255, 0.35); }
.sg-card-txt { font-size: 14.5px; line-height: 1.5; flex: 1; }
.sg-card-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 14px; }
.sg-global { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sg-global-item { display: grid; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: rgba(2, 17, 22, 0.6); color: var(--text-2); font-size: 14px; }
.sg-global-item svg { color: var(--gold); }
.sg-global-item b { font-family: var(--font-display); font-size: 24px; color: var(--text); letter-spacing: -0.02em; }
@media (max-width: 900px) { .sg-global { grid-template-columns: 1fr 1fr; } }
.guard { padding: 30px; border-radius: 24px; border: 1px solid rgba(244, 181, 74, 0.35); background: radial-gradient(80% 140% at 0% 0%, rgba(244, 181, 74, 0.1), transparent 60%), var(--panel); }
.guard .caps { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.guard h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.4vw, 40px); }
.guard p { color: var(--text-2); font-size: 17px; max-width: 860px; margin: 0; }
.sg-teaser { display: grid; gap: 8px; padding: 30px; border-radius: 24px; border: 1px solid rgba(244, 181, 74, 0.4); color: var(--text-2);
  background: radial-gradient(70% 140% at 100% 0%, rgba(244, 181, 74, 0.14), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(0, 192, 245, 0.1), transparent 60%), var(--panel); }
.sg-teaser:hover { text-decoration: none; border-color: var(--gold); }
.sg-teaser .caps { color: var(--gold); }
.sg-teaser b { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); color: var(--text); letter-spacing: -0.03em; }
.sx-site { padding: 14px; display: grid; gap: 12px; }
.sx-site-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(127, 127, 127, 0.12); font-size: 12.5px; color: var(--text-2); }
.sx-site-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); opacity: 0.6; }
.sx-site-bar span { margin-left: 8px; display: inline-flex; gap: 5px; align-items: center; }
.sx-site-hero { display: grid; gap: 4px; padding: 26px 20px; border-radius: 14px; background: linear-gradient(135deg, #0b3a44, #12203f); color: #fff; }
.sx-site-hero b { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.sx-site-hero span { opacity: 0.85; }
.sx-site-hero em { font-style: normal; justify-self: start; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #1d1300; font-weight: 700; font-size: 13px; }
.sx-site-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-site-cols div { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: rgba(127, 127, 127, 0.1); font-size: 13px; font-weight: 600; color: var(--text); }
.sx-site-cols svg { color: var(--accent); }

/* Admin › Shepherd Connect (Nov 14) */
.cx-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1000px) { .cx-grid { grid-template-columns: 1fr; } }
.cx-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.cx-day { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; position: relative; padding-bottom: 18px; }
.cx-day span { width: 42%; min-height: 2px; border-radius: 4px 4px 1px 1px; }
.cx-day .m { background: linear-gradient(180deg, var(--accent), rgba(0, 192, 245, 0.4)); }
.cx-day .j { background: var(--gold); }
.cx-day small { position: absolute; bottom: 0; font-size: 11px; color: var(--text-3); }
.cx-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.cx-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.cx-key i.j { background: var(--gold); } .cx-key i.m { background: var(--accent); }
.cx-off { opacity: 0.55; }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.cx-quote { padding: 6px 10px; border-left: 3px solid var(--gold); background: var(--panel-2); border-radius: 6px; margin-top: 6px; }
.cx-menu { display: grid; gap: 8px; }
.cx-menu .btn { justify-content: flex-start; }
.cx-page .cell-name .avatar.sm { width: 32px; height: 32px; font-size: 12px; }

/* Admin › Shepherd Servers: Needs attention (Nov 14) */
.sv-alerts { margin-bottom: 18px; }
.sv-alerts:empty { display: none; }
.sv-list { display: grid; }
.sv-line { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.sv-alerts > .sv-line { border-top: 0; border-radius: var(--radius); }
.sv-line:hover { text-decoration: none; background: var(--panel-hover); }
.sv-line > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sv-line b { font-weight: 600; }
.sv-line span { color: var(--text-2); font-size: 14px; }
.sv-line > svg:first-child { flex: none; }
.sv-line.critical > svg:first-child { color: var(--red); }
.sv-line.warning > svg:first-child { color: var(--amber); }
.sv-line.ok > svg:first-child { color: var(--green); }
.sv-line.critical { box-shadow: inset 3px 0 0 var(--red); }
.sv-line.warning { box-shadow: inset 3px 0 0 var(--amber); }
.sv-line.ok { background: var(--green-soft); }
