/* Pinehold Interactive Playgrounds — Mirrors Pinehold_Rework_Mockup & FocusLock.App
 * Canonical tokens only; CSS logical properties for EN/AR RTL parity; zero glow/backdrop slop.
 */

.pg-root {
  color: var(--text, #F6EFE6);
  font-family: var(--sans, 'Figtree', 'IBM Plex Sans Arabic', system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  min-width: 0;
}

.pg-root *,
.pg-root *::before,
.pg-root *::after {
  box-sizing: border-box;
}

.pg-root button,
.pg-root input {
  font-family: inherit;
}

.pg-root :focus-visible {
  outline: 2px solid var(--accent, #F0A36A);
  outline-offset: 2px;
}

/* Shared Moon Crest (radial dissolve directly onto canvas, zero enclosing card) */
.pg-moon-crest {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0) 74%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0) 74%);
  flex-shrink: 0;
}

/* Shared SVG icon baseline */
.pg-ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

[dir="rtl"] .pg-flip-rtl {
  transform: scaleX(-1);
}

/* Shared Buttons (flat canonical fills, zero glow halos) */
.pg-btn-primary {
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #F0A36A);
  color: var(--on-accent, #140F1D);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 140ms ease, transform 120ms ease;
}

.pg-btn-primary:hover {
  opacity: 0.92;
}

.pg-btn-primary:active {
  transform: scale(0.985);
}

.pg-btn-secondary {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 999px;
  background: transparent;
  color: var(--text, #F6EFE6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.pg-btn-secondary:hover {
  border-color: var(--accent, #F0A36A);
  color: var(--accent, #F0A36A);
}

/* Shared Underlined Tabs */
.pg-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pg-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pg-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
  margin-bottom: -1px;
  color: var(--muted, #8E87A3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  transition: color 140ms ease, border-color 140ms ease;
}

.pg-tab:hover {
  color: var(--text, #F6EFE6);
}

.pg-tab.active {
  color: var(--text, #F6EFE6);
  border-bottom-color: var(--accent, #F0A36A);
}

.pg-sync-badge {
  font-size: 12.5px;
  color: var(--muted, #8E87A3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg-sync-badge.live {
  color: var(--success, #79C9A2);
}

.pg-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==================== PLAYGROUND 1: SANCTUARY + BYPASS PROBE ==================== */
.pg-sanctuary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.pg-device-stage {
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Android 390px 1px hairline canvas with 10px camera dot */
.pg-phone {
  width: 100%;
  max-width: 390px;
  background: var(--bg, #0A0915);
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 180ms ease;
}

.pg-phone.dimmed {
  opacity: 0.14;
}

.pg-phone-status {
  height: 30px;
  padding: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec, #B8B0C8);
}

.pg-camera-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--backdrop, #06050D);
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-phone-body {
  padding: 10px 20px 20px;
}

.pg-app-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}

.pg-wordmark {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--text, #F6EFE6);
}

.pg-meta-quiet {
  font-size: 12px;
  color: var(--muted, #8E87A3);
}

.pg-meta-quiet.accent {
  color: var(--accent, #F0A36A);
}

.pg-meta-quiet.success {
  color: var(--success, #79C9A2);
}

.pg-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0 12px;
}

.pg-hero-stage .pg-moon-crest {
  width: 128px;
  height: 128px;
  margin-bottom: 4px;
}

.pg-app-title {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text, #F6EFE6);
  margin: 0;
}

/* Hairline Duration Band */
.pg-duration-band {
  padding: 12px 0;
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  text-align: center;
}

.pg-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.pg-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  background: transparent;
  color: var(--text, #F6EFE6);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, color 140ms ease;
}

.pg-step-btn:hover {
  border-color: var(--accent, #F0A36A);
  color: var(--accent, #F0A36A);
}

.pg-big-num {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 44px;
  line-height: 1;
  color: var(--text, #F6EFE6);
}

.pg-unit {
  font-size: 13.5px;
  color: var(--accent, #F0A36A);
  font-weight: 500;
  margin-inline-start: 4px;
}

.pg-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.pg-preset {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-sec, #B8B0C8);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pg-preset:hover {
  color: var(--text, #F6EFE6);
}

.pg-preset.selected {
  background: var(--surface, #12101F);
  border-color: var(--accent, #F0A36A);
  color: var(--accent, #F0A36A);
}

/* 34px Circular Stones Row (zero glow halos) */
.pg-stones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-stone {
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.pg-stone.selected {
  background: var(--surface, #12101F);
  border-color: var(--border-strong, rgba(246, 239, 230, 0.20));
}

.pg-stone img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 140ms ease;
}

.pg-stone.selected img {
  opacity: 1;
}

.pg-stone-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #F6EFE6);
}

.pg-stone.selected .pg-stone-name {
  color: var(--accent, #F0A36A);
}

.pg-stone-desc {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted, #8E87A3);
}

/* Hairline Rows */
.pg-hairlines {
  display: flex;
  flex-direction: column;
}

.pg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  min-height: 46px;
}

.pg-row-btn {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  padding: 11px 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  cursor: pointer;
  color: inherit;
  transition: opacity 140ms ease;
}

.pg-row-btn:hover {
  opacity: 0.85;
}

.pg-row-text {
  flex: 1;
  min-width: 0;
}

.pg-row-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text, #F6EFE6);
}

.pg-row-sub {
  font-size: 12px;
  color: var(--muted, #8E87A3);
  margin-top: 2px;
}

.pg-vow-input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px 0 0;
  color: var(--text-sec, #B8B0C8);
  font-size: 13px;
  outline: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}

.pg-vow-input:focus {
  color: var(--text, #F6EFE6);
  border-bottom-color: var(--accent, #F0A36A);
}

.pg-row-tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted, #8E87A3);
  flex-shrink: 0;
}

/* Week Moons Strip */
.pg-week-strip {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-week-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted, #8E87A3);
  margin-bottom: 8px;
}

.pg-moons-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.pg-moon-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted, #8E87A3);
}

.pg-moon-svg {
  width: 22px;
  height: 22px;
}

/* Active Holding Screen */
.pg-holding-hero {
  text-align: center;
  padding: 12px 0 14px;
}

.pg-holding-hero .pg-moon-crest {
  width: 132px;
  height: 132px;
  margin: 0 auto 6px;
}

.pg-clock-display {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 50px;
  line-height: 1;
  color: var(--text, #F6EFE6);
  margin: 6px 0;
  transition: color 180ms ease;
}

.pg-clock-display.snap {
  color: var(--accent, #F0A36A);
}

.pg-vow-quote {
  font-size: 13.5px;
  color: var(--text-sec, #B8B0C8);
}

/* Windows PC Flat Hairline Window */
.pg-pc {
  width: 100%;
  background: var(--bg, #0A0915);
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 180ms ease;
}

.pg-pc.dimmed {
  opacity: 0.14;
}

.pg-pc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-pc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pg-pc-tab {
  font-size: 13.5px;
  color: var(--text, #F6EFE6);
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 2px solid var(--accent, #F0A36A);
}

.pg-pc-body {
  padding: 22px;
}

.pg-pc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.pg-pc-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pg-pc-art .pg-moon-crest {
  width: 176px;
  height: 176px;
}

.pg-pc-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

/* Raycast-style Bypass Probe Column */
.pg-probe-panel {
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  padding-top: 14px;
}

.pg-probe-title {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text, #F6EFE6);
  margin: 0 0 4px;
}

.pg-probe-sub {
  font-size: 14px;
  color: var(--text-sec, #B8B0C8);
  margin: 0 0 14px;
}

.pg-probe-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  color: var(--text, #F6EFE6);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}

.pg-probe-btn:hover {
  color: var(--accent, #F0A36A);
  background: var(--accent-soft, rgba(240, 163, 106, 0.12));
}

.pg-probe-btn.active {
  color: var(--accent, #F0A36A);
}

.pg-probe-verdict {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  border-inline-start: 2px solid var(--accent, #F0A36A);
  background: var(--surface, #12101F);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-sec, #B8B0C8);
}

.pg-probe-verdict strong {
  color: var(--text, #F6EFE6);
  font-weight: 600;
}

.pg-pw-inline {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pg-pw-inline input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  background: var(--bg, #0A0915);
  color: var(--text, #F6EFE6);
  font-size: 13.5px;
}

/* ==================== PLAYGROUND 2: KEEPER & SAFETUBE ==================== */
.pg-keeper-frame {
  background: var(--bg, #0A0915);
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 16px;
  padding: 24px;
}

.pg-keeper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pg-keeper-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pg-keeper-id .pg-moon-crest {
  width: 56px;
  height: 56px;
}

.pg-chip-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  background: transparent;
  color: var(--text-sec, #B8B0C8);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.pg-chip-action:hover,
.pg-chip-action.active {
  border-color: var(--accent, #F0A36A);
  color: var(--accent, #F0A36A);
}

.pg-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  background: var(--surface, #12101F);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  margin-bottom: 12px;
}

[dir="rtl"] .pg-search-form {
  padding: 4px 16px 4px 6px;
}

.pg-search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text, #F6EFE6);
  font-size: 14px;
  min-height: 36px;
  outline: none;
}

.pg-search-go {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent, #F0A36A);
  color: var(--on-accent, #140F1D);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pg-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pg-prompt-chip {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  background: var(--surface, #12101F);
  color: var(--text-sec, #B8B0C8);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.pg-prompt-chip:hover,
.pg-prompt-chip.active {
  border-color: var(--accent, #F0A36A);
  color: var(--text, #F6EFE6);
}

.pg-ctx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  padding: 10px 0;
  color: var(--accent, #F0A36A);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: start;
}

/* Quiet Color-Tinted Result States (zero loud status pills) */
.pg-results {
  display: flex;
  flex-direction: column;
}

.pg-result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  border-inline-start: 2px solid transparent;
  cursor: pointer;
  text-align: start;
  width: 100%;
  background: transparent;
  border-top: 0;
  border-inline-end: 0;
  color: inherit;
  transition: background-color 140ms ease;
}

.pg-result-row.state-allowed {
  background: var(--surface, #12101F);
  background: color-mix(in srgb, var(--success, #79C9A2) 7%, transparent);
  border-inline-start-color: var(--success, #79C9A2);
}

.pg-result-row.state-check {
  background: var(--accent-soft, rgba(240, 163, 106, 0.12));
  border-inline-start-color: var(--accent, #F0A36A);
}

.pg-result-row.state-rejected {
  opacity: 0.56;
  border-inline-start-color: var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-thumb {
  width: 112px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--surface, #12101F);
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-thumb img.blurred {
  filter: blur(8px);
  transform: scale(1.08);
}

.pg-thumb img.veiled {
  filter: grayscale(1) brightness(0.45);
}

.pg-dur {
  position: absolute;
  inset-inline-end: 6px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--backdrop, #06050D);
  color: var(--text, #F6EFE6);
  font-size: 11px;
}

.pg-safetube-player {
  margin-top: 14px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 12px;
  overflow: hidden;
  background: var(--backdrop, #06050D);
}

.pg-safetube-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: var(--surface, #12101F);
}

.pg-safetube-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  font-size: 12.5px;
  color: var(--text-sec, #B8B0C8);
}

.pg-ai-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  border-radius: 10px;
  background: var(--surface, #12101F);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-sec, #B8B0C8);
}

.pg-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pg-img-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  background: var(--surface, #12101F);
}

.pg-img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-save-tag {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg, #0A0915);
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  color: var(--text, #F6EFE6);
  font-size: 11px;
}

/* ==================== PLAYGROUND 3: QUIET HOURS RHYTHM ==================== */
.pg-quiet-frame {
  background: var(--bg, #0A0915);
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  border-radius: 16px;
  padding: 24px;
}

.pg-quiet-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-quiet-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-quiet-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pg-quiet-head .pg-moon-crest {
  width: 64px;
  height: 64px;
}

.pg-quiet-col.dimmed {
  opacity: 0.5;
}

.pg-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong, rgba(246, 239, 230, 0.20));
  background: var(--surface, #12101F);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.pg-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted, #8E87A3);
  transition: transform 140ms ease, background-color 140ms ease;
}

.pg-switch.on {
  background: var(--accent-soft, rgba(240, 163, 106, 0.12));
  border-color: var(--accent, #F0A36A);
}

.pg-switch.on::after {
  transform: translateX(18px);
  background: var(--accent, #F0A36A);
}

[dir="rtl"] .pg-switch.on::after {
  transform: translateX(-18px);
}

.pg-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-day-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--divider, rgba(246, 239, 230, 0.10));
  background: transparent;
  color: var(--muted, #8E87A3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pg-day-dot.on {
  background: var(--accent, #F0A36A);
  border-color: var(--accent, #F0A36A);
  color: var(--on-accent, #140F1D);
}

/* Flat 24h Scrubber */
.pg-scrubber-wrap {
  padding-top: 20px;
}

.pg-scrubber-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pg-scrubber-time {
  font-family: var(--serif, 'Instrument Serif', Georgia, serif);
  font-size: 40px;
  line-height: 1;
  color: var(--text, #F6EFE6);
}

.pg-scrubber-state {
  font-size: 14px;
  color: var(--text-sec, #B8B0C8);
  min-height: 1.5em;
  margin-bottom: 16px;
}

.pg-scrubber-track-box {
  direction: ltr;
}

.pg-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.pg-track-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--divider, rgba(246, 239, 230, 0.10));
}

.pg-mark {
  position: absolute;
  top: -3px;
  height: 8px;
  background: var(--accent, #F0A36A);
  opacity: 0.45;
  border-radius: 2px;
  pointer-events: none;
}

.pg-mark.bed {
  top: -2px;
  height: 6px;
  background: var(--text-sec, #B8B0C8);
  opacity: 0.25;
}

.pg-thumb-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #F0A36A);
  border: 2px solid var(--bg, #0A0915);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pg-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted, #8E87A3);
  margin-top: 2px;
}

/* ==================== RESPONSIVE & REDUCED MOTION ==================== */
@media (max-width: 860px) {
  .pg-sanctuary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-pc-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-quiet-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .pg-keeper-frame,
  .pg-quiet-frame,
  .pg-pc-body {
    padding: 16px;
  }
  .pg-thumb {
    width: 88px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-root .pg-phone,
  .pg-root .pg-pc,
  .pg-root .pg-switch,
  .pg-root .pg-switch::after,
  .pg-root .pg-probe-btn,
  .pg-root .pg-btn-primary,
  .pg-root .pg-btn-secondary,
  .pg-root .pg-tab,
  .pg-root .pg-preset,
  .pg-root .pg-stone,
  .pg-root .pg-stone img,
  .pg-root .pg-clock-display {
    transition: none;
    animation: none;
  }
}
