/* t797: collapse-strip chrome.
   Default (no param, ?colv=0, ?colv=2, html[data-colv=2]) is variant 2: complete pill on a full-width midline.
   ?colv=old (html[data-colv=old]) restores the previous empty-bar look.
   ?colv=1|3|4 remain previews.
   Scoped to the home page only: left rail (.j10-left) and the center fold ([data-desp-fold=center]).
   Band fold, TV (.alx-left), and every other page are untouched.
   Desktop only (>=901px), same as the existing fold/rail chrome. */
@media (min-width: 901px) {

/* ---------- shared helpers ---------- */
html[data-colv] body.desp-chrome-j10home .j10-left,
html[data-colv] body.desp-chrome-j10home .hm-featmods,
html[data-colv] [data-desp-fold="center"]{
  position:relative;
  overflow:visible;
}

/* ========================================================================
   colv=1 — no strip; small round arrow at the top-right corner of the panel
   ======================================================================== */
html[data-colv="1"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head{
  position:absolute;
  top:8px;
  right:36px;
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="1"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button{
  pointer-events:auto;
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid var(--drl-line);
  background:#fff;
  color:var(--drl-ink);
  box-shadow:0 1px 3px #3d08081f;
}
html[data-colv="1"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button:hover{
  background:var(--drl-ink);
  border-color:var(--drl-ink);
  color:#fff;
}
html[data-colv="1"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left [data-mod]:first-of-type > :first-child{
  padding-right:66px!important;
}
/* collapsed rail: compact round control at the top of the icon strip, no empty bar */
html[data-colv="1"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head{
  justify-content:center;
  min-height:0;
  width:100%;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
}
html[data-colv="1"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head button{
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid var(--drl-line);
  background:#fff;
  box-shadow:0 1px 2px #3d08081a;
}

html[data-colv="1"]:not([data-folded-center]) [data-desp-fold="center"] > .dfold-head,
html[data-colv="1"] [data-desp-fold="center"]:not(.is-folded) > .dfold-head{
  position:absolute;
  top:8px;
  right:8px;
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="1"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-chips,
html[data-colv="1"] [data-desp-fold="center"]:not(.is-folded) .dfold-chips{
  display:none!important;
}
html[data-colv="1"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog,
html[data-colv="1"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog{
  pointer-events:auto;
  width:26px;
  height:26px;
  margin:0;
  border-radius:50%;
  border:1px solid var(--dfold-line);
  background:#fff;
  box-shadow:0 1px 3px #3d08081f;
}
html[data-colv="1"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog:hover,
html[data-colv="1"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog:hover{
  background:var(--dfold-chip-hover);
}
html[data-colv="1"]:not([data-folded-center]) [data-desp-fold="center"] .hm-ftabv-3 h3.hm-tabs-title,
html[data-colv="1"] [data-desp-fold="center"]:not(.is-folded) .hm-ftabv-3 h3.hm-tabs-title{
  padding-right:36px!important;
  box-sizing:border-box;
}
/* folded center: chips stay; toggle is the same round button on the right */
html[data-colv="1"][data-folded-center] [data-desp-fold="center"] > .dfold-head,
html[data-colv="1"] [data-desp-fold="center"].is-folded > .dfold-head{
  position:relative;
  top:auto;
  right:auto;
  pointer-events:auto;
  width:auto;
  min-height:28px;
  margin:0 0 2px!important;
  padding:2px 2px 6px!important;
  border-bottom:1px solid var(--dfold-line);
}
html[data-colv="1"][data-folded-center] [data-desp-fold="center"] .dfold-chips,
html[data-colv="1"] [data-desp-fold="center"].is-folded .dfold-chips{
  display:flex!important;
}
html[data-colv="1"][data-folded-center] [data-desp-fold="center"] .dfold-tog,
html[data-colv="1"] [data-desp-fold="center"].is-folded .dfold-tog{
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid var(--dfold-line);
  background:#fff;
  box-shadow:0 1px 2px #3d08081a;
}

/* ========================================================================
   colv=2 — complete oval/pill on a full-width line through its middle.
   Same handle in expanded and collapsed; only the arrow flips.
   ======================================================================== */
/* Shared handle row: 22px tall, line through the vertical center, complete pill on top. */
html[data-colv="2"] body.desp-chrome-j10home .j10-left > .drl-head,
html[data-colv="2"] [data-desp-fold="center"] > .dfold-head{
  position:relative;
  overflow:visible;
  justify-content:center;
  align-items:center;
  min-height:22px!important;
  height:22px;
  margin:0 0 8px!important;
  padding:0!important;
  border:0!important;
  background:transparent;
}
html[data-colv="2"] body.desp-chrome-j10home .j10-left > .drl-head::after,
html[data-colv="2"] [data-desp-fold="center"] > .dfold-head::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:11px;
  bottom:auto;
  border-top:1px solid var(--drl-line, var(--dfold-line));
  z-index:0;
  pointer-events:none;
}
html[data-colv="2"] [data-desp-fold="center"] > .dfold-head::after{
  border-top-color:var(--dfold-line);
}
html[data-colv="2"] body.desp-chrome-j10home .j10-left > .drl-head button,
html[data-colv="2"] [data-desp-fold="center"] .dfold-tog{
  position:relative;
  z-index:1;
  left:auto;
  top:auto;
  bottom:auto;
  transform:none;
  margin:2px auto;
  width:40px;
  max-width:calc(100% - 4px);
  height:18px;
  border-radius:999px;
  border:1px solid var(--drl-line, var(--dfold-line));
  background:#fff;
  box-shadow:none;
  flex:none;
}
html[data-colv="2"] [data-desp-fold="center"] .dfold-tog{
  border-color:var(--dfold-line);
}
html[data-colv="2"] body.desp-chrome-j10home .j10-left > .drl-head button svg,
html[data-colv="2"] [data-desp-fold="center"] .dfold-tog svg{
  width:12px;
  height:12px;
}
html[data-colv="2"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-chips,
html[data-colv="2"] [data-desp-fold="center"]:not(.is-folded) .dfold-chips{
  display:none!important;
}
/* Folded center: same strip+pill at the TOP of the panel; chip row sits underneath. Only the arrow flips. */
html[data-colv="2"][data-folded-center] [data-desp-fold="center"] > .dfold-head,
html[data-colv="2"] [data-desp-fold="center"].is-folded > .dfold-head{
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:stretch;
  justify-content:flex-start;
  height:auto;
  min-height:22px!important;
  margin:0 0 8px!important;
  padding:0!important;
}
html[data-colv="2"][data-folded-center] [data-desp-fold="center"] .dfold-tog,
html[data-colv="2"] [data-desp-fold="center"].is-folded .dfold-tog{
  order:-1;
  margin:2px auto;
}
html[data-colv="2"][data-folded-center] [data-desp-fold="center"] .dfold-chips,
html[data-colv="2"] [data-desp-fold="center"].is-folded .dfold-chips{
  display:flex!important;
  width:100%;
  flex:0 0 auto;
  order:0;
  margin-top:4px;
}
html[data-colv="2"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head{
  width:100%;
  margin:0 0 8px!important;
}

/* ========================================================================
   colv=3 — arrow sits in the first module header / folder-tab row
   Position is refined by despani-colv.js (--colv3-top / --colv3-right).
   ======================================================================== */
html[data-colv="3"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head{
  position:absolute;
  top:var(--colv3-top, 6px);
  right:var(--colv3-right, 36px);
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="3"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button{
  pointer-events:auto;
  width:26px;
  height:26px;
  border-radius:6px;
  border:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
}
html[data-colv="3"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button:hover{
  background:rgba(255,255,255,.18);
  border-color:transparent;
  color:#fff;
}
html[data-colv="3"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left [data-mod]:first-of-type > :first-child{
  padding-right:66px!important;
}
/* collapsed: keep a compact toggle at the top of the icon strip */
html[data-colv="3"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head{
  position:relative;
  top:auto;
  right:auto;
  pointer-events:auto;
  justify-content:center;
  width:100%;
  min-height:0;
  margin:0 0 4px!important;
  padding:0!important;
  border:0!important;
}
html[data-colv="3"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head button{
  width:26px;
  height:26px;
  color:var(--drl-ink);
  background:#fff;
  border:1px solid var(--drl-line);
  box-shadow:0 1px 2px #3d08081a;
}
html[data-colv="3"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head button:hover{
  background:var(--drl-ink);
  border-color:var(--drl-ink);
  color:#fff;
}

html[data-colv="3"]:not([data-folded-center]) [data-desp-fold="center"] > .dfold-head,
html[data-colv="3"] [data-desp-fold="center"]:not(.is-folded) > .dfold-head{
  position:absolute;
  top:var(--colv3-top, 28px);
  right:var(--colv3-right, 10px);
  left:auto;
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="3"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-chips,
html[data-colv="3"] [data-desp-fold="center"]:not(.is-folded) .dfold-chips{
  display:none!important;
}
html[data-colv="3"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog,
html[data-colv="3"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog{
  pointer-events:auto;
  width:26px;
  height:26px;
  margin:0;
  border-radius:6px;
  border:1px solid #e0d8d4;
  background:#fff;
  color:#7d0001;
  box-shadow:0 1px 2px #3d08081a;
}
html[data-colv="3"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog:hover,
html[data-colv="3"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog:hover{
  background:#fff;
  color:#7d0001;
}
html[data-colv="3"]:not([data-folded-center]) [data-desp-fold="center"] .hm-tabsmod-wrap:first-child .hm-ftabv-3 .hm-tabs-seg,
html[data-colv="3"] [data-desp-fold="center"]:not(.is-folded) .hm-tabsmod-wrap:first-child .hm-ftabv-3 .hm-tabs-seg{
  width:auto;
  max-width:calc(100% - 40px);
}
/* folded: ordinary chip row, toggle on the right */
html[data-colv="3"][data-folded-center] [data-desp-fold="center"] > .dfold-head,
html[data-colv="3"] [data-desp-fold="center"].is-folded > .dfold-head{
  position:relative;
  top:auto;
  right:auto;
  pointer-events:auto;
  width:auto;
  min-height:28px;
  margin:0 0 2px!important;
  padding:2px 2px 6px!important;
  border-bottom:1px solid var(--dfold-line);
}
html[data-colv="3"][data-folded-center] [data-desp-fold="center"] .dfold-chips,
html[data-colv="3"] [data-desp-fold="center"].is-folded .dfold-chips{
  display:flex!important;
}

/* ========================================================================
   colv=4 — slim vertical edge handle; pill at bottom-center when collapsed
   ======================================================================== */
html[data-colv="4"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head{
  position:absolute;
  top:44px;
  right:0;
  transform:none;
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="4"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button{
  pointer-events:auto;
  width:18px;
  height:52px;
  border-radius:8px 0 0 8px;
  border:1px solid var(--drl-line);
  background:#fff;
  color:var(--drl-ink);
  box-shadow:-1px 0 3px #3d08081a;
}
html[data-colv="4"]:not(.desp-left-collapsed) body.desp-chrome-j10home .j10-left > .drl-head button:hover{
  background:var(--drl-ink);
  border-color:var(--drl-ink);
  color:#fff;
}
/* collapsed rail: pill at the bottom center of the icon strip */
html[data-colv="4"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head{
  position:relative;
  top:auto;
  right:auto;
  transform:none;
  order:2;
  pointer-events:auto;
  justify-content:center;
  width:100%;
  min-height:0;
  margin:auto 0 0!important;
  padding:6px 0 0!important;
  border:0!important;
  border-top:1px solid var(--drl-line);
}
html[data-colv="4"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-body{
  order:1;
}
html[data-colv="4"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head button{
  width:36px;
  height:22px;
  border-radius:11px;
  border:1px solid var(--drl-line);
  background:#fff;
  color:var(--drl-ink);
  box-shadow:0 1px 2px #3d08081a;
}
html[data-colv="4"].desp-left-collapsed:not(.drl-drawer) body.desp-chrome-j10home .j10-left > .drl-head button:hover{
  background:var(--drl-ink);
  border-color:var(--drl-ink);
  color:#fff;
}

html[data-colv="4"]:not([data-folded-center]) [data-desp-fold="center"],
html[data-colv="4"] [data-desp-fold="center"]:not(.is-folded){
  overflow:visible;
}
html[data-colv="4"]:not([data-folded-center]) [data-desp-fold="center"] > .dfold-head,
html[data-colv="4"] [data-desp-fold="center"]:not(.is-folded) > .dfold-head{
  position:absolute;
  top:44px;
  right:0;
  transform:none;
  z-index:8;
  display:flex;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  width:auto;
  border:0!important;
  pointer-events:none;
  background:transparent;
}
html[data-colv="4"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-chips,
html[data-colv="4"] [data-desp-fold="center"]:not(.is-folded) .dfold-chips{
  display:none!important;
}
html[data-colv="4"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog,
html[data-colv="4"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog{
  pointer-events:auto;
  width:18px;
  height:52px;
  margin:0;
  border-radius:8px 0 0 8px;
  border:1px solid var(--dfold-line);
  background:#fff;
  color:var(--dfold-ink);
  box-shadow:-1px 0 3px #3d08081a;
}
html[data-colv="4"]:not([data-folded-center]) [data-desp-fold="center"] .dfold-tog:hover,
html[data-colv="4"] [data-desp-fold="center"]:not(.is-folded) .dfold-tog:hover{
  background:var(--dfold-ink);
  border-color:var(--dfold-ink);
  color:#fff;
}
/* folded center: chips, then a pill at bottom-center */
html[data-colv="4"][data-folded-center] [data-desp-fold="center"] > .dfold-head,
html[data-colv="4"] [data-desp-fold="center"].is-folded > .dfold-head{
  position:relative;
  top:auto;
  right:auto;
  transform:none;
  pointer-events:auto;
  flex-wrap:wrap;
  justify-content:center;
  width:auto;
  min-height:28px;
  margin:0 0 2px!important;
  padding:2px 2px 8px!important;
  border-bottom:0;
}
html[data-colv="4"][data-folded-center] [data-desp-fold="center"] .dfold-chips,
html[data-colv="4"] [data-desp-fold="center"].is-folded .dfold-chips{
  display:flex!important;
  flex:0 0 100%;
  width:100%;
  justify-content:center;
}
html[data-colv="4"][data-folded-center] [data-desp-fold="center"] .dfold-tog,
html[data-colv="4"] [data-desp-fold="center"].is-folded .dfold-tog{
  width:48px;
  height:22px;
  margin:8px auto 0;
  border-radius:11px;
  border:1px solid var(--dfold-line);
  background:#fff;
  color:var(--dfold-ink);
  box-shadow:0 1px 2px #3d08081a;
}

}
