/* V4 source title picker: self-contained, readable icon cards.
   Loaded after v4-v2-design-parity.css to replace its obsolete 50px
   icon-only picker rules. Native title render canvas is unaffected. */
#v4-appearance #v4-v2-title-list{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:17px;
  min-width:0;
  width:100%;
}
#v4-appearance #v4-v2-title-list .v4-v2-title-section{
  min-width:0;
  width:100%;
  gap:8px;
}
#v4-appearance #v4-v2-title-list .v4-v2-title-section>.small{
  display:block;
  margin:0 0 2px;
  color:#b4d6e8;
  font:700 11px/1.3 Inter,system-ui,sans-serif;
}
#v4-appearance #v4-v2-title-list .v4-v2-title-rule{
  display:block;
  margin:-4px 0 2px;
  color:#8fb4cc;
  font:500 10px/1.35 Inter,system-ui,sans-serif;
}
#v4-appearance #v4-v2-title-list .v4-v2-title-buttons.v4-v2-icon-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,102px),1fr));
  gap:9px;
  width:100%;
  min-width:0;
  align-items:stretch;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice{
  box-sizing:border-box;
  display:flex;
  position:relative;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:100%;
  min-width:0;
  max-width:none;
  height:92px;
  min-height:92px;
  padding:9px 5px 7px;
  border:1px solid rgba(144,200,239,.25);
  border-radius:13px;
  background:linear-gradient(150deg,rgba(45,84,120,.25),rgba(19,42,69,.26));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
  overflow:hidden;
  cursor:pointer;
  text-align:center;
  color:#d9eafa;
  font:600 11px/1.2 Inter,system-ui,sans-serif;
  text-shadow:none;
  transition:background .14s,border-color .14s,box-shadow .14s;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice:hover{
  background:rgba(60,110,155,.36);
  border-color:rgba(161,222,255,.52);
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice:focus-visible{
  outline:2px solid #74dfff;
  outline-offset:2px;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice.on{
  background:linear-gradient(145deg,rgba(38,132,189,.38),rgba(22,75,126,.38));
  border-color:rgba(118,216,255,.8);
  box-shadow:inset 0 0 0 1px rgba(145,225,255,.16),0 0 13px rgba(43,187,255,.11);
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice :is(img,canvas).v4-v2-title-icon{
  display:block;
  flex:0 0 38px;
  width:38px;
  height:38px;
  min-width:0;
  max-width:38px;
  max-height:38px;
  margin:0 auto;
  padding:0;
  object-fit:contain;
  object-position:center;
  image-rendering:pixelated;
  pointer-events:none;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice .v4-title-label{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  flex:0 0 auto;
  min-width:0;
  width:100%;
  max-width:100%;
  max-height:31px;
  padding:0;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
  text-align:center;
  color:#deefff;
  text-shadow:none;
  font:600 11px/1.27 Inter,system-ui,sans-serif;
  letter-spacing:0;
  pointer-events:none;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice.on .v4-title-label{
  color:#fff;
  font-weight:700;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice.v4-v2-title-choice--text-only{
  padding:11px 7px;
}
#v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice.v4-v2-title-choice--text-only .v4-title-label{
  max-height:none;
  font-size:12px;
  -webkit-line-clamp:3;
}
@media(max-width:600px){
  #v4-appearance #v4-v2-title-list .v4-v2-title-buttons.v4-v2-icon-grid{
    grid-template-columns:repeat(auto-fill,minmax(min(100%,96px),1fr));
    gap:7px;
  }
  #v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice{
    height:90px;
    min-height:90px;
    padding:8px 4px 7px;
  }
}
@media(max-width:360px){
  #v4-appearance #v4-v2-title-list .v4-v2-title-buttons.v4-v2-icon-grid{
    grid-template-columns:repeat(auto-fill,minmax(min(100%,86px),1fr));
  }
  #v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice .v4-title-label{
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  #v4-appearance #v4-v2-title-list .v4-v2-icon-grid .v4-v2-title-choice{
    transition:none;
  }
}
