:root{
  --primary:#007bff;
  --primaryHover:#0056b3;
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface2:#f7f8fb;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.12);
  --shadow:0 10px 30px rgba(2,6,23,.10);
  --radius:16px;
  --pill:999px;
  --focus:0 0 0 3px rgba(0,123,255,.25);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.ppp-wrap{ max-width: 980px; margin: 18px auto; }
.ppp-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  color:var(--text);
  font-family:var(--sans);
}

.ppp-header{
  display:flex; gap:16px; align-items:center;
  padding:20px;
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,123,255,.08), rgba(255,255,255,0));
}

.ppp-avatar{
  width:56px; height:56px; border-radius:50%;
  background:rgba(2,6,23,.06);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; letter-spacing:.02em;
  border:1px solid var(--border);
  flex:0 0 auto;
}

.ppp-title{ margin:0; font-size:20px; letter-spacing:-0.01em; }
.ppp-meta{
  margin:4px 0 0 0;
  color:var(--muted);
  font-size:13px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.ppp-pill{
  display:inline-flex; align-items:center;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:var(--pill);
  background:rgba(2,6,23,.03);
  font-size:12px; color:var(--muted);
}

.ppp-tabs{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:14px 20px 0 20px;
}
.ppp-tab{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:10px 14px;
  border-radius:var(--pill);
  cursor:pointer;
  transition:transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
  color:var(--text);
  font-weight:700;
  user-select:none;
}
.ppp-tab:hover{ border-color:rgba(0,123,255,.35); transform:translateY(-1px); }
.ppp-tab:focus{ outline:none; box-shadow:var(--focus); }
.ppp-tab.ppp-active{ background:var(--primary); color:#fff; border-color:var(--primary); }
.ppp-icon{ width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }

.ppp-panels{
  margin:14px 20px 20px 20px;
  background:var(--surface2);
  border:1px solid var(--border);
  border-radius:calc(var(--radius) - 4px);
  padding:14px;
}
.ppp-panel{ display:none; }
.ppp-panel.ppp-active{ display:block; }
.ppp-panel h3{ margin:0 0 10px 0; font-size:18px; letter-spacing:-0.01em; }

.ppp-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:12px; margin-top:10px;
}
.ppp-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.ppp-label{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.ppp-value{ font-weight:700; word-break:break-word; }

.ppp-notice{
  background:var(--surface2);
  border:1px dashed rgba(15,23,42,.25);
  padding:14px 16px;
  border-radius:14px;
  color:var(--muted);
}

.ppp-content{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}
.ppp-content p{ margin:0 0 10px 0; }
.ppp-content p:last-child{ margin-bottom:0; }
.ppp-content a{ color:var(--primary); text-decoration:underline; }

/* Downloads */
.ppp-downloads{ margin-top:12px; }
.ppp-dl-list{ display:grid; grid-template-columns:1fr; gap:10px; margin:0; padding:0; list-style:none; }
.ppp-dl-item{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ppp-dl-left{ min-width:0; }
.ppp-dl-name{ font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ppp-dl-meta{ font-size:12px; color:var(--muted); margin-top:4px; display:flex; gap:8px; flex-wrap:wrap; }
.ppp-badge{
  display:inline-flex; align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(2,6,23,.03);
}
.ppp-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--primary);
  background:var(--primary);
  color:#fff;
  font-weight:800;
  text-decoration:none !important;
  white-space:nowrap;
}
.ppp-btn:hover{ background:var(--primaryHover); border-color:var(--primaryHover); }
