/*
 * Proof 2, the time clock: the Clock's console on a dark phone (design/looks/C-Clock.html) and the manager's "Today".
 * The band wears the Glow look, so every token here is the dark one. Colors are base.css tokens, mixed where the
 * drawing asks for a dimmer or a see-through one.
 */
.ck { display: grid; gap: 28px; justify-items: center; }
.ck-phone { position: relative; display: grid; justify-items: center; gap: 16px; transition: margin-bottom 520ms var(--ease-out); }
.ck-phone .phone { position: relative; z-index: 2; }
/* Room under the phone for the receipt it prints. */
.ck-phone.has-slip { margin-bottom: 150px; }
/* The console is the brightest thing in the band. */
.ck-phone .phone { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cyan) 38%, transparent), 0 0 110px -14px color-mix(in srgb, var(--cyan) 55%, transparent), 0 40px 70px -30px var(--sunken); }
.ck-screen { isolation: isolate; }
.ck-screen::after { content: ''; position: absolute; z-index: -1; top: -150px; inset-inline-end: -170px; width: 440px; height: 440px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cyan) 30%, transparent), color-mix(in srgb, var(--ink) 16%, transparent) 55%, transparent 100%); }

.ck-top { display: flex; padding: 2px 12px 0; }
.ck-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding-inline: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); font: 400 13px/18px var(--sans); }
.ck-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-solid); box-shadow: 0 0 8px var(--ok-solid); }
.ck-chip b { font-weight: 600; color: var(--on-navy); }
.ck-chip span { color: var(--ok); }

.ck-console { position: relative; box-shadow: 0 24px 48px -12px var(--sunken); border-radius: 22px; }
.ck-console .console-top > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ck-badges { display: inline-flex; gap: 6px; align-items: center; }
.ck-badges [hidden] { display: none; }
.ck-arc { margin-top: 8px; }
.ck-arc .hz { stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.ck-arc .dots { stroke: var(--line-control); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.7; }
.ck-arc .dim { stroke: color-mix(in oklab, var(--cyan) 52%, var(--night-ground)); stroke-width: 6; stroke-linecap: round; }
.ck-arc .lit { stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--cyan) 85%, transparent)); transition: d 400ms var(--ease-out); }
.ck-arc .now { fill: var(--on-navy); filter: drop-shadow(0 0 9px var(--cyan)); }
.ck-arc .ping { fill: none; stroke: var(--on-navy); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ck-ping 2.2s var(--ease-out) infinite; }
@keyframes ck-ping { from { transform: scale(1); opacity: 0.85; } to { transform: scale(3.4); opacity: 0; } }
.ck-time { fill: var(--on-navy); font: 500 26px var(--mono); }
.ck-sched { fill: var(--text-2); font: 400 12px var(--sans); }

.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ck-btns .ui-btn { height: 48px; font-size: 16px; }
.ck-btns .ui-btn:not(.ghost) { box-shadow: 0 8px 28px -4px color-mix(in srgb, var(--cyan) 45%, transparent); }
.ck-btns [hidden] { display: none; }
/* Spanish: "Registrar salida" beside "Iniciar pausa" is wider than the console, so that pair is set a size smaller. */
:lang(es) .ck-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
:lang(es) .ck-btns .ui-btn:not(.ck-in) { font-size: 13px; padding-inline: 6px; }
.ck-in { grid-column: 1 / -1; position: relative; overflow: hidden; height: 58px !important; font-size: 18px !important; gap: 12px; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; animation: ck-call 1.9s var(--ease-in-out) infinite; }
.ck-in > * { position: relative; }
.ck-in::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--on-navy) 55%, transparent); transform: scaleX(var(--hold, 0)); transform-origin: 0 50%; }
[dir='rtl'] .ck-in::before { transform-origin: 100% 50%; }
.ck-in.holding { animation: none; transform: scale(0.97); }
.ck-ring { width: 28px; height: 28px; transform: rotate(-90deg); flex: none; }
.ck-ring circle { fill: none; stroke-width: 4; }
.ck-ring .t { stroke: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.ck-ring .p { stroke: var(--on-accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--hold, 0) * 100); }
@keyframes ck-call { 0%, 100% { box-shadow: 0 8px 28px -4px color-mix(in srgb, var(--cyan) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent); } 55% { box-shadow: 0 8px 28px -4px color-mix(in srgb, var(--cyan) 45%, transparent), 0 0 0 12px transparent; } }
.ck-note { display: flex; align-items: center; gap: 8px; min-height: 20px; margin-top: 11px; font: 400 13px/20px var(--sans); color: var(--text-2); }
.ck-note:empty { display: none; }

.ck-sheet { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 -14px; padding-top: 12px; background: var(--surface); border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; }
.ck-recent { background: none; border: 0; display: grid; gap: 8px; }
.ck-row { min-height: 58px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--raised); }
.ck-row + .ck-row { border-top: 1px solid var(--line-strong); }
.ck-row .ui-ico.quiet { background: var(--line); color: var(--text-2); }
.ck-two { display: flex; flex-direction: column; align-items: flex-end; }
.ck-two small { font: 400 11px/14px var(--sans); color: var(--text-2); }
.ck-row.fresh { animation: ck-land 560ms var(--ease-spring) both; }
@keyframes ck-land { from { opacity: 0; transform: translateY(-22px) scale(0.94); } }

/* The receipt: a slip of paper that comes out of the phone at every punch. */
.ck-slip { position: absolute; z-index: 1; top: calc(100% - 22px); inset-inline-end: 38px; width: 200px; padding: 30px 14px 20px; background: var(--surface); color: var(--text); font: 400 11px/16px var(--mono); transform: rotate(3deg); border-radius: 5px 5px 0 0;
  filter: drop-shadow(0 16px 18px color-mix(in srgb, var(--night-ground) 70%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle 5px at 50% 0, #000 96%, transparent) bottom / 10px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle 5px at 50% 0, #000 96%, transparent) bottom / 10px 7px repeat-x; }
.ck-slip[hidden] { display: none; }
.ck-slip b { display: block; font: 500 11px/16px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px dashed var(--line-control); }
.ck-slip dl { margin: 0; display: grid; gap: 1px; }
.ck-slip dl div { display: flex; justify-content: space-between; gap: 8px; }
.ck-slip dt { color: var(--text-3); } .ck-slip dd { margin: 0; text-align: end; }
.ck-slip p { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-control); font-size: 10px; line-height: 14px; color: var(--text-2); }
.ck-slip.out { animation: ck-slip 700ms var(--ease-spring) both; }
@keyframes ck-slip { from { transform: translateY(-150px) rotate(0deg); } 70% { transform: translateY(6px) rotate(3.6deg); } }

/* ---------- Today ---------- */
.ck-board { display: grid; gap: 18px; width: 100%; max-width: 420px; align-content: start; }
.ck-today { border-radius: 22px; padding: 14px 6px 6px; background: color-mix(in srgb, var(--raised) 86%, transparent); border: 1px solid var(--glass-edge); box-shadow: 0 30px 50px -24px var(--sunken); color: var(--text); }
.ck-today-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 10px; }
.ck-today-head > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ck-today-head b { font: 700 20px/24px var(--sans); letter-spacing: -0.02em; color: var(--on-navy); }
.ck-today-head .ui-sub { font: 400 12px/16px var(--sans); color: var(--text-2); }
.ck-count { flex: none; height: 26px; padding-inline: 10px; border-radius: 13px; display: inline-flex; align-items: center; font: 500 12px/1 var(--mono); background: var(--warn-tint); color: var(--warn); transition: background 300ms, color 300ms; }
.ck-count.all { background: var(--ok-tint); color: var(--ok); }
.ck-rows { display: grid; gap: 2px; }
.ck-p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'av name badge' 'av line line'; column-gap: 10px; align-items: center; min-height: 50px; padding: 7px 10px; border-radius: 14px; }
.ck-p .av { grid-area: av; }
.ck-p b { grid-area: name; font: 600 14px/20px var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-p .ui-badge { grid-area: badge; height: 22px; }
.ck-line { grid-area: line; font: 400 12px/16px var(--sans); color: var(--text-2); }
.ck-p.missing b { grid-column: 2 / -1; white-space: normal; }
.ck-p .ui-badge i { animation: ck-live 2.2s ease-in-out infinite; }
.ck-p.missing { background: var(--bad-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); padding-block: 10px; }
.ck-p.missing b { color: var(--bad); } .ck-p.missing .ck-line { color: var(--text); }
.ck-p.missing .av { align-self: start; }
.ck-p.missing .av { animation: ck-knock 2.4s var(--ease-in-out) infinite; }
.ck-p.you { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.av.ck-you { width: 30px; margin-inline: -3px; border-radius: 12px; background: var(--cyan); color: var(--on-cyan); font-size: 10px; }
.ck-p.flash { animation: ck-flash 1100ms var(--ease-out); }
@keyframes ck-flash { 0% { background: color-mix(in srgb, var(--cyan) 42%, transparent); transform: scale(1.03); } }
@keyframes ck-live { 50% { opacity: 0.35; } }
@keyframes ck-knock { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-14deg); } 95% { transform: rotate(12deg); } }

/* ---------- The ways to check in ---------- */
.ck-ways { display: grid; gap: 10px; }
.ck-ways-label { font: 500 12px/16px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-soft); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ck-way-chip { height: 34px; padding-inline: 13px; border-radius: 17px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--text); font: 600 13px/1 var(--sans); white-space: nowrap; transition: background 160ms, color 160ms, transform 180ms var(--ease-spring); }
.ck-way-chip:hover { transform: translateY(-1px); }
.ck-way-chip[aria-pressed='true'] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); }
.ck-way { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); }
.ck-way p { font: 400 14px/20px var(--sans); color: var(--text); }
.ck-art { flex: none; width: 46px; height: 46px; color: var(--cyan); }
.ck-way.pop .ck-art { animation: ck-pop 420ms var(--ease-spring); }
@keyframes ck-pop { from { transform: scale(0.5) rotate(-12deg); opacity: 0; } }

/* Wide: the phone and the board side by side. */
@media (min-width: 900px) {
  .ck { grid-template-columns: auto minmax(0, 400px); justify-content: center; align-items: start; justify-items: stretch; gap: clamp(48px, 7vw, 110px); }
  .ck-board { margin-top: 32px; }
}
