:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --line:#e8eaf2;
  --text:#18212f;
  --muted:#6b7280;
  --brand:#111827;
  --brand2:#334155;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --radius:18px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 28px;
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:10;
}
.brand{
  font-size:22px;
  font-weight:700;
  letter-spacing:.5px;
}
.nav-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  font-weight:600;
}
.btn-dark{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.container{
  max-width:1480px;
  margin:0 auto;
  padding:28px;
}
.hero{
  background:linear-gradient(135deg,#111827,#334155);
  color:#fff;
  border-radius:24px;
  padding:42px;
  box-shadow:var(--shadow);
}
.hero h1{
  margin:0 0 12px 0;
  font-size:36px;
}
.hero p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:16px;
  line-height:1.7;
}
.section-title{
  margin:28px 0 16px 0;
  font-size:24px;
  font-weight:700;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.choice-card{
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.choice-card .cover{
  height:180px;
  background:linear-gradient(135deg,#1f2937,#475569);
}
.choice-card .content{
  padding:22px;
}
.choice-card h3{
  margin:0 0 10px 0;
  font-size:24px;
}
.choice-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.page-header h1{
  margin:0;
  font-size:30px;
}
.grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}
.type-card{
  overflow:hidden;
}
.type-card .img-wrap{
  aspect-ratio:1/1;
  background:#eef2ff;
}
.type-card .img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.type-card .info{
  padding:14px 16px 18px;
}
.type-card .name{
  font-size:18px;
  font-weight:700;
  margin:0 0 6px 0;
}
.type-card .desc{
  color:var(--muted);
  font-size:14px;
  margin:0;
}
.placeholder-panel{
  background:#fff;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  padding:28px;
  color:#475569;
}
.filter-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.fake-select{
  min-width:160px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  color:#475569;
}
@media (max-width:1100px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2{grid-template-columns:1fr}
}
@media (max-width:680px){
  .container{padding:18px}
  .topbar{padding:16px}
  .hero{padding:26px}
  .hero h1{font-size:28px}
  .grid-4{grid-template-columns:1fr}
}


.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1000;
}
.modal-backdrop.show{
  display:flex;
}
.modal-card{
  width:min(560px,100%);
  background:#fff;
  border-radius:22px;
  box-shadow:0 30px 80px rgba(15,23,42,.22);
  border:1px solid var(--line);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
}
.modal-head h3{
  margin:0;
  font-size:22px;
}
.icon-btn{
  border:none;
  background:#f1f5f9;
  width:38px;
  height:38px;
  border-radius:10px;
  cursor:pointer;
  font-size:18px;
}
.form-block{
  padding:22px 22px 10px;
}
.label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:700;
  color:#334155;
}
.input{
  width:100%;
  height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
  outline:none;
}
.input:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.18);
}
.form-error{
  margin:0 22px;
  padding:12px 14px;
  border-radius:12px;
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
  font-size:14px;
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 22px 22px;
}


.page-subtitle{
  margin:6px 0 0 0;
  color:var(--muted);
  font-size:15px;
}
.hover-lift{
  transition:transform .18s ease, box-shadow .18s ease;
}
.hover-lift:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}
.grid-8{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:16px;
}
.model-card{
  overflow:hidden;
}
.model-avatar{
  aspect-ratio:1/1;
  background:#f8fafc;
}
.model-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.model-info{
  padding:12px;
}
.model-name{
  margin:0 0 8px 0;
  font-weight:700;
  font-size:16px;
}
.model-meta{
  margin:0 0 6px 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.big-section-grid{
  display:grid;
  gap:22px;
}
.big-section{
  padding:0;
  overflow:hidden;
}
.big-section-head{
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  background:#fbfcff;
}
.big-section-head h3{
  margin:0;
  font-size:20px;
}
.base-info-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:22px;
  padding:22px;
}
.avatar-preview-box{
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:16px;
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:320px;
}
.avatar-preview-box img{
  width:100%;
  max-width:220px;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#fff;
}
.avatar-preview-box p{
  margin:14px 0 0 0;
  color:var(--muted);
}
.form-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.field{
  min-width:0;
}
.field-span-2{
  grid-column:1 / -1;
}
.textarea{
  width:100%;
  min-height:110px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  outline:none;
  resize:vertical;
  font-family:inherit;
}
.textarea:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.18);
}
.inline-read-row{
  display:flex;
  align-items:flex-end;
}
.upload-placeholder{
  padding:22px;
}
.media-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  padding:22px;
}
.upload-box-large{
  min-height:220px;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  background:#f8fafc;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px;
  text-align:center;
}
.upload-box-large p{
  margin:0 0 14px 0;
  color:var(--muted);
  line-height:1.7;
}
.sticky-form-actions{
  position:sticky;
  bottom:0;
  z-index:20;
  margin-top:22px;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:16px 20px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.section-error{
  margin:0 22px 22px;
}
@media (max-width:1400px){
  .grid-8{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}
@media (max-width:1200px){
  .grid-8{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .base-info-layout{
    grid-template-columns:1fr;
  }
}
@media (max-width:800px){
  .grid-8{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .form-grid-2,
  .media-split{
    grid-template-columns:1fr;
  }
}
@media (max-width:560px){
  .grid-8{
    grid-template-columns:1fr;
  }
}


.hidden-file{
  display:none;
}
.upload-btn{
  margin-top:12px;
}
.upload-preview-image{
  width:100%;
  max-width:420px;
  max-height:280px;
  object-fit:contain;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  display:block;
  margin:0 auto 14px;
}
.thumb-grid{
  width:100%;
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.thumb-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.thumb-image{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.video-file-list{
  width:100%;
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.video-file-item{
  width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  color:#334155;
  text-align:left;
}
.detail-top-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:22px;
  margin-bottom:22px;
}
.detail-side-card,
.detail-info-card,
.detail-section{
  overflow:hidden;
}
.detail-avatar-wrap{
  padding:18px;
}
.detail-avatar-wrap img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#f8fafc;
}
.detail-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:22px;
}
.info-line{
  border:1px solid var(--line);
  background:#fbfcff;
  border-radius:14px;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.info-line span{
  color:var(--muted);
  font-size:13px;
}
.info-line strong{
  font-size:16px;
  line-height:1.6;
  color:var(--text);
  white-space:pre-wrap;
  word-break:break-word;
}
.info-line-full{
  grid-column:1 / -1;
}
.detail-section{
  margin-bottom:22px;
}
.detail-section-body{
  padding:22px;
}
.card-image-large{
  display:block;
  width:100%;
  max-width:760px;
  border-radius:18px;
  border:1px solid var(--line);
}
.detail-gallery-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.gallery-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  display:block;
}
.video-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.video-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:#fbfcff;
}
.video-card video{
  width:100%;
  border-radius:12px;
  display:block;
  background:#000;
}
.video-card p{
  margin:10px 0 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  word-break:break-all;
}
@media (max-width:1200px){
  .detail-gallery-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media (max-width:980px){
  .detail-top-layout{
    grid-template-columns:1fr;
  }
  .detail-info-grid{
    grid-template-columns:1fr;
  }
  .video-grid{
    grid-template-columns:1fr;
  }
  .detail-gallery-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:700px){
  .detail-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:520px){
  .thumb-grid-2,
  .detail-gallery-grid{
    grid-template-columns:1fr;
  }
}


.btn-danger{
  background:#991b1b;
  color:#fff;
  border-color:#991b1b;
}
.existing-media-wrap{
  padding:0 22px 22px;
}
.manage-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.manage-media-card{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.manage-media-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.manage-media-footer{
  padding:12px;
}
.manage-media-footer p{
  margin:0 0 10px 0;
  font-size:13px;
  color:var(--muted);
  word-break:break-all;
  line-height:1.5;
}
@media (max-width:1200px){
  .manage-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:800px){
  .manage-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:520px){
  .manage-grid{
    grid-template-columns:1fr;
  }
}


.real-select{
  min-width:160px;
  height:46px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 14px;
  color:#334155;
  font-size:14px;
}
.full-width{
  width:100%;
}
.filter-bar-form{
  margin-bottom:18px;
}
.scene-form-wrap{
  padding:22px;
}
.checkbox-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.checkbox-tag{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.checkbox-tag span{
  font-size:14px;
  color:#334155;
}
.thumb-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width:900px){
  .checkbox-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .thumb-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:560px){
  .checkbox-grid,
  .thumb-grid-3{
    grid-template-columns:1fr;
  }
}


.home-hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  padding:34px;
  border-radius:28px;
  background:linear-gradient(135deg,#0f172a,#1e293b 55%,#334155);
  color:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.18);
}
.eyebrow{
  margin:0 0 12px 0;
  color:rgba(255,255,255,.7);
  font-size:12px;
  letter-spacing:.18em;
}
.home-hero h1{
  margin:0 0 12px 0;
  font-size:42px;
  line-height:1.15;
}
.hero-text{
  margin:0;
  line-height:1.8;
  color:rgba(255,255,255,.84);
}
.hero-actions{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.stat-card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:22px;
  padding:22px;
  backdrop-filter:blur(8px);
}
.stat-card strong{
  display:block;
  font-size:34px;
  line-height:1;
  margin-bottom:8px;
}
.stat-card span{
  color:rgba(255,255,255,.74);
}
.choice-card-upgraded{
  transition:transform .18s ease, box-shadow .18s ease;
}
.choice-card-upgraded:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}
.choice-card-banner{
  height:190px;
}
.banner-model{
  background:linear-gradient(135deg,#111827,#7c3aed);
}
.banner-scene{
  background:linear-gradient(135deg,#0f766e,#38bdf8);
}
.pagination-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}
.page-number-group{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.page-btn{
  min-width:42px;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
}
.page-btn.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.page-btn.disabled{
  color:#94a3b8;
  background:#f8fafc;
}
.gallery-button{
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
}
.image-modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.86);
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  z-index:2000;
}
.image-modal.show{
  display:flex;
}
.image-modal-content{
  max-width:min(92vw,1400px);
  max-height:88vh;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  background:#fff;
}
.image-modal-close{
  position:absolute;
  top:22px;
  right:22px;
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
@media (max-width:1100px){
  .home-hero{
    grid-template-columns:1fr;
  }
}
@media (max-width:700px){
  .home-hero{
    padding:24px;
  }
  .home-hero h1{
    font-size:32px;
  }
}


.link-list{
  display:grid;
  gap:14px;
}
.link-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.link-card-main{
  min-width:0;
}
.link-card-main a{
  display:inline-block;
  font-weight:700;
  color:#0f172a;
  word-break:break-all;
}
.link-url{
  margin:8px 0 6px 0;
  color:#64748b;
  font-size:13px;
  line-height:1.6;
  word-break:break-all;
}
.link-note{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.7;
  white-space:pre-wrap;
  word-break:break-word;
}
.detail-link-card{
  align-items:flex-start;
}
@media (max-width:700px){
  .link-card{
    flex-direction:column;
  }
}


.role-badge{
  display:inline-flex;
  align-items:center;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
}
.role-badge.admin{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}
.role-badge.guest{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
}
.login-wrap{
  display:flex;
  justify-content:center;
  padding:40px 0;
}
.login-card{
  width:min(520px,100%);
  padding:28px;
}
.login-card h1{
  margin:0 0 8px 0;
  font-size:30px;
}
.login-form{
  margin-top:18px;
  display:grid;
  gap:18px;
}
.login-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:8px;
}


.error-wrap{
  display:flex;
  justify-content:center;
  padding:40px 0;
}
.error-card{
  width:min(720px,100%);
  padding:34px;
  text-align:center;
}
.error-code{
  font-size:72px;
  font-weight:800;
  line-height:1;
  color:#0f172a;
  margin-bottom:14px;
}
.error-card h1{
  margin:0 0 10px 0;
  font-size:32px;
}
.error-text{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.error-actions{
  margin-top:24px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.status-card{
  padding:24px;
}
.status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.status-item{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  background:#fbfcff;
}
.status-item span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}
.status-item strong{
  display:block;
  font-size:15px;
  line-height:1.7;
  word-break:break-all;
}
.status-item-full{
  grid-column:1 / -1;
}
@media (max-width:700px){
  .status-grid{
    grid-template-columns:1fr;
  }
}


.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}
.banner-clothes{
  background:linear-gradient(135deg,#7c3aed,#f59e0b);
}
@media (max-width:1100px){
  .grid-3{
    grid-template-columns:1fr;
  }
}


.selection-fab{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1500;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:18px;
  background:#111827;
  color:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.25);
  cursor:pointer;
}
.selection-fab strong{
  min-width:28px;
  height:28px;
  border-radius:999px;
  background:#fff;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}
.selection-panel{
  position:fixed;
  right:24px;
  bottom:84px;
  width:min(420px, calc(100vw - 32px));
  max-height:70vh;
  display:none;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  z-index:1600;
  overflow:hidden;
}
.selection-panel.show{
  display:flex;
}
.selection-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}
.selection-panel-head h3{
  margin:0;
  font-size:20px;
}
.selection-panel-body{
  padding:14px 16px;
  overflow:auto;
}
.selection-group{
  margin-bottom:18px;
}
.selection-group h4{
  margin:0 0 10px 0;
  font-size:15px;
}
.selection-mini-list{
  display:grid;
  gap:10px;
}
.selection-mini-item{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfcff;
}
.selection-mini-item img{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:10px;
}
.selection-mini-main{
  min-width:0;
}
.selection-mini-main a{
  display:block;
  font-weight:700;
  color:#111827;
}
.selection-mini-main p{
  margin:4px 0 0 0;
  font-size:12px;
  color:#64748b;
  line-height:1.5;
}
.selection-remove-btn{
  border:none;
  background:#fee2e2;
  color:#991b1b;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}
.selection-empty{
  color:#94a3b8;
  font-size:14px;
}
.selection-panel-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:16px;
  border-top:1px solid var(--line);
  background:#fff;
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.summary-card{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.summary-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.summary-card-body{
  padding:10px 12px;
}
.summary-card-body strong{
  display:block;
  font-size:14px;
  color:#111827;
}
.summary-card-body p{
  margin:6px 0 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
@media (max-width:980px){
  .summary-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:700px){
  .selection-fab{
    right:16px;
    bottom:16px;
  }
  .selection-panel{
    right:16px;
    bottom:76px;
  }
  .summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:520px){
  .summary-grid{
    grid-template-columns:1fr;
  }
}
@media print{
  .topbar,
  .selection-fab,
  .selection-panel,
  .sticky-form-actions{
    display:none !important;
  }
  body{
    background:#fff;
  }
  .container{
    max-width:none;
    padding:0;
  }
}


.selectable-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.card-main-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.card-quick-actions{
  padding:0 14px 14px 14px;
}
.btn-sm{
  height:38px;
  padding:0 12px;
  border-radius:10px;
  font-size:13px;
}


.summary-page-header{
  margin-bottom:18px;
}
.summary-hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  padding:24px;
  border-radius:24px;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fff;
  margin-bottom:24px;
}
.summary-hero-label{
  margin:0 0 8px 0;
  font-size:12px;
  letter-spacing:.16em;
  color:rgba(255,255,255,.7);
}
.summary-hero h2{
  margin:0 0 10px 0;
  font-size:30px;
}
.summary-hero p{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.8;
}
.summary-stat-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.summary-stat-card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
}
.summary-stat-card strong{
  display:block;
  font-size:30px;
  line-height:1;
  margin-bottom:6px;
}
.summary-stat-card span{
  color:rgba(255,255,255,.76);
}
.summary-section{
  margin-bottom:18px;
}
.summary-card-clean{
  text-decoration:none;
  color:inherit;
}
.summary-card-clean .summary-card-body{
  min-height:86px;
}
.summary-actions{
  margin-top:22px;
}
@media (max-width:900px){
  .summary-hero{
    grid-template-columns:1fr;
  }
}
@media print{
  .summary-hero{
    background:#fff !important;
    color:#111827 !important;
    border:1px solid #cbd5e1;
  }
  .summary-hero p,
  .summary-hero-label,
  .summary-stat-card span{
    color:#475569 !important;
  }
  .summary-stat-card{
    background:#fff !important;
    border:1px solid #cbd5e1 !important;
  }
  .summary-section{
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .summary-card{
    break-inside:avoid;
    page-break-inside:avoid;
  }
}


.compact-summary-page{
  padding:6px 0 18px 0;
}
.compact-summary-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f8fafc;
}
.compact-summary-title h1{
  margin:0 0 4px 0;
  font-size:30px;
  line-height:1.15;
}
.compact-summary-title p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}
.compact-summary-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.compact-stat{
  min-width:90px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  text-align:center;
}
.compact-stat strong{
  display:block;
  font-size:24px;
  line-height:1;
  margin-bottom:4px;
  color:#0f172a;
}
.compact-stat span{
  font-size:12px;
  color:#64748b;
}
.compact-section{
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
.compact-section-head{
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  background:#fbfcff;
}
.compact-section-head h3{
  margin:0;
  font-size:16px;
}
.compact-summary-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:12px;
}
.compact-summary-card{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
  color:inherit;
}
.compact-summary-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.compact-summary-body{
  padding:8px 9px 10px 9px;
}
.compact-summary-body strong{
  display:block;
  font-size:13px;
  color:#111827;
  line-height:1.35;
  margin-bottom:4px;
}
.compact-summary-body p{
  margin:0;
  font-size:11px;
  line-height:1.45;
  color:#64748b;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.compact-empty{
  padding:14px;
  color:#94a3b8;
  font-size:13px;
}
.compact-summary-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.btn-small{
  height:36px;
  padding:0 12px;
  border-radius:10px;
  font-size:13px;
}
@media (max-width:1200px){
  .compact-summary-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
@media (max-width:980px){
  .compact-summary-top{
    flex-direction:column;
  }
  .compact-summary-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media (max-width:720px){
  .compact-summary-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:520px){
  .compact-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .compact-summary-title h1{
    font-size:24px;
  }
}
@media print{
  .topbar,
  .selection-fab,
  .selection-panel,
  .compact-summary-actions{
    display:none !important;
  }
  body{
    background:#fff !important;
  }
  .container{
    max-width:none !important;
    padding:0 !important;
  }
  .compact-summary-page{
    padding:0 !important;
  }
  .compact-summary-top,
  .compact-section,
  .compact-summary-card,
  .compact-stat{
    box-shadow:none !important;
  }
  .compact-summary-top{
    margin-bottom:8px;
    padding:10px 12px;
  }
  .compact-section{
    margin-bottom:8px;
  }
  .compact-section-head{
    padding:8px 10px;
  }
  .compact-summary-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:8px !important;
    padding:8px !important;
  }
  .compact-summary-body{
    padding:6px 7px 8px 7px;
  }
  .compact-summary-body strong{
    font-size:12px;
  }
  .compact-summary-body p{
    font-size:10px;
  }
}


.share-link-wrap{
  margin-top:14px;
}
.share-link-card{
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:14px;
}
.share-link-card label{
  display:block;
  font-size:13px;
  color:#64748b;
  margin-bottom:8px;
}
.share-link-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.share-link-row .input{
  flex:1;
}
@media (max-width:700px){
  .share-link-row{
    flex-direction:column;
    align-items:stretch;
  }
}


.compact-meta-form{
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:12px 14px;
}
.compact-meta-grid{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:12px;
}


@media (max-width:800px){
  .compact-meta-grid{
    grid-template-columns:1fr;
  }
}
@media print{
  .compact-remove-btn,
  .compact-meta-form{
    display:none !important;
  }
}


.compact-summary-item{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.compact-remove-btn{
  width:100%;
  border:none;
  border-radius:10px;
  height:30px;
  font-size:12px;
  background:#fee2e2;
  color:#991b1b;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.compact-remove-btn:hover{
  background:#fecaca;
}
@media print{
  .compact-remove-btn{
    display:none !important;
  }
}

/* === HOMEPAGE COMPACT OVERRIDE START === */
.home-hero{
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  gap:18px;
  padding:22px 24px;
  border-radius:24px;
  min-height:auto;
}

.eyebrow{
  margin:0 0 8px 0;
  font-size:11px;
  letter-spacing:.16em;
}

.home-hero h1{
  margin:0 0 10px 0;
  font-size:30px;
  line-height:1.12;
}

.hero-text{
  font-size:15px;
  line-height:1.65;
  max-width:760px;
}

.hero-actions{
  margin-top:16px;
  gap:10px;
}

.hero-actions .btn{
  padding:10px 16px;
  font-size:15px;
}

.hero-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-content:start;
}

.hero-stats .stat-card{
  min-height:112px;
  padding:18px 18px 16px;
  border-radius:18px;
}

.hero-stats .stat-card:last-child{
  grid-column:1 / -1;
}

.stat-card strong{
  font-size:28px;
  margin-bottom:6px;
}

.stat-card span{
  font-size:15px;
}

.section-title{
  margin:18px 0 12px 0;
  font-size:22px;
}

.grid-3{
  gap:16px;
  margin-top:0;
}

.choice-card{
  min-height:unset;
}

.choice-card-banner{
  height:120px;
}

.choice-card .content{
  padding:16px 18px 18px;
}

.choice-card h3{
  margin:0 0 8px 0;
  font-size:21px;
}

.choice-card p{
  line-height:1.6;
  font-size:14px;
}

@media (max-width: 1200px){
  .home-hero{
    grid-template-columns:1fr;
  }

  .hero-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .hero-stats .stat-card:last-child{
    grid-column:auto;
  }
}

@media (max-width: 860px){
  .hero-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .home-hero{
    padding:18px;
  }

  .home-hero h1{
    font-size:26px;
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

  .hero-stats .stat-card:last-child{
    grid-column:auto;
  }

  .choice-card-banner{
    height:104px;
  }
}
/* === HOMEPAGE COMPACT OVERRIDE END === */

/* === HOMEPAGE COMPACT V2 === */

.home-hero{
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:14px;
  padding:16px 20px;
  border-radius:22px;
}

.eyebrow{
  margin:0 0 6px 0;
  font-size:10px;
  letter-spacing:.18em;
}

.home-hero h1{
  margin:0 0 8px 0;
  font-size:26px;
  line-height:1.08;
}

.hero-text{
  font-size:14px;
  line-height:1.55;
  max-width:620px;
  margin-bottom:0;
}

.hero-actions{
  margin-top:12px;
  gap:8px;
}

.hero-actions .btn{
  padding:8px 14px;
  font-size:14px;
  border-radius:14px;
}

.hero-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-content:start;
}

.hero-stats .stat-card{
  min-height:86px;
  padding:14px 14px 12px;
  border-radius:16px;
}

.hero-stats .stat-card:last-child{
  grid-column:1 / -1;
}

.stat-card strong{
  font-size:22px;
  margin-bottom:4px;
  line-height:1;
}

.stat-card span{
  font-size:13px;
  line-height:1.3;
}

.section-title{
  margin:14px 0 10px 0;
  font-size:20px;
}

.grid-3{
  gap:14px;
}

.choice-card{
  border-radius:18px;
  overflow:hidden;
}

.choice-card-banner{
  height:90px;
}

.choice-card .content{
  padding:14px 16px 16px;
}

.choice-card h3{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1.2;
}

.choice-card p{
  font-size:13px;
  line-height:1.55;
  margin:0;
}

@media (max-width: 1200px){
  .home-hero{
    grid-template-columns:1fr;
  }

  .hero-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .hero-stats .stat-card:last-child{
    grid-column:auto;
  }
}

@media (max-width: 860px){
  .hero-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .home-hero{
    padding:14px;
  }

  .home-hero h1{
    font-size:23px;
  }

  .hero-text{
    font-size:13px;
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

  .hero-stats .stat-card:last-child{
    grid-column:auto;
  }

  .choice-card-banner{
    height:84px;
  }
}

/* === END HOMEPAGE COMPACT V2 === */\n\n/* === HOME APPEARANCE SETTINGS START === */
.home-hero-theme-blue{
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
}

.home-hero-theme-slate{
  background:linear-gradient(135deg,#111827,#475569);
  color:#fff;
}

.home-hero-theme-green{
  background:linear-gradient(135deg,#052e2b,#166534);
  color:#fff;
}

.home-hero-theme-black{
  background:linear-gradient(135deg,#111111,#2b2b2b);
  color:#fff;
}

.has-custom-cover{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.theme-radio-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.theme-radio-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  cursor:pointer;
  background:#fff;
}

.theme-radio-card input{
  margin:0;
}

.theme-radio-title{
  font-weight:700;
  font-size:15px;
}

.theme-chip{
  display:block;
  width:100%;
  height:42px;
  border-radius:12px;
}

.theme-chip-blue{background:linear-gradient(135deg,#0f172a,#1e3a8a);}
.theme-chip-slate{background:linear-gradient(135deg,#111827,#475569);}
.theme-chip-green{background:linear-gradient(135deg,#052e2b,#166534);}
.theme-chip-black{background:linear-gradient(135deg,#111111,#2b2b2b);}

.appearance-cover-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.appearance-cover-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

.appearance-cover-title{
  margin:0 0 10px 0;
  font-weight:700;
}

.appearance-cover-preview{
  height:160px;
  border-radius:14px;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid var(--line);
  margin-bottom:12px;
}

.appearance-cover-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.appearance-cover-empty{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--muted);
  padding:14px;
  font-size:14px;
}

.form-success{
  margin-top:16px;
  padding:12px 14px;
  border-radius:12px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#065f46;
  font-size:14px;
  font-weight:600;
}

@media (max-width: 980px){
  .theme-radio-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .appearance-cover-grid{
    grid-template-columns:1fr;
  }
}
/* === HOME APPEARANCE SETTINGS END === */\n\n\n/* === HOME COVER RENDER FIX START === */
.choice-card-banner.has-custom-cover{
  position:relative;
  overflow:hidden;
}

.choice-card-banner.has-custom-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:1;
  filter:none;
}


.appearance-page-actions{
  padding-right:220px;
  padding-bottom:12px;
}

@media (max-width: 980px){
  .appearance-page-actions{
    padding-right:0;
    padding-bottom:84px;
  }
}
/* === HOME COVER RENDER FIX END === */\n\n\n/* === ADMIN SHARES START === */
.admin-share-table-wrap{
  width:100%;
  overflow:auto;
}

.admin-share-table{
  width:100%;
  border-collapse:collapse;
  min-width:920px;
}

.admin-share-table th,
.admin-share-table td{
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}

.admin-share-table th{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
  background:#f8fafc;
}

.share-token-cell{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  color:#334155;
  word-break:break-all;
}

.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
/* === ADMIN SHARES END === */\n\n\n/* === ADMIN SHARE DELETE START === */
.btn-danger{
  background:#7f1d1d;
  color:#fff;
  border:1px solid #7f1d1d;
}

.btn-danger:hover{
  background:#991b1b;
  border-color:#991b1b;
}

.table-actions form{
  margin:0;
}
/* === ADMIN SHARE DELETE END === */\n\n\n/* === ADMIN SHARE SEARCH START === */
.admin-share-search-card{
  margin-bottom:16px;
}

.admin-share-search-form{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.admin-share-search-input{
  flex:1 1 360px;
  min-width:260px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 14px;
  font-size:14px;
  outline:none;
  background:#fff;
}

.admin-share-search-input:focus{
  border-color:#94a3b8;
}

@media (max-width: 720px){
  .admin-share-search-form{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-share-search-input{
    width:100%;
    min-width:0;
  }
}
/* === ADMIN SHARE SEARCH END === */\n\n\n/* === SHARE STATUS FILTER START === */
.admin-share-filter-select{
  min-width:150px;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  font-size:14px;
  background:#fff;
  outline:none;
}

.admin-share-filter-select:focus{
  border-color:#94a3b8;
}
/* === SHARE STATUS FILTER END === */\n

/* === SHARE BULK DELETE START === */
.check-col{
  width:72px;
  text-align:center;
}

.check-col input[type="checkbox"]{
  width:16px;
  height:16px;
}

.bulk-delete-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.bulk-check-all-label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}

@media (max-width: 720px){
  .bulk-delete-bar{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* === SHARE BULK DELETE END === */\n\n/* === SHARE BULK DELETE FIX START === */
.bulk-delete-bar-safe{
  padding-right:220px;
  padding-bottom:12px;
}

@media (max-width: 980px){
  .bulk-delete-bar-safe{
    padding-right:0;
    padding-bottom:84px;
  }
}
/* === SHARE BULK DELETE FIX END === */\n\n\n/* === SHARE BULK BAR POSITION FIX START === */
.bulk-delete-bar-floating{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  padding:16px 220px 6px 0;
  border-top:1px solid var(--line);
}

.bulk-delete-bar-floating form{
  margin:0;
}

@media (max-width: 980px){
  .bulk-delete-bar-floating{
    flex-direction:column;
    align-items:flex-start;
    padding:16px 0 84px 0;
  }
}
/* === SHARE BULK BAR POSITION FIX END === */\n\n\n/* === SHARE PAGINATION START === */
.share-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  padding-right:220px;
}

.share-pagination-info{
  font-size:14px;
  color:var(--muted);
}

.share-pagination-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 980px){
  .share-pagination{
    flex-direction:column;
    align-items:flex-start;
    padding-right:0;
    padding-bottom:84px;
  }
}
/* === SHARE PAGINATION END === */\n\n\n/* === SHARE PAGINATION FORCE FIX START === */
.share-pagination-safe{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  padding:14px 220px 90px 0;
  border-top:1px solid var(--line);
}

.share-pagination-info{
  font-size:14px;
  color:var(--muted);
}

.share-pagination-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 980px){
  .share-pagination-safe{
    flex-direction:column;
    align-items:flex-start;
    padding:14px 0 110px 0;
  }
}
/* === SHARE PAGINATION FORCE FIX END === */\n

/* PATCH_FRONT_UI_V1 */
body[data-page="/"]{
  background:#18181b;
}
body[data-page="/"] .topbar{
  background:#18181b;
  border-bottom:1px solid rgba(255,255,255,.08);
}
body[data-page="/"] .brand{
  display:none;
}
body[data-page="/"] .nav-actions{
  width:100%;
  justify-content:flex-end;
}
body[data-page="/"] .topbar .btn{
  background:#27272a;
  color:#fafafa;
  border-color:#3f3f46;
}
body[data-page="/"] .topbar .btn.btn-dark{
  background:#fafafa;
  color:#18181b;
  border-color:#fafafa;
}
body[data-page="/"] .role-badge{
  background:rgba(255,255,255,.08);
  color:#f4f4f5;
}
body[data-page="/"] .container{
  max-width:1320px;
}
.home-minimal{
  padding:18px 0 6px;
}
.home-entry-grid{
  margin-top:0;
}
body[data-page="/"] .choice-card-upgraded{
  background:#242428;
  border-color:#3a3a40;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
body[data-page="/"] .choice-card-upgraded .content{
  padding:18px 20px 22px;
}
body[data-page="/"] .choice-card-upgraded h3{
  margin:0 0 8px 0;
  color:#ffffff;
  font-size:28px;
}
body[data-page="/"] .choice-card-upgraded p{
  color:rgba(255,255,255,.72);
  line-height:1.6;
}
body[data-page="/"] .choice-card-banner{
  min-height:260px;
}
.filter-row{
  align-items:center;
}
@media (max-width:700px){
  .topbar{
    padding:12px 14px;
    align-items:flex-start;
  }
  .nav-actions{
    width:100%;
    gap:8px;
  }
  .nav-actions .btn{
    min-height:38px;
    padding:0 12px;
    font-size:13px;
  }
  .page-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .filter-row > *{
    flex:1 1 calc(50% - 8px);
    min-width:0 !important;
  }
  .real-select{
    width:100%;
    min-width:0;
  }
  .grid-8{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .model-info{
    padding:10px;
  }
  .model-name{
    font-size:14px;
    margin-bottom:6px;
  }
  .model-meta{
    font-size:12px;
    margin-bottom:4px;
    line-height:1.35;
  }
  .card-quick-actions{
    padding:0 10px 10px;
  }
  .card-quick-actions .btn{
    width:100%;
    min-height:36px;
    font-size:12px;
  }
  body[data-page="/"] .choice-card-banner{
    min-height:190px;
  }
  body[data-page="/"] .choice-card-upgraded h3{
    font-size:22px;
  }
}
@media (max-width:420px){
  .container{
    padding:14px;
  }
  .filter-row > *{
    flex:1 1 100%;
  }
}


/* PATCH_MOBILE_UI_V2 */

/* 通用容器与间距 */
.container{
  width:min(1320px, calc(100% - 32px));
}
.card{
  overflow:hidden;
}
.card img{
  display:block;
}

/* 各类列表栅格更稳定 */
.grid-8{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.grid-6{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

/* 列表卡片通用优化 */
.model-card,
.scene-card,
.clothing-card,
.choice-card{
  border-radius:18px;
}
.model-avatar img,
.scene-cover img,
.clothing-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.model-avatar{
  aspect-ratio: 3 / 4;
  overflow:hidden;
}
.scene-cover,
.clothing-cover{
  aspect-ratio: 4 / 3;
  overflow:hidden;
}

.model-info,
.scene-info,
.clothing-info{
  padding:12px;
}
.model-name,
.scene-name,
.clothing-name{
  font-size:15px;
  line-height:1.35;
  margin:0 0 6px;
}
.model-meta,
.scene-meta,
.clothing-meta{
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.75);
}

/* 筛选区统一 */
.filter-bar-form{
  margin:10px 0 18px;
}
.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.filter-row .btn,
.filter-row .real-select,
.filter-row input[type="text"],
.filter-row input[type="search"]{
  min-height:42px;
}

/* 详情页图片区 */
.detail-gallery,
.media-grid,
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.detail-gallery img,
.media-grid img,
.gallery-grid img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  border-radius:14px;
}

/* 详情页信息区 */
.detail-layout,
.detail-main,
.detail-wrapper{
  gap:18px;
}
.info-panel,
.detail-panel,
.meta-panel{
  border-radius:16px;
}

/* 已选/分享页 */
.selected-list,
.share-items,
.selection-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.selected-item,
.share-item,
.selection-item{
  border-radius:16px;
}

/* 按钮更适合手机点击 */
.btn,
button,
input[type="submit"]{
  min-height:40px;
}
.btn-sm{
  min-height:34px;
}

/* 平板 */
@media (max-width: 1024px){
  .container{
    width:min(100%, calc(100% - 28px));
  }
  .grid-8{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .grid-4{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .detail-gallery,
  .media-grid,
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* 手机 */
@media (max-width: 768px){
  .container{
    width:calc(100% - 24px);
  }

  .page-header{
    gap:12px;
    margin-bottom:14px;
  }

  .page-header h1{
    font-size:22px;
    line-height:1.3;
  }

  .page-subtitle{
    font-size:13px;
    line-height:1.5;
  }

  .grid-8{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .grid-6{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .grid-3{
    grid-template-columns:1fr;
    gap:14px;
  }

  .model-info,
  .scene-info,
  .clothing-info{
    padding:10px;
  }

  .model-name,
  .scene-name,
  .clothing-name{
    font-size:14px;
  }

  .model-meta,
  .scene-meta,
  .clothing-meta{
    font-size:11px;
  }

  .filter-row{
    gap:8px;
  }

  .filter-row > *{
    flex:1 1 calc(50% - 8px);
    min-width:0;
  }

  .filter-row .btn,
  .filter-row .real-select,
  .filter-row input[type="text"],
  .filter-row input[type="search"]{
    width:100%;
    font-size:13px;
  }

  .detail-gallery,
  .media-grid,
  .gallery-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .detail-gallery img,
  .media-grid img,
  .gallery-grid img{
    aspect-ratio: 16 / 10;
  }

  .selected-list,
  .share-items,
  .selection-list{
    grid-template-columns:1fr;
    gap:10px;
  }

  .card-quick-actions{
    padding:0 10px 10px;
  }

  .card-quick-actions .btn{
    width:100%;
  }

  table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
  }
}

/* 小屏手机 */
@media (max-width: 480px){
  .container{
    width:calc(100% - 18px);
  }

  .topbar{
    padding:10px 12px;
  }

  .page-header h1{
    font-size:20px;
  }

  .filter-row > *{
    flex:1 1 100%;
  }

  .grid-8,
  .grid-6,
  .grid-4{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .model-avatar{
    aspect-ratio: 3 / 4.2;
  }
  .scene-cover,
  .clothing-cover{
    aspect-ratio: 4 / 3.2;
  }

  .model-info,
  .scene-info,
  .clothing-info{
    padding:9px;
  }

  .model-name,
  .scene-name,
  .clothing-name{
    font-size:13px;
  }

  .model-meta,
  .scene-meta,
  .clothing-meta{
    font-size:11px;
    line-height:1.35;
  }

  .btn,
  button,
  input[type="submit"]{
    min-height:38px;
  }
}
