/* Karmakaryam final premium polish layer — 2026-08-16
 * Loaded last so every Spiritual OS surface shares the same rhythm, interaction
 * quality, focus treatment and black/gold depth without changing feature logic.
 */

:root{
  --kk-polish-radius:18px;
  --kk-polish-radius-lg:24px;
  --kk-polish-gold:#d6b15f;
  --kk-polish-gold-soft:#f0d487;
  --kk-polish-focus:rgba(240,212,135,.72);
}

/* Global rhythm */
.kk-shell-inner{padding-top:4px}
.kk-section{margin-top:26px}
.kk-section-head{align-items:flex-end;margin-bottom:10px}
.kk-section-title{font-size:15px;font-weight:780;line-height:1.2;letter-spacing:-.012em}
.kk-section-note{max-width:540px;font-size:10px;line-height:1.5;text-align:right}
.kk-card-pad{padding:20px 21px}
.kk-card-title{line-height:1.16}
.kk-meta,.kk-muted,.kk-list-copy span{line-height:1.55}
.kk-spacer{height:11px}
.kk-stack{gap:11px}.kk-stack-lg{gap:17px}

/* Interaction quality */
.kk-btn,.kk-chip,.kk-segment-btn,.kk-list-btn,.kk-icon-btn,.kk-dock-btn,.kk-deity-card,.kk-day-dot,.kk-gita-chapter,.kk-dream-row,.kk-garden-card,.kk-garden-pick{
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease;
}
.kk-btn:not([disabled]):active,.kk-chip:active,.kk-segment-btn:active,.kk-icon-btn:active,.kk-dock-btn:active,.kk-deity-card:active,.kk-day-dot:not([disabled]):active,.kk-gita-chapter:active,.kk-dream-row:active,.kk-garden-card:active,.kk-garden-pick:active{transform:scale(.985)}
.kk-btn:focus-visible,.kk-chip:focus-visible,.kk-segment-btn:focus-visible,.kk-list-btn:focus-visible,.kk-icon-btn:focus-visible,.kk-dock-btn:focus-visible,.kk-deity-card:focus-visible,.kk-day-dot:focus-visible,.kk-gita-chapter:focus-visible,.kk-dream-row:focus-visible,.kk-garden-card:focus-visible,.kk-garden-pick:focus-visible,.kk-input:focus-visible,.kk-textarea:focus-visible,.kk-select:focus-visible{
  outline:2px solid var(--kk-polish-focus);outline-offset:3px;
}
.kk-btn{min-height:44px;padding-inline:17px;font-weight:780;letter-spacing:.005em}
.kk-btn svg{flex:none}
.kk-chip{min-height:35px;padding:7px 12px;font-size:11px;font-weight:700}
.kk-segment-btn{font-weight:760}
.kk-list-btn{position:relative;min-height:68px;padding:14px 16px}
.kk-list-copy strong{font-size:13px;line-height:1.28}.kk-list-copy span{font-size:10px}
.kk-list-leading{border:1px solid transparent}

/* Forms */
.kk-label{gap:7px;font-size:10px;line-height:1.25}
.kk-input,.kk-textarea,.kk-select{min-height:48px;border-radius:14px;font-size:13px;line-height:1.45}
.kk-textarea{min-height:124px}
.kk-search .kk-input{padding-left:42px}
.kk-check{padding:11px 2px;border-radius:12px}
.kk-check:has(input:focus-visible){outline:2px solid var(--kk-polish-focus);outline-offset:2px}

/* Compact feature-page intros */
.kk-shell-inner>div>.kk-hero{padding:22px 25px 20px;border-radius:23px}
.kk-shell-inner>div>.kk-hero .kk-title{font-size:clamp(26px,2.7vw,36px);line-height:1.08}
.kk-shell-inner>div>.kk-hero .kk-subtitle{font-size:11px;line-height:1.6}
.kk-shell-inner>div>.kk-hero+.kk-segments{top:9px;margin-top:9px}

/* Today — preserve the dashboard, reduce oversized hero dominance. */
.kk-today-dashboard{gap:16px;padding-top:20px}
.kk-today-hero{min-height:208px;padding:27px 30px;gap:26px;border-radius:27px}
.kk-today-title{font-size:clamp(36px,3.65vw,52px);line-height:1.01;letter-spacing:-.04em}
.kk-today-subtitle{margin-top:11px;font-size:13px;line-height:1.58}
.kk-today-metric{min-height:82px;padding:12px;border-radius:15px}
.kk-today-metric strong{font-size:23px}.kk-today-metric span{margin-top:7px;font-size:8px}
.kk-today-layout{gap:16px}.kk-today-primary,.kk-today-side{gap:16px}
.kk-sankalpa-focus,.kk-practice-focus,.kk-daily-path,.kk-panchang-card,.kk-quick-panel{border-radius:21px}
.kk-sankalpa-focus{padding:20px 21px}.kk-practice-focus{padding:19px 20px}.kk-daily-path,.kk-panchang-card,.kk-quick-panel{padding:19px}
.kk-quick-grid{gap:8px}
.kk-quick-action{min-height:70px;padding:12px 13px;border-radius:15px}
.kk-quick-copy strong{font-size:11px}.kk-quick-copy small{font-size:9px;line-height:1.4}

/* Japa */
.kk-counter-wrap{padding-top:4px}
.kk-tap-counter{max-width:330px!important;max-height:330px!important;border-width:8px!important;box-shadow:0 28px 76px rgba(0,0,0,.28),0 0 0 1px rgba(214,177,95,.16),inset 0 0 0 1px rgba(255,255,255,.04)!important}
.kk-tap-counter:before{inset:12px}
.kk-counter-number{font-size:clamp(58px,8vw,84px)!important}
.kk-mala{width:min(72vw,330px);height:7px}
.kk-japa-history{gap:7px}.kk-japa-history-row{border-radius:15px;padding:11px 13px}

/* Sadhana */
.kk-day-grid{gap:8px}.kk-day-dot{width:42px;height:42px;border-radius:12px;font-size:10px;font-weight:750}
.kk-day-dot[data-current="true"]{outline-offset:3px}

/* Puja */
.kk-mandir-stage{min-height:248px;padding:27px 30px;border-radius:27px}
.kk-mandir-stage:after{inset:15px;border-radius:21px}
.kk-mandir-symbol{width:142px;height:142px;font-size:58px}
.kk-puja-stage-copy .kk-card-title{font-size:31px}.kk-puja-stage-copy .kk-muted{font-size:11px}
.kk-deity-grid{gap:10px}.kk-deity-card{min-height:132px;padding:14px 10px;border-radius:17px}
.kk-deity-card:hover{transform:translateY(-2px)}
.kk-puja-step-list{gap:8px}.kk-puja-step{padding:12px 13px;border-radius:14px}
.kk-puja-step-copy strong{font-size:11px}.kk-puja-step-copy small{font-size:9px;line-height:1.4}

/* Jyotish */
.kk-rashi-chart{border-radius:23px!important}
.kk-rashi-cell{min-height:110px;padding:10px}
.kk-rashi-planets span{border:1px solid rgba(214,177,95,.08)}
.kk-sky-grid{gap:10px}.kk-sky-planet{min-height:112px;border-radius:17px;padding:15px}
.kk-sky-planet strong{font-size:18px}.kk-sky-compare{border-radius:17px}
.kk-sky-compare-row{min-height:52px;padding:9px 12px}

/* Library, scripture and sources */
.kk-scripture-text{border-radius:17px;padding:19px 20px}
.kk-scripture-language{border-radius:18px!important}
.kk-source{padding:13px 14px;border-radius:13px;line-height:1.55}
.kk-source-grid{gap:11px}.kk-source-card{min-height:218px}
.kk-gita-chapters{border-radius:18px;border-left:1px solid var(--kk-line);border-right:1px solid var(--kk-line)}
.kk-gita-chapter{padding:15px 13px}.kk-gita-chapter-copy strong{font-size:17px}.kk-gita-chapter-copy small{font-size:10px}
.kk-gita-sanskrit{padding:15px 8px}.kk-gita-transliteration{font-size:14px}

/* Journey */
.kk-dream-row{padding:16px 14px!important;border-radius:15px!important}
.kk-dream-main>strong{font-size:18px}.kk-dream-main>small{font-size:11px}
.kk-journal-prompts .kk-chip{line-height:1.35}
.kk-summary-grid .kk-mini-stat,.kk-grid .kk-mini-stat{border-radius:16px}

/* Sacred Garden */
.kk-garden-viewer{min-height:410px;border-radius:23px}
.kk-garden-canvas{height:410px}
.kk-garden-hint{bottom:11px}
.kk-garden-pick{flex-basis:168px;border-radius:15px;padding:12px 13px}
.kk-garden-card{min-height:124px;padding:17px 13px}
.kk-garden-card-copy strong{font-size:17px}

/* Dark premium depth */
html[data-kk-theme="dark"] .kk-card,
html[data-kk-theme="dark"] .kk-list,
html[data-kk-theme="dark"] .kk-panchang-card,
html[data-kk-theme="dark"] .kk-quick-panel,
html[data-kk-theme="dark"] .kk-daily-path,
html[data-kk-theme="dark"] .kk-sankalpa-focus,
html[data-kk-theme="dark"] .kk-practice-focus{
  border-color:rgba(214,177,95,.12);
  box-shadow:0 1px 0 rgba(255,255,255,.015) inset,0 18px 46px rgba(0,0,0,.22);
}
html[data-kk-theme="dark"] .kk-card:has(.kk-btn):hover,
html[data-kk-theme="dark"] .kk-grid>.kk-col-6>.kk-card:hover{
  border-color:rgba(214,177,95,.22);
  box-shadow:0 1px 0 rgba(255,255,255,.02) inset,0 22px 56px rgba(0,0,0,.29),0 0 24px rgba(214,177,95,.025);
}
html[data-kk-theme="dark"] .kk-list-btn:hover{background:linear-gradient(90deg,rgba(214,177,95,.055),rgba(214,177,95,.018));transform:translateX(2px)}
html[data-kk-theme="dark"] .kk-list-leading{border-color:rgba(214,177,95,.08)}
html[data-kk-theme="dark"] .kk-btn-secondary{box-shadow:inset 0 1px rgba(255,255,255,.015)}
html[data-kk-theme="dark"] .kk-btn-primary{font-weight:820}
html[data-kk-theme="dark"] .kk-chip:hover{color:#e8d5a0;border-color:rgba(214,177,95,.25);background:#17140f}
html[data-kk-theme="dark"] .kk-segments{box-shadow:0 12px 32px rgba(0,0,0,.17)}
html[data-kk-theme="dark"] .kk-input,
html[data-kk-theme="dark"] .kk-textarea,
html[data-kk-theme="dark"] .kk-select{box-shadow:inset 0 1px rgba(255,255,255,.018)}
html[data-kk-theme="dark"] .kk-mandir-stage{background:radial-gradient(circle at 20% 45%,rgba(214,177,95,.16),transparent 29%),radial-gradient(circle at 84% 18%,rgba(139,106,36,.16),transparent 24%),linear-gradient(135deg,#0b0907 0%,#15110d 54%,#2e2214 100%);border-color:rgba(214,177,95,.2);box-shadow:0 30px 76px rgba(0,0,0,.44)}
html[data-kk-theme="dark"] .kk-mandir-symbol{color:#f2d68b;background:radial-gradient(circle,rgba(214,177,95,.12),rgba(214,177,95,.03));border-color:rgba(214,177,95,.2)}
html[data-kk-theme="dark"] .kk-deity-card{background:linear-gradient(160deg,rgba(19,17,14,.98),rgba(12,11,9,.99));border-color:rgba(214,177,95,.12);box-shadow:0 12px 30px rgba(0,0,0,.19)}
html[data-kk-theme="dark"] .kk-deity-card:hover{background:linear-gradient(160deg,rgba(24,21,16,.99),rgba(14,12,10,.99));border-color:rgba(214,177,95,.28);box-shadow:0 18px 38px rgba(0,0,0,.28)}
html[data-kk-theme="dark"] .kk-deity-card[data-active="true"]{background:linear-gradient(145deg,rgba(67,49,24,.9),rgba(25,20,13,.98));border-color:rgba(214,177,95,.36)}
html[data-kk-theme="dark"] .kk-puja-step{background:rgba(18,16,13,.9);border-color:rgba(214,177,95,.1)}
html[data-kk-theme="dark"] .kk-puja-step[data-active="true"]{background:rgba(214,177,95,.075);border-color:rgba(214,177,95,.28)}
html[data-kk-theme="dark"] .kk-puja-step[data-done="true"]{background:rgba(135,162,118,.07);border-color:rgba(135,162,118,.18)}
html[data-kk-theme="dark"] .kk-rashi-chart{background:#0d0c0a!important;border-color:rgba(214,177,95,.16)!important;box-shadow:0 26px 64px rgba(0,0,0,.31)!important}
html[data-kk-theme="dark"] .kk-rashi-cell{background:linear-gradient(145deg,#15130f,#0e0d0b);border-color:rgba(214,177,95,.09)!important}
html[data-kk-theme="dark"] .kk-rashi-sign{color:#d9b967}
html[data-kk-theme="dark"] .kk-rashi-planets span{color:inherit;background:rgba(214,177,95,.065);border-color:rgba(214,177,95,.1)}
html[data-kk-theme="dark"] .kk-rashi-center{background:radial-gradient(circle at 50% 30%,rgba(214,177,95,.13),transparent 48%),linear-gradient(145deg,#16120d,#2a1e10)!important}
html[data-kk-theme="dark"] .kk-gita-chapters{background:rgba(14,13,11,.72);border-color:rgba(214,177,95,.1)}
html[data-kk-theme="dark"] .kk-gita-chapter{border-color:rgba(214,177,95,.08)}
html[data-kk-theme="dark"] .kk-gita-chapter:hover{background:rgba(214,177,95,.045)}
html[data-kk-theme="dark"] .kk-gita-chapter-num{color:#d7b35f}
html[data-kk-theme="dark"] .kk-gita-chapter-sa{color:#cbb989}
html[data-kk-theme="dark"] .kk-gita-sanskrit{color:#f6e7bd}
html[data-kk-theme="dark"] .kk-gita-transliteration{color:#9e927f}
html[data-kk-theme="dark"] .kk-dream-row{background:linear-gradient(180deg,rgba(18,16,13,.95),rgba(13,12,10,.97))!important;border-color:rgba(214,177,95,.1)!important}
html[data-kk-theme="dark"] .kk-dream-row:hover{background:rgba(214,177,95,.045)!important;border-color:rgba(214,177,95,.2)!important}
html[data-kk-theme="dark"] .kk-garden-viewer{background:radial-gradient(circle at 50% 15%,rgba(135,162,118,.07),transparent 34%),linear-gradient(180deg,#12110e,#0b0a08);border-color:rgba(214,177,95,.12);box-shadow:0 22px 56px rgba(0,0,0,.28)}
html[data-kk-theme="dark"] .kk-garden-hint{color:#c9b992;background:rgba(11,10,8,.8);border-color:rgba(214,177,95,.13)}
html[data-kk-theme="dark"] .kk-garden-pick{color:#f0e4cd;background:#12100d;border-color:rgba(214,177,95,.11)}
html[data-kk-theme="dark"] .kk-garden-pick[data-active="true"]{color:#f5e7bd;background:rgba(135,162,118,.08);border-color:rgba(135,162,118,.26)}
html[data-kk-theme="dark"] .kk-garden-card{border-color:rgba(214,177,95,.08)}
html[data-kk-theme="dark"] .kk-garden-card:hover{background:rgba(135,162,118,.04)}
html[data-kk-theme="dark"] .kk-garden-leafmark{color:#aec49c;background:rgba(135,162,118,.09)}
html[data-kk-theme="dark"] .kk-garden-card-copy small{color:#94a289}

@media(min-width:1100px){
  .kk-shell-inner{padding-right:34px}
  .kk-today-hero{grid-template-columns:minmax(0,1fr) minmax(285px,360px)}
}
@media(max-width:860px){
  .kk-section-head{align-items:flex-start}.kk-section-note{text-align:left}
  .kk-today-hero{grid-template-columns:1fr;min-height:0}.kk-today-metrics{max-width:520px}
  .kk-mandir-stage{grid-template-columns:122px minmax(0,1fr)}.kk-mandir-symbol{width:112px;height:112px;font-size:48px}
}
@media(max-width:720px){
  .kk-shell-inner{padding-left:14px;padding-right:14px}
  .kk-section{margin-top:22px}
  .kk-shell-inner>div>.kk-hero{padding:18px 17px;border-radius:19px}.kk-shell-inner>div>.kk-hero .kk-title{font-size:27px}.kk-shell-inner>div>.kk-hero .kk-subtitle{font-size:11px}
  .kk-today-dashboard{padding-top:13px}.kk-today-hero{padding:22px 20px;border-radius:23px}.kk-today-title{font-size:35px}.kk-today-subtitle{font-size:12px}.kk-today-metric{min-height:72px;padding:10px}.kk-today-metric strong{font-size:21px}
  .kk-sankalpa-focus,.kk-practice-focus{padding:17px}.kk-daily-path,.kk-panchang-card,.kk-quick-panel{padding:16px}
  .kk-tap-counter{max-width:285px!important;max-height:285px!important}
  .kk-deity-grid{gap:8px}.kk-deity-card{min-height:118px}.kk-mandir-stage{grid-template-columns:1fr;gap:12px;padding:20px}.kk-mandir-symbol{width:96px;height:96px;font-size:43px}.kk-puja-stage-copy .kk-card-title{font-size:25px}
  .kk-rashi-cell{min-height:88px;padding:8px}.kk-sky-planet{min-height:94px;padding:12px}
  .kk-source-card{min-height:0}
  .kk-garden-viewer,.kk-garden-canvas{min-height:340px;height:340px}
}
@media(max-width:430px){
  .kk-today-title{font-size:32px}.kk-today-metrics{gap:6px}.kk-today-metric{min-height:68px;border-radius:13px}.kk-today-metric span{font-size:7px}
  .kk-btn{min-height:42px;padding-inline:14px}.kk-list-btn{padding:12px 13px}.kk-card-pad{padding:17px}
  .kk-day-dot{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
  .kk-btn,.kk-chip,.kk-segment-btn,.kk-list-btn,.kk-icon-btn,.kk-dock-btn,.kk-deity-card,.kk-day-dot,.kk-gita-chapter,.kk-dream-row,.kk-garden-card,.kk-garden-pick{transition:none!important}
}
