/*! Satnam Siri WaheGuru Sahib Ji */

.tool-main { max-width: 860px; padding-top: 30px; padding-bottom: 72px; }
.tool-main svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tool-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.tool-ic {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.tool-ic svg { width: 25px; height: 25px; }
.tool-head > div:not(.tool-ic) { flex: 1; min-width: 0; }
.tool-head h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.9vw, 2rem); letter-spacing: -.02em;
  display: flex; align-items: center; gap: 14px; }
.tool-head > div > p { margin: 3px 6px 0; color: var(--muted); font-size: .92rem; }

.ct-badge { display: flex; align-items: center; gap: 10px; margin: 0; flex: none;
  align-self: flex-end; }
@media (max-width: 708px) { .ct-badge { flex-basis: 100%; align-self: auto; } }
.ct-badge svg { width: 21px; height: 21px; color: var(--ok-ink); flex: none; }
.ct-badge span { display: flex; flex-direction: column; line-height: 1.3; font-size: .79rem; color: var(--muted); }
.ct-badge b { font-size: .85rem; color: var(--text); }

.ck [hidden], .ck-thread [hidden] { display: none !important; }

.ck .btn, .ck-modal .btn {
  border-color: var(--border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  text-decoration: none;
}
.ck .btn:hover, .ck-modal .btn:hover { border-color: var(--accent); color: var(--accent); }
.ck .btn:focus-visible, .ck-modal .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck .btn.primary, .ck-modal .btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.ck .btn.primary:hover, .ck-modal .btn.primary:hover { color: var(--accent-ink); filter: brightness(1.06); }

.ck-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 22px;
}
.ck-card > h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ck-card > h2 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ck-lede { color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.ck-more-panel .ck-fine { margin-top: 14px; }
.ck-fine { color: var(--faint); font-size: .84rem; margin: 16px 0 0; }
.ck-hint { color: var(--faint); font-size: .84rem; margin: 6px 0 0; line-height: 1.45; }
.ck-opt { color: var(--faint); font-weight: 400; }

.ck-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-3);
  margin: 0 0 18px; line-height: 1.5;
}
.ck-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ck-alert.is-ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.ck-alert.is-bad { border-color: var(--c-red); background: rgba(239, 68, 68, .1); color: var(--red-ink); }
.ck-alert.is-off { color: var(--muted); }

.ck-form { display: block; }
.ck-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.ck-row .ck-hint-row { grid-column: 1 / -1; margin: -12px 0 18px; }
.ck-field { margin: 0 0 18px; }
.ck-field label {
  display: block; font-weight: 600; font-size: .92rem;
  margin: 0 0 7px; color: var(--text);
}
.ck-field input[type="text"],
.ck-field input[type="email"],
.ck-field input[type="file"],
.ck-field select,
.ck-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.ck-field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.ck-field input:focus-visible,
.ck-field select:focus-visible,
.ck-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ck-field.has-error input,
.ck-field.has-error select,
.ck-field.has-error textarea { border-color: var(--c-red); }

.ck-err { color: var(--red-ink); font-size: .87rem; margin: 7px 0 0; line-height: 1.45; }

/* Carries the refreshed-challenge message for screen readers only. The sighted
   signal is the amber flash below — a sentence explaining a timed-out check is
   clutter, but a flash alone is invisible to anyone not looking at it. */
.ck-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@keyframes ck-refresh-flash {
  0%, 100% { border-color: var(--border); background: var(--bg-3); }
  50%      { border-color: var(--c-amber); background: rgba(245, 158, 11, .14); }
}
.ck-challenge.is-refreshed { animation: ck-refresh-flash 1.6s ease-in-out 2; }

@media (prefers-reduced-motion: reduce) {
  .ck-challenge.is-refreshed { animation: none; border-color: var(--c-amber); }
}
.ck-count { color: var(--faint); font-size: .8rem; margin: 6px 0 0; text-align: right; }
.ck-count.is-over { color: var(--red-ink); font-weight: 600; }

.ck-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.ck-challenge {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.ck-challenge-tag {
  display: block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 5px;
}
.ck-challenge label { font-weight: 500; font-size: 1rem; margin: 0; line-height: 1.5; }
.ck-challenge label strong { color: var(--accent); font-weight: 700; }
.ck-challenge input {
  width: 100%; max-width: 220px; box-sizing: border-box;
  padding: 11px 13px; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ck-challenge input:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.ck-challenge.has-error input { border-color: var(--c-red); }
.ck-challenge .ck-hint { margin: 0; }

.ck-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: flex-end; margin-top: 4px;
}
.ck-inline { display: inline; margin: 0; }

.ck-keybox {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0 0 16px;
}
.ck-keylabel {
  display: block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.ck-key {
  width: 100%; box-sizing: border-box; display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.5;
  white-space: pre; overflow-x: auto; overflow-y: hidden; resize: none;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0; color: var(--text);
  background: transparent; border: 0; border-radius: 0;
}
.ck-key::-webkit-scrollbar { display: none; }
.ck-key:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ck-ref { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

.ck-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin: 0 0 18px;
  border: 1px solid var(--c-amber); background: rgba(245, 158, 11, .1);
  border-radius: var(--radius-sm); color: var(--amber-ink); line-height: 1.5;
}
.ck-warn svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ck-sent-foot { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
.ck-sent-foot > .ck-more-panel { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .ck-sent-foot { grid-template-columns: auto 1fr; }
  .ck-sent-foot > #ck-more-btn { grid-column: 1; grid-row: 1; }
  .ck-sent-foot > .btn.primary,
  .ck-sent-foot > .ck-nojs-continue { grid-column: 2; grid-row: 1; justify-self: end; min-width: 190px; }
  .ck-sent-foot > .ck-more-panel { grid-column: 1 / -1; grid-row: 2; }
  .ck-sent-foot.is-open > .btn.primary,
  .ck-sent-foot.is-open > .ck-nojs-continue { grid-column: 1 / -1; grid-row: 3; }
}
.ck-sent-foot .btn { justify-content: center; }
.ck-sent-foot .ck-more-ic { width: 16px; height: 16px; flex: none; }
.ck-sent-foot .ck-caret { width: 14px; height: 14px; transition: transform .15s ease; }
.ck-sent-foot .btn[aria-expanded="true"] .ck-caret { transform: rotate(180deg); }

.ck-more-panel {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-2);
}
.ck-refrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ck-refrow .ck-ref { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ck-refrow .btn { margin-left: auto; flex: none; }

.ck-keyacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.ck-keyacts > .btn { flex: none; }
.ck-keyacts-safe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px; margin-left: auto; min-width: 0; }
.ck-keyacts-safe > form.ck-inline { display: block; }
.ck-keyacts-safe .btn { width: 100%; justify-content: center; }
@media (max-width: 479px) {
  .ck-keyacts { display: grid; grid-template-columns: 1fr; }
  .ck-keyacts > .btn { width: 100%; justify-content: center; }
  .ck-keyacts-safe { margin-left: 0; }
}

.ck-keep {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; margin: 0 0 18px; background: var(--bg-3);
}
.ck-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.ck-check input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--accent); }
.ck-check span { display: block; line-height: 1.5; }
.ck-check b { display: block; font-weight: 600; }
.ck-check i { display: block; font-style: normal; color: var(--faint); font-size: .87rem; margin-top: 3px; }

.ck-saved-gate { margin: 18px 0 0; display: flex; justify-content: flex-end; }

/* Smaller than the heading's icon on purpose. At 26px they were the largest
   marks in the box and pulled the eye down the list before the heading had
   been read. */
.ck-step {
  flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 3px;
  background: var(--bg-3); color: var(--faint);
  font-size: .72rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ck-stack { display: flex; flex-direction: column; }
.ck-stack > #ck-new-block { order: 1; }
.ck-stack > #ck-restore-block { order: 2; }
.ck-stack > #ck-recent { order: 3; }

/* With saved conversations the visitor is almost certainly here to read a
   reply, not to write again — so the list leads, restoring follows, and
   starting a new one drops to the bottom, collapsed. */
.ck-stack.has-recents > #ck-recent { order: 1; }
.ck-stack.has-recents > #ck-restore-block { order: 2; }
.ck-stack.has-recents > #ck-new-block { order: 3; }

.ck-block { padding: 0; overflow: hidden; }
.ck-block > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; cursor: pointer;
  list-style: none; font-weight: 600;
}
.ck-block > summary::-webkit-details-marker { display: none; }
.ck-block > summary:hover { background: var(--bg-3); }
.ck-block > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ck-sum { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; flex: none; }
.ck-sum svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.ck-sum-hint {
  flex: 1 1 auto; min-width: 0; color: var(--faint);
  font-weight: 400; font-size: .86rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ck-caret { width: 18px; height: 18px; flex: none; color: var(--faint); transition: transform .15s; }
.ck-block[open] > summary .ck-caret { transform: rotate(180deg); }
.ck-block[open] > summary { border-bottom: 1px solid var(--border-2); }
.ck-block-body { padding: 20px 22px 22px; }

.ck-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  padding: 26px 18px; margin: 0 0 8px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ck-drop:hover, .ck-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.ck-drop > svg { width: 30px; height: 30px; color: var(--faint); }
.ck-drop:hover > svg, .ck-drop.is-over > svg { color: var(--accent); }
.ck-drop b { font-size: .95rem; font-weight: 600; }
.ck-drop i { font-style: normal; font-size: .84rem; color: var(--faint); line-height: 1.5; }
.ck-drop-link { color: var(--accent); text-decoration: underline; }
.ck-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.ck-drop-msg { margin: 0 0 18px; font-size: .86rem; min-height: 1.2em; }
.ck-drop-msg.is-ok { color: var(--ok-ink); }
.ck-drop-msg.is-bad { color: var(--red-ink); }

.ck-recent { margin: 0 0 22px; }
.ck-recent-head { margin: 0 0 14px; }
.ck-recent-sub { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ck-recent-sub p { flex: 1 1 auto; min-width: 0; }
.ck-recent-acts { flex: none; margin-left: auto; }
.ck-recent-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 9px; }
.ck-recent-head h2 svg { width: 20px; height: 20px; color: var(--accent); }

/* The container is muted so the steps read as supporting text — but the
   heading must not inherit that, or it ends up quieter and smaller-looking
   than the bold lead-ins underneath it. */
.ck-how > h2 { color: var(--text); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ck-how > h2 svg { width: 22px; height: 22px; color: var(--accent); }
.ck-field label svg, .ck-keylabel svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--faint); }
.ck-challenge-tag svg { width: 13px; height: 13px; vertical-align: -2px; }
.ck-err svg { width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.ck-recent-head p { margin: 0; color: var(--muted); font-size: .92rem; }

/* minmax(0, 1fr), not the default 1fr: a grid item's min-width is auto, so a
   row refuses to shrink below its own content and pushes the page sideways.
   The card padding added around this list is what made it show up. */
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ck-list:empty { min-height: 0; }
/* The ROW is the card. The number and the checkbox live in it but outside the
   form, so ticking one never opens the conversation — and everything else is
   the submit button, which is what makes the whole row tappable on a phone. */
.ck-item {
  position: relative; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.ck-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ck-item:focus-within { border-color: var(--accent); }
.ck-item-check {
  position: absolute; left: 12px; top: 17px; z-index: 1;
  width: 17px; height: 17px; margin: 0;
  accent-color: var(--accent); cursor: pointer;
}
.ck-item-n {
  position: absolute; left: 35px; top: 16px; width: 18px; text-align: left;
  color: var(--faint); font-size: .8rem; font-weight: 700;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.ck-item-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ck-item-open { margin: 0; min-width: 0; }
.ck-item-btn {
  width: 100%; min-width: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 5px 10px;
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: transparent; border: 0;
  padding: 14px 0;
}
.ck-item-main { grid-column: 1 / -1; grid-row: 1; padding-left: 47px; }
.ck-item-meta { grid-column: 1; grid-row: 2; }
.ck-item-btn > .ck-status { grid-column: 2; grid-row: 2; justify-self: end; }
.ck-item-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

.ck-recent-acts { display: flex; gap: 8px; }
.ck-recent-acts .btn { padding: 0; width: 34px; height: 34px; justify-content: center; }
.ck-recent-acts .ck-act-lbl { display: none; }
@media (min-width: 560px) {
  .ck-recent-acts .btn { width: auto; height: auto; padding: 7px 12px; }
  .ck-recent-acts .ck-act-lbl { display: inline; }
}
.ck-item-main { min-width: 0; }
.ck-item-main b {
  display: block; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ck-item-meta {
  display: flex; gap: 0 6px; min-width: 0;
  color: var(--faint); font-size: .84rem; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.ck-status {
  flex: none; font-size: .8rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.ck-status.is-wait { background: rgba(245, 158, 11, .14); color: var(--amber-ink); }
.ck-status.is-ok { background: var(--ok-soft); color: var(--ok-ink); }
.ck-status.is-off { background: var(--bg-3); color: var(--muted); }

.ck-thread {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 22px;
}
.ck-thread-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 12px; align-items: center; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-2); margin-bottom: 18px;
}
.ck-thread-ic  { grid-column: 1; grid-row: 1; }
.ck-thread-head h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.2rem; }
.ck-leave      { grid-column: 3; grid-row: 1; }
.ck-meta {
  grid-column: 1 / -1; grid-row: 2; margin: 4px 0 0;
  color: var(--muted); font-size: .88rem;
  white-space: nowrap; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ck-meta::-webkit-scrollbar { display: none; }
.ck-statusrow {
  grid-column: 1 / -1; grid-row: 3; margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ck-statusrow .ck-status, .ck-statusrow .btn.tool {
  height: 34px; display: inline-flex; align-items: center; flex: none;
}
.ck-x {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--faint); cursor: pointer;
}
.ck-x:hover { background: var(--bg-3); color: var(--text); }
.ck-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (min-width: 650px) {
  .ck-thread-head { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .ck-leave { grid-column: 4; }
  .ck-statusrow {
    grid-column: 3; grid-row: 1; margin-top: 0;
    justify-content: flex-end; gap: 10px;
  }
}

.ck-nag {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin: 0 0 20px;
  border: 1px solid var(--border); background: var(--bg-3);
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: .88rem; line-height: 1.5;
}
.ck-nag svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ck-msgs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.ck-msg { max-width: 88%; }
.ck-msg.from-you { margin-left: auto; }
.ck-msg-who {
  font-size: .8rem; color: var(--faint);
  margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap;
}
.ck-msg.from-you .ck-msg-who { justify-content: flex-end; }
.ck-msg-body {
  padding: 13px 15px; border-radius: var(--radius-sm);
  line-height: 1.6; overflow-wrap: break-word;
  border: 1px solid var(--border); background: var(--bg-3);
}
.ck-msg.from-you .ck-msg-body { background: var(--accent-soft); border-color: transparent; }

.ck-reply { border-top: 1px solid var(--border-2); padding-top: 18px; }

/* One bordered box holding the field, the emoji control, the counter and Send,
   the way a chat composer works. */
.ck-composer {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.ck-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ck-composer.has-error { border-color: var(--c-red); }
.ck-composer textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 13px 4px; font: inherit; line-height: 1.55;
  color: var(--text); background: transparent;
  border: 0; resize: vertical; min-height: 64px;
}
.ck-composer textarea:focus-visible { outline: none; }
.ck-composer-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 8px 10px;
}
.ck-composer-bar .ck-count { margin: 0; flex: 1 1 auto; text-align: left; }
.ck .btn.ck-send { padding: 8px 14px; }

.ck-emoji-btn {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  border-radius: 8px; color: var(--faint); cursor: pointer;
}
.ck-emoji-btn:hover { background: var(--bg-3); color: var(--accent); border-color: var(--border); }
.ck-emoji-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ck-emoji-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ck-emoji-panel {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; width: min(320px, 100%);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.ck-emoji-item {
  font-size: 1.15rem; line-height: 1;
  padding: 6px 0; background: transparent; border: 0;
  border-radius: 6px; cursor: pointer;
}
.ck-emoji-item:hover { background: var(--bg-3); }
.ck-emoji-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


/* Quieter than the reply box's Send, but still unmistakably buttons — with no
   border and no fill they read as tags and nobody clicks them. */
.ck-more { margin: 0 0 16px; }
.ck-more > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: .92rem; font-weight: 600; color: var(--muted); padding: 5px 0;
}
.ck-more > summary::-webkit-details-marker { display: none; }
.ck-more > summary:hover { color: var(--text); }
.ck-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-more-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.ck-more .ck-caret { margin-left: auto; width: 14px; height: 14px; transition: transform .15s ease; }
.ck-more[open] .ck-caret { transform: rotate(180deg); }
.ck-more .ck-tools { margin-top: 10px; }

.ck-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-tools > .btn.tool { flex: none; }
.ck-tools-safe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px; margin-left: auto; min-width: 0; }
.ck-tools-safe > form.ck-inline { display: block; }
.ck-tools-safe .btn.tool { width: 100%; justify-content: center; }
@media (max-width: 559px) {
  .ck-tools { display: grid; grid-template-columns: 1fr; }
  .ck-tools > .btn.tool { width: 100%; justify-content: center; }
  .ck-tools-safe { margin-left: 0; }
}
.ck .btn.tool {
  padding: 7px 12px; font-size: .82rem; font-weight: 600;
  border-color: var(--border); background: var(--bg-3); color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: transform .1s, border-color .15s, color .15s, background .15s;
}
.ck .btn.tool:hover {
  background: var(--bg-2); color: var(--text);
  border-color: var(--accent); transform: translateY(-1px);
}
.ck .btn.tool:active { transform: translateY(0); }
.ck .btn.tool.danger { color: var(--muted); }
.ck .btn.tool.danger:hover { color: var(--red-ink); border-color: var(--c-red); background: rgba(239, 68, 68, .08); }
.ck .btn.tool svg { width: 14px; height: 14px; }

.ck-how { color: var(--muted); }
.ck-how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ck-how li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.ck-how strong { color: var(--text); }

.ck-thread-ic {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.ck-thread-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* basis 0, not auto, so a long subject shrinks and shares the line with the
   icon instead of shoving it onto a row of its own. */
.ck-thread-title { flex: 1 1 0; min-width: 0; }

.ck-modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 11, 15, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.ck-modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 22px; max-width: 560px; width: 100%;
}
.ck-modal h2 { margin: 0 0 12px; font-size: 1.1rem; }
.ck-modal p { margin: 0; color: var(--muted); line-height: 1.55; }
/* One row on desktop, and never a button whose label wraps onto two lines —
   a wrapped label makes a confirm dialog look broken at the exact moment the
   visitor is deciding whether to destroy something. */
.ck-modal-acts {
  display: flex; flex-wrap: wrap; gap: 9px;
  justify-content: flex-end; margin-top: 20px;
}
.ck-modal-acts .btn { white-space: nowrap; }

/* The one action we would rather they took first, on a row of its own. */
.ck-modal .btn.ck-modal-feature {
  display: flex; width: 100%; justify-content: center;
  margin-top: 18px; padding: 11px 16px; font-size: .95rem;
}
.ck-modal .btn.ck-modal-feature svg { width: 17px; height: 17px; }
.ck-modal p + p { margin-top: 10px; }

.btn.danger { border-color: var(--c-red); color: var(--red-ink); }
.btn.danger:hover { background: rgba(239, 68, 68, .1); }
.btn.small { padding: 8px 12px; font-size: .87rem; }
.btn.is-done { color: var(--ok-ink); border-color: var(--ok); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (min-width: 620px) {
  .ck-row { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .ck-challenge {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .ck-challenge .ck-hint { grid-column: 1 / -1; }
  .ck-challenge.has-error .ck-err { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .ck-card, .ck-thread { padding: 16px; }
  .ck-block { padding: 0; }
  .ck-block > summary { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
  .ck-sum-hint { flex: 1 1 100%; white-space: normal; order: 3; }
  .ck-caret { margin-left: auto; }
  .ck-block-body { padding: 16px; }

  .ck-tools .btn.tool { justify-content: center; }

  .ck-modal-acts { flex-direction: column; align-items: stretch; }
  .ck-modal-acts .btn { width: 100%; justify-content: center; }
  .ck-msg { max-width: 100%; }
  .ck-keyacts .btn, .ck-actions .btn, .ck-thread-foot .btn { width: 100%; justify-content: center; }
  .ck-thread-foot form { width: 100%; }
  .ck-item-btn { padding: 12px 0; gap: 8px; }

  /* At phone widths the status pill cannot share a line with a truncated
     subject, a chevron and the remove button without pushing the row past the
     viewport. Move it under the subject instead of shrinking everything. */
  .ck-item-btn .ck-status { font-size: .74rem; padding: 4px 9px; }
}

@media print {
  .site-header, .site-footer, .ck-keyacts, .ck-sent-foot, .ct-badge { display: none !important; }
  .ck-card { border: none; box-shadow: none; padding: 0; }
  .ck-key { border: 1px solid #000; }
}

/* webk · v0.1.0 */
