/* Prayer Corner card on the Shift Pass. */
.pc-card {
  --pc-bg: #f4efff;
  --pc-line: #d9cff5;
  --pc-accent: #6b4fd8;
  --pc-soft: #e9e1ff;
  --pc-calm: #2f8f6b;
  --pc-calm-soft: #e3f6ec;
  margin-bottom: 22px; padding: 16px;
  border: 1px solid var(--pc-line); border-radius: 20px;
  background: var(--pc-bg); color: var(--navy); box-shadow: 0 8px 20px rgba(107, 79, 216, 0.1);
}
.pc-card[hidden] { display: none; }

.pc-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pc-accent); font-size: 23px; }
.pc-icon.is-calm { background: var(--pc-calm); }
.pc-head h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 900; }
.pc-head p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }
.pc-fold {
  align-self: start; min-height: 36px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font: 700 12.5px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px;
}

.pc-recap {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 14px 0 2px; padding: 13px 14px;
  border-radius: 14px; background: linear-gradient(135deg, #6b4fd8, #8a6cf0); color: #fff;
}
.pc-recap-num { font-size: 30px; font-weight: 900; line-height: 1; }
.pc-recap b { display: block; font-size: 15px; line-height: 1.3; }
.pc-recap small { display: block; margin-top: 2px; font-size: 12.5px; opacity: 0.92; }

.pc-prompt { margin: 14px 0 2px; padding: 12px 14px; border: 1px solid var(--pc-line); border-left: 5px solid var(--pc-accent); border-radius: 14px; background: #fff; }
.pc-prompt small { display: block; margin-bottom: 4px; font: 700 11px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pc-accent); }
.pc-prompt b { display: block; font-size: 17px; line-height: 1.35; }

.pc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.pc-tap {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 10px;
  border: 2px solid var(--navy); border-radius: 14px; background: var(--pc-accent); color: #fff;
  font: 900 16px/1.15 Inter, ui-sans-serif, system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  box-shadow: 0 4px 0 var(--navy); touch-action: manipulation;
}
.pc-tap.is-calm { background: var(--pc-calm); }
.pc-tap:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.pc-tap:disabled { opacity: 0.6; cursor: wait; }

.pc-done { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #9fd8b9; border-radius: 14px; background: var(--pc-calm-soft); color: #145c3d; font-weight: 800; font-size: 15px; }
.pc-done.is-pray { background: var(--pc-soft); border-color: #c5b6f2; color: #3f2c94; }
.pc-tick { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pc-calm); color: #fff; font-size: 15px; }
.pc-done.is-pray .pc-tick { background: var(--pc-accent); }
.pc-done small { display: block; font-weight: 600; font-size: 12.5px; opacity: 0.85; }
.pc-undo { flex: none; margin-left: auto; min-height: 36px; white-space: nowrap; padding: 0 2px; border: 0; background: none; color: inherit; font: 700 12.5px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

.pc-week { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 2px 0; font-size: 13px; color: var(--text-muted); }
.pc-dots { display: flex; gap: 4px; }
.pc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd6f3; }
.pc-dots i.on { background: var(--pc-accent); }
.pc-week b { color: var(--navy); }
.pc-week > span:nth-child(2) { white-space: nowrap; }
.pc-week em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #7d8496; white-space: nowrap; }

.pc-sec {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 16px 0 8px; padding: 4px 2px; border: 0; background: none; text-align: left;
  font: 700 11.5px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pc-accent);
}
button.pc-sec { cursor: pointer; min-height: 36px; }
.pc-sec .pc-wk { color: var(--navy); }
.pc-sec .pc-chev { font: 800 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--pc-accent); }

.pc-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-who { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 4px; border: 1px solid var(--pc-line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; }
.pc-who.is-me { border-color: var(--pc-accent); background: var(--pc-soft); }
.pc-who.is-me.is-calm { border-color: var(--pc-calm); background: var(--pc-calm-soft); }
.pc-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 900; }
.pc-c0 { background: #e76f51; } .pc-c1 { background: #2e55ff; } .pc-c2 { background: #c08a1e; }
.pc-c3 { background: #2f8f6b; } .pc-c4 { background: #6b4fd8; } .pc-c5 { background: #c2477a; }
.pc-empty { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.pc-legend { margin: 8px 2px 0; font-size: 12px; color: var(--text-muted); }

.pc-bars { margin-top: 12px; padding: 8px 10px 6px; border: 1px solid var(--pc-line); border-radius: 12px; background: #fff; }
.pc-bars svg { display: block; width: 100%; height: 60px; }
.pc-bars .bar { fill: var(--pc-accent); opacity: 0.85; }
.pc-bars .bar.is-today { opacity: 1; stroke: #fff; stroke-width: 1.5; }
.pc-bars .bar.is-future { fill: #ddd6f3; opacity: 1; }
.pc-bars text { fill: var(--text-muted); font: 700 9px Inter, ui-sans-serif, system-ui, sans-serif; }
.pc-bars text.num { fill: var(--navy); font-size: 9.5px; }

/* Slim strip after tapping */
.pc-card.is-slim { padding: 10px 12px; border-radius: 16px; }
.pc-slim { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pc-slim .pc-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
.pc-slim b { display: block; font-size: 14.5px; }
.pc-slim small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-muted); }
.pc-faces { display: flex; padding-left: 6px; }
.pc-faces .pc-av { margin-left: -6px; border: 2px solid var(--pc-bg); }

.pc-error { margin: 8px 2px 0; color: #b23a2a; font-size: 13.5px; font-weight: 700; }
.pc-announce { margin: 6px 2px 0; color: #145c3d; font-size: 13px; font-weight: 700; }
.pc-announce:empty { display: none; }
.pc-card button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
