:root {
  --pc-brand: #0f766e;
  --pc-brand-dark: #134e4a;
  --bs-success: #0f766e;
  --bs-success-rgb: 15, 118, 110;
  --pc-topbar-h: 56px;
  --pc-bottomnav-h: 64px;
}

.pc-body {
  background:
    radial-gradient(900px 280px at 0% 0%, #ccfbf1 0%, transparent 55%),
    radial-gradient(700px 240px at 100% 0%, #d1fae5 0%, transparent 50%),
    #f4f7f5;
  min-height: 100%;
}

.pc-app {
  padding-top: var(--pc-topbar-h);
  padding-bottom: calc(var(--pc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
}

.pc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--pc-topbar-h);
  background: var(--pc-brand);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 12px;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.28);
}

.pc-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.pc-topbar-brand strong,
.pc-topbar-brand small {
  display: block;
  line-height: 1.15;
}

.pc-topbar-brand small {
  font-size: 0.72rem;
  opacity: 0.82;
  font-weight: 500;
}

.pc-topbar-logout {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pc-topbar-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.pc-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: calc(var(--pc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  border-top: 1px solid #e8e8e8;
}

.pc-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 2px 8px;
  text-decoration: none;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 500;
  position: relative;
}

.pc-nav-tab i {
  font-size: 22px;
  line-height: 1;
}

.pc-nav-tab.active {
  color: var(--pc-brand);
  font-weight: 700;
}

.pc-nav-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--pc-brand);
}

.pc-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #1c1917;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pc-logo {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-brand-dark);
  color: #fff;
  flex-shrink: 0;
}

.pc-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.pc-avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
}

.pc-login-hero {
  background: linear-gradient(135deg, #0f766e, #134e4a);
}

.pc-weekchip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  min-width: 6.8rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pc-weekchip-bar {
  display: block;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  margin-top: 0.2rem;
  overflow: hidden;
}

.pc-weekchip-bar i {
  display: block;
  height: 100%;
  background: #fff;
}

.card {
  border: 0;
  border-radius: 1rem;
}

.card-header:first-child,
.card-footer:last-child {
  border-radius: inherit;
}

.list-group-item {
  border-color: #e7eeec;
}

.pc-daystrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.pc-daystrip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3.4rem;
  border-radius: 0.85rem;
  background: #f8faf9;
  color: inherit;
  text-decoration: none;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.pc-daystrip-item strong {
  font-size: 1.1rem;
  line-height: 1;
}

.pc-daystrip-item.is-today {
  border-color: #99f6e4;
}

.pc-daystrip-item.is-selected {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.pc-slot-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.pc-slot-time {
  display: flex;
  flex-direction: column;
}

.pc-slot-time strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.pc-slot-time small {
  color: #5b7a75;
}

.pc-slot-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-slot.free {
  color: #047857;
}

.pc-slot.mine {
  background: #ccfbf1;
  font-weight: 700;
}

.pc-slot.taken {
  background: #f8fafc;
  color: #64748b;
}

.pc-slot.pending {
  background: #fff7ed;
  color: #b45309;
}

.pc-pin {
  letter-spacing: 0.45rem;
  font-size: 1.35rem;
  text-align: center;
}

.btn-success {
  --bs-btn-bg: #0f766e;
  --bs-btn-border-color: #0f766e;
  --bs-btn-hover-bg: #115e59;
  --bs-btn-hover-border-color: #115e59;
  --bs-btn-active-bg: #134e4a;
  --bs-btn-active-border-color: #134e4a;
}

.pc-app .offcanvas-bottom {
  bottom: calc(var(--pc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

@media (min-width: 768px) {
  .pc-weekgrid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .pc-weekgrid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}
