/* =========================================================
   XSeller V3.6.5-R1.4 — HOME GRID REORDER FIX
   Goal:
   - move the Resize card up into the empty slot above the AI assistant card
   - keep the AI assistant card at the right of the History card
   - preserve the existing compact landing design
   ========================================================= */

body.xs-v365r14-home .xs-v365r14-assistant-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:0;
  min-height:320px;
  padding:22px 22px 20px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  background:
    radial-gradient(circle at 78% 22%,rgba(226,31,58,.14),transparent 38%),
    linear-gradient(145deg,rgba(22,14,18,.985),rgba(11,11,14,.995));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
  color:#f5f6f7;
  align-self:stretch;
}

body.xs-v365r14-home .xs-v365r14-assistant-card::before{
  content:"";
  position:absolute;
  inset:auto -52px -64px auto;
  width:210px;
  height:210px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,44,74,.18),rgba(255,44,74,0) 70%);
  pointer-events:none;
  z-index:0;
}

body.xs-v365r14-home .xs-v365r14-assistant-top,
body.xs-v365r14-home .xs-v365r14-assistant-copy,
body.xs-v365r14-home .xs-v365r14-assistant-character{
  position:relative;
  z-index:2;
}

body.xs-v365r14-home .xs-v365r14-assistant-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.xs-v365r14-home .xs-v365r14-assistant-icon{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.025);
  color:#56e18d;
  box-shadow:inset 0 0 20px rgba(255,255,255,.01);
}

body.xs-v365r14-home .xs-v365r14-assistant-icon svg{
  width:15px;
  height:15px;
  display:block;
}

body.xs-v365r14-home .xs-v365r14-assistant-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.58);
  font:700 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.12em;
  user-select:none;
}

body.xs-v365r14-home .xs-v365r14-assistant-copy{
  max-width:54%;
  margin-top:26px;
  padding-right:8px;
}

body.xs-v365r14-home .xs-v365r14-assistant-eyebrow{
  margin:0 0 10px;
  color:#ff4b67;
  font:700 11px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

body.xs-v365r14-home .xs-v365r14-assistant-copy h2{
  margin:0 0 12px!important;
  color:#fff;
  font-size:24px!important;
  line-height:1.12!important;
  letter-spacing:-.03em;
  font-weight:800!important;
  max-width:220px;
}

body.xs-v365r14-home .xs-v365r14-assistant-copy p{
  margin:0!important;
  max-width:215px;
  color:#b3b7bf!important;
  font-size:13px!important;
  line-height:1.58!important;
}

body.xs-v365r14-home .xs-v365r14-assistant-character{
  position:absolute;
  right:10px;
  bottom:-6px;
  width:min(45%,220px);
  height:auto;
  max-height:76%;
  object-fit:contain;
  object-position:right bottom;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.42));
}

body.xs-v365r14-home .xs-v365r14-assistant-card > *{
  box-sizing:border-box;
}

@media(max-width:1180px){
  body.xs-v365r14-home .xs-v365r14-assistant-copy{
    max-width:56%;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-character{
    width:min(44%,205px);
    right:8px;
  }
}

@media(max-width:900px){
  body.xs-v365r14-home .xs-v365r14-assistant-card{
    min-height:300px;
    padding:20px 20px 18px;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-copy{
    max-width:58%;
    margin-top:22px;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-copy h2{
    font-size:22px!important;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-character{
    width:min(42%,190px);
    bottom:-2px;
  }
}

@media(max-width:560px){
  body.xs-v365r14-home .xs-v365r14-assistant-card{
    min-height:390px;
    padding:18px 18px 16px;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-copy{
    max-width:100%;
    padding-right:0;
    margin-top:20px;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-copy h2,
  body.xs-v365r14-home .xs-v365r14-assistant-copy p{
    max-width:240px;
  }
  body.xs-v365r14-home .xs-v365r14-assistant-character{
    width:235px;
    max-height:62%;
    right:-2px;
    bottom:-14px;
  }
}
