:root {
  color-scheme: light;
  --pc-border: #dfe5ef;
  --pc-muted: #687386;
  --pc-ink: #142033;
  --pc-surface: #f5f7fb;
  --pc-accent: #0d6efd;
  --pc-sidebar-width: 268px;
  --pc-sidebar-rail: 76px;
  --pc-shadow: 0 18px 45px rgba(20, 32, 51, 0.12);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 28rem),
    linear-gradient(180deg, #fff 0, var(--pc-surface) 18rem);
  color: var(--pc-ink);
}

.pc-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 62px;
  border-bottom: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.pc-brand {
  color: var(--pc-ink);
}

.pc-brand-mark {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(13, 110, 253, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf1ff, #fff);
  color: #0a58ca;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(13, 110, 253, 0.12);
}

.pc-layout {
  display: block;
}

.pc-sidebar {
  display: none;
}

.pc-main {
  min-width: 0;
}

.pc-page {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 1.25rem;
}

.pc-section {
  padding: 1.25rem 0;
}

.pc-card {
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pc-auth-card {
  max-width: 440px;
  margin: 0 auto;
}

.pc-muted {
  color: var(--pc-muted);
}

.pc-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.05rem;
  padding: 0.58rem 0.7rem;
  border-radius: 8px;
  color: #334057;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pc-nav-link:hover,
.pc-nav-link:focus {
  background: #f0f5ff;
  color: #0a58ca;
  transform: translateX(2px);
}

.pc-nav-link.active {
  background: linear-gradient(135deg, #0d6efd, #245bd8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.22);
}

.pc-nav-link.active::before {
  position: absolute;
  left: -0.65rem;
  width: 0.25rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0d6efd;
  content: "";
}

.pc-nav-section {
  margin: 1.2rem 0 0.45rem;
  padding: 0 0.7rem;
  color: var(--pc-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pc-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #0a58ca;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  flex: 0 0 auto;
}

.pc-nav-link.active .pc-icon {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.pc-nav-copy {
  display: grid;
  min-width: 0;
}

.pc-nav-label {
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.pc-nav-description {
  color: var(--pc-muted);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.pc-nav-link.active .pc-nav-description {
  color: rgba(255, 255, 255, 0.78);
}

.pc-mobile-menu .offcanvas-body {
  padding-top: 0.5rem;
}

.pc-mobile-menu {
  --bs-offcanvas-width: min(88vw, 330px);
}

.pc-mobile-menu .offcanvas-header {
  border-bottom: 1px solid var(--pc-border);
}

.pc-menu-subtitle {
  color: var(--pc-muted);
  font-size: 0.82rem;
}

.pc-menu-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: #fff;
}

.pc-menu-button span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: #263247;
}

.pc-menu-button span + span {
  margin-top: 3px;
}

.pc-menu-pin {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: #fff;
  color: #344055;
  font-weight: 800;
}

.pc-pin-icon {
  position: relative;
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  transform: rotate(-28deg);
}

.pc-pin-icon::before {
  position: absolute;
  top: 0.05rem;
  left: 0.3rem;
  width: 0.35rem;
  height: 0.62rem;
  border: 2px solid currentColor;
  border-radius: 0.28rem 0.28rem 0.08rem 0.08rem;
  content: "";
}

.pc-pin-icon::after {
  position: absolute;
  top: 0.67rem;
  left: 0.45rem;
  width: 2px;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.pc-menu-pin:hover,
.pc-menu-pin:focus {
  border-color: rgba(13, 110, 253, 0.42);
  color: #0a58ca;
}

.pc-menu-pin.is-pinned {
  border-color: rgba(13, 110, 253, 0.42);
  background: #eaf1ff;
  color: #0a58ca;
}

.pc-user-button {
  display: inline-flex;
  align-items: center;
  max-width: min(36vw, 280px);
  gap: 0.45rem;
  border: 1px solid var(--pc-border);
  background: #fff;
  color: #263247;
}

.pc-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-user-dot,
.pc-status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #23a36d;
  box-shadow: 0 0 0 3px rgba(35, 163, 109, 0.12);
}

.pc-account-menu {
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  box-shadow: var(--pc-shadow);
}

.pc-footer {
  color: var(--pc-muted);
  font-size: 0.875rem;
}

.pc-sidebar-panel {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #edf4ff);
}

.pc-sidebar-kicker {
  color: var(--pc-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-sidebar-title {
  margin-top: 0.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.pc-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem;
  color: var(--pc-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .pc-layout {
    display: grid;
    grid-template-columns: var(--pc-sidebar-width) minmax(0, 1fr);
    transition: grid-template-columns 180ms ease;
  }

  body.pc-menu-autohide .pc-layout {
    grid-template-columns: var(--pc-sidebar-rail) minmax(0, 1fr);
  }

  .pc-sidebar {
    position: sticky;
    top: 62px;
    z-index: 1020;
    display: block;
    width: var(--pc-sidebar-width);
    height: calc(100vh - 62px);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--pc-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    padding: 1rem;
    transition: width 180ms ease, box-shadow 180ms ease;
  }

  body.pc-menu-autohide .pc-sidebar {
    width: var(--pc-sidebar-rail);
  }

  body.pc-menu-autohide .pc-sidebar:hover,
  body.pc-menu-autohide .pc-sidebar:focus-within {
    width: var(--pc-sidebar-width);
    box-shadow: var(--pc-shadow);
  }

  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-nav-copy,
  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-sidebar-footer {
    opacity: 0;
    pointer-events: none;
  }

  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-nav-section,
  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-sidebar-panel,
  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-sidebar-footer {
    display: none;
  }

  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-nav-link {
    justify-content: center;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  body.pc-menu-autohide .pc-sidebar:not(:hover):not(:focus-within) .pc-nav-link.active::before {
    left: -0.45rem;
  }

  .pc-menu-pin {
    display: inline-grid;
  }

  .pc-page {
    padding: 2rem;
  }
}
