/* YRR light polish: small visual lift over the packaged theme. */
:root {
  color-scheme: light;
  --yrr-bg: #f6f8fb;
  --yrr-card: rgba(255, 255, 255, 0.86);
  --yrr-border: rgba(70, 84, 105, 0.14);
  --yrr-text: #101828;
  --yrr-muted: #667085;
  --yrr-accent: #2f80ed;
  --yrr-accent-2: #16a085;
}

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

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(47, 128, 237, 0.14), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(22, 160, 133, 0.10), transparent 24rem),
    linear-gradient(180deg, #fbfcff 0%, var(--yrr-bg) 46%, #eef3f8 100%);
  color: var(--yrr-text);
  letter-spacing: 0;
}

#app {
  padding: 1.25rem 1.5rem 2rem;
}

h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: #0b1220;
  font-weight: 800;
  letter-spacing: 0;
}

h1::before {
  content: "";
  width: 0.5rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yrr-accent), var(--yrr-accent-2));
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.24);
}

.rounded-xl.px-4.py-3.relative.bg-gray-100 {
  background: var(--yrr-card) !important;
  border: 1px solid var(--yrr-border);
  border-radius: 12px !important;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08), 0 2px 8px rgba(16, 24, 40, 0.04);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rounded-xl.px-4.py-3.relative.bg-gray-100:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 237, 0.24);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12), 0 4px 12px rgba(16, 24, 40, 0.05);
}

.text-lg.flex.items-center.gap-2 {
  font-weight: 650;
  color: #111827;
}

.absolute.right-4.top-4.group::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  animation: yrr-status-pulse 2.4s ease-out infinite;
}

.absolute.right-4.top-4.group > * {
  position: relative;
}

.inline-block.text-sm.bg-gray-200.rounded-full.overflow-hidden.relative {
  background: #e7ebf0 !important;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.08);
}

.inline-block.text-sm.bg-gray-200.rounded-full.overflow-hidden.relative > div {
  border-radius: 999px;
}

.bg-gray-400\/50 {
  background: linear-gradient(90deg, rgba(47, 128, 237, 0.30), rgba(22, 160, 133, 0.28)) !important;
}

.bg-orange-300 {
  background: linear-gradient(90deg, #f6c177, #f59e0b) !important;
}

.bg-red-300 {
  background: linear-gradient(90deg, #fb7185, #ef4444) !important;
}

.bg-gray-200.rounded-full:not(.overflow-hidden) {
  background: rgba(226, 232, 240, 0.82) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

@keyframes yrr-status-pulse {
  0% { opacity: 0.72; transform: scale(0.86); }
  70% { opacity: 0; transform: scale(1.75); }
  100% { opacity: 0; transform: scale(1.75); }
}

@media (max-width: 640px) {
  #app { padding: 1rem; }
  h1 { font-size: 1.9rem !important; }
  .rounded-xl.px-4.py-3.relative.bg-gray-100 { border-radius: 10px !important; }
}


/* YRRLYB brand layer */
.yrr-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(70, 84, 105, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(10px);
}

.yrr-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.yrr-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, #2f80ed, #16a085);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(47, 128, 237, 0.24);
  overflow: hidden;
}

.yrr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yrr-kicker {
  font-size: 0.74rem;
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
}

.yrr-hero h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.05;
}

.yrr-hero p {
  margin: 0.25rem 0 0;
  color: #667085;
  font-size: 0.94rem;
}

.yrr-home {
  flex: 0 0 auto;
  padding: 0.62rem 0.86rem;
  border-radius: 999px;
  color: #0b5cad;
  background: rgba(47, 128, 237, 0.10);
  border: 1px solid rgba(47, 128, 237, 0.18);
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease;
}

.yrr-home:hover {
  transform: translateY(-1px);
  background: rgba(47, 128, 237, 0.16);
}

.yrr-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.yrr-stat {
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(70, 84, 105, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.055);
}

.yrr-stat span {
  display: block;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.yrr-stat strong {
  display: block;
  margin-top: 0.12rem;
  color: #101828;
  font-size: 1.08rem;
  line-height: 1.18;
}

.yrr-pulse-card {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(22, 160, 133, 0.12));
}

body > a, body > div:last-child a[href*="github"], body > div:last-child a[href*="orilight"] {
  display: none !important;
}

.yrr-made {
  color: #667085;
  font-weight: 700;
}

@media (max-width: 900px) {
  .yrr-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yrr-pulse-card { grid-column: span 2; }
}

@media (max-width: 640px) {
  .yrr-hero { align-items: flex-start; flex-direction: column; }
  .yrr-home { width: 100%; text-align: center; }
  .yrr-summary { grid-template-columns: 1fr; }
  .yrr-pulse-card { grid-column: auto; }
}


/* YRR Nezha-style overview refresh */
.yrr-hero {
  min-height: 92px;
  margin-top: 0.7rem;
  border-radius: 10px;
}

.yrr-avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  background: #fff;
  border-width: 2px;
}

.yrr-kicker { color: #64748b; }
.yrr-hero h2 { font-size: clamp(1.55rem, 2vw, 2rem); }
.yrr-hero p { font-size: 0.9rem; }

.yrr-summary {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 1rem;
}

.yrr-stat {
  position: relative;
  min-height: 116px;
  padding: 1.1rem 1.25rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.yrr-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #22c55e;
}

.yrr-stat span {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.yrr-stat strong {
  margin-top: 0.55rem;
  font-size: clamp(1.85rem, 2.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
  color: #111827;
  white-space: nowrap;
}

.yrr-stat small {
  display: block;
  margin-top: 0.8rem;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: normal;
}

.yrr-stat i {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

.yrr-green::before { background: #10b981; }
.yrr-red::before { background: #ef4444; }
.yrr-blue::before { background: #3b82f6; }
.yrr-purple::before { background: #8b5cf6; }
.yrr-blue { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,246,255,.86)); }
.yrr-purple { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,243,255,.86)); }

.yrr-pulse-card { background: rgba(255,255,255,.9); }

@media (max-width: 1100px) {
  .yrr-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .yrr-summary { grid-template-columns: 1fr; }
  .yrr-stat { min-height: 98px; }
}


/* YRR compact speed fix */
.yrr-purple strong[data-yrr="speed"] {
  font-size: clamp(1.55rem, 1.9vw, 2.15rem);
  letter-spacing: 0;
}
.yrr-stat small[data-yrr="speed-sub"] {
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: keep-all;
}


/* YRR compact speed/footer patch */
.yrr-purple strong[data-yrr="speed"] {
  font-size: clamp(1.65rem, 1.9vw, 2.15rem);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yrr-stat small {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.yrr-footer {
  margin: 1.3rem 0 0.4rem;
  padding: 0.9rem 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
