/* ========================================================================
   KingsAdmin Stage 7.25 — 60 / 30 / 10 Interface System

   60%  Warm cream canvas and base layers
   30%  Dark burgundy structure, typography and navigation
   10%  Antique gold actions + crimson only for urgent/critical states

   This file intentionally loads AFTER Stage 7.24. It narrows the role of
   #983E47 so crimson communicates attention instead of becoming visual noise.
   ======================================================================== */

:root{
  /* 60% — canvas / breathable base */
  --ka-bg:#F0E1DA;
  --ka-canvas:#F0E1DA;
  --ka-surface:#FCFAFA;
  --ka-surface-soft:#F5EAE5;
  --ka-surface-muted:#ECD8CF;
  --ka-surface-elevated:#FFFFFF;
  --ka-cream:#F0E1DA;
  --ka-cream-soft:#F6F2F0;

  /* 30% — structure / typography */
  --ka-text:#1E0E26;
  --ka-text-2:#785E61;
  --ka-text-3:#84708E;
  --ka-primary:#3D1C4E;
  --ka-primary-2:#31163F;
  --ka-primary-deep:#1E0E26;
  --ka-primary-darker:#150A1B;
  --ka-primary-soft:#F0E3DD;
  --ka-primary-faint:#F8F0ED;
  --ka-border:#DDC7BD;
  --ka-border-strong:#C8B0A6;

  /* 10% — focus / action */
  --ka-gold:#C18C75;
  --ka-gold-hover:#CE9C87;
  --ka-gold-deep:#71422E;
  --ka-gold-soft:#F1E3DD;
  --ka-critical:#983E47;
  --ka-critical-dark:#4F2365;
  --ka-critical-soft:#F3ECEA;

  /* Status colors remain semantic, not brand decoration. */
  --ka-teal:#9342BB;
  --ka-teal-soft:#F4EFEC;
  --ka-success:#408866;
  --ka-warning:#885038;
  --ka-danger:var(--ka-critical);
  --ka-info:#945DAF;

  --ka-focus:rgba(193,140,117,.30);
  --ka-shadow-1:0 1px 2px rgba(30,14,38,.025),0 10px 26px rgba(30,14,38,.055);
  --ka-shadow-2:0 24px 58px rgba(30,14,38,.12);

  /* Legacy token bridge: ordinary brand uses deep burgundy, not crimson. */
  --burgundy:var(--ka-primary);
  --burgundy-bright:#4D2362;
  --burgundy-deep:var(--ka-primary-deep);
  --wine-900:var(--ka-primary-deep);
  --wine-950:var(--ka-primary-darker);
  --sidebar:var(--ka-primary-deep);
  --sidebar-muted:#DDCCC4;
  --canvas:var(--ka-bg);
  --canvas-warm:var(--ka-cream-soft);
  --surface:var(--ka-surface);
  --ink:var(--ka-text);
  --ink-soft:var(--ka-text-2);
  --muted:var(--ka-text-2);
  --line:var(--ka-border);

  --ka-wine:var(--ka-primary);
  --ka-wine-2:#4D2362;
  --ka-wine-deep:var(--ka-primary-deep);
  --ka-wine-black:var(--ka-primary-darker);
  --ka-rose:var(--ka-primary-soft);
  --ka-rose-2:var(--ka-primary-faint);
  --ka-paper:var(--ka-surface);
  --ka-ink:var(--ka-text);
  --ka-ink-2:var(--ka-text-2);
  --ka-muted:var(--ka-text-2);
  --ka-soft:var(--ka-text-3);
  --ka-line:var(--ka-border);
  --ka-line-2:#EBDCD6;

  --disc:var(--ka-primary);
  --disc-dark:var(--ka-primary-deep);
  --disc-deep:var(--ka-primary-darker);
  --disc-light:#93434B;
  --paper:var(--ka-surface);
  --wash:var(--ka-surface-soft);

  --fc:var(--ka-primary);
  --fc2:#4D2362;
  --fcdeep:var(--ka-primary-deep);
  --fcink:var(--ka-text);
  --fcmuted:var(--ka-text-2);
  --fcsoft:var(--ka-text-3);
  --fcline:var(--ka-border);
  --fcwash:var(--ka-surface-soft);
  --fcwash2:var(--ka-cream-soft);
  --gold:var(--ka-gold);

  --ka-login-primary:var(--ka-primary);
  --ka-login-primary-deep:var(--ka-primary-deep);
  --ka-login-primary-2:#4D2362;
  --ka-login-gold:var(--ka-gold);
  --ka-login-gold-soft:var(--ka-gold-soft);
  --ka-login-ink:var(--ka-text);
  --ka-login-muted:var(--ka-text-2);
  --ka-login-line:var(--ka-border);
}

/* 60% — application canvas ----------------------------------------- */
html{background:var(--ka-bg)!important}
body:not(.ks-login-body),.disc-body,.fc-body{
  color:var(--ka-text)!important;
  background:
    radial-gradient(circle at 96% 0%,rgba(193,140,117,.13),transparent 28rem),
    linear-gradient(180deg,#F3E6E0 0%,var(--ka-bg) 46%,#ECDAD3 100%)!important;
}
.app-frame,.page-shell,.disc-main,.fc-main{background:transparent!important}

/* Warm-white work surfaces preserve depth over the cream canvas. */
.card,.table-card,.form-card,.enterprise-panel,.report-panel,.faith-panel,.pcs-panel,
.pcs-detail-main,.pcs-detail-side,.pcs-form-card,.platform-card,.platform-table-card,
.ac-panel,.member-stats article,.prayer-table-card,.prayer-form-card,.current-rating-card,
.profile-identity-card,.profile-form-card,.pulse-card,.completed-item,.ev-panel,.ev-form-card,
.calendar-card,.pulse-section,.profile-panel,.lm-card,.lm-table-card,.lm-form-card{
  background:var(--ka-surface)!important;
  border-color:var(--ka-border)!important;
  box-shadow:var(--ka-shadow-1)!important;
}

/* KPI/data tiles intentionally lean cream so the dominant color is visible. */
.report-metrics article,.pcs-metrics article,.platform-stats article,.member-stats article,
.faith-mini-signal,.faith-rating,.metric-card,.summary-card,.stat-card,.kpi-card,
[class*="metric-card"],[class*="stat-card"],[class*="summary-card"]{
  background:linear-gradient(180deg,#FAF6F4,var(--ka-surface-soft))!important;
  border-color:#DEC7BD!important;
}

/* 30% — shell, hierarchy and navigation ----------------------------- */
.topbar,.disc-nav,.fc-nav{
  background:rgba(252,250,250,.97)!important;
  border-color:rgba(200,176,166,.82)!important;
  box-shadow:0 5px 22px rgba(30,14,38,.05)!important;
}
.sidebar{
  background:
    radial-gradient(circle at 8% -10%,rgba(193,140,117,.18),transparent 19rem),
    linear-gradient(180deg,#1E0E26 0%,#24102E 52%,#150A1B 100%)!important;
}
.sidebar-section-label{color:#D5C4BC!important}
.nav-link{color:#F0E1DA!important}
.nav-link:hover{background:rgba(240,225,218,.085)!important;color:#fff!important}
.nav-link.active,.nav-link.active-parent{
  background:linear-gradient(90deg,rgba(193,140,117,.22),rgba(240,225,218,.08))!important;
  box-shadow:inset 3px 0 0 var(--ka-gold)!important;
  color:#FAF6F4!important;
}
.nav-link.active .nav-symbol,.nav-link.active-parent .nav-symbol{
  background:rgba(193,140,117,.18)!important;
  color:#E6CCC1!important;
}
.subnav-link{color:#DECCC4!important}
.subnav-link.active{color:#DFBFB1!important}

body:not(.ks-login-body) :is(h1,h2,h3,h4,h5,h6),
.card h2,.card h3,.panel-head h2,.pcs-panel-head h2,.platform-table-head h2{
  color:var(--ka-text)!important;
}
body:not(.ks-login-body) p{color:var(--ka-text-2)}
a:not(.nav-link):not(.subnav-link):not(.btn):not(.platform-button):not(.pcs-btn):not(.faith-btn):not(.disc-btn):not(.fc-btn){
  color:var(--ka-primary);
}

.church-pill,.topbar-user,.notification-button,.topbar-signout,.menu-button{
  background:#FCFAFA!important;
  border-color:var(--ka-border)!important;
  color:var(--ka-primary-deep)!important;
}

/* Deep burgundy table structure: strong separation without crimson. */
.data-table th,.platform-table th,.pcs-table th,.ev-table th,.prayer-table th,.lm-table th,
table.data-table thead th,table.platform-table thead th,table.pcs-table thead th{
  background:var(--ka-primary)!important;
  color:#FAF4F2!important;
  border-bottom-color:rgba(193,140,117,.45)!important;
}
.data-table td,.platform-table td,.pcs-table td,.ev-table td,.lm-table td{
  border-bottom-color:#E6D5CD!important;
  color:#433649!important;
}

/* Hero areas are structural burgundy, not alert crimson. */
.report-hero,.pcs-hero,.profile-hero,.pulse-hero,.ev-hero,.ev-detail-hero,.calendar-hero,
.platform-hero,.church-detail-hero,.cs-hero,.member-hero,.mp-hero,.mp-detail-hero,.mp-form-hero,
.mp-wall-hero,.mp-answered-hero,.disc-hero,.my-hero,.studio-hero,.studio-course-hero,.form-hero,
.assessment-hero,.course-hero,.spx-hero,.spx-studio-hero,.spx-builder-hero,.spx-form-hero,
.spx-day-hero,.spx-detail-hero,.fc-hero,.fc-page-hero,.fc-form-hero,.fc-share-hero,.fc-group-hero,
.lm-hero,.lm-form-hero{
  background:
    radial-gradient(circle at 92% 7%,rgba(193,140,117,.28),transparent 25rem),
    radial-gradient(circle at 8% 100%,rgba(193,140,117,.09),transparent 22rem),
    linear-gradient(126deg,#1E0E26 0%,#31163E 52%,#3D1C4E 100%)!important;
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:0 22px 54px rgba(30,14,38,.18)!important;
}
.report-hero :is(h1,h2,h3),.pcs-hero :is(h1,h2,h3),.profile-hero :is(h1,h2,h3),
.pulse-hero :is(h1,h2,h3),.ev-hero :is(h1,h2,h3),.ev-detail-hero :is(h1,h2,h3),
.calendar-hero :is(h1,h2,h3),.platform-hero :is(h1,h2,h3),.church-detail-hero :is(h1,h2,h3),
.cs-hero :is(h1,h2,h3),.member-hero :is(h1,h2,h3),.mp-hero :is(h1,h2,h3),
.disc-hero :is(h1,h2,h3),.my-hero :is(h1,h2,h3),.studio-hero :is(h1,h2,h3),
.fc-hero :is(h1,h2,h3),.fc-page-hero :is(h1,h2,h3),.lm-hero :is(h1,h2,h3){
  color:#FBF6F4!important;
}
.report-kicker,.pcs-kicker,.ev-hero .ev-kicker,.profile-kicker,.faith-kicker,
.disc-kicker.light,.fc-hero-kicker,.lm-hero small,.lm-form-hero small,
:where(.report-hero,.pcs-hero,.profile-hero,.pulse-hero,.ev-hero,.calendar-hero,.platform-hero,
.disc-hero,.fc-hero,.fc-page-hero) [class*="kicker"]{
  color:#DEBDAF!important;
}

/* 10% — gold owns primary actions ---------------------------------- */
.btn-primary,.platform-button.primary,.pcs-btn.wine,.disc-btn,.fc-btn.primary,.ev-btn.primary,
.faith-btn.primary,.lm-btn.primary,.cs-login-primary,.ks-login-button,
input[type="submit"],button[type="submit"]{
  background:linear-gradient(135deg,#C18C75,#CE9C87)!important;
  color:#1E0E26!important;
  border-color:#AD735A!important;
  box-shadow:0 9px 22px rgba(113,66,46,.20)!important;
  text-shadow:none!important;
}
.btn-primary:hover,.platform-button.primary:hover,.pcs-btn.wine:hover,.disc-btn:hover,
.fc-btn.primary:hover,.ev-btn.primary:hover,.faith-btn.primary:hover,.lm-btn.primary:hover,
.cs-login-primary:hover,.ks-login-button:hover,input[type="submit"]:hover,button[type="submit"]:hover{
  background:linear-gradient(135deg,#CB967F,#D5AB99)!important;
  color:#1E0E26!important;
  border-color:#9F6349!important;
}

/* Discipleship button variants stay visually distinct from the gold default. */
.disc-btn.light,.disc-btn.inverse{
  background:#FCFAFA!important;color:var(--ka-primary)!important;border:1px solid var(--ka-border)!important;box-shadow:none!important;
}
.disc-btn.dark{background:var(--ka-primary-deep)!important;color:#fff!important;border-color:var(--ka-primary-deep)!important}
.disc-btn.glass{background:rgba(255,255,255,.10)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important}
.fc-btn.inverse,.fc-btn.light{background:#FCFAFA!important;color:var(--ka-primary)!important;border:1px solid var(--ka-border)!important;box-shadow:none!important}
.fc-btn.glass{background:rgba(255,255,255,.10)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:none!important}

/* Secondary actions stay structural. */
.btn-secondary,.platform-button.secondary,.pcs-btn.ghost,.ev-btn.secondary,.lm-btn.secondary,
.cs-login-secondary,.disc-btn.secondary,.fc-btn.secondary{
  background:#FCFAFA!important;
  color:var(--ka-primary)!important;
  border-color:#BBA297!important;
}
.btn-secondary:hover,.platform-button.secondary:hover,.pcs-btn.ghost:hover,.ev-btn.secondary:hover,
.lm-btn.secondary:hover,.cs-login-secondary:hover{
  background:var(--ka-surface-soft)!important;
  border-color:var(--ka-primary)!important;
}

/* Utility shell buttons must never inherit gold submit styling. */
button.topbar-signout,.topbar-signout,.ka-more-signout button,.notification-button,.menu-button,
button[data-ka-mobile-more-close],button[data-ka-more],.ka-more-close{
  background:#FCFAFA!important;
  color:var(--ka-primary-deep)!important;
  border-color:var(--ka-border)!important;
  box-shadow:none!important;
}

/* Crimson is intentionally reserved for urgent / destructive states. */
.btn-danger,.platform-button.danger,.lm-btn.danger,.fc-btn.danger,.danger-button,.delete-button,
button.danger,button.delete,[data-action="delete"],.status-danger,.status-overdue,.chip-danger,
.priority.urgent,.priority.high,.needs-follow-up,.needs-attention,.critical-alert,.alert-critical{
  background:var(--ka-critical)!important;
  color:#fff!important;
  border-color:var(--ka-critical-dark)!important;
}
.btn-danger:hover,.platform-button.danger:hover,.lm-btn.danger:hover,.fc-btn.danger:hover,.danger-button:hover,.delete-button:hover,
button.danger:hover,button.delete:hover,[data-action="delete"]:hover{
  background:var(--ka-critical-dark)!important;
  color:#fff!important;
}
.status-danger,.status-overdue,.chip-danger,.needs-follow-up,.needs-attention,.critical-alert,.alert-critical{
  box-shadow:none!important;
}

/* Functional status semantics remain clearly differentiated. */
.status-success,.status-complete,.is-complete,.chip-success,.status-chip.active{
  background:#E7F3ED!important;color:#346D52!important;border-color:#CFE6DB!important;
}
.status-warning,.status-pending,.chip-warning{
  background:#F4E9E4!important;color:#72432E!important;border-color:#DEBDAF!important;
}
.status-info,.chip-info{background:#F3EEF6!important;color:#803FA1!important;border-color:#E3D5EA!important}

/* Forms / focus ------------------------------------------------------ */
input:not([type="checkbox"]):not([type="radio"]),select,textarea{
  background:#FDFBFB!important;
  border-color:var(--ka-border-strong)!important;
  color:var(--ka-text)!important;
}
input:focus,select:focus,textarea:focus,.ks-field input:focus,.lm-field input:focus,
.lm-field select:focus,.lm-field textarea:focus{
  border-color:var(--ka-gold-deep)!important;
  box-shadow:0 0 0 3px var(--ka-focus)!important;
  outline:0!important;
}
:where(a,button,input,select,textarea):focus-visible{outline-color:var(--ka-gold)!important}

/* Light-page kickers use structure, not alert crimson. */
:where(.eyebrow,.panel-kicker,.faith-section-kicker,.ac-kicker,.mp-kicker,.mp-panel-kicker,
.ev-kicker,.profile-kicker,.disc-kicker,.fc-kicker,[class*="-kicker"]){
  color:var(--ka-primary)!important;
}

/* Member home: gold actions, cream support cards. */
.faith-hero{
  background:
    radial-gradient(circle at 92% 8%,rgba(193,140,117,.30),transparent 27%),
    linear-gradient(125deg,#1E0E26 0%,#30153D 55%,#3D1C4E 100%)!important;
}
.faith-hero h1 em{color:#E3C6B9!important}
.faith-btn.primary{background:linear-gradient(135deg,#C18C75,#CE9C87)!important;color:#1E0E26!important}
.rating-symbol,.mini-icon,.action-icon,.connect-icon,.faith-explore-grid>*>span:first-child{
  background:var(--ka-gold-soft)!important;color:var(--ka-primary-deep)!important;
}
.faith-rating>a,.faith-action>b,.faith-connect-card>b,.faith-explore-grid b{color:var(--ka-primary)!important}

/* Calendar/event emphasis: gold marks selected/current, not crimson. */
.ev-suite-nav a.active{border-color:#C18C75!important;background:var(--ka-gold-soft)!important;color:var(--ka-primary-deep)!important}
.calendar-weekdays div{background:var(--ka-primary)!important;color:#FAF4F2!important}
.calendar-day.today{box-shadow:inset 0 0 0 2px var(--ka-gold)!important;background:#FAF5F3!important}
.calendar-entry{background:#F1E3DD!important;color:var(--ka-primary-deep)!important}
.calendar-entry.event{background:#EFDED7!important;color:var(--ka-primary)!important}

/* Discipleship and Faith Community --------------------------------- */
.disc-links a,.fc-nav-links a{color:var(--ka-text-2)!important}
.disc-links a.active,.fc-nav-links a.active{color:var(--ka-primary)!important}
.disc-links a.active:after,.fc-nav-links a.active:after{background:var(--ka-gold)!important}

/* Church Login Experience admin ------------------------------------ */
.lm-page{
  --lm-purple:#3D1C4E;
  --lm-purple-dark:#1E0E26;
  --lm-purple-deep:#150A1B;
  --lm-purple-soft:#F0E3DD;
  --lm-gold:#C18C75;
  --lm-gold-soft:#F1E3DD;
  --lm-bg:#F0E1DA;
  --lm-surface:#FCFAFA;
  --lm-text:#1E0E26;
  --lm-text-2:#785E61;
  --lm-muted:#84708E;
  --lm-line:#DDC7BD;
}
.lm-page{background:transparent!important}
.lm-btn.primary{background:linear-gradient(135deg,#C18C75,#CE9C87)!important;color:#1E0E26!important;border-color:#AD735A!important}

/* Login: product remains rich/dark, CTA follows the gold action rule. */
body.ks-login-body{
  color:var(--ka-text)!important;
  background:
    radial-gradient(circle at 85% 8%,rgba(193,140,117,.24),transparent 28rem),
    linear-gradient(135deg,#150A1B 0%,#1E0E26 48%,#3D1C4E 100%)!important;
}
.ks-login-card{background:#FCFAFA!important}
.ks-login-main h1{color:var(--ka-text)!important}
.ks-login-main:before,.ks-brand small{color:var(--ka-primary)!important}
.ks-field label{color:#47384F!important}
.ks-login-help{background:#F5EAE5!important;border-color:var(--ka-border)!important}
.ks-login-footer{background:#F0E1DA!important;border-color:var(--ka-border)!important}
.ks-church-login-logo-fallback{background:linear-gradient(145deg,#1E0E26,#3D1C4E)!important;color:#fff!important}
.ks-login-church-note strong{color:var(--ka-primary)!important}

/* Notification/activity panels should look like part of the same system. */
.notification-panel,.activity-tray,.ka-mobile-more-panel,.fc-mobile-more-panel{
  background:#FCFAFA!important;
  border-color:var(--ka-border)!important;
}
.notification-panel-head,.activity-tray-head,.ka-more-head{
  border-color:var(--ka-border)!important;
}
.notification-badge{background:var(--ka-critical)!important;color:#fff!important}

/* Mobile/PWA --------------------------------------------------------- */
@media(max-width:760px){
  body:not(.ks-login-body),.disc-body,.fc-body{
    background:linear-gradient(180deg,#F2E5DF 0%,#F0E1DA 100%)!important;
  }
  .sidebar{background:linear-gradient(180deg,#1E0E26 0%,#150A1B 100%)!important}
  .ka-mobile-dock,.fc-mobile-dock{
    background:rgba(252,250,250,.97)!important;
    border-color:var(--ka-border)!important;
  }
  .ka-dock-item.active,.fc-mobile-dock a.active{color:var(--ka-primary)!important}
}

/* Accessibility: strong contrast for the gold CTA palette. */
.btn-primary,.platform-button.primary,.pcs-btn.wine,.disc-btn,.fc-btn.primary,.ev-btn.primary,
.faith-btn.primary,.lm-btn.primary,.cs-login-primary,.ks-login-button,
input[type="submit"],button[type="submit"]{
  font-weight:800!important;
}

/* ========================================================================
   Stage 7.25.1 — Dark Hero Typography Contrast Repair

   Stage 7.25 deliberately makes normal page headings #1E0E26. Because those
   global heading declarations use !important and a body-qualified selector,
   they can outrank the earlier hero rules. These final rules restore the
   intended hierarchy: dark structural text on light surfaces, warm cream
   headings and copy on dark burgundy hero surfaces.
   ======================================================================== */
body:not(.ks-login-body) :is(
  .report-hero,.pcs-hero,.profile-hero,.pulse-hero,.ev-hero,.ev-detail-hero,.calendar-hero,
  .platform-hero,.church-detail-hero,.cs-hero,.member-hero,.mp-hero,.mp-detail-hero,.mp-form-hero,
  .mp-wall-hero,.mp-answered-hero,.disc-hero,.my-hero,.studio-hero,.studio-course-hero,.form-hero,
  .assessment-hero,.course-hero,.spx-hero,.spx-studio-hero,.spx-builder-hero,.spx-form-hero,
  .spx-day-hero,.spx-detail-hero,.fc-hero,.fc-page-hero,.fc-form-hero,.fc-share-hero,.fc-group-hero,
  .lm-hero,.lm-form-hero,.faith-hero
) :is(h1,h2,h3,h4,h5,h6){
  color:#FBF6F4!important;
}

body:not(.ks-login-body) :is(
  .report-hero,.pcs-hero,.profile-hero,.pulse-hero,.ev-hero,.ev-detail-hero,.calendar-hero,
  .platform-hero,.church-detail-hero,.cs-hero,.member-hero,.mp-hero,.mp-detail-hero,.mp-form-hero,
  .mp-wall-hero,.mp-answered-hero,.disc-hero,.my-hero,.studio-hero,.studio-course-hero,.form-hero,
  .assessment-hero,.course-hero,.spx-hero,.spx-studio-hero,.spx-builder-hero,.spx-form-hero,
  .spx-day-hero,.spx-detail-hero,.fc-hero,.fc-page-hero,.fc-form-hero,.fc-share-hero,.fc-group-hero,
  .lm-hero,.lm-form-hero,.faith-hero
) p{
  color:#F1E4DE!important;
}

body:not(.ks-login-body) :is(
  .report-hero,.pcs-hero,.profile-hero,.pulse-hero,.ev-hero,.ev-detail-hero,.calendar-hero,
  .platform-hero,.church-detail-hero,.cs-hero,.member-hero,.mp-hero,.mp-detail-hero,.mp-form-hero,
  .mp-wall-hero,.mp-answered-hero,.disc-hero,.my-hero,.studio-hero,.studio-course-hero,.form-hero,
  .assessment-hero,.course-hero,.spx-hero,.spx-studio-hero,.spx-builder-hero,.spx-form-hero,
  .spx-day-hero,.spx-detail-hero,.fc-hero,.fc-page-hero,.fc-form-hero,.fc-share-hero,.fc-group-hero,
  .lm-hero,.lm-form-hero,.faith-hero
) :is(.eyebrow,.panel-kicker,.faith-section-kicker,.ac-kicker,.mp-kicker,.mp-panel-kicker,
.ev-kicker,.profile-kicker,.disc-kicker,.fc-kicker,[class*="-kicker"]){
  color:#DEBDAF!important;
}

/* Preserve deliberately emphasized words without making the whole title dark. */
body:not(.ks-login-body) :is(.report-hero,.faith-hero,.member-hero,.profile-hero) h1 :is(em,.accent,.highlight){
  color:#E3C6B9!important;
}


/* ========================================================================
   KingsAdmin Stage 7.26 — Heritage + Warm Taupe Hybrid Polish

   Hybrid palette additions:
     Stone  #BAA9A2 — secondary surfaces, dividers and neutral structure
     Taupe  #8A7267 — muted metadata and tertiary information

   The existing 60/30/10 hierarchy remains intact:
     60% cream / warm neutral canvas
     30% darkest burgundy / deep burgundy structure
     10% antique gold actions + crimson urgent states

   Accessibility note: #8A7267 is intentionally NOT the default body-copy
   color on cream. Readable secondary copy uses a deeper warm taupe, while
   #8A7267 is reserved for tertiary/muted information.
   ======================================================================== */
:root{
  --ka-stone:#BAA9A2;
  --ka-taupe:#8A7267;
  --ka-stone-soft:#E9DBD5;
  --ka-taupe-soft:#F2E9E5;

  /* 60% — warmer layered neutrals */
  --ka-surface:#FCFAFA;
  --ka-surface-soft:#F2EAE6;
  --ka-surface-muted:#E9DBD5;
  --ka-surface-elevated:#FFFFFF;
  --ka-cream-soft:#F7F4F2;

  /* 30% — retain burgundy structure, soften supporting copy */
  --ka-text:#1E0E26;
  --ka-text-2:#6C5A53;
  --ka-text-3:#8A7267;
  --ka-border:#D9C8C0;
  --ka-border-strong:#BAA9A2;

  --ka-primary-soft:#F0E6E1;
  --ka-primary-faint:#F7F4F2;
  --ka-gold-soft:#F0E0D9;

  /* Legacy / module token bridge */
  --ink-soft:var(--ka-text-2);
  --muted:var(--ka-text-2);
  --line:var(--ka-border);
  --ka-muted:var(--ka-text-2);
  --ka-soft:var(--ka-text-3);
  --ka-line:var(--ka-border);
  --ka-line-2:#E9DBD5;
  --fcmuted:var(--ka-text-2);
  --fcsoft:var(--ka-text-3);
  --fcline:var(--ka-border);
  --fcwash:var(--ka-surface-soft);
  --fcwash2:var(--ka-cream-soft);
  --ka-login-muted:var(--ka-text-2);
  --ka-login-line:var(--ka-border);
}

/* Cream remains dominant; stone/taupe give the canvas quieter depth. */
body:not(.ks-login-body),.disc-body,.fc-body{
  background:
    radial-gradient(circle at 96% 0%,rgba(193,140,117,.12),transparent 28rem),
    radial-gradient(circle at 4% 72%,rgba(186,169,162,.20),transparent 24rem),
    linear-gradient(180deg,#F3EEEC 0%,#F0E1DA 48%,#EDE2DD 100%)!important;
}

/* Working surfaces stay clean; secondary data layers pick up warm stone. */
.card,.table-card,.form-card,.enterprise-panel,.report-panel,.faith-panel,.pcs-panel,
.pcs-detail-main,.pcs-detail-side,.pcs-form-card,.platform-card,.platform-table-card,
.ac-panel,.prayer-table-card,.prayer-form-card,.current-rating-card,.profile-identity-card,
.profile-form-card,.pulse-card,.completed-item,.ev-panel,.ev-form-card,.calendar-card,
.pulse-section,.profile-panel,.lm-card,.lm-table-card,.lm-form-card{
  border-color:var(--ka-border)!important;
}

.report-metrics article,.pcs-metrics article,.platform-stats article,.member-stats article,
.faith-mini-signal,.faith-rating,.metric-card,.summary-card,.stat-card,.kpi-card,
[class*="metric-card"],[class*="stat-card"],[class*="summary-card"]{
  background:linear-gradient(180deg,#FBF7F5 0%,#F2E9E5 100%)!important;
  border-color:#D4C3BC!important;
}

/* Navigation chrome gets refined neutral separation, not more burgundy. */
.topbar,.disc-nav,.fc-nav{
  background:rgba(252,250,250,.97)!important;
  border-color:rgba(186,169,162,.66)!important;
}
.church-pill,.topbar-user,.notification-button,.topbar-signout,.menu-button{
  background:#FCFAFA!important;
  border-color:#D0C2BC!important;
}

/* Taupe is tertiary information; secondary copy stays dark enough to read. */
body:not(.ks-login-body) p{color:var(--ka-text-2)}
.data-table td,.platform-table td,.pcs-table td,.ev-table td,.lm-table td{
  color:#5C4E48!important;
  border-bottom-color:#E4D4CD!important;
}

/* Neutral/secondary controls receive stone borders and warm hover surfaces. */
.btn-secondary,.platform-button.secondary,.pcs-btn.ghost,.ev-btn.secondary,.lm-btn.secondary,
.cs-login-secondary,.disc-btn.secondary,.fc-btn.secondary,
.disc-btn.light,.disc-btn.inverse,.fc-btn.inverse,.fc-btn.light{
  background:#FCFAFA!important;
  border-color:var(--ka-stone)!important;
  color:var(--ka-primary)!important;
}
.btn-secondary:hover,.platform-button.secondary:hover,.pcs-btn.ghost:hover,.ev-btn.secondary:hover,
.lm-btn.secondary:hover,.cs-login-secondary:hover,.disc-btn.light:hover,.disc-btn.inverse:hover,
.fc-btn.inverse:hover,.fc-btn.light:hover{
  background:var(--ka-taupe-soft)!important;
  border-color:#9A857C!important;
}

/* Form fields gain the new stone edge while gold remains the focus signal. */
input:not([type="checkbox"]):not([type="radio"]),select,textarea{
  background:#FDFBFB!important;
  border-color:var(--ka-stone)!important;
}

/* Login/admin support panels use taupe neutrals without touching the CTA. */
.ks-login-help,.notification-panel,.activity-tray,.ka-mobile-more-panel,.fc-mobile-more-panel{
  background:#FCFAFA!important;
  border-color:var(--ka-border)!important;
}
.ks-login-help{background:#F2E9E5!important}
.ks-login-footer{background:#EDE1DB!important;border-color:#D9C8C0!important}

.lm-page{
  --lm-bg:#F0E1DA;
  --lm-surface:#FCFAFA;
  --lm-text:#1E0E26;
  --lm-text-2:#6C5A53;
  --lm-muted:#8A7267;
  --lm-line:#D9C8C0;
}

/* Mobile keeps the same hierarchy with a softer stone lower layer. */
@media(max-width:760px){
  body:not(.ks-login-body),.disc-body,.fc-body{
    background:linear-gradient(180deg,#F5EAE5 0%,#F0E1DA 58%,#ECDFDA 100%)!important;
  }
  .ka-mobile-dock,.fc-mobile-dock{
    background:rgba(252,250,250,.98)!important;
    border-color:#D0C2BC!important;
  }
}
