:root{
  --bg:#ffffff;
  --muted:#6b7280;
  --primary:#0b8b5f;
  --card:#f8fafc;
  --accent:#e6ffef;
  --maxw:720px;
  --radius:10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:18px;
  display:flex;
  justify-content:center;
}

.container{
  width:100%;
  max-width:var(--maxw);
}

.app-header{
  background:linear-gradient(180deg,#ffffff,#fbfefb);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 1px 4px rgba(2,6,23,0.06);
  margin-bottom:12px;
}

.app-meta{
  display:flex;
  gap:12px;
  align-items:center;
}

.app-icon{
  width:72px;
  height:72px;
  border-radius:16px;
  object-fit:cover;
  background:#fff;
  border:1px solid #e6edf0;
}

.app-title{
  margin:0;
  font-size:18px;
  font-weight:700;
}

.app-sub{
  margin:4px 0 0 0;
  color:var(--muted);
  font-size:13px;
}

.rating-row{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  gap:6px;
  align-items:center;
}

.action-row{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
}

.btn{
  border:0;
  padding:12px 14px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}

.btn-primary{
  background:var(--primary);
  color:white;
  box-shadow:0 2px 0 rgba(11,139,95,0.12);
}

.link-small{
  display:inline-block;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
  margin-right:12px;
}

.gallery{
  margin:10px 0;
}

.screenshot-row{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:6px;
}

.screenshot{
  width:160px;
  height:320px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #e6edf0;
  background:linear-gradient(180deg,#fff,#f3f7f5);
  flex:0 0 auto;
}

.about{
  background:var(--card);
  border-radius:10px;
  padding:12px;
  margin:12px 0;
}

.about h2{margin:0 0 8px 0}
.about p{margin:6px 0;color:var(--muted);font-size:14px}
.features{margin:8px 0 0 16px;color:var(--muted);font-size:14px}

.permissions{
  margin-bottom:12px;
}

.perm-box{
  border:1px solid #eef2f1;
  border-radius:10px;
  padding:10px;
  background:var(--accent);
}

.perm-item{margin-bottom:10px}
.perm-item strong{display:block;margin-bottom:4px}
.perm-more summary{
  list-style:none;
  cursor:pointer;
  font-weight:600;
  color:var(--primary);
  margin-top:6px;
}

.ratings{
  margin-bottom:18px;
}

.ratings-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.large-rating{ text-align:right }
.big-number{
  font-size:28px;
  font-weight:800;
  display:block;
}

.review-list{display:flex;flex-direction:column;gap:10px}
.review{
  background:#fff;
  border-radius:10px;
  padding:10px;
  border:1px solid #eceff1;
}
.review-head{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}

.page-footer{
  text-align:center;
  color:var(--muted);
  font-size:13px;
  padding:18px 0 60px 0;
}

/* Responsive tweaks */
@media (min-width:560px){
  .screenshot{ width:200px; height:420px }
  .app-icon{ width:88px;height:88px;border-radius:14px }
}