:root {
  --ink:#1B2340; --ink-soft:#4B5268; --paper:#FBF7EE; --paper-alt:#F3ECDB;
  --card:#FFFFFF; --rule:#DCD2B8; --gold:#B4894F; --gold-dark:#8C6A38;
  --sage:#4F6F52; --teal:#35636B; --umber:#7A5230; --burgundy:#7B3B3B;
  --chrome:#1B2340;
  --tint-sage:#E8F0E6; --tint-gold:#F5EDE0; --tint-burgundy:#F6E7E7;
  --tint-teal:#E3ECED; --tint-umber:#EFE2D0;
  --shadow: 0 2px 10px rgba(27,35,64,0.06), 0 1px 2px rgba(27,35,64,0.08);
  --star-c: #B4894F; --star-op-1: 0.4; --star-op-2: 0.24;
}
body.nc-dark {
  --ink:#EDEAE0; --ink-soft:#9BA0BE; --paper:#12162A; --paper-alt:#1B2038;
  --card:#1A1E36; --rule:#2C3152; --gold:#D3A66C; --gold-dark:#E3C08C;
  --sage:#7FAE83; --teal:#6FB0BC; --umber:#D2A176; --burgundy:#E2897F;
  --tint-sage:rgba(127,174,131,0.16); --tint-gold:rgba(211,166,108,0.16); --tint-burgundy:rgba(226,137,127,0.16);
  --tint-teal:rgba(111,176,188,0.16); --tint-umber:rgba(210,161,118,0.16);
  --shadow: 0 4px 18px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
  --star-c: #F3EFE3; --star-op-1: 0.85; --star-op-2: 0.5;
  background:#12162A;
}
#nc-app, .nc-login-wrap {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
#nc-app *, .nc-login-wrap *{ box-sizing:border-box; }
/* .ncp-fab, .ncp-sidebar, and .ncp-backdrop get physically moved to be
   direct children of <body> (see portal.js) so they stay truly fixed to
   the viewport even inside a transformed page-builder wrapper. Once
   relocated they're no longer matched by "#nc-app *" above, so they need
   their own box-sizing reset here — otherwise a bare <button> falls back
   to its native padding/appearance, which is what was distorting the FAB
   into an oval and hiding its icon under native button chrome. */
.ncp-fab, .ncp-fab *, .ncp-sidebar, .ncp-sidebar *, .ncp-backdrop{ box-sizing:border-box; }
#nc-app h1,#nc-app h2,#nc-app h3, .nc-login-brand{ font-family:'Fraunces', Georgia, serif; color:var(--ink) !important; }
#nc-app .ncp-mono, .nc-login-wrap .ncp-mono{ font-family:'JetBrains Mono', monospace; }
#nc-app button{ font-family:'Inter',sans-serif; cursor:pointer; }
#nc-app input, #nc-app select, #nc-app textarea{ font-family:'Inter',sans-serif; }

/* ---- login screen ---- */
.nc-login-wrap{
  min-height:100vh; width:100vw; position:relative; left:50%; margin-left:-50vw;
  display:flex; align-items:center; justify-content:center; padding:24px; background:var(--paper);
  overflow:hidden;
  /* Guarantees room for the cat animation (which sits above the card, see
     .nc-login-cat below) on every screen size — without this, a shorter
     viewport (tablets, laptops) can center the card high enough that the
     wrap's own overflow:hidden clips the cat's top. */
  padding-top:150px;
}
/* Twinkling star field: two decorative pseudo-elements, purely visual.
   - pointer-events:none + z-index:0 (below the card, which gets z-index:1)
     means they can never intercept a click or affect any real element.
   - No new DOM nodes, no JS: this can't break existing functionality
     because nothing else references or depends on these layers.
   - inset:-20% gives the drift animation room to move without ever
     revealing an edge/seam within the visible viewport. */
.nc-login-wrap::before, .nc-login-wrap::after{
  content:''; position:absolute; inset:-20%; pointer-events:none; z-index:0; background-repeat:repeat;
}
.nc-login-wrap::before{
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, var(--star-c), transparent 100%),
    radial-gradient(1.2px 1.2px at 32% 52%, var(--star-c), transparent 100%),
    radial-gradient(1.8px 1.8px at 58% 8%,  var(--star-c), transparent 100%),
    radial-gradient(1.3px 1.3px at 74% 64%, var(--star-c), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 34%, var(--star-c), transparent 100%),
    radial-gradient(1.1px 1.1px at 6%  82%, var(--star-c), transparent 100%),
    radial-gradient(1.7px 1.7px at 46% 90%, var(--star-c), transparent 100%),
    radial-gradient(1.4px 1.4px at 96% 78%, var(--star-c), transparent 100%);
  background-size:340px 340px;
  opacity:var(--star-op-1);
  animation: nc-star-drift-a 140s linear infinite, nc-star-twinkle-a 4.5s ease-in-out infinite alternate;
}
.nc-login-wrap::after{
  background-image:
    radial-gradient(1px 1px at 20% 30%,   var(--star-c), transparent 100%),
    radial-gradient(1px 1px at 66% 46%,   var(--star-c), transparent 100%),
    radial-gradient(1.3px 1.3px at 82% 14%, var(--star-c), transparent 100%),
    radial-gradient(1px 1px at 14% 66%,   var(--star-c), transparent 100%),
    radial-gradient(1.2px 1.2px at 40% 86%, var(--star-c), transparent 100%),
    radial-gradient(1px 1px at 92% 58%,   var(--star-c), transparent 100%);
  background-size:260px 260px;
  opacity:var(--star-op-2);
  animation: nc-star-drift-b 100s linear infinite reverse, nc-star-twinkle-b 3.2s ease-in-out infinite alternate;
  animation-delay: 0s, 1.4s;
}
@keyframes nc-star-drift-a{ from{ transform:translate(0,0); } to{ transform:translate(-340px,-170px); } }
@keyframes nc-star-drift-b{ from{ transform:translate(0,0); } to{ transform:translate(260px,-130px); } }
@keyframes nc-star-twinkle-a{ from{ opacity:var(--star-op-1); } to{ opacity:calc(var(--star-op-1) * 0.3); } }
@keyframes nc-star-twinkle-b{ from{ opacity:var(--star-op-2); } to{ opacity:calc(var(--star-op-2) * 0.25); } }
@media (prefers-reduced-motion: reduce){
  .nc-login-wrap::before, .nc-login-wrap::after{ animation:none; }
}
/* Shooting stars: dark mode only, purely decorative (aria-hidden in the
   markup, pointer-events:none here too as a second guard). Each one is
   mostly idle — the keyframes only make it visible for a short burst
   near the start of a long cycle — and the three are staggered with
   different durations/delays so they don't line up or feel constant. */
.nc-shooting-stars{ display:none; }
body.nc-dark .nc-shooting-stars{
  display:block; position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;
}
.nc-shoot{
  position:absolute; top:0; left:0; width:2.2px; height:2.2px; border-radius:50%;
  background:#fff; opacity:0;
  box-shadow:0 0 2.5px 0.5px rgba(255,255,255,0.85), 0 0 6px 1.5px rgba(255,255,255,0.25);
}
.nc-shoot::before{
  content:''; position:absolute; top:50%; right:0; transform:translateY(-50%);
  width:260px; height:1px;
  background:linear-gradient(270deg,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.5) 10%,
    rgba(255,255,255,0.24) 28%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.03) 75%,
    rgba(255,255,255,0) 100%);
  clip-path:polygon(100% 0%, 100% 100%, 0% 53%, 0% 47%);
}
/* Distant variant: smaller, thinner, dimmer — reads as further away. */
.nc-shoot-distant{ width:1.2px; height:1.2px; box-shadow:0 0 1.5px 0.3px rgba(255,255,255,0.6); }
.nc-shoot-distant::before{ width:160px; height:0.6px; opacity:0.6; }

.nc-shoot-1{ top:8%;  left:-8%; animation: nc-shoot-fly-1 9s  linear infinite; animation-delay: 1.5s; }
.nc-shoot-2{ top:24%; left:-8%; animation: nc-shoot-fly-2 12s linear infinite; animation-delay: 6s; }
.nc-shoot-3{ top:15%; left:-8%; animation: nc-shoot-fly-3 15s linear infinite; animation-delay: 10.5s; }
.nc-shoot-4{ top:38%; left:-8%; animation: nc-shoot-fly-4 17s linear infinite; animation-delay: 4s; }
.nc-shoot-5{ top:48%; left:-8%; animation: nc-shoot-fly-5 20s linear infinite; animation-delay: 13.5s; }

@keyframes nc-shoot-fly-1{
  0%   { transform:translate(0,0) rotate(22deg); opacity:0; }
  1.5% { opacity:0.4; }
  3%   { transform:translate(14vw,7vh) rotate(22deg); opacity:1; }
  9%   { transform:translate(62vw,30vh) rotate(22deg); opacity:1; }
  14%  { opacity:0.9; }
  18%  { transform:translate(120vw,58vh) rotate(22deg); opacity:0; }
  100% { transform:translate(120vw,58vh) rotate(22deg); opacity:0; }
}
@keyframes nc-shoot-fly-2{
  0%   { transform:translate(0,0) rotate(16deg); opacity:0; }
  1.2% { opacity:0.4; }
  2.5% { transform:translate(11vw,3.6vh) rotate(16deg); opacity:1; }
  7.5% { transform:translate(58vw,19vh) rotate(16deg); opacity:1; }
  11%  { opacity:0.9; }
  15%  { transform:translate(115vw,38vh) rotate(16deg); opacity:0; }
  100% { transform:translate(115vw,38vh) rotate(16deg); opacity:0; }
}
@keyframes nc-shoot-fly-3{
  0%   { transform:translate(0,0) rotate(26deg); opacity:0; }
  1.6% { opacity:0.4; }
  3.2% { transform:translate(12vw,6.5vh) rotate(26deg); opacity:1; }
  10%  { transform:translate(65vw,35vh) rotate(26deg); opacity:1; }
  15%  { opacity:0.9; }
  20%  { transform:translate(125vw,68vh) rotate(26deg); opacity:0; }
  100% { transform:translate(125vw,68vh) rotate(26deg); opacity:0; }
}
@keyframes nc-shoot-fly-4{
  0%   { transform:translate(0,0) rotate(19deg); opacity:0; }
  1%   { opacity:0.3; }
  2.5% { transform:translate(10vw,3.9vh) rotate(19deg); opacity:0.7; }
  11%  { transform:translate(62vw,24vh) rotate(19deg); opacity:0.7; }
  16%  { opacity:0.6; }
  22%  { transform:translate(118vw,46vh) rotate(19deg); opacity:0; }
  100% { transform:translate(118vw,46vh) rotate(19deg); opacity:0; }
}
@keyframes nc-shoot-fly-5{
  0%   { transform:translate(0,0) rotate(24deg); opacity:0; }
  1%   { opacity:0.3; }
  2.5% { transform:translate(10.5vw,5.4vh) rotate(24deg); opacity:0.65; }
  12%  { transform:translate(64vw,33vh) rotate(24deg); opacity:0.65; }
  18%  { opacity:0.55; }
  25%  { transform:translate(122vw,62vh) rotate(24deg); opacity:0; }
  100% { transform:translate(122vw,62vh) rotate(24deg); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .nc-shooting-stars{ display:none !important; }
}
/* Light mode's counterpart to dark mode's starry night: soft, blurred,
   slowly drifting color orbs in the brand's own ribbon palette (gold,
   sage, teal). Hidden in dark mode, where the star field + shooting
   stars carry the effect instead. */
.nc-light-motes{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
body.nc-dark .nc-light-motes{ display:none; }
.nc-mote{ position:absolute; border-radius:50%; filter:blur(20px); animation:nc-mote-drift ease-in-out infinite alternate; }
.nc-mote-1{ width:140px; height:140px; left:6%;  top:10%; background:radial-gradient(circle, rgba(180,137,79,0.38), transparent 70%); animation-duration:15s; }
.nc-mote-2{ width:170px; height:170px; right:4%; top:52%; background:radial-gradient(circle, rgba(79,111,82,0.3), transparent 70%);  animation-duration:19s; animation-delay:2.5s; }
.nc-mote-3{ width:120px; height:120px; left:34%; bottom:5%; background:radial-gradient(circle, rgba(53,99,107,0.32), transparent 70%); animation-duration:17s; animation-delay:5s; }
@keyframes nc-mote-drift{
  0%   { transform:translate(0,0) scale(1);     opacity:0.65; }
  50%  { transform:translate(26px,-20px) scale(1.18); opacity:0.95; }
  100% { transform:translate(-18px,16px) scale(0.92); opacity:0.65; }
}
@media (prefers-reduced-motion: reduce){
  .nc-light-motes{ display:none !important; }
}
/* Chilling-cat animation (dotLottie) — light mode only, purely decorative.
   Lives in a slim shell around the card (not inside .nc-login-card itself)
   because the card has overflow:hidden for its own rounded corners, which
   would otherwise clip the part of the animation that pokes above the top
   edge. */
.nc-login-card-shell{ position:relative; width:100%; max-width:420px; }
.nc-login-cat{ display:none; }
body:not(.nc-dark) .nc-login-cat{
  display:block; position:absolute; bottom:100%; left:50%; transform:translateX(-50%) translateY(6px);
  width:130px; height:130px; z-index:2;
  pointer-events:none;
}
.nc-login-cat dotlottie-wc{ filter:drop-shadow(0 4px 6px rgba(27,35,64,0.18)); }
.nc-login-card{ position:relative; z-index:1; width:100%; max-width:420px; background:var(--card); border-radius:14px; box-shadow:0 20px 50px rgba(27,35,64,0.18); overflow:hidden; }
body.nc-dark .nc-login-card{
  border:1px solid rgba(212,166,108,0.28);
  box-shadow: var(--shadow), 0 0 32px rgba(212,166,108,0.08);
}
.nc-login-ribbon{ height:6px; background:linear-gradient(90deg, var(--gold), var(--sage), var(--teal), var(--umber)); }
.nc-login-body{ padding:36px 32px; }
.nc-login-brand{ font-weight:700; font-size:26px; }
.nc-login-brand-row{ display:flex; align-items:center; gap:10px; }
.nc-login-logo{ height:32px !important; width:auto !important; max-width:110px !important; max-height:32px !important; object-fit:contain; border-radius:4px; flex-shrink:0; }
.nc-login-eyebrow{ font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:2px; color:var(--gold-dark); margin:4px 0 18px; }
.nc-login-note{ font-size:12.5px; color:var(--ink-soft); margin-top:12px; line-height:1.5; }
.nc-login-wrap a:not(.ncp-btn){ color:var(--gold-dark); font-weight:600; text-decoration:none; }
.nc-login-wrap a:not(.ncp-btn):hover{ color:var(--gold); text-decoration:underline; }
.nc-login-wrap form p{ margin:0 0 12px; }
.nc-login-wrap label{ display:block; font-size:12px; font-weight:600; color:var(--ink-soft); margin-bottom:5px; text-transform:uppercase; letter-spacing:0.5px; }
.nc-login-wrap input[type=text], .nc-login-wrap input[type=password], .nc-login-wrap input[type=email], .nc-login-wrap input[type=date]{ width:100%; padding:11px 12px; border:1px solid var(--rule); border-radius:6px; font-size:14px; margin-top:0 !important; margin-bottom:0 !important; }
.nc-login-wrap input[type=submit]{ width:100%; padding:12px; background:var(--chrome); color:#fff; border:none; border-radius:8px; font-weight:600; font-size:14px; cursor:pointer; margin-top:6px; }

.nc-auth-tabs{ display:flex; border-bottom:1px solid var(--rule); margin-bottom:28px !important; }
.nc-login-body .nc-auth-tabs{ margin-bottom:28px !important; }
.nc-auth-tab{ flex:1; text-align:center; padding:9px 0; font-size:13.5px; font-weight:600; color:var(--ink-soft); border-bottom:2px solid transparent; cursor:pointer; }
.nc-auth-tab.active{ color:var(--ink); border-bottom-color:var(--gold); }
.nc-auth-error{ background:#f6e7e7; color:var(--burgundy); font-size:12.5px; padding:9px 12px; border-radius:6px; margin-bottom:14px; }

/* Field-group spacing: controlled entirely by flex `gap`, not margin.
   `gap` only ever comes from these rules — no theme/global label or
   paragraph margin rule can add to or shrink it, so the two numbers
   below (18px between fields, 9px between a label and its control)
   are the only things that ever determine the spacing. */
.nc-auth-pane form{ display:flex; flex-direction:column; gap:18px; }
.nc-auth-pane form [data-ncrolefield]{ display:flex; flex-direction:column; gap:18px; margin:0 !important; }
.nc-auth-pane form p, .nc-auth-pane form .nc-field-group{ display:flex; flex-direction:column; gap:9px; margin:0 !important; }
.nc-auth-pane form p label, .nc-auth-pane form .nc-field-group > label{ display:block !important; font-size:11.5px; font-weight:600; color:var(--ink-soft); margin:0 !important; line-height:1.3 !important; text-transform:uppercase; letter-spacing:0.4px; }
/* This shortcode is rendered inside an Elementor "Text Editor" widget,
   which runs wpautop() on its output and converts the raw line breaks
   in our HTML into <br> tags — after every label, in both forms. Under
   flex-direction:column that <br> becomes its own box plus an extra
   gap around it. Hide every <br> in these forms regardless of source
   (wp_login_form's own markup, or wpautop). This leaves the real
   9px/18px gaps above as the only spacing — it does not remove them. */
.nc-auth-pane br{ display:none !important; }
.nc-segmented{ position:relative; display:flex; gap:3px; background:var(--paper-alt); border:1px solid var(--rule); border-radius:10px; padding:4px; margin:0 !important; }
.nc-segmented-indicator{ position:absolute; top:4px; bottom:4px; left:4px; width:0; border-radius:7px; background:var(--chrome); transition:left .22s cubic-bezier(.4,0,.2,1), width .22s cubic-bezier(.4,0,.2,1); z-index:0; }
body.nc-dark .nc-segmented-indicator{ background:var(--gold); }
body.nc-dark .nc-segmented input[type=radio]:checked + label{ color:var(--chrome); }
.nc-segmented input[type=radio]{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.nc-segmented label{ position:relative; z-index:1; flex:1; text-align:center; padding:9px 6px; border-radius:7px; font-size:12.5px !important; font-weight:600; color:var(--ink-soft); cursor:pointer; text-transform:none !important; letter-spacing:0 !important; margin:0 !important; transition:color .15s ease; white-space:nowrap; }
.nc-segmented label:hover{ color:var(--ink); }
.nc-segmented input[type=radio]:checked + label{ color:#fff; }
.nc-segmented input[type=radio]:focus-visible + label{ outline:2px solid var(--gold); outline-offset:1px; }

@media(max-width:480px){
  .nc-login-wrap{ padding:14px; align-items:flex-start; padding-top:150px; }
  .nc-login-body{ padding:26px 20px; }
  .nc-login-brand{ font-size:22px; }
  .nc-login-logo{ height:26px !important; max-height:26px !important; max-width:90px !important; }
  .nc-login-card{ border-radius:10px; }
}

/* ---- app shell ---- */
#nc-app{
  min-height:100vh; width:100vw;
  position:relative; left:50%; margin-left:-50vw;
  background:var(--paper);
}
.ncp-sidebar{
  width:220px; background:var(--chrome, #1B2340); color:#EDEAE0; padding:24px 0; display:flex; flex-direction:column;
  position:fixed; top:0; left:0; height:100vh; z-index:100;
}
.ncp-sb-brand{ padding:0 20px 18px; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; }
.ncp-sb-brand .mark{ font-family:'Fraunces',serif; font-weight:700; font-size:20px; color:#fff; }
.ncp-sb-brand .tag{ font-size:10.5px; color:#B9BDD1; margin-top:2px; }
.ncp-sb-body{ display:flex; flex-direction:column; flex:1; min-height:0; }
.ncp-sb-nav{ flex:1; overflow-y:auto; }
.ncp-sb-item{ display:flex; align-items:center; gap:11px; padding:10px 20px; font-size:13px; font-weight:500; color:#C7CAD9; cursor:pointer; border-left:3px solid transparent; border-radius:0 8px 8px 0; margin-right:8px; }
.ncp-badge{ background:var(--burgundy); color:#fff; font-size:10px; font-weight:700; min-width:17px; height:17px; line-height:17px; border-radius:9px; display:inline-block; text-align:center; padding:0 4px; margin-left:auto; flex-shrink:0; }
.ncp-sb-item:hover{ background:rgba(255,255,255,0.05); color:#fff; }
.ncp-sb-item.active{ background:rgba(180,137,79,0.15); color:#fff; border-left-color:var(--gold); }
.ncp-sb-foot{ padding:12px 20px 0; border-top:1px solid rgba(255,255,255,0.1); margin-top:10px; }
.ncp-sb-avatar-btn{ background:none; border:none; padding:0; cursor:pointer; }
.ncp-sb-user{ font-size:12.5px; color:#fff; font-weight:600; }
.ncp-sb-role{ font-size:11px; color:#9EA3C0; }
.ncp-sb-logout{ margin-top:10px; font-size:12px; color:#C7CAD9; cursor:pointer; }
#nc-app, .nc-login-wrap, .ncp-sidebar, .ncp-card, .ncp-main{ transition:background-color .2s ease, color .2s ease, border-color .2s ease; }
.ncp-sb-logout:hover{ color:#fff; }
.ncp-settings-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; font-size:12px; color:#C7CAD9; }
.ncp-settings-row:hover{ color:#fff; }
.ncp-switch{ position:relative; width:40px; height:22px; border-radius:20px; background:rgba(255,255,255,0.18); border:none; cursor:pointer; flex-shrink:0; padding:0; transition:background .2s ease; }
.ncp-switch.on{ background:var(--gold); }
.ncp-switch-thumb{ position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .2s ease; box-shadow:0 1px 3px rgba(0,0,0,0.3); }
.ncp-switch.on .ncp-switch-thumb{ transform:translateX(18px); }
.nc-login-darkrow{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; font-size:12px; color:var(--ink-soft); }
.nc-login-darkrow .ncp-switch{ background:var(--rule); }
.nc-login-darkrow .ncp-switch.on{ background:var(--gold); }
.nc-login-darkrow .ncp-switch-thumb{ background:var(--chrome); }

.ncp-fab{ display:none; }
.ncp-fab-badge{ display:none; }
.ncp-backdrop{ display:none; }
.ncp-drawer-close{ display:none; }

.ncp-main{ margin-left:220px; padding:34px 44px; min-width:0; }
.ncp-eyebrow{ font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--gold-dark) !important; margin-bottom:6px; }
.ncp-title{ font-size:26px; font-weight:600; margin:0 0 6px; color:var(--ink) !important; }
.ncp-sub{ color:var(--ink-soft) !important; font-size:13.5px; }

.ncp-grid{ display:grid; gap:16px; }
.ncp-grid-2{ grid-template-columns:1fr 1fr; }
.ncp-grid-3{ grid-template-columns:repeat(3,1fr); }

@media(max-width:780px){
  html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  .ncp-grid-2, .ncp-grid-3{ grid-template-columns:1fr; }
  #nc-app{ width:100vw; }

  /* Narrow columns can't fit a truncated event name legibly — keep the
     color-coded, icon-distinguished chip but drop the text. */
  .ncp-cal-chip{ justify-content:center; padding:3px; }
  .ncp-cal-chip span{ display:none; }
  .ncp-cal-cell{ min-height:56px; }

  /* Small floating round menu button instead of a full-width bar — this is
     deliberately NOT a header: it doesn't span the width, has no wordmark,
     and floats above content like a native app's menu control. */
  .ncp-fab{
    display:flex; align-items:center; justify-content:center;
    position:fixed; bottom:20px; left:20px; width:50px; height:50px;
    border-radius:50%; background:var(--chrome, #1B2340); color:#fff; border:none;
    box-shadow:0 4px 16px rgba(0,0,0,0.35); z-index:60; cursor:pointer;
    padding:0; margin:0; -webkit-appearance:none; appearance:none; line-height:1;
  }
  .ncp-fab.open{ background:var(--burgundy, #7B3B3B); }
  .ncp-fab-badge{ display:block; }
  .ncp-fab-badge{ position:fixed; bottom:56px; left:56px; background:var(--burgundy); color:#fff; font-size:10px; font-weight:700; min-width:17px; height:17px; line-height:17px; border-radius:9px; text-align:center; padding:0 4px; z-index:61; border:2px solid var(--paper); }

  /* Sidebar becomes an off-canvas drawer, hidden until toggled */
  .ncp-sidebar{
    width:80%; max-width:290px;
    transform:translateX(-100%); transition:transform .25s ease;
    z-index:100; box-shadow:4px 0 24px rgba(0,0,0,0.3);
  }
  .ncp-sidebar.open{ transform:translateX(0); }
  .ncp-drawer-close{
    display:flex; align-items:center; justify-content:center;
    width:30px; height:30px; border-radius:50%; border:none;
    background:rgba(255,255,255,0.1); color:#fff; font-size:20px; line-height:1;
    cursor:pointer; padding:0; margin:0; -webkit-appearance:none; appearance:none;
  }

  .ncp-backdrop{
    display:block; position:fixed; inset:0; background:rgba(15,18,32,0.5);
    opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:90;
  }
  .ncp-backdrop.open{ opacity:1; pointer-events:auto; }

  .ncp-main{ margin-left:0; padding:18px 16px 76px; }
  .ncp-title{ font-size:21px; }
  .ncp-eyebrow{ font-size:10px; }
  .ncp-card{ padding:15px; }
  .ncp-card h3{ font-size:13.5px; }
  .ncp-table{ font-size:12px; }
  .ncp-table th, .ncp-table td{ padding:7px; }
  .ncp-rhythm-row{ flex-direction:column; align-items:flex-start; gap:8px; }
  .ncp-rhythm-label{ width:auto; }
  .ncp-rhythm-beads{ width:100%; }
  .ncp-bead{ width:24px; height:24px; font-size:9px; }
  .ncp-bead-single{ width:28px; height:28px; }
}
@media(max-width:420px){
  .ncp-main{ padding:14px 12px 36px; }
  .ncp-title{ font-size:19px; }
  .ncp-bead{ width:21px; height:21px; font-size:8px; }
}

.ncp-card{ background:var(--card); border:1px solid var(--rule); border-radius:10px; padding:20px; box-shadow:var(--shadow); margin-bottom:16px; }
.ncp-card h3{ margin:0 0 12px; font-size:14.5px; font-weight:600; color:var(--ink) !important; }

.ncp-bead{ width:26px; height:26px; border-radius:50%; border:2px solid var(--rule); display:flex; align-items:center; justify-content:center; font-size:10px; color:var(--ink-soft); background:var(--card); flex-shrink:0; }
.ncp-bead-single{ width:30px; height:30px; }

.ncp-rhythm-row{ display:flex; align-items:center; gap:14px; padding:9px 0; border-bottom:1px dashed var(--rule); flex-wrap:wrap; }
.ncp-rhythm-label{ width:120px; font-size:12.5px; font-weight:600; flex-shrink:0; }
.ncp-rhythm-beads{ display:flex; gap:6px; flex:1; flex-wrap:wrap; min-width:0; }
.ncp-bead.filled{ border-color:transparent; color:#fff; }
.ncp-bead-devotion.filled{ background:var(--gold); }
.ncp-bead-cellgroup.filled{ background:var(--sage); }
.ncp-bead-sunday.filled{ background:var(--teal); }
.ncp-bead-training.filled{ background:var(--umber); }

.ncp-pill{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:20px; }
.ncp-pill-done{ background:var(--tint-sage); color:var(--sage); }
.ncp-pill-pending{ background:var(--tint-gold); color:var(--gold-dark); }
.ncp-pill-missed{ background:var(--tint-burgundy); color:var(--burgundy); }

.ncp-btn{ padding:9px 16px; border-radius:8px; font-size:13px; font-weight:600; border:1px solid var(--chrome); background:var(--chrome); color:#fff; }
.ncp-btn:hover{ background:#2a3455; color:#fff !important; }
.ncp-btn-outline{ background:transparent; color:var(--ink); border:1px solid var(--rule); }
.ncp-btn-outline:hover{ background:var(--paper-alt); color:var(--ink) !important; }

.ncp-table{ width:100%; border-collapse:collapse !important; border-spacing:0 !important; font-size:13px; border:none !important; }
.ncp-table th, .ncp-table td{ border:none !important; border-width:0 !important; }
.ncp-table th{ text-align:left; font-size:10.5px; letter-spacing:0.5px; text-transform:uppercase; color:var(--ink-soft); padding:7px 9px; border-bottom:1px solid var(--rule) !important; }
.ncp-table td{ padding:9px; border-bottom:1px solid var(--rule) !important; }
.ncp-table tr:last-child td{ border-bottom:none !important; }

.ncp-field{ margin-bottom:13px; }
.ncp-field label{ display:block; font-size:11.5px; font-weight:600; color:var(--ink-soft); margin-bottom:5px; text-transform:uppercase; letter-spacing:0.4px; }
.ncp-field input, .ncp-field select, .ncp-field textarea{ width:100%; padding:10px 11px; border:1px solid var(--rule); border-radius:6px; font-size:13.5px; background:var(--card); color:var(--ink); }
#nc-app input, #nc-app select, #nc-app textarea,
.ncp-sidebar input, .ncp-sidebar select,
.ncp-modal-box input, .ncp-modal-box select { background:var(--card); color:var(--ink); }
.ncp-form-row{ display:flex; gap:10px; }
.ncp-form-row .ncp-field{ flex:1; }

.ncp-upload-zone{ border:1.5px dashed var(--rule); border-radius:8px; padding:20px; text-align:center; cursor:pointer; background:var(--paper-alt); margin-bottom:12px; }
.ncp-upload-zone:hover{ border-color:var(--gold); }
.ncp-thumb{ width:52px; height:52px; object-fit:cover; border-radius:6px; border:1px solid var(--rule); cursor:pointer; }

.ncp-empty{ text-align:center; padding:34px 16px; color:var(--ink-soft) !important; }

.ncp-modal-overlay{ position:fixed; inset:0; background:rgba(27,35,64,0.6); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px; }
.ncp-modal-overlay.open{ display:flex; }
.ncp-modal-box{ background:var(--card); border-radius:10px; max-width:500px; width:100%; max-height:86vh; overflow-y:auto; padding:22px; }
.ncp-modal-box img{ width:100%; border-radius:6px; margin-top:8px; }
.ncp-modal-close{ float:right; cursor:pointer; font-size:20px; color:var(--ink-soft); }

.ncp-toast{ position:fixed; bottom:22px; right:22px; background:var(--chrome); color:#fff; padding:11px 17px; border-radius:8px; font-size:13px; box-shadow:var(--shadow); z-index:9999; display:none; }
.ncp-toast.show{ display:block; }

.ncp-announce{ border-left:3px solid var(--gold); padding:14px 16px; }
.ncp-announce.type-meeting{ border-left-color:var(--teal); }
.ncp-announce.type-birthday{ border-left-color:var(--umber); }
.ncp-announce.type-training{ border-left-color:var(--sage); }
.ncp-tag{ font-size:10px; text-transform:uppercase; letter-spacing:0.4px; font-weight:700; padding:2px 8px; border-radius:20px; }
.ncp-tag-meeting{ background:var(--tint-teal); color:var(--teal); }
.ncp-tag-birthday{ background:var(--tint-umber); color:var(--umber); }
.ncp-tag-training{ background:var(--tint-sage); color:var(--sage); }
.ncp-tag-general{ background:var(--tint-gold); color:var(--gold-dark); }

.ncp-avatar{ width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg, var(--gold), var(--umber)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex-shrink:0; }
/* Many WordPress themes apply a global "img{ max-width:100%; height:auto; }"
   responsive-image reset, sometimes with !important. That silently squishes
   this circular avatar into an oval based on the uploaded photo's natural
   aspect ratio, since it wins over an un-guarded inline height. Guard every
   dimension/shape property here (the per-instance width/height still comes
   from the inline style in JS, since size varies by call site). */
.ncp-avatar-photo{
  border-radius:50% !important;
  object-fit:cover !important;
  max-width:none !important;
  flex-shrink:0 !important;
  display:block !important;
}

.ncp-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.ncp-cal-headcell{ text-align:center; font-size:10px; font-weight:700; text-transform:uppercase; color:var(--ink-soft); padding-bottom:4px; }
.ncp-cal-cell{ min-height:74px; border:1px solid var(--rule); border-radius:8px; padding:5px; background:var(--paper-alt); display:flex; flex-direction:column; gap:2px; overflow:hidden; }
.ncp-cal-cell.empty{ border:none; background:transparent; }
.ncp-cal-cell.today{ background:#EFE2D0; border-color:var(--gold); }
.ncp-cal-daynum{ font-size:11.5px; font-weight:600; color:var(--ink-soft); }
.ncp-cal-chip{ display:flex; align-items:center; gap:3px; font-size:9.5px; font-weight:700; padding:2px 4px; border-radius:4px; line-height:1.3; overflow:hidden; white-space:nowrap; }
.ncp-cal-chip svg{ flex-shrink:0; width:9px; height:9px; }
.ncp-cal-chip span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ncp-cal-chip.evt{ background:var(--tint-teal); color:var(--teal); }
.ncp-cal-chip.bday{ background:var(--tint-umber); color:var(--umber); }
.ncp-cal-more{ font-size:9px; font-weight:600; color:var(--ink-soft); padding-left:2px; }

.ncp-icon-btn{ background:none; border:none; color:var(--ink-soft); cursor:pointer; }
.ncp-icon-btn:hover{ color:var(--burgundy); }
