/* WEEK PLAN AND TODAY (founder's picks 20 Oct 2026: Today board 1A, plan card 2A with 2C, off-plan card 3A).
   The app's own tokens; colour only on figures, dots and icons, never a side edge; no pale green fills. */

.wp-card {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow1);
  margin: 14px 16px 0;
  animation: rise 0.6s var(--spring) both;
}
.msg-card .wp-card,
.wp-in-chat {
  margin: 0;
}
.wp-th {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wp-th > div:first-child {
  flex: 1;
  min-width: 0;
}
.wp-tt {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.wp-ts {
  color: var(--ink2);
  font-size: 0.82rem;
  margin-top: 2px;
}
.wp-kind {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink2);
}
.wp-kind .wp-r {
  margin-left: auto;
  font-weight: 500;
  color: var(--ink3);
}
.wp-warn {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--amber);
}
.wp-big-t {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  line-height: 1.25;
}

/* the small ring: done of planned */
.wp-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.wp-ring svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.wp-ring circle {
  fill: none;
  stroke-width: 5;
}
.wp-ring .trk {
  stroke: var(--ringTrack);
}
.wp-ring .val {
  stroke: var(--acc);
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s var(--ease);
}
.wp-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wp-ring-sm,
.wp-ring-sm svg {
  width: 26px;
  height: 26px;
}
.wp-ring-sm span {
  font-size: 0;
}

/* Today lines */
.wp-pl {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.wp-th + .wp-pl,
.wp-th + .wp-stale + .wp-pl {
  margin-top: 6px;
  border-top: 0;
}
.wp-pl-t {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}
.wp-pl-t b {
  font-weight: 700;
  margin-right: 4px;
}
.wp-pl-s {
  font-size: 0.8rem;
  color: var(--ink2);
  margin-top: 3px;
}
.wp-pl-f {
  text-align: right;
  line-height: 1.15;
}
.wp-pl-f b {
  display: block;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.wp-pl-f small {
  font-size: 0.72rem;
  color: var(--ink3);
  white-space: nowrap;
}
.wp-meter {
  height: 4px;
  border-radius: 4px;
  background: var(--ringTrack);
  margin-top: 8px;
  overflow: hidden;
}
.wp-meter i {
  display: block;
  height: 100%;
  background: var(--acc);
  border-radius: 4px;
}

/* status dots */
.wp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 3px;
  flex: none;
  position: relative;
}
.wp-d-planned,
.wp-d-not_done {
  border: 2px solid var(--ink3);
}
.wp-d-started {
  background: var(--amber);
}
.wp-d-reported {
  border: 2px solid var(--acc);
}
.wp-d-reported::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid var(--acc);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wp-d-done {
  background: var(--forest);
}
.wp-d-done::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 3px;
  height: 6px;
  border: solid var(--lime);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wp-d-sm {
  width: 8px;
  height: 8px;
  margin: 0;
}
.wp-amber {
  background: var(--amber);
}
.wp-good {
  background: var(--forest);
}
:root[data-theme="dark"] .wp-good {
  background: var(--lime);
}

.wp-off {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.wp-off .wp-warn {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.wp-tag {
  font-size: 0.74rem;
  color: var(--ink2);
  background: var(--bg2);
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
  align-self: center;
}

/* the store day */
.wp-st {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.wp-th + .wp-st {
  margin-top: 6px;
  border-top: 0;
}
.wp-st-a {
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 0;
}
.wp-st-a small {
  display: block;
  font-weight: 400;
  color: var(--ink2);
  font-size: 0.78rem;
  margin-top: 2px;
}
.wp-st-b {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}
.wp-st-b small {
  font-weight: 400;
  color: var(--ink3);
  font-size: 0.74rem;
}

/* calm states: loading, no signal, no plan */
.wp-calm {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wp-calm-t {
  flex: 1;
  min-width: 0;
}
.wp-calm .wp-ts {
  margin-top: 3px;
}
.wp-wait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid var(--ringTrack);
  border-top-color: var(--acc);
  animation: wp-spin 1.1s linear infinite;
  flex: none;
}
@keyframes wp-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-wait {
    animation: none;
  }
}
.wp-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.wp-way {
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  border-radius: 99px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.wp-stale {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink2);
}
.wp-stale .wp-way {
  padding: 5px 11px;
  font-size: 0.78rem;
  margin-left: auto;
}

/* the week plan card */
.wp-pc {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.wp-th + .wp-pc {
  margin-top: 8px;
  border-top: 0;
}
.wp-pc-p {
  font-weight: 700;
  font-size: 0.86rem;
  padding-top: 1px;
}
.wp-pc-t {
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
}
.wp-pc-s {
  font-size: 0.77rem;
  color: var(--ink2);
  margin-top: 3px;
  line-height: 1.45;
}
.wp-pc-s svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 3px;
}
.wp-pc-s .wp-nb {
  white-space: nowrap;
}
.wp-pc-s .wp-q {
  font-weight: 600;
  color: var(--ink);
}
.wp-pc-f {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.wp-pc-f small {
  display: block;
  font-weight: 400;
  color: var(--ink3);
  font-size: 0.68rem;
}
.wp-pc-none .wp-pc-t {
  color: var(--ink3);
  font-weight: 400;
}
.wp-verdict {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.wp-verdict .wp-dot {
  margin-top: 6px;
}
.wp-card .hold,
.wp-flag .hold {
  flex: none;
  width: 100%;
  margin-top: 14px;
}
.wp-flag > * {
  flex-shrink: 0;
}
.wp-held {
  position: relative;
}
.wp-held[data-dim] .hold {
  opacity: 0.4;
  pointer-events: none;
}
.wp-badge {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--amber);
  color: #2a1a00;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 7px;
}
.wp-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.wp-mini span {
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.wp-mini svg {
  width: 12px;
  height: 12px;
}

/* a question Remy could not read */
.wp-qcard {
  margin-bottom: 10px;
}
.wp-opts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.wp-opt {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}
.wp-opt[data-on] {
  background: var(--card);
  box-shadow: var(--shadow2);
}
.wp-opt:disabled {
  cursor: default;
}
.wp-said {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink2);
}

/* one line once sent (the compact rule) */
.wp-one {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow1);
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.wp-one > svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--acc);
}
.wp-one .wp-warn {
  color: var(--amber);
}
.wp-one-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wp-one .wp-r {
  color: var(--ink3);
  font-size: 0.76rem;
  white-space: nowrap;
}
.wp-open {
  margin-top: 8px;
}

/* the photo slot and a photo */
.wp-slot {
  margin-top: 12px;
  height: 74px;
  border-radius: 16px;
  border: 1.5px dashed var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink2);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.wp-slot svg {
  width: 20px;
  height: 20px;
}
.wp-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}
.wp-thumbs img {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.wp-thumbs .wp-slot {
  margin: 0;
  height: 48px;
  width: 64px;
  border-radius: 10px;
}
.wp-photo {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  background: var(--bg2);
}
.wp-photo img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.wp-stamp {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
}

/* calm words for the foreman, copy ready */
.wp-calmwords {
  margin-top: 12px;
}
.wp-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink2);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.wp-copy svg {
  width: 15px;
  height: 15px;
}

/* the plan beside what is happening */
.wp-cmp {
  margin-top: 12px;
  border-radius: 16px;
  background: var(--bg2);
  padding: 4px 12px;
}
.wp-cmp > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  padding: 9px 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
.wp-cmp > div + div {
  border-top: 1px solid var(--line);
}
.wp-cmp-k {
  color: var(--ink2);
  font-weight: 600;
  font-size: 0.8rem;
  padding-top: 1px;
}
.wp-flag {
  min-height: 0;
}
.wp-soft2 {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.wp-soft {
  flex: 1;
  height: 44px;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--ink);
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.wp-err {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink2);
}
.wp-type {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  border-radius: 99px;
  padding: 11px 16px;
  font: inherit;
  font-size: 1rem;
}
.wp-opt-go {
  flex: none;
  padding: 11px 18px;
}
