/* comms mockup styles: additions on top of govkit.css tokens only.
   No animation, no transitions (pattern 4 · NOTHING MOVES). */

/* ---- demo chrome: everything in this strip is the mockup, not the product -- */
.cx-demo {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.35rem 1.25rem;
  background: var(--gk-warn-soft);
  border-bottom: 1px solid var(--gk-border);
  font-size: 0.8rem;
  color: var(--gk-warn);
}
.cx-demo a { color: var(--gk-warn); text-decoration: underline; }
.cx-demo strong { font-weight: 700; }
.cx-demo .cx-here { text-decoration: none; color: var(--gk-ink); }

/* ---- page head ---------------------------------------------------------- */
.cx-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.cx-head h1 { margin-bottom: 0; }
.cx-count { color: var(--gk-muted); font-size: 0.9rem; }

/* the quiet line about what already went out */
.cx-last { color: var(--gk-muted); font-size: 0.85rem; margin: 0.15rem 0 1.1rem; }
.cx-last a { color: var(--gk-ink-2); }

/* ---- audience switcher --------------------------------------------------- */
.cx-aud { display: flex; gap: 0.3rem; flex-wrap: wrap; margin: 0 0 0.7rem; }
.cx-aud button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gk-ink-2);
}
.cx-aud button:hover { background: var(--gk-neutral-soft); }
.cx-aud button[aria-pressed="true"] {
  background: var(--gk-surface);
  border-color: var(--gk-border-strong);
  color: var(--gk-ink);
}
.cx-dot {
  width: 9px; height: 9px;
  border-radius: var(--gk-leaf-radius);
  display: inline-block;
  flex: none;
}
.cx-aud small { color: var(--gk-muted); }
.cx-aud .cx-done { color: var(--gk-ok); }

/* ---- the draft ----------------------------------------------------------- */
.cx-draft { margin: 0 0 1.2rem; }
.cx-subject {
  font-family: var(--gk-font-head);
  font-size: 1.05rem;
  font-weight: 600;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.1rem 0;
  width: 100%;
  background: transparent;
  color: var(--gk-ink);
}
.cx-subject:hover, .cx-subject:focus { border-bottom-color: var(--gk-border-strong); outline: none; }

.cx-body {
  font-size: 1rem;
  line-height: 1.62;
  padding: 0.5rem 0 0.2rem;
  outline: none;
  max-width: 42rem;
}
.cx-body p { margin: 0 0 0.75rem; }
.cx-body:focus-visible { outline: none; }

/* AI-written text carries a mark until a person edits it */
.cx-ai { border-bottom: 1px dotted var(--gk-cat-4); }
.cx-legend { color: var(--gk-muted); font-size: 0.8rem; margin: 0.2rem 0 0.9rem; }
.cx-legend i { border-bottom: 1px dotted var(--gk-cat-4); font-style: normal; }

/* provenance: the facts this was assembled from */
.cx-from {
  font-size: 0.83rem;
  color: var(--gk-muted);
  margin: 0.6rem 0 0.9rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gk-border);
}
.cx-from a { color: var(--gk-ink-2); }
.cx-from span + span::before { content: " · "; color: var(--gk-border-strong); }

/* ---- the one line you can say something in ------------------------------- */
.cx-ask { display: flex; gap: 0.4rem; align-items: center; max-width: 42rem; margin: 0 0 0.9rem; }
.cx-ask input {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gk-border-strong);
  border-radius: var(--gk-radius);
  background: var(--gk-surface);
  color: var(--gk-ink);
}
.cx-ask input::placeholder { color: var(--gk-muted); }
.cx-mic { padding: 0.35rem 0.5rem; line-height: 1; }
.cx-mic.is-on { border-color: var(--gk-cat-1); color: var(--gk-cat-1); }
.cx-undo { font-size: 0.82rem; color: var(--gk-muted); }

/* ---- actions ------------------------------------------------------------- */
.cx-acts { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.cx-acts .cx-spacer { flex: 1; }
.cx-later { position: relative; display: inline-block; }
.cx-later > summary { list-style: none; cursor: pointer; }
.cx-later > summary::-webkit-details-marker { display: none; }
.cx-later-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  z-index: 5;
  min-width: 11rem;
  background: var(--gk-surface);
  border: 1px solid var(--gk-border);
  border-radius: var(--gk-radius);
  box-shadow: 0 6px 20px rgba(38, 34, 28, 0.1);
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
}
.cx-later-pop button {
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  color: var(--gk-ink-2);
}
.cx-later-pop button:hover { background: var(--gk-neutral-soft); color: var(--gk-ink); }

/* ---- rows: used by the stack tail, the week, the desk -------------------- */
.cx-rows { list-style: none; margin: 0; padding: 0; }
.cx-rows li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--gk-border);
}
.cx-rows li:first-child { border-top: 0; }
.cx-rows .cx-t { color: var(--gk-ink); font-weight: 500; flex: none; }
.cx-rows .cx-p {
  color: var(--gk-ink-2);
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-rows .cx-w { margin-left: auto; color: var(--gk-muted); font-size: 0.82rem; flex: none; }
.cx-rows button.cx-open {
  border: 0; background: transparent; padding: 0; font: inherit;
  color: var(--gk-accent); text-align: left;
}
.cx-rows button.cx-open:hover { text-decoration: underline; background: transparent; }
.cx-gone { color: var(--gk-muted); }
.cx-gone .cx-t { color: var(--gk-muted); font-weight: 400; }

/* ---- the week ------------------------------------------------------------ */
.cx-day { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--gk-border); }
.cx-day:first-of-type { border-top: 0; }
.cx-day > h3 { margin: 0; font-size: 0.85rem; font-family: var(--gk-font-body); color: var(--gk-muted); font-weight: 500; padding-top: 0.15rem; }
.cx-day.is-today > h3 { color: var(--gk-ink); font-weight: 700; }
.cx-day .cx-rows li { border-top: 0; padding: 0.2rem 0; }
.cx-empty { color: var(--gk-border-strong); font-size: 0.85rem; padding: 0.2rem 0; }

/* ---- the desk ------------------------------------------------------------ */
.cx-group { margin: 0 0 1.4rem; }
.cx-group > h2 { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.15rem; }
.cx-group > h2 small { font-family: var(--gk-font-body); font-weight: 400; font-size: 0.8rem; color: var(--gk-muted); }
.cx-item { border-top: 1px solid var(--gk-border); padding: 0.7rem 0 0.2rem; }
.cx-item .cx-body { font-size: 0.95rem; }
.cx-tickrow { display: flex; align-items: baseline; gap: 0.5rem; }
.cx-tickrow .gk-checkbox { flex: none; }
.cx-bar {
  position: sticky;
  bottom: 0;
  background: var(--gk-bg);
  border-top: 1px solid var(--gk-border-strong);
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cx-bar .gk-muted { margin-left: auto; }

/* ---- the sheet: a draft opened with room (pattern 9 in UX_PRINCIPLES) ----- */
.cx-sheet[hidden] { display: none; }
.cx-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--gk-bg);
  overflow: auto;
}
.cx-sheet-in { max-width: var(--gk-measure); margin: 0 auto; padding: 1.1rem 1.25rem 3rem; }
.cx-sheet-top { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.6rem; }
.cx-sheet-top .cx-esc { margin-left: auto; color: var(--gk-muted); font-size: 0.82rem; }

.cx-sent-note { color: var(--gk-ok); font-size: 0.85rem; }
