/* Pulse — Home screen. Everything is scoped to #employee-section. */

#main-app #employee-section.app-card-home {
  --ph-ink: var(--ui-ink, #0b1a12);
  --ph-muted: var(--ui-muted, #5b6b63);
  --ph-line: var(--ui-line, #e3e8e5);
  --ph-soft: var(--ui-soft, #f3f6f4);
  --ph-green: var(--ui-green, #16a34a);
  --ph-green-deep: var(--ui-green-deep, #0f7a37);
  --ph-amber: #f59e0b;
  --ph-amber-ink: #92400e;
  --ph-card-shadow: 0 1px 2px rgba(11, 26, 18, 0.05), 0 12px 32px -22px rgba(11, 26, 18, 0.35);
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ph-ink);
}

#main-app #employee-section .ph {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
}

#main-app #employee-section .ph p,
#main-app #employee-section .ph h2,
#main-app #employee-section .ph h3,
#main-app #employee-section .ph h4 {
  margin: 0;
}

/* ---------- Buttons ---------- */

#main-app #employee-section .ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

#main-app #employee-section .ph-btn:active {
  transform: scale(0.97);
}

#main-app #employee-section .ph-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

#main-app #employee-section .ph-btn:focus-visible,
#main-app #employee-section .ph-icon-btn:focus-visible,
#main-app #employee-section .ph-chip:focus-visible,
#main-app #employee-section .ph-more:focus-visible,
#main-app #employee-section .ph-pager-btn:focus-visible {
  outline: 2px solid var(--ph-green);
  outline-offset: 2px;
}

#main-app #employee-section .ph-btn--primary,
#main-app #employee-section .ph-btn--claim {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px -10px rgba(22, 163, 74, 0.75);
}

#main-app #employee-section .ph-btn--primary:hover,
#main-app #employee-section .ph-btn--claim:hover {
  background: linear-gradient(180deg, #16a34a 0%, #166534 100%);
}

#main-app #employee-section .ph-btn--claim {
  min-width: 78px;
  border-radius: 999px;
}

#main-app #employee-section .ph-btn--quiet {
  background: #fff;
  border-color: var(--ph-line);
  color: var(--ph-muted);
}

#main-app #employee-section .ph-btn--quiet:hover {
  border-color: #cbd5d0;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-btn--light {
  background: #fff;
  color: var(--ph-green-deep);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}

#main-app #employee-section .ph-btn--light:hover {
  background: #f0fdf4;
}

#main-app #employee-section .ph-btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

#main-app #employee-section .ph-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

#main-app #employee-section .ph-btn--amber {
  background: var(--ph-amber);
  color: #3b1d02;
}

#main-app #employee-section .ph-btn--amber:hover {
  background: #d97706;
  color: #fff;
}

#main-app #employee-section .ph-hero .ph-btn--primary {
  background: #fff;
  color: var(--ph-green-deep);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}

#main-app #employee-section .ph-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--ph-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-muted);
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.4s ease;
}

#main-app #employee-section .ph-icon-btn:hover {
  color: var(--ph-green-deep);
  border-color: #b7dcc4;
}

#main-app #employee-section .ph-icon-btn:active svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ---------- Hero ---------- */

#main-app #employee-section .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(74, 222, 128, 0.28), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(6, 78, 59, 0.55), transparent 60%),
    linear-gradient(150deg, #178a45 0%, #0f6b36 45%, #0b4a27 100%);
  box-shadow: 0 24px 48px -28px rgba(6, 40, 22, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Faint keyhole-ring motif — a nod to escape rooms. */
#main-app #employee-section .ph-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}

#main-app #employee-section .ph-hero__top {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

#main-app #employee-section .ph-hero__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.7);
}

#main-app #employee-section .ph-hero__hello {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4ch;
}

#main-app #employee-section .ph-hero__greeting {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.72);
}

#main-app #employee-section .ph-hero__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

/* Next shift tile */

#main-app #employee-section .ph-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(3, 30, 16, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#main-app #employee-section .ph-next__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.75);
}

#main-app #employee-section .ph-next--live .ph-next__eyebrow {
  color: #bbf7d0;
}

#main-app #employee-section .ph-next--live .ph-next__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: ph-pulse 1.8s ease-out infinite;
}

@keyframes ph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

#main-app #employee-section .ph-next__line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#main-app #employee-section .ph-next__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
}

#main-app #employee-section .ph-next__day {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

#main-app #employee-section .ph-next__time {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

#main-app #employee-section .ph-next__room {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  overflow-wrap: anywhere;
}

#main-app #employee-section .ph-next__countdown {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#main-app #employee-section .ph-next__countdown:empty {
  display: none;
}

#main-app #employee-section .ph-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#main-app #employee-section .ph-next__actions:empty {
  display: none;
}

#main-app #employee-section .ph-next__actions .ph-btn {
  flex: 1 1 0;
}

#main-app #employee-section .ph-next--empty .ph-next__empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

#main-app #employee-section .ph-next--empty .ph-next__empty-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Today strip */

#main-app #employee-section .ph-today {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#main-app #employee-section .ph-today__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.75);
}

#main-app #employee-section .ph-today__list {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 2px 18px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#main-app #employee-section .ph-today__list::-webkit-scrollbar {
  display: none;
}

#main-app #employee-section .ph-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 118px;
  max-width: 170px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: none;
}

#main-app #employee-section button.ph-chip {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

#main-app #employee-section button.ph-chip:hover {
  background: rgba(245, 158, 11, 0.22);
}

#main-app #employee-section button.ph-chip:active {
  transform: scale(0.97);
}

#main-app #employee-section .ph-chip__time {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#main-app #employee-section .ph-chip__room {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

#main-app #employee-section .ph-chip__who {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(220, 252, 231, 0.8);
}

#main-app #employee-section .ph-chip--open {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.5);
}

#main-app #employee-section .ph-chip--open .ph-chip__who {
  color: #fcd34d;
}

#main-app #employee-section .ph-chip--mine {
  background: #fff;
  border-color: #fff;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-chip--mine .ph-chip__room {
  color: var(--ph-muted);
}

#main-app #employee-section .ph-chip--mine .ph-chip__who {
  color: var(--ph-green-deep);
}

#main-app #employee-section .ph-chip--live .ph-chip__time::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: #4ade80;
}

/* ---------- Pinned notices ---------- */

#main-app #employee-section .ph-pins {
  display: grid;
  gap: 10px;
}

#main-app #employee-section .ph-pin {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: var(--ph-card-shadow);
  overflow: hidden;
}

#main-app #employee-section .ph-pin::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ph-pin-accent, var(--ph-green));
}

#main-app #employee-section .ph-pin--warning {
  --ph-pin-accent: #dc2626;
  --ph-pin-tag: #b91c1c;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
  border-color: #fbd5d5;
}

#main-app #employee-section .ph-pin--reminder {
  --ph-pin-accent: var(--ph-amber);
  --ph-pin-tag: #b45309;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border-color: #fde8b0;
}

#main-app #employee-section .ph-pin--info {
  --ph-pin-accent: var(--ph-green);
  --ph-pin-tag: var(--ph-green-deep);
}

#main-app #employee-section .ph-pin__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ph-pin-tag, var(--ph-green-deep));
}

#main-app #employee-section .ph-pin__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#main-app #employee-section .ph-pin__title,
#main-app #employee-section .ph-post__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ph-ink);
}

/* Quill output inside notices */
#main-app #employee-section .ph-pin__body,
#main-app #employee-section .ph-post__body {
  margin-top: 4px;
  border: 0;
  font: inherit;
}

#main-app #employee-section .ph-pin__body .ql-editor,
#main-app #employee-section .ph-post__body .ql-editor {
  height: auto;
  padding: 0;
  overflow: visible;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #34463c;
}

#main-app #employee-section .ph-pin__body .ql-editor p + p,
#main-app #employee-section .ph-post__body .ql-editor p + p {
  margin-top: 0.5em;
}

#main-app #employee-section .ph-pin__body .ql-editor a,
#main-app #employee-section .ph-post__body .ql-editor a {
  color: var(--ph-green-deep);
  font-weight: 600;
}

/* ---------- Alert: games still open ---------- */

#main-app #employee-section .ph-alert {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #fde3a7;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  box-shadow: var(--ph-card-shadow);
}

#main-app #employee-section .ph-alert__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#main-app #employee-section .ph-alert__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fef3c7;
  color: #b45309;
}

#main-app #employee-section .ph-alert__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-alert__msg {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-alert__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#main-app #employee-section .ph-alert__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f5e6c4;
}

#main-app #employee-section .ph-alert__row-main {
  min-width: 0;
}

#main-app #employee-section .ph-alert__row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-alert__row-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-alert__past {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Grid + blocks ---------- */

#main-app #employee-section .ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#main-app #employee-section .ph-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

#main-app #employee-section .ph-block {
  padding: 18px 16px 8px;
  border-radius: 20px;
  border: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: var(--ph-card-shadow);
}

#main-app #employee-section .ph-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#main-app #employee-section .ph-block__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-block--mine .ph-block__title {
  margin-bottom: 6px;
}

#main-app #employee-section .ph-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ph-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-feedback:empty {
  display: none;
}

#main-app #employee-section .ph-list {
  display: flex;
  flex-direction: column;
}

#main-app #employee-section .ph-day {
  margin: 14px 0 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-list > .ph-day:first-child {
  margin-top: 10px;
}

/* Shift rows */

#main-app #employee-section .ph-shift {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ph-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#main-app #employee-section .ph-day + .ph-shift,
#main-app #employee-section .ph-block__title + .ph-list > .ph-shift:first-child {
  border-top: 0;
}

#main-app #employee-section .ph-shift__time {
  --ph-time-accent: var(--ph-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  padding-left: 11px;
  border-left: 3px solid var(--ph-time-accent);
  color: var(--ph-ink);
  line-height: 1.1;
}

#main-app #employee-section .ph-shift__time strong {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

#main-app #employee-section .ph-shift__time span {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ph-muted);
  white-space: nowrap;
}

#main-app #employee-section .ph-shift--open .ph-shift__time {
  --ph-time-accent: #f59e0b;
}

#main-app #employee-section .ph-shift--mine .ph-shift__time {
  --ph-time-accent: #22a35a;
}

#main-app #employee-section .ph-shift__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: var(--ph-amber-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

#main-app #employee-section .ph-shift__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

#main-app #employee-section .ph-shift__main {
  min-width: 0;
}

#main-app #employee-section .ph-shift__room {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-shift__sub {
  margin-top: 1px;
  font-size: 0.8rem;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-shift__actions {
  display: flex;
  gap: 6px;
}

#main-app #employee-section .ph-shift--mine .ph-shift__actions .ph-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
}

#main-app #employee-section .ph-list--collapsed .ph-shift--overflow {
  display: none;
}

#main-app #employee-section .ph-shift--flash {
  animation: ph-flash 1.6s ease-out;
}

@keyframes ph-flash {
  0%, 30% { background: #fef3c7; box-shadow: 0 0 0 6px #fef3c7; }
  100% { background: transparent; box-shadow: 0 0 0 6px transparent; }
}

#main-app #employee-section .ph-more {
  margin: 0 -16px;
  padding: 14px 16px 10px;
  border: 0;
  border-top: 1px solid var(--ph-line);
  border-radius: 0 0 20px 20px;
  background: transparent;
  color: var(--ph-green-deep);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

#main-app #employee-section .ph-more:hover {
  background: #f6faf7;
}

/* Empty state */

#main-app #employee-section .ph-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 12px;
}

#main-app #employee-section .ph-empty__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #dcfce7;
  color: var(--ph-green-deep);
}

#main-app #employee-section .ph-empty__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ph-ink);
}

#main-app #employee-section .ph-empty__sub {
  font-size: 0.82rem;
  color: var(--ph-muted);
}

/* ---------- Noticeboard posts ---------- */

#main-app #employee-section .ph-notices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#main-app #employee-section .ph-notices__title {
  padding: 4px 4px 0;
}

#main-app #employee-section .ph-notices__posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#main-app #employee-section .ph-post {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: var(--ph-card-shadow);
}

#main-app #employee-section .ph-post__meta {
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-notices__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}

#main-app #employee-section .ph-notices__range {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ph-muted);
  font-variant-numeric: tabular-nums;
}

#main-app #employee-section .ph-notices__pager {
  display: flex;
  gap: 6px;
}

#main-app #employee-section .ph-pager-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ph-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ph-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

#main-app #employee-section .ph-pager-btn:disabled {
  visibility: hidden;
}

/* ---------- Tablet / desktop ---------- */

@media (min-width: 721px) {
  #main-app #employee-section .ph {
    gap: 18px;
  }

  #main-app #employee-section .ph-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    grid-template-areas:
      "top next"
      "today today";
    column-gap: 28px;
    row-gap: 22px;
    padding: 28px;
    border-radius: 26px;
  }

  #main-app #employee-section .ph-hero::before {
    top: -160px;
    right: auto;
    left: 38%;
    width: 460px;
    height: 460px;
  }

  #main-app #employee-section .ph-hero__top {
    grid-area: top;
    align-self: center;
    gap: 10px;
  }

  #main-app #employee-section .ph-hero__hello {
    flex-direction: column;
  }

  #main-app #employee-section .ph-hero__greeting {
    font-size: 1.15rem;
  }

  #main-app #employee-section .ph-hero__name {
    font-size: 2.6rem;
    line-height: 1.05;
  }

  #main-app #employee-section .ph-next {
    grid-area: next;
    padding: 18px;
  }

  #main-app #employee-section .ph-next__actions .ph-btn {
    flex: 0 0 auto;
  }

  #main-app #employee-section .ph-today {
    grid-area: today;
  }

  #main-app #employee-section .ph-today__list {
    margin: 0 -28px;
    padding: 2px 28px 4px;
    scroll-padding-left: 28px;
  }

  #main-app #employee-section .ph-pins {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  #main-app #employee-section .ph-block {
    padding: 20px 20px 10px;
  }

  #main-app #employee-section .ph-more {
    margin: 0 -20px;
  }
}

@media (min-width: 980px) {
  #main-app #employee-section .ph-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 18px;
  }

  #main-app #employee-section .ph-grid:has(> .ph-notices.hidden) {
    grid-template-columns: minmax(0, 1fr);
  }

  #main-app #employee-section .ph-shift {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
  }

  #main-app #employee-section .ph-notices {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 720px) {
  #main-app #employee-section.app-card-home {
    padding: 0;
  }

  html[data-brand="site"] #main-app #employee-section .ph-hero__hello {
    column-gap: 0.25em;
  }

  html[data-brand="site"] #main-app #employee-section .ph-hero__hello .ph-hero__greeting,
  html[data-brand="site"] #main-app #employee-section .ph-hero__hello .ph-hero__name {
    font-family: var(--site-display) !important;
    font-weight: 400 !important;
    font-size: 2.3rem;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  html[data-brand="site"] #main-app #employee-section .ph-hero__hello .ph-hero__greeting {
    color: var(--site-muted);
  }
}

@media (max-width: 360px) {
  #main-app #employee-section .ph-shift {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }

  #main-app #employee-section .ph-btn--claim {
    min-width: 0;
    padding: 0 14px;
  }
}

/* ---------- Urgency: open games today/tomorrow and this week ---------- */

#main-app #employee-section .ph-urgent.hidden {
  display: none;
}

#main-app #employee-section .ph-urgent__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-left: 4px solid #ef4444;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22) 0%, rgba(239, 68, 68, 0.06) 100%);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

#main-app #employee-section .ph-urgent__btn:hover {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.1) 100%);
}

#main-app #employee-section .ph-urgent__btn:active {
  transform: scale(0.99);
}

#main-app #employee-section .ph-urgent__btn:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

#main-app #employee-section .ph-urgent__count {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  animation: ph-pulse-red 1.6s ease-out infinite;
}

@keyframes ph-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

#main-app #employee-section .ph-urgent__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

#main-app #employee-section .ph-urgent__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fca5a5;
}

#main-app #employee-section .ph-urgent__title {
  margin-top: 3px;
  white-space: nowrap;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

html[data-brand="site"] #main-app #employee-section .ph-urgent__title {
  font-family: var(--site-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

#main-app #employee-section .ph-urgent__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

#main-app #employee-section .ph-urgent__chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(254, 202, 202, 0.2);
  color: #fecaca;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

#main-app #employee-section .ph-urgent__chip b {
  margin-left: 3px;
  color: #fff;
  font-weight: 800;
}

#main-app #employee-section .ph-urgent__arrow {
  flex: 0 0 auto;
  color: #fca5a5;
  transition: transform 0.15s ease;
}

#main-app #employee-section .ph-urgent__btn:hover .ph-urgent__arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  #main-app #employee-section .ph-urgent__btn {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  #main-app #employee-section .ph-urgent__text {
    flex: 1 1 0;
  }

  #main-app #employee-section .ph-urgent__chips {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    padding-left: 58px;
    box-sizing: border-box;
  }
}

#main-app #employee-section .ph-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 0;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--ph-soft);
}

#main-app #employee-section .ph-list > .ph-group:first-child {
  margin-top: 12px;
}

#main-app #employee-section .ph-group__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-group__count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ph-muted);
}

#main-app #employee-section .ph-group--urgent,
html[data-brand="site"] #main-app #employee-section .ph-group--urgent {
  background: rgba(220, 38, 38, 0.14);
}

#main-app #employee-section .ph-group--urgent .ph-group__label,
#main-app #employee-section .ph-group--urgent .ph-group__count,
html[data-brand="site"] #main-app #employee-section .ph-group--urgent .ph-group__label,
html[data-brand="site"] #main-app #employee-section .ph-group--urgent .ph-group__count {
  color: #ef4444;
}

#main-app #employee-section .ph-group--soon,
html[data-brand="site"] #main-app #employee-section .ph-group--soon {
  background: rgba(245, 158, 11, 0.13);
}

#main-app #employee-section .ph-group--soon .ph-group__label,
#main-app #employee-section .ph-group--soon .ph-group__count,
html[data-brand="site"] #main-app #employee-section .ph-group--soon .ph-group__label,
html[data-brand="site"] #main-app #employee-section .ph-group--soon .ph-group__count {
  color: #f59e0b;
}

#main-app #employee-section .ph-group + .ph-day {
  margin-top: 10px;
}

#main-app #employee-section .ph-shift--open.ph-shift--urgent .ph-shift__time,
html[data-brand="site"] #main-app #employee-section .ph-shift--open.ph-shift--urgent .ph-shift__time {
  --ph-time-accent: #ef4444;
}

#main-app #employee-section .ph-shift--open.ph-shift--soon .ph-shift__time,
html[data-brand="site"] #main-app #employee-section .ph-shift--open.ph-shift--soon .ph-shift__time {
  --ph-time-accent: #f97316;
}

#main-app #employee-section .ph-shift--urgent {
  margin: 4px -8px 0;
  border-top: 0;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px;
  animation: ph-row-pulse 2s ease-in-out infinite;
}

@keyframes ph-row-pulse {
  0%, 100% { background: rgba(239, 68, 68, 0.05); }
  50% { background: rgba(239, 68, 68, 0.17); }
}

#main-app #employee-section .ph-btn--claim.ph-btn--urgent,
#main-app #employee-section .ph-btn--claim.ph-btn--soon,
html[data-brand="site"] #main-app #employee-section .ph-btn--claim.ph-btn--urgent,
html[data-brand="site"] #main-app #employee-section .ph-btn--claim.ph-btn--soon {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px -10px rgba(220, 38, 38, 0.8);
}

#main-app #employee-section .ph-btn--claim.ph-btn--urgent:hover,
#main-app #employee-section .ph-btn--claim.ph-btn--soon:hover,
html[data-brand="site"] #main-app #employee-section .ph-btn--claim.ph-btn--urgent:hover,
html[data-brand="site"] #main-app #employee-section .ph-btn--claim.ph-btn--soon:hover {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
}

#main-app #employee-section .ph-btn--claim.ph-btn--urgent {
  animation: ph-pulse-red 1.4s ease-out infinite;
}

@media (min-width: 721px) {
  #main-app #employee-section .ph-urgent {
    grid-area: today;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-app #employee-section .ph-next--live .ph-next__eyebrow::before,
  #main-app #employee-section .ph-shift--flash,
  #main-app #employee-section .ph-urgent__count,
  #main-app #employee-section .ph-shift--urgent,
  #main-app #employee-section .ph-btn--claim.ph-btn--urgent {
    animation: none;
  }
}

@media (min-width: 980px) {
  #main-app #employee-section .ph-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #main-app #employee-section .ph-grid > .ph-col {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }

  #main-app #employee-section .ph-col--shifts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  #main-app #employee-section .ph-col--shifts > .ph-block.hidden {
    display: none;
  }

  #main-app #employee-section .ph-col--shifts:not(:has(> .ph-block:not(.hidden) ~ .ph-block:not(.hidden))) {
    grid-template-columns: minmax(0, 1fr);
  }
}
