/* Kakao webview shared shell, cards, and stat grids. */

/* Kakao chatbot beta webview pages */
.kakao-webview-topbar{
  position:sticky;
  top:0;
  z-index:30;
  padding:8px 18px 7px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #e8edf6;
  box-shadow:0 5px 16px rgba(29,45,73,.05);
}
.kakao-webview-topbar .brand{
  min-height:40px;
}
.kakao-webview-topbar .brand-left{
  min-width:0;
  gap:9px;
}
.kakao-webview-topbar .brand-mark{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:12px;
}
.kakao-webview-topbar .brand-copy h1{
  font-size:19px;
  line-height:1.12;
  margin:0;
}
.kakao-webview-topbar .brand-copy small{
  display:block;
  margin-top:2px;
  font-size:11px;
  line-height:1.25;
  font-weight:650;
}
.kakao-webview-page{
  display:grid;
  gap:16px;
  padding:22px 22px 34px;
}
.kakao-webview-page .surface-card{
  border-radius:24px;
  padding:22px;
}
.kakao-webview-page .page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.kakao-webview-page .page-head h2,
.kakao-webview-page .page-head h3{
  margin:0;
  line-height:1.25;
  word-break:keep-all;
}
.kakao-webview-page .page-head p{
  margin:8px 0 0;
  line-height:1.58;
  word-break:keep-all;
}
.kakao-webview-page .pill{
  flex:0 0 auto;
  max-width:100%;
  white-space:nowrap;
}
.kakao-page{
  min-height:100vh;
  display:grid;
  align-content:start;
  gap:16px;
  padding:22px;
  background:#f6f8fb;
}
.kakao-card{
  width:min(560px,100%);
  margin:0 auto;
  border:1px solid #e8eef7;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 34px rgba(16,24,40,.08);
  padding:18px;
}
.kakao-card h1{
  margin:0;
  color:#101828;
  font-size:23px;
  line-height:1.22;
  font-weight:720;
  letter-spacing:0;
  word-break:keep-all;
}
.kakao-card p{
  margin:10px 0 0;
  color:#475467;
  font-size:14px;
  line-height:1.58;
  word-break:keep-all;
}
.kakao-card-image{
  width:100%;
  aspect-ratio:1.91/1;
  display:block;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:16px;
  background:#f1f5f9;
}
.kakao-info-list{
  display:grid;
  gap:8px;
  margin:16px 0;
}
.kakao-info-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #edf2f7;
  border-radius:12px;
  background:#f8fbff;
  padding:10px 12px;
}
.kakao-info-list span{
  color:#667085;
  font-size:12px;
  font-weight:650;
}
.kakao-info-list b{
  color:#101828;
  font-size:12px;
  font-weight:720;
  text-align:right;
}
.kakao-reward-list{
  display:grid;
  gap:8px;
  margin:0 0 16px;
  padding:0;
  list-style:none;
}
.kakao-reward-list li{
  border:1px solid #e5f0ff;
  border-radius:12px;
  background:#f7fbff;
  color:#175cd3;
  font-size:13px;
  font-weight:680;
  line-height:1.4;
  padding:10px 12px;
}
.kakao-hero-card .page-head{
  margin-bottom:0;
}
.kakao-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.kakao-stat-grid .profile-stat-card,
.group-stat-grid .profile-stat-card{
  min-height:76px;
  padding:10px 8px;
  border-radius:16px;
}
.kakao-stat-grid .profile-stat-card{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:"icon label" "icon value";
  align-items:center;
  column-gap:7px;
}
.kakao-stat-grid .profile-stat-icon{
  grid-area:icon;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eef5ff;
  color:#1877f2;
}
.kakao-stat-grid .profile-stat-icon img{
  width:22px;
  height:22px;
  object-fit:contain;
}
.kakao-stat-grid .profile-stat-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kakao-stat-grid .profile-stat-icon b{
  font-size:12px;
  font-weight:800;
}
.group-stat-grid .profile-stat-card>span{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
}
.group-stat-grid .profile-stat-card svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin:0;
  fill:none;
  stroke:#1877f2;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kakao-stat-grid .profile-stat-card small,
.group-stat-grid .profile-stat-card small{
  grid-area:label;
  display:block;
  margin-bottom:3px;
  line-height:1.35;
  font-size:10px;
  font-weight:600;
  word-break:keep-all;
}
.group-stat-grid .profile-stat-card>span small{
  margin:0;
}
.kakao-stat-grid .profile-stat-card strong,
.group-stat-grid .profile-stat-card strong{
  grid-area:value;
  display:block;
  line-height:1;
  font-size:18px;
  font-weight:760;
}
