/* =========================================================
   Make Disciples — Retro chunky rectangular controls v3.21
   Separate molded control-panel buttons; no novelty blobs,
   leaf shapes, tilts, squiggles, or connected navigation bar.
   Loaded after retro.css and replaces the v3.18 runtime layer.
   ========================================================= */

/* ---------- Separate navigation buttons ---------- */
body.retro-theme .main-menu.connected-menu,
body.retro-theme .sub-menu.connected-menu{
  display:grid!important;
  overflow:visible!important;
  width:100%!important;
  margin:0 0 14px!important;
  padding:6px!important;
  gap:9px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.retro-theme .main-menu.connected-menu{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.retro-theme .sub-menu.connected-menu{
  grid-template-columns:repeat(var(--retro-sub-count,3),minmax(0,1fr))!important;
}
body.retro-theme .connected-menu::before,
body.retro-theme .connected-menu::after{
  content:none!important;
  display:none!important;
}

/* Each item is the complete chunky molded button. */
body.retro-theme .main-menu .menu-button,
body.retro-theme .sub-menu .menu-button{
  position:relative!important;
  min-width:0!important;
  min-height:82px!important;
  padding:10px 5px 9px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  overflow:hidden!important;
  border:2px solid #e0a332!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,240,198,.22) 0 7%,transparent 8% 100%),
    repeating-linear-gradient(160deg,rgba(255,219,145,.035) 0 2px,rgba(45,20,10,.04) 2px 5px),
    linear-gradient(180deg,#5b2d19 0%,#3d2115 48%,#2a1710 100%)!important;
  color:#f7e4bd!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  transform:none!important;
  box-shadow:
    0 0 0 3px #21120c,
    0 7px 0 #100a07,
    0 10px 16px rgba(0,0,0,.34),
    inset 0 2px 0 rgba(255,236,190,.46),
    inset 0 -4px 8px rgba(13,7,4,.42)!important;
  isolation:isolate!important;
}
body.retro-theme .sub-menu .menu-button{
  min-height:76px!important;
}
body.retro-theme .main-menu .menu-button::before,
body.retro-theme .sub-menu .menu-button::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:5px!important;
  z-index:-1!important;
  border:1px solid rgba(255,225,166,.20)!important;
  border-radius:9px!important;
  pointer-events:none!important;
}
body.retro-theme .main-menu .menu-button::after,
body.retro-theme .sub-menu .menu-button::after{
  content:none!important;
  display:none!important;
}
body.retro-theme .main-menu .menu-button svg,
body.retro-theme .sub-menu .menu-button svg{
  width:29px!important;
  height:29px!important;
  box-sizing:border-box!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:currentColor!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:1.9!important;
  transform:none!important;
  box-shadow:none!important;
  filter:none!important;
}
body.retro-theme .main-menu .menu-button span,
body.retro-theme .sub-menu .menu-button span{
  display:block!important;
  max-width:100%!important;
  color:inherit!important;
  font-family:var(--font-display)!important;
  font-size:.72rem!important;
  font-weight:900!important;
  line-height:1.05!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  white-space:normal!important;
  text-shadow:0 1px 0 rgba(29,13,7,.85)!important;
}

/* Lit amber active button, still rectangular. */
body.retro-theme .main-menu .menu-button.active:not(.ui2-pressing),
body.retro-theme .sub-menu .menu-button.active:not(.ui2-pressing){
  border-color:#ffd36f!important;
  background:
    linear-gradient(180deg,rgba(255,244,208,.38) 0 8%,transparent 9% 100%),
    repeating-linear-gradient(160deg,rgba(255,238,194,.06) 0 2px,rgba(94,33,5,.04) 2px 5px),
    linear-gradient(180deg,#d9731f 0%,#b75014 50%,#84320d 100%)!important;
  color:#fff2cf!important;
  transform:none!important;
  box-shadow:
    0 0 0 3px #4e200c,
    0 6px 0 #351307,
    0 0 19px rgba(232,151,36,.30),
    inset 0 2px 0 rgba(255,245,211,.62),
    inset 0 -4px 8px rgba(84,25,4,.30)!important;
}

/* Explicitly erase every novelty silhouette and rotation from v3.18. */
body.retro-theme .main-menu .menu-button:nth-child(n),
body.retro-theme .sub-menu .menu-button:nth-child(n),
body.retro-theme .main-menu .menu-button:nth-child(n) svg,
body.retro-theme .sub-menu .menu-button:nth-child(n) svg{
  transform:none!important;
}

/* ---------- Quick Actions: separate chunky panel buttons ---------- */
body.retro-theme .home-quick-panel .quick-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  padding:7px!important;
}
body.retro-theme .home-quick-panel .action,
body.retro-theme :is(.card-actions,.contact-actions,.dialog-actions)>.action{
  position:relative!important;
  min-height:64px!important;
  margin:0!important;
  padding:11px 12px!important;
  overflow:hidden!important;
  border:2px solid #5a2b17!important;
  border-radius:14px!important;
  background:
    linear-gradient(180deg,rgba(255,249,225,.32) 0 8%,transparent 9%),
    repeating-linear-gradient(160deg,rgba(105,54,22,.035) 0 2px,transparent 2px 5px),
    linear-gradient(180deg,#f4dba9,#deb675)!important;
  color:#462413!important;
  transform:none!important;
  box-shadow:
    0 0 0 3px rgba(47,24,13,.24),
    0 7px 0 #4b2515,
    0 10px 15px rgba(40,19,9,.22),
    inset 0 2px 0 rgba(255,255,255,.65),
    inset 0 -4px 7px rgba(94,48,18,.16)!important;
}
body.retro-theme .home-quick-panel .action:nth-child(3n+1){
  background:
    linear-gradient(180deg,rgba(255,239,194,.26) 0 8%,transparent 9%),
    repeating-linear-gradient(160deg,rgba(255,223,153,.04) 0 2px,rgba(55,21,7,.05) 2px 5px),
    linear-gradient(180deg,#d96d1e,#a84310)!important;
  color:#fff1cf!important;
  border-color:#7d2d0b!important;
}
body.retro-theme .home-quick-panel .action:nth-child(3n){
  background:
    linear-gradient(180deg,rgba(255,239,194,.18) 0 8%,transparent 9%),
    repeating-linear-gradient(160deg,rgba(255,223,153,.03) 0 2px,rgba(25,12,7,.06) 2px 5px),
    linear-gradient(180deg,#61341e,#3d2115)!important;
  color:#f7e4bd!important;
}
body.retro-theme .home-quick-panel .action:nth-child(n),
body.retro-theme :is(.card-actions,.contact-actions,.dialog-actions)>.action:nth-child(n){
  border-radius:14px!important;
  transform:none!important;
}
body.retro-theme .home-quick-panel .action::after,
body.retro-theme :is(.card-actions,.contact-actions,.dialog-actions)>.action::after{
  content:none!important;
  display:none!important;
}

/* ---------- Dashboard cards return to clean molded rectangles ---------- */
body.retro-theme .home-overview-panel .metric:nth-child(n){
  border-radius:20px!important;
  transform:none!important;
  overflow:hidden!important;
}

/* ---------- Press interaction stays whole-button only ---------- */
body.retro-theme .main-menu .menu-button.ui2-pressing,
body.retro-theme .sub-menu .menu-button.ui2-pressing,
body.retro-theme .home-quick-panel .action.ui2-pressing,
body.retro-theme :is(.card-actions,.contact-actions,.dialog-actions)>.action.ui2-pressing{
  transform:translateY(3px) scale(.97)!important;
  border-color:#ffe1a0!important;
  background:
    linear-gradient(180deg,rgba(255,250,224,.42) 0 9%,transparent 10%),
    linear-gradient(180deg,#efad35,#c96c18)!important;
  color:#32170b!important;
  box-shadow:
    0 0 0 3px #3d1d0e,
    0 2px 0 #241108,
    inset 0 4px 9px rgba(83,31,5,.22)!important;
  transition:transform .055s ease,background .055s ease!important;
}
body.retro-theme .main-menu .menu-button.ui2-pressing svg,
body.retro-theme .sub-menu .menu-button.ui2-pressing svg{
  transform:none!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Fixed navigation stays transparent around the separate buttons. */
body.retro-theme .nav-dock.is-docked .main-menu,
body.retro-theme .nav-dock.is-docked .sub-menu{
  background:transparent!important;
  box-shadow:none!important;
}

@media(max-width:520px){
  body.retro-theme .main-menu.connected-menu,
  body.retro-theme .sub-menu.connected-menu{gap:7px!important;padding:5px 3px!important}
  body.retro-theme .main-menu .menu-button{min-height:76px!important;padding:8px 2px!important}
  body.retro-theme .sub-menu .menu-button{min-height:70px!important;padding:7px 2px!important}
  body.retro-theme .main-menu .menu-button svg,
  body.retro-theme .sub-menu .menu-button svg{width:25px!important;height:25px!important}
  body.retro-theme .main-menu .menu-button span,
  body.retro-theme .sub-menu .menu-button span{font-size:.63rem!important}
  body.retro-theme .home-quick-panel .action{min-height:60px!important;font-size:.78rem!important}
}
@media(max-width:365px){
  body.retro-theme .main-menu.connected-menu{gap:5px!important}
  body.retro-theme .main-menu .menu-button span{font-size:.56rem!important}
  body.retro-theme .main-menu .menu-button svg{width:23px!important;height:23px!important}
}

/* BEGIN RETRO PHASE 2 V3.22 */
/* =========================================================
   Make Disciples — Retro Phase 2 (v3.22)
   Contacts, Visits, Follow-ups, Bible Studies, scheduling,
   sharing/import dialogs, and corrected Retro app emblem.
   Loaded after the existing Retro runtime stylesheet.
   ========================================================= */

/* ---------- Corrected Retro logo: use the actual Make Disciples people emblem ---------- */
body.retro-theme .brand-medallion{
  display:grid!important;
  place-items:center!important;
  background:
    linear-gradient(145deg,rgba(255,236,194,.22),transparent 35%),
    repeating-radial-gradient(ellipse at 38% 35%,rgba(255,231,177,.08) 0 2px,transparent 2px 6px),
    linear-gradient(145deg,#a94716,#67280f)!important;
  border:3px solid #3b1b0d!important;
  box-shadow:
    0 0 0 5px var(--retro-mustard),
    0 0 0 8px #3b1b0d,
    0 7px 0 rgba(46,20,8,.72),
    inset 0 2px 0 rgba(255,241,204,.45),
    inset 0 -7px 12px rgba(54,18,6,.30)!important;
}
body.retro-theme .brand-medallion::before,
body.retro-theme .brand-medallion::after{content:none!important;display:none!important}
body.retro-theme .brand-medallion svg{
  display:block!important;
  width:52px!important;
  height:52px!important;
  overflow:visible!important;
  filter:drop-shadow(0 2px 0 rgba(57,25,10,.50))!important;
}
body.retro-theme .brand-medallion svg circle:nth-of-type(1),
body.retro-theme .brand-medallion svg path:nth-of-type(1){fill:#fff0c9!important}
body.retro-theme .brand-medallion svg circle:nth-of-type(2),
body.retro-theme .brand-medallion svg circle:nth-of-type(3),
body.retro-theme .brand-medallion svg path:nth-of-type(2),
body.retro-theme .brand-medallion svg path:nth-of-type(3){fill:#e2a32a!important}

/* ---------- Shared Phase 2 panel language ---------- */
body.retro-theme :is(
  .contact-action-panel,.contact-search-panel,.contact-search-wrap,.contact-card,.contact-empty,
  .contact-details,.contact-detail-row,.contact-next-notice,.history-card,.history-section,
  .recurring-card,.duplicate-alert,.duplicate-summary-card,.duplicate-merge-field,
  .share-review-section,.share-method,.share-outcome-button,.import-confirmation,
  .visit-attention-controls,.visit-card,.visit-contact-choice,.visit-resource-choice,
  .visit-log-section,.study-lesson-dropdown,.visit-resource-dropdown
){
  border:2px solid #4b2412!important;
  background:
    repeating-linear-gradient(0deg,rgba(79,37,17,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fae9c9,#e8c58f)!important;
  color:#47220f!important;
  box-shadow:
    inset 0 2px 0 rgba(255,250,229,.78),
    inset 0 0 0 4px rgba(99,48,20,.045),
    0 8px 0 rgba(53,23,9,.26),
    0 13px 22px rgba(0,0,0,.18)!important;
}

/* ---------- Chunky rectangular control-panel buttons ---------- */
body.retro-theme :is(
  .contact-action,.contact-filter,.contact-reset,.choice-button,.history-action,
  .visit-tab,.visit-choice,.picker-choice,.visit-primary-action,.visit-remove-schedule,
  .study-lesson-list-choice,.visit-resource-choice,.share-method,.share-outcome-button,
  .contact-detail-actions>.action,.contact-bottom-actions>.action,.history-card-actions>.action,
  .visit-card-actions>.action,.dialog-actions>.action
){
  position:relative!important;
  min-height:54px!important;
  padding:10px 12px!important;
  border:3px solid #3f1d0d!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,245,213,.56) 0 8%,transparent 9% 28%),
    repeating-linear-gradient(12deg,rgba(92,39,14,.035) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f6dfb2,#d9ad6d)!important;
  color:#45200e!important;
  box-shadow:
    inset 0 0 0 3px rgba(255,240,201,.42),
    inset 0 -9px 15px rgba(98,44,14,.10),
    0 6px 0 #51240e,
    0 9px 14px rgba(0,0,0,.20)!important;
  transform:none!important;
  font-family:Georgia,"Bookman Old Style",serif!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  overflow:hidden!important;
}
body.retro-theme :is(
  .contact-action,.contact-filter,.contact-reset,.choice-button,.history-action,
  .visit-tab,.visit-choice,.picker-choice,.visit-primary-action,.visit-remove-schedule,
  .study-lesson-list-choice,.visit-resource-choice,.share-method,.share-outcome-button,
  .contact-detail-actions>.action,.contact-bottom-actions>.action,.history-card-actions>.action,
  .visit-card-actions>.action,.dialog-actions>.action
)::before,
body.retro-theme :is(
  .contact-action,.contact-filter,.contact-reset,.choice-button,.history-action,
  .visit-tab,.visit-choice,.picker-choice,.visit-primary-action,.visit-remove-schedule,
  .study-lesson-list-choice,.visit-resource-choice,.share-method,.share-outcome-button,
  .contact-detail-actions>.action,.contact-bottom-actions>.action,.history-card-actions>.action,
  .visit-card-actions>.action,.dialog-actions>.action
)::after{content:none!important;display:none!important}

body.retro-theme :is(
  .contact-action.active,.contact-filter.active,.choice-button.active,
  .visit-tab.active,.visit-choice.active,.picker-choice.active,
  .study-lesson-list-choice.active,.visit-resource-choice.active,
  .share-method.primary,.share-outcome-button.primary
):not(.ui2-pressing){
  background:
    linear-gradient(180deg,rgba(255,235,186,.34) 0 9%,transparent 10% 30%),
    repeating-linear-gradient(12deg,rgba(79,28,7,.055) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#d66e1f,#a63d10)!important;
  color:#fff1ce!important;
  border-color:#54200b!important;
  box-shadow:
    inset 0 0 0 3px rgba(255,213,135,.27),
    inset 0 -10px 16px rgba(76,20,4,.22),
    0 6px 0 #4b1c08,
    0 10px 16px rgba(0,0,0,.24)!important;
}
body.retro-theme :is(.contact-action.danger,.history-action.danger,.share-outcome-button.danger,.action.danger):not(.ui2-pressing){
  background:linear-gradient(180deg,#d85d3d,#a63222)!important;
  color:#fff1dc!important;
  border-color:#5f1e15!important;
  box-shadow:inset 0 0 0 3px rgba(255,210,185,.20),0 6px 0 #5f1e15!important;
}

/* Remove the earlier novelty-shape rules from Phase 2 action groups. */
body.retro-theme :is(.contact-detail-actions,.contact-bottom-actions,.history-card-actions,.visit-card-actions,.dialog-actions)>.action{
  border-radius:15px!important;
  transform:none!important;
}
body.retro-theme :is(.contact-detail-actions,.contact-bottom-actions,.history-card-actions,.visit-card-actions,.dialog-actions)>.action::after{
  content:none!important;display:none!important
}

/* ---------- Contacts dashboard ---------- */
body.retro-theme .contacts-page .page-heading h2,
body.retro-theme .contact-details .contact-name,
body.retro-theme .history-section .section-heading h3{
  font-family:var(--font-display)!important;
  color:#3f1d0d!important;
}
body.retro-theme .contact-action-panel{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  padding:12px!important;
  border-radius:20px!important;
}
body.retro-theme .contact-action{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  font-size:.82rem!important;
}
body.retro-theme .contact-action svg{width:24px!important;height:24px!important;stroke:currentColor!important}

body.retro-theme .contact-search-panel,
body.retro-theme .contact-search-wrap{border-radius:18px!important}
body.retro-theme .contact-search-wrap{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  overflow:hidden!important;
}
body.retro-theme .contact-search-wrap input{
  border:0!important;
  background:rgba(255,248,226,.72)!important;
  color:#3f1d0d!important;
  box-shadow:none!important;
}
body.retro-theme .contact-filter-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.retro-theme .contact-filter{min-height:50px!important;font-family:var(--font-body)!important;text-transform:uppercase!important;font-size:.78rem!important;letter-spacing:.04em!important}

body.retro-theme .contact-list{gap:15px!important}
body.retro-theme .contact-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:13px!important;
  width:100%!important;
  padding:15px!important;
  border-radius:19px!important;
  text-align:left!important;
  overflow:hidden!important;
}
body.retro-theme .contact-card::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:8px!important;
  background:var(--retro-mustard)!important;
}
body.retro-theme .contact-card.status-study::after{background:var(--retro-olive)!important}
body.retro-theme .contact-card.status-followup::after{background:var(--retro-orange)!important}
body.retro-theme .contact-card.status-paused::after{background:#8c7550!important}
body.retro-theme .contact-avatar{
  width:54px!important;height:54px!important;
  display:grid!important;place-items:center!important;
  border:3px solid #48200d!important;border-radius:14px!important;
  background:linear-gradient(180deg,#df9d22,#b65a16)!important;
  color:#fff0ce!important;
  box-shadow:0 5px 0 #4b1d09,inset 0 2px 0 rgba(255,237,194,.45)!important;
}
body.retro-theme .contact-avatar svg{width:31px!important;height:31px!important;stroke:currentColor!important;fill:none!important}
body.retro-theme .contact-card-copy{min-width:0!important}
body.retro-theme .contact-name{font-family:var(--font-display)!important;font-size:1.28rem!important;line-height:1.05!important}
body.retro-theme .contact-type{
  display:inline-flex!important;margin:4px 0 5px!important;padding:3px 8px!important;
  border-radius:999px!important;background:#5b2c12!important;color:#ffe9bd!important;
  font-size:.69rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.05em!important
}
body.retro-theme .contact-meta{display:block!important;color:#704b2d!important;line-height:1.35!important}
body.retro-theme .contact-chevron{color:#a84613!important}

/* ---------- Contact detail, history, forms, sharing, imports ---------- */
body.retro-theme .contact-details{padding:18px!important;border-radius:22px!important}
body.retro-theme .contact-detail-actions,
body.retro-theme .contact-bottom-actions,
body.retro-theme .history-card-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.retro-theme .contact-detail-actions>.action:first-child{grid-column:1/-1!important}
body.retro-theme .contact-detail-grid{gap:10px!important}
body.retro-theme .contact-detail-row{
  padding:12px!important;
  border-radius:14px!important;
  background:rgba(255,244,218,.58)!important;
  box-shadow:none!important;
}
body.retro-theme .history-list{gap:13px!important}
body.retro-theme .history-card{padding:15px!important;border-radius:18px!important}
body.retro-theme .history-card-header{align-items:flex-start!important;gap:10px!important}
body.retro-theme .history-card h4{font-family:var(--font-display)!important;color:#42200f!important;font-size:1.18rem!important}
body.retro-theme .history-card p{color:#704b2d!important}

body.retro-theme :is(.contact-form,.visit-form){display:grid!important;gap:14px!important}
body.retro-theme :is(.contact-form,.visit-form) .form-field{
  display:grid!important;gap:7px!important;
  color:#4a2512!important;font-weight:800!important
}
body.retro-theme :is(.contact-form,.visit-form) :is(input,select,textarea,.form-control){
  border:2px solid #5a2b13!important;
  border-radius:13px!important;
  background:#fff0d1!important;
  color:#3d1c0c!important;
  box-shadow:inset 0 3px 7px rgba(79,35,13,.10)!important;
}
body.retro-theme :is(.contact-form,.visit-form) :is(input,select,textarea,.form-control):focus{
  border-color:#c85d17!important;
  box-shadow:0 0 0 3px rgba(200,93,23,.18),inset 0 3px 7px rgba(79,35,13,.08)!important
}
body.retro-theme .choice-grid,
body.retro-theme .duplicate-choice-grid,
body.retro-theme .picker-grid{gap:9px!important}
body.retro-theme .choice-button,
body.retro-theme .picker-choice{font-family:var(--font-body)!important;font-size:.78rem!important;text-transform:uppercase!important;letter-spacing:.035em!important}

body.retro-theme .duplicate-alert{padding:14px!important;border-radius:18px!important}
body.retro-theme .duplicate-summary-grid{gap:12px!important}
body.retro-theme .duplicate-summary-card{padding:13px!important;border-radius:16px!important}
body.retro-theme .share-option-list,
body.retro-theme .share-method-list,
body.retro-theme .share-outcome-list{display:grid!important;gap:11px!important}
body.retro-theme .share-method,
body.retro-theme .share-outcome-button{width:100%!important;text-align:left!important}
body.retro-theme .share-preview{
  border:2px solid #4b2412!important;border-radius:14px!important;
  background:#fff0d0!important;color:#3d1c0c!important;padding:13px!important
}
body.retro-theme .import-confirmation-check,
body.retro-theme .share-outcome-check{
  background:var(--retro-olive)!important;color:#fff1cd!important;border-color:#39401f!important
}

/* ---------- Visits / follow-ups ---------- */
body.retro-theme .visit-tab-row{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
  padding:11px!important;
  border:2px solid #4b2412!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#e8c58f,#cf9c59)!important;
  box-shadow:0 8px 0 rgba(53,23,9,.28)!important;
}
body.retro-theme .visit-tab{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;min-width:0!important;font-family:var(--font-body)!important;font-size:.72rem!important;
  text-transform:uppercase!important;letter-spacing:.035em!important
}
body.retro-theme .visit-tab svg{width:25px!important;height:25px!important;stroke:currentColor!important}
body.retro-theme .visit-attention-controls{padding:15px!important;border-radius:20px!important}
body.retro-theme .visit-reasons,
body.retro-theme .visit-reason-row,
body.retro-theme .date-grid,
body.retro-theme .weekday-grid,
body.retro-theme .schedule-mode-row{gap:9px!important}

body.retro-theme .visit-list{gap:15px!important}
body.retro-theme .visit-card{
  padding:16px!important;
  border-radius:19px!important;
  overflow:hidden!important;
}
body.retro-theme .visit-card-top{gap:12px!important}
body.retro-theme .visit-contact-avatar{
  width:50px!important;height:50px!important;
  display:grid!important;place-items:center!important;
  border:3px solid #48200d!important;border-radius:14px!important;
  background:linear-gradient(180deg,#687143,#444b2a)!important;
  color:#fff0ce!important;
  box-shadow:0 5px 0 #2d311b,inset 0 2px 0 rgba(255,239,201,.30)!important
}
body.retro-theme .visit-contact-avatar svg{width:28px!important;height:28px!important;stroke:currentColor!important}
body.retro-theme .visit-card h3{font-family:var(--font-display)!important;color:#41200f!important;font-size:1.25rem!important}
body.retro-theme .visit-card p,
body.retro-theme .visit-summary{color:#704b2d!important}
body.retro-theme .visit-badge{
  border:2px solid #54240f!important;border-radius:999px!important;
  background:#5b2c12!important;color:#ffe9bd!important;
  font-size:.68rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.05em!important
}
body.retro-theme .visit-badge.today{background:#bc5517!important}
body.retro-theme .visit-badge.soon{background:#62683c!important}
body.retro-theme .visit-card-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.retro-theme .visit-card-actions>.action:first-child:last-child{grid-column:1/-1!important}

body.retro-theme .visit-contact-picker,
body.retro-theme .visit-resource-grid,
body.retro-theme .study-publication-list,
body.retro-theme .study-lesson-list{display:grid!important;gap:10px!important}
body.retro-theme .visit-contact-choice,
body.retro-theme .visit-resource-choice,
body.retro-theme .study-lesson-list-choice{
  border-radius:15px!important;
  text-align:left!important
}
body.retro-theme .visit-resource-dropdown,
body.retro-theme .study-lesson-dropdown{border-radius:16px!important;overflow:hidden!important}
body.retro-theme .visit-resource-dropdown summary,
body.retro-theme .study-lesson-dropdown summary{
  padding:13px!important;background:#f7dfb6!important;color:#43200f!important;font-weight:800!important
}
body.retro-theme .visit-log-section{
  padding:14px!important;
  border-radius:17px!important;
}
body.retro-theme .visit-log-section h4{
  margin:0 0 10px!important;
  color:#45210f!important;
  font-family:var(--font-display)!important;
  font-size:1.08rem!important
}

/* ---------- Phase 2 mobile refinements ---------- */
@media(max-width:520px){
  body.retro-theme .brand-medallion svg{width:44px!important;height:44px!important}
  body.retro-theme .contact-action-panel{gap:6px!important;padding:9px!important}
  body.retro-theme .contact-action{padding:8px 4px!important;font-size:.68rem!important;min-height:63px!important}
  body.retro-theme .contact-action svg{width:21px!important;height:21px!important}
  body.retro-theme .contact-card{grid-template-columns:auto 1fr auto!important;padding:13px 11px 13px 14px!important;gap:10px!important}
  body.retro-theme .contact-avatar{width:47px!important;height:47px!important}
  body.retro-theme .contact-name{font-size:1.08rem!important}
  body.retro-theme .contact-meta{font-size:.82rem!important}
  body.retro-theme .visit-tab-row{gap:6px!important;padding:8px!important}
  body.retro-theme .visit-tab{padding:8px 4px!important;font-size:.64rem!important;min-height:64px!important}
  body.retro-theme .visit-tab svg{width:22px!important;height:22px!important}
  body.retro-theme .contact-detail-actions,
  body.retro-theme .contact-bottom-actions,
  body.retro-theme .history-card-actions,
  body.retro-theme .visit-card-actions{gap:8px!important}
  body.retro-theme :is(.contact-detail-actions,.contact-bottom-actions,.history-card-actions,.visit-card-actions,.dialog-actions)>.action{
    min-height:50px!important;padding:9px 8px!important;font-size:.75rem!important
  }
}
@media(max-width:370px){
  body.retro-theme .contact-action-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.retro-theme .visit-tab-row{grid-template-columns:1fr!important}
  body.retro-theme .visit-tab{flex-direction:row!important;justify-content:flex-start!important;padding-inline:14px!important}
}
/* END RETRO PHASE 2 V3.22 */

/* =========================================================
   Make Disciples — Retro Phase 3 (v3.23)
   Ministry Time + Service at a Glance
   Chunky 1970s control-panel styling.
   ========================================================= */

/* ---------- Time page shell ---------- */
body.retro-theme .time-page{
  overflow:visible!important;
  padding:19px!important;
  border:2px solid #5a2a12!important;
  border-radius:24px!important;
  background:
    repeating-linear-gradient(0deg,rgba(76,35,15,.022) 0 1px,transparent 1px 5px),
    linear-gradient(145deg,#f8e8c9,#dfb878)!important;
  box-shadow:inset 0 0 0 5px rgba(255,247,222,.34),0 14px 26px rgba(0,0,0,.26)!important;
}
body.retro-theme .time-page>.page-heading{margin-bottom:4px!important}
body.retro-theme .time-page>.page-sub{max-width:660px;margin-bottom:15px!important;color:#6d492d!important}
body.retro-theme .time-page :is(svg){max-width:32px;max-height:32px}

/* ---------- Month / year control panel ---------- */
body.retro-theme .time-month-controls,
body.retro-theme .time-year-controls{
  position:relative;z-index:2;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 58px!important;
  gap:10px!important;
  align-items:stretch!important;
  margin:3px 0 15px!important;
}
body.retro-theme .time-month-shift,
body.retro-theme .time-year-shift{
  min-height:62px!important;
  border:3px solid #2d160b!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,238,199,.28),transparent 18%),
    repeating-linear-gradient(155deg,rgba(255,227,176,.035) 0 4px,rgba(60,24,8,.035) 4px 8px),
    linear-gradient(180deg,#6a341a,#3b1d10)!important;
  color:#ffe7b6!important;
  box-shadow:inset 0 0 0 3px #c77b1d,inset 0 2px 0 rgba(255,235,190,.35),0 6px 0 #1d0d06,0 9px 14px rgba(0,0,0,.24)!important;
  font-family:var(--font-display)!important;
  font-size:2rem!important;
  line-height:1!important;
}
body.retro-theme .time-month-picker,
body.retro-theme .time-year-controls>strong{
  min-height:62px!important;
  border:3px solid #3e1e0d!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.58),transparent 22%),
    repeating-linear-gradient(0deg,rgba(90,42,18,.025) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,#fff0cc,#e9c384)!important;
  color:#3c1b0c!important;
  box-shadow:inset 0 0 0 3px rgba(255,248,220,.58),0 6px 0 #5a2a12,0 9px 14px rgba(0,0,0,.18)!important;
}
body.retro-theme .time-month-picker{
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;column-gap:9px!important;align-items:center!important;
  padding:8px 12px!important;
}
body.retro-theme .time-month-picker .native-picker-icon{
  grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;
  border:2px solid #4a210d;border-radius:10px;background:#d78d1d;color:#3d1b0b;
  box-shadow:0 4px 0 #4a210d!important
}
body.retro-theme .time-month-picker .native-picker-icon svg{width:23px!important;height:23px!important;stroke:currentColor!important}
body.retro-theme .time-month-picker .native-picker-label{
  color:#79451d!important;font-size:.62rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important
}
body.retro-theme .time-month-picker .native-picker-input{
  width:100%!important;min-width:0!important;border:0!important;background:transparent!important;color:#3d1b0b!important;
  box-shadow:none!important;font-family:var(--font-display)!important;font-size:1.05rem!important;font-weight:900!important;padding:0!important
}
body.retro-theme .time-year-controls>strong{
  display:grid!important;place-items:center!important;padding:8px 12px!important;text-align:center!important;
  font-family:var(--font-display)!important;font-size:1.02rem!important;font-weight:900!important
}

/* ---------- Selected month / year readout ---------- */
body.retro-theme .time-month-focus,
body.retro-theme .time-year-position{
  position:relative;overflow:hidden;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;
  margin:0 0 14px!important;padding:16px 17px!important;
  border:3px solid #2d160b!important;border-radius:18px!important;
  background:
    linear-gradient(90deg,transparent 0 72%,rgba(215,148,28,.92) 72% 79%,rgba(189,90,24,.92) 79% 86%,rgba(93,96,55,.95) 86%),
    repeating-linear-gradient(155deg,rgba(255,230,180,.035) 0 4px,rgba(54,20,8,.035) 4px 8px),
    linear-gradient(180deg,#5b2d18,#31180e)!important;
  color:#ffe8bd!important;
  box-shadow:inset 0 0 0 3px #b96b17,inset 0 2px 0 rgba(255,237,196,.26),0 7px 0 #190b05!important
}
body.retro-theme .time-month-focus small,
body.retro-theme .time-year-position small{
  display:block;color:#dfb66c!important;font-size:.65rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.07em!important
}
body.retro-theme .time-month-focus strong,
body.retro-theme .time-year-position strong{
  display:block;margin-top:3px;color:#fff0ce!important;font-family:var(--font-display)!important;font-size:1.36rem!important;line-height:1!important
}
body.retro-theme .time-focus-total{
  position:relative;z-index:1;min-width:110px;padding:10px 13px!important;
  border:2px solid #ffe1a7!important;border-radius:12px!important;
  background:#d77d1a!important;color:#351708!important;
  box-shadow:inset 0 2px 0 rgba(255,244,210,.50),0 4px 0 #5b240c!important;
  font-family:var(--font-display)!important;font-size:1.2rem!important;text-align:center!important
}

/* ---------- Compact time metrics ---------- */
body.retro-theme .time-metrics,
body.retro-theme .time-service-metrics{display:grid!important;gap:11px!important;margin-bottom:14px!important}
body.retro-theme .time-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.retro-theme .time-service-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.retro-theme .time-page .metric{
  min-height:122px!important;padding:13px!important;border:3px solid #30170b!important;border-radius:17px!important;
  display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:10px!important;
  box-shadow:inset 0 0 0 3px rgba(255,235,192,.17),inset 0 2px 0 rgba(255,241,204,.28),0 6px 0 #1d0d06!important;
  overflow:hidden!important
}
body.retro-theme .time-page .metric:nth-child(4n+1){background:linear-gradient(180deg,#f8ddb0,#dfae64)!important;color:#3c1a0b!important}
body.retro-theme .time-page .metric:nth-child(4n+2){background:linear-gradient(180deg,#687042,#454c2b)!important;color:#fff0ce!important}
body.retro-theme .time-page .metric:nth-child(4n+3){background:linear-gradient(180deg,#dc7e20,#ad4510)!important;color:#fff0ce!important}
body.retro-theme .time-page .metric:nth-child(4n+4){background:linear-gradient(180deg,#69351d,#3c1e11)!important;color:#fff0ce!important}
body.retro-theme .time-page .metric::before,
body.retro-theme .time-page .metric::after{content:none!important;display:none!important}
body.retro-theme .time-page .metric-heading{display:flex!important;align-items:center!important;gap:8px!important;position:relative!important;z-index:1!important}
body.retro-theme .time-page .metric-icon{
  width:40px!important;height:40px!important;flex:0 0 40px!important;border:2px solid currentColor!important;border-radius:11px!important;
  display:grid!important;place-items:center!important;background:rgba(255,244,214,.14)!important;color:inherit!important;box-shadow:none!important
}
body.retro-theme .time-page .metric-icon svg{width:22px!important;height:22px!important;stroke:currentColor!important;fill:none!important}
body.retro-theme .time-page .metric-label{color:inherit!important;font-size:.64rem!important;font-weight:900!important;line-height:1.13!important;text-transform:uppercase!important;letter-spacing:.04em!important}
body.retro-theme .time-page .metric-value{
  color:inherit!important;font-family:var(--font-display)!important;font-size:2.25rem!important;font-weight:900!important;line-height:1!important;text-align:center!important
}
body.retro-theme .time-service-metrics .metric{min-height:110px!important}

/* ---------- Goal console ---------- */
body.retro-theme .time-goal-card,
body.retro-theme .time-chart-panel,
body.retro-theme .time-midyear-card{
  position:relative;overflow:hidden;margin:14px 0!important;padding:16px!important;
  border:3px solid #2d160b!important;border-radius:19px!important;
  background:
    repeating-linear-gradient(155deg,rgba(255,231,180,.035) 0 4px,rgba(57,22,8,.035) 4px 8px),
    linear-gradient(180deg,#4d2817,#29150d)!important;
  color:#ffe8bd!important;
  box-shadow:inset 0 0 0 3px #a85b14,inset 0 2px 0 rgba(255,237,193,.20),0 7px 0 #170a05!important
}
body.retro-theme .time-goal-card::before,
body.retro-theme .time-goal-card::after,
body.retro-theme .time-chart-panel::before,
body.retro-theme .time-chart-panel::after,
body.retro-theme .time-midyear-card::before,
body.retro-theme .time-midyear-card::after{content:none!important;display:none!important}
body.retro-theme .time-card-kicker{display:block;color:#d9a95b!important;font-size:.67rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.075em!important;margin-bottom:5px!important}
body.retro-theme .time-goal-card strong{display:block;color:#fff0ce!important;font-family:var(--font-display)!important;font-size:1.22rem!important;line-height:1.05!important}
body.retro-theme .time-goal-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:11px!important}
body.retro-theme .time-goal-header>span{color:#f3ca79!important;font-family:var(--font-display)!important;font-size:.85rem!important;text-align:right!important}
body.retro-theme .time-goal-card .progress-track,
body.retro-theme .mini-goal-track{
  height:12px!important;border:2px solid #2c150a!important;border-radius:999px!important;background:#f2d59f!important;overflow:hidden!important;box-shadow:inset 0 2px 4px rgba(63,25,7,.24)!important
}
body.retro-theme .time-goal-card .progress-fill,
body.retro-theme .mini-goal-fill{
  height:100%!important;border-radius:inherit!important;
  background:repeating-linear-gradient(135deg,#e19a1c 0 9px,#bf5b17 9px 18px)!important;
  box-shadow:inset 0 1px 0 rgba(255,238,193,.42)!important
}
body.retro-theme .time-goal-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:10px!important;color:#d5b37b!important;font-size:.78rem!important}
body.retro-theme .time-goal-card>.row-between{position:relative;z-index:1!important;gap:12px!important}
body.retro-theme .time-goal-card .action{width:auto!important;min-height:48px!important;padding:9px 12px!important}

/* ---------- Primary time actions ---------- */
body.retro-theme .time-primary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;margin:15px 0!important}
body.retro-theme .time-primary-actions .action{
  min-height:62px!important;border-radius:16px!important;border-width:3px!important;
  font-family:var(--font-display)!important;font-size:.93rem!important;letter-spacing:.01em!important
}
body.retro-theme .time-study-note{margin:12px 0!important;border-radius:16px!important}
body.retro-theme .time-list-heading{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin:19px 0 10px!important}
body.retro-theme .time-list-heading>span{color:#765437!important;font-size:.72rem!important;text-align:right!important}

/* ---------- Time entry cards ---------- */
body.retro-theme .time-entry-list{display:grid!important;gap:12px!important}
body.retro-theme .time-entry-card{
  position:relative;overflow:hidden;display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;
  padding:14px!important;border:3px solid #34180b!important;border-radius:18px!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.48),transparent 18%),
    repeating-linear-gradient(0deg,rgba(78,34,12,.022) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,#f7e1b9,#dfb877)!important;
  color:#3d1b0c!important;
  box-shadow:inset 0 0 0 3px rgba(255,247,220,.45),0 6px 0 #59270f!important
}
body.retro-theme .time-entry-card.monthly{background:linear-gradient(180deg,#e4d6a2,#b7a05a)!important}
body.retro-theme .time-entry-card::before,
body.retro-theme .time-entry-card::after{content:none!important;display:none!important}
body.retro-theme .time-entry-icon{
  width:50px!important;height:50px!important;display:grid!important;place-items:center!important;
  border:3px solid #35180a!important;border-radius:13px!important;background:linear-gradient(180deg,#da8e1d,#b95714)!important;color:#fff0ce!important;
  box-shadow:0 5px 0 #3a1808,inset 0 2px 0 rgba(255,236,194,.36)!important
}
body.retro-theme .time-entry-icon svg{width:27px!important;height:27px!important;stroke:currentColor!important;fill:none!important}
body.retro-theme .time-entry-copy{min-width:0!important}
body.retro-theme .time-entry-type{display:inline-block;color:#8a4d20!important;font-size:.64rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important}
body.retro-theme .time-entry-copy h3{margin:3px 0 4px!important;color:#3d1b0c!important;font-family:var(--font-display)!important;font-size:1.13rem!important;line-height:1.05!important}
body.retro-theme .time-entry-copy p{margin:0!important;color:#a34813!important;font-family:var(--font-display)!important;font-size:1rem!important;font-weight:900!important}
body.retro-theme .time-entry-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
body.retro-theme .time-inline-action{
  min-height:44px!important;padding:8px 10px!important;border:3px solid #32170a!important;border-radius:12px!important;
  background:linear-gradient(180deg,#fff0cf,#deb574)!important;color:#3d1b0c!important;
  box-shadow:0 4px 0 #4e210d!important;font-family:var(--font-body)!important;font-size:.72rem!important;font-weight:900!important
}
body.retro-theme .time-inline-action svg{width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important}
body.retro-theme .time-inline-action.danger{background:linear-gradient(180deg,#e48a69,#b74428)!important;color:#fff1d5!important;border-color:#512013!important;box-shadow:0 4px 0 #512013!important}

/* ---------- Service year chart ---------- */
body.retro-theme .time-midyear-card{background:linear-gradient(180deg,#626940,#3f4529)!important;border-color:#262b17!important;box-shadow:inset 0 0 0 3px #a88b35,0 7px 0 #202511!important}
body.retro-theme .time-midyear-card>span{color:#f1c66e!important;font-size:.66rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.07em!important}
body.retro-theme .time-midyear-card h3{margin:6px 0!important;color:#fff0ce!important;font-family:var(--font-display)!important;font-size:1.35rem!important}
body.retro-theme .time-midyear-card p{margin:0!important;color:#ead7aa!important;line-height:1.45!important}
body.retro-theme .time-midyear-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:13px!important}
body.retro-theme .time-midyear-stats>div{padding:9px!important;border:2px solid #293017!important;border-radius:11px!important;background:rgba(255,242,201,.10)!important}
body.retro-theme .time-midyear-stats small{display:block;color:#d8c28e!important;font-size:.58rem!important;text-transform:uppercase!important}
body.retro-theme .time-midyear-stats strong{display:block;margin-top:3px;color:#fff0ce!important;font-family:var(--font-display)!important;font-size:.93rem!important}
body.retro-theme .time-chart-panel{background:linear-gradient(180deg,#f8e5c2,#d9b070)!important;color:#3d1b0c!important;border-color:#4e230e!important;box-shadow:inset 0 0 0 3px rgba(255,246,218,.42),0 7px 0 #4e230e!important}
body.retro-theme .time-chart-panel .section-heading h3{color:#3d1b0c!important}
body.retro-theme .time-trend-chart{
  height:226px!important;display:grid!important;grid-template-columns:repeat(12,minmax(30px,1fr))!important;gap:6px!important;align-items:end!important;
  padding:18px 2px 0!important;overflow-x:auto!important;overscroll-behavior:contain!important
}
body.retro-theme .time-trend-column{height:100%!important;display:grid!important;grid-template-rows:auto 1fr auto!important;gap:5px!important;align-items:end!important;text-align:center!important}
body.retro-theme .time-trend-value{color:#603119!important;font-family:var(--font-display)!important;font-size:.68rem!important}
body.retro-theme .time-trend-bar-wrap{height:100%!important;min-height:120px!important;display:flex!important;align-items:flex-end!important;border-bottom:2px solid rgba(71,30,10,.30)!important}
body.retro-theme .time-trend-bar{width:78%!important;margin:0 auto!important;min-height:4px!important;border:2px solid #391a0b!important;border-bottom:0!important;border-radius:8px 8px 0 0!important;background:linear-gradient(180deg,#e29a1c,#ba5215)!important;box-shadow:inset 0 2px 0 rgba(255,232,180,.30)!important}
body.retro-theme .time-trend-column:nth-child(4n+2) .time-trend-bar{background:linear-gradient(180deg,#747a48,#4b512f)!important}
body.retro-theme .time-trend-column:nth-child(4n+3) .time-trend-bar{background:linear-gradient(180deg,#bf6a25,#7e3515)!important}
body.retro-theme .time-trend-column:nth-child(4n) .time-trend-bar{background:linear-gradient(180deg,#754022,#472316)!important}
body.retro-theme .time-trend-column>span{color:#65442c!important;font-size:.64rem!important;font-weight:900!important;text-transform:uppercase!important}

/* ---------- Service month control-panel cards ---------- */
body.retro-theme .service-month-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.retro-theme .service-month-card{
  position:relative!important;overflow:hidden!important;min-height:166px!important;padding:14px!important;text-align:left!important;
  border:3px solid #2f160a!important;border-radius:17px!important;
  background:
    linear-gradient(180deg,rgba(255,236,193,.20),transparent 18%),
    repeating-linear-gradient(155deg,rgba(255,230,180,.035) 0 4px,rgba(55,20,7,.035) 4px 8px),
    linear-gradient(180deg,#65351d,#351b10)!important;
  color:#ffe9bf!important;
  box-shadow:inset 0 0 0 3px #a65a15,inset 0 2px 0 rgba(255,235,191,.18),0 6px 0 #1a0c05!important
}
body.retro-theme .service-month-card:nth-child(3n+2){background:linear-gradient(180deg,#657041,#41482a)!important;box-shadow:inset 0 0 0 3px #a18b36,0 6px 0 #222713!important}
body.retro-theme .service-month-card:nth-child(3n){background:linear-gradient(180deg,#e0bd81,#c2904f)!important;color:#3d1b0c!important;box-shadow:inset 0 0 0 3px rgba(255,246,216,.45),0 6px 0 #5b2a12!important}
body.retro-theme .service-month-card.current{
  border-color:#ffe2a5!important;background:linear-gradient(180deg,#e78d20,#bd4e13)!important;color:#fff1cf!important;
  box-shadow:inset 0 0 0 4px #7b310e,inset 0 2px 0 rgba(255,242,204,.34),0 7px 0 #4a1b08,0 0 0 3px #d99a25!important
}
body.retro-theme .service-month-card::before,
body.retro-theme .service-month-card::after{content:none!important;display:none!important}
body.retro-theme .service-month-top{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important}
body.retro-theme .service-month-top>span{color:inherit!important;font-family:var(--font-display)!important;font-size:1.1rem!important;font-weight:900!important}
body.retro-theme .service-month-top>small{color:inherit!important;opacity:.72!important;font-size:.65rem!important}
body.retro-theme .service-month-current{display:inline-flex!important;margin:7px 0!important;padding:3px 7px!important;border:1px solid currentColor!important;border-radius:999px!important;font-size:.56rem!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.05em!important}
body.retro-theme .service-month-card>strong{display:block!important;margin:10px 0 3px!important;color:inherit!important;font-family:var(--font-display)!important;font-size:1.55rem!important;line-height:1!important}
body.retro-theme .service-month-card>p{margin:0 0 10px!important;color:inherit!important;opacity:.82!important;font-size:.70rem!important;line-height:1.35!important}
body.retro-theme .service-month-open{display:block!important;margin-top:9px!important;color:inherit!important;font-family:var(--font-display)!important;font-size:.73rem!important;text-align:right!important;text-decoration:underline!important;text-underline-offset:3px!important}

/* ---------- Time dialogs and selectors ---------- */
body.retro-theme :is(.time-entry-form,.time-goal-form){display:grid!important;gap:14px!important}
body.retro-theme .time-scope-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.retro-theme .time-scope-option,
body.retro-theme .time-goal-option,
body.retro-theme .time-quick-row button{
  border:3px solid #32170a!important;border-radius:14px!important;
  background:linear-gradient(180deg,#fff0cf,#dcb170)!important;color:#3d1b0c!important;
  box-shadow:0 5px 0 #4f210d!important;font-weight:900!important
}
body.retro-theme .time-scope-option.active:not(.ui2-pressing),
body.retro-theme .time-goal-option.active:not(.ui2-pressing){background:linear-gradient(180deg,#dc821e,#b74a12)!important;color:#fff0ce!important;border-color:#4c1d09!important;box-shadow:0 5px 0 #4c1d09!important}
body.retro-theme .time-duration-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.retro-theme .time-duration-grid label,
body.retro-theme .time-custom-goal,
body.retro-theme .time-service-year-input{display:grid!important;gap:6px!important;color:#4b2411!important;font-weight:900!important}
body.retro-theme .time-entry-form fieldset{margin:0!important;padding:14px!important;border:2px solid #5b2a12!important;border-radius:16px!important;background:#f3d9a9!important}
body.retro-theme .time-entry-form legend{padding:0 7px!important;color:#4b2411!important;font-family:var(--font-display)!important;font-weight:900!important}
body.retro-theme .time-entry-form input,
body.retro-theme .time-goal-form input{
  min-height:48px!important;border:2px solid #4c210e!important;border-radius:11px!important;background:#fff0cf!important;color:#3d1b0c!important;
  box-shadow:inset 0 3px 6px rgba(77,31,10,.10)!important
}
body.retro-theme .time-quick-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important}
body.retro-theme .time-quick-row button{min-height:43px!important;padding:7px!important;font-size:.72rem!important}
body.retro-theme .time-goal-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.retro-theme .time-goal-option{min-height:92px!important;padding:12px!important;text-align:left!important}
body.retro-theme .time-goal-option strong{display:block!important;color:inherit!important;font-family:var(--font-display)!important;font-size:1rem!important}
body.retro-theme .time-goal-option span{display:block!important;margin-top:4px!important;color:inherit!important;opacity:.76!important;font-size:.70rem!important;line-height:1.35!important}

/* Keep all Retro Time controls rectangular and prevent legacy decorative layers. */
body.retro-theme :is(
  .time-month-shift,.time-year-shift,.time-inline-action,.time-scope-option,.time-goal-option,
  .time-quick-row button,.service-month-card,.time-primary-actions .action
)::before,
body.retro-theme :is(
  .time-month-shift,.time-year-shift,.time-inline-action,.time-scope-option,.time-goal-option,
  .time-quick-row button,.service-month-card,.time-primary-actions .action
)::after{content:none!important;display:none!important}

/* ---------- Mobile refinements ---------- */
@media(max-width:520px){
  body.retro-theme .time-page{padding:14px!important;border-radius:20px!important}
  body.retro-theme .time-month-controls,
  body.retro-theme .time-year-controls{grid-template-columns:48px minmax(0,1fr) 48px!important;gap:8px!important}
  body.retro-theme .time-month-shift,
  body.retro-theme .time-year-shift,
  body.retro-theme .time-month-picker,
  body.retro-theme .time-year-controls>strong{min-height:56px!important}
  body.retro-theme .time-month-picker{grid-template-columns:35px minmax(0,1fr)!important;padding:7px 9px!important}
  body.retro-theme .time-month-picker .native-picker-icon{width:34px;height:34px;border-radius:9px!important}
  body.retro-theme .time-month-picker .native-picker-icon svg{width:19px!important;height:19px!important}
  body.retro-theme .time-month-picker .native-picker-label{font-size:.54rem!important}
  body.retro-theme .time-month-picker .native-picker-input{font-size:.88rem!important}
  body.retro-theme .time-month-focus,
  body.retro-theme .time-year-position{padding:13px!important}
  body.retro-theme .time-month-focus strong,
  body.retro-theme .time-year-position strong{font-size:1.15rem!important}
  body.retro-theme .time-focus-total{min-width:88px;padding:8px!important;font-size:1rem!important}
  body.retro-theme .time-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body.retro-theme .time-service-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.retro-theme .time-page .metric{min-height:108px!important;padding:9px!important;border-radius:14px!important}
  body.retro-theme .time-page .metric-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px!important}
  body.retro-theme .time-page .metric-icon svg{width:18px!important;height:18px!important}
  body.retro-theme .time-page .metric-label{font-size:.52rem!important;letter-spacing:.025em!important}
  body.retro-theme .time-page .metric-value{font-size:1.65rem!important}
  body.retro-theme .time-primary-actions{grid-template-columns:1fr!important}
  body.retro-theme .time-entry-card{grid-template-columns:46px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
  body.retro-theme .time-entry-icon{width:43px!important;height:43px!important;border-radius:11px!important}
  body.retro-theme .time-entry-icon svg{width:23px!important;height:23px!important}
  body.retro-theme .time-entry-actions{grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.retro-theme .time-goal-header,
  body.retro-theme .time-goal-footer{align-items:flex-start!important}
  body.retro-theme .service-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.retro-theme .service-month-card{min-height:152px!important;padding:11px!important;border-radius:14px!important}
  body.retro-theme .service-month-top>span{font-size:.95rem!important}
  body.retro-theme .service-month-card>strong{font-size:1.28rem!important}
  body.retro-theme .time-midyear-stats{grid-template-columns:1fr!important}
  body.retro-theme .time-goal-options{grid-template-columns:1fr!important}
}
@media(max-width:370px){
  body.retro-theme .time-metrics,
  body.retro-theme .time-service-metrics,
  body.retro-theme .service-month-grid{grid-template-columns:1fr!important}
  body.retro-theme .time-month-focus,
  body.retro-theme .time-year-position{align-items:flex-start!important;flex-direction:column!important}
  body.retro-theme .time-focus-total{width:100%!important}
  body.retro-theme .time-scope-row,
  body.retro-theme .time-duration-grid{grid-template-columns:1fr!important}
}
/* END RETRO PHASE 3 V3.23 */

/* BEGIN RETRO VISITS CONTACTS TIME REPAIR V3.24
   Fixes Black & Gold theme leakage in Visits and date controls,
   and increases Contact text contrast/readability. */

/* ---------- Visits: force all nested surfaces back to Retro paper ---------- */
body.retro-theme .visits-page :is(
  .visit-card,
  .visit-attention-controls,
  .visit-contact-choice,
  .visit-log-section,
  .visit-resource-dropdown,
  .study-lesson-dropdown,
  .visit-resource-menu,
  .study-lesson-list,
  .visit-section-note,
  .visit-reset-wrap,
  .visit-summary,
  .empty-state
){
  color:#43200f!important;
  border-color:#5a2a12!important;
  background:
    repeating-linear-gradient(0deg,rgba(79,37,17,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff0d2,#e5bd80)!important;
  box-shadow:
    inset 0 2px 0 rgba(255,252,234,.82),
    inset 0 0 0 4px rgba(91,42,18,.045),
    0 7px 0 rgba(70,31,12,.25),
    0 12px 20px rgba(0,0,0,.16)!important;
}
body.retro-theme .visits-page :is(
  .visit-card,
  .visit-attention-controls,
  .visit-contact-choice,
  .visit-log-section,
  .visit-resource-dropdown,
  .study-lesson-dropdown,
  .visit-resource-menu,
  .study-lesson-list,
  .visit-section-note,
  .visit-reset-wrap,
  .visit-summary,
  .empty-state
)::before,
body.retro-theme .visits-page :is(
  .visit-card,
  .visit-attention-controls,
  .visit-contact-choice,
  .visit-log-section,
  .visit-resource-dropdown,
  .study-lesson-dropdown,
  .visit-resource-menu,
  .study-lesson-list,
  .visit-section-note,
  .visit-reset-wrap,
  .visit-summary,
  .empty-state
)::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
body.retro-theme .visits-page .visit-card{
  border-radius:19px!important;
  overflow:hidden!important;
}
body.retro-theme .visits-page :is(.visit-card h3,.visit-card-top h3,.visit-log-section h4,.visit-attention-controls h3){
  color:#3d1b0b!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  text-shadow:none!important;
}
body.retro-theme .visits-page :is(.visit-card p,.visit-card-top p,.visit-summary,.visit-section-note,.visit-contact-copy small){
  color:#684225!important;
  font-weight:650!important;
  text-shadow:none!important;
}
body.retro-theme .visits-page .visit-status{
  color:#8f3c12!important;
  font-weight:900!important;
}
body.retro-theme .visits-page :is(.visit-resource-dropdown summary,.study-lesson-dropdown summary){
  background:linear-gradient(180deg,#f8dfb1,#dcad68)!important;
  color:#3e1c0b!important;
  border:0!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.58)!important;
}
body.retro-theme .visits-page :is(.visit-resource-choice,.study-lesson-list-choice,.picker-choice,.visit-choice){
  background:
    linear-gradient(180deg,rgba(255,250,226,.38) 0 8%,transparent 9%),
    linear-gradient(180deg,#f5ddb0,#d8ab69)!important;
  color:#44200f!important;
  border-color:#4d2411!important;
}
body.retro-theme .visits-page :is(.visit-resource-choice,.study-lesson-list-choice,.picker-choice,.visit-choice).active:not(.ui2-pressing){
  background:linear-gradient(180deg,#d97220,#a84011)!important;
  color:#fff0ca!important;
  border-color:#54200b!important;
}

/* ---------- Contacts: stronger, darker, easier-to-read typography ---------- */
body.retro-theme .contacts-page .contact-card-copy,
body.retro-theme .contact-details,
body.retro-theme .history-section{
  color:#3d1c0c!important;
  font-weight:650!important;
}
body.retro-theme .contacts-page .contact-name,
body.retro-theme .contact-details .contact-name{
  color:#321509!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
  text-shadow:none!important;
}
body.retro-theme .contacts-page .contact-meta,
body.retro-theme .contact-details :is(.contact-detail-row,.contact-next-notice),
body.retro-theme .history-card p{
  color:#563019!important;
  font-weight:700!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.retro-theme .contacts-page .contact-emphasis{
  color:#73300f!important;
  font-weight:850!important;
}
body.retro-theme .contacts-page :is(input,select,textarea)::placeholder{
  color:#79583b!important;
  opacity:1!important;
  font-weight:650!important;
}

/* ---------- Time: replace Black & Gold date/month fields ---------- */
body.retro-theme .time-page :is(.native-picker-field,.time-month-picker),
body.retro-theme .dialog :is(.time-entry-form,.time-goal-form) .native-picker-field,
body.retro-theme .visit-form .native-picker-field{
  position:relative!important;
  min-height:58px!important;
  overflow:hidden!important;
  border:3px solid #48210f!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,250,224,.48) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(88,37,13,.035) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f8e3b7,#d9ad6d)!important;
  color:#3e1c0b!important;
  box-shadow:
    inset 0 0 0 3px rgba(255,244,210,.48),
    inset 0 -8px 13px rgba(91,39,12,.10),
    0 5px 0 #51240e,
    0 8px 13px rgba(0,0,0,.18)!important;
}
body.retro-theme .time-page :is(.native-picker-field,.time-month-picker)::before,
body.retro-theme .time-page :is(.native-picker-field,.time-month-picker)::after,
body.retro-theme .dialog :is(.time-entry-form,.time-goal-form) .native-picker-field::before,
body.retro-theme .dialog :is(.time-entry-form,.time-goal-form) .native-picker-field::after,
body.retro-theme .visit-form .native-picker-field::before,
body.retro-theme .visit-form .native-picker-field::after{
  content:none!important;
  display:none!important;
}
body.retro-theme :is(.time-page,.dialog,.visit-form) .native-picker-icon{
  color:#8e3b12!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.retro-theme :is(.time-page,.dialog,.visit-form) .native-picker-label{
  color:#5b2b15!important;
  font-weight:900!important;
  text-shadow:none!important;
}
body.retro-theme :is(.time-page,.dialog,.visit-form) .native-picker-input{
  color:#351609!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  color-scheme:light!important;
}
body.retro-theme .time-page :is(.time-month-shift,.time-year-shift),
body.retro-theme .time-page .time-year-controls>strong{
  border:3px solid #3f1d0d!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,241,200,.30) 0 8%,transparent 9%),
    linear-gradient(180deg,#d66f20,#a64011)!important;
  color:#fff0cb!important;
  box-shadow:
    inset 0 0 0 3px rgba(255,218,147,.23),
    0 5px 0 #4d1e0b,
    0 8px 13px rgba(0,0,0,.20)!important;
}
body.retro-theme .time-page .time-month-controls,
body.retro-theme .time-page .time-year-controls{
  background:transparent!important;
  box-shadow:none!important;
}

/* Keep the existing whole-button press behavior. */
body.retro-theme :is(.time-month-shift,.time-year-shift,.native-picker-field).ui2-pressing{
  transform:translateY(2px) scale(.975)!important;
}
/* END RETRO VISITS CONTACTS TIME REPAIR V3.24 */


/* BEGIN RETRO NESTED SURFACE & CONTRAST REPAIR V3.25
   Targets the exact controls still inheriting global Black & Gold rules:
   Visit date/status boxes, How-you-met picker, map controls/cards, contact
   history labels, and Time native month/date fields. */

/* ---------- Visits: remove remaining black stat boxes and badge ---------- */
body.retro-theme .visits-page .visit-date-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;
  margin-top:14px!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.retro-theme .visits-page .visit-date-grid>div{
  min-height:88px!important;
  padding:13px!important;
  border:3px solid #4b2411!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,250,225,.50) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(89,39,15,.03) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f7dfb2,#dcb06f)!important;
  color:#3b1a0b!important;
  box-shadow:
    inset 0 0 0 3px rgba(255,244,210,.44),
    inset 0 -8px 13px rgba(86,38,13,.10),
    0 5px 0 #52250f,
    0 8px 13px rgba(0,0,0,.16)!important;
}
body.retro-theme .visits-page .visit-date-grid>div::before,
body.retro-theme .visits-page .visit-date-grid>div::after{
  content:none!important;
  display:none!important;
}
body.retro-theme .visits-page .visit-date-grid small{
  display:block!important;
  margin-bottom:6px!important;
  color:#713715!important;
  font-family:var(--font-display)!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  text-shadow:none!important;
}
body.retro-theme .visits-page .visit-date-grid strong{
  display:block!important;
  color:#351509!important;
  font-family:var(--font-display)!important;
  font-size:1.04rem!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-shadow:none!important;
}
body.retro-theme .visits-page .visit-badge{
  border:2px solid #5a2811!important;
  background:linear-gradient(180deg,#f4d59f,#d59b55)!important;
  color:#3d1a0a!important;
  box-shadow:inset 0 2px 0 rgba(255,250,229,.60),0 4px 0 #57240d!important;
  text-shadow:none!important;
}
body.retro-theme .visits-page .visit-badge.danger{
  border-color:#6f261b!important;
  background:linear-gradient(180deg,#db694d,#af3828)!important;
  color:#fff2dc!important;
}
body.retro-theme .visits-page .visit-badge.today{
  border-color:#4d522d!important;
  background:linear-gradient(180deg,#7b8650,#596136)!important;
  color:#fff2d4!important;
}
body.retro-theme .visits-page .visit-badge.soon{
  border-color:#80510f!important;
  background:linear-gradient(180deg,#e4ad3d,#b76e18)!important;
  color:#3b1908!important;
}

/* ---------- Contact form: replace Black & Gold How-you-met picker ---------- */
body.retro-theme .dialog .contact-form .form-picker,
body.retro-theme .contact-form .form-picker{
  width:100%!important;
  min-height:58px!important;
  padding:10px 14px!important;
  border:3px solid #4a210f!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,251,228,.48) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(83,34,11,.03) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f8e2b7,#dcb171)!important;
  color:#351509!important;
  box-shadow:inset 0 0 0 3px rgba(255,244,210,.42),0 5px 0 #54250f!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  text-shadow:none!important;
}
body.retro-theme .dialog .contact-form .form-picker svg,
body.retro-theme .contact-form .form-picker svg{
  color:#8f3c12!important;
  stroke:currentColor!important;
}
body.retro-theme .dialog .contact-form .form-picker-options,
body.retro-theme .contact-form .form-picker-options{
  gap:8px!important;
  padding:10px!important;
  border:3px solid #4a210f!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#f3dab0,#d4a365)!important;
  box-shadow:0 5px 0 #54250f!important;
}
body.retro-theme .dialog .contact-form .form-picker-option,
body.retro-theme .contact-form .form-picker-option{
  min-height:50px!important;
  padding:10px 12px!important;
  border:2px solid #5a2a13!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fff0d0,#dfb779)!important;
  color:#3b1a0b!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  text-shadow:none!important;
  box-shadow:0 3px 0 #5a2a13!important;
}
body.retro-theme .dialog .contact-form .form-picker-option.active:not(.ui2-pressing),
body.retro-theme .contact-form .form-picker-option.active:not(.ui2-pressing){
  border-color:#5a210b!important;
  background:linear-gradient(180deg,#d97220,#a83f11)!important;
  color:#fff1cf!important;
}

/* ---------- Contact detail/history: force dark readable labels ---------- */
body.retro-theme .contact-details,
body.retro-theme .history-section,
body.retro-theme .history-card{
  color:#351609!important;
}
body.retro-theme .history-section>h3,
body.retro-theme .history-section .section-heading h3{
  color:#37170a!important;
  font-family:var(--font-display)!important;
  font-weight:900!important;
  text-shadow:none!important;
}
body.retro-theme .history-card h4{
  color:#351609!important;
  font-weight:900!important;
  text-shadow:none!important;
}
body.retro-theme .history-card p,
body.retro-theme .history-card p strong,
body.retro-theme .contact-detail-row strong,
body.retro-theme .contact-detail-row span{
  color:#44210f!important;
  opacity:1!important;
  font-weight:800!important;
  text-shadow:none!important;
}
body.retro-theme .history-card p strong{
  color:#6f2d0e!important;
  font-weight:950!important;
}
body.retro-theme .contact-detail-row,
body.retro-theme .history-card{
  border-color:#562711!important;
  background:
    repeating-linear-gradient(0deg,rgba(79,37,17,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff0d2,#e5bc7e)!important;
}

/* ---------- Map: walnut control panel, cream cards, readable copy ---------- */
body.retro-theme .map-page .map-search-panel,
body.retro-theme .map-page .map-summary-bar{
  border:3px solid #4b210e!important;
  border-radius:16px!important;
  background:
    linear-gradient(180deg,rgba(255,231,181,.18) 0 8%,transparent 9%),
    repeating-linear-gradient(155deg,rgba(255,219,158,.035) 0 3px,rgba(54,20,8,.045) 3px 7px),
    linear-gradient(180deg,#69351d,#472314)!important;
  color:#ffe8bd!important;
  box-shadow:inset 0 0 0 3px rgba(232,161,46,.32),0 6px 0 #251108,0 10px 16px rgba(0,0,0,.22)!important;
}
body.retro-theme .map-page .map-search-panel::before,
body.retro-theme .map-page .map-summary-bar::before,
body.retro-theme .map-page .map-summary-bar::after{
  content:none!important;
  display:none!important;
}
body.retro-theme .map-page .map-search-wrap{
  border-right-color:rgba(255,224,169,.28)!important;
}
body.retro-theme .map-page .map-search-wrap input{
  color:#fff0d0!important;
  background:transparent!important;
}
body.retro-theme .map-page .map-search-wrap input::placeholder{
  color:#e0bd8b!important;
  opacity:1!important;
}
body.retro-theme .map-page .map-search-wrap>svg,
body.retro-theme .map-page .map-search-reset{
  color:#efac37!important;
  stroke:currentColor!important;
}
body.retro-theme .map-page .map-small-action{
  min-height:44px!important;
  border:2px solid #4a210f!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#f8dfb0,#d7a768)!important;
  color:#3b1909!important;
  box-shadow:0 4px 0 #4f210d!important;
  font-weight:900!important;
}
body.retro-theme .map-page .map-small-action:disabled{
  background:linear-gradient(180deg,#c9b99d,#a59377)!important;
  color:#4e4031!important;
  opacity:.78!important;
}
body.retro-theme .map-page .ui2-map-legend{
  border:2px solid #9d5c1c!important;
  border-radius:12px!important;
  background:rgba(74,36,20,.94)!important;
  color:#ffe6b9!important;
  box-shadow:0 4px 0 rgba(37,16,7,.76)!important;
  backdrop-filter:blur(3px)!important;
}
body.retro-theme .map-page .ui2-map-canvas .leaflet-control-zoom{
  border:2px solid #c77e22!important;
  box-shadow:0 5px 0 #32150a,0 8px 13px rgba(0,0,0,.25)!important;
}
body.retro-theme .map-page .ui2-map-canvas .leaflet-control-zoom a{
  background:#63331c!important;
  color:#ffe5b4!important;
  border-bottom-color:#a25d1a!important;
}
body.retro-theme .map-page .map-contact-group h4{
  color:#4a210f!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-contact-group h4 span{
  color:#5a2a12!important;
  opacity:1!important;
  font-weight:900!important;
}
body.retro-theme .map-page .map-contact-card,
body.retro-theme .map-page .map-location-card,
body.retro-theme .map-page .map-contact-preview{
  border:2px solid #5a2a12!important;
  background:
    repeating-linear-gradient(0deg,rgba(79,37,17,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff0d2,#e4ba7b)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,234,.72),0 6px 0 rgba(77,34,13,.38),0 10px 17px rgba(0,0,0,.15)!important;
}
body.retro-theme .map-page .map-contact-card::before,
body.retro-theme .map-page .map-contact-card::after,
body.retro-theme .map-page .map-location-card::before,
body.retro-theme .map-page .map-location-card::after,
body.retro-theme .map-page .map-contact-preview::before,
body.retro-theme .map-page .map-contact-preview::after{
  content:none!important;
  display:none!important;
}
body.retro-theme .map-page .map-contact-main{
  color:#351609!important;
  background:transparent!important;
}
body.retro-theme .map-page .map-card-copy strong,
body.retro-theme .map-page .map-location-copy strong,
body.retro-theme .map-page .map-preview-top h3{
  color:#321408!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-card-copy small,
body.retro-theme .map-page .map-card-copy .map-card-date,
body.retro-theme .map-page .map-location-copy>span,
body.retro-theme .map-page .map-location-copy p,
body.retro-theme .map-page .map-location-copy small,
body.retro-theme .map-page .map-preview-details,
body.retro-theme .map-page .map-section-copy{
  color:#5c321a!important;
  opacity:1!important;
  font-weight:750!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-card-pin,
body.retro-theme .map-page .map-preview-pin{
  background:#60321d!important;
  color:#ffe4ae!important;
  border-color:#9f5d1b!important;
}
body.retro-theme .map-page .map-card-pin.study,
body.retro-theme .map-page .map-preview-pin.study{color:#83dca3!important;border-color:#4f9c69!important}
body.retro-theme .map-page .map-card-pin.followup,
body.retro-theme .map-page .map-preview-pin.followup{color:#c895dd!important;border-color:#8d559f!important}
body.retro-theme .map-page .map-inline-action{
  min-height:46px!important;
  border-right:2px solid #5a2a12!important;
  background:linear-gradient(180deg,#f8e0b3,#d9ad6e)!important;
  color:#3b1909!important;
  font-weight:900!important;
}
body.retro-theme .map-page .map-card-actions{
  border-top:2px solid #5a2a12!important;
}

/* ---------- Time: stronger exact selectors for month/date controls ---------- */
body.retro-theme .time-page label.native-picker-field.time-month-picker,
body.retro-theme .time-page .time-entry-date label.native-picker-field,
body.retro-theme .time-page .time-entry-month label.native-picker-field,
body.retro-theme .dialog .time-entry-form label.native-picker-field,
body.retro-theme .dialog .visit-form label.native-picker-field{
  border:3px solid #4a210f!important;
  background:
    linear-gradient(180deg,rgba(255,251,228,.50) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(83,34,11,.03) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f8e2b7,#dcb171)!important;
  color:#351509!important;
  box-shadow:inset 0 0 0 3px rgba(255,244,210,.44),0 5px 0 #54250f!important;
}
body.retro-theme .time-page label.native-picker-field.time-month-picker input.native-picker-input,
body.retro-theme .time-page label.native-picker-field input.native-picker-input,
body.retro-theme .dialog label.native-picker-field input.native-picker-input{
  color:#351509!important;
  background:transparent!important;
  -webkit-text-fill-color:#351509!important;
  color-scheme:light!important;
  font-weight:900!important;
  opacity:1!important;
}
body.retro-theme label.native-picker-field input.native-picker-input::-webkit-calendar-picker-indicator{
  opacity:1!important;
  filter:sepia(.8) saturate(2) hue-rotate(345deg) brightness(.65)!important;
}

@media(max-width:430px){
  body.retro-theme .visits-page .visit-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.retro-theme .visits-page .visit-date-grid>div{padding:10px!important;min-height:82px!important}
  body.retro-theme .visits-page .visit-date-grid small{font-size:.64rem!important}
  body.retro-theme .visits-page .visit-date-grid strong{font-size:.92rem!important}
}
/* END RETRO NESTED SURFACE & CONTRAST REPAIR V3.25 */


/* ======================================================================
   Make Disciples — Retro Phase 4 (v3.26)
   Ministry Map + Teaching Toolbox
   Loaded after the approved v3.25 Retro runtime.
   ====================================================================== */

/* ---------- Ministry Map: complete Retro control-panel treatment ---------- */
body.retro-theme .map-page{
  --retro-map-ink:#351609;
  --retro-map-brown:#4b210e;
  --retro-map-rust:#b64d15;
  --retro-map-orange:#d76d18;
  --retro-map-mustard:#dc9a1c;
  --retro-map-cream:#f8dfad;
  --retro-map-paper:#fff0cf;
  --retro-map-walnut:#5b2d19;
}
body.retro-theme .map-page :is(.map-search-panel,.map-summary-bar,.map-filter,.map-small-action,.map-contact-card,.map-location-card,.map-contact-preview,.map-inline-action,.map-preview-actions .action,.map-location-actions .action,.ui2-map-legend,.leaflet-control-zoom a){
  -webkit-tap-highlight-color:transparent!important;
}
body.retro-theme .map-page :is(.map-search-panel,.map-summary-bar,.map-contact-card,.map-location-card,.map-contact-preview,.map-filter,.map-small-action,.map-inline-action)::before,
body.retro-theme .map-page :is(.map-search-panel,.map-summary-bar,.map-contact-card,.map-location-card,.map-contact-preview,.map-filter,.map-small-action,.map-inline-action)::after{
  content:none!important;
  display:none!important;
}
body.retro-theme .map-page .map-search-panel{
  grid-template-columns:minmax(0,1fr) 64px!important;
  overflow:hidden!important;
  border:3px solid var(--retro-map-brown)!important;
  border-radius:17px!important;
  background:
    linear-gradient(180deg,rgba(255,244,213,.18) 0 8%,transparent 9%),
    repeating-linear-gradient(155deg,rgba(255,220,155,.035) 0 3px,rgba(36,12,5,.035) 3px 8px),
    linear-gradient(180deg,#6b361e,#482214)!important;
  box-shadow:inset 0 0 0 3px rgba(222,146,33,.34),0 6px 0 #281107,0 11px 18px rgba(0,0,0,.23)!important;
}
body.retro-theme .map-page .map-search-wrap{border-right:2px solid rgba(255,224,169,.28)!important}
body.retro-theme .map-page .map-search-wrap>svg{left:17px!important;color:#ffc25c!important;stroke:currentColor!important}
body.retro-theme .map-page .map-search-wrap input{
  min-height:64px!important;
  color:#fff0d2!important;
  background:transparent!important;
  -webkit-text-fill-color:#fff0d2!important;
  font-weight:800!important;
}
body.retro-theme .map-page .map-search-wrap input::placeholder{color:#e7c18d!important;opacity:1!important}
body.retro-theme .map-page .map-search-reset{
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#c65a17,#8b3512)!important;
  color:#fff0ce!important;
  box-shadow:inset 2px 0 0 rgba(255,219,151,.22)!important;
}
body.retro-theme .map-page .map-search-reset svg{stroke:currentColor!important}

body.retro-theme .map-page .map-filter-row{gap:9px!important;margin-bottom:14px!important}
body.retro-theme .map-page .map-filter{
  min-height:54px!important;
  padding:8px 6px!important;
  border:3px solid #4a210f!important;
  border-radius:13px!important;
  background:
    linear-gradient(180deg,rgba(255,253,231,.50) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(83,34,11,.03) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f7dfad,#d8aa68)!important;
  color:#3a1809!important;
  box-shadow:inset 0 0 0 3px rgba(255,244,210,.42),0 5px 0 #54250f!important;
  font-family:var(--font-display)!important;
  font-size:.69rem!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-filter.active:not(.ui2-pressing){
  background:
    linear-gradient(180deg,rgba(255,236,180,.42) 0 9%,transparent 10%),
    repeating-linear-gradient(155deg,rgba(255,228,176,.05) 0 3px,rgba(86,25,5,.05) 3px 8px),
    linear-gradient(180deg,#df741d,#ad4213)!important;
  color:#fff0cf!important;
  border-color:#5a260d!important;
  box-shadow:inset 0 0 0 3px rgba(255,195,79,.38),0 5px 0 #4a1e0b,0 0 0 2px rgba(226,151,30,.24)!important;
}

body.retro-theme .map-page .map-summary-bar{
  align-items:center!important;
  padding:12px!important;
  border:3px solid #4b210e!important;
  border-radius:16px!important;
  background:
    repeating-linear-gradient(155deg,rgba(255,224,165,.035) 0 3px,rgba(40,13,5,.04) 3px 8px),
    linear-gradient(180deg,#65321c,#452114)!important;
  color:#ffe9bf!important;
  box-shadow:inset 0 0 0 3px rgba(216,137,28,.30),0 6px 0 #251007,0 10px 16px rgba(0,0,0,.22)!important;
  font-weight:850!important;
}
body.retro-theme .map-page .map-summary-actions{gap:9px!important}
body.retro-theme .map-page .map-small-action{
  min-height:43px!important;
  padding:7px 12px!important;
  border:3px solid #4a210f!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#f8e1b0,#d6a464)!important;
  color:#371609!important;
  box-shadow:inset 0 2px 0 rgba(255,251,224,.65),0 4px 0 #4f210d!important;
  font-weight:950!important;
}
body.retro-theme .map-page .map-small-action:disabled{
  background:linear-gradient(180deg,#c9b99d,#a39378)!important;
  color:#4f4131!important;
  opacity:.82!important;
  box-shadow:0 4px 0 #514431!important;
}

body.retro-theme .map-page .ui2-map-shell{
  border:3px solid #8d531a!important;
  border-radius:17px!important;
  background:#2d160c!important;
  box-shadow:inset 0 0 0 4px #32160a,inset 0 0 0 6px #d18722,0 9px 0 #2a1208,0 15px 26px rgba(0,0,0,.28)!important;
}
body.retro-theme .map-page .ui2-map-shell::before{border-color:rgba(255,220,150,.22)!important;border-radius:11px!important}
body.retro-theme .map-page .ui2-map-canvas.leaflet-container{background:#d6c7a7!important}
body.retro-theme .map-page .ui2-map-canvas .leaflet-tile-pane{filter:saturate(.48) sepia(.20) brightness(.90) contrast(1.02)!important}
body.retro-theme .map-page .ui2-map-overlay{
  inset:7px!important;
  border-radius:9px!important;
  background:rgba(75,36,19,.90)!important;
  color:#ffe8bd!important;
  backdrop-filter:blur(3px)!important;
}
body.retro-theme .map-page .map-loader{border-color:rgba(255,228,170,.25)!important;border-top-color:#e39a25!important}
body.retro-theme .map-page .ui2-map-legend{
  border:2px solid #a15d1b!important;
  border-radius:12px!important;
  background:rgba(76,37,20,.95)!important;
  color:#ffe7bd!important;
  box-shadow:inset 0 1px 0 rgba(255,237,195,.16),0 4px 0 rgba(40,17,7,.78)!important;
}
body.retro-theme .map-page .ui2-map-canvas .leaflet-control-zoom{
  overflow:hidden!important;
  border:3px solid #b86f20!important;
  border-radius:10px!important;
  box-shadow:0 5px 0 #32150a,0 9px 15px rgba(0,0,0,.25)!important;
}
body.retro-theme .map-page .ui2-map-canvas .leaflet-control-zoom a{
  background:linear-gradient(180deg,#6c381f,#4e2516)!important;
  color:#ffe5b6!important;
  border-bottom:1px solid #a6601d!important;
  font-weight:950!important;
}
body.retro-theme .map-page .ui2-map-canvas .leaflet-tooltip{
  border:2px solid #a6601d!important;
  border-radius:9px!important;
  background:#5a2c18!important;
  color:#ffe9c0!important;
  box-shadow:0 5px 0 #2f1409!important;
}

body.retro-theme .map-page .map-list-section{margin-top:20px!important}
body.retro-theme .map-page .map-list-section>.section-heading h3,
body.retro-theme .map-page .map-list-section>.section-heading h3 span{
  color:#3b1809!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-contact-group h4{
  margin:14px 0 8px!important;
  color:#431d0c!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-contact-group h4 span{color:#582711!important;font-weight:950!important;opacity:1!important}
body.retro-theme .map-page .map-contact-list,
body.retro-theme .map-page .map-location-list{gap:13px!important}
body.retro-theme .map-page .map-contact-card,
body.retro-theme .map-page .map-location-card,
body.retro-theme .map-page .map-contact-preview{
  overflow:hidden!important;
  border:3px solid #55250f!important;
  border-radius:18px!important;
  background:
    repeating-linear-gradient(0deg,rgba(74,31,12,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff0d1,#e4b979)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,232,.75),0 6px 0 rgba(79,34,13,.52),0 11px 18px rgba(0,0,0,.14)!important;
}
body.retro-theme .map-page .map-contact-main{padding:14px!important;background:transparent!important;color:#351609!important}
body.retro-theme .map-page .map-card-copy strong,
body.retro-theme .map-page .map-location-copy strong,
body.retro-theme .map-page .map-preview-top h3{
  color:#311307!important;
  font-weight:950!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.retro-theme .map-page :is(.map-card-copy small,.map-card-copy .map-card-date,.map-location-copy>span,.map-location-copy p,.map-location-copy small,.map-preview-details,.map-preview-details p,.map-section-copy){
  color:#60341b!important;
  opacity:1!important;
  font-weight:750!important;
  text-shadow:none!important;
}
body.retro-theme .map-page .map-card-chevron{color:#8f4217!important}
body.retro-theme .map-page .map-card-pin,
body.retro-theme .map-page .map-preview-pin{
  border:3px solid #995619!important;
  background:linear-gradient(180deg,#6b371f,#4b2415)!important;
  color:#ffe5b3!important;
  box-shadow:inset 0 1px 0 rgba(255,230,180,.22),0 4px 0 #2f1409!important;
}
body.retro-theme .map-page .map-type-badge{
  border:2px solid #995619!important;
  border-radius:999px!important;
  background:#f3d294!important;
  color:#4b210e!important;
  font-weight:900!important;
}
body.retro-theme .map-page .map-card-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  border-top:3px solid #55250f!important;
  background:#5c2c18!important;
}
body.retro-theme .map-page .map-inline-action{
  min-height:52px!important;
  border:0!important;
  border-right:2px solid #55250f!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#f8e0ae,#d7a566)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,250,225,.60)!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
}
body.retro-theme .map-page .map-inline-action:last-child{border-right:0!important}
body.retro-theme .map-page .map-preview-actions,
body.retro-theme .map-page .map-location-actions{gap:10px!important}
body.retro-theme .map-page :is(.map-preview-actions .action,.map-location-actions .action){
  min-height:52px!important;
  border:3px solid #4b210e!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#f7dfad,#d7a668)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,228,.62),0 5px 0 #55250f!important;
  font-weight:950!important;
}
body.retro-theme .map-page :is(.map-preview-actions .action.primary,.map-location-actions .action.primary){
  background:linear-gradient(180deg,#df741d,#ae4213)!important;
  color:#fff0cf!important;
}
body.retro-theme .map-page .map-location-warning-section .empty-state,
body.retro-theme .map-page .map-contact-groups>.empty-state{
  border:3px solid #55250f!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#fff0d1,#e4b979)!important;
  color:#4c250f!important;
  box-shadow:0 6px 0 rgba(79,34,13,.44)!important;
}
body.retro-theme .map-page .map-location-warning-section .empty-state :is(p,strong,span){color:#4c250f!important;opacity:1!important}

/* ---------- Teaching Toolbox: complete Retro management surface ---------- */
body.retro-theme .settings-page .toolbox-summary-strip{gap:10px!important}
body.retro-theme .settings-page .toolbox-summary-chip{
  min-height:78px!important;
  padding:12px 8px!important;
  border:3px solid #4b210e!important;
  border-radius:14px!important;
  background:
    linear-gradient(180deg,rgba(255,252,229,.52) 0 9%,transparent 10%),
    repeating-linear-gradient(12deg,rgba(83,34,11,.03) 0 2px,transparent 2px 7px),
    linear-gradient(180deg,#f7dfad,#d8a968)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,244,210,.42),0 5px 0 #54250f!important;
}
body.retro-theme .settings-page .toolbox-summary-chip strong{
  color:#351609!important;
  font-family:var(--font-display)!important;
  font-size:1.25rem!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .settings-page .toolbox-summary-chip span{color:#63361b!important;font-weight:850!important;opacity:1!important}
body.retro-theme .settings-page .settings-toolbox-dropdown{
  overflow:hidden!important;
  border:3px solid #4b210e!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#f4d89f,#c98d4e)!important;
  box-shadow:0 6px 0 #54250f,0 11px 18px rgba(0,0,0,.14)!important;
}
body.retro-theme .settings-page .settings-toolbox-dropdown>summary{
  min-height:58px!important;
  padding:12px 14px!important;
  border:0!important;
  background:
    repeating-linear-gradient(155deg,rgba(255,225,166,.04) 0 3px,rgba(48,15,6,.04) 3px 8px),
    linear-gradient(180deg,#68351d,#472214)!important;
  color:#ffe8be!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
}
body.retro-theme .settings-page .settings-toolbox-dropdown>summary svg{color:#ffc25a!important;stroke:currentColor!important}
body.retro-theme .settings-page .settings-toolbox-dropdown[open]>summary{border-bottom:3px solid #4b210e!important;background:linear-gradient(180deg,#bf5417,#8d3512)!important}
body.retro-theme .settings-page .toolbox-manage-list{padding:12px!important;gap:12px!important;background:#edc98e!important}
body.retro-theme .settings-page .toolbox-type-group{
  padding:10px!important;
  border:2px solid rgba(91,42,17,.34)!important;
  border-radius:14px!important;
  background:rgba(255,240,207,.48)!important;
}
body.retro-theme .settings-page .toolbox-type-heading{
  padding:5px 4px 10px!important;
  color:#3b1809!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .settings-page .toolbox-type-heading span{color:#6a371b!important;font-weight:900!important;opacity:1!important}
body.retro-theme .settings-page .toolbox-manage-row{
  grid-template-columns:46px minmax(0,1fr) auto!important;
  gap:11px!important;
  padding:11px!important;
  border:3px solid #55250f!important;
  border-radius:15px!important;
  background:
    repeating-linear-gradient(0deg,rgba(74,31,12,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff0d1,#e3b777)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,232,.72),0 5px 0 rgba(79,34,13,.46)!important;
}
body.retro-theme .settings-page .toolbox-resource-icon{
  width:46px!important;height:46px!important;
  border:3px solid #54250f!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#e3a321,#bf6817)!important;
  color:#3b1909!important;
  box-shadow:inset 0 2px 0 rgba(255,240,182,.48),0 4px 0 #54250f!important;
}
body.retro-theme .settings-page .toolbox-manage-copy strong{color:#311307!important;font-weight:950!important;opacity:1!important;text-shadow:none!important}
body.retro-theme .settings-page .toolbox-manage-copy span{color:#60341b!important;font-weight:750!important;opacity:1!important;text-shadow:none!important}
body.retro-theme .settings-page .toolbox-manage-actions{gap:8px!important}
body.retro-theme .settings-page .toolbox-manage-actions button{
  width:46px!important;height:46px!important;
  border:3px solid #4b210e!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#f7dfad,#d7a668)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,228,.64),0 4px 0 #54250f!important;
}
body.retro-theme .settings-page .toolbox-manage-actions button.danger{
  background:linear-gradient(180deg,#dc6550,#ad3327)!important;
  color:#fff3dd!important;
  border-color:#682017!important;
  box-shadow:inset 0 2px 0 rgba(255,222,208,.30),0 4px 0 #681f17!important;
}

/* ---------- Toolbox add/edit/delete dialogs ---------- */
body.retro-theme .dialog #ui2ToolboxForm{
  padding:4px!important;
  color:#351609!important;
}
body.retro-theme .dialog #ui2ToolboxForm .form-field{color:#351609!important;font-weight:900!important}
body.retro-theme .dialog #ui2ToolboxForm .form-control{
  border:3px solid #55250f!important;
  border-radius:13px!important;
  background:#fff0cf!important;
  color:#351609!important;
  -webkit-text-fill-color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,255,238,.72)!important;
  font-weight:800!important;
}
body.retro-theme .dialog #ui2ToolboxForm select.form-control{color-scheme:light!important}
body.retro-theme .dialog .notice{color:#4d2712!important;opacity:1!important}

/* ---------- Publication Shared + Bible Study pickers ---------- */
body.retro-theme .dialog :is(.visit-resource-dropdown,.study-lesson-dropdown){
  overflow:hidden!important;
  border:3px solid #4b210e!important;
  border-radius:15px!important;
  background:#edc98e!important;
  color:#351609!important;
  box-shadow:0 5px 0 #54250f!important;
}
body.retro-theme .dialog :is(.visit-resource-dropdown,.study-lesson-dropdown)>summary{
  min-height:56px!important;
  padding:11px 13px!important;
  border:0!important;
  background:linear-gradient(180deg,#f8e1b0,#d6a464)!important;
  color:#351609!important;
  font-weight:950!important;
}
body.retro-theme .dialog :is(.visit-resource-dropdown,.study-lesson-dropdown)[open]>summary{
  border-bottom:3px solid #4b210e!important;
  background:linear-gradient(180deg,#e3a321,#bd6818)!important;
}
body.retro-theme .dialog :is(.visit-resource-menu,.study-lesson-list){
  gap:9px!important;
  padding:10px!important;
  background:#edc98e!important;
}
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice){
  min-height:56px!important;
  border:3px solid #55250f!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#fff0cf,#dfb374)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,252,232,.72),0 4px 0 rgba(79,34,13,.46)!important;
  text-align:left!important;
}
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice) strong,
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice) span{
  color:#351609!important;
  opacity:1!important;
  font-weight:850!important;
  text-shadow:none!important;
}
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice).active:not(.ui2-pressing){
  background:linear-gradient(180deg,#df741d,#ae4213)!important;
  color:#fff0cf!important;
  border-color:#5a260d!important;
  box-shadow:inset 0 2px 0 rgba(255,229,173,.34),0 4px 0 #4a1e0b!important;
}
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice).active:not(.ui2-pressing) :is(strong,span){color:#fff0cf!important}
body.retro-theme .dialog .visit-toolbox-link{
  margin-top:12px!important;
  padding:11px!important;
  border:2px solid rgba(85,37,15,.35)!important;
  border-radius:13px!important;
  background:rgba(255,240,207,.55)!important;
  color:#4d2712!important;
}
body.retro-theme .dialog .visit-toolbox-link>span{color:#4d2712!important;font-weight:800!important;opacity:1!important}
body.retro-theme .dialog .visit-toolbox-link .action{
  border:3px solid #4b210e!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#f7dfad,#d7a668)!important;
  color:#351609!important;
  box-shadow:0 4px 0 #54250f!important;
}
body.retro-theme .dialog .study-lesson-empty{
  padding:15px!important;
  border:2px dashed #7c431b!important;
  border-radius:12px!important;
  background:#f7ddb0!important;
  color:#5a2c16!important;
  font-weight:800!important;
}

/* ---------- Pressed states: orange flash only while physically pressed ---------- */
body.retro-theme .map-page :is(.map-filter,.map-small-action,.map-inline-action,.map-search-reset,.map-preview-actions .action,.map-location-actions .action).ui2-pressing,
body.retro-theme .settings-page .toolbox-manage-actions button.ui2-pressing,
body.retro-theme .dialog :is(.visit-resource-choice,.study-lesson-list-choice,.visit-toolbox-link .action).ui2-pressing{
  transform:translateY(2px) scale(.975)!important;
  background:linear-gradient(180deg,#f08b2d,#c44e15)!important;
  color:#fff3d5!important;
  border-color:#60250d!important;
  box-shadow:inset 0 3px 8px rgba(71,20,6,.24),0 2px 0 #4b1d0b!important;
}

@media(max-width:430px){
  body.retro-theme .map-page .map-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.retro-theme .map-page .map-summary-bar{align-items:stretch!important;flex-direction:column!important}
  body.retro-theme .map-page .map-summary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.retro-theme .map-page .map-small-action{width:100%!important}
  body.retro-theme .settings-page .toolbox-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.retro-theme .settings-page .toolbox-manage-row{grid-template-columns:46px minmax(0,1fr)!important}
  body.retro-theme .settings-page .toolbox-manage-actions{grid-column:1/-1!important;justify-content:flex-end!important}
}

/* ================================================================
   v3.27 — Retro Settings + final full-app wrap-up
   Complete Backup, Appearance, Home Layout, Ministry Setup,
   Data & Privacy, About, Help, and settings dialogs.
   ================================================================ */

/* ---------- Settings page frame and fixed category navigation ---------- */
body.retro-theme .settings-page{
  position:relative!important;
  overflow:visible!important;
  padding:16px!important;
  border:3px solid #4b210e!important;
  border-radius:22px!important;
  background:
    repeating-linear-gradient(0deg,rgba(87,40,15,.026) 0 1px,transparent 1px 5px),
    linear-gradient(145deg,#fff0cf,#e7bd7d)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 4px rgba(255,248,219,.46),0 10px 22px rgba(0,0,0,.24)!important;
}
body.retro-theme .settings-detail{color:#351609!important}
body.retro-theme .settings-scroll-end{height:20px!important}
body.retro-theme .settings-sub-menu{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  gap:10px!important;
}
body.retro-theme .settings-sub-menu::before,
body.retro-theme .settings-sub-menu::after{content:none!important;display:none!important}
body.retro-theme .settings-sub-menu .settings-menu-button{
  min-height:74px!important;
  border:3px solid #4b210e!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,244,196,.34) 0 9%,transparent 10%),
    repeating-linear-gradient(155deg,rgba(255,225,166,.045) 0 3px,rgba(48,15,6,.04) 3px 8px),
    linear-gradient(180deg,#6d351d,#472214)!important;
  color:#ffe8be!important;
  box-shadow:inset 0 0 0 3px rgba(255,221,164,.12),0 6px 0 #2f1208,0 10px 16px rgba(0,0,0,.22)!important;
}
body.retro-theme .settings-sub-menu .settings-menu-button.active:not(.ui2-pressing){
  background:
    linear-gradient(180deg,rgba(255,247,207,.55) 0 10%,transparent 11%),
    repeating-linear-gradient(155deg,rgba(255,230,179,.08) 0 3px,rgba(83,26,7,.04) 3px 8px),
    linear-gradient(180deg,#e57820,#b74713)!important;
  color:#fff3d4!important;
  border-color:#5e240d!important;
  box-shadow:inset 0 0 0 3px rgba(255,236,184,.24),0 6px 0 #63250e,0 0 18px rgba(234,124,31,.28)!important;
}
body.retro-theme .settings-sub-menu .settings-menu-button svg{color:currentColor!important;stroke:currentColor!important}

/* ---------- Hero and content panels ---------- */
body.retro-theme .settings-hero,
body.retro-theme .settings-block{
  position:relative!important;
  overflow:hidden!important;
  border:3px solid #55250f!important;
  border-radius:19px!important;
  background:
    repeating-linear-gradient(0deg,rgba(74,31,12,.025) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#fff2d5,#e4b778)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.54),0 7px 0 rgba(79,34,13,.48),0 13px 22px rgba(0,0,0,.12)!important;
}
body.retro-theme .settings-hero{margin-bottom:17px!important;padding:17px 18px!important}
body.retro-theme .settings-block{margin-bottom:18px!important;padding:15px!important}
body.retro-theme .settings-hero::before,
body.retro-theme .settings-block::before,
body.retro-theme .settings-hero::after,
body.retro-theme .settings-block::after{content:none!important;display:none!important}
body.retro-theme .settings-eyebrow{
  display:inline-block!important;
  margin-bottom:6px!important;
  padding:4px 9px!important;
  border:2px solid #6a3014!important;
  border-radius:999px!important;
  background:#d9971c!important;
  color:#3a1708!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
body.retro-theme .settings-hero h3,
body.retro-theme .settings-block-head h4{
  color:#351609!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
  text-shadow:none!important;
}
body.retro-theme .settings-hero h3{font-size:clamp(1.6rem,6vw,2.25rem)!important}
body.retro-theme .settings-hero p,
body.retro-theme .settings-block-head p{
  color:#64361c!important;
  opacity:1!important;
  font-weight:750!important;
  line-height:1.45!important;
}
body.retro-theme .settings-block-head{
  margin-bottom:13px!important;
  padding-bottom:11px!important;
  border-bottom:3px double rgba(91,44,18,.42)!important;
}

/* ---------- Backup & Restore ---------- */
body.retro-theme .settings-status-card{
  display:block!important;
  margin-bottom:12px!important;
  padding:15px!important;
  border:3px solid #4b210e!important;
  border-radius:15px!important;
  background:
    linear-gradient(180deg,rgba(255,248,214,.54) 0 10%,transparent 11%),
    repeating-linear-gradient(14deg,rgba(91,44,18,.035) 0 2px,transparent 2px 8px),
    linear-gradient(180deg,#f4d89e,#d5a05d)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,248,219,.44),0 5px 0 #54250f!important;
}
body.retro-theme .settings-status-card small{
  color:#6a3519!important;font-weight:950!important;letter-spacing:.08em!important;opacity:1!important
}
body.retro-theme .settings-status-card strong{
  color:#321407!important;font-family:var(--font-display)!important;font-size:1.08rem!important;font-weight:950!important;opacity:1!important
}
body.retro-theme .settings-status-card span{color:#63361b!important;font-weight:800!important;opacity:1!important}

/* ---------- Chunky settings action buttons ---------- */
body.retro-theme .settings-page .settings-action-grid,
body.retro-theme .settings-page .settings-footer-action{gap:12px!important}
body.retro-theme .settings-page .settings-action-grid .action,
body.retro-theme .settings-page .settings-footer-action .action,
body.retro-theme .settings-page>.action{
  min-height:58px!important;
  border:3px solid #4b210e!important;
  border-radius:14px!important;
  background:
    linear-gradient(180deg,rgba(255,252,225,.58) 0 10%,transparent 11%),
    repeating-linear-gradient(155deg,rgba(255,225,166,.05) 0 3px,rgba(48,15,6,.035) 3px 8px),
    linear-gradient(180deg,#f7dfad,#d8a867)!important;
  color:#351609!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
  box-shadow:inset 0 0 0 3px rgba(255,248,219,.42),0 6px 0 #54250f,0 10px 16px rgba(0,0,0,.12)!important;
}
body.retro-theme .settings-page .settings-action-grid .action.primary:not(.ui2-pressing),
body.retro-theme .settings-page .settings-footer-action .action.primary:not(.ui2-pressing){
  background:
    linear-gradient(180deg,rgba(255,247,208,.48) 0 10%,transparent 11%),
    repeating-linear-gradient(155deg,rgba(255,225,166,.07) 0 3px,rgba(71,18,5,.04) 3px 8px),
    linear-gradient(180deg,#e57a20,#b74713)!important;
  color:#fff3d5!important;
  border-color:#60250d!important;
  box-shadow:inset 0 0 0 3px rgba(255,235,181,.20),0 6px 0 #63250e,0 10px 16px rgba(0,0,0,.14)!important;
}
body.retro-theme .settings-page .settings-action-grid .action.danger:not(.ui2-pressing),
body.retro-theme .settings-page .settings-danger-zone .action.danger:not(.ui2-pressing){
  background:linear-gradient(180deg,#dc6550,#ad3327)!important;
  color:#fff3dd!important;
  border-color:#682017!important;
  box-shadow:inset 0 2px 0 rgba(255,222,208,.30),0 6px 0 #681f17!important;
}
body.retro-theme .settings-page .action svg{color:currentColor!important;stroke:currentColor!important}

/* ---------- Appearance cards and accurate theme preview ---------- */
body.retro-theme .appearance-grid{display:grid!important;gap:13px!important}
body.retro-theme .appearance-choice{
  grid-template-columns:58px minmax(0,1fr) auto!important;
  gap:13px!important;
  padding:13px!important;
  border:3px solid #55250f!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#fff0cf,#dfb170)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.42),0 5px 0 rgba(79,34,13,.48)!important;
}
body.retro-theme .appearance-choice::before,
body.retro-theme .appearance-choice::after{content:none!important;display:none!important}
body.retro-theme .appearance-choice.active{
  border-color:#8b3a12!important;
  background:linear-gradient(145deg,#ffe3ad,#d99837)!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.55),0 6px 0 #7a2e0e,0 0 18px rgba(219,123,29,.22)!important;
}
body.retro-theme .appearance-swatch{
  width:56px!important;height:56px!important;
  border:3px solid #4b210e!important;
  border-radius:13px!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.20),0 4px 0 rgba(79,34,13,.45)!important;
}
body.retro-theme .appearance-copy strong{color:#321407!important;font-weight:950!important;opacity:1!important}
body.retro-theme .appearance-copy span{color:#63361b!important;font-weight:750!important;opacity:1!important;line-height:1.38!important}
body.retro-theme .appearance-active-label{
  padding:8px 11px!important;
  border:3px solid #60250d!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#e57a20,#b74713)!important;
  color:#fff3d5!important;
  font-weight:950!important;
  box-shadow:0 4px 0 #63250e!important;
}
body.retro-theme .appearance-choice>.action{
  min-height:46px!important;
  border:3px solid #4b210e!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#f7dfad,#d8a867)!important;
  color:#351609!important;
  box-shadow:0 4px 0 #54250f!important;
}

/* ---------- Home Layout toggle controls ---------- */
body.retro-theme .settings-toggle-list{gap:11px!important}
body.retro-theme .settings-toggle-row{
  min-height:72px!important;
  padding:12px 13px!important;
  border:3px solid #55250f!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff0cf,#dfb170)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.40),0 5px 0 rgba(79,34,13,.46)!important;
}
body.retro-theme .settings-toggle-row::before,
body.retro-theme .settings-toggle-row::after{content:none!important;display:none!important}
body.retro-theme .settings-toggle-copy strong{color:#321407!important;font-weight:950!important;opacity:1!important}
body.retro-theme .settings-toggle-copy span{color:#63361b!important;font-weight:750!important;opacity:1!important}
body.retro-theme .settings-toggle-switch{
  width:52px!important;height:30px!important;padding:4px!important;
  border:3px solid #55250f!important;
  border-radius:999px!important;
  background:#c99b61!important;
  box-shadow:inset 0 2px 4px rgba(71,28,8,.20)!important;
}
body.retro-theme .settings-toggle-switch span{
  width:16px!important;height:16px!important;
  border:2px solid #4b210e!important;
  background:#fff0cf!important;
  box-shadow:0 2px 0 rgba(79,34,13,.42)!important;
}
body.retro-theme .settings-toggle-row.active .settings-toggle-switch{background:#d86b1d!important;border-color:#5c240d!important}
body.retro-theme .settings-toggle-row.active .settings-toggle-switch span{transform:translateX(22px)!important;background:#ffe4a6!important}

/* ---------- Ministry stats and projection choices ---------- */
body.retro-theme .settings-stat-grid{gap:11px!important}
body.retro-theme .settings-stat{
  min-height:126px!important;
  padding:13px 9px!important;
  border:3px solid #55250f!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff0cf,#dfb170)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.42),0 5px 0 rgba(79,34,13,.46)!important;
}
body.retro-theme .settings-stat::before,
body.retro-theme .settings-stat::after{content:none!important;display:none!important}
body.retro-theme .settings-stat-icon{
  width:45px!important;height:45px!important;
  border:3px solid #55250f!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#e3a321,#bf6817)!important;
  color:#351609!important;
  box-shadow:inset 0 2px 0 rgba(255,240,182,.48),0 4px 0 #54250f!important;
}
body.retro-theme .settings-stat strong{color:#321407!important;font-weight:950!important;opacity:1!important;text-shadow:none!important}
body.retro-theme .settings-stat>span:last-child{color:#63361b!important;font-weight:800!important;opacity:1!important}
body.retro-theme .settings-segmented{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}
body.retro-theme .settings-segmented button{
  min-height:54px!important;
  border:3px solid #4b210e!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#f7dfad,#d8a867)!important;
  color:#351609!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
  box-shadow:inset 0 2px 0 rgba(255,252,228,.56),0 5px 0 #54250f!important;
}
body.retro-theme .settings-segmented button.active:not(.ui2-pressing){
  background:linear-gradient(180deg,#6f7142,#4d532f)!important;
  color:#fff3d5!important;
  border-color:#343817!important;
  box-shadow:inset 0 2px 0 rgba(234,232,178,.18),0 5px 0 #2e3217!important;
}
body.retro-theme .settings-segmented button::before,
body.retro-theme .settings-segmented button::after{content:none!important;display:none!important}

/* ---------- Data, privacy, notes and danger zone ---------- */
body.retro-theme .settings-note{
  padding:13px 14px!important;
  border:3px solid #55250f!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,#f9e4b7,#d9a867)!important;
  color:#4d2712!important;
  font-weight:750!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.36),0 5px 0 rgba(79,34,13,.42)!important;
}
body.retro-theme .settings-note strong{color:#321407!important;font-weight:950!important}
body.retro-theme .settings-danger-zone{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:13px!important;
  padding:14px!important;
  border:3px solid #7b2419!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#ffe4d6,#dda18a)!important;
  color:#4a170f!important;
  box-shadow:inset 0 0 0 3px rgba(255,244,235,.42),0 5px 0 #762117!important;
}
body.retro-theme .settings-danger-zone strong{display:block!important;color:#4a170f!important;font-family:var(--font-display)!important;font-weight:950!important}
body.retro-theme .settings-danger-zone span{display:block!important;margin-top:4px!important;color:#6d2b20!important;font-weight:750!important;opacity:1!important}

/* ---------- About and Help ---------- */
body.retro-theme .about-copy{color:#4d2712!important;font-weight:750!important;line-height:1.55!important;opacity:1!important}
body.retro-theme .about-feature-row{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.retro-theme .about-feature-row span{
  padding:7px 10px!important;
  border:2px solid #55250f!important;
  border-radius:999px!important;
  background:#f4d89e!important;
  color:#351609!important;
  font-weight:900!important;
  box-shadow:0 3px 0 rgba(79,34,13,.42)!important;
}
body.retro-theme .about-map-credit{margin-top:14px!important;color:#63361b!important;font-weight:750!important;opacity:1!important}
body.retro-theme .settings-help-list{display:grid!important;gap:11px!important}
body.retro-theme .settings-help-list details{
  overflow:hidden!important;
  border:3px solid #55250f!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#fff0cf,#dfb170)!important;
  color:#351609!important;
  box-shadow:inset 0 0 0 3px rgba(255,249,224,.40),0 5px 0 rgba(79,34,13,.46)!important;
}
body.retro-theme .settings-help-list details::before,
body.retro-theme .settings-help-list details::after{content:none!important;display:none!important}
body.retro-theme .settings-help-list summary{
  min-height:58px!important;
  padding:13px 15px!important;
  color:#321407!important;
  font-family:var(--font-display)!important;
  font-weight:950!important;
}
body.retro-theme .settings-help-list details[open] summary{
  border-bottom:3px solid #55250f!important;
  background:linear-gradient(180deg,#e57a20,#b74713)!important;
  color:#fff3d5!important;
}
body.retro-theme .settings-help-list p{margin:0!important;padding:14px 15px!important;color:#4d2712!important;font-weight:750!important;line-height:1.5!important;opacity:1!important}

/* ---------- Settings confirmation and form dialogs ---------- */
body.retro-theme .dialog .settings-warning,
body.retro-theme .dialog .detail-grid,
body.retro-theme .dialog .detail-row{
  color:#351609!important;
}
body.retro-theme .dialog .detail-grid{
  overflow:hidden!important;
  border:3px solid #55250f!important;
  border-radius:14px!important;
  background:#f4d89e!important;
  box-shadow:0 5px 0 rgba(79,34,13,.42)!important;
}
body.retro-theme .dialog .detail-row{
  padding:11px 13px!important;
  border-bottom:2px solid rgba(85,37,15,.26)!important;
  background:linear-gradient(145deg,#fff0cf,#dfb170)!important;
}
body.retro-theme .dialog .detail-row:last-child{border-bottom:0!important}
body.retro-theme .dialog .detail-row strong,
body.retro-theme .dialog .detail-row span{color:#351609!important;font-weight:900!important;opacity:1!important}
body.retro-theme .dialog .dialog-actions .action{
  min-height:54px!important;
  border:3px solid #4b210e!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#f7dfad,#d8a867)!important;
  color:#351609!important;
  box-shadow:0 5px 0 #54250f!important;
}
body.retro-theme .dialog .dialog-actions .action.primary:not(.ui2-pressing){
  background:linear-gradient(180deg,#e57a20,#b74713)!important;
  color:#fff3d5!important;
  border-color:#60250d!important;
  box-shadow:0 5px 0 #63250e!important;
}
body.retro-theme .dialog .dialog-actions .action.danger:not(.ui2-pressing){
  background:linear-gradient(180deg,#dc6550,#ad3327)!important;
  color:#fff3dd!important;
  border-color:#682017!important;
  box-shadow:0 5px 0 #681f17!important;
}

/* ---------- Remove remaining inherited Black & Gold layers ---------- */
body.retro-theme .settings-page :is(
  .settings-hero,.settings-block,.settings-status-card,.settings-note,.settings-danger-zone,
  .settings-stat,.settings-toggle-row,.appearance-choice,.settings-help-list details,
  .settings-action-grid .action,.settings-footer-action .action,.settings-segmented button
)::before,
body.retro-theme .settings-page :is(
  .settings-hero,.settings-block,.settings-status-card,.settings-note,.settings-danger-zone,
  .settings-stat,.settings-toggle-row,.appearance-choice,.settings-help-list details,
  .settings-action-grid .action,.settings-footer-action .action,.settings-segmented button
)::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

/* ---------- Approved whole-button press behavior ---------- */
body.retro-theme .settings-page :is(
  .settings-menu-button,.settings-toggle-row,.settings-action-grid .action,
  .settings-footer-action .action,.settings-segmented button,.appearance-choice>.action,
  .toolbox-manage-actions button
).ui2-pressing,
body.retro-theme .dialog .dialog-actions .action.ui2-pressing{
  transform:translateY(2px) scale(.975)!important;
  background:linear-gradient(180deg,#f08b2d,#c44e15)!important;
  color:#fff3d5!important;
  border-color:#60250d!important;
  box-shadow:inset 0 3px 8px rgba(71,20,6,.24),0 2px 0 #4b1d0b!important;
}

@media(max-width:560px){
  body.retro-theme .settings-page{padding:12px!important}
  body.retro-theme .appearance-choice{grid-template-columns:54px minmax(0,1fr)!important}
  body.retro-theme .appearance-choice>.action,
  body.retro-theme .appearance-active-label{grid-column:1/-1!important;width:100%!important;text-align:center!important}
  body.retro-theme .settings-action-grid{grid-template-columns:1fr!important}
  body.retro-theme .settings-stat-grid-three{grid-template-columns:1fr!important}
  body.retro-theme .settings-danger-zone{grid-template-columns:1fr!important}
  body.retro-theme .settings-danger-zone .action{width:100%!important}
  body.retro-theme .settings-segmented{grid-template-columns:1fr!important}
}
