.cp-v13-public-clock{
  min-height:24px;
  display:grid;
  place-items:center;
  margin:0;
  color:var(--text-strong);
  text-align:center;
}
/* 11 Oct 2026: more room above and below the clock, the mark where it was. The page centres this
   column, so the 16px added under the mark (6 above the clock, 10 below it) is matched by 16px above
   it; on short screens (top-aligned) nothing is added above. */
#publicPage .public-brand{
  height:198px!important;
  min-height:198px!important;
  grid-template-rows:var(--cp-brand-mark) 32px 30px!important;
  row-gap:8px!important;
  padding-top:16px!important;
  padding-bottom:18px!important;
}
#publicPage .public-brand .cp-v13-public-clock{align-self:end!important}
.cp-v13-public-clock strong{
  font-family:"Tomorrow",Arial,sans-serif;
  font-size:17px;
  font-weight:400;
  line-height:24px;
  letter-spacing:.025em;
  white-space:nowrap;
}
@media(max-width:700px){
  #publicPage .public-brand{
    height:178px!important;
    min-height:178px!important;
    grid-template-rows:var(--cp-brand-mark-narrow) 30px 28px!important;
    row-gap:6px!important;
    padding-top:16px!important;
    padding-bottom:16px!important;
  }
  .cp-v13-public-clock{min-height:22px}
  .cp-v13-public-clock strong{font-size:15px;line-height:22px}
}
@media(max-height:720px){
  #publicPage .public-brand{
    height:154px!important;
    min-height:154px!important;
    grid-template-rows:var(--cp-brand-mark-narrow) 30px 24px!important;
    row-gap:6px!important;
    padding-top:0!important;
    padding-bottom:12px!important;
  }
  .cp-v13-public-clock{min-height:20px}
  .cp-v13-public-clock strong{font-size:14px;line-height:20px}
}

/* 16.0.0 (11 Oct 2026): language and theme, small, top right of the public page. Out of the page's
   grid (absolute), scrolls with the page on short screens, gone while the keyboard is open. Both themes
   use the same geometry; only colours change. The theme button shows where it goes (Light: moon). */
#publicPage{position:relative}
#publicPage .public-prefs{
  position:absolute;z-index:6;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));
  display:flex;align-items:center;gap:6px
}
#publicPage .public-pref{
  position:relative;box-sizing:border-box;width:34px;height:34px;min-height:34px;display:grid;place-items:center;margin:0;padding:0;
  border:1px solid var(--line);border-radius:50%;color:var(--muted);
  background:color-mix(in srgb,var(--surface) 70%,transparent);box-shadow:none;
  font:600 10px/1 "Tomorrow","Noto Sans Thai",Arial,sans-serif;letter-spacing:.04em;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:color .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease
}
#publicPage .public-pref::before{content:"";position:absolute;inset:-5px;border-radius:50%}
#publicPage .public-pref svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#publicPage .public-pref:hover{color:var(--text-strong);border-color:color-mix(in srgb,var(--text) 34%,transparent)}
#publicPage .public-pref:focus-visible{outline:2px solid var(--accent);outline-offset:2px;color:var(--text-strong)}
html[data-theme="dark"] #publicPage .public-pref{color:var(--text)}
body.keyboard-open #publicPage .public-prefs{display:none}
@media (prefers-reduced-motion:reduce){#publicPage .public-pref{transition:none}}
