/* Shared glass material for interactive tiles, using layered highlights rather
   than overlays so labels, icons, focus outlines and click targets stay intact. */
:root{
 --ckp-glass-base:rgba(255,255,255,.64);
 --ckp-glass-sheen:linear-gradient(155deg,rgba(255,255,255,.98),rgba(255,255,255,.24) 43%,rgba(220,232,245,.64));
 --ckp-glass-warm:radial-gradient(ellipse at 0 0,rgba(255,218,183,.40),transparent 58%);
 --ckp-glass-edge:rgba(255,255,255,.92);
 --ckp-glass-shadow:inset 0 2px 3px #fff,inset 2px 0 4px #ffffffcc,inset 0 -4px 8px #95a8bf26,0 0 0 1px #9ba7b12e,0 9px 22px #263a4d1c,0 2px 4px #263a4d0d;
 --ckp-glass-hover:inset 0 2px 3px #fff,inset 2px 0 4px #ffffffcc,inset 0 -4px 8px #95a8bf26,0 0 0 1px #ef7d3240,0 13px 28px #263a4d26,0 3px 6px #263a4d12;
}
html[data-theme="dark"]{
 --ckp-glass-base:rgba(43,48,56,.82);
 --ckp-glass-sheen:linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.02) 46%,rgba(167,190,222,.08));
 --ckp-glass-warm:radial-gradient(ellipse at 0 0,rgba(239,125,50,.15),transparent 58%);
 --ckp-glass-edge:rgba(219,231,248,.25);
 --ckp-glass-shadow:inset 0 2px 3px #ffffff33,inset 2px 0 4px #ffffff14,inset 0 -4px 8px #00000038,0 0 0 1px #0b10152e,0 9px 22px #00000040,0 2px 4px #00000026;
 --ckp-glass-hover:inset 0 2px 3px #ffffff47,inset 2px 0 4px #ffffff1f,inset 0 -4px 8px #00000038,0 0 0 1px #ef7d3240,0 13px 28px #00000052;
}
:is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]){
 background:var(--ckp-glass-warm),var(--ckp-glass-sheen),var(--ckp-glass-base)!important;
 background-clip:padding-box!important;
 border:1px solid var(--ckp-glass-edge)!important;
 box-shadow:var(--ckp-glass-shadow);
 -webkit-backdrop-filter:blur(14px) saturate(120%);
 backdrop-filter:blur(14px) saturate(120%);
}
:is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){box-shadow:var(--ckp-glass-hover)}
/* Small date buttons use the same highlights without a blur layer per cell. */
.cal-dialog button.cal-cell{
 background:var(--ckp-glass-sheen);
 border:1px solid var(--cal-border);
 box-shadow:inset 0 1px 0 var(--ckp-glass-edge);
}

.ckp-branch-entry{min-width:0}.ckp-branch-tile{width:100%;min-height:112px;padding:20px;text-align:left}.ckp-branch-tile>span:last-child{min-width:0;overflow-wrap:anywhere}.ckp-branch-actions{margin-top:10px}

/* Transparent glass artwork; preserve the entire soft rim at every size. */
.ckp-metric-icon{
 display:block;flex:0 0 76px;width:76px;height:76px;
 min-width:76px;line-height:0;background:none;border:0;
}
.ckp-metric-icon svg{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
.stat:has(.ckp-metric-icon)>div:last-child{min-width:0}
@media(max-width:560px){
 .ckp-metric-icon{flex-basis:56px;width:56px;height:56px;min-width:56px}
}

/* Honor platform contrast/transparency preferences and keep paper copies plain. */
@media(prefers-reduced-transparency:reduce){
 :is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]){background:var(--white,#fff)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(forced-colors:active){
 :is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]),.cal-dialog button.cal-cell{background:Canvas!important;color:CanvasText!important;border-color:ButtonText!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 :is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){outline:2px solid Highlight;box-shadow:none}
}
@media print{
 :is(button,a,[role="button"],[onclick]):is(.card,.branch,.stat,.statlink,.cal-card,.cal-mini,.ckp-quick-action):not(:disabled):not([aria-disabled="true"]){background:#fff!important;border-color:#ccc!important;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none!important}
}

/* Shared raised glass for information panels, tiles and action surfaces. */
html[data-theme] :is(.card,.branch,.stat,.cal-card,.cal-mini,.nav,.accountmenu,.cal-event,.pa-campaign,.pa-rule):not(.notice),html[data-theme] :is(.btn,.btn.soft,.btn.danger,.cal-btn,.xbtn,.ckp-settings-tabs button){
 background:var(--ckp-glass-warm),var(--ckp-glass-sheen),var(--ckp-glass-base)!important;
 background-clip:padding-box!important;
 border:1px solid var(--ckp-glass-edge)!important;
 box-shadow:var(--ckp-glass-shadow);
}
html[data-theme] :is(.card,.branch,.stat,.cal-card,.cal-mini,.nav,.accountmenu,.cal-event,.pa-campaign,.pa-rule):not(.notice){-webkit-backdrop-filter:blur(14px) saturate(120%);backdrop-filter:blur(14px) saturate(120%)}
html[data-theme] :is(.btn,.btn.soft,.btn.danger,.cal-btn,.xbtn,.ckp-settings-tabs button){-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme] :is(.btn.primary,.cal-btn.cal-primary){
 background:linear-gradient(155deg,#ffb16e,#f18a40 44%,#d96a26)!important;
 border-color:#ffbe8f!important;color:#21160e;
 box-shadow:inset 0 2px 2px #ffffff80,inset 0 -3px 6px #8e350829,0 4px 12px #b9592026;
}
html[data-theme] :is(.btn.danger,.cal-danger){color:var(--red,#b42318)}
html[data-theme] :is(.nav,.mobilebar) button{border-radius:13px}
html[data-theme] :is(.nav,.mobilebar) button.active,
html[data-theme] .ckp-settings-tabs button[aria-selected="true"]{
 background:var(--ckp-glass-sheen),var(--mint)!important;
 box-shadow:inset 0 1px 2px var(--ckp-glass-edge),0 2px 7px #ef7d321f;
 color:var(--gold,#c96522);
}
.nav{top:18px;max-height:calc(100dvh - 36px);overflow-y:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.layout{padding-bottom:12px}
@media(max-width:760px){
 .layout{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
 .actions > .ckp-drive-save-wrap > .ckp-drive-save{margin-inline-start:auto}
 .actions > .ckp-drive-save-wrap > .ckp-drive-save-feedback{text-align:right}
 /* The mobile dock lets the page scroll visibly behind its beveled rim. */
 html[data-theme] .mobilebar{
  --ckp-dock-fill:#bdc2c85e;
  --ckp-dock-active:#ef873733;
  --ckp-dock-glint:#ffffffb3;
  --ckp-dock-lower:#8395a525;
  --ckp-dock-edge:#ffffffd9;
  --ckp-dock-rim:#60758534;
  --ckp-dock-solid:#f2f4f6;
  left:50%;right:auto;bottom:max(8px,env(safe-area-inset-bottom));
  width:min(390px,calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  transform:translateX(-50%);gap:2px;padding:4px 6px;border-radius:999px;box-sizing:border-box;
  background:linear-gradient(180deg,var(--ckp-dock-glint),transparent 13%,transparent 88%,var(--ckp-dock-lower)) padding-box,
   var(--ckp-dock-fill);
  -webkit-backdrop-filter:blur(1.6px) saturate(106%);
  backdrop-filter:blur(1.6px) saturate(106%);
  border:1px solid var(--ckp-dock-edge);
  box-shadow:inset 0 2px 2px var(--ckp-dock-glint),inset 0 -3px 5px var(--ckp-dock-lower),
   0 0 0 1px var(--ckp-dock-rim),0 7px 20px #18273630;
 }
 html[data-theme="dark"] .mobilebar{
  --ckp-dock-fill:#15191e59;
  --ckp-dock-active:#ffb77e38;
  --ckp-dock-glint:#eff6ff44;
  --ckp-dock-lower:#04070c55;
  --ckp-dock-edge:#d9e9ff40;
  --ckp-dock-rim:#0b101755;
  --ckp-dock-solid:#2a3038;
 }
 html[data-theme] .mobilebar button.active{
  background:var(--ckp-dock-active)!important;
  box-shadow:inset 0 0 0 1px #bd571b66,inset 0 1px 1px #ffffff66;
 }
 html[data-theme="light"] .mobilebar button.active{color:#5b2b0e}
 @media(prefers-reduced-transparency:reduce){
  html[data-theme="dark"] .mobilebar{--ckp-dock-active:#553b2c}
  html[data-theme] .mobilebar{
   --ckp-dock-active:#ffd7b5;
   background:var(--ckp-dock-solid);
   -webkit-backdrop-filter:none;
   backdrop-filter:none;
  }
 }
 @media(forced-colors:active){
  html[data-theme] .mobilebar{
   background:Canvas;border-color:ButtonText;box-shadow:none;
   -webkit-backdrop-filter:none;
   backdrop-filter:none;
  }
 }
 .mobilebar .ckp-dock-refraction{
  --ckp-rim-mask:linear-gradient(180deg,#000 2px,transparent 20px,transparent calc(100% - 20px),#000 calc(100% - 2px));
  position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;
  clip-path:inset(0 round 999px);
  -webkit-mask-image:var(--ckp-rim-mask);
  mask-image:var(--ckp-rim-mask);
  opacity:0;
 }
 .mobilebar .ckp-dock-refraction.ready{opacity:.92}
 .mobilebar .ckp-dock-lens{position:absolute;inset:0;filter:blur(.9px)}
 .mobilebar .ckp-dock-lens iframe{
  display:block;position:absolute;border:0;max-width:none;pointer-events:none;
 }
 .mobilebar > button{position:relative}
 .mobilebar button{
  flex:1 1 0;min-width:0;min-height:48px;padding:3px 2px;gap:2px;
  color:var(--ink);font-size:11px;font-weight:650;line-height:1.1;grid-template-rows:22px minmax(2.2em,auto);align-content:start;
 }
 .mobilebar .ckp-mobile-more{flex:0 0 44px}
 .mobilebar .ckp-nav-label{font-size:inherit;line-height:inherit;text-wrap:balance;align-self:start}
 html[data-theme="dark"] .mobilebar button:not(.active){color:var(--ink)}
 html[data-theme] .mobilebar button{border-radius:999px}
}
@media(orientation:landscape) and (max-height:600px){
 /* A short viewport must not trap the bottom of a sticky navigation panel. */
 .nav{position:static;top:auto;max-height:none;overflow:visible;align-self:start}
}
@media(prefers-reduced-transparency:reduce){
 html[data-theme] :is(.card,.branch,.stat,.cal-card,.cal-mini,.nav,.accountmenu,.cal-event,.pa-campaign,.pa-rule):not(.notice),html[data-theme] :is(.btn,.btn.soft,.btn.danger,.cal-btn,.xbtn,.ckp-settings-tabs button){background:var(--white,#fff)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(forced-colors:active){
 html[data-theme] :is(.card,.branch,.stat,.cal-card,.cal-mini,.nav,.accountmenu,.cal-event,.pa-campaign,.pa-rule):not(.notice),html[data-theme] :is(.btn,.btn.soft,.btn.danger,.cal-btn,.xbtn,.ckp-settings-tabs button){background:Canvas!important;color:CanvasText!important;border-color:ButtonText!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 html[data-theme] :is(.btn.primary,.cal-btn.cal-primary){background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important;box-shadow:none}
 html[data-theme] :is(.nav,.mobilebar) button.active,html[data-theme] .ckp-settings-tabs button[aria-selected="true"]{background:Highlight!important;color:HighlightText!important}
}
@media print{
 .mobilebar{display:none!important}
 html[data-theme] :is(.card,.branch,.stat,.cal-card,.cal-mini,.nav,.accountmenu,.cal-event,.pa-campaign,.pa-rule):not(.notice),html[data-theme] :is(.btn,.btn.soft,.btn.danger,.cal-btn,.xbtn,.ckp-settings-tabs button){background:#fff!important;border-color:#ccc!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* A glass header with an open overflow so the account menu remains visible. */
html[data-theme] .top{
 background:var(--ckp-glass-warm),var(--ckp-glass-sheen),var(--ckp-glass-base)!important;
 background-clip:padding-box!important;
 border:1px solid var(--ckp-glass-edge)!important;
 border-radius:12px 12px 16px 16px;
 box-shadow:var(--ckp-glass-shadow);
 -webkit-backdrop-filter:blur(18px) saturate(130%);
 backdrop-filter:blur(18px) saturate(130%);
 overflow:visible;
}
html[data-theme] .accountbadge{
 background:var(--ckp-glass-sheen),var(--ckp-glass-base);
 border:1px solid var(--ckp-glass-edge);border-radius:16px;
 padding:4px 8px;min-height:44px;
 box-shadow:inset 0 1px 2px var(--ckp-glass-edge),inset 0 -2px 4px #71859b1a,0 3px 9px #263a4d12;
}
html[data-theme] .accountbadge:focus-visible{
 outline:2px solid var(--orange,#ef7d32);outline-offset:3px;
}
@media(prefers-reduced-transparency:reduce){
 html[data-theme] :is(.top,.accountbadge){background:var(--white,#fff)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(forced-colors:active){
 html[data-theme] :is(.top,.accountbadge){background:Canvas!important;color:CanvasText!important;border-color:ButtonText!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media print{
 html[data-theme] :is(.top,.accountbadge){background:#fff!important;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Key the white JPEG background out of the original artwork; keep the brand
   geometry and all lettering together inside one proportionate SVG viewport. */
html[data-theme] .top .logo{
 width:clamp(168px,30vw,260px)!important;height:auto!important;
 aspect-ratio:3 / 1!important;min-width:0!important;max-width:60vw;
 background:transparent!important;overflow:visible!important;flex:0 1 auto!important;
}
html[data-theme] .top .ckp-brand-logo{display:block;width:100%;height:auto;overflow:visible}
.ckp-brand-art{filter:url("#ckpBrandGlassLight")}
html[data-theme="dark"] .ckp-brand-art{filter:url("#ckpBrandGlassDark")}
@media(forced-colors:active){
 html[data-theme] .top .ckp-brand-art{filter:none}
 html[data-theme] .top .ckp-brand-logo{background:#fff;border-radius:6px}
}

/* Equal home metric tiles: reserve two label lines to align every count. */
.grid.ckp-home-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ckp-home-stats .statlink{
 display:flex;align-items:center;gap:20px;min-width:0;min-height:144px;
 padding:22px 24px;border-radius:24px;box-sizing:border-box;
}
.ckp-home-stats .ckp-metric-icon{flex:0 0 88px;width:88px;height:88px;min-width:88px}
.ckp-home-stats .statlink>div{flex:1;min-width:0}
.ckp-home-stats .statlink strong{
 margin:0 0 6px;font-size:36px;line-height:1.1;font-weight:750;
 letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.ckp-home-stats .statlink>div>span{
 display:block;min-height:2.6em;font-size:16px;font-weight:600;
 line-height:1.3;overflow-wrap:anywhere;
}
@media(max-width:560px){
 .grid.ckp-home-stats{gap:10px}
 .ckp-home-stats .statlink{gap:10px;padding:16px 12px;min-height:112px;border-radius:20px}
 .ckp-home-stats .ckp-metric-icon{flex-basis:56px;width:56px;height:56px;min-width:56px}
 .ckp-home-stats .statlink strong{font-size:28px;margin-bottom:5px}
 .ckp-home-stats .statlink>div>span{font-size:13px}
}
@media(max-width:360px){
 .ckp-home-stats .statlink{gap:8px;padding:14px 10px}
 .ckp-home-stats .ckp-metric-icon{flex-basis:44px;width:44px;height:44px;min-width:44px}
 .ckp-home-stats .statlink>div>span{font-size:12px}
}

/* One glass icon family for desktop and mobile navigation. */
.ckp-nav-icon{
 display:inline-grid;place-items:center;flex:0 0 34px;
 width:34px;height:34px;box-sizing:border-box;border-radius:10px;
 background:radial-gradient(ellipse at 12% 0,#ffe0b899,transparent 65%),linear-gradient(145deg,#fffffff5,#ffffff55 50%,#dce7f3b3);
 border:1px solid #ffffffd9;
 box-shadow:inset 0 1px 2px #fff,inset 0 -2px 3px #91a6bd26,0 3px 7px #34465b1a;
 line-height:0;
}
.ckp-nav-icon svg{display:block;width:23px;height:23px;overflow:visible;filter:drop-shadow(0 1px 0 #ffffffcc) drop-shadow(0 1px 1px #9d561633)}
.ckp-nav-label{min-width:0}
.nav button{min-height:54px}
.nav button.active .ckp-nav-icon{
 background:radial-gradient(ellipse at 12% 0,#fff,transparent 68%),linear-gradient(145deg,#ffe8cf,#ffffff99 50%,#ffd2a666);
 box-shadow:inset 0 1px 2px #fff,inset 0 -2px 3px #ec995b26,0 3px 8px #ef7d3226;
}
html[data-theme="dark"] .ckp-nav-icon{
 background:radial-gradient(ellipse at 12% 0,#ffca8540,transparent 65%),linear-gradient(145deg,#ffffff33,#ffffff0a 50%,#a7bed62e);
 border-color:#e2ecff47;
 box-shadow:inset 0 1px 2px #ffffff66,inset 0 -2px 3px #11182726,0 3px 7px #00000026;
}
html[data-theme="dark"] .ckp-nav-icon svg{filter:drop-shadow(0 1px 1px #ef7d3233)}
html[data-theme="dark"] .nav button.active .ckp-nav-icon{
 background:radial-gradient(ellipse at 12% 0,#ffca8566,transparent 68%),linear-gradient(145deg,#ffffff3d,#ffffff0f 50%,#ef7d3226);
}
.mobilebar .ckp-nav-icon{width:22px;height:22px;min-width:22px;border-radius:7px;line-height:0}
.mobilebar .ckp-nav-icon svg{width:16px;height:16px}
@media(forced-colors:active){
 .ckp-nav-icon,html[data-theme="dark"] .ckp-nav-icon{background:Canvas;border:1px solid ButtonText;box-shadow:none}
 .ckp-nav-icon svg{filter:none}
 .ckp-nav-icon svg g{stroke:ButtonText}
}

/* Installation help and a connection state shared by browser and standalone app. */
.ckp-login-install{margin-top:22px;padding-top:18px;border-top:1px solid var(--line,#dce0e5)}
.ckp-login-install .btn{width:100%}
.ckp-install-help{line-height:1.6;white-space:normal}
.ckp-install-help:empty{display:none}
.ckp-pwa-status{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:var(--ckp-glass-sheen);border:1px solid var(--ckp-glass-edge);color:var(--ink);font-size:13px;font-weight:650}
.ckp-connection-status{position:fixed;z-index:1000;bottom:calc(86px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);padding:12px 16px;border:1px solid #f0b77d;border-radius:16px;background:#fff5e8;color:#653612;box-shadow:0 6px 24px #34210b26;font-size:13px;line-height:1.5;text-align:center}
.ckp-connection-status[hidden],[data-ckp-install-button][hidden]{display:none!important}
html[data-theme="dark"] .ckp-connection-status{background:#433126;color:#ffe0bc;border-color:#93643e}
@media print{.ckp-connection-status,.ckp-login-install{display:none!important}}

/* Accessible theme cards, matching the shared glass surfaces. */
.ckp-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.ckp-theme-option{position:relative;display:block;cursor:pointer;min-width:0}
.ckp-theme-option>input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.ckp-theme-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 10px;border-radius:18px;border:1px solid var(--ckp-glass-edge);background:var(--ckp-glass-sheen),var(--ckp-glass-base);box-shadow:var(--ckp-glass-shadow)}
.ckp-theme-choice-label{font-size:14px;font-weight:650;color:var(--ink)}
.ckp-theme-preview{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%;max-width:112px;padding:10px;border-radius:12px;box-shadow:inset 0 1px 2px #ffffff99,0 3px 8px #263a4d15}
.ckp-theme-preview svg{grid-column:1/-1;justify-self:center;width:25px;height:25px;margin-bottom:3px}
.ckp-theme-preview>span{height:11px;border-radius:4px;background:currentColor;opacity:.18}
.ckp-theme-preview-light{background:linear-gradient(145deg,#fff,#e9edf3);color:#ca6a27}
.ckp-theme-preview-dark{background:linear-gradient(145deg,#3d4654,#20262f);color:#ffc18b}
.ckp-theme-preview-system{background:linear-gradient(90deg,#f5f7fa 50%,#303947 50%);color:#ef8737}
.ckp-theme-check{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--mint);color:var(--muted);font-size:13px;visibility:hidden}
.ckp-theme-option>input:checked+.ckp-theme-choice{outline:2px solid var(--orange,#ef7d32);outline-offset:2px}
.ckp-theme-option>input:checked+.ckp-theme-choice .ckp-theme-check{visibility:visible;background:#ef8737;color:#25180f}
.ckp-theme-option>input:focus-visible+.ckp-theme-choice{outline:3px solid var(--orange,#ef7d32);outline-offset:4px}
@media(hover:hover){.ckp-theme-option:hover .ckp-theme-choice{transform:translateY(-2px)}}
@media(max-width:420px){.ckp-theme-options{gap:9px}.ckp-theme-choice{padding:12px 6px}.ckp-theme-choice-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ckp-theme-option:hover .ckp-theme-choice{transform:none}}
@media(forced-colors:active){.ckp-theme-choice{border-color:ButtonText;box-shadow:none}.ckp-theme-option>input:checked+.ckp-theme-choice{outline-color:Highlight}.ckp-theme-check{forced-color-adjust:none}}

/* iOS focuses small text controls by zooming the visual viewport.
   Keep editable text at 16px on touch devices without disabling pinch zoom. */
@media screen and (any-pointer:coarse){
 html body :is(input,textarea,select,[contenteditable]:not([contenteditable="false"])){
  font-size:16px!important;
 }
}


/* Source plan columns remain aligned in both reading and editing modes. */
.ckp-plan-grid{max-width:100%;overflow-x:auto;border:1px solid var(--line,#dedbd6);border-radius:12px;margin:12px 0;overscroll-behavior-x:contain}
.ckp-plan-grid table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed}
.ckp-plan-grid th,.ckp-plan-grid td{border:1px solid var(--line,#dedbd6);padding:10px 12px;text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.ckp-plan-grid th{background:#fff0e4;font-weight:650}
.ckp-plan-grid td{height:48px}
.ckp-plan-grid tbody tr:nth-child(even){background:rgba(127,127,127,.035)}
.ckp-plan-grid textarea{display:block;width:100%;min-width:0;min-height:48px;box-sizing:border-box;resize:vertical;font:inherit;line-height:1.45;border:1px solid #ddd4ca;border-radius:6px;padding:6px;background:var(--card,#fff);color:inherit}
.ckp-journal-quarters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ckp-journal-quarters .active{background:#ffe2cc;border-color:#ef7d32}
@media print{.ckp-plan-grid{overflow:visible}.ckp-plan-grid table{min-width:0}.ckp-plan-grid tr{break-inside:avoid}}

/* Overview: one studio heading, chronological periods, compact content rows. */
.ckp-plans-overview{display:grid;gap:24px;min-width:0}
.ckp-plans-studio{min-width:0}
.ckp-plans-studio>header{padding:12px 0;border-bottom:1px solid var(--line,#8886)}
.ckp-plans-studio>header h2{margin:4px 0;font-size:22px;overflow-wrap:anywhere}
.ckp-plans-studio>header p{margin:0}
.ckp-plans-period{margin:16px 0 24px;min-width:0}
.ckp-plans-period>h3{font-size:18px;margin:0 0 10px;padding:8px 12px;border-left:4px solid #ef7d32;background:rgba(239,125,50,.12);border-radius:6px}
.ckp-plans-block{margin:10px 0;min-width:0}
.ckp-plans-block>h4{font-size:14px;font-weight:550;margin:8px 0;color:inherit;opacity:.8;overflow-wrap:anywhere}
.ckp-plans-table{max-width:100%;border:1px solid var(--line,#8886);border-radius:10px;overflow:hidden}
.ckp-plans-table table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.ckp-plans-table th,.ckp-plans-table td{text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid var(--line,#8884);white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.45}
.ckp-plans-table th{background:rgba(127,127,127,.08);font-weight:600}
.ckp-plans-table th:first-child,.ckp-plans-table td:first-child{width:38px;text-align:center;padding-left:4px;padding-right:4px}
.ckp-plans-table th:last-child,.ckp-plans-table td:last-child{width:56px;padding:6px}
.ckp-plans-table tr:last-child td{border-bottom:0}
.ckp-plans-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
.ckp-plans-actions .btn{margin:0;min-width:36px;min-height:36px;padding:6px}
.ckp-plans-actions .pill{font-size:10px;white-space:normal;padding:2px}
@media(min-width:700px){.ckp-plans-table th:last-child,.ckp-plans-table td:last-child{width:96px}.ckp-plans-actions{flex-direction:row;justify-content:center}}

.ckp-plan-grid col.ckp-plan-number{width:52px}
.ckp-plan-numbered th:first-child,.ckp-plan-numbered td:first-child{width:52px;min-width:0;box-sizing:border-box;padding:10px 5px;text-align:center;overflow-wrap:normal}
.ckp-plan-numbered th:first-child{font-size:12px}
.ckp-plan-numbered td:first-child textarea{padding:6px 2px;text-align:center}
.ckp-plan-compact table{min-width:0}

.ckp-plan-grid td[contenteditable]{cursor:text;outline:none;caret-color:currentColor}

.ckp-journal-page [contenteditable="plaintext-only"]{cursor:text;outline:none;caret-color:currentColor;white-space:pre-wrap;overflow-wrap:anywhere}
.ckp-journal-page [contenteditable="plaintext-only"]:empty:before{content:"\200b"}

/* Keep reading and editing typography identical, including iOS focus sizing. */
html body .ckp-journal-page .ckp-journal-prose-view{font-size:16px;line-height:1.5;font-weight:400;letter-spacing:normal;white-space:pre-wrap;word-break:normal;overflow-wrap:break-word;padding:0;margin:0}
html body .ckp-journal-page .ckp-journal-prose-view[contenteditable="plaintext-only"]{font-size:16px;line-height:1.5;font-weight:400;white-space:pre-wrap;overflow-wrap:break-word}
html body .ckp-journal-page :is(.ckp-journal-day strong,.ckp-journal-reading-record dd,.ckp-journal-member-info dd){font-size:16px;line-height:1.5}
html body #content .ckp-journal-page .ckp-journal-member h3,html body .ckp-journal-page .ckp-journal-attendance :is(th,td),html body .ckp-journal-page .ckp-plan-grid td{font-size:16px;line-height:1.5}

/* Member details stay compact with aligned labels and values at every width. */
.ckp-journal-page .ckp-journal-member-top{padding:12px;gap:10px;align-items:center}
.ckp-member-number{display:flex;align-items:center;justify-content:center;gap:3px;flex:0 0 auto;min-width:36px;padding:5px 6px;border-radius:8px;background:rgba(239,125,50,.12);color:var(--orange,#ef7d32);font-size:12px;line-height:1.4}
.ckp-member-number [contenteditable]{min-width:18px;text-align:center;font-size:16px}
.ckp-journal-page .ckp-journal-member-info>summary{padding:8px 12px;min-height:40px}
html body .ckp-journal-page .ckp-journal-member-info dl{display:block;padding:0 12px 10px;margin:0}
html body .ckp-journal-page .ckp-journal-member-info dl>div{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);align-items:start;gap:8px;padding:9px 0;border-top:1px solid var(--line,#8884)}
html body .ckp-journal-page .ckp-journal-member-info dt{margin:0;font-size:12px;line-height:1.5;font-weight:400;white-space:normal;overflow-wrap:break-word;color:var(--muted,#888)}
html body .ckp-journal-page .ckp-journal-member-info dd{margin:0;font-size:16px;line-height:1.5;font-weight:400;white-space:pre-wrap;overflow-wrap:break-word;min-width:0}

.ckp-attendance-new-month{margin:0 0 12px}
.ckp-journal-page .ckp-attendance-grid th[contenteditable="plaintext-only"]:empty:before{content:"дд/мм";font-size:12px;font-weight:400;color:var(--muted,#888)}

.ckp-attendance-add-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.ckp-attendance-add-actions .btn{flex:0 1 auto;font-size:14px}

.ckp-journal-help-grid table{min-width:852px}
.ckp-journal-help-grid col.ckp-help-date{width:110px}
.ckp-journal-help-grid col.ckp-help-content{width:300px}
.ckp-journal-help-grid col.ckp-help-person{width:180px}
.ckp-journal-help-grid col.ckp-help-hours{width:90px}
.ckp-journal-help-grid col.ckp-help-count{width:120px}
.ckp-journal-help-grid col.ckp-help-extra{width:140px}
@media print{.ckp-journal-help-grid table{min-width:0;table-layout:auto}}

.ckp-attendance-name{display:block;min-height:1.5em}
.ckp-attendance-number{text-align:center!important}

.ckp-journal-body{touch-action:manipulation}
.ckp-quarter-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.ckp-quarter-actions .ckp-journal-add{margin-top:0}
.ckp-quarter-hours{min-width:0;padding:6px 8px;color:var(--ink);font-weight:650}
.ckp-quarter-warning{box-sizing:border-box;width:max-content;max-width:100%;padding:8px 12px;border-radius:9px;color:#fff;font-size:.875rem;font-weight:700;overflow-wrap:anywhere;pointer-events:none}
.ckp-quarter-warning[data-balance="over"]{background:#a91f32}
.ckp-quarter-warning[data-balance="under"]{background:#17653e}
.ckp-quarter-warning[data-anchor]{position:fixed;z-index:100;box-shadow:0 5px 20px #0004}
.ckp-quarter-warning[data-anchor="offscreen"]{visibility:hidden}
.ckp-quarter-warning:empty{position:absolute;padding:0}
.ckp-quarter-status{flex-basis:100%;color:var(--ink)}
.ckp-quarter-status:empty{display:none}
@media(max-width:600px){
 .ckp-quarter-hours{flex-basis:100%;padding-inline:0}
}
@media print{.ckp-quarter-actions{display:none!important}}



.ckp-journal-page [data-ckp-edit-key]{min-height:1.5em}

.ckp-journal-page .ckp-journal-section-tools{display:none}

/* Shared four-column journal layout, following the reference studio journals. */
.ckp-plan-standard col.ckp-plan-hours{width:100px}
.ckp-plan-standard col.ckp-plan-period{width:180px}
.ckp-plan-grid :is(.ckp-plan-period-cell,.ckp-plan-hours-cell){position:relative}
.ckp-plan-grid .ckp-plan-hours-cell input{position:absolute;inset:0;width:100%;height:100%;min-width:0;box-sizing:border-box;margin:0;padding:10px 12px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;opacity:0;appearance:none;-webkit-tap-highlight-color:transparent}
.ckp-plan-hours-cell:focus-within span{visibility:hidden}
.ckp-plan-grid .ckp-plan-hours-cell input:focus{opacity:1}
.ckp-plan-period-cell select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit}
.ckp-plan-period-cell input[type=text]{width:100%;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;outline:none;box-shadow:none}
.ckp-plan-standard col.ckp-plan-content{width:auto}
.ckp-plan-standard table{min-width:640px}

.ckp-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ckp-quick-action{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0;box-sizing:border-box;padding:16px;text-align:left;white-space:normal;height:auto}
.ckp-quick-action .ckp-diary-action-icon{flex:0 0 24px;width:24px;height:24px;margin-top:2px}
.ckp-quick-action span{display:grid;gap:5px;min-width:0}
.ckp-quick-action strong{font-size:16px;line-height:1.35}
.ckp-quick-action small{font-size:13px;line-height:1.4;color:var(--muted);font-weight:400}
.ckp-quick-studios{display:grid;gap:10px}
.ckp-journal-source-page{max-width:100%;min-width:0}
.ckp-journal-source-page>.ckp-journal-section{margin-top:12px}
@media(max-width:380px){.ckp-quick-grid{grid-template-columns:1fr}}

/* Consistent motion for all buttons, tabs and collapsible section headings.
   Independent translate/scale preserve transforms used for positioning. */
html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]){cursor:pointer;transition:translate .18s ease,scale .18s ease,box-shadow .18s ease,border-color .18s ease}
@media(hover:hover){html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):hover{translate:0 -2px;box-shadow:var(--ckp-glass-hover);outline:2px solid var(--orange,#ef7d32);outline-offset:2px}}
html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):focus-visible{translate:0 -2px;box-shadow:var(--ckp-glass-hover);outline:2px solid var(--orange,#ef7d32);outline-offset:2px}
html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):active{translate:0 0;scale:.99}
@media(prefers-reduced-motion:reduce){html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]){transition:none!important;translate:none!important;scale:none!important}}
@media(forced-colors:active){html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){box-shadow:none;outline:2px solid Highlight}}
@media print{html body :is(button,a.btn,[role="button"],[role="tab"],summary,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):not([aria-disabled="true"]){translate:none!important;scale:none!important;outline:none!important;box-shadow:none!important}}

/* Light glass needs dark labels, including selected controls inherited from
   the original solid-color theme. Keep primary and destructive actions distinct. */
html[data-theme="light"] :is(.btn,.cal-btn,.xbtn,.ckp-settings-tabs button):not(.primary):not(.cal-primary):not(.danger):not(.cal-danger){color:#30343b}
html[data-theme="light"] :is(button,a.btn,[role="tab"]):is(.active,[aria-pressed="true"],[aria-selected="true"]):not(.danger):not(.cal-danger):where(:not(.mobilebar > button)){
 color:#5b2b0e;
 background:linear-gradient(155deg,#fff0e3,#ffd7b5)!important;
 border-color:#bd571b!important;
 box-shadow:inset 0 1px 2px #fff,0 0 0 1px #bd571b66,0 4px 12px #8b45131a;
}
@media(forced-colors:active){
 html[data-theme="light"] :is(.btn,.cal-btn,.xbtn,.ckp-settings-tabs button){color:ButtonText}
 html[data-theme="light"] :is(button,a.btn,[role="tab"]):is(.active,[aria-pressed="true"],[aria-selected="true"]){background:Highlight!important;color:HighlightText;border-color:Highlight!important}
}

.ckp-session-grid table{min-width:740px}
.ckp-session-grid col.ckp-session-date{width:115px}
.ckp-session-grid col.ckp-session-content{width:auto}
.ckp-session-grid col.ckp-session-hours{width:105px}
.ckp-session-grid col.ckp-session-signature{width:130px}
.ckp-session-grid .ckp-session-date-cell{padding:0}
.ckp-session-date-trigger{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}
.ckp-session-date-dialog{box-sizing:border-box;width:min(332px,calc(100% - 24px));max-height:calc(100% - 24px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);box-shadow:0 12px 40px #0004}
.ckp-session-date-dialog::backdrop{background:#0005}
.ckp-session-calendar{padding:12px}
.ckp-session-calendar-head{display:flex;align-items:center;gap:4px;margin-bottom:6px}
.ckp-session-calendar-head strong{flex:1;text-align:center}
.ckp-session-calendar-head button,.ckp-session-calendar-grid button{min-height:38px;padding:2px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.ckp-session-calendar-head button{min-width:38px;font-size:20px}
.ckp-session-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;align-items:center}
.ckp-session-calendar-grid span{font-size:.82em;color:var(--muted)}
.ckp-session-calendar-grid button[aria-current=date]{outline:2px solid var(--orange);outline-offset:-2px;font-weight:700}
.ckp-session-calendar-grid button:disabled{opacity:.38;cursor:default}
.ckp-session-calendar button:enabled:hover{background:color-mix(in srgb,var(--orange) 18%,transparent)}
.ckp-session-calendar button:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}

/* Profile silhouettes follow the warm glass used by the navigation icons. */
html[data-theme] .accountbadge .ckp-profile-avatar{width:32px;height:32px;fill:none;flex:none;filter:drop-shadow(0 2px 2px #26394d40)}
html[data-theme="dark"] .ckp-profile-avatar{--avatar-glass-top:#fff9ef;--avatar-glass-mid:#e2e8ef;--avatar-glass-bottom:#8492a2;filter:drop-shadow(0 1px 3px #0006)}
@media(forced-colors:active){html[data-theme] .accountbadge .ckp-profile-avatar{filter:none}.ckp-profile-avatar path{fill:CanvasText;stroke:Canvas}.ckp-profile-avatar rect{fill:Canvas;stroke:CanvasText}}

/* Keep settings panels spaced independently of general card margins. */
.ckp-settings-page [data-settings-panel]:not([hidden]){display:grid;gap:20px;align-content:start}
.ckp-settings-page [data-settings-panel]>.card{margin:0;min-width:0}
.ckp-settings-page [data-settings-panel][hidden]{display:none}

/* Inline journal and weekly-plan editing keeps the cell's surface and shows the caret. */
html body :is(.ckp-journal-page [contenteditable]:not([contenteditable="false"]),#content .wp-inline[contenteditable="true"],.ckp-plan-grid :is(.ckp-plan-hours-cell,.ckp-plan-period-cell) input[type="text"],.ckp-journal-attendance :is(input,textarea),#content .wp-inline-time input):focus{
 outline:none;
 box-shadow:none;
 caret-color:currentColor;
}
html body :is(.ckp-plan-grid :is(.ckp-plan-hours-cell,.ckp-plan-period-cell) input[type="text"],.ckp-journal-attendance :is(input,textarea),#content .wp-inline-time input):focus{
 background:transparent;
 color:inherit;
}
html body :is(.ckp-plan-period-cell select,.ckp-session-date-trigger):focus-visible{
 outline:none;
 box-shadow:none;
 translate:none;
}
html body :is(.ckp-plan-period-cell:has(select:focus-visible),.ckp-session-date-trigger:focus-visible){
 box-shadow:inset 0 -2px var(--orange,#ef7d32);
}

.ckp-absence-form,.ckp-absence-list li{display:flex;flex-wrap:wrap;align-items:end;gap:10px 16px}
.ckp-absence-form label{display:grid;gap:4px}
.ckp-absence-duration{align-self:end;display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.ckp-absence-duration:empty{display:none}
.ckp-absence-list{padding:0;list-style:none}
.ckp-absence-list li{justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.ckp-absence-date-note{display:block;padding:0 12px 8px}
.ckp-session-calendar-grid button[data-absence]{opacity:1;color:var(--ink);background:color-mix(in srgb,var(--orange) 18%,transparent)}
.ckp-absence-calendar-legend{margin:8px 0 0}

.ckp-absence-picker{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 6px;color:var(--ink);white-space:nowrap}
.ckp-absence-icon{display:block;flex:none;width:1.15em;height:1.15em}
.ckp-absence-picker :is(input[type="date"],select){position:absolute;z-index:1;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ckp-absence-picker:has(:focus-visible){text-decoration:underline;text-underline-offset:4px}
#content .ckp-settings-page .ckp-settings-tabs{max-width:540px}

/* Manual studio journal save */
.ckp-drive-save-wrap{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%;min-width:0}
.ckp-drive-save.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 11px;font-size:13px;line-height:1.25;white-space:nowrap}
.actions > .ckp-drive-save-wrap{display:contents}
.actions > .ckp-drive-save-wrap > .ckp-drive-save{flex:none}
.actions > .ckp-drive-save-wrap > .ckp-drive-save-feedback{flex:0 0 100%;min-width:0;order:1}
.ckp-drive-save .ckp-diary-action-icon{width:16px;height:16px;flex:none}
html[data-theme] .ckp-drive-save.btn:is([data-state="pending"],[data-state="saving"]){background:#a92839!important;color:#fff;border-color:#e36c79!important}
html[data-theme] .ckp-drive-save.btn[data-state="pending"]:hover{background:#8d2030!important}
.ckp-drive-save-feedback{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}
.ckp-drive-save-feedback:empty{display:none}

/* The isolated backdrop document paints only the two rim bands. */
.ckp-rim-band{position:absolute;overflow:hidden;pointer-events:none;background:var(--bg)}
.ckp-rim-scene{position:absolute;inset:0;min-height:0;transform-origin:50% 0}
.ckp-rim-band::after{content:"";position:absolute;inset:0;background:#d7dde264}
html[data-theme="dark"] .ckp-rim-band::after{background:#15191e66}


/* A viewport-anchored dock and touch-friendly nationality suggestions. */
@media(max-width:760px){
 html[data-theme] .mobilebar{--ckp-dock-safe-bottom:env(safe-area-inset-bottom,0px);position:fixed}
}
.ckp-nationality-options{position:absolute;font-size:14px;line-height:1.3;z-index:10000;overflow-y:auto;overscroll-behavior:contain;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--white,#fff);color:var(--ink);box-shadow:0 4px 16px #0004}
.ckp-nationality-options [role="option"]{padding:8px 10px;min-height:36px;cursor:pointer;border-radius:8px}
.ckp-nationality-options [role="option"]:hover,.ckp-nationality-options [aria-selected="true"]{background:var(--mint);color:var(--gold)}
@media print{.ckp-nationality-options{display:none!important}}

/* Imported column labels can contain leading blank lines. Align every header at its first line. */
table thead th,
.ckp-plan-grid th,
.ckp-plans-table th {
  white-space: normal;
  vertical-align: top;
}
